/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Space+Grotesk:wght@500;700&display=swap');

/* --- CSS Variables --- */
:root {
    --color-background: #121212;
    --color-text-primary: #EAEAEA;
    --color-text-secondary: #888888;
    --color-accent: #00FF99;
    --color-surface: #1E1E1E; /* For cards, headers, etc. */

    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Space Grotesk', sans-serif;

    --container-width: 1140px;
    --container-padding: 20px;
}

/* --- Global Resets & Base Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--color-text-primary);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* --- Header --- */
.header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-surface);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header__logo {
    font-family: var(--font-secondary);
    font-size: 24px;
    font-weight: 700;
}

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

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__nav-link {
    font-size: 16px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

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

.header__nav-link:hover::after {
    width: 100%;
}

.header__nav-link:hover {
    color: var(--color-text-primary);
}

.header__nav-link--cta {
    background-color: var(--color-accent);
    color: var(--color-background);
    padding: 8px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header__nav-link--cta:hover {
    background-color: var(--color-text-primary);
    color: var(--color-background);
}

.header__nav-link--cta::after {
    display: none; /* No underline for CTA button */
}

.header__burger-btn {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-surface);
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer__logo {
    font-family: var(--font-secondary);
    font-size: 28px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.footer__tagline {
    color: var(--color-text-secondary);
    font-size: 15px;
}

.footer__heading {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--color-text-primary);
}

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

.footer__list--contacts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 4px;
    color: var(--color-text-secondary);
}

.footer__address {
    font-style: normal;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.footer__link {
    color: var(--color-text-secondary);
}

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

.footer__bottom {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .header__nav {
        display: none; /* Will be handled by JS later for mobile menu */
    }

    .header__burger-btn {
        display: block;
    }
}


/* --- Button --- */
.button {
    display: inline-block;
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 16px;
    background-color: var(--color-accent);
    color: var(--color-background);
    padding: 14px 32px;
    border-radius: 5px;
    border: 2px solid var(--color-accent);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.button:hover {
    background-color: transparent;
    color: var(--color-accent);
    transform: translateY(-3px);
}


/* --- Hero Section --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 85px); /* Full height minus header height */
    padding: 80px 0;
    overflow: hidden;
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__content {
    max-width: 750px;
    margin: 0 auto;
}

/* Animation for content appearance */
.hero__title, .hero__subtitle, .hero__cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero__title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    animation-delay: 0.2s;
}

.hero__cta {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive for Hero --- */
@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 77px);
        padding: 60px 0;
    }
    .hero__title {
        font-size: 42px;
    }
    .hero__subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 36px;
    }
}

/* --- Global Section Header --- */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
}

.section-header__title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header__subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}


/* --- Courses Section --- */
.courses {
    padding: 100px 0;
    background-color: var(--color-background);
}

.courses__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--color-surface);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
}

.course-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 255, 153, 0.1);
    border-radius: 50%;
    margin-bottom: 25px;
}

.course-card__icon i {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.course-card__title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
}

.course-card__description {
    color: var(--color-text-secondary);
    font-size: 15px;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes the link to the bottom */
}

.course-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.tag {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 4px;
}

.course-card__link {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-card__link i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.course-card__link:hover i {
    transform: translateX(5px);
}


/* --- Responsive for Courses & Section Header --- */
@media (max-width: 768px) {
    .section-header__title {
        font-size: 36px;
    }
    .section-header__subtitle {
        font-size: 16px;
    }
    .courses {
        padding: 80px 0;
    }
}

/* --- About Section --- */
.about {
    padding: 100px 0;
    background-color: var(--color-surface); /* A slightly different BG to separate sections */
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 60px;
}

.about__image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.about__image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

/* We reset text-align for the section-header used here */
.about__content .section-header {
    text-align: left;
    margin: 0 0 40px 0;
    max-width: 100%;
}

.about__benefits-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about__benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.about__benefit-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 255, 153, 0.1);
}

.about__benefit-icon i {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
}

.about__benefit-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
}

.about__benefit-text p {
    color: var(--color-text-secondary);
    font-size: 15px;
}

/* --- Responsive for About Section --- */
@media (max-width: 992px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 80px 0;
    }
}

/* --- Process Section --- */
.process {
    padding: 100px 0;
    background-color: var(--color-background);
}

