/* style.css */

/*------------------------------------*\
  #CSS VARIABLES
\*------------------------------------*/
:root {
    --primary-color: #A0D2DB; /* Pastel Blue/Teal */
    --primary-color-darker: #79BCCF;
    --secondary-color: #F8B195; /* Pastel Peach/Coral */
    --secondary-color-darker: #F59A73;
    --accent-color: #C3AED6; /* Pastel Lavender */
    --accent-color-darker: #A98BC9;

    --background-color: #FDF6F0; /* Very Light Cream/Beige */
    --alt-background-color: #F5F5F5; /* Light Grey for alternating sections */
    --card-background-color: #FFFFFF;
    --footer-background-color: #E0E0E0; /* Slightly darker neutral for footer */

    --text-color: #333333;
    --text-color-light: #FFFFFF;
    --text-color-subtle: #555555;
    --text-color-headings: #222222;

    --font-family-headings: 'Raleway', sans-serif;
    --font-family-body: 'Open Sans', sans-serif;

    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 12px;

    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 8px 24px rgba(0, 0, 0, 0.12);

    --header-height: 80px;
    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;

    --gradient-dynamic: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-dynamic-hover: linear-gradient(135deg, var(--primary-color-darker), var(--secondary-color-darker));
}

/*------------------------------------*\
  #BASE STYLES & MODERN NORMALIZE COMPLEMENTS
\*------------------------------------*/
*,
*::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-family-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page transition overlay */
#page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 99999;
    opacity: 1;
    pointer-events: none;
    transition: opacity var(--transition-speed-normal) ease-in-out;
}

body.loaded #page-transition-overlay {
    opacity: 0;
}


/* Particle Animation Background */
#particles-js-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind all content */
    background-color: var(--background-color); /* Fallback */
}


/*------------------------------------*\
  #TYPOGRAPHY
\*------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--text-color-headings);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05); /* Subtle shadow for dark titles */
}

h1 { font-size: 2.8rem; font-weight: 900; margin-bottom: 0.5em; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-color-subtle);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed-fast) ease;
}

a:hover, a:focus {
    color: var(--primary-color-darker);
    text-decoration: underline;
}

strong {
    font-weight: 600; /* Open Sans bold */
}

/*------------------------------------*\
  #LAYOUT & CONTAINER
\*------------------------------------*/
.container {
    width: 90%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
}

.alt-bg {
    background-color: var(--alt-background-color);
}

.section-title {
    text-align: center;
    margin-bottom: 1.5em; /* More space after title */
    font-size: 2.5rem; /* Larger section titles */
    color: var(--text-color-headings);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color-subtle);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3em;
}

/* For privacy and terms pages, ensure content is below fixed header */
.privacy-page-content,
.terms-page-content,
.success-page-content {
    padding-top: calc(var(--header-height) + 40px); /* Header height + some margin */
    padding-bottom: 40px;
}

.success-page-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.success-page-content h1 {
    color: var(--primary-color);
}


/*------------------------------------*\
  #BUTTONS (GLOBAL)
\*------------------------------------*/
.button, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-family-headings);
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0.8em 1.8em;
    font-size: 1rem;
    border-radius: var(--border-radius-medium);
    transition: all var(--transition-speed-normal) ease;
    text-decoration: none;
    line-height: 1.5;
    box-shadow: var(--shadow-light);
}

.button-primary {
    background-image: var(--gradient-dynamic);
    color: var(--text-color-light);
    border-color: transparent; /* Gradient buttons might not need border */
}

.button-primary:hover, .button-primary:focus {
    background-image: var(--gradient-dynamic-hover);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

.button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.button-secondary:hover, .button-secondary:focus {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

.read-more-link {
    font-weight: 700;
    color: var(--secondary-color);
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    position: relative;
}
.read-more-link::after {
    content: ' →';
}
.read-more-link:hover, .read-more-link:focus {
    color: var(--secondary-color-darker);
    text-decoration: underline;
}


/*------------------------------------*\
  #FORMS (GLOBAL)
\*------------------------------------*/
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color-subtle);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 0.9em 1em;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-small);
    font-family: var(--font-family-body);
    font-size: 1rem;
    color: var(--text-color);
    background-color: #fff;
    transition: border-color var(--transition-speed-fast) ease, box-shadow var(--transition-speed-fast) ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.2); /* Check RGB conversion for primary color */
}

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

