/* CSS Variables */
:root {
    /* Color Palette - Neutral with Eco-Minimalism & Neuromorphism */
    --bg-color: #E0E5EC; /* Light grey, common for neuromorphism */
    --bg-color-alt: #F0F3F6; /* Slightly lighter for alternating sections */
    --text-color: #333745; /* Dark grey for readability (AA on bg-color, AAA on bg-color-alt) */
    --text-color-light: #FFFFFF;
    --heading-color: #222222; /* Darker for strong contrast as per request */
    --accent-color: #0069D9; /* Adjusted Blue for better contrast (4.66:1 on --bg-color) */
    --accent-color-darker: #0052A6; /* Darker for hover states */
    --success-color: #28a745;
    --error-color: #dc3545;
    --link-color: var(--accent-color);
    --link-hover-color: var(--accent-color-darker);
    --accent-color-alpha: rgba(0, 105, 217, 0.25); /* Alpha version of accent color */

    /* Neuromorphism Shadows */
    --shadow-main: 6px 6px 12px #c1c8d1, -6px -6px 12px #ffffff;
    --shadow-inset: inset 6px 6px 12px #c1c8d1, inset -6px -6px 12px #ffffff;
    --shadow-pressed: inset 3px 3px 6px #c1c8d1, inset -3px -3px 6px #ffffff; /* For button press */
    --shadow-subtle: 4px 4px 8px #c1c8d1, -4px -4px 8px #ffffff; /* Softer for static elements or button idle */
    --shadow-hover: 8px 8px 16px #b9bec6, -8px -8px 16px #ffffff; /* For hover on larger elements */
    --text-shadow-heading: 1px 1px 3px rgba(0,0,0,0.15); /* For heading contrast */


    /* Fonts */
    --font-family-headings: 'Oswald', sans-serif;
    --font-family-body: 'Nunito', sans-serif;

    /* Spacing & Borders */
    --spacing-unit: 1rem; /* 16px */
    --border-radius: 15px;
    --border-radius-small: 8px;
    --container-width: 1200px;
    --header-height: 70px; 
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%; 
}

body {
    font-family: var(--font-family-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; 
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--heading-color);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    line-height: 1.3;
    font-weight: 500; 
    text-shadow: var(--text-shadow-heading); 
}

h1 { font-size: 3rem; } 
h2 { font-size: 2.5rem; text-align: center; margin-bottom: calc(var(--spacing-unit) * 2.5);} 
h3 { font-size: 1.75rem; } 
h4 { font-size: 1.25rem; } 

p {
    margin-bottom: var(--spacing-unit);
    font-size: 1.05rem; 
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600; 
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-small);
}

ul {
    list-style: none;
}

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

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

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

.neu-element {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-main);
    transition: box-shadow 0.3s ease-in-out;
}

.neu-element:hover:not(form):not(header):not(footer) { 
    box-shadow: var(--shadow-hover);
}

.neu-inset {
    background-color: var(--bg-color); 
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-inset);
    border: none;
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
    color: var(--text-color);
    font-family: var(--font-family-body);
    font-size: 1rem;
}

.neu-inset::placeholder {
    color: #888e9e;
    opacity: 0.8;
}

.neu-text-strong {
    color: var(--heading-color);
    font-weight: 700; 
}

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px); 
    transition: opacity 0.7s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Global Button Styles */
.neu-button, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-family-headings);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    background-color: var(--bg-color);
    border: none; 
    padding: calc(var(--spacing-unit)*0.8) calc(var(--spacing-unit)*1.8);
    border-radius: var(--border-radius); 
    box-shadow: var(--shadow-subtle);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
    font-size: 1rem;
}

.neu-button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    box-shadow: var(--shadow-pressed); 
    color: var(--accent-color-darker);
}

.neu-button:active, button:active, input[type="submit"]:active, input[type="button"]:active {
    box-shadow: var(--shadow-inset); 
    transform: translateY(1px); 
}

