/* style.css */

:root {
  /* Bright & Vibrant Palette */
  --primary-color: #007AFF; /* Vibrant Blue - Apple Blue */
  --primary-color-dark: #0056b3;
  --secondary-color: #FF9500; /* Bright Orange */
  --secondary-color-dark: #cc7a00;
  --accent-color: #FF2D55; /* Bright Pink/Red */
  --accent-color-dark: #c4002a;

  /* Neutral & Text Colors */
  --text-color-dark: #1d1d1f; /* Apple's Dark Text */
  --text-color-medium: #333333; 
  --text-color-light: #f5f5f7; /* Apple's Light Text */
  --text-color-muted: #6c757d; 

  /* Backgrounds */
  --background-color-light: #FFFFFF;
  --background-color-soft: #f9f9f9; 
  --background-color-dark-overlay: rgba(0, 0, 0, 0.5); 

  /* Glassmorphism */
  --glass-bg-light: rgba(255, 255, 255, 0.6);
  --glass-border-light: rgba(255, 255, 255, 0.7);
  --glass-shadow-light: 0 8px 24px 0 rgba(0, 0, 0, 0.1);
  --glass-blur: 8px;

  /* Fonts */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-secondary: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

  /* Spacing & Borders */
  --border-radius-small: 6px;
  --border-radius-medium: 12px;
  --border-radius-large: 20px;
  --spacing-unit: 1rem; 
  --container-max-width: 1140px;
  --header-height: 70px;

  /* Transitions */
  --transition-speed-fast: 0.2s;
  --transition-speed-medium: 0.3s;
  --transition-speed-slow: 0.5s;
  --transition-easing: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and Basic Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%; /* 16px base */
}

body {
  font-family: var(--font-secondary);
  line-height: 1.65;
  color: var(--text-color-medium);
  background-color: var(--background-color-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.page-wrapper {
  overflow: hidden; /* For Barba.js transitions */
}

/* Container */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-unit);
  padding-right: var(--spacing-unit);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-color-dark);
  margin-bottom: calc(var(--spacing-unit) * 0.75);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: var(--spacing-unit); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.35rem); }

p {
  margin-bottom: var(--spacing-unit);
  font-size: 1rem; /* 16px */
  color: var(--text-color-medium);
}
p.section-intro {
    font-size: 1.1rem;
    color: var(--text-color-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed-medium) var(--transition-easing);
}
a:hover, a:focus {
  color: var(--primary-color-dark);
  text-decoration: underline;
}

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

/* Utility Classes */
.section-padding {
  padding-top: calc(var(--spacing-unit) * 4);
  padding-bottom: calc(var(--spacing-unit) * 4);
}

.section-title {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 2.5); /* Increased margin for better separation */
  color: var(--text-color-dark);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.grid-halves {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacing-unit) * 2);
  align-items: center;
}
@media (min-width: 768px) {
  .grid-halves {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Global Button Styles */
.btn, button[type="submit"], input[type="submit"] {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.75);
  border-radius: var(--border-radius-medium);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-speed-medium) var(--transition-easing);
  transform-origin: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn:hover, button[type="submit"]:hover, input[type="submit"]:hover,
.btn:focus, button[type="submit"]:focus, input[type="submit"]:focus {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  outline: none;
}
.btn:active, button[type="submit"]:active, input[type="submit"]:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  border-color: var(--primary-color);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-color-dark);
  border-color: var(--primary-color-dark);
  color: var(--text-color-light);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
  border-color: var(--secondary-color);
}
.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-color-dark);
  border-color: var(--secondary-color-dark);
  color: var(--text-color-dark);
}
.btn-hero {
  font-size: 1.1rem;
  padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2.5);
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--text-color-light);
}
.btn-hero:hover, .btn-hero:focus {
    background-color: var(--accent-color-dark);
    border-color: var(--accent-color-dark);
    color: var(--text-color-light);
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary-color);
  padding: 0;
  font-weight: 500;
  box-shadow: none;
  text-decoration: underline;
}
.btn-link:hover, .btn-link:focus {
  color: var(--primary-color-dark);
  transform: none;
  box-shadow: none;
  text-decoration: underline;
}

