/* --- VARIABLES --- */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --color-bg: #F8FAFC;
    --color-text: #334155;
    --color-text-light: #64748B;
    --color-primary: #0F172A;
    --color-accent: #38BDF8;
    --color-accent-hover: #0EA5E9;
    --color-white: #FFFFFF;
    --color-border: #E2E8F0;

    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    
    --transition: all 0.3s ease;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn--small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* --- HEADER --- */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
}

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

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.header__logo-icon {
    color: var(--color-accent);
}

/* Desktop Nav */
.header__nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__list {
    display: flex;
    gap: 24px;
}

.header__link {
    font-weight: 500;
    color: var(--color-primary);
    font-size: 0.95rem;
    position: relative;
}

.header__link:hover {
    color: var(--color-accent);
}

.header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
}

/* --- MOBILE HEADER ADAPTIVE --- */
@media (max-width: 768px) {
    .header__burger {
        display: block;
    }

    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-white);
        flex-direction: column;
        padding: 40px 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        border-top: 1px solid var(--color-border);
    }

    .header__nav.active {
        transform: translateX(0);
    }

    .header__list {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-bottom: 30px;
    }

    .header__link {
        font-size: 1.2rem;
    }
}

/* --- MAIN --- */
main {
    padding-top: var(--header-height);
    min-height: 60vh; /* Temporary visual placeholder */
}

/* --- FOOTER --- */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer__desc {
    color: #94A3B8;
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.footer__socials a {
    color: var(--color-white);
    opacity: 0.7;
}

.footer__socials a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-white);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    color: #94A3B8;
}

.footer__link:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #94A3B8;
}

.footer__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-accent);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #64748B;
    font-size: 0.8rem;
}

/* --- FOOTER ADAPTIVE --- */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer__container {
        grid-template-columns: 1fr;
    }
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
    min-height: 100vh; /* Full screen height */
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #1e293b 0%, var(--color-bg) 60%);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--color-accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.hero__badge i {
    width: 16px;
    height: 16px;
}

/* Typography */
.hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: 24px;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

/* Actions */
.hero__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero__info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
}

.hero__info i {
    color: #10B981; /* Green checkmark */
    width: 20px;
    height: 20px;
}

/* Visual / 3D Canvas */
.hero__visual {
    width: 100%;
    height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__visual canvas {
    outline: none;
}

/* Decorative Background Blur */
.hero__bg-blur {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--color-accent);
    filter: blur(150px);
    opacity: 0.1;
    z-index: 1;
    border-radius: 50%;
}

/* --- HERO ADAPTIVE --- */
@media (max-width: 992px) {
    .hero__title {
        font-size: 2.8rem;
    }
    
    .hero__visual {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px; /* Space for fixed header */
        min-height: auto;
        text-align: center;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__badge {
        justify-content: center;
    }

    .hero__desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
        flex-direction: column;
        gap: 16px;
    }

    .hero__visual {
        height: 300px; /* Smaller on mobile */
        order: -1; /* Visual first on mobile? Or keep standard? Let's keep content first for SEO, visual second */
        order: 0; 
    }
}

/* --- TYPOGRAPHY UTILS --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.text-highlight {
    color: var(--color-accent);
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(56, 189, 248, 0.2);
    z-index: -1;
}

.btn--outline {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    margin-top: 20px;
}

.btn--outline:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* --- ABOUT SECTION (Broken Grid) --- */
.about {
    padding: 100px 0;
    background-color: var(--color-white);
    overflow: hidden;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__visual {
    position: relative;
}

.about__img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 20px 20px 0px var(--color-bg); /* Decorative offset shadow */
    position: relative;
    z-index: 1;
    filter: grayscale(20%);
    transition: var(--transition);
}

.about__visual:hover .about__img {
    filter: grayscale(0%);
}

.about__stat {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--color-primary);
    padding: 30px;
    border-radius: var(--radius-sm);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: var(--color-white);
    min-width: 180px;
}

.about__stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 5px;
}

.about__stat-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.about__text {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--color-text);
}

/* --- METHODOLOGY SECTION (Circuit Timeline) --- */
.methodology {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.methodology__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px; /* Space for line */
}

/* Vertical Line */
.timeline__line {
    position: absolute;
    left: 15px; /* Center of the marker */
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent) 0%, rgba(56, 189, 248, 0.1) 100%);
}