.cta-button { 
    background-color: var(--accent-color);
    color: var(--text-color-light);
    font-size: 1.1rem;
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2.5);
}
.cta-button:hover {
    background-color: var(--accent-color-darker);
    color: var(--text-color-light); 
    box-shadow: var(--shadow-pressed);
}


/* "Read more" link style */
.read-more-link {
    display: inline-block;
    margin-top: var(--spacing-unit);
    font-weight: bold; 
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--accent-color);
    font-family: var(--font-family-headings); 
}

.read-more-link::after {
    content: ' →';
    transition: transform 0.2s ease;
    display: inline-block;
}

.read-more-link:hover::after {
    transform: translateX(4px);
}


/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(224, 229, 236, 0.8); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(193, 200, 209, 0.7); 
}

.site-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    font-family: var(--font-family-headings);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
    padding: calc(var(--spacing-unit)*0.25) calc(var(--spacing-unit)*0.5);
    border-radius: var(--border-radius-small);
    transition: color 0.3s ease, background-color 0.3s ease;
}
.logo:hover {
    text-decoration: none;
    color: var(--accent-color);
    background-color: rgba(255,255,255,0.1);
}

.main-nav .nav-list {
    display: flex;
    gap: calc(var(--spacing-unit) * 0.5); 
}

.main-nav .nav-link {
    font-family: var(--font-family-headings);
    font-weight: 500;
    color: var(--text-color);
    padding: calc(var(--spacing-unit)*0.6) var(--spacing-unit);
    border-radius: var(--border-radius-small);
    transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem; 
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active { 
    color: var(--accent-color);
    background-color: var(--bg-color); 
    box-shadow: var(--shadow-subtle); 
    text-decoration: none;
}

.burger-menu {
    display: none; 
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; 
    margin-left: var(--spacing-unit); 
}

.burger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--heading-color);
    margin: 6px 0;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    border-radius: 3px;
}


/* Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + var(--spacing-unit) * 3); 
    padding-bottom: calc(var(--spacing-unit) * 5); 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative; 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6)); 
    z-index: 1;
}

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

.hero-title {
    font-size: 3.5rem; 
    color: var(--text-color-light); 
    margin-bottom: var(--spacing-unit);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    font-weight: 700; 
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-color-light); 
    margin-bottom: calc(var(--spacing-unit) * 2.5);
    font-weight: 400; 
    line-height: 1.6;
}

.hero-section .cta-button {
    font-size: 1.2rem;
    padding: calc(var(--spacing-unit)*1.2) calc(var(--spacing-unit)*3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
}

.hero-section .cta-button:hover {
    background-color: var(--accent-color-darker);
    color: var(--text-color-light);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

/* Generic Card Styles */
.card {
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    padding: calc(var(--spacing-unit) * 1.5);
    margin-bottom: calc(var(--spacing-unit) * 1.5); 
    text-align: left; 
}

.card .card-image { 
    width: 100%; 
    margin-bottom: var(--spacing-unit);
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border-radius: var(--border-radius-small); 
    overflow: hidden; 
    background-color: #D1D9E6; 
}

.card .card-image img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}

.card .card-content {
    flex-grow: 1; 
}

.card .card-title {
    margin-top: 0;
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    font-size: 1.5rem; 
}

.card p {
    font-size: 1rem; 
    line-height: 1.6;
    margin-bottom: var(--spacing-unit);
}
.card p:last-child {
    margin-bottom: 0;
}


/* Portfolio Section */
.portfolio-section .section-intro {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.portfolio-grid .card .card-image { 
    height: 220px; 
}


/* Innovation Section */
.innovation-section .section-intro { 
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 3);
}
.innovation-content {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 3);
    align-items: center;
}

.innovation-text {
    flex: 1.2; 
    min-width: 300px; 
}
.innovation-text p {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.innovation-image-container { 
    flex: 0.8;
    min-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-unit); 
}

.innovation-image-container img {
    max-width: 100%;
    border-radius: var(--border-radius-small);
}

