/* style.css */

/* CSS Variables */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'IBM Plex Sans', sans-serif;

    /* Pastel Color Scheme with Neomorphism in mind */
    --color-bg-light: #E6E7ED; /* Light pastel background */
    --color-bg-dark-section: #D1D9E6; /* Slightly darker for contrast sections */
    --color-text-primary: #333333; /* Dark grey for readability */
    --color-text-secondary: #555555;
    --color-text-headings: #222222;
    --color-text-light: #FFFFFF; /* For dark backgrounds like hero */
    --color-text-link: #3D52A0; /* Pastel blue for links */
    --color-text-link-hover: #2A3A7A;

    /* Primary & Accent Colors (Pastel) */
    --color-primary: #A0D2DB; /* Soft Teal/Blue */
    --color-primary-darker: #80B8C2;
    --color-accent: #E8A0BF;  /* Soft Pink/Coral */
    --color-accent-darker: #D080A0;

    /* Neomorphism Shadows */
    --shadow-light: -5px -5px 10px #ffffff70; /* Adjusted for light bg */
    --shadow-dark: 5px 5px 10px #babecc70;   /* Adjusted for light bg */
    --shadow-inset-light: inset -3px -3px 7px #ffffffb0;
    --shadow-inset-dark: inset 3px 3px 7px #babeccb0;
    --shadow-brutalist-offset: 4px;
    --shadow-brutalist: var(--shadow-brutalist-offset) var(--shadow-brutalist-offset) 0px var(--color-text-primary);

    /* UI Elements */
    --button-bg: var(--color-primary);
    --button-text: var(--color-text-primary);
    --button-hover-bg: var(--color-primary-darker);
    --button-shadow-main: var(--shadow-dark);
    --button-shadow-hover-main: var(--shadow-light);
    --button-shadow-secondary: var(--shadow-light);
    --button-shadow-hover-secondary: var(--shadow-dark);


    --card-bg: var(--color-bg-light);
    --card-radius: 15px;
    --input-bg: #dde1e7;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --header-height: 80px;
}

/* Global Reset and Base 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-secondary);
    background-color: var(--color-bg-light);
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-primary);
    color: var(--color-text-headings);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: var(--spacing-lg); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-secondary);
}

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

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

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

/* Utility Classes */
.main-container {
    width: 100%;
    overflow: hidden; /* Prevents horizontal scroll */
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}
.section-padding-small {
    padding: var(--spacing-lg) 0;
}

.section-padding-dark {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-dark-section);
    box-shadow: var(--shadow-inset-dark), var(--shadow-inset-light);
}

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

.section-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg) auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.page-title {
    color: var(--color-text-light); /* Default for hero-like banners */
    text-align: center;
}
.page-subtitle {
    color: var(--color-text-light); /* Default for hero-like banners */
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

/* For privacy and terms pages content area */
.page-content > section:first-child {
    padding-top: calc(var(--header-height) + var(--spacing-lg));
}
/* success.html specific */
.success-message-section.section-padding {
    min-height: calc(100vh - var(--header-height) - 150px); /* Adjust 150px based on footer height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.success-icon {
    margin-bottom: var(--spacing-md);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(230, 231, 237, 0.8); /* Light glassmorphism */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: var(--spacing-sm) 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.main-navigation .nav-links li {
    margin-left: var(--spacing-md);
}

.main-navigation .nav-links a {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--color-text-primary);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 8px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.main-navigation .nav-links a:hover,
.main-navigation .nav-links a.active {
    color: var(--color-primary-darker);
    background-color: rgba(160, 210, 219, 0.2);
}

.burger-menu {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-primary);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}


/* Global Button Styles */
.cta-button,
button,
input[type="submit"] {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    color: var(--button-text);
    background-color: var(--button-bg);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: 10px; /* Softer edges for neomorphism */
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light), var(--shadow-dark); /* Neomorphic extrusion */
    position: relative; /* For pseudo-elements if needed */
}

.cta-button:hover,
button:hover,
input[type="submit"]:hover {
    background-color: var(--button-hover-bg);
    color: var(--color-text-headings);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark); /* Neomorphic pressed */
    transform: translateY(1px); /* Subtle press effect */
}
.cta-button:active,
button:active,
input[type="submit"]:active {
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
    transform: translateY(2px);
}

/* Neo-brutalist button style (optional, can be a modifier class) */
.button-brutalist {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border: 2px solid var(--color-text-primary);
    box-shadow: var(--shadow-brutalist);
    border-radius: 0; /* Sharp edges */
    padding: calc(var(--spacing-sm) - 2px) calc(var(--spacing-lg) - 2px);
}

