/*
================================================================================
|   Table of Contents
================================================================================
|
|   1.  :root Variables
|   2.  Global Styles & Typography
|   3.  Utility Classes
|   4.  Header & Navigation
|   5.  Hero Section
|   6.  Generic Section Styles
|   7.  Component: Buttons
|   8.  Component: Cards (Projects, Team)
|   9.  Component: Forms
|   10. Component: Accordion (FAQ)
|   11. Section Specific Styles
|       - Partners
|       - Statistics
|       - Events
|       - Press (Testimonials)
|       - External Resources
|       - Contact
|   12. Footer
|   13. Specific Page Styles (Success, Privacy, Terms)
|   14. Responsive Media Queries
|
================================================================================
*/

/* 1. :root Variables */
:root {
    /* Bright Color Palette */
    --primary-color: #FFD700; /* Bright Yellow - Main Action Color */
    --secondary-color: #FF3B3F; /* Bright Red/Pink - Accent */
    --accent-color: #00A8E8; /* Bright Blue - Secondary Accent */

    /* Brutalism Core Colors */
    --dark-color: #1a1a1a;
    --light-color: #FFFFFF;
    --bg-color: #f7f7f7;

    /* Typography */
    --font-header: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Sizing & Spacing */
    --header-height: 80px;
    --border-width: 3px;
    --border-radius: 4px;
    --section-padding: 80px 0;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--dark-color);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); }

p {
    margin-bottom: 1rem;
}

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

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

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

/* 3. Utility Classes */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* For ScrollReveal JS */
.reveal {
    visibility: hidden;
}

/* 4. Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--light-color);
    border-bottom: var(--border-width) solid var(--dark-color);
    height: var(--header-height);
    transition: background-color 0.3s ease;
}

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

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

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav .nav-list a {
    font-family: var(--font-header);
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 5px 0;
    position: relative;
    text-transform: uppercase;
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--border-width);
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.main-nav .nav-list a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-nav {
    display: none;
}

/* 5. Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    color: var(--light-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

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

.hero-title {
    color: var(--light-color);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* 6. Generic Section Styles */
.site-section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
}

/* 7. Component: Buttons */
.btn, button[type="submit"] {
    display: inline-block;
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    padding: 15px 35px;
    border: var(--border-width) solid var(--dark-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease-out;
    position: relative;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
    box-shadow: 4px 4px 0 var(--dark-color);
}

.btn-primary:hover {
    background-color: var(--light-color);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--dark-color);
}

.btn-primary:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}


/* 8. Component: Cards (Projects, Team) */
.portfolio-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background-color: var(--light-color);
    border: var(--border-width) solid var(--dark-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 8px 8px 0 var(--accent-color);
}

.card .card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    margin-bottom: 20px;
    border: var(--border-width) solid var(--dark-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

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

.card .card-title {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.card .card-subtitle {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-transform: none;
}

/* 9. Component: Forms */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--light-color);
    border: var(--border-width) solid var(--dark-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 8px 8px 0 var(--dark-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-header);
    font-size: 1.1rem;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: var(--border-width) solid var(--dark-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 var(--border-width) var(--accent-color);
}

/* 10. Component: Accordion (FAQ) */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: var(--border-width) solid var(--dark-color);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    background-color: var(--light-color);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    font-family: var(--font-header);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-color);
}

.accordion-icon {
    font-size: 2rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.accordion-content p {
    padding: 0 20px 20px;
    margin: 0;
}

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

/* 11. Section Specific Styles */

/* Partners */
.partners-carousel {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}
.partner-item img {
    max-height: 60px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.partner-item img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Statistics */
.stats-section {
    background-color: var(--dark-color);
    color: var(--light-color);
}
.stats-section .section-title {
    color: var(--light-color);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}
.stat-number {
    font-family: var(--font-header);
    font-size: 3.5rem;
    color: var(--primary-color);
    display: block;
}
.stat-label {
    font-family: var(--font-header);
    font-size: 1.2rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

/* Events */
.event-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 30px;
    border: var(--border-width) solid var(--dark-color);
    margin-bottom: 25px;
    background: var(--light-color);
    border-radius: var(--border-radius);
}
.event-date {
    flex-shrink: 0;
    text-align: center;
    font-family: var(--font-header);
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 15px;
    border-radius: var(--border-radius);
    border: var(--border-width) solid var(--dark-color);
}
.event-date span {
    display: block;
    font-size: 2.5rem;
    line-height: 1;
}
.event-title {
    margin-bottom: 5px;
}
.event-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}
.event-details p:last-child {
    margin-bottom: 0;
}

/* Press (Testimonials) */
.press-carousel {
    max-width: 800px;
    margin: 0 auto;
}
.press-item blockquote {
    font-size: 1.5rem;
    font-style: italic;
    text-align: center;
    line-height: 1.4;
    border-left: 5px solid var(--primary-color);
    padding-left: 20px;
}
.press-item footer {
    text-align: center;
    margin-top: 20px;
    font-family: var(--font-header);
    font-size: 1.2rem;
    color: var(--dark-color);
}

/* External Resources */
.resources-section {
    background: var(--light-color);
}
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.resource-card {
    border: var(--border-width) solid var(--dark-color);
    padding: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.resource-card:hover {
    background-color: var(--dark-color);
    color: var(--light-color);
}
.resource-card .resource-title a {
    color: inherit;
    text-decoration: none;
}
.resource-card .resource-title {
    margin-bottom: 15px;
    font-size: 1.4rem;
}
.resource-card .resource-description {
    margin-bottom: 0;
}
.resource-card:hover h3, .resource-card:hover p {
    color: var(--light-color);
}

/* 12. Footer */
.site-footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}
.footer-heading {
    color: var(--light-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}
.footer-links, .footer-socials {
    list-style: none;
}
.footer-links a, .footer-socials a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: inline-block;
    padding: 5px 0;
    transition: color 0.3s, transform 0.3s;
}
.footer-links a:hover, .footer-socials a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* 13. Specific Page Styles */

/* Success Page */
body.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.success-container {
    max-width: 600px;
    padding: 40px;
    border: var(--border-width) solid var(--dark-color);
    background: var(--light-color);
    box-shadow: 8px 8px 0 var(--primary-color);
}

.success-container h1 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Privacy & Terms Pages */
body.static-page .site-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
}

.static-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.static-content h2:first-child {
    margin-top: 0;
}
.static-content ul {
    list-style-position: inside;
    padding-left: 20px;
    margin-bottom: 1rem;
}

/* 14. Responsive Media Queries */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .burger-menu {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--light-color);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        padding-top: 40px;
    }

    .mobile-nav.active {
        transform: translateX(0);
    }

    .mobile-nav ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .mobile-nav a {
        font-size: 1.5rem;
        font-family: var(--font-header);
        color: var(--dark-color);
        padding: 10px 20px;
    }

    .event-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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