/* ============================================
   AITMAD ORGANISATION — STYLES
   Color Palette: Beige / Warm Brown / Cream
   ============================================ */

:root {
  --beige:       #E8D5B7;
  --beige-light: #F5EDE0;
  --beige-dark:  #D4BC98;
  --brown-deep:  #2C1810;
  --brown-mid:   #7a5c4e;
  --brown-light: #a07860;
  --cream:       #FBF6EF;
  --white:       #ffffff;
  --text-dark:   #1a0f0a;
  --text-mid:    #4a3428;
  --text-light:  #7a5c4e;
  --shadow:      rgba(44, 24, 16, 0.12);
  --shadow-md:   rgba(44, 24, 16, 0.18);
  --radius:      14px;
  --radius-lg:   22px;
  --transition:  0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============ UTILITY ============ */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.highlight { color: var(--brown-mid); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--brown-deep);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto;
  font-weight: 400;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--brown-deep);
  color: var(--beige-light);
  border-color: var(--brown-deep);
}
.btn-primary:hover {
  background: var(--brown-mid);
  border-color: var(--brown-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--brown-deep);
  border-color: var(--brown-deep);
}
.btn-outline:hover {
  background: var(--brown-deep);
  color: var(--beige-light);
  transform: translateY(-2px);
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(251, 246, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122, 92, 78, 0.12);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 24px var(--shadow); }

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-aitmad {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brown-deep);
  letter-spacing: 1px;
}
.brand-org {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--brown-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--brown-deep);
  background: var(--beige);
}
.nav-cta {
  background: var(--brown-deep);
  color: var(--beige-light) !important;
  padding: 9px 20px;
}
.nav-cta:hover {
  background: var(--brown-mid) !important;
  color: var(--beige-light) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-deep);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  background: var(--beige);
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(122,92,78,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-logo-wrap {
  flex-shrink: 0;
  animation: floatLogo 4s ease-in-out infinite;
}
.hero-logo {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(44,24,16,0.15));
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-text { flex: 1; }
.hero-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-tagline::before {
  content: '🇵🇰';
  font-size: 1rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--brown-deep);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 1.08rem;
  color: var(--text-mid);
  max-width: 520px;
  margin-bottom: 32px;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(44,24,16,0.06);
  border: 1px solid rgba(44,24,16,0.12);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
}
.badge-dot {
  width: 8px; height: 8px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ============ WHAT WE DO ============ */
.what-we-do { background: var(--white); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.card {
  background: var(--cream);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow);
  border-color: var(--brown-light);
}
.card-icon {
  width: 52px; height: 52px;
  background: var(--beige);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 10px;
}
.card p {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ============ NEURO SECTION ============ */
.neuro-section { background: var(--beige-light); }

.neuro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.neuro-desc {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.7;
}
.neuro-features {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.neuro-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-mid);
}
.neuro-features li svg { width: 20px; height: 20px; flex-shrink: 0; }
.neuro-disclaimer {
  font-size: 0.82rem;
  color: var(--brown-light);
  background: var(--beige);
  border-left: 3px solid var(--brown-mid);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-top: 8px;
}

/* ============ CHAT WIDGET ============ */
.chat-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 540px;
  border: 1px solid var(--beige-dark);
}

.chat-header {
  background: var(--brown-deep);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.chat-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--beige);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-avatar img { width: 38px; height: 38px; }
.chat-header-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--beige-light);
}
.chat-status {
  font-size: 0.78rem;
  color: var(--beige-dark);
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-dot {
  width: 7px; height: 7px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--cream);
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--beige-dark); border-radius: 4px; }

.message { display: flex; flex-direction: column; max-width: 82%; }
.bot-message { align-self: flex-start; }
.user-message { align-self: flex-end; }

.message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.6;
}
.bot-message .message-bubble {
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--beige-dark);
  border-bottom-left-radius: 4px;
}
.user-message .message-bubble {
  background: var(--brown-deep);
  color: var(--beige-light);
  border-bottom-right-radius: 4px;
}
.message-time {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 4px;
  padding: 0 4px;
}
.user-message .message-time { text-align: right; }

.typing-indicator .message-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
}
.typing-dot {
  width: 7px; height: 7px;
  background: var(--brown-light);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--white);
  border-top: 1px solid var(--beige-dark);
}
.chat-input {
  flex: 1;
  border: 1.5px solid var(--beige-dark);
  border-radius: 50px;
  padding: 10px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--cream);
  outline: none;
  transition: border-color var(--transition);
}
.chat-input:focus { border-color: var(--brown-mid); }
.chat-send {
  width: 42px; height: 42px;
  background: var(--brown-deep);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--beige-light);
  transition: all var(--transition);
  flex-shrink: 0;
}
.chat-send:hover { background: var(--brown-mid); transform: scale(1.08); }
.chat-send svg { width: 18px; height: 18px; }
.chat-footer-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-light);
  padding: 6px 16px 10px;
  background: var(--white);
}

/* ============ STATS ============ */
.stats-section { background: var(--brown-deep); padding: 60px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item { padding: 20px; }
.stat-number {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--beige-light);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--beige-dark);
  letter-spacing: 1px;
}

/* ============ NOTICE ============ */
.notice-section { background: var(--white); padding: 60px 0; }
.notice-box {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--beige-light);
  border: 1.5px solid var(--beige-dark);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}
.notice-icon { flex-shrink: 0; }
.notice-icon svg { width: 48px; height: 48px; }
.notice-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 10px;
}
.notice-content p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============ CONTACT ============ */
.contact-section { background: var(--beige-light); }
.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
}
.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
}
.contact-icon { flex-shrink: 0; }
.contact-icon svg { width: 40px; height: 40px; }
.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 6px;
}
.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown-deep);
  word-break: break-all;
}
a.contact-value:hover { color: var(--brown-mid); text-decoration: underline; }

/* ============ FOOTER ============ */
.footer { background: var(--brown-deep); color: var(--beige-light); }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding: 60px 0 40px;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.footer-logo { width: 56px; height: 56px; border-radius: 10px; }
.footer-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.brand-org-footer {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--beige-dark);
  text-transform: uppercase;
}
.footer-tagline {
  font-size: 0.82rem;
  color: var(--beige-dark);
  margin-top: 4px;
}
.footer-links h4, .footer-contact h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--beige-dark);
  margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--beige-light);
  opacity: 0.8;
  transition: opacity var(--transition);
}
.footer-links a:hover { opacity: 1; }
.footer-contact p {
  font-size: 0.9rem;
  color: var(--beige-light);
  opacity: 0.85;
  margin-bottom: 8px;
  word-break: break-all;
}
.footer-contact a:hover { opacity: 1; text-decoration: underline; }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(232,213,183,0.1);
  border: 1px solid rgba(232,213,183,0.2);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--beige-light);
  margin-top: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(232,213,183,0.15);
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--beige-dark);
  opacity: 0.7;
  margin-bottom: 4px;
}
.footer-disclaimer { font-size: 0.75rem !important; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .neuro-layout { grid-template-columns: 1fr; }
  .chat-widget { height: 480px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .hero-content { flex-direction: column; text-align: center; gap: 32px; }
  .hero-logo { width: 160px; }
  .hero-tagline { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-badge { justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--beige-dark);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .notice-box { flex-direction: column; padding: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2rem; }
}