.button-brutalist:hover {
    box-shadow: none;
    transform: translate(var(--shadow-brutalist-offset), var(--shadow-brutalist-offset));
    background-color: var(--color-accent-darker);
}


/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh; /* Adjust as needed, avoid fixed large heights */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

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

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light); /* Explicitly white */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-light); /* Explicitly white */
    font-weight: 400;
}


/* General Card Styles (Neomorphic) */
.card, .card-neomorphic, .link-item {
    background-color: var(--card-bg);
    border-radius: var(--card-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-light), var(--shadow-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content like image and text block */
    text-align: center; /* Center text within card-content */
    overflow: hidden; /* Ensure content respects border-radius */
}

.card:hover, .card-neomorphic:hover, .link-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: -8px -8px 16px #ffffff90, 8px 8px 16px #babecc90;
}

.card-image {
    width: 100%; /* Take full width of card */
    height: 200px; /* Fixed height for image containers */
    margin-bottom: var(--spacing-md);
    border-radius: calc(var(--card-radius) - 5px); /* Slightly smaller radius than card */
    overflow: hidden; /* Clip image to rounded corners */
    display: flex; /* To center image if it's smaller, though object-fit handles aspect */
    justify-content: center;
    align-items: center;
    background-color: #ccc; /* Placeholder background for image area */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, cropping if necessary */
    display: block;
}

.card-content {
    width: 100%; /* Ensure content block takes full width for text-align */
}
.card-content h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-headings);
}


/* Timeline Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: var(--spacing-lg) auto 0 auto;
}

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

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
    padding-left: 60px; /* Space for icon and line */
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: var(--shadow-light), var(--shadow-dark);
    z-index: 1;
}

.timeline-content {
    /* .card-neomorphic style is applied */
    text-align: left; /* Override card's text-align: center */
}
.timeline-content h3 {
    text-align: left;
}


/* Portfolio, Team, Behind the Scenes, Community (Grid of Cards) */
.portfolio-grid, .team-grid, .gallery-grid, .community-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}
.team-member .team-role {
    font-style: italic;
    color: var(--color-primary-darker);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}


/* Press Section */
.press-list {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}
.press-item {
    display: flex;
    flex-direction: column; /* Stack image and content */
    align-items: flex-start; /* Align items to the start for text */
    text-align: left;
}
.press-item .card-image { /* For logos */
    height: auto; /* Adjust for logo aspect ratio */
    max-width: 150px; /* Limit logo width */
    margin-bottom: var(--spacing-sm);
    background-color: transparent; /* No placeholder bg for logos */
    border-radius: 0;
    box-shadow: none;
}
.press-item .card-image img {
    object-fit: contain; /* Logos should not be cropped */
}
.press-item h4 {
    font-size: 1.3rem;
    color: var(--color-text-headings);
}
.read-more-link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    font-weight: bold;
    color: var(--color-accent);
    text-decoration: underline;
}
.read-more-link:hover {
    color: var(--color-accent-darker);
}

/* Useful Links Section */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}
.link-item {
    text-align: left; /* Override card default */
    align-items: flex-start;
}
.link-item .link-title a {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--color-text-headings);
    font-weight: 700;
    text-decoration: none;
}
.link-item .link-title a:hover {
    color: var(--color-primary);
}
.link-item .link-description {
    font-size: 0.95rem;
    margin-top: var(--spacing-xs);
}

/* Contact Section */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto var(--spacing-xl) auto;
    padding: var(--spacing-lg); /* More padding for form container */
}
.form-group {
    margin-bottom: var(--spacing-md);
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--color-text-primary);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    background-color: var(--input-bg);
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark); /* Pressed-in look */
    color: var(--color-text-primary);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: box-shadow 0.3s ease;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark), 0 0 0 2px var(--color-primary-light); /* Focus indicator */
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-details {
    text-align: center;
    margin-top: var(--spacing-xl);
}
.contact-details h3 {
    margin-bottom: var(--spacing-md);
}
.contact-details p {
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}
.map-placeholder, .map-placeholder-large {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: var(--card-radius);
    padding: var(--spacing-lg);
    text-align: center;
    margin-top: var(--spacing-md);
    box-shadow: var(--shadow-light), var(--shadow-dark);
}
.map-placeholder-large img, .map-placeholder img {
    border-radius: calc(var(--card-radius) - 5px);
    margin-top: var(--spacing-sm);
}

