/*
  MODILLIONS - CSS Stylesheet
  Design System: Neumorphism with Distorted Grids
  Color Scheme: Tetradic
  Animation Style: Hand-drawn (inspired)
  Typography: Roboto (Headings), Lato (Body)
*/

/*--------------------------------------------------------------
# Root Variables
--------------------------------------------------------------*/
:root {
  /* Color Palette (Tetradic) & Neumorphism Base */
  --bg-color: #E0E5EC; /* Light grayish-blue, base for neumorphism */
  --bg-color-darker: #c8d0e7;
  --bg-color-lighter: #f0f5fc;

  --text-color: #3D4A5D; /* Dark grayish blue for good contrast on light bg */
  --text-color-light: #5c6f8c;
  --heading-color: #2A3647; /* Even darker for headings */
  --white: #FFFFFF;
  --black: #000000;

  /* Tetradic Accent Colors */
  --primary-color: #4A90E2;     /* Vibrant Blue */
  --primary-color-dark: #357ABD;
  --primary-color-light: #7aa9e9;

  --secondary-color: #F5A623;   /* Vibrant Orange */
  --secondary-color-dark: #D8931F;
  --secondary-color-light: #f8c05b;

  --accent-color-1: #50E3C2;    /* Teal/Green */
  --accent-color-1-dark: #3CBBAA;
  --accent-color-1-light: #7ef7d9;

  --accent-color-2: #BA68C8;    /* Soft Purple */
  --accent-color-2-dark: #A34FB1;
  --accent-color-2-light: #d394e0;

  /* Neumorphic Shadows */
  --neumorphic-shadow-distance: 6px;
  --neumorphic-shadow-blur: 12px;
  --neumorphic-shadow-convex-light: calc(var(--neumorphic-shadow-distance) * -1) calc(var(--neumorphic-shadow-distance) * -1) var(--neumorphic-shadow-blur) var(--white);
  --neumorphic-shadow-convex-dark: var(--neumorphic-shadow-distance) var(--neumorphic-shadow-distance) var(--neumorphic-shadow-blur) #a3b1c6; /* Darker shadow color based on bg */

  --neumorphic-shadow-concave-light: inset calc(var(--neumorphic-shadow-distance) * -1 / 2) calc(var(--neumorphic-shadow-distance) * -1 / 2) calc(var(--neumorphic-shadow-blur) / 2) var(--white);
  --neumorphic-shadow-concave-dark: inset calc(var(--neumorphic-shadow-distance) / 2) calc(var(--neumorphic-shadow-distance) / 2) calc(var(--neumorphic-shadow-blur) / 2) #a3b1c6;

  /* Typography */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;

  /* Layout & Spacing */
  --section-padding-y: 80px;
  --container-padding-x: 15px;
  --grid-gap: 30px;
  --border-radius: 15px; /* Standard border radius for neumorphic elements */
  --border-radius-small: 8px;

  /* Transitions */
  --transition-speed: 0.3s;
  --transition-easing: ease-in-out;

  /* Header */
  --header-height: 80px;
}

/*--------------------------------------------------------------
# Global Styles
--------------------------------------------------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base font size */
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.7;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  margin-bottom: 0.75em;
  line-height: 1.3;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for headings */
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
  margin-bottom: 1.25em;
}

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

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