.btn-small {
    font-size: 0.9rem;
    padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit);
}


/* Glassmorphism Base */
.glassmorphic-card, .glassmorphic-header, .glassmorphic-footer, .glassmorphic-form, .glassmorphic-element {
  background: var(--glass-bg-light);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--border-radius-large);
  border: 1px solid var(--glass-border-light);
  box-shadow: var(--glass-shadow-light);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: calc(var(--spacing-unit) * 0.75) 0;
  transition: background-color var(--transition-speed-medium) var(--transition-easing),
              box-shadow var(--transition-speed-medium) var(--transition-easing);
  border-radius: 0; /* Full width, no rounded corners */
  border-bottom: 1px solid var(--glass-border-light);
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.85); /* More opaque on scroll */
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
}
.logo:hover {
    color: var(--primary-color-dark);
    text-decoration: none;
}

.main-nav .nav-menu {
  list-style: none;
  display: flex;
  gap: calc(var(--spacing-unit) * 1.5);
}
.main-nav .nav-menu a {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--text-color-dark);
  text-decoration: none;
  padding: calc(var(--spacing-unit) * 0.5) 0;
  position: relative;
}
.main-nav .nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed-medium) var(--transition-easing);
}
.main-nav .nav-menu a:hover::after,
.main-nav .nav-menu a.active::after {
  width: 100%;
}
.main-nav .nav-menu a:hover,
.main-nav .nav-menu a.active {
    color: var(--primary-color);
    text-decoration: none;
}


.nav-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001; /* Above nav menu */
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color-dark);
  margin: 5px 0;
  border-radius: 3px;
  transition: all var(--transition-speed-medium) var(--transition-easing);
}

