/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@700;800&family=Open+Sans:wght@400;600&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    /* Triadic Color Scheme */
    --primary-color: #0D6EFD;      /* Vibrant Blue */
    --secondary-color: #FD600D;   /* Bright Orange */
    --tertiary-color: #61FD0D;     /* Electric Green (use sparingly for highlights) */

    /* Neutral & Text Colors */
    --header-height: 6rem;
    --text-color-dark: #212529;
    --text-color-light: #F8F9FA;
    --body-color: #FDFEFE;
    --container-color: #FFFFFF;
    --dark-section-bg: #1a1c1d;
    --footer-bg: #121212;

    /* Typography */
    --body-font: 'Open Sans', sans-serif;
    --title-font: 'Raleway', sans-serif;
    --h1-font-size: 2.75rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;

    /* Volumetric UI Shadows */
    --shadow-light: rgba(255, 255, 255, 0.9);
    --shadow-dark: rgba(180, 190, 200, 0.7);
    --box-shadow-neumorphic: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    --box-shadow-neumorphic-inset: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
    --box-shadow-card: 0 8px 25px rgba(0, 0, 0, 0.1);
    --text-shadow-light: 1px 1px 3px rgba(0, 0, 0, 0.5);

    /* Spacing & Borders */
    --spacing-unit: 1rem;
    --border-radius-smooth: 15px;
    --border-radius-circle: 50%;
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color-dark);
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: var(--title-font);
    font-weight: 800;
    color: var(--text-color-dark);
    margin-bottom: var(--spacing-unit);
}

ul {
    list-style: none;
}

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

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

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

/* ===== LAYOUT & REUSABLE CLASSES ===== */
.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0 4rem;
}

.section-light {
    background-color: #F0F2F5;
}

.section-title {
    font-size: var(--h2-font-size);
    text-align: center;
    margin-bottom: 1rem;
    color: #222222;
}

.section-description {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    text-align: center;
    color: #555;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Scroll Reveal Animation Setup */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ===== HEADER & NAVIGATION ===== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
    font-family: var(--title-font);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color-dark);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-color-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color-dark);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: var(--h1-font-size);
    font-weight: 800;
    color: #FFFFFF; /* IMPORTANT: White text for readability */
    margin-bottom: 1.5rem;
    text-shadow: var(--text-shadow-light);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #FFFFFF; /* IMPORTANT: White text for readability */
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
    text-shadow: var(--text-shadow-light);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--title-font);
    font-weight: 700;
    font-size: var(--normal-font-size);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    color: var(--text-color-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.5);
}

.btn-interactive:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.3);
}

/* ===== CARDS (Team, Blog) ===== */
.team-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

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

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.card-image {
    width: 100%;
    height: 250px;
    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: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
}

.card-content .role, .card-content .post-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: var(--small-font-size);
}

.card-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: 700;
    color: var(--secondary-color);
    align-self: center;
}

.read-more:hover {
    text-decoration: underline;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #e9ecef;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 4rem;
}

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

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 1.5rem;
    border-radius: var(--border-radius-circle);
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem 2rem;
    background-color: var(--container-color);
    border-radius: var(--border-radius-smooth);
    box-shadow: var(--box-shadow-card);
}

/* ===== GALLERY SLIDER ===== */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius-smooth);
    box-shadow: var(--box-shadow-card);
}

.custom-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: var(--border-radius-circle);
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: var(--text-color-dark);
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: white;
}

.slider-btn.prev {
    left: 1rem;
}

.slider-btn.next {
    right: 1rem;
}

/* ===== EXTERNAL RESOURCES ===== */
.resources-list {
    display: grid;
    gap: 1.5rem;
}

.resource-link {
    display: block;
    padding: 1.5rem 2rem;
    background-color: var(--container-color);
    border-radius: var(--border-radius-smooth);
    box-shadow: var(--box-shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.resource-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    color: var(--text-color-dark);
}

.resource-link strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-color-dark);
    margin-bottom: 0.25rem;
}

.resource-link span {
    color: #666;
}

/* ===== CONTACT FORM ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: var(--container-color);
    padding: 3rem;
    border-radius: var(--border-radius-smooth);
    box-shadow: var(--box-shadow-card);
}

.contact-info p {
    margin-bottom: 1rem;
}

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

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

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: var(--small-font-size);
    background-color: var(--container-color);
    padding: 0 0.5rem;
    color: var(--primary-color);
}

/* Custom Switch */
.form-group-switch {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .switch-slider {
    background-color: var(--primary-color);
}

input:checked + .switch-slider:before {
    transform: translateX(22px);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--footer-bg);
    color: #a9a9a9;
    padding: 5rem 0 2rem;
}

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

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

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

.footer-column ul a {
    color: #a9a9a9;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: var(--small-font-size);
}

/* ===== STATIC & SUCCESS PAGES ===== */
.static-page-content,
.success-page-content {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
}

.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.success-container h1 {
    color: var(--primary-color);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 992px) {
    .container {
        padding: 0 1rem;
    }
    
    .team-grid, .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }

    .section {
        padding: 4rem 0 2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--body-color);
        padding: 2rem;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero {
        height: 90vh;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 20px;
    }
}