ul, ol {
  list-style-position: inside;
  margin-bottom: 1em;
  padding-left: 20px; /* For actual bullet/number visibility */
}
ul li, ol li {
    margin-bottom: 0.5em;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

.section-padding {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: var(--heading-color);
  position: relative;
}
.section-title::after { /* Subtle underline effect */
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*--------------------------------------------------------------
# Neumorphic Elements & Buttons (Global)
--------------------------------------------------------------*/
.neumorphic {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--neumorphic-shadow-convex-light), var(--neumorphic-shadow-convex-dark);
  transition: box-shadow var(--transition-speed) var(--transition-easing), transform var(--transition-speed) var(--transition-easing);
}
.neumorphic:hover, .neumorphic:focus-within {
  box-shadow: var(--neumorphic-shadow-concave-light), var(--neumorphic-shadow-concave-dark);
  transform: translateY(-2px);
}
.neumorphic:active {
  box-shadow: var(--neumorphic-shadow-concave-light), var(--neumorphic-shadow-concave-dark);
  transform: translateY(1px);
}

.neumorphic-image {
  border-radius: var(--border-radius);
  box-shadow: var(--neumorphic-shadow-convex-light), var(--neumorphic-shadow-convex-dark);
  overflow: hidden; /* To clip image to rounded corners */
}
.neumorphic-image img {
    border-radius: var(--border-radius); /* If image itself needs rounding */
}

.neumorphic-panel {
  padding: 30px;
}

/* Global Button Styles */
.btn, button, input[type="submit"], input[type="button"] {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: var(--bg-color); /* Base for neumorphic effect */
  border: none; /* Neumorphism usually avoids borders */
  padding: 12px 28px;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius-small);
  text-decoration: none;
  transition: all var(--transition-speed) var(--transition-easing);
  box-shadow: var(--neumorphic-shadow-convex-light), var(--neumorphic-shadow-convex-dark);
  color: var(--primary-color);
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover,
.btn:focus, button:focus, input[type="submit"]:focus, input[type="button"]:focus {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--neumorphic-shadow-concave-light), var(--neumorphic-shadow-concave-dark), 0 4px 15px rgba(0,0,0,0.1);
  color: var(--primary-color-dark);
  outline: none;
}

.btn:active, button:active, input[type="submit"]:active, input[type="button"]:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: var(--neumorphic-shadow-concave-light), var(--neumorphic-shadow-concave-dark);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1), var(--neumorphic-shadow-convex-light), var(--neumorphic-shadow-convex-dark); /* Override for colored buttons */
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-color-dark);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15), var(--neumorphic-shadow-concave-light), var(--neumorphic-shadow-concave-dark);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1), var(--neumorphic-shadow-convex-light), var(--neumorphic-shadow-convex-dark);
}
.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-color-dark);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15), var(--neumorphic-shadow-concave-light), var(--neumorphic-shadow-concave-dark);
}


/* Forms */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--heading-color);
}
.neumorphic-input, .neumorphic-textarea {
  width: 100%;
  padding: 12px 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-color);
  background-color: var(--bg-color);
  border: none;
  border-radius: var(--border-radius-small);
  box-shadow: var(--neumorphic-shadow-concave-light), var(--neumorphic-shadow-concave-dark); /* Inset appearance for input fields */
  transition: box-shadow var(--transition-speed) var(--transition-easing);
}
.neumorphic-input:focus, .neumorphic-textarea:focus {
  outline: none;
  box-shadow: var(--neumorphic-shadow-concave-light), var(--neumorphic-shadow-concave-dark),
              0 0 0 2px var(--primary-color-light); /* Focus ring */
}
.neumorphic-textarea {
  min-height: 120px;
  resize: vertical;
}


/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.site-header {
  background-color: var(--bg-color);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--neumorphic-shadow-convex-dark); /* Subtle shadow for fixed header */
  height: var(--header-height);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}
.logo:hover {
  color: var(--primary-color-dark);
  text-decoration: none;
}

.main-navigation .nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation .nav-list li {
  margin-left: 25px;
}
.main-navigation .nav-list a {
  font-family: var(--font-heading);
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-speed) var(--transition-easing);
}
.main-navigation .nav-list a:hover,
.main-navigation .nav-list a.active { /* Assuming JS adds 'active' class */
  color: var(--primary-color);
}
.main-navigation .nav-list a::after { /* Underline effect */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) var(--transition-easing);
}
.main-navigation .nav-list a:hover::after,
.main-navigation .nav-list a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none; /* Hidden by default, shown on mobile */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001; /* Above nav list on mobile */
  box-shadow: none; /* Remove global button shadow */
}
.menu-toggle:hover, .menu-toggle:focus {
    background: none;
    transform: none;
    box-shadow: none;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--heading-color);
  position: relative;
  transition: background-color 0s var(--transition-speed) var(--transition-easing); /* Instant change for middle bar */
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--heading-color);
  transition: transform var(--transition-speed) var(--transition-easing), top var(--transition-speed) var(--transition-easing) var(--transition-speed);
}
.hamburger::before {
  top: -8px;
}
.hamburger::after {
  top: 8px;
}

