/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;700&family=Space+Mono:wght@700&display=swap');

/* ==================== CSS VARIABLES ==================== */
:root {
    --bg-color: #111111;
    --surface-color: #1D1D1D;
    --primary-color: #E000B5;
    --text-color: #F5F5F5;
    --text-muted: #8A8A8A;

    --font-body: 'Manrope', sans-serif;
    --font-display: 'Space Mono', monospace;

    --header-height: 5rem;
}

/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--surface-color);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.header__logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

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

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

.header__nav-link {
    color: var(--text-muted);
    font-weight: 700;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

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

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

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

.header__nav-link--button {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.header__nav-link--button::after {
    display: none;
}

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

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--surface-color);
    padding-top: 4rem;
    border-top: 1px solid #2a2a2a;
}

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

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

.footer__description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer__title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

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

.footer__link {
    color: var(--text-muted);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

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

.footer__list--contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__list--contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    margin-top: 2px;
}

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

.footer__bottom {
    padding: 1.5rem 0;
    border-top: 1px solid #2a2a2a;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

    .header__burger-menu {
        display: block; /* Show burger icon */
    }
    
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__list--contact li {
        justify-content: center;
    }

    .footer__logo, .footer__title {
        text-align: center;
    }
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    text-align: center;
    overflow: hidden; /* To contain background shapes */
}

.hero__container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    min-height: 2.5rem; /* Reserve space to prevent layout shift */
}

.hero__description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.hero__cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

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

/* Background Shapes Animation */
.hero__background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.1;
    filter: blur(80px);
}

.hero__shape--1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 15%;
    animation: float-shape 15s infinite alternate ease-in-out;
}

.hero__shape--2 {
    width: 300px;
    height: 300px;
    bottom: 5%;
    right: 10%;
    animation: float-shape 20s infinite alternate ease-in-out;
    animation-delay: -5s;
}

.hero__shape--3 {
    width: 250px;
    height: 250px;
    top: 50%;
    right: 25%;
    animation: float-shape 18s infinite alternate ease-in-out;
    animation-delay: -10s;
}

@keyframes float-shape {
    from {
        transform: translateY(20px) translateX(-20px) rotate(0deg);
    }
    to {
        transform: translateY(-20px) translateX(20px) rotate(90deg);
    }
}

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

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

/* ==================== SHARED SECTION STYLES ==================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-header__subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== COURSES ==================== */
.courses {
    padding: 6rem 0;
    background-color: var(--bg-color); /* You can alternate background colors */
}

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

.course-card {
    background-color: var(--surface-color);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.course-card__icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(224, 0, 181, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.course-card__icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.course-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.course-card__description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes link to the bottom */
}

.course-card__details {
    display: flex;
    gap: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.course-card__detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-card__detail-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.course-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.course-card__tag {
    background-color: #2a2a2a;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #444;
}

.course-card__link {
    color: var(--primary-color);
    font-weight: 700;
    font-family: var(--font-display);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start; /* Aligns button to the left */
}

.course-card__link-icon {
    transition: transform 0.3s ease;
    width: 20px;
}

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

/* Responsive adjustments for Courses section */
@media (max-width: 768px) {
    .courses {
        padding: 4rem 0;
    }

    .section-header__title {
        font-size: 2rem;
    }
}

/* ==================== PROCESS ==================== */
.process {
    padding: 6rem 0;
    background-color: var(--surface-color); /* Alternate background color */
}

.process__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* The vertical line */
.process__timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #2a2a2a;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 1;
}

.process__item {
    position: relative;
    width: 50%;
    padding: 1rem 2.5rem;
    z-index: 2;
}

/* Place items on the left and right */
.process__item:nth-child(odd) {
    align-self: flex-start;
    padding-right: 4rem; /* Space from center */
}

.process__item:nth-child(even) {
    align-self: flex-end;
    padding-left: 4rem; /* Space from center */
}

.process__content {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

.process__icon-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--surface-color);
    z-index: 3;
}

.process__icon {
    width: 24px;
    height: 24px;
    color: var(--text-color);
}

/* Position icons on the timeline */
.process__item:nth-child(odd) .process__icon-wrapper {
    right: 0;
    transform: translate(50%, -50%);
}

.process__item:nth-child(even) .process__icon-wrapper {
    left: 0;
    transform: translate(-50%, -50%);
}