/* Vision Section */
.vision-section .section-intro,
.vision-section p {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

/* History Section (Timeline) */
.history-section .section-intro {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 3);
}
.history-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-unit) 0;
}

.history-timeline::before { 
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    opacity: 0.2; 
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
    position: relative;
    width: calc(50% - var(--spacing-unit) * 2); 
    margin-bottom: calc(var(--spacing-unit) * 2.5);
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    float: left;
    clear: right;
    transform: translateX(-calc(var(--spacing-unit) * 2.5)); 
    text-align: right;
}

.timeline-item:nth-child(even) {
    float: right;
    clear: left;
    transform: translateX(calc(var(--spacing-unit) * 2.5)); 
    text-align: left;
}

.history-timeline::after {
    content: "";
    display: table;
    clear: both;
}


.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--bg-color);
    border: 4px solid var(--accent-color);
    top: calc(var(--spacing-unit) * 1.5); 
    border-radius: 50%;
    z-index: 1;
    box-shadow: var(--shadow-subtle);
}

.timeline-item:nth-child(odd)::before {
    right: -calc(var(--spacing-unit) + 10px); 
}

.timeline-item:nth-child(even)::before {
    left: -calc(var(--spacing-unit) + 10px); 
}


.timeline-date {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    font-weight: 700; 
}

/* Methodology Section */
.methodology-section .section-intro {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.methodology-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.methodology-steps .step { 
    padding: calc(var(--spacing-unit) * 2); 
    text-align: center; 
}

.methodology-steps .step-title {
    font-size: 1.5rem; 
    margin-bottom: var(--spacing-unit);
    color: var(--accent-color);
    font-weight: 700; 
}

/* Behind the Scenes Section (Image Gallery) */
.behind-the-scenes-section .section-intro {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 3);
}
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 1.5);
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}

.gallery-item { 
    overflow: hidden; 
    padding: var(--spacing-unit);
    text-align: center;
    display: flex;
    flex-direction: column;
}
.gallery-item .card-image { 
    height: 200px;
    margin-bottom: var(--spacing-unit);
}

.gallery-item img { 
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: saturate(0.8); 
}
.gallery-item:hover img {
    transform: scale(1.05);
    filter: saturate(1.2);
}

.gallery-caption {
    font-weight: 600; 
    color: var(--heading-color);
    font-size: 1rem;
    margin-top: auto; 
}

.behind-the-scenes-section > .content-wrapper > p.scroll-animate:not(.gallery-caption) {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* External Resources Section */
.external-resources-section .section-intro {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 3);
}
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
}