/* Active state for hamburger */
.menu-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent; /* Middle bar disappears */
}
.menu-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
  transition: top var(--transition-speed) var(--transition-easing), transform var(--transition-speed) var(--transition-easing) var(--transition-speed);
}
.menu-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
  transition: top var(--transition-speed) var(--transition-easing), transform var(--transition-speed) var(--transition-easing) var(--transition-speed);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--white); /* Text color set in HTML, ensure CSS doesn't override */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--header-height));
  padding-top: var(--header-height); /* Account for fixed header */
  position: relative; /* For potential parallax children */
}
.hero-content {
  max-width: 800px;
  position: relative; /* Above pseudo-element overlay if one was added here */
  z-index: 1;
}
.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--white); /* Explicitly set for high contrast */
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: var(--white); /* Explicitly set for high contrast */
  line-height: 1.8;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}
.hero-buttons .btn {
  margin: 10px;
}
.hero-buttons .btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.hero-buttons .btn-secondary {
    background-color: var(--bg-color);
    color: var(--secondary-color); /* Text color orange for contrast on light bg */
}
.hero-buttons .btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}


/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-section .about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  align-items: center;
}
.about-section .about-text {
  color: var(--text-color-light);
}
.about-section .about-text strong {
    color: var(--heading-color);
}
.about-section .about-image img {
  border-radius: var(--border-radius);
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--grid-gap);
}
.service-icon {
  font-size: 2.5rem;
  color: var(--accent-color-1);
  margin-bottom: 15px;
  display: inline-block;
  /* "Hand-drawn" animation idea: slight, continuous wiggle or pulse */
  animation: subtleWiggle 5s infinite ease-in-out;
}

@keyframes subtleWiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-2deg) scale(1.02); }
  50% { transform: rotate(0deg) scale(1); }
  75% { transform: rotate(2deg) scale(1.02); }
}


/*--------------------------------------------------------------
# Cards (Global)
--------------------------------------------------------------*/
.card {
  padding: 25px;
  text-align: center; /* Center inline/inline-block content within card-content */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center card-image and card-content */
  background-color: var(--bg-color); /* Ensure cards have neumorphic base color */
  overflow: hidden; /* Ensure content respects border-radius */
}
.card .card-image { /* This is the .image-container for cards */
  width: 100%;
  height: 200px; /* Fixed height for card images */
  margin-bottom: 20px;
  border-radius: var(--border-radius-small); /* Rounded corners for image container */
}
.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-small); /* Match container's radius */
}
.card .card-content {
  width: 100%;
}
.card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 0;
}
.card p {
  color: var(--text-color-light);
  font-size: 0.95rem;
}
.card .btn {
    margin-top: 15px;
}

/*--------------------------------------------------------------
# Case Studies Section (Timeline)
--------------------------------------------------------------*/
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::after { /* The central line */
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--accent-color-2);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
  box-shadow: var(--neumorphic-shadow-convex-light), var(--neumorphic-shadow-convex-dark);
}
.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: transparent; /* Items themselves are not neumorphic, content is */
  width: 50%;
  box-shadow: none; /* Override global .neumorphic if applied to .timeline-item */
}
.timeline-item:nth-child(odd) {
  left: 0;
  padding-left: 0; /* Adjust padding for items */
  padding-right: calc(40px + 20px); /* 40px for spacing + 20px for icon */
}
.timeline-item:nth-child(even) {
  left: 50%;
  padding-right: 0;
  padding-left: calc(40px + 20px);
}
/* Circle on the timeline */
.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px; /* Adjust based on item side */
  background-color: var(--bg-color);
  border: 4px solid var(--accent-color-2);
  top: 25px; /* Align with content or specific point */
  border-radius: 50%;
  z-index: 1;
  box-shadow: var(--neumorphic-shadow-convex-light), var(--neumorphic-shadow-convex-dark);
}
.timeline-item:nth-child(even)::after {
  left: -10px; /* Adjust for even items */
}
.timeline-content { /* This is the .card inside .timeline-item */
  padding: 20px;
  background: var(--bg-color);
  position: relative;
  border-radius: var(--border-radius);
  /* Neumorphic style applied to .card itself via .neumorphic class */
}
.timeline-content h4 {
    color: var(--secondary-color);
}
.timeline-content p {
    font-size: 0.9rem;
}