/*------------------------------------*\
  #HEADER & NAVIGATION
\*------------------------------------*/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Glassmorphism */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    transition: background-color var(--transition-speed-normal) ease, box-shadow var(--transition-speed-normal) ease;
}

.site-header.scrolled { /* JS can add this class on scroll */
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-medium);
}

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

.site-logo {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
}
.site-logo:hover {
    color: var(--primary-color-darker);
}

.main-navigation .nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation .nav-links li {
    margin-left: 25px;
}

.main-navigation .nav-links a {
    font-family: var(--font-family-headings);
    font-weight: 600;
    color: var(--text-color-subtle);
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    transition: color var(--transition-speed-fast) ease;
}

.main-navigation .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed-normal) ease;
}

.main-navigation .nav-links a:hover,
.main-navigation .nav-links a:focus,
.main-navigation .nav-links a.active { /* JS can add 'active' class */
    color: var(--primary-color);
}

.main-navigation .nav-links a:hover::after,
.main-navigation .nav-links a:focus::after,
.main-navigation .nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above nav links when open */
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color-headings);
    position: relative;
    transition: transform var(--transition-speed-normal) ease, background-color var(--transition-speed-normal) ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 3px;
    background-color: var(--text-color-headings);
    transition: transform var(--transition-speed-normal) ease, top var(--transition-speed-normal) ease, bottom var(--transition-speed-normal) ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Mobile Menu Open State */
.menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent; /* Middle bar disappears */
}
.menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}


/*------------------------------------*\
  #HERO SECTION
\*------------------------------------*/
.hero-section {
    min-height: 85vh; /* Ensure it takes up a good portion of the viewport */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light); /* IMPORTANT: Hero text is white */
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* background-attachment: fixed; /* Simple parallax effect */
    padding: 100px 0; /* Ensure content isn't at very top/bottom */
}

.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.6)); /* Darkening overlay for text readability */
    z-index: 1;
}

.hero-content-container {
    position: relative; /* Above overlay */
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem; /* Larger for hero */
    font-weight: 900;
    color: var(--text-color-light); /* Explicitly white */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5); /* Stronger shadow for readability on varied backgrounds */
    margin-bottom: 0.5em;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-color-light); /* Explicitly white */
    opacity: 0.9;
    margin-bottom: 1.5em;
    line-height: 1.6;
}

.hero-section .button-primary {
    padding: 1em 2.5em;
    font-size: 1.1rem;
}

/*------------------------------------*\
  #CARDS (GLOBAL STYLES for .card)
\*------------------------------------*/
.card {
    background-color: var(--card-background-color);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: transform var(--transition-speed-normal) ease, box-shadow var(--transition-speed-normal) ease;
    display: flex;
    flex-direction: column;
    /* align-items: center; /* Center content, especially image */
    height: 100%; /* For consistent height in grids */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.card-image { /* Container for the image */
    width: 100%;
    /* height: 200px; /* Fixed height for consistency in grids */
    aspect-ratio: 16 / 10; /* Maintain aspect ratio */
    overflow: hidden;
    display: flex; /* For centering image if smaller */
    justify-content: center;
    align-items: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crucial for consistent image display */
    display: block; /* Remove bottom space */
    transition: transform var(--transition-speed-normal) ease;
}
.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.8rem;
    flex-grow: 1; /* Allows content to fill remaining card space */
    display: flex;
    flex-direction: column;
}
.card-content .card-title {
    font-size: 1.4rem;
    color: var(--text-color-headings);
    margin-bottom: 0.75rem;
}
.card-content p {
    font-size: 0.95rem;
    color: var(--text-color-subtle);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1; /* Pushes actions (like read more) to bottom if card has fixed height */
}
.card-content cite {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-top: auto; /* Pushes cite to bottom */
    display: block;
    text-align: right;
}