.resource-card { 
    padding: calc(var(--spacing-unit) * 1.5);
}
.resource-card .card-title { 
    font-size: 1.3rem;
}
.resource-card .card-title a {
    color: var(--heading-color);
    font-weight: 500; 
}
.resource-card .card-title a:hover {
    color: var(--accent-color);
}
.resource-card p {
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section .section-intro {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.contact-form { 
    max-width: 700px;
    margin: 0 auto calc(var(--spacing-unit) * 3) auto;
    padding: calc(var(--spacing-unit) * 2.5); 
}

.form-group {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.form-label {
    display: block;
    font-weight: 600; 
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    color: var(--text-color); 
    font-size: 0.9rem;
}

.form-input,
.form-textarea { 
    width: 100%;
}
.form-input:focus,
.form-textarea:focus {
    outline: none;
    box-shadow: var(--shadow-inset), 0 0 0 2.5px var(--accent-color-alpha); 
}

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

.contact-form .submit-button { 
    width: 100%;
    padding-top: calc(var(--spacing-unit)*1.2);
    padding-bottom: calc(var(--spacing-unit)*1.2);
    font-size: 1.1rem;
}


.contact-details {
    text-align: center;
}
.contact-details p {
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    font-size: 1.1rem; 
}
.contact-details strong {
    color: var(--heading-color);
    font-weight: 700; 
}
.contact-link {
    color: var(--text-color);
    font-weight: 400; 
}
.contact-link:hover {
    color: var(--accent-color);
}


/* Footer */
.site-footer { 
    background-color: var(--bg-color-alt); 
    padding: calc(var(--spacing-unit) * 3) 0 calc(var(--spacing-unit) * 2) 0;
    color: var(--text-color); 
    margin-top: calc(var(--spacing-unit) * 3); 
    border-top-left-radius: 0; 
    border-top-right-radius: 0;
    box-shadow: 0 -5px 15px rgba(193, 200, 209, 0.6); 
}

.site-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 2.5);
}

.footer-nav, .footer-social {
    margin-bottom: var(--spacing-unit);
}

.footer-heading { 
    font-size: 1.3rem;
    margin-bottom: var(--spacing-unit);
    color: var(--heading-color);
    font-weight: 500; 
}

.footer-nav ul li, .footer-social ul li {
    margin-bottom: calc(var(--spacing-unit) * 0.6);
}

.footer-link {
    color: var(--text-color);
    font-size: 1rem; 
    font-weight: 400; 
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-link:hover {
    color: var(--accent-color);
    text-decoration: none;
    padding-left: 5px;
}

.footer-social ul {
    padding-left: 0;
}

.footer-copyright {
    grid-column: 1 / -1; 
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 2);
    font-size: 0.9rem; 
    opacity: 0.8;
}
.footer-copyright p {
    margin-bottom: calc(var(--spacing-unit) * 0.3);
}


/* Specific Page Styles (Privacy, Terms, Success) */
.page-content-section {
    padding-top: calc(var(--header-height) + var(--spacing-unit) * 4); 
    padding-bottom: calc(var(--spacing-unit) * 4);
    min-height: calc(100vh - var(--header-height) - 150px); /* Approx footer height */
}

.page-content-section .content-wrapper { 
    background-color: var(--bg-color-alt); 
    padding: calc(var(--spacing-unit) * 2.5);
    border-radius: var(--border-radius); /* Re-apply if section itself isn't neu-element */
    box-shadow: var(--shadow-main); /* Re-apply */
}
.page-content-section h1 { 
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-size: 2.8rem;
}
.page-content-section h2 {
    text-align: left; 
    font-size: 1.8rem;
    margin-top: calc(var(--spacing-unit) * 2);
}
.page-content-section p, 
.page-content-section ul,
.page-content-section li {
    font-size: 1.05rem;
    line-height: 1.8;
}
.page-content-section ul {
    list-style: disc;
    padding-left: calc(var(--spacing-unit) * 1.5); /* More padding for list items */
    margin-bottom: var(--spacing-unit);
}

/* For success.html */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: var(--spacing-unit);
    background-color: var(--bg-color);
}

