/* ========== BASE & RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: #1e3f9f;
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== NAVBAR ========== */
.nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 31, 77, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 4px 30px rgba(13, 31, 77, 0.1);
}

.nav-logo-text {
  color: #0d1f4d;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e5a820;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link:hover {
  color: #e5a820;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e5a820;
  color: #0d1f4d;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(229, 168, 32, 0.3);
  text-decoration: none;
}

.btn-primary:hover {
  background: #cc8e12;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 168, 32, 0.4);
}

.btn-primary.btn-lg {
  padding: 18px 36px;
  font-size: 1rem;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #e5a820;
  color: #e5a820;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #e5a820;
  color: #e5a820;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  background: #0d1f4d;
}

.hero-shapes {
  z-index: 1;
}

.geo {
  position: absolute;
  opacity: 0.06;
}

.geo-1 {
  width: 400px;
  height: 400px;
  background: #e5a820;
  border-radius: 50%;
  top: -100px;
  right: -100px;
}

.geo-2 {
  width: 200px;
  height: 200px;
  background: #e5a820;
  top: 20%;
  left: 5%;
  transform: rotate(45deg);
}

.geo-3 {
  width: 120px;
  height: 120px;
  background: #ffffff;
  border-radius: 50%;
  bottom: 15%;
  left: 10%;
}

.geo-4 {
  width: 60px;
  height: 60px;
  background: #e5a820;
  top: 40%;
  right: 15%;
  transform: rotate(30deg);
}

.geo-5 {
  width: 80px;
  height: 80px;
  background: #ffffff;
  bottom: 30%;
  right: 5%;
  transform: rotate(60deg);
}

.split-hero {
  position: relative;
  z-index: 2;
}

.badge-hero {
  background: rgba(229, 168, 32, 0.1);
  border: 1px solid rgba(229, 168, 32, 0.2);
  border-radius: 50px;
  padding: 8px 16px;
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
}

.hero-sub {
  font-family: 'Montserrat', sans-serif;
}

.hero-img-container {
  position: relative;
}

.hero-img-bg-2 {
  background: #d4a017;
}

.hero-img {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.hero-float-card {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.scroll-indicator {
  z-index: 2;
}

.scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ========== SECTION COMMON ========== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 0;
}

.badge-section {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge-section-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  perspective: 1000px;
}

.service-card-inner {
  background: #ffffff;
  border: 1px solid rgba(13, 31, 77, 0.08);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0d1f4d, #1e3f9f);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-inner::before {
  transform: scaleX(1);
}

.service-card:hover .service-card-inner {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(13, 31, 77, 0.12);
  border-color: transparent;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(13, 31, 77, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-icon-gold {
  background: rgba(229, 168, 32, 0.1);
}

.service-card:hover .service-icon {
  background: #0d1f4d;
  transform: scale(1.1) rotate(5deg);
}

.service-card:hover .service-icon svg {
  stroke: #e5a820;
}

.service-card:hover .service-icon-gold svg {
  stroke: #e5a820;
}

.service-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0d1f4d;
  background: rgba(13, 31, 77, 0.06);
  padding: 4px 12px;
  border-radius: 50px;
}

.service-tag-gold {
  color: #cc8e12;
  background: rgba(229, 168, 32, 0.1);
}

/* ========== ABOUT ========== */
.about-shapes {
  z-index: 0;
}

.geo-about {
  position: absolute;
  opacity: 0.04;
}

.geo-a {
  width: 300px;
  height: 300px;
  background: #e5a820;
  border-radius: 50%;
  top: -50px;
  left: -100px;
}

.geo-b {
  width: 150px;
  height: 150px;
  background: #e5a820;
  bottom: 10%;
  right: 5%;
  transform: rotate(45deg);
}

.geo-c {
  width: 80px;
  height: 80px;
  background: #ffffff;
  top: 30%;
  right: 15%;
}

.about-img-grid {
  position: relative;
  height: 600px;
}

.about-img-main {
  position: absolute;
  width: 65%;
  height: 80%;
  top: 0;
  left: 0;
}

.about-img-secondary {
  position: absolute;
  width: 50%;
  height: 55%;
  bottom: 0;
  right: 0;
  border: 6px solid #0d1f4d;
  border-radius: 20px;
  overflow: hidden;
}

.about-img {
  border-radius: 16px;
}

.about-accent-box {
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.about-feature-icon {
  flex-shrink: 0;
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: auto;
}

.gallery-item:nth-child(1) { aspect-ratio: 4/5; }
.gallery-item:nth-child(2) { aspect-ratio: 4/3.5; }
.gallery-item:nth-child(3) { aspect-ratio: 4/4.5; }
.gallery-item:nth-child(4) { aspect-ratio: 4/3.8; }
.gallery-item:nth-child(5) { aspect-ratio: 4/5.2; }
.gallery-item:nth-child(6) { aspect-ratio: 1; }

.gallery-img {
  transition: transform 0.6s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 31, 77, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ========== CTA BANNER ========== */
.cta-bg {
  background: #0d1f4d;
}

.geo-cta {
  position: absolute;
  opacity: 0.05;
}

.geo-cta.geo-1 {
  width: 500px;
  height: 500px;
  background: #e5a820;
  border-radius: 50%;
  top: -200px;
  left: -200px;
}

.geo-cta.geo-2 {
  width: 300px;
  height: 300px;
  background: #e5a820;
  border-radius: 50%;
  bottom: -150px;
  right: -100px;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid rgba(13, 31, 77, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateX(8px);
  box-shadow: 0 10px 30px rgba(13, 31, 77, 0.1);
  border-color: #e5a820;
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(13, 31, 77, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
  background: #0d1f4d;
}

.contact-card:hover .contact-card-icon svg {
  stroke: #e5a820;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid rgba(13, 31, 77, 0.08);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(13, 31, 77, 0.06);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e3f9f;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(13, 31, 77, 0.1);
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #0d1f4d;
  background: #f8f9ff;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: #e5a820;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(229, 168, 32, 0.1);
}

.form-input::placeholder {
  color: #8da4ff;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231e3f9f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  text-align: center;
  padding: 2rem;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* ========== FOOTER ========== */
.footer {
  position: relative;
}

.footer-grid {
  position: relative;
  z-index: 1;
}

.footer-logo {
  text-decoration: none;
}

.footer-bottom {
  position: relative;
  z-index: 1;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Default state: content is visible for accessibility */
.reveal {
  transform: translateY(20px);
  opacity: 1;
}

.reveal.revealed {
  transform: translateY(0);
  opacity: 1;
}

/* Only animate when JS has run and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-img-grid {
    height: 450px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .hero-headline {
    font-size: 3rem !important;
  }

  .hero-headline br {
    display: none;
  }

  .hero-img {
    h-[400px] !important;
  }

  .split-hero {
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-img-grid {
    height: 350px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(5) {
    aspect-ratio: 4/5;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2.5rem !important;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-float-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
    display: inline-flex;
  }
}