.timeline__item {
    position: relative;
    margin-bottom: 60px;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

/* Glowing Marker */
.timeline__marker {
    position: absolute;
    left: -41px; /* Adjust based on padding and size */
    top: 0;
    width: 32px;
    height: 32px;
    background-color: var(--color-bg);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: var(--color-accent);
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
    transition: var(--transition);
}

.timeline__item:hover .timeline__marker {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
}

.timeline__content {
    padding-left: 20px;
}

.timeline__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

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

/* Animation Classes (JS handles adding 'visible') */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- ADAPTIVE --- */
@media (max-width: 992px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 80px; /* Space for the floating stat */
    }
    
    .about__visual {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .about__stat {
        right: 0;
        bottom: -40px;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline__marker {
        left: -46px; /* Adjust for mobile padding */
    }
}

/* --- PROGRAM SECTION (Horizontal Gallery) --- */
.program {
    padding: 80px 0;
    background-color: var(--color-white);
}

.center-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.program__gallery {
    display: flex;
    gap: 10px;
    height: 500px; /* Fixed height for the gallery */
    width: 100%;
}

.panel {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    border-radius: var(--radius-md);
    color: var(--color-white);
    cursor: pointer;
    flex: 0.5; /* Default collapsed state */
    position: relative;
    transition: flex 0.7s ease-in-out; /* Smooth expansion */
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 100%);
}

.panel.active {
    flex: 5; /* Expanded state */
}

.panel__content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
}

.panel__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    transition: all 0.3s;
}

.panel__body {
    opacity: 0;
    max-height: 0;
    margin-top: 10px;
    transition: opacity 0.4s ease 0.3s; /* Delay text appearance */
}

.panel.active .panel__body {
    opacity: 1;
    max-height: 200px;
}

.panel__tag {
    display: inline-block;
    margin-top: 15px;
    padding: 4px 12px;
    background-color: var(--color-accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- REVIEWS SECTION (Infinite Marquee) --- */
.reviews {
    padding: 100px 0;
    background-color: var(--color-bg);
    overflow: hidden; /* Hide overflow for marquee */
}

.ticker-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ticker {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.ticker__track {
    display: flex;
    width: fit-content;
    gap: 24px;
    animation: scroll 40s linear infinite;
}

.ticker:hover .ticker__track {
    animation-play-state: paused; /* Pause on hover */
}

.ticker--reverse .ticker__track {
    animation-direction: reverse;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Move half way (because of duplicated content) */
}

.review-card {
    width: 350px;
    background-color: var(--color-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    flex-shrink: 0;
    border: 1px solid var(--color-border);
}

.review-card--accent {
    border-left: 4px solid var(--color-accent);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #E2E8F0; /* Placeholder color */
    background-image: url('img/avatar-1.png');
    background-size: cover;
}

.review-card h4 {
    font-size: 1rem;
    color: var(--color-primary);
}

.review-card__role {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* --- ADAPTIVE PROGRAM --- */
@media (max-width: 768px) {
    .program__gallery {
        flex-direction: column; /* Stack vertically on mobile */
        height: 600px;
    }

    .panel {
        width: 100%;
        flex: 1; /* Default height */
    }

    .panel.active {
        flex: 5; /* Expanded height */
    }
    
    .panel__title {
        font-size: 1.2rem;
    }
    
    /* Faster scroll on mobile */
    .ticker__track {
        animation-duration: 20s;
    }
    
    .review-card {
        width: 280px;
        font-size: 0.9rem;
    }
}

/* --- CONTACT SECTION --- */
.contact {
    padding: 100px 0;
    background-color: var(--color-primary); /* Dark background */
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Background decoration */
.contact::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact__desc {
    color: #94A3B8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact__features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.contact__features i {
    color: var(--color-accent);
    width: 20px;
    height: 20px;
}

/* Form Styles */
.contact__form-wrapper {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-md);
    color: var(--color-text);
    position: relative;
}

.form__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
}

.form__input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form__input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.form__checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.form__checkbox {
    margin-top: 3px;
}

.form__checkbox-label a {
    color: var(--color-accent);
    text-decoration: underline;
}

.btn--full {
    width: 100%;
}

/* Success Message State */
.form-success {
    display: none; /* Hidden by default */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    animation: fadeIn 0.4s ease;
}

.form-success.active {
    display: flex;
}

.form-success__icon {
    color: #10B981;
    margin-bottom: 20px;
}

.form-success__icon i {
    width: 64px;
    height: 64px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%); /* Hidden initially */
    width: 90%;
    max-width: 600px;
    background-color: rgba(15, 23, 42, 0.95);
    color: var(--color-white);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-popup.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-popup a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* --- POLICY PAGES STYLING (Standardized) --- */
.pages {
    padding: 40px 0 80px;
    min-height: 80vh;
}

.pages h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
}

.pages h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.pages p {
    margin-bottom: 15px;
    color: var(--color-text);
}

.pages ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.pages li {
    margin-bottom: 8px;
    color: var(--color-text);
}

.pages a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* --- MOBILE CONTACT --- */
@media (max-width: 768px) {
    .contact__container {
        grid-template-columns: 1fr;
    }
    
    .cookie-popup {
        flex-direction: column;
        text-align: center;
    }
}