:root {
  --primary-blue: #1a365d;
  --accent-green: #2f855a;
  --bg-light: #f7fafc;
  --text-dark: #2d3748;
  --white: #ffffff;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
  overflow-x: hidden;
  position: relative;
}

/* Topographic Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url('images/bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}

/* --- 1. INTRO ANIMATION --- */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: fadeOutOverlay 0.8s ease-in-out 2.4s forwards;
  pointer-events: none;
}

.logo-stack {
  position: relative;
  width: 400px;
  max-width: 80vw;
  aspect-ratio: 3100 / 2210;
}

.drawing-mountain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: visible;
}

.mountain-path {
  fill: transparent;
  stroke: var(--primary-blue);
  stroke-width: 15;
  stroke-dasharray: 8448.4091796875;
  stroke-dashoffset: 8448.4091796875;
  stroke-linecap: square;
  stroke-linejoin: miter;
  animation: drawLine 2.0s ease-out forwards;
}

.real-logo-reveal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
  opacity: 0;
  animation: fadeInLogo 1s ease-out 1.5s forwards;
}

.intro-brand-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 40px;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-top: 15px;
  opacity: 0;
  animation: fadeInLogo 1s ease-out 1.5s forwards;
  text-shadow: -2px -2px 1px rgba(255,255,255,0.3), 2px 2px 1px rgba(0,0,0,0.5);
}

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeInLogo { to { opacity: 1; } }
@keyframes fadeOutOverlay { to { opacity: 0; visibility: hidden; } }
@keyframes fadeInContent { to { opacity: 1; } }

.main-content {
  opacity: 0;
  animation: fadeInContent 1s ease-out 3.0s forwards;
}

/* --- 2. STICKY RIBBON NAV --- */
/* --- 2. FLOATING GLASS NAVBAR --- */
.navbar {
  /* Fix it to the top */
  position: sticky;
  top: 20px; /* Floats 20px off the top edge */
  z-index: 1000;
  
  /* Size & Positioning */
  width: 90%; /* Doesn't touch the edges */
  max-width: 1200px;
  margin: 0 auto; /* Centers it */
  padding: 12px 30px;
  
  /* GLASSMORPHISM EFFECT */
  background: rgba(255, 255, 255, 0.6); /* Semi-transparent white */
  backdrop-filter: blur(12px); /* The "Frosted" Blur */
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  
  /* Borders & Shadows for Depth */
  border: 1px solid rgba(255, 255, 255, 0.6); /* Subtle inner border */
  border-radius: 16px; /* Smooth, modern rounded corners */
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05), /* Soft shadow */
    0 10px 15px -3px rgba(0, 0, 0, 0.05); /* Deeper shadow for lift */
    
  /* Layout */
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Responsive Logo Sizing */
.nav-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}

@media (min-width: 1024px) {
  .nav-logo { height: 50px; } /* Larger on Desktop */
}

.nav-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-right {
  display: flex;
  gap: 15px;
}

.nav-btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px; /* Larger click area */
  border-radius: 8px; /* Slightly rounder than before */
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Update the Outline Button (About Us) */
.btn-outline {
  border: 1px solid #e2e8f0; /* Softer grey border */
  color: var(--primary-blue);
  background: transparent;
}

.btn-outline:hover {
  background: #f7fafc;
  border-color: var(--primary-blue);
  transform: translateY(-1px); /* Micro-interaction lift */
}

/* Update the Solid Button (Book Now) */
.btn-solid {
  background: var(--accent-green);
  color: white;
  border: 1px solid var(--accent-green);
  box-shadow: 0 4px 6px rgba(47, 133, 90, 0.2); /* Green glow shadow */
}

.btn-solid:hover {
  background: #276749;
  transform: translateY(-1px); /* Micro-interaction lift */
  box-shadow: 0 6px 8px rgba(47, 133, 90, 0.3);
}