/* Contact page specific styling for info blocks */
.contact-info-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}
.contact-block {
    padding: var(--spacing-lg);
}
.contact-icon {
    margin: 0 auto var(--spacing-sm) auto; /* Center icon */
    filter: drop-shadow(2px 2px 3px #babecc70) drop-shadow(-2px -2px 3px #ffffff70);
}
.map-container {
    margin-top: var(--spacing-xl);
}
.map-container .subsection-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
}


/* Footer */
.site-footer-main {
    background-color: var(--color-bg-dark-section); /* Darker footer background */
    color: var(--color-text-secondary);
    padding: var(--spacing-xl) 0 var(--spacing-sm) 0;
    margin-top: var(--spacing-xl);
    box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
}

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

.footer-column h4 {
    font-family: var(--font-primary);
    color: var(--color-text-headings);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-column ul a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.footer-column ul a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.social-links-footer li a {
    display: inline-block;
    padding: var(--spacing-xs) 0; /* Minimal padding for text links */
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9rem;
}

/* Columns for About Page etc. */
.columns-container {
    display: flex;
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
    gap: var(--spacing-lg);
    align-items: flex-start; /* Align items to the top */
}
.column {
    flex: 1; /* Basic flex grow */
    min-width: 280px; /* Minimum width before wrapping */
}
.column.is-two-thirds {
    flex-grow: 2; /* Takes up more space */
    flex-basis: 60%; /* Approximate starting width */
}
.column .card-image { /* For images within columns */
    height: auto; /* Let image height be natural */
    max-height: 400px; /* But cap it */
}
.column .card-image img {
    object-fit: contain; /* If image aspect ratio is important */
}

/* About page specific images */
.about-us-hero, .contact-hero, .privacy-hero, .terms-hero, .success-message-section {
    min-height: 40vh; /* Shorter than main hero */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-us-hero .page-title, .contact-hero .page-title, .privacy-hero .page-title, .terms-hero .page-title, .success-message-section .page-title {
    color: var(--color-text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.about-us-hero .page-subtitle, .contact-hero .page-subtitle, .privacy-hero .page-subtitle, .terms-hero .page-subtitle, .success-message-section .page-subtitle {
    color: var(--color-text-light);
    opacity: 0.9;
}

.text-content h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}
.text-content ul {
    list-style-position: inside;
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-sm);
}
.text-content ul li {
    margin-bottom: var(--spacing-xs);
}
.inline-link {
    font-weight: bold;
    text-decoration: underline;
}

/* Cookie Consent Popup */
#cookieConsentPopup {
    /* HTML already defines basic styles for position, bg, color, padding, z-index, box-shadow */
    /* This can be enhanced here if needed */
    font-family: var(--font-secondary);
}
#cookieConsentPopup p a {
    /* Style for the privacy policy link inside cookie popup */
    font-weight: bold;
}
#acceptCookieButton {
    /* Style is in HTML but can be overridden or enhanced */
    /* Example: */
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.2); */
}



/* GSAP/Motion One might use opacity for smoother reveals */
[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-scroll-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}


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

    .portfolio-grid, .team-grid, .gallery-grid, .community-highlights, .links-grid, .contact-info-blocks {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .column.is-two-thirds {
        flex-basis: 100%; /* Stack columns */
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.2rem; }

    .main-navigation .nav-links {
        display: none; /* Hide desktop nav */
        flex-direction: column;
        position: absolute;
        top: calc(var(--header-height) - 1px); /* Align below header */
        left: 0;
        width: 100%;
        background-color: var(--color-bg-light);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: var(--spacing-sm) 0;
    }
    .main-navigation .nav-links.active {
        display: flex; /* Show when burger is clicked */
    }
    .main-navigation .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .main-navigation .nav-links a {
        display: block;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--color-bg-dark-section);
    }
    .main-navigation .nav-links li:last-child a {
        border-bottom: none;
    }

    .burger-menu {
        display: block; /* Show burger menu */
    }

    .footer-content {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .footer-column h4 {
        margin-top: var(--spacing-sm);
    }
    .timeline::before {
        left: 10px; /* Adjust timeline for smaller screens */
    }
    .timeline-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    .timeline-item {
        padding-left: 50px;
    }
    .contact-form-container {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-sm: 0.8rem;
        --spacing-md: 1.2rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }
    html { font-size: 15px; }
    h1 { font-size: 2rem; }
    .hero-title { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    .section-intro { font-size: 1rem; }

    .cta-button, button, input[type="submit"] {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
}
*{
    opacity: 1 !important;
}