/* Table of Contents
--------------------------------------------------
1. CSS Variables
2. Global Styles & Reset
3. Typography
4. Layout & Helpers (Container, Section Titles)
5. Header & Navigation
6. Hero Section
7. Our Process Section (Timeline)
8. Portfolio Section (Carousel & Progress)
9. Insights Section (Cards)
10. Events Section
11. External Resources Section
12. Contact Section & Form
13. Footer
14. Specific Page Styles (Success, Privacy/Terms)
15. Animations & Interactions
16. Media Queries (Responsiveness)
-------------------------------------------------- */

/* 1. CSS Variables
-------------------------------------------------- */
:root {
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Merriweather', serif;

    /* Gradient Color Scheme */
    --primary-color: #0d324d;
    --secondary-color: #7f5a83;
    --accent-color: #ff8c42;
    --accent-color-dark: #e67e3a;

    /* Text & Background Colors */
    --text-color: #333333;
    --text-light: #ffffff;
    --background-color: #f4f7f5;
    --card-background: #ffffff;
    --footer-background: #111827;

    /* Gradients */
    --gradient-bg: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(45deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
    
    /* Spacing & Sizing */
    --header-height: 80px;
    --container-width: 1140px;
    --border-radius: 12px;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.12);
}

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

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

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

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

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

a:hover {
    color: var(--accent-color);
}

/* 3. Typography
-------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 3rem; font-weight: 900; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }

/* 4. Layout & Helpers
-------------------------------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #222222;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -2rem auto 3rem auto;
    color: #555;
}

/* 5. Header & Navigation
-------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    transition: top 0.3s ease;
}

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

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
}

.nav-links-desktop a {
    margin: 0 1rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    padding: 5px 0;
}

.nav-links-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease-out;
}

.nav-links-desktop a:hover::after {
    width: 100%;
}

.burger-menu { display: none; }
.nav-links-mobile { display: none; }

/* 6. Hero Section
-------------------------------------------------- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--header-height) 0;
    text-align: center;
    color: var(--text-light);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-content {
    max-width: 800px;
}

.hero-text h1 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Global Button Styles */
.cta-button, .read-more {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-image: var(--gradient-accent);
    color: var(--text-light);
    background-size: 200% auto;
    box-shadow: 0 4px 15px 0 rgba(255, 140, 66, 0.4);
}

.cta-button:hover, .read-more:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px 0 rgba(255, 140, 66, 0.6);
    color: var(--text-light);
}

.read-more {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* 7. Our Process Section (Timeline)
-------------------------------------------------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--gradient-bg);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

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

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    top: 32px;
    background: var(--background-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-content {
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

/* 8. Portfolio Section
-------------------------------------------------- */
.portfolio-section {
    background: var(--gradient-bg);
    color: var(--text-light);
}

.portfolio-section .section-title {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

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

.portfolio-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.portfolio-card h3 {
    color: var(--text-light);
}

.progress-indicator {
    margin-top: 1rem;
}

.progress-indicator span {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.progress-indicator progress {
    width: 100%;
    height: 8px;
    border: none;
    border-radius: 4px;
    overflow: hidden;
}

.progress-indicator progress::-webkit-progress-bar {
    background-color: rgba(255, 255, 255, 0.3);
}

.progress-indicator progress::-webkit-progress-value {
    background-image: var(--gradient-accent);
}

.progress-indicator progress::-moz-progress-bar {
    background-image: var(--gradient-accent);
}

/* 9. Insights Section (Cards)
-------------------------------------------------- */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.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-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-top: 0;
}

.card-content .read-more {
    margin-top: auto;
    align-self: flex-start;
}

/* 10. Events Section
-------------------------------------------------- */
.events-section {
    background-color: #eaf0f2;
}
.events-list .card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
}

.event-date {
    text-align: center;
    font-family: var(--font-primary);
    background: var(--gradient-bg);
    color: var(--text-light);
    border-radius: var(--border-radius);
    padding: 1rem;
    min-width: 90px;
}

.event-date span {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.event-date strong {
    display: block;
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 900;
}

.event-details {
    flex-grow: 1;
}

.event-details p {
    margin-bottom: 1rem;
}

/* 11. External Resources Section
-------------------------------------------------- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.resource-link.card {
    padding: 1.5rem;
    text-align: center;
}

.resource-link.card:hover h4 {
    color: var(--accent-color);
}

.resource-link h4 {
    transition: color 0.3s ease;
}

/* 12. Contact Section & Form
-------------------------------------------------- */
.contact-section {
    background: var(--gradient-bg);
}

.contact-section .section-title {
    color: var(--text-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.contact-info {
    color: var(--text-light);
}

.contact-info h3 {
    color: var(--text-light);
    font-size: 2rem;
}

.contact-details {
    margin-top: 2rem;
    line-height: 2;
}

.contact-form-wrapper {
    background: var(--card-background);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow-hover);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.contact-form label {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.3);
}

.contact-form button {
    width: 100%;
}


/* 13. Footer
-------------------------------------------------- */
.site-footer {
    background-color: var(--footer-background);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

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

.footer-column h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

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

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column ul a:hover {
    color: var(--accent-color);
}

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

/* 14. Specific Page Styles
-------------------------------------------------- */
.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background: var(--gradient-bg);
}

.success-content {
    background: var(--card-background);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow-hover);
    max-width: 500px;
}

.static-page-content {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    min-height: 80vh;
}

/* 15. Animations & Interactions
-------------------------------------------------- */
.reveal-up, .reveal-left, .reveal-right {
    visibility: hidden;
}

/* 16. Media Queries (Responsiveness)
-------------------------------------------------- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-text h1 { font-size: 3rem; }
    .contact-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    section { padding: 3rem 0; }
    
    .nav-links-desktop { display: none; }
    
    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 20;
    }

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

    .nav-links-mobile {
        display: flex;
        flex-direction: column;
        background: white;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links-mobile.open {
        max-height: 300px; /* Adjust as needed */
    }

    .nav-links-mobile a {
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid #eee;
        font-family: var(--font-primary);
        font-weight: 700;
    }

    .timeline::after {
        left: 31px;
    }

    .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-content {
        text-align: left;
    }

    .timeline-icon {
        left: 6px;
    }

    .events-list .card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}