.process__title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.process__description {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive adjustments for Process section */
@media (max-width: 820px) {
    .process__timeline::after {
        left: 25px; /* Move line to the left */
    }

    .process__item {
        width: 100%;
        padding-left: 5rem; /* Space for line and icon */
        padding-right: 1rem;
    }

    .process__item:nth-child(odd),
    .process__item:nth-child(even) {
        align-self: auto;
        padding-left: 5rem;
    }

    .process__icon-wrapper {
        left: 25px; /* Center icon on the line */
        transform: translate(-50%, -50%);
    }
    
    .process__item:nth-child(odd) .process__icon-wrapper,
    .process__item:nth-child(even) .process__icon-wrapper {
        left: 25px;
        transform: translate(-50%, -50%);
    }
}

/* ==================== ABOUT US ==================== */
.about {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

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

.about__title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.about__description {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.about__principles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about__principle-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
}

.about__principle-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.about__image-content {
    min-height: 400px;
}

.about__team-grid {
    position: relative;
    height: 100%;
    width: 100%;
    min-height: 450px;
}

.about__team-member {
    position: absolute;
    border-radius: 8px;
    overflow: hidden;
    border: 4px solid var(--surface-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.about__team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__team-member--1 {
    width: 65%;
    height: auto;
    aspect-ratio: 3/4;
    top: 0;
    left: 0;
    z-index: 2;
}

.about__team-member--2 {
    width: 55%;
    height: auto;
    aspect-ratio: 3/4;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 3;
}

.about__team-member--3 {
    width: 50%;
    height: auto;
    aspect-ratio: 3/4;
    bottom: 0;
    left: 15%;
    z-index: 1;
}

/* Hover effects for team members */
.about__team-member:hover {
    transform: scale(1.05) translateY(-5px);
    z-index: 4;
}

.about__member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--text-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.about__team-member:hover .about__member-info {
    opacity: 1;
    transform: translateY(0);
}

.about__member-name {
    font-size: 1.1rem;
}

.about__member-role {
    font-size: 0.9rem;
    color: var(--text-muted);
}


/* Responsive adjustments for About Us section */
@media (max-width: 992px) {
    .about__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about__text-content {
        text-align: center;
    }
    .about__principles-list {
        align-items: center; /* Center items on mobile */
    }
    .about__image-content {
        order: -1; /* Move images to the top on mobile */
    }
}

@media (max-width: 576px) {
    .about__title {
        font-size: 2rem;
    }
    .about__team-grid {
        min-height: 350px;
    }
}
/* ==================== REVIEWS ==================== */
.reviews {
    padding: 6rem 0;
    background-color: var(--surface-color);
}

.reviews-slider {
    position: relative;
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-card {
    background-color: var(--bg-color);
    padding: 2.5rem;
    padding-top: 3rem;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
}

.review-card::before {
    content: '“';
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    font-family: serif;
    font-size: 8rem;
    color: var(--surface-color);
    z-index: 1;
    line-height: 1;
}

.review-card__text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.review-card__author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--surface-color);
}

.review-card__author-name {
    font-size: 1.1rem;
    margin: 0;
}

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

/* Swiper custom styles */
:root {
    --swiper-pagination-color: var(--primary-color);
    --swiper-pagination-bullet-inactive-color: #444;
    --swiper-navigation-color: var(--primary-color);
}

.swiper-pagination {
    position: static !important; /* Override default positioning */
    margin-top: 2rem;
}

.swiper-button-prev,
.swiper-button-next {
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .review-card__text {
        font-size: 1rem;
    }
    .swiper-button-prev,
    .swiper-button-next {
        display: none; /* Hide arrows on mobile, rely on swipe */
    }
}

/* ==================== CONTACT ==================== */
.contact {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

.contact__info-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact__info-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact__info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

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

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

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

.form-input.is-invalid {
    border-color: #ff5555;
}

.form-group--captcha {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.form-group--captcha .form-input {
    max-width: 100px;
}

.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.form-group--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}
.form-label-checkbox {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.form-label-checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-form__button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-form__button:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.contact-form__button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-error-message {
    color: #ff5555;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: none;
}

/* Success Message */
.contact__success-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 2rem;
}
.success-message__icon {
    width: 60px;
    height: 60px;
    color: #22c55e; /* Green color */
    margin-bottom: 1rem;
}
.success-message__title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.success-message__text {
    color: var(--text-muted);
}


/* Responsive */
@media (max-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    padding: 1.5rem 0;
    border-top: 1px solid #2a2a2a;
    z-index: 200;
    
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    visibility: hidden;
}

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

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

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

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

.cookie-popup__button {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

@media (max-width: 768px) {
    .cookie-popup__container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==================== POLICY PAGES ==================== */
.pages {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
}

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

.pages h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.pages p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.pages ul, .pages ol {
    color: var(--text-muted);
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.pages li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

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