/*--------------------------------------------------------------
# Customer Stories Section
--------------------------------------------------------------*/
.customer-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--grid-gap);
}
.testimonial-card .card-image img { /* Client logo */
  width: 100px; /* Smaller size for logos */
  height: 100px;
  object-fit: contain;
  border-radius: 50%; /* Circular logos */
  margin-bottom: 15px;
  box-shadow: var(--neumorphic-shadow-convex-light), var(--neumorphic-shadow-convex-dark);
}
.testimonial-card blockquote {
  margin: 0;
  font-style: italic;
  color: var(--text-color-light);
}
.testimonial-card blockquote p {
  margin-bottom: 1em;
}
.testimonial-card footer {
  font-style: normal;
  font-weight: bold;
  color: var(--heading-color);
  margin-top: 15px;
  display: block;
}

/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--border-radius);
  position: relative; /* For potential overlays or captions */
  background-color: var(--bg-color); /* Base for neumorphic image frame */
}
.gallery-item img {
  width: 100%;
  height: 200px; /* Consistent height for gallery images */
  object-fit: cover;
  transition: transform var(--transition-speed) var(--transition-easing), filter var(--transition-speed) var(--transition-easing);
}
.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.neumorphic-image-frame {
  padding: 10px; /* Create the "frame" effect */
}


/*--------------------------------------------------------------
# Careers Section
--------------------------------------------------------------*/
.careers-section .careers-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  align-items: center;
}
.careers-section .careers-text ul {
    list-style-type: disc;
    padding-left: 25px;
}
.careers-section .careers-text ul li {
    margin-bottom: 0.8em;
    color: var(--text-color-light);
}
.careers-section .careers-image img {
  border-radius: var(--border-radius);
}