/*------------------------------------*\
  #MISSION SECTION
\*------------------------------------*/
.mission-section .content-text {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: left; /* Or center if preferred for mission */
}
.mission-section .content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}
.mission-image-container {
    text-align: center; /* Center image */
    margin-top: 2rem;
}
.mission-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-strong);
}

/*------------------------------------*\
  #PROJECTS SECTION
\*------------------------------------*/
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.project-card {
    text-align: left; /* Content within card */
}

/*------------------------------------*\
  #METHODOLOGY SECTION (TIMELINE)
\*------------------------------------*/
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after { /* The central line */
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: var(--border-radius-small);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* Circles on the timeline */
.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    line-height: 50px;
    right: -25px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: 4px solid var(--background-color); /* To make it pop from the line */
    top: 20px; /* Adjust as needed */
    border-radius: 50%;
    z-index: 1;
    text-align: center;
    font-weight: bold;
    font-family: var(--font-family-headings);
}

/* Place items on left and right */
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(odd) .timeline-icon {
    right: -25px; /* (50px icon width / 2) */
}

.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -25px; /* (50px icon width / 2) */
}

/* Arrow pointing to the line */
.timeline-item::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 32px; /* Align with icon center */
    width: 0;
    z-index: 1;
    border: medium solid var(--card-background-color);
}
.timeline-item:nth-child(odd)::before {
    right: 30px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--card-background-color);
}
.timeline-item:nth-child(even)::before {
    left: 30px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--card-background-color) transparent transparent;
}


.timeline-content {
    padding: 20px 30px;
    background-color: var(--card-background-color);
    position: relative;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
}
.timeline-content .timeline-title {
    margin-top: 0;
    color: var(--primary-color);
}

/*------------------------------------*\
  #CASE STUDIES SECTION (ACCORDION)
\*------------------------------------*/
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    background-color: var(--card-background-color);
}

.accordion-header {
    background-color: transparent;
    color: var(--text-color-headings);
    cursor: pointer;
    padding: 1rem 1.5rem;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-family-headings);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed-fast);
}
.accordion-header:hover {
    background-color: #f9f9f9;
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform var(--transition-speed-normal) ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 1.5rem; /* Padding applied when open */
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed-normal) ease-out, padding var(--transition-speed-normal) ease-out;
}
.accordion-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}
.accordion-item.active .accordion-content {
    padding: 1.5rem;
    /* max-height will be set by JS, or a large enough value like 1000px */
}
.case-study-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-medium);
    margin-top: 1rem;
    box-shadow: var(--shadow-light);
}

/*------------------------------------*\
  #SUCCESS STORIES (TESTIMONIALS)
\*------------------------------------*/
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center image and text content */
    text-align: center;
}
.testimonial-card .card-image { /* Specific for circular testimonial images */
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
    overflow: hidden; /* Ensures image stays circular */
}
.testimonial-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testimonial-card .card-content p {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}
.testimonial-card .card-content cite {
    font-weight: 600;
    color: var(--text-color-headings);
    text-align: center;
}

/*------------------------------------*\
  #PARTNERS SECTION
\*------------------------------------*/
.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
}
.partner-logo {
    text-align: center;
}
.partner-logo img {
    max-height: 80px; /* Control logo height */
    width: auto;
    max-width: 150px; /* Control logo width */
    filter: grayscale(80%);
    opacity: 0.7;
    transition: filter var(--transition-speed-normal), opacity var(--transition-speed-normal);
}
.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
.partner-logo p {
    font-size: 0.9rem;
    color: var(--text-color-subtle);
    margin-top: 0.5rem;
    font-weight: 600;
}
.partners-section .content-text {
    max-width: 800px;
    margin: 2rem auto 0 auto;
    text-align: center;
}

/*------------------------------------*\
  #NEWS SECTION
\*------------------------------------*/
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.news-card .card-content {
    text-align: left;
}