/* Hero Section */
.hero-section {
  color: var(--text-color-light); /* Ensured by HTML inline style */
  padding: calc(var(--spacing-unit) * 6) 0;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh; /* Ensure it's substantial but not excessively tall */
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)); /* Darker gradient for better readability */
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-title {
  color: var(--text-color-light); /* Ensured by HTML inline style */
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light); /* Ensured by HTML inline style */
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* About Us Section */
.about-us-section .about-text p {
    margin-bottom: calc(var(--spacing-unit) * 1.25);
}
.about-image-container img {
  border-radius: var(--border-radius-large);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Patterned Background Sections */
.patterned-background {
  background-color: var(--background-color-soft);
  /* background-image: url('image/subtle-texture.png'); /* Example, if a global texture is desired */
  /* background-repeat: repeat; */
}

/* Cards (Services, Projects, Testimonials, Events, Resources) */
.services-grid, .projects-grid, .resources-grid, .events-list, .testimonials-slider {
  display: grid;
  gap: calc(var(--spacing-unit) * 2);
}

@media (min-width: 768px) {
  .services-grid, .projects-grid, .resources-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}
@media (min-width: 576px) and (max-width: 767px) {
  .services-grid, .projects-grid, .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.card {
  background-color: var(--background-color-light);
  border-radius: var(--border-radius-large);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform var(--transition-speed-medium) var(--transition-easing), 
              box-shadow var(--transition-speed-medium) var(--transition-easing);
  display: flex;
  flex-direction: column;
  height: 100%; /* For equal height cards in a grid row */
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.card.glassmorphic-card {
    /* Glassmorphism properties are already defined */
    background: var(--glass-bg-light); /* Ensure this overrides default card bg */
}

.card .card-image { /* This is the div container for the image */
  width: 100%;
  height: 200px; /* Fixed height for consistent card image sizes */
  overflow: hidden;
}
.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area, may crop */
  display: block; /* Removes bottom space under image */
  transition: transform var(--transition-speed-slow) var(--transition-easing);
}
.card:hover .card-image img {
  transform: scale(1.05);
}

.card .card-content {
  padding: calc(var(--spacing-unit) * 1.5);
  text-align: center; /* Center text content */
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Allows content to expand and push cta to bottom */
}
.card .card-title {
  margin-top: 0;
  margin-bottom: calc(var(--spacing-unit) * 0.75);
  color: var(--text-color-dark);
  font-size: 1.35rem;
}
.card .card-content p {
  color: var(--text-color-medium);
  font-size: 0.95rem;
  flex-grow: 1; /* Push button to bottom in flex column */
  margin-bottom: var(--spacing-unit);
}
.card .card-content .btn {
    margin-top: auto; /* Pushes button to the bottom if content above is shorter */
}


/* Testimonial Card Specifics */
.testimonial-card .testimonial-author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto calc(var(--spacing-unit) * 1); /* Centered */
    border: 3px solid var(--primary-color);
}
.testimonial-card .testimonial-author-image img {
    border-radius: 50%;
}
.testimonial-card .card-content p {
    font-style: italic;
    color: var(--text-color-muted);
    margin-bottom: var(--spacing-unit);
}
.testimonial-card cite {
    font-weight: 500;
    color: var(--text-color-dark);
    font-style: normal;
}
.testimonials-slider {
    /* If using a JS slider, it might control columns. This is a fallback. */
    display: grid;
    grid-template-columns: 1fr; /* Default for mobile */
    gap: var(--spacing-unit) * 1.5;
}
@media (min-width: 768px) {
    .testimonials-slider {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}


/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-unit);
}
.gallery-item img {
  border-radius: var(--border-radius-medium);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform var(--transition-speed-medium) var(--transition-easing), 
              box-shadow var(--transition-speed-medium) var(--transition-easing);
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.gallery-item img:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* News Section (Accordion) */
.accordion-container {
  max-width: 800px;
  margin: 0 auto;
}
.accordion-item {
  margin-bottom: var(--spacing-unit);
  border-radius: var(--border-radius-medium); /* Already part of glassmorphic */
  overflow: hidden;
}
.accordion-item.glassmorphic-element { /* Ensure glassmorphism applies correctly */
  border: 1px solid var(--glass-border-light); 
}

.accordion-header {
  background-color: transparent; /* Let glassmorphism handle it */
  color: var(--text-color-dark);
  cursor: pointer;
  padding: calc(var(--spacing-unit) * 1.25) var(--spacing-unit);
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-speed-medium) var(--transition-easing);
}
.accordion-header:hover {
  /* background-color: rgba(0,0,0,0.03); /* Subtle hover if not glass */
}
.accordion-icon {
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform var(--transition-speed-medium) var(--transition-easing);
}
.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}
.accordion-content {
  padding: 0 var(--spacing-unit);
  max-height: 0;
  overflow: hidden;
  background-color: transparent; /* Let glassmorphism show through */
  transition: max-height var(--transition-speed-medium) var(--transition-easing), 
              padding var(--transition-speed-medium) var(--transition-easing);
}
.accordion-content p {
    padding: var(--spacing-unit) 0;
    margin-bottom: 0;
    color: var(--text-color-medium);
}
.accordion-item.active .accordion-content {
  max-height: 500px; /* Adjust as needed */
  padding: var(--spacing-unit);
}


/* Events Calendar Section */
.event-item .card-title {
    font-size: 1.25rem;
}
.event-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    font-weight: 500;
}
.event-item .card-content p {
    font-size: 0.9rem;
}
.event-register-btn {
    margin-top: var(--spacing-unit);
}


/* External Resources Section */
.resource-card .card-title {
    font-size: 1.2rem;
}
.resource-description {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    margin-bottom: var(--spacing-unit);
}


/* Contact Section */
.contact-form-container {
  padding: calc(var(--spacing-unit) * 2);
  margin-bottom: calc(var(--spacing-unit) * 2);
}
.form-group {
  margin-bottom: calc(var(--spacing-unit) * 1.25);
}
.form-group label {
  display: block;
  margin-bottom: calc(var(--spacing-unit) * 0.4);
  font-weight: 500;
  color: var(--text-color-dark);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: calc(var(--spacing-unit) * 0.75);
  border: 1px solid #ced4da;
  border-radius: var(--border-radius-small);
  font-family: var(--font-secondary);
  font-size: 1rem;
  background-color: rgba(255,255,255,0.8); /* Slightly transparent for glass effect */
  transition: border-color var(--transition-speed-medium) var(--transition-easing), 
              box-shadow var(--transition-speed-medium) var(--transition-easing);
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb, 0, 123, 255), 0.25); /* Assuming --primary-color-rgb is defined or use actual RGB */
  outline: none;
  background-color: var(--background-color-light);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-details {
    text-align: center;
    color: var(--text-color-medium);
}
.contact-details p {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}
.contact-details strong {
    color: var(--text-color-dark);
}