/* --- MOBILE FIX FOR NAVBAR --- */
@media (max-width: 768px) {
  .nav-brand { display: none; } /* Hide text name on mobile */
  .nav-right { gap: 10px; } /* Reduce gap between buttons */
  .nav-btn { padding: 6px 12px; font-size: 0.8rem; } /* Compact buttons */
}

/* --- 3. HERO SECTION --- */
.hero-section {
  position: relative;
  width: 100%;
}

.hero-img-container {
  position: relative;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  height: auto;
  min-height: 500px;
  object-fit: cover;
  display: block;
}

.hero-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  z-index: 10;
}

.gradient-headline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 4rem;
  line-height: 1.1;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-subline {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-top: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --- 4. TECH TICKER (SPACING FIXED) --- */
.ticker-wrap {
  width: 100%;
  background-color: var(--primary-blue);
  color: white;
  overflow: hidden;
  height: 60px;
  display: flex;
  align-items: center;
}

.ticker {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  padding: 0; /* Remove padding */
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
}

.ticker-item:after {
  content: "•";
  margin: 0 30px; /* Symmetrical Margins */
  color: var(--accent-green);
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- 5. PATHWAYS --- */
.pathways-section {
  /* Reduced bottom padding to 10px to close the gap */
  padding: 80px 20px 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-blue);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

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

.path-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-align: center;
  border: 1px solid #edf2f7;
}

.path-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.path-img-container {
  height: 200px;
  overflow: hidden;
}

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

.path-card:hover .path-img {
  transform: scale(1.05);
}

.path-content {
  padding: 30px;
}

.path-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-weight: 700;
}

.path-desc {
  font-size: 0.95rem;
  color: #4a5568;
  margin-bottom: 20px;
}

.path-btn {
  display: inline-block;
  color: var(--accent-green);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border 0.3s;
}

.path-btn:hover {
  border-bottom: 2px solid var(--accent-green);
}

/* --- 6. DETAILED SERVICES --- */
.services-section {
  background: rgba(255,255,255,0.6);
  padding: 60px 20px;
  margin-top: 40px;
}

.service-category-header {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  color: var(--primary-blue);
  border-left: 5px solid var(--accent-green);
  padding-left: 20px;
  margin: 60px 0 30px 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e2e8f0;
}

.service-card:hover { transform: translateY(-5px); border-color: var(--accent-green); }
.service-card h3 { font-family: 'Montserrat', sans-serif; margin-top: 0; color: var(--primary-blue); font-size: 1.3rem; }

.learn-more { font-weight: bold; color: var(--accent-green); font-size: 0.9rem; text-decoration: none; margin-top: 15px; cursor: pointer; }
.learn-more:after { content: " →"; }

/* --- 7. VALUE PROPS (Clean Columns) --- */
.value-props-section {
  background: var(--primary-blue);
  color: white;
  padding: 80px 20px;
  border-top: 4px solid var(--accent-green); /* Top accent bar for pop */
}

.value-grid {
  display: flex; /* Use Flexbox for easy column dividers */
  flex-direction: column; /* Mobile first (stack them) */
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Tablet & Desktop: Switch to Row */
@media (min-width: 768px) {
  .value-grid {
    flex-direction: row;
    gap: 0; /* Remove gap, use padding instead so borders touch */
    align-items: flex-start;
  }
}

.value-item {
  flex: 1; /* Equal width columns */
  padding: 0 30px; /* Internal spacing */
  position: relative;
}

/* Vertical Dividers (Desktop Only) */
@media (min-width: 768px) {
  .value-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.2); /* Subtle white divider */
  }
}

/* Typography Updates */
.value-item h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem; /* Slight bump for readability */
  margin-bottom: 20px;
  
  /* 1. The Fill */
  color: #ffffff; 
  font-weight: 800;
  letter-spacing: -1px;
  
  /* 2. The Outline (Thicker now that it sits behind) */
  -webkit-text-stroke: 3px var(--accent-green);
  
  /* 3. THE FIX: This forces the green outline to sit BEHIND the white text */
  paint-order: stroke fill;
  
  /* 4. Remove the 'filter' property which was causing the blur/glitch */
  text-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Standard shadow instead */
}

