/* Global Settings */
:root {
    --background-color: #111827;
    --text-color: #F3F4F6;
    --primary-color: #2DD4BF;
    --secondary-color: #4B5563;
    --header-height: 80px;
    --font-family-base: 'Inter', sans-serif;
    --font-family-heading: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* Logo */
.logo {
    font-family: var(--font-family-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

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

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

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

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

.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(--primary-color);
}

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

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

.header__nav-link--button:hover {
    background-color: #5eead4;
    color: var(--background-color);
}
.header__nav-link--button:hover::after {
    display: none;
}

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

/* Footer */
.footer {
    padding: 60px 0;
    background-color: #0c121f; /* Slightly darker than main bg */
    border-top: 1px solid var(--secondary-color);
}

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

.footer__logo {
    margin-bottom: 15px;
    display: inline-block;
}

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

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

.footer__list li {
    margin-bottom: 10px;
}

.footer__link {
    font-size: 15px;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

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

/* Mobile Adaptation */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none; /* Hide navigation for now, will implement mobile menu logic in JS */
    }
    .header__burger-menu {
        display: block;
    }
}

@media (max-width: 576px) {
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__list--contacts span,
    .footer__list--contacts a {
        justify-content: center;
    }
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-family-base);
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.button--primary {
    background-color: var(--primary-color);
    color: var(--background-color);
}

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

.button--secondary {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--secondary-color);
}

.button--secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}


/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
}

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

.hero__title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero__title-animated {
    color: var(--primary-color);
    position: relative;
    white-space: nowrap;
}

/* Blinking cursor effect */
.hero__title-animated::after {
    content: '|';
    position: absolute;
    right: -10px;
    top: 0;
    color: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero__subtitle {
    font-size: 18px;
    color: var(--secondary-color);
    max-width: 500px;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    gap: 20px;
}

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

.hero__image {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    /* You can add some creative styles here later */
}

/* Mobile Adaptation for Hero */
@media (max-width: 992px) {
    .hero__title {
        font-size: 44px;
    }
    .hero__subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
        text-align: center;
    }
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero__visual {
        order: -1; /* Image will be on top */
    }
    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 36px;
    }
    .hero__actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .button {
        width: 100%;
        max-width: 300px;
    }
}


/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header__title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header__subtitle {
    font-size: 18px;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Courses Section */
.courses {
    padding: 100px 0;
    background-color: #1a2233; /* A slightly lighter dark shade for contrast */
}

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

.course-card {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(45, 212, 191, 0.1);
    border-color: var(--primary-color);
}

.course-card__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(45, 212, 191, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.course-card__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.course-card__description {
    font-size: 15px;
    color: var(--secondary-color);
    flex-grow: 1;
    margin-bottom: 20px;
}

.course-card__link {
    font-weight: 500;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.course-card__link i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.course-card__link:hover i {
    transform: translateX(4px);
}

/* Mobile Adaptation for Courses */
@media (max-width: 992px) {
    .courses__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-header__title {
        font-size: 36px;
    }
    .section-header__subtitle {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .courses {
        padding: 80px 0;
    }
    .courses__grid {
        grid-template-columns: 1fr;
    }
}
/* Process Section */
.process {
    padding: 100px 0;
}

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

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

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

.process__item:last-child {
    margin-bottom: 0;
}

/* Position items to the left and right */
.process__item:nth-child(odd) {
    left: 0;
    padding-right: 70px;
    text-align: right;
}

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

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

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

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

.process__icon-wrapper i {
    width: 24px;
    height: 24px;
    color: var(--background-color);
}

.process__content {
    padding: 20px;
    background-color: #1a2233;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.process__item:hover .process__content {
    border-color: var(--primary-color);
}

.process__item-title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.process__item-description {
    font-size: 15px;
    color: var(--secondary-color);
}


/* Mobile Adaptation for Process */
@media (max-width: 768px) {
    .process__timeline::after {
        left: 25px;
    }

    .process__item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
        text-align: left;
    }

    .process__item:nth-child(odd),
    .process__item:nth-child(even) {
        left: 0;
    }

    .process__item:nth-child(odd) .process__icon-wrapper,
    .process__item:nth-child(even) .process__icon-wrapper {
        left: 0;
        transform: translate(0, -50%);
    }
}
/* About Section */
.about {
    padding: 100px 0;
    background-color: #1a2233; /* Same as courses section for consistency */
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Give more space to text content */
    align-items: center;
    gap: 60px;
}

.about__visual {
    width: 100%;
}

.about__image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.about__title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about__description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.about__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about__feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 16px;
}

.about__feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    margin-top: 3px;
}

/* Mobile Adaptation for About */
@media (max-width: 992px) {
    .about__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about__visual {
        max-width: 500px;
        margin: 0 auto;
    }
    .about__content {
        text-align: center;
    }
    .about__feature-item {
       text-align: left;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 80px 0;
    }
    .about__title {
        font-size: 36px;
    }
}

/* Reviews Section */
.reviews {
    padding: 100px 0;
}

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

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

.review-card {
    background-color: #1a2233;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--secondary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-card__quote-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

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

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

.review-card__name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

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

/* Swiper Controls Customization */
.reviews__slider-wrapper .swiper-button-prev,
.reviews__slider-wrapper .swiper-button-next {
    color: var(--primary-color);
    top: 50%;
    transform: translateY(-70%); /* Adjust vertical alignment */
}

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

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

/* Hide arrows on smaller screens where swiping is more common */
@media (max-width: 768px) {
    .reviews__slider-wrapper .swiper-button-prev,
    .reviews__slider-wrapper .swiper-button-next {
        display: none;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact__wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: #1a2233;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--secondary-color);
}

.contact__form .form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 15px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--background-color);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 16px;
    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(45, 212, 191, 0.2);
}

/* Checkbox styles */
.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.form-group--checkbox input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 5px;
    width: 18px;
    height: 18px;
}
.form-group--checkbox label {
    font-size: 14px;
    color: var(--secondary-color);
}
.form-group--checkbox label a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Error message styles */
.form-input.is-invalid {
    border-color: #ef4444;
}

.form-error-message {
    color: #f87171;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.contact__submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

/* Success Message */
.contact__success-message {
    text-align: center;
    padding: 40px;
}
.contact__success-message i {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.contact__success-message h4 {
    font-size: 24px;
    margin-bottom: 10px;
}
.contact__success-message p {
    color: var(--secondary-color);
}

@media (max-width: 576px) {
    .contact__wrapper {
        padding: 25px;
    }
}

/* Cookie Pop-up */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0c121f; /* Footer color */
    padding: 20px;
    border-top: 1px solid var(--secondary-color);
    z-index: 1000;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    /* Initial state for animation */
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

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

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

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

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

/* Mobile Adaptation for Cookie Pop-up */
@media (max-width: 768px) {
    .cookie-popup {
        flex-direction: column;
        padding: 15px;
    }
    .cookie-popup__text {
        margin-bottom: 10px;
    }
}

/* Policy & Static Pages Styles */
.pages {
    padding: 120px 0 80px; /* Add padding top to account for fixed header */
}

.pages .container {
    max-width: 800px; /* Limit width for better readability */
}

.pages h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 20px;
}

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

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

.pages ul,
.pages ol {
    list-style-position: inside;
    margin-left: 20px;
    margin-bottom: 20px;
}

.pages ul li,
.pages ol li {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

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

.pages a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

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

@media (max-width: 768px) {
    .pages h1 {
        font-size: 36px;
    }
    .pages h2 {
        font-size: 24px;
    }
}