/* style.css - Darcy Petroleum Redesign */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  color-scheme: light only;

  /* Colors */
  --bg-deep: hsl(225, 20%, 96%);          /* Cooler light gray-blue background */
  --bg-card: hsla(225, 100%, 100%, 0.7);  /* Translucent white glass card */
  --bg-card-hover: hsla(225, 100%, 100%, 0.95);
  --border-glass: hsla(146, 50%, 20%, 0.06); /* Soft dark green border */
  --border-glass-hover: hsla(146, 50%, 20%, 0.12);
  
  --primary: hsl(146, 100%, 27%);        /* Forest Green (#008A3B) */
  --primary-glow: hsla(146, 100%, 27%, 0.12);
  --secondary: hsl(358, 66%, 45%);       /* Crimson Red (#C1272D) */
  --secondary-glow: hsla(358, 66%, 45%, 0.12);
  
  --text-main: hsl(225, 45%, 12%);      /* Darker slate-blue text */
  --text-muted: hsl(225, 15%, 40%);     /* Slate gray text */
  --text-dark: hsl(0, 0%, 100%);        /* White text for contrast buttons */
  
  /* Layout & Spacing */
  --header-init-height: 100px;
  --header-shrink-height: 70px;
  --max-width: 1280px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Shadows & Blurs */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --blur-glass: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-shrink-height);
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- Layout Components --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section-alt {
  background: radial-gradient(circle at 80% 20%, hsl(225, 20%, 93%) 0%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

/* --- Glassmorphism Card Utilities --- */
.glass-panel {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -10px rgba(10, 25, 47, 0.05), 0 1px 3px rgba(10, 25, 47, 0.02);
  transition: var(--transition-normal), transform var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 25px 35px -5px rgba(10, 25, 47, 0.08), 0 12px 12px -5px rgba(10, 25, 47, 0.03);
  transform: translateY(-4px);
}

/* --- Sticky Header & Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-init-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-glass);
  transition: height var(--transition-normal), box-shadow var(--transition-normal);
}

/* Native Scroll-driven Animation for Header */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @keyframes shrinkHeader {
    to {
      height: var(--header-shrink-height);
      background-color: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
      border-bottom-color: var(--border-glass);
    }
  }

  header {
    animation: shrinkHeader auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 100px;
  }
}

/* Fallback class for non-supporting browsers when scrolled */
header.scrolled {
  height: var(--header-shrink-height) !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08) !important;
  border-bottom-color: var(--border-glass) !important;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.05em;
}

.logo-icon {
  display: none;
}

.logo-text {
  background: linear-gradient(to right, var(--text-main) 50%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
}

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

/* Call to Action Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(146, 100%, 18%) 100%);
  color: var(--text-dark);
  border: none;
  box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, hsl(146, 100%, 18%) 0%, var(--primary) 100%);
  box-shadow: 0 6px 20px 0 hsla(146, 100%, 20%, 0.25);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-dark);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 hsla(146, 100%, 20%, 0.15);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
}

/* --- Hero Section & Parallax Background --- */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--header-init-height);
}

.hero-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image:
    linear-gradient(to bottom, rgba(3, 24, 12, 0.82) 0%, rgba(3, 24, 12, 0.45) 50%, var(--bg-deep) 100%),
    url('../img/hero_background.png');
  background-size: cover;
  background-position: center;
  transition: transform 0.1s ease-out;
}

/* Native Scroll-driven Parallax Animation */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @keyframes parallaxBg {
    to {
      transform: translateY(200px) scale(1.05);
    }
  }

  .hero-wrapper {
    view-timeline: --hero;
  }

  .hero-bg {
    animation: parallaxBg linear both;
    animation-timeline: --hero;
    animation-range: exit 0% exit 100%;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 2rem;
}

.hero-tag svg {
  stroke: hsl(146, 100%, 65%);
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-title span {
  background: linear-gradient(135deg, #ffffff 0%, hsl(146, 100%, 65%) 50%, hsl(85, 100%, 55%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

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

/* --- Section Typography & Header --- */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 5rem;
}

.section-tag {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --- Core Values (Features) Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-dark);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: rotate(-10deg) scale(1.1);
}

.feature-icon-wrapper svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
  transition: var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper svg {
  stroke: var(--text-dark);
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Services One-Page Block Layout --- */
.services-onepage-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.service-block {
  padding: 3.5rem 3rem;
  text-align: center;
  scroll-margin-top: 120px;
}

.service-block-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-block-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--primary);
  stroke-width: 1.75;
  fill: none;
}