.value-item p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  color: #e2e8f0; /* Off-white for readability, softer than pure white */
  line-height: 1.7;
  font-weight: 400;
  max-width: 300px; /* Prevents text from getting too wide/hard to read */
  margin: 0 auto;
}

/* --- 8. CTA (FIXED CENTER & PADDING) --- */
.cta-section {
  text-align: center;
  padding: 60px 20px;
  max-width: 800px;
  /* Top: 30px, Horizontal: Auto (Centers it), Bottom: 80px */
  margin: 30px auto 80px auto;
  background: var(--primary-blue);
  color: white; /* Restores white text */
  border-radius: 12px; /* Restores rounded corners */
}

.cta-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  color: #ffffff; /* White text for visibility */
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta-button { display: inline-block; background: var(--accent-green); color: white; padding: 15px 35px; text-decoration: none; border-radius: 5px; font-weight: bold; font-size: 1.2rem; transition: transform 0.2s; font-family: 'Montserrat', sans-serif; }
.cta-button:hover { transform: scale(1.05); }

footer {
  padding: 40px 20px;
  background: #e2e8f0;
  font-size: 0.85rem;
  color: #718096;
  text-align: center;
}

/* --- MODAL STYLES --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 54, 93, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 1000px;
  border-radius: 12px;
  padding: 40px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: center;
}

/* --- FIXED ABOUT IMAGE --- */
.about-img {
  width: 100%; /* Fills the width of its column */
  height: 450px; /* Sets a nice tall portrait height */
  
  /* THE CRITICAL FIXES: */
  object-fit: cover; /* Ensures no squishing. Crops edges if needed. */
  object-position: center top; /* Anchors focus near the top (faces) so heads aren't cropped off */
  
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15); /* Polished deep shadow */
}

/* Optional: On smaller tablets/phones, make it not quite as tall so it doesn't dominate the screen */
@media (max-width: 768px) {
  .about-img {
    height: 350px;
  }
}

.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.img-wrapper {
  width: 100%;
  height: 300px;
  margin: 10px 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #cbd5e0;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 30px;
  font-weight: bold;
  color: var(--primary-blue);
  cursor: pointer;
}

.tag { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; margin-bottom: 10px; }
.tag-bad { background: #fed7d7; color: #c53030; }
.tag-good { background: #c6f6d5; color: #2f855a; }

/* --- MOBILE FIX FOR COMPARISON IMAGES --- */
@media (max-width: 768px) {
  .comparison-container {
    /* Switch to single column stack */
    grid-template-columns: 1fr; 
    gap: 30px; /* Add breathing room between the stacked images */
  }

  .comparison-slide {
    margin-bottom: 20px;
  }

  .img-wrapper {
    /* Optional: Slightly reduce height on mobile so they don't take up too much vertical space */
    height: 250px; 
  }
}


/* --- MOBILE NAVBAR FIX --- */
@media (max-width: 768px) {
  .navbar {
    /* 1. Force Full Width */
    width: 100%;
    max-width: 100%;
    
    /* 2. Stick to the very top */
    top: 0;
    margin: 0;
    
    /* 3. Remove "Card" Styling */
    border-radius: 0; /* Square corners */
    border-left: none;
    border-right: none;
    border-top: none;
    
    /* 4. Adjust Spacing for small screens */
    padding: 12px 15px; /* Tighter horizontal padding */
    box-sizing: border-box; /* Ensures padding doesn't break width */
  }

  /* 5. Tighter Button Spacing on Mobile */
  .nav-right {
    gap: 8px; 
  }

  /* 6. Slightly Smaller Buttons on Mobile */
  .nav-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}