.success-message-box { 
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 4);
    max-width: 600px;
    width: 90%;
}
.success-message-box h1 {
    color: var(--success-color);
    font-size: 2.8rem; 
    margin-bottom: var(--spacing-unit);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.success-message-box p {
    font-size: 1.2rem; 
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.success-message-box .neu-button { 
    background-color: var(--accent-color);
    color: var(--text-color-light);
    width: auto; 
    padding-left: calc(var(--spacing-unit) * 2.5);
    padding-right: calc(var(--spacing-unit) * 2.5);
}
.success-message-box .neu-button:hover {
    background-color: var(--accent-color-darker);
}


/* Content Carousel (Basic for horizontal scroll with Flexbox) */
.content-carousel {
    display: flex;
    overflow-x: auto; 
    padding-bottom: var(--spacing-unit); 
    -webkit-overflow-scrolling: touch; 
    gap: calc(var(--spacing-unit) * 1.5); 
    scroll-snap-type: x mandatory;
}

.content-carousel > .card {
    flex: 0 0 auto; 
    width: 320px; 
    margin-bottom: 0; 
    scroll-snap-align: start; 
}

.content-carousel::-webkit-scrollbar { width: 8px; height: 8px; }
.content-carousel::-webkit-scrollbar-thumb { background: #c1c8d1; border-radius: 4px; }
.content-carousel::-webkit-scrollbar-track { background: transparent; }

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-title { font-size: 2.8rem; }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .innovation-content {
        flex-direction: column;
    }
    .innovation-text { flex: 1; }
    .innovation-image-container { order: -1; margin-bottom: calc(var(--spacing-unit) * 2); flex: 1; width: 100%; max-width: 450px; } 

    .timeline-item {
        width: calc(50% - var(--spacing-unit)); 
    }
    .timeline-item:nth-child(odd) { transform: translateX(-var(--spacing-unit)); }
    .timeline-item:nth-child(even) { transform: translateX(var(--spacing-unit)); }

    .timeline-item:nth-child(odd)::before { right: -calc(var(--spacing-unit) * 0.5 + 10px); }
    .timeline-item:nth-child(even)::before { left: -calc(var(--spacing-unit) * 0.5 + 10px); }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px; 
    }
    .site-header .header-content {
        position: relative; 
    }

    .main-nav {
        display: none; 
        position: absolute;
        top: var(--header-height); 
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        box-shadow: var(--shadow-main); 
        padding: var(--spacing-unit);
        border-bottom-left-radius: var(--border-radius);
        border-bottom-right-radius: var(--border-radius);
        z-index: 998; /* Ensure it's below header, but above content when shown */
    }

    .main-nav.active {
        display: block; 
    }

    .main-nav .nav-list {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-unit);
    }
    .main-nav .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: var(--spacing-unit);
    }

    .burger-menu {
        display: flex; 
        flex-direction: column;
        justify-content: space-around;
        width: 30px; /* Fixed size for burger icon */
        height: 30px;
        padding: 0; 
    }
    .burger-menu.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); } /* Adjusted for 3px height + 6px margin */
    .burger-menu.active span:nth-child(2) { opacity: 0; }
    .burger-menu.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }


    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-section { padding-top: calc(var(--header-height) + var(--spacing-unit) * 2); padding-bottom: calc(var(--spacing-unit) * 3); }


    .history-timeline::before { 
        left: 20px; 
        transform: translateX(0);
    }
    .timeline-item,
    .timeline-item:nth-child(even) {
        width: calc(100% - 40px - var(--spacing-unit)); 
        float: none; 
        clear: both;
        margin-left: 40px; 
        transform: translateX(0) !important; 
        text-align: left !important;
        margin-bottom: calc(var(--spacing-unit) * 2.5);
    }
    .timeline-item::before, 
    .timeline-item:nth-child(even)::before {
        left: -calc(20px + var(--spacing-unit) / 2); 
        top: var(--spacing-unit);
    }
     .history-timeline::after { 
        display: none;
    }


    .footer-content {
        grid-template-columns: 1fr; 
        text-align: center;
    }
    .footer-nav ul, .footer-social ul {
        padding-left: 0;
        align-items: center;
    }
    .footer-nav, .footer-social {
        margin-bottom: calc(var(--spacing-unit) * 2);
    }
}

@media (max-width: 480px) {
    html { font-size: 90%; } 

    h1 { font-size: 2rem; }
    .hero-title { font-size: 1.8rem; }

    .portfolio-grid, .resources-grid, .methodology-steps, .image-gallery {
        grid-template-columns: 1fr; 
    }
    .content-carousel > .card {
        width: calc(100vw - var(--spacing-unit) * 4); 
        scroll-snap-align: center; 
    }
     .contact-form {
        padding: calc(var(--spacing-unit) * 1.5);
    }
    .success-message-box {
        padding: calc(var(--spacing-unit) * 2);
    }
    .page-content-section .content-wrapper {
        padding: var(--spacing-unit) * 1.5;
    }
    .page-content-section h1 { font-size: 2.2rem; }
    .page-content-section h2 { font-size: 1.5rem; }

}
.burger-menu{
    display: none!important;
}