.service-block-subtitle {
  color: var(--primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.service-block-title {
  font-size: 2rem;
  margin: 0.5rem 0 1.25rem;
  text-decoration: underline;
  text-decoration-color: var(--border-glass-hover);
  text-underline-offset: 8px;
}

.service-block-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.service-block-list {
  text-align: left;
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem 2rem;
  list-style: none;
  padding: 0;
}

.service-block-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-main);
  line-height: 1.5;
}

.service-block-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

/* --- About Us Page Layout --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-graphics {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-shape-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: 1;
}

.about-visual-box {
  width: 80%;
  height: 80%;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-metrics {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 3;
  padding: 2rem;
  width: 220px;
  text-align: center;
}

.about-metric-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.about-metric-lbl {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 5rem;
}

.vision-box, .mission-box {
  padding: 3rem;
}

.vision-box h4, .mission-box h4 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vision-box svg, .mission-box svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
  fill: none;
}

.vision-box ul, .mission-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vision-box li, .mission-box li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.vision-box li::before, .mission-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}

/* Strengths Section */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.strength-card {
  padding: 2.5rem;
}

.strength-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.strength-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.strength-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Contact Page Layout --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
}

.contact-details h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form-container {
  padding: 3.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-control {
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.03);
}

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

.form-submit-btn {
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, hsl(146, 100%, 18%) 100%);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 1.15rem 2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.form-submit-btn:hover {
  background: linear-gradient(135deg, hsl(146, 100%, 18%) 0%, var(--primary) 100%);
  box-shadow: 0 6px 20px 0 hsla(146, 100%, 20%, 0.25);
  transform: translateY(-2px);
}

.form-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Form Response Messages */
.form-response-msg {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.4s ease-out;
}

.form-response-msg.success {
  background: hsla(145, 80%, 40%, 0.1);
  border: 1px solid hsla(145, 80%, 40%, 0.25);
  color: hsl(145, 80%, 30%);
}

.form-response-msg.error {
  background: hsla(4, 90%, 58%, 0.1);
  border: 1px solid hsla(4, 90%, 58%, 0.25);
  color: hsl(4, 90%, 48%);
}

/* Map Section */
.map-wrapper {
  margin-top: 5rem;
  height: 450px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(20%) contrast(90%); /* Light mode clean map style */
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-glass);
  background: hsl(225, 20%, 93%);
  padding: 6rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand .logo {
  font-size: 1.6rem;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 6px;
}

.footer-hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-hours-list strong {
  color: var(--text-main);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .service-block {
    padding: 2.5rem 1.75rem;
  }

  .about-grid, .contact-grid, .vision-mission-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .about-graphics {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }
  
  .hero {
    height: auto;
    padding: 10rem 0 6rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 3rem;
    box-shadow: -10px 0 40px rgba(5, 10, 45, 0.15);
    z-index: 1005;
    transition: right var(--transition-normal);
  }
  
  nav.active {
    right: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .contact-form-container {
    padding: 2rem;
  }
}

/* --- Scroll-Driven Reveal Animations --- */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes revealLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes revealRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Native scroll-driven reveal using view() timeline */
@supports (animation-timeline: view()) {
  .section-header,
  .feature-card,
  .strength-card,
  .service-block,
  .contact-item,
  .vision-box,
  .mission-box {
    animation: revealUp auto ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }

  .about-text {
    animation: revealLeft auto ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }

  .about-graphics {
    animation: revealRight auto ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }

  .map-wrapper {
    animation: revealScale auto ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }

  .contact-form-container {
    animation: revealRight auto ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }

}

/* JS-driven fallback for browsers without view() support */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Stagger children for a cascade effect */
.features-grid .feature-card:nth-child(2),
.strengths-grid .strength-card:nth-child(2) { animation-delay: 0.05s; }
.features-grid .feature-card:nth-child(3),
.strengths-grid .strength-card:nth-child(3) { animation-delay: 0.1s; }
.features-grid .feature-card:nth-child(4),
.strengths-grid .strength-card:nth-child(4) { animation-delay: 0.15s; }
.features-grid .feature-card:nth-child(5) { animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(6) { animation-delay: 0.25s; }
.features-grid .feature-card:nth-child(7) { animation-delay: 0.3s; }
.features-grid .feature-card:nth-child(8) { animation-delay: 0.35s; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-bg {
    transform: none !important;
  }
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }

/* --- Success Modal Popup --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 25, 47, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 90%;
  max-width: 450px;
  padding: 3rem 2.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -15px rgba(10, 25, 47, 0.2);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: hsla(145, 80%, 40%, 0.1);
  color: hsl(145, 80%, 35%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  border: 2px solid hsla(145, 80%, 40%, 0.2);
  animation: popIcon 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes popIcon {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.modal-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
}
