/* ==================== GLOBAL STYLES ==================== */
:root {
    /* Colors */
    --background-dark: #0D1B2A;
    --background-light: #E0E1DD;
    --primary-accent: #4CAF50;
    --primary-accent-hover: #45a049;
    --text-light: #F8F9FA;
    --text-dark: #0D1B2A;
    --border-color: rgba(248, 249, 250, 0.1);

    /* Typography */
    --font-family-headings: 'Montserrat', sans-serif;
    --font-family-body: 'Roboto', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== HEADER ==================== */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    transition: background-color var(--transition-fast), padding var(--transition-fast);
}

.header--scrolled {
    background-color: rgba(13, 27, 42, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

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

.header__logo {
    font-family: var(--font-family-headings);
    font-size: 24px;
    font-weight: 700;
    transition: color var(--transition-fast);
}
.header__logo:hover {
    color: var(--primary-accent);
}

.header__nav {
    display: flex;
}

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

.header__link {
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color var(--transition-fast);
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-accent);
    transition: width var(--transition-fast);
}

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

.header__link:hover::after {
    width: 100%;
}

.header__link--button {
    background-color: var(--primary-accent);
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 5px;
    border: 2px solid var(--primary-accent);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.header__link--button:hover {
    background-color: transparent;
    color: var(--primary-accent);
}
.header__link--button::after {
    display: none;
}

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

/* Header media queries */
@media (max-width: 768px) {
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--background-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    .header__nav--active {
        right: 0;
    }

    .header__list {
        flex-direction: column;
        gap: 40px;
    }

    .header__link {
        font-size: 20px;
    }

    .header__burger {
        display: block;
        z-index: 101; /* Above the nav */
    }
    .header__burger i {
        width: 28px;
        height: 28px;
    }
}


/* ==================== FOOTER ==================== */
.footer {
    background-color: #08121d;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

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

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

.footer__logo {
    font-family: var(--font-family-headings);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light);
}

.footer__copy {
    font-size: 14px;
    color: rgba(248, 249, 250, 0.6);
}

.footer__title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-light);
}

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

.footer__link {
    color: rgba(248, 249, 250, 0.8);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
    position: relative;
}

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

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

.footer__address {
    color: rgba(248, 249, 250, 0.8);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .footer__container {
        text-align: center;
    }
    .footer__column--logo {
        align-items: center;
    }
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* Offset for the fixed header */
    overflow: hidden;
}

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

.hero__container {
    text-align: center;
}

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

.hero__title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-light);
    animation: fadeInDown 1s ease-out forwards;
}

.hero__subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(248, 249, 250, 0.8);
    animation: fadeInUp 1s 0.3s ease-out forwards;
    opacity: 0;
}

.hero__cta {
    display: inline-block;
    background-color: var(--primary-accent);
    color: var(--text-light);
    font-family: var(--font-family-headings);
    font-weight: 600;
    font-size: 18px;
    padding: 15px 35px;
    border-radius: 5px;
    border: 2px solid var(--primary-accent);
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    animation: fadeInUp 1s 0.6s ease-out forwards;
    opacity: 0;
}

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

/* Animations for Hero content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Hero media queries */
@media (max-width: 768px) {
    .hero__title {
        font-size: 42px;
    }
    .hero__subtitle {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
    }
    .hero__title {
        font-size: 32px;
    }
    .hero__subtitle {
        font-size: 16px;
    }
    .hero__cta {
        font-size: 16px;
        padding: 12px 28px;
    }
}
/* ==================== COURSES ==================== */
.courses {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.courses__title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 50px;
}

.courses__tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.courses__tab {
    padding: 10px 25px;
    font-family: var(--font-family-headings);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    background-color: transparent;
    border: 2px solid rgba(13, 27, 42, 0.2);
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.courses__tab:hover {
    background-color: rgba(13, 27, 42, 0.1);
    border-color: var(--primary-accent);
}

.courses__tab--active {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
    color: var(--text-light);
}

.courses__content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.courses__content--active {
    display: block;
}

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

.course-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.course-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card__body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-card__title {
    font-size: 22px;
    margin-bottom: 10px;
}

.course-card__description {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-card__stack {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.course-card__stack-item {
    font-size: 12px;
    font-weight: 500;
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--primary-accent);
    padding: 5px 10px;
    border-radius: 15px;
}

.course-card__cta {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-accent);
    border: 2px solid var(--primary-accent);
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    margin-top: auto;
}

.course-card__cta:hover {
    background-color: var(--primary-accent);
    color: #fff;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .courses__title {
        font-size: 32px;
    }
    .courses__tabs {
        gap: 10px;
    }
    .courses__tab {
        font-size: 16px;
        padding: 8px 18px;
    }
}

/* ==================== PROCESS ==================== */
.process {
    padding: 80px 0;
    background-color: var(--background-dark);
}

.process__title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-light);
}

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

/* The vertical line */
.process__timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-accent);
    opacity: 0.2;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.process__item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

.process__item:nth-child(even) {
    left: 50%;
    padding-right: 0;
    padding-left: 60px;
}

.process__icon-wrapper {
    position: absolute;
    top: 20px;
    z-index: 10;
    width: 50px;
    height: 50px;
}

.process__item:nth-child(odd) .process__icon-wrapper {
    right: -25px;
}

.process__item:nth-child(even) .process__icon-wrapper {
    left: -25px;
}

.process__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-accent);
    color: var(--text-light);
    border-radius: 50%;
    border: 4px solid var(--background-dark);
}

.process__icon i {
    width: 24px;
    height: 24px;
}

.process__content {
    padding: 20px 30px;
    background-color: #1a2c3e;
    position: relative;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.process__step {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-accent);
    margin-bottom: 8px;
    display: inline-block;
}

