/* =================================================================
   1. CSS VARIABLES — The Premium Aesthetic Color Palette
   ================================================================= */
:root {
  /* Brand Colors */
  --blue: #033999;
  --blue-dark: #0A1628;
  --blue-light: #2A5EBE;
  --orange: #F58634;
  --orange-light: #F79C56;
  
  /* Neutral & Backgrounds */
  --ink: #1A202C;
  --text-muted: #4A5568;
  --cream: #FAFAFA;
  --blue-tint: #F0F4FA;
  --white: #FFFFFF;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--orange) 0%, #D86315 100%);
  --gradient-dark: linear-gradient(135deg, var(--blue-dark) 0%, #031A3D 100%);
  
  /* Fonts */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* =================================================================
   2. GLOBAL RESET & SMOOTH SCROLLING
   ================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* THIS is the magic line that makes anchor links smoothly scroll down the page! */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.text-center { text-align: center; }
.bg-tint { background-color: var(--blue-tint); }
.relative { position: relative; }

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =================================================================
   3. SHADOWS & GLASSMORPHISM (The Premium Feel)
   ================================================================= */
.shadow-premium {
  /* Layered shadows create a much more realistic, "floating" 3D depth */
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.02),
    0 10px 24px rgba(3, 57, 153, 0.06),
    0 24px 48px rgba(3, 57, 153, 0.04);
}

.glass-panel {
  /* Glassmorphism: blur the background behind this element */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* =================================================================
   4. NAVIGATION (Sticky Glass Header)
   ================================================================= */
.site-header {
  position: fixed; /* Always stays at the top of the screen */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* Glassmorphism effect for the header */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

/* When the user scrolls down, JavaScript adds this class to shrink the header slightly */
.site-header.scrolled {
  padding: 4px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  transition: padding 0.3s ease;
}

.logo-img { height: 48px; }

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

/* The cool animated underline effect on hover */
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--blue);
  transition: width 0.3s ease;
}

.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--blue);
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid #E5E5E5;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  .main-nav.active { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .header-cta { display: none; }
}

/* =================================================================
   5. BUTTONS (Gradients and Glows)
   ================================================================= */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(245, 134, 52, 0.3); /* Orange glow */
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(245, 134, 52, 0.4); /* Glow expands */
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* =================================================================
   6. HERO SECTION (Full Image with Dark Overlay)
   ================================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
  padding-top: 80px; /* Offset for header */
}

/* The dark overlay that sits on top of the background image so text is readable */
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(3, 57, 153, 0.9) 0%, rgba(10, 22, 40, 0.95) 100%);
  z-index: 1;
}

.hero-inner {
  z-index: 2; /* Keeps text above the overlay */
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-graphics {
  position: relative;
  height: 400px;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
  animation: float 6s ease-in-out infinite;
  /* Override glass-panel background slightly to be more opaque */
  background: rgba(255, 255, 255, 0.95);
}

.floating-card h3 { color: var(--blue-dark); font-size: 24px; margin-bottom: 2px; }
.floating-card p { color: var(--text-muted); font-size: 14px; font-weight: 500; margin-bottom: 0; }
.card-icon { font-size: 32px; }

.card-1 { top: 10%; right: 10%; animation-delay: 0s; }
.card-2 { top: 40%; left: 0%; animation-delay: 1.5s; }
.card-3 { bottom: 10%; right: 20%; animation-delay: 3s; }

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

.hero-text {
  max-width: 650px;
}

.hero-subheadline {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--orange);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero-headline {
  font-size: 56px;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-body {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-graphics { display: none; }
  .hero-headline { font-size: 40px; }
  .hero-buttons { flex-direction: column; }
}

/* =================================================================
   7. PAGE SECTIONS
   ================================================================= */
.page-section {
  padding: 120px 0;
  scroll-margin-top: 80px; /* Crucial: stops the sticky header from covering the top of the section when clicking anchor links! */
}

.section-tag {
  color: var(--orange);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 40px;
  color: var(--blue-dark);
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 64px;
}

/* =================================================================
   8. ABOUT SECTION (Text + Image Grid)
   ================================================================= */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-text p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 20px;
}

.intro-quote {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--blue);
  font-weight: 600;
  margin-top: 32px;
  font-style: italic;
  border-left: 4px solid var(--orange);
  padding-left: 20px;
}

.premium-image {
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transform: perspective(1000px) rotateY(-5deg); /* Slight 3D tilt */
  transition: transform 0.5s ease;
}

.premium-image:hover {
  transform: perspective(1000px) rotateY(0deg);
}

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Process Grid */
.about-process { margin-top: 120px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.process-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 12px;
  transition: all 0.3s ease;
  border-bottom: 4px solid transparent;
}

/* Micro-interaction: Card lifts up and gets a blue border on hover */
.process-card:hover {
  transform: translateY(-8px);
  border-bottom: 4px solid var(--blue);
  box-shadow: 0 20px 40px rgba(3, 57, 153, 0.08);
}

.process-num {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  color: var(--blue-tint);
  line-height: 1;
  margin-bottom: 24px;
}

.process-card h3 { color: var(--blue-dark); font-size: 20px; margin-bottom: 12px; }
.process-card p { color: var(--text-muted); font-size: 15px; }

/* =================================================================
   9. SERVICES SECTION
   ================================================================= */
.services-filter-container {
  max-width: 600px;
  margin: 0 auto 64px;
}

.search-input {
  width: 100%;
  padding: 20px 32px;
  font-family: var(--font-body);
  font-size: 16px;
  border: none;
  border-radius: 40px;
  outline: none;
  transition: box-shadow 0.3s ease;
}

.search-input:focus {
  box-shadow: 0 0 0 4px rgba(3, 57, 153, 0.15);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  transition: all 0.3s ease;
  border-top: 4px solid var(--orange);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.06);
}

.service-card h3 { color: var(--blue-dark); font-size: 19px; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 15px; }

/* =================================================================
   10. CONTACT SECTION
   ================================================================= */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-box {
  background: var(--white);
  padding: 24px 32px;
  border-radius: 12px;
  border-left: 4px solid var(--blue);
}

.detail-box h3 { color: var(--blue-dark); font-size: 18px; margin-bottom: 8px; }
.detail-box p { color: var(--ink); font-size: 15px; }
.muted-text { color: #A0AEC0; font-size: 13px; }

.contact-form-wrapper {
  background: var(--white);
  padding: 48px;
  border-radius: 16px;
}

.form-group { margin-bottom: 24px; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: 8px; color: var(--blue-dark); font-size: 14px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 16px; font-family: var(--font-body);
  border: 1px solid #E2E8F0; border-radius: 8px; outline: none; font-size: 15px;
  transition: all 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(3,57,153,0.1);
}

.form-feedback { margin-top: 16px; font-size: 14px; text-align: center; font-weight: 500; }
.form-feedback.success { color: #38A169; }
.form-feedback.error { color: #E53E3E; }

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* =================================================================
   11. FOOTER
   ================================================================= */
.site-footer {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 80px 0 40px;
  text-align: center;
}
.footer-logo { height: 56px; margin: 0 auto 24px; background: white; padding: 6px 16px; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.footer-tagline { max-width: 480px; margin: 0 auto 24px; font-size: 15px; color: rgba(255,255,255,0.7); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.4); }

/* =================================================================
   12. SCROLL REVEAL ANIMATIONS
   ================================================================= */
/* Elements start hidden, slightly faded and pushed down */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When JavaScript adds this class, they elegantly slide into place */
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Delays to create a staggered "waterfall" effect for items side-by-side */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