/* Toggle Switch */
.form-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Or start, depending on desired layout */
}
.toggle-label {
    margin-right: var(--spacing-unit);
    margin-bottom: 0; /* Override default label margin */
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px; /* Smaller switch */
  height: 28px; /* Smaller switch */
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px; /* Adjusted */
  width: 20px;  /* Adjusted */
  left: 4px;    /* Adjusted */
  bottom: 4px;  /* Adjusted */
  background-color: white;
  transition: .4s;
}
input:checked + .slider {
  background-color: var(--primary-color);
}
input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-color);
}
input:checked + .slider:before {
  transform: translateX(22px); /* Adjusted */
}
.slider.round {
  border-radius: 28px; /* Adjusted */
}
.slider.round:before {
  border-radius: 50%;
}


/* Footer */
.site-footer {
  padding: calc(var(--spacing-unit) * 3) 0 calc(var(--spacing-unit) * 1.5);
  color: var(--text-color-medium);
  border-top: 1px solid var(--glass-border-light);
  border-radius: 0; /* Full width, no rounded corners */
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: calc(var(--spacing-unit) * 2);
  margin-bottom: calc(var(--spacing-unit) * 2);
}
.site-footer h4 {
  color: var(--text-color-dark);
  margin-bottom: var(--spacing-unit);
  font-size: 1.15rem;
}
.site-footer p, .site-footer ul li a {
  font-size: 0.95rem;
  color: var(--text-color-medium);
}
.site-footer ul {
  list-style: none;
}
.site-footer ul li {
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}
.site-footer ul li a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
.footer-social .social-links-text a {
    /* Text links, standard 'a' styling applies */
}
.footer-copyright {
  text-align: center;
  padding-top: calc(var(--spacing-unit) * 1.5);
  border-top: 1px solid rgba(var(--text-color-dark-rgb, 0,0,0), 0.1); /* Assuming --text-color-dark-rgb */
  font-size: 0.9rem;
  color: var(--text-color-muted);
}

/* Specific Page Styles */
/* For success.html */
body.success-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.success-page main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-unit);
}
.success-content {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius-large);
    box-shadow: var(--glass-shadow-light);
    border: 1px solid var(--glass-border-light);
}
.success-content h1 {
    color: var(--primary-color);
}
.success-content p {
    font-size: 1.1rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

/* For privacy.html and terms.html */
body.privacy-page main,
body.terms-page main {
  padding-top: calc(var(--header-height) + var(--spacing-unit) * 2); /* Header height + extra space */
  padding-bottom: calc(var(--spacing-unit) * 3);
}
.privacy-page .container h1,
.terms-page .container h1 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.privacy-page .container h2,
.terms-page .container h2 {
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: var(--spacing-unit);
}

/* Cookie Popup (Minimal styling from HTML, this is a fallback/enhancement) */
#cookie-popup {
  box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}
#cookie-popup p a {
  color: var(--secondary-color); /* Make link stand out on dark bg */
}
#accept-cookie-btn {
    background-color: var(--primary-color); /* Align with site buttons */
}
#accept-cookie-btn:hover {
    background-color: var(--primary-color-dark);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .main-nav .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height); /* Position below header */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: var(--spacing-unit);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    border-top: 1px solid var(--glass-border-light);
  }
  .main-nav .nav-menu.is-active {
    display: flex;
  }
  .main-nav .nav-menu li {
    text-align: center;
    margin-bottom: var(--spacing-unit);
  }
  .nav-toggle {
    display: block;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .section-title { font-size: 1.8rem; }
  p.section-intro { font-size: 1rem; }

  .footer-container {
    grid-template-columns: 1fr; /* Stack columns on mobile */
    text-align: center;
  }
  .footer-container > div {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
  }
}

/* ScrollReveal initial states (optional, ScrollReveal can handle this) */
[data-scroll-reveal] {
  /* By default, ScrollReveal sets opacity to 0 and visibility to hidden */
  /* You can add base styles here if you want them to be consistently different */
}