.process__timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* The connecting line */
.process__timeline::before {
    content: '';
    position: absolute;
    top: 30px; /* Aligns with the center of the icon */
    left: 5%;
    width: 90%;
    height: 2px;
    background-color: var(--color-surface);
    z-index: 1;
}

.process__step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.process__icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.process__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-background);
    border: 2px solid var(--color-surface);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.process__icon i {
    width: 28px;
    height: 28px;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.process__step:hover .process__icon {
    border-color: var(--color-accent);
    background-color: rgba(0, 255, 153, 0.1);
}

.process__step:hover .process__icon i {
    color: var(--color-accent);
}

.process__title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

.process__description {
    font-size: 15px;
    color: var(--color-text-secondary);
    padding: 0 10px;
}

/* --- Responsive for Process Section --- */
@media (max-width: 992px) {
    .process__timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
    .process__timeline::before {
        display: none; /* Hide horizontal line */
    }
}

@media (max-width: 768px) {
    .process {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    .process__timeline {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .process__step {
        display: flex;
        text-align: left;
        align-items: center;
        gap: 20px;
    }

    .process__icon-wrapper {
        margin-bottom: 0;
    }

    .process__description {
        padding: 0;
    }
}

/* --- FAQ Section --- */
.faq {
    padding: 100px 0;
    background-color: var(--color-surface);
}

.faq__accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--color-background);
}

.faq__item:first-child {
    border-top: 1px solid var(--color-background);
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 25px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.faq__question span {
    padding-right: 20px;
}

.faq__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

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

.faq__answer p {
    color: var(--color-text-secondary);
    padding-right: 40px; /* To not stick to the edge */
    line-height: 1.7;
}

/* Active state for accordion */
.faq__item.active .faq__question {
    color: var(--color-accent);
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
}

.faq__item.active .faq__answer {
    /* max-height will be set by JS */
    padding-bottom: 25px;
}

/* --- Responsive for FAQ Section --- */
@media (max-width: 768px) {
    .faq {
        padding: 80px 0;
    }
    .faq__question {
        font-size: 18px;
    }
}

/* --- Contact Section --- */
.contact {
    padding: 100px 0;
    background-color: var(--color-background);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-text-secondary);
    border-radius: 5px;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 255, 153, 0.2);
}

.form-group--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
}

.form-checkbox-label {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.form-checkbox-label a {
    color: var(--color-text-primary);
    text-decoration: underline;
}
.form-checkbox-label a:hover {
    color: var(--color-accent);
}

.contact-form__button {
    margin-top: 10px;
}

.form-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 40px;
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    background-color: var(--color-surface);
}

.form-message--error {
    border-color: #ff4d4d;
}

.form-message__icon {
    margin: 0 auto 20px auto;
    width: 48px;
    height: 48px;
    color: var(--color-accent);
}

.form-message--error .form-message__icon {
    color: #ff4d4d;
}

.form-message__title {
    font-size: 22px;
    margin-bottom: 10px;
}

/* --- Responsive for Contact Section --- */
@media (max-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .contact__info .section-header {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 80px 0;
    }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 800px;
    background-color: var(--color-surface);
    color: var(--color-text-primary);
    padding: 20px 25px;
    border-radius: 8px;
    border: 1px solid var(--color-text-secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 200;
    transition: opacity 0.3s ease, transform 0.3s ease, bottom 0.3s ease;
}

.cookie-popup.hidden {
    opacity: 0;
    pointer-events: none;
    bottom: -100px;
}

.cookie-popup__text {
    font-size: 15px;
    color: var(--color-text-secondary);
}

.cookie-popup__text a {
    color: var(--color-text-primary);
    text-decoration: underline;
}

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

.cookie-popup__button {
    flex-shrink: 0;
    padding: 10px 25px;
}


/* --- Policy Pages Styles --- */
.pages {
    padding: 80px 0;
}

.pages h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
}

.pages h2 {
    font-size: 28px;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

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

.pages li {
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.pages a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--color-accent);
}

.pages a:hover {
    color: var(--color-text-primary);
    border-bottom-color: var(--color-text-primary);
}

.pages strong {
    color: var(--color-text-primary);
    font-weight: 500;
}


/* --- Responsive for Cookie Pop-up --- */
@media (max-width: 768px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
    }
}