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

/* --- CSS Variables --- */
:root {
    --color-background: #0B0E13;
    --color-text-primary: #F9FAFB;
    --color-text-secondary: #9CA3AF;
    --color-accent: #4ADE80;
    --color-surface: #1D232A;
    --color-border: #374151;

    --font-family-headings: 'Space Grotesk', sans-serif;
    --font-family-body: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    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%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background-color: transparent;
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* --- Header --- */
.header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(11, 14, 19, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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

.header__logo {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 700;
}

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

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
}

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

.header__nav-link--button {
    background-color: var(--color-accent);
    color: var(--color-background);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.header__burger-menu {
    display: none;
    color: var(--color-text-primary);
}

/* --- Footer --- */
.footer {
    background-color: var(--color-surface);
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.footer__logo {
    font-family: var(--font-family-headings);
    font-size: 1.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer__copyright {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.footer__title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.footer__list li {
    margin-bottom: 0.75rem;
}

.footer__link {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

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

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

.footer__icon {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer__address {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

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

/* --- Hero Section --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    height: 100vh;
    padding-top: 80px; /* Offset for fixed header */
    overflow: hidden;
}

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

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0; /* Initially hidden, will be animated by JS */
}

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

.hero__content {
    max-width: 750px;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    opacity: 0; /* Initially hidden */
    transform: translateY(20px); /* For animation */
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0; /* Initially hidden */
    transform: translateY(20px); /* For animation */
}

.hero__cta {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-background);
    padding: 0.875rem 2.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    opacity: 0; /* Initially hidden */
    transform: translateY(20px); /* For animation */
}

.hero__cta:hover {
    background-color: var(--color-text-primary);
    transform: translateY(-3px);
}

/* --- Responsive for Hero --- */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }
}

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

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

.courses__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.courses__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

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

.courses__card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.courses__card-icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.courses__card-icon i {
    width: 100%;
    height: 100%;
}

.courses__card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.courses__card-description {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.courses__card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.courses__card-tag {
    background-color: var(--color-border);
    color: var(--color-text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .courses {
        padding: 4rem 0;
    }
    .courses__title {
        font-size: 2rem;
    }
}

/* --- Process Section --- */
.process {
    padding: 6rem 0;
    background-color: var(--color-surface);
}

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

.process__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.process__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

.process__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* The vertical line */
.process__timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--color-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.process__item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

/* The circle on the timeline */
.process__item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--color-background);
    border: 3px solid var(--color-accent);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

/* Positioning items */
.process__item:nth-child(odd) {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

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

/* Positioning circles for even items */
.process__item:nth-child(even)::after {
    left: -8px;
}

.process__item-content {
    padding: 20px 30px;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    position: relative;
    border-radius: 12px;
}

.process__item-number {
    position: absolute;
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-family-headings);
    color: rgba(255, 255, 255, 0.05);
    z-index: -1;
    top: -10px;
}

.process__item:nth-child(odd) .process__item-number {
    right: 10px;
}

.process__item:nth-child(even) .process__item-number {
    left: 10px;
}

.process__item-icon {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.process__item:nth-child(odd) .process__item-icon {
    margin-left: auto;
}

.process__item-icon i {
    width: 100%;
    height: 100%;
}

.process__item-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.process__item-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* --- Responsive for Process Section --- */
@media screen and (max-width: 900px) {
    .process__timeline::after {
        left: 20px;
    }

    .process__item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }
    
    .process__item:nth-child(odd),
    .process__item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    
    .process__item:nth-child(odd) .process__item-icon,
    .process__item:nth-child(even) .process__item-icon {
        margin-left: 0;
    }

    .process__item::after {
        left: 12px;
    }
    
    .process__item:nth-child(odd) .process__item-number,
    .process__item:nth-child(even) .process__item-number {
        left: 10px;
    }
}

/* --- Mentors Section --- */
.mentors {
    padding: 6rem 0;
    background-color: var(--color-background);
}

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

.mentors__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mentors__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

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

.mentors__card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mentors__card-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--color-border);
}

.mentors__card-name {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.mentors__card-role {
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.mentors__card-quote {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    flex-grow: 1;
    margin-bottom: 2rem;
}

.mentors__card-socials {
    display: flex;
    gap: 1.5rem;
}

.mentors__card-social-link {
    color: var(--color-text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.mentors__card-social-link:hover {
    color: var(--color-accent);
    transform: translateY(-3px);
}

/* --- Reviews Section --- */
.reviews {
    padding: 6rem 0;
    background-color: var(--color-surface);
}

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

.reviews__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.reviews__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

.reviews__slider {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px; /* Space for navigation buttons */
}

.reviews__card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reviews__card-text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
    flex-grow: 1;
}

.reviews__card-text::before {
    content: '“';
    font-family: serif;
    font-size: 4rem;
    color: var(--color-accent);
    position: absolute;
    transform: translate(-3rem, -1.5rem);
    opacity: 0.5;
}


.reviews__card-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviews__author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.reviews__author-name {
    font-size: 1.125rem;
    font-weight: 700;
}

.reviews__author-course {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* Swiper Customization */
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-accent);
    width: 50px;
    height: 50px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--color-border);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.25rem;
    font-weight: 900;
}

.swiper-pagination-bullet {
    background-color: var(--color-border);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: var(--color-accent);
}

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

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

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

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.contact__title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact__description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 450px;
}

.contact__form-group {
    margin-bottom: 1.5rem;
}

.contact__form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.contact__form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact__form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.contact__form-group--captcha {
    max-width: 200px;
}

.contact__form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.contact__form-group--checkbox label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.contact__form-group--checkbox a {
    color: var(--color-text-primary);
    text-decoration: underline;
}

.contact__form-group--checkbox a:hover {
    color: var(--color-accent);
}

.contact__form-group--checkbox input[type="checkbox"] {
    width: 1.25em;
    height: 1.25em;
    accent-color: var(--color-accent);
}

.contact__form-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-accent);
    color: var(--color-background);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.contact__form-button:hover {
    background-color: var(--color-text-primary);
}
.contact__form-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact__form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none; /* Hidden by default */
}

.contact__form-status--success {
    background-color: rgba(74, 222, 128, 0.1);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.contact__form-status--error {
    background-color: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid #f87171;
}

@media (max-width: 900px) {
    .contact__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact__text-content {
        text-align: center;
    }
    .contact__description {
        margin: 0 auto;
    }
}
/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    z-index: 2000;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.cookie-popup--show {
    bottom: 0;
}

.cookie-popup__text {
    color: var(--color-text-secondary);
    text-align: center;
}

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

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

.cookie-popup__button {
    background-color: var(--color-accent);
    color: var(--color-background);
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
    background-color: var(--color-text-primary);
}

@media (max-width: 600px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Policy & Text Pages Styles --- */
.pages {
    padding: 120px 0 6rem; /* 120px top padding to offset fixed header */
}

.pages .container {
    max-width: 800px;
}

.pages h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.pages h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.pages p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.pages ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

.pages li {
    margin-bottom: 0.75rem;
}

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

.pages a:hover {
    text-decoration: none;
}

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