/*--------------------------------------------------------------
# External Resources Section
--------------------------------------------------------------*/
.external-resources-section .section-description {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    color: var(--text-color-light);
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--grid-gap);
}
.resource-card .card-content h3 a {
    color: var(--primary-color);
    font-size: 1.3rem;
}
.resource-card .card-content h3 a:hover {
    color: var(--primary-color-dark);
}
.resource-card .card-content p {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}
.contact-info h3, .contact-form-container h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}
.contact-info p {
  margin-bottom: 10px;
  color: var(--text-color-light);
}
.contact-info strong {
  color: var(--heading-color);
}
.contact-info address {
  font-style: normal;
  line-height: 1.6;
  color: var(--text-color-light);
}
.contact-info a {
    color: var(--secondary-color);
}
.contact-info a:hover {
    color: var(--secondary-color-dark);
}
.contact-map {
    margin-top: 30px;
    height: 300px; /* Fixed height for map container */
}
.contact-map img {
    border-radius: var(--border-radius);
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
  background-color: var(--bg-color-darker); /* Slightly darker for footer */
  color: var(--text-color);
  padding-top: 50px;
  padding-bottom: 20px;
  border-top: 5px solid var(--primary-color-light);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--grid-gap);
  margin-bottom: 30px;
}
.footer-col h4 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.footer-col p {
  font-size: 0.9rem;
  color: var(--text-color-light);
  margin-bottom: 0.8em;
}
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li {
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--text-color);
  font-size: 0.95rem;
  transition: color var(--transition-speed) var(--transition-easing), padding-left var(--transition-speed) var(--transition-easing);
}
.footer-nav a:hover {
  color: var(--primary-color);
  padding-left: 5px;
  text-decoration: none;
}
.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.social-links li {
  margin-bottom: 10px;
}
.social-links a { /* Text-based social links styling */
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-speed) var(--transition-easing);
}
.social-links a:hover {
  color: var(--secondary-color); /* Use secondary color for social hover */
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--bg-color); /* Subtle separator */
  font-size: 0.85rem;
  color: var(--text-color-light);
}
.footer-bottom p {
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Specific Page Styles (Privacy, Terms, Success)
--------------------------------------------------------------*/
/* Apply top padding for main content on specific pages to avoid header overlap */
body.privacy-page main,
body.terms-page main,
body.about-page main, /* Assuming about.html needs this too */
body.contacts-page main { /* Assuming contacts.html needs this too */
  padding-top: calc(var(--header-height) + 40px);
}

.success-page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - var(--footer-height, 150px)); /* Adjust footer height approximation */
  text-align: center;
  padding: 40px var(--container-padding-x);
}
.success-page-content h2 {
  color: var(--accent-color-1);
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.success-page-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

/*--------------------------------------------------------------
# Distorted Grid (Example for .distorted-grid-container)
--------------------------------------------------------------*/
.distorted-grid-container {
  display: grid;
  gap: var(--grid-gap);
}

/* Example for a 2-column distorted grid on .about-content or .careers-content */
@media (min-width: 768px) {
  .about-content, .careers-content {
    grid-template-columns: 1fr 1fr; /* Or 2fr 1fr etc. */
    align-items: flex-start;
  }
  /* Slight distortion example */
  .about-content > *:nth-child(odd) {
     /* transform: translateY(-10px); */
  }
  .about-content > *:nth-child(even) {
     /* transform: translateY(10px); */
  }
}

/* Example for gallery-grid distortion */
.gallery-grid .gallery-item:nth-child(3n+1) {
  /* transform: rotate(-1deg) translateY(-5px); */
}
.gallery-grid .gallery-item:nth-child(3n+2) {
  /* transform: scale(0.98) translateY(5px); */
}
.gallery-grid .gallery-item:nth-child(3n+3) {
  /* transform: rotate(1deg); */
}


/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.sr-hidden { /* For ScrollReveal, if needed for initial state */
    visibility: hidden;
}


/*--------------------------------------------------------------
# Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  .hero-title { font-size: 3rem; }
  h2, .section-title { font-size: 2rem; }
  h3 { font-size: 1.6rem; }

  .timeline::after { left: 30px; margin-left: 0; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
  .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
    left: 0;
    padding-left: 70px; /* Space for icon and line */
    padding-right: 25px;
  }
  .timeline-item::after { left: 20px; /* Adjust icon position */ }
  .timeline-item:nth-child(even)::after { left: 20px; }

}

@media (max-width: 768px) {
  .main-navigation .nav-list {
    display: none; /* Hide by default on mobile */
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-color-lighter);
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    border-top: 1px solid var(--bg-color);
  }
  .main-navigation .nav-list.is-active { /* JS will add this class */
    display: flex;
  }
  .main-navigation .nav-list li {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
  .main-navigation .nav-list a {
    padding: 15px 20px;
    display: block;
    width: 100%;
  }
  .main-navigation .nav-list a::after { display: none; } /* Remove underline on mobile nav items */

  .menu-toggle {
    display: block;
  }

  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }

  .contact-grid,
  .about-content,
  .careers-content {
    grid-template-columns: 1fr; /* Stack columns */
  }

  .footer-grid {
    grid-template-columns: 1fr; /* Stack footer columns */
    text-align: center;
  }
  .footer-col h4 {
      margin-top: 20px;
  }
  .footer-col:first-child h4 {
      margin-top: 0;
  }
}

@media (max-width: 576px) {
  :root { --section-padding-y: 50px; }
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  .hero-buttons .btn {
    display: block;
    width: calc(100% - 20px); /* Full width buttons with margin */
    margin: 10px auto;
  }
  .services-grid, .customer-stories-grid, .gallery-grid, .resources-grid {
    grid-template-columns: 1fr;
  }
}