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

/* --- Global Settings & Variables --- */
:root {
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --color-bg: #1A1A1A;
    --color-text: #F5F5F5;
    --color-primary: #FF6B00;
    --color-muted: #888888;
    --color-surface: #242424;

    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

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

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

h1, h2, h3 {
    font-family: var(--font-primary);
    font-weight: 500;
}

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


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

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

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

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

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

.header__nav-link {
    position: relative;
    padding: 5px 0;
    color: var(--color-muted);
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

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

.header__nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

.header__nav-link--cta:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}
.header__nav-link--cta::after {
    display: none;
}

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

/* --- Footer --- */
.footer {
    background-color: #121212;
    padding: 60px 0;
    border-top: 1px solid var(--color-surface);
    color: var(--color-muted);
}

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

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

.footer__copyright {
    font-size: 14px;
}

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

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

.footer__link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

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

.footer__icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer__address {
    align-items: flex-start;
}


/* --- Responsive (Mobile-First) --- */
@media (max-width: 768px) {
    .header__nav {
        display: none; /* Hide nav by default on mobile */
    }

    .header__burger-menu {
        display: block; /* Show burger menu on mobile */
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__column--logo {
        margin-bottom: 20px;
    }
    
    .footer__list--contacts li {
        justify-content: center;
    }
    
    .footer__address {
        flex-direction: column;
        align-items: center;
    }
    
    .footer__icon {
        margin: 0 0 8px 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Button --- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-bg);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    position: relative;
}

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

.button__text {
    margin-right: 8px;
}

.button__icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.button:hover .button__icon {
    transform: translateX(5px);
}


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

.hero__background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, var(--color-surface) 1px, transparent 1px),
        linear-gradient(to bottom, var(--color-surface) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    animation: pan-grid 60s linear infinite;
}

@keyframes pan-grid {
    0% { background-position: 0 0; }
    100% { background-position: 1200px 1200px; }
}

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

.hero__content {
    max-width: 750px;
    text-align: left;
}

.hero__title {
    font-size: 3.5rem; /* 56px */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    min-height: 135px; /* Placeholder height to prevent layout shift */
}

.hero__title .char {
    display: inline-block;
}

.hero__subtitle {
    font-size: 1.125rem; /* 18px */
    color: var(--color-muted);
    max-width: 600px;
    margin-bottom: 30px;
}

.hero__cta-button {
    padding: 14px 32px;
    font-size: 18px;
}

/* --- Responsive for Hero --- */
@media (max-width: 768px) {
    .hero {
        text-align: center;
        min-height: calc(90vh - var(--header-height));
    }
    .hero__content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero__title {
        font-size: 2.5rem; /* 40px */
        min-height: 100px;
    }
    .hero__subtitle {
        font-size: 1rem; /* 16px */
    }
}

/* --- General Section Styles --- */
.section {
    padding: 80px 0;
}

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

.section__title {
    font-size: 2.5rem; /* 40px */
    font-weight: 700;
    margin-bottom: 15px;
}

.section__subtitle {
    font-size: 1.125rem; /* 18px */
    color: var(--color-muted);
    line-height: 1.7;
}


/* --- Programs Section --- */
.programs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.programs__card {
    background-color: var(--color-surface);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.programs__card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.programs__card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.programs__card-icon svg {
    width: 100%;
    height: 100%;
}

.programs__card-title {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 10px;
    color: var(--color-text);
}

.programs__card-description {
    color: var(--color-muted);
    flex-grow: 1; /* Pushes the tech block to the bottom */
    margin-bottom: 20px;
}

.programs__tech-title {
    font-size: 0.875rem; /* 14px */
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.programs__tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.programs__tech-item {
    background-color: rgba(255, 107, 0, 0.1);
    color: var(--color-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
}

.programs__card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--color-text);
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.programs__card:hover .programs__card-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* --- Responsive for Programs --- */
@media (max-width: 1024px) {
    .programs__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    .section__title {
        font-size: 2rem;
    }
    .section__subtitle {
        font-size: 1rem;
    }
    .programs__grid {
        grid-template-columns: 1fr;
    }
}
/* --- Process Section --- */
.process {
    background-color: var(--color-surface);
}

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

/* The connecting line for desktop */
.process__timeline::before {
    content: '';
    position: absolute;
    top: 34px; /* Vertically center with the icon */
    left: 5%;
    right: 5%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--color-primary),
        var(--color-primary) 6px,
        transparent 6px,
        transparent 12px
    );
    z-index: 0;
}

.process__step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.process__step-icon {
    width: 68px;
    height: 68px;
    background-color: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.process__step-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.process__step-content {
    background-color: var(--color-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    height: 100%; /* Make all cards same height */
    position: relative;
    overflow: hidden;
}

.process__step-number {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.process__step-title {
    font-size: 1.25rem; /* 20px */
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.process__step-description {
    color: var(--color-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

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

@media (max-width: 768px) {
    .process__timeline {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-left: 40px; /* Space for the vertical line */
    }

    /* The connecting line for mobile (vertical) */
    .process__timeline::before {
        display: block;
        top: 20px;
        bottom: 20px;
        left: 33px; /* Center with the icon */
        width: 2px;
        height: auto;
        right: auto;
        background: repeating-linear-gradient(
            180deg,
            var(--color-primary),
            var(--color-primary) 6px,
            transparent 6px,
            transparent 12px
        );
    }

    .process__step {
        flex-direction: row;
        align-items: flex-start;
    }

    .process__step-icon {
        position: absolute;
        left: -40px;
        top: 0;
        margin: 0;
    }
}

/* --- Mentors Section --- */
.mentors__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.mentors__card {
    text-align: center;
}

.mentors__card-image-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 4px var(--color-surface);
}

.mentors__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mentors__card:hover .mentors__card-image {
    transform: scale(1.1);
}

.mentors__card-social {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 107, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mentors__card-social svg {
    width: 32px;
    height: 32px;
    color: var(--color-text);
}

.mentors__card:hover .mentors__card-social {
    opacity: 1;
}

.mentors__card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 5px;
}

.mentors__card-specialization {
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 15px;
}

.mentors__card-quote {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Responsive for Mentors --- */
@media (max-width: 1024px) {
    .mentors__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 30px;
    }
}

@media (max-width: 768px) {
    .mentors__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

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

.reviews__slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 50px; /* Space for navigation buttons */
}

.swiper.reviews__slider {
    padding-bottom: 50px; /* Space for pagination */
}

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

.review-card__text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.review-card__text::before {
    content: '“';
    font-family: serif;
    font-size: 4rem;
    color: var(--color-primary);
    position: absolute;
    left: -10px;
    top: -10px;
    opacity: 0.5;
}

.review-card__author {
    display: flex;
    align-items: center;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.review-card__author-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.review-card__author-name {
    font-style: normal;
    font-weight: 700;
    color: var(--color-text);
}

.review-card__author-course {
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* Swiper Customization */
.reviews__slider-button {
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.reviews__slider-button:hover {
    transform: scale(1.1);
}

.reviews__slider-button::after {
    font-size: 24px !important;
    font-weight: 900;
}

.reviews__slider-pagination .swiper-pagination-bullet {
    background-color: var(--color-muted);
    opacity: 0.7;
}

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

/* Responsive for Reviews */
@media (max-width: 768px) {
    .reviews__slider-wrapper {
        padding: 0; /* No space needed if buttons are outside */
    }
    .reviews__slider-button {
        display: none; /* Hide buttons on small screens, use pagination */
    }
    .review-card {
        min-height: 320px;
    }
}

/* --- Contact Section --- */
.contact {
    padding-bottom: 120px;
}
.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact__form-container {
    background-color: var(--color-surface);
    padding: 40px;
    border-radius: 8px;
}

/* Form Styles */
.form__group {
    margin-bottom: 20px;
}

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

.form__input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--color-bg);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--color-text);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input::placeholder {
    color: #666;
}

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

/* Checkbox Styles */
.form__group--checkbox {
    display: flex;
    align-items: flex-start;
    margin-top: 25px;
}

.form__checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--color-primary);
}

.form__checkbox-label {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-left: 10px;
    line-height: 1.5;
}

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

.contact__form-button {
    width: 100%;
    margin-top: 20px;
    font-size: 18px;
}

/* Success Message */
.contact__success-message {
    text-align: center;
    padding: 40px 20px;
}

.contact__success-icon {
    color: #28a745; /* Success green */
    margin-bottom: 20px;
}

.contact__success-icon svg {
    width: 60px;
    height: 60px;
}

.contact__success-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact__success-text {
    color: var(--color-muted);
    font-size: 1.1rem;
}

.hidden {
    display: none !important;
}

/* Responsive for Contact */
@media (max-width: 900px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact__info {
        text-align: center;
    }
    .contact__info .section__header {
        text-align: center !important;
    }
}
/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    border-top: 1px solid #333;
    padding: 15px 0;
    z-index: 200;
    transform: translateY(0);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 1;
}

.cookie-popup.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-popup__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-popup__text {
    color: var(--color-muted);
    font-size: 0.9rem;
}

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

.cookie-popup__button {
    padding: 8px 20px;
    flex-shrink: 0; /* Prevent button from shrinking */
}

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

/* --- Policy & Text Pages Styles --- */
.pages {
    padding: 60px 0;
    min-height: 80vh;
}

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

.pages h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 30px;
    line-height: 1.3;
}

.pages h2 {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-text);
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p {
    font-size: 1rem;
    color: var(--color-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.pages ul {
    list-style-type: disc;
    padding-left: 25px;
    color: var(--color-muted);
    margin-bottom: 20px;
}

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

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

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

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