/*------------------------------------*\
  #EXTERNAL RESOURCES SECTION
\*------------------------------------*/
.resources-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}
.resource-item {
    background-color: var(--card-background-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed-normal) ease, box-shadow var(--transition-speed-normal) ease;
}
.resource-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}
.resource-item .resource-title a {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}
.resource-item .resource-title a:hover {
    text-decoration: underline;
    color: var(--primary-color-darker);
}
.resource-item .resource-description {
    font-size: 0.95rem;
    color: var(--text-color-subtle);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/*------------------------------------*\
  #CONTACT SECTION
\*------------------------------------*/
.contact-form-container {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    padding: 2.5rem;
    background-color: var(--card-background-color);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-strong);
}
.contact-info {
    text-align: center;
    margin-top: 2rem;
}
.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.contact-info a {
    color: var(--secondary-color);
    font-weight: 600;
}
.contact-info a:hover {
    color: var(--secondary-color-darker);
}

/*------------------------------------*\
  #FOOTER
\*------------------------------------*/
.site-footer {
    background-color: var(--footer-background-color);
    color: var(--text-color-subtle);
    padding-top: 50px;
    padding-bottom: 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column .footer-heading {
    font-size: 1.3rem;
    color: var(--text-color-headings);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-column p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-links, .footer-social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li, .footer-social-links li {
    margin-bottom: 0.75rem;
}

.footer-links a, .footer-social-links a, .footer-email a {
    color: var(--text-color-subtle);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-speed-fast) ease;
}

.footer-links a:hover, .footer-social-links a:hover, .footer-email a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-social-links a {
    font-weight: 600; /* Make social links slightly bolder */
}

.footer-email {
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #ccc;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/*------------------------------------*\
  #UTILITY CLASSES
\*------------------------------------*/
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none; }

/* ScrollReveal classes (elements are initially hidden) */
.reveal-on-scroll {
    visibility: hidden;
}

/*------------------------------------*\
  #RESPONSIVE STYLES (MEDIA QUERIES)
\*------------------------------------*/

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    h1 { font-size: 2.4rem; }
    .hero-title { font-size: 2.8rem; }
    h2, .section-title { font-size: 1.9rem; }
    .hero-subtitle { font-size: 1.1rem; }

    .timeline::after { left: 31px; } /* Adjust central line for mobile */
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; }
    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 6px; /* ( (60px icon container padding-left) / 2 ) - (50px icon width / 2)  */
    }
    .timeline-item::before { /* Arrows for mobile */
        left: 60px;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--card-background-color) transparent transparent;
    }
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 50px; /* Adjust arrow position for all items */
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--card-background-color) transparent transparent;
    }

    .footer-content {
        grid-template-columns: 1fr; /* Stack columns */
        text-align: center;
    }
    .footer-column {
        margin-bottom: 1.5rem;
    }
    .footer-links, .footer-social-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .site-header { height: auto; min-height: 70px; } /* Adjust header height */
    .header-content {
        flex-direction: row; /* Keep logo and toggle on same line */
        align-items: center;
        padding: 10px 0;
    }
    .menu-toggle {
        display: block; /* Show burger menu */
    }
    .main-navigation .nav-links {
        display: none; /* Hide links by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Position below header content */
        left: 0;
        background-color: rgba(255, 255, 255, 0.98); /* Solid background for dropdown */
        backdrop-filter: blur(5px);
        padding: 1rem 0;
        box-shadow: var(--shadow-medium);
        border-top: 1px solid #eee;
    }
    .main-navigation .nav-links.is-open {
        display: flex; /* Show when open */
    }
    .main-navigation .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .main-navigation .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    .main-navigation .nav-links li:last-child a {
        border-bottom: none;
    }
    .main-navigation .nav-links a::after {
        display: none; /* No underline animation on mobile */
    }


    .hero-section { min-height: 70vh; padding: 80px 0; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-padding { padding-top: 40px; padding-bottom: 40px; }
    .section-title { font-size: 1.8rem; margin-bottom: 1em; }
    .section-subtitle { font-size: 1rem; margin-bottom: 2em; }

    .projects-grid, .testimonials-grid, .news-grid {
        grid-template-columns: 1fr; /* Single column */
    }
    .contact-form-container {
        padding: 1.5rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    body { font-size: 15px; }
    .container { width: 95%; }
    .hero-title { font-size: 2rem; }
    h2, .section-title { font-size: 1.6rem; }
}