/* ===== CSS VARIABLES ===== */
:root {
  --navy: #0D1B2A;
  --gold: #F4A123;
  --blue: #1A6FA8;
  --white: #FFFFFF;
  --light-grey: #F8F7F4;
  --text-muted: #6B7B8D;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --transition: 0.3s ease;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(13,27,42,0.10);
  --shadow-hover: 0 12px 40px rgba(13,27,42,0.18);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

/* ===== SCROLL PROGRESS BAR ===== */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gold);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 3px; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after, .nav-links a:focus::after { width: 100%; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.35s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--gold); }

/* ===== HERO ===== */
#home {
  position: relative;
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.stars-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.star {
  position: absolute;
  background: var(--white);
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
.hero-star-deco {
  position: absolute;
  top: -60px; right: -60px;
  width: clamp(260px, 35vw, 520px);
  opacity: 0.18;
  animation: rotateStar 30s linear infinite;
  pointer-events: none;
}
@keyframes rotateStar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 5% 100px;
  max-width: 900px;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-content h1 span { color: var(--gold); }
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(248,247,244,0.82);
  line-height: 1.6;
  margin-bottom: 44px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 6px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(244,161,35,0.35);
}
.btn-primary:hover {
  background: #e8920d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,161,35,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 32px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.6);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
.scroll-arrow {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
}

/* ===== SECTION COMMON ===== */
.section-overline {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-wrap: balance;
}
.section-subheading {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 560px;
}
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== ABOUT SECTION ===== */
#about {
  background: var(--white);
  padding: clamp(80px, 10vw, 120px) 5%;
}
.about-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.globe-circle {
  width: clamp(280px, 38vw, 440px);
  height: clamp(280px, 38vw, 440px);
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f4fb 0%, #d4eaf5 100%);
  border: 3px solid rgba(26,111,168,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(26,111,168,0.12);
}
.globe-circle svg {
  width: 78%;
  height: 78%;
}
.about-text .section-heading { color: var(--navy); }
.about-text p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}
.stats-row {
  display: flex;
  gap: 40px;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ===== SERVICES SECTION ===== */
#services {
  background: var(--light-grey);
  padding: clamp(80px, 10vw, 120px) 5%;
}
.services-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}
.services-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  border-left: 4px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-left-color: var(--gold);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.service-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
  display: inline-block;
  transition: transform var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.2); }
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== WORK SECTION ===== */
#work {
  background: var(--navy);
  padding: clamp(80px, 10vw, 120px) 5%;
}
.work-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.work-header .section-heading { color: var(--white); }
.work-header .section-subheading { color: rgba(248,247,244,0.65); margin: 0 auto; }
.work-header .section-subheading strong { color: var(--gold); }
.project-card {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  background: linear-gradient(135deg, #0a3d52 0%, #0D1B2A 60%, #0a2540 100%);
  border: 1px solid rgba(244,161,35,0.2);
  overflow: hidden;
  box-shadow: 0 16px 64px rgba(0,0,0,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(0,0,0,0.5);
}
.project-card-top {
  position: relative;
  padding: 48px 48px 0;
  overflow: hidden;
}
.wave-deco {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  pointer-events: none;
  opacity: 0.15;
}
.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244,161,35,0.15);
  border: 1px solid rgba(244,161,35,0.4);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.project-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}
.project-card p {
  font-size: 1rem;
  color: rgba(248,247,244,0.75);
  line-height: 1.72;
  margin-bottom: 30px;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.tech-tag {
  background: rgba(26,111,168,0.2);
  border: 1px solid rgba(26,111,168,0.4);
  color: #74bde0;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  font-family: var(--font-body);
}
.project-card-bottom {
  padding: 0 48px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.project-visit-btn {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(244,161,35,0.3);
}
.project-visit-btn:hover {
  background: #e8920d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,161,35,0.45);
}
.membership-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.membership-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
}

/* ===== CONTACT SECTION ===== */
#contact {
  background: var(--white);
  padding: clamp(80px, 10vw, 120px) 5%;
}
.contact-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info-header .section-heading { color: var(--navy); }
.contact-info-header p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--light-grey);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.contact-card-icon {
  width: 42px; height: 42px;
  background: rgba(244,161,35,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-card-text strong {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.contact-card-text span {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.contact-form-wrap { position: relative; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--navy);
}
.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 12px 16px;
  border: 1.5px solid #D8E0E8;
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}
.form-group textarea {
  min-height: 130px;
  resize: vertical;
}
.form-submit {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(244,161,35,0.25);
}
.form-submit:hover {
  background: #e8920d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,161,35,0.4);
}
.success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 60px 24px;
}
.success-message.show { display: flex; }
.success-check {
  width: 64px; height: 64px;
  background: rgba(244,161,35,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.success-message h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}
.success-message p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  padding: 64px 5% 32px;
  color: rgba(248,247,244,0.7);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-row img { height: 42px; }
.footer-logo-row span {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.footer-tagline {
  font-size: 0.92rem;
  color: rgba(248,247,244,0.55);
  line-height: 1.5;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.social-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.social-icon:hover {
  background: rgba(244,161,35,0.2);
  transform: translateY(-2px);
}
.social-icon svg {
  width: 18px; height: 18px;
  fill: rgba(255,255,255,0.7);
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col ul li a {
  font-size: 0.92rem;
  color: rgba(248,247,244,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright {
  font-size: 0.85rem;
  color: rgba(248,247,244,0.4);
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,27,42,0.75);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px 20px;
  border-bottom: 1px solid #E8EDF2;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}
.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}
.modal-close {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--light-grey);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--navy);
  transition: background var(--transition);
}
.modal-close:hover { background: #e0deda; }
.modal-body {
  padding: 28px 32px 36px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.72;
}
.modal-body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  margin: 22px 0 8px;
}
.modal-body h3:first-child { margin-top: 0; }

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid #E8EDF2;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--navy);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--gold); }
.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 18px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-inner { gap: 48px; }
  .contact-inner { gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
  .globe-circle { width: 240px; height: 240px; }
  .stats-row { gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .project-card-top { padding: 32px 28px 0; }
  .project-card-bottom { padding: 0 28px 32px; }
  .modal-header { padding: 20px 20px 16px; }
  .modal-body { padding: 20px 20px 28px; }
}
@media (max-width: 480px) {
  .hero-content { padding: 100px 4% 80px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 280px; text-align: center; }
}
