/*
  Etap 0: Global styles and settings
*/

/* Fonts connection */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

/* CSS Variables */
:root {
    --font-main: 'Inter', sans-serif;
    --font-headings: 'Plus Jakarta Sans', sans-serif;

    --color-background: #12141D;
    --color-text: #E0E0E0;
    --color-primary: #5D5FEF;
    --color-secondary: #2A2D3A;
    --color-text-muted: #888B94;
    --color-white: #FFFFFF;

    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

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

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

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

/* Helper classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/*
  Etap 1: Header
*/

.header {
    background-color: rgba(18, 20, 29, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-secondary);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

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

.header__logo {
    font-family: var(--font-headings);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-white);
    transition: color 0.3s ease;
}

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

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

.header__nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

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

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

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

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

.header__nav-link--cta:hover {
    background-color: #4a4cc7;
    transform: translateY(-2px);
    color: var(--color-white);
}

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

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

/* Adaptive for Header */
@media (max-width: 768px) {
    .header__nav {
        display: none; /* Will be handled by JS */
    }

    .header__burger {
        display: block;
    }
}

/*
  Etap 2: Footer
*/
.footer {
    background-color: var(--color-secondary);
    padding: 60px 0;
    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;
}

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

.footer__logo {
    font-family: var(--font-headings);
    font-size: 28px;
    font-weight: 800;
    color: var(--color-white);
}

.footer__copyright {
    font-size: 14px;
    color: var(--color-text-muted);
}

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

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

.footer__link {
    font-size: 15px;
    color: var(--color-text-muted);
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.footer__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer__address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.5;
}

/*
  General purpose classes (can be added to Etap 0 later)
*/
.button {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: var(--color-white);
    background-color: var(--color-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: #4a4cc7;
    transform: translateY(-3px);
}


/*
  Etap 3: Hero Section
*/

.hero {
    position: relative;
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Hide anything that might spill out */
}

.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;
}

.hero__title {
    font-size: 64px;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}

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

    .hero__subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
        height: auto;
        padding: 80px 0;
    }
    
    .hero__title {
        font-size: 36px;
    }
}

/*
  General purpose classes
*/
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header__title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--color-white);
}

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

/*
  Etap 3: Directions Section
*/
.directions {
    padding: 100px 0;
    background-color: var(--color-background); /* Or a slightly different shade */
}

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

.card {
    background-color: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(93, 95, 239, 0.15);
}

.card__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(93, 95, 239, 0.1);
    border-radius: 50%;
    margin-bottom: 25px;
}

.card__icon i svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.card__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
}

.card__description {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Adaptive for Sections */
@media (max-width: 768px) {
    .section-header__title {
        font-size: 36px;
    }
    .section-header__subtitle {
        font-size: 16px;
    }
    .directions {
        padding: 80px 0;
    }
}

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

.process__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px; /* Space for the timeline line and dots */
}

/* The vertical timeline line */
.process__timeline::before {
    content: '';
    position: absolute;
    left: 8px; /* Centered on the dot's 18px width */
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--color-secondary);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item__point {
    position: absolute;
    left: 0;
    top: 10px; /* Align with text */
    width: 18px;
    height: 18px;
    background-color: var(--color-secondary);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item__content {
    margin-left: 30px;
    position: relative;
    overflow: hidden; /* To contain the step number */
}

.timeline-item__step {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 64px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    z-index: 1;
    line-height: 1;
}

.timeline-item__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.timeline-item__description {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Adaptive for Process section */
@media (max-width: 768px) {
    .process {
        padding: 80px 0;
    }
    .process__timeline {
        padding-left: 20px;
    }
    .timeline-item__content {
        margin-left: 20px;
    }
}
/*
  Etap 3: Mentors Section
*/
.mentors {
    padding: 100px 0;
    background-color: var(--color-secondary);
}

.mentors__slider-wrapper {
    position: relative;
    padding: 0 40px; /* Space for navigation buttons */
}

.mentors-slider {
    padding: 20px 0; /* To make shadow visible */
}

.mentor-card {
    background-color: var(--color-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.swiper-slide-active .mentor-card {
     transform: scale(1.05);
}

.mentor-card__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--color-secondary);
}

.mentor-card__name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 5px;
}

.mentor-card__role {
    font-size: 14px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.mentor-card__socials {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mentor-card__social-link {
    color: var(--color-text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
}

.mentor-card__social-link:hover {
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Swiper navigation buttons customization */
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-primary);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

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

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

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

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

/* Adaptive for Mentors section */
@media (max-width: 768px) {
    .mentors {
        padding: 80px 0;
    }
    .mentors__slider-wrapper {
        padding: 0; /* Remove padding and hide buttons on mobile */
    }
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
     .swiper-slide-active .mentor-card {
        transform: none; /* Disable scaling on mobile */
    }
}

/*
  Etap 3: Reviews Section
*/
.reviews {
    padding: 100px 0;
    background-color: var(--color-background);
}

.reviews-slider {
    padding-bottom: 50px; /* Space for pagination */
}

.review-card {
    background-color: var(--color-secondary);
    border-radius: 12px;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border-left: 4px solid var(--color-primary);
}

.review-card__icon {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.05);
}

.review-card__icon svg {
    width: 60px;
    height: 60px;
}

.review-card__text {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1; /* Pushes author to the bottom */
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-card__photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-card__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
}

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

/* Swiper pagination customization */
.swiper-pagination {
    bottom: 0 !important;
}
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--color-secondary);
    opacity: 1;
    transition: background-color 0.3s ease;
}

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

/* Adaptive for Reviews section */
@media (max-width: 768px) {
    .reviews {
        padding: 80px 0;
    }
}

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

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

.contact__info {
    max-width: 450px;
}

.contact__title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact__description {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

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

.contact__item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
}

.contact__icon {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
}

.form {
    background-color: var(--color-background);
    padding: 40px;
    border-radius: 12px;
}

.form__group {
    margin-bottom: 20px;
}

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

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

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(93, 95, 239, 0.3);
}

.form__group--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form__checkbox {
    width: 18px;
    height: 18px;
}

.form__checkbox-label {
    font-size: 14px;
    color: var(--color-text-muted);
}
.form__checkbox-label a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form__button {
    width: 100%;
    padding: 15px;
}

.form-success {
    text-align: center;
    padding: 40px;
}
.form-success__icon {
    color: #28a745; /* Success Green */
    margin-bottom: 20px;
}
.form-success__icon svg {
    width: 60px;
    height: 60px;
}
.form-success__title {
    font-size: 24px;
    color: var(--color-white);
    margin-bottom: 10px;
}
.form-success__text {
    color: var(--color-text-muted);
}

/* Adaptive for Contact section */
@media (max-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
    }
    .contact__info {
        text-align: center;
        max-width: 100%;
    }
    .contact__details {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/*
  Etap 5: Additional Elements
*/

/* Cookie Pop-up */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    z-index: 200;
    transform: translateY(0);
    transition: transform 0.5s ease-in-out;
}

.cookie-popup--hidden {
    transform: translateY(100%);
}

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

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

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

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

/* Styles for Policy Pages (privacy.html, terms.html, etc.) */
.pages {
    padding: 80px 0;
}

.pages h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 30px;
}

.pages h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-white);
    margin-top: 40px;
    margin-bottom: 20px;
}

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

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

.pages li {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 10px;
}

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

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

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


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