.process__heading {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.process__text {
    font-size: 15px;
    color: rgba(248, 249, 250, 0.8);
    line-height: 1.7;
}

/* Mobile first adjustments */
@media (max-width: 768px) {
    .process__timeline::after {
        left: 35px;
    }

    .process__item {
        width: 100%;
        padding-left: 80px;
        padding-right: 15px;
        text-align: left !important; /* Override inline styles */
        left: 0 !important;
    }

    .process__item:nth-child(odd),
    .process__item:nth-child(even) {
        padding-left: 80px;
        padding-right: 15px;
        left: 0;
    }

    .process__icon-wrapper {
        left: 10px !important; /* Override inline styles */
        right: auto !important;
    }
}

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

/* ==================== MENTORS ==================== */
.mentors {
    padding: 80px 0;
    background-color: var(--background-light);
}

.mentors__title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
}

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

.mentor-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    overflow: hidden;
    /* Animation properties */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.mentor-card--visible {
    opacity: 1;
    transform: translateY(0);
}

.mentor-card__image-wrapper {
    position: relative;
    height: 300px;
}

.mentor-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.mentor-card:hover .mentor-card__image {
    transform: scale(1.05);
}

.mentor-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 27, 42, 0.8) 0%, rgba(13, 27, 42, 0) 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.mentor-card:hover .mentor-card__overlay {
    opacity: 1;
}

.mentor-card__socials {
    display: flex;
    gap: 15px;
    transform: translateY(20px);
    transition: transform 0.3s ease-in-out;
}

.mentor-card:hover .mentor-card__socials {
    transform: translateY(0);
}

.mentor-card__socials a {
    color: var(--text-light);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.mentor-card__socials a:hover {
    color: var(--primary-accent);
    transform: scale(1.2);
}

.mentor-card__info {
    padding: 25px;
}

.mentor-card__name {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.mentor-card__specialty {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-accent);
    margin-bottom: 15px;
}

.mentor-card__quote {
    font-size: 14px;
    color: #555;
    font-style: italic;
    line-height: 1.6;
}

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

/* ==================== REVIEWS ==================== */
.reviews {
    padding: 80px 0;
    background-color: var(--background-dark);
}

.reviews__title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-light);
}

.reviews__slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px; /* Space for navigation arrows */
}

.swiper {
    width: 100%;
    overflow: hidden;
}

.review-card {
    background-color: #1a2c3e;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card__icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    color: var(--primary-accent);
    opacity: 0.1;
}

.review-card__text {
    font-size: 18px;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 30px;
    color: rgba(248, 249, 250, 0.9);
}

.review-card__author {
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-family-headings);
    color: var(--text-light);
}

.review-card__course {
    font-size: 14px;
    color: var(--primary-accent);
}

/* Swiper navigation and pagination */
.reviews__nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    z-index: 10;
}

.reviews__nav-button:hover {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
}

.reviews__nav-button--prev {
    left: 0;
}

.reviews__nav-button--next {
    right: 0;
}

.reviews__pagination {
    margin-top: 30px;
    text-align: center;
    position: relative;
    bottom: 0;
}

.reviews__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: background-color var(--transition-fast);
}

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

/* Media Queries */
@media (max-width: 768px) {
    .reviews__slider-container {
        padding: 0;
    }
    .reviews__nav-button {
        display: none; /* Hide arrows on mobile, rely on swipe */
    }
}

@media (max-width: 480px) {
    .reviews__title {
        font-size: 32px;
    }
    .review-card {
        padding: 30px;
    }
    .review-card__text {
        font-size: 16px;
    }
}

/* ==================== CONTACT ==================== */
.contact {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

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

.contact__title {
    font-size: 42px;
    margin-bottom: 20px;
}

.contact__subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

.contact__form-wrapper {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

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

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

.form-group__label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group__input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group__input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.form-group__input.invalid {
    border-color: #d9534f;
}

.form__checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
}

.form__checkbox-wrapper input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--primary-accent);
    width: 16px;
    height: 16px;
}

.form__checkbox-wrapper label {
    font-size: 14px;
    color: #555;
}

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

.form__submit {
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-family-headings);
    background-color: var(--primary-accent);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

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

.form__submit:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.form__success-message {
    display: none; /* Initially hidden */
    text-align: center;
    padding: 20px;
}

.form__success-message--visible {
    display: block; /* Shown via JS */
}

.form__success-message i {
    width: 60px;
    height: 60px;
    color: var(--primary-accent);
    margin-bottom: 20px;
}

.form__success-message h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Media Queries */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact__title {
        font-size: 32px;
    }
    .contact__form-wrapper {
        padding: 25px;
    }
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 400px;
    background-color: #1a2c3e;
    color: var(--text-light);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 200;
    transform: translateY(200%);
    transition: transform 0.5s ease-in-out;
}

.cookie-popup--visible {
    transform: translateY(0);
}

.cookie-popup__content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-popup__text {
    font-size: 14px;
    line-height: 1.6;
}

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

.cookie-popup__button {
    background-color: var(--primary-accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color var(--transition-fast);
}

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

@media(max-width: 480px) {
    .cookie-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: 100%;
    }
    .cookie-popup__content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* ==================== POLICY PAGES STYLES ==================== */
.pages {
    padding: 120px 0 80px 0;
    background-color: #fff;
    color: var(--text-dark);
}

.pages .container {
    max-width: 800px; /* Optimal width for reading text */
}

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

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

.pages p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

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

.pages li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #333;
}

.pages a {
    color: var(--primary-accent);
    font-weight: 600;
    text-decoration: none;
    transition: text-decoration var(--transition-fast);
}

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

.pages strong {
    font-weight: 700;
}