@import url('https://googleapis.com');

:root {
    --bg-dark: #0b0f1a;
    --primary: #6366f1; /* Indigo */
    --accent: #06b6d4;  /* Cyan */
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Dynamic Background --- */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.15), transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(6, 182, 212, 0.15), transparent 30%);
    z-index: -1;
}

/* --- Modern Header --- */
.header {
    background: rgba(11, 15, 26, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 10%;
    position: fixed;
    width: 100%; top: 0; z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* --- Hero Section Improvement --- */
.hero {
    height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 0 10%;
    gap: 40px;
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

/* Кнопка "Майбутнього" */
.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: 0.4s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

/* Візуал */
.image-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.image-wrapper img {
    width: 100%;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    padding: 10px;
    background: var(--glass);
}
.btn-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: #fff;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: 0.7s;
}
.btn-cta:hover {
  background-color: #1d4ed8;
}
/* --- About Section Improvement --- */
.about {
    padding: 120px 10%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.tech-stats {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.stat-item { margin-bottom: 25px; }
.stat-label { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 8px; display: block; }
.bar-bg { height: 8px; background: rgba(255,255,255,0.05); border-radius: 10px; }
.bar-fill { 
    height: 100%; 
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}

@media (max-width: 968px) {
    .hero, .about-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.8rem; }
    .image-wrapper { display: none; }
}
/* Стилізація стат-барів (імітація технологічності) */
.tech-stack-display {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
}

.stat-item {
    margin-bottom: 1.5rem;
}

.stat-item span {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: block;
    margin-bottom: 5px;
}

.bar {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 10px var(--primary);
}
.btn-outline {
    display: inline-block;
    padding: 1rem 2rem;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}
/* Картки переваг у другу секцію */
.features-modern {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.f-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 15px;
    flex: 1;
    transition: 0.3s;
}

.f-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Анімація плавання */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 968px) {
    .hero-content h1 { font-size: 3rem; }
    .about-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
}
/* Декоративна лінія під заголовком */
.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Розподіл на дві колонки */
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Стилізація списку переваг */
.features {
    list-style: none;
    display: grid;
    gap: 1.5rem;
}

.features li {
    background: var(--secondary-color);
    padding: 1.2rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    font-size: 1rem;
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.features li:hover {
    transform: translateX(10px);
    background: #eef2ff;
}

.features li strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Адаптивність для About */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr; /* Одна колонка на планшетах/телефонах */
        gap: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}
/* --- Courses Section --- */
.courses {
    background-color: var(--secondary-color); /* Світлий фон для контрасту з попередньою секцією */
    text-align: center;
}

.courses h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Автоматична сітка */
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid transparent;
}

.course-card:hover {
    transform: translateY(-15px); /* Картка "підстрибує" */
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
}

.course-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.course-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    background: #000000;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    align-self: center;
}

/* Виділення середньої картки як найпопулярнішої */
.course-card:nth-child(2) {
    background: linear-gradient(180deg, var(--white) 0%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}

.course-card:nth-child(2)::before {
    content: "MOST POPULAR";
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent);
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 40px;
    transform: rotate(45deg);
}
/* --- Testimonials Section --- */
.reviews {
    background-color: var(--white);
    padding: 80px 10%;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    text-align: left;
}

/* Лапки для візуального акценту */
.testimonial-card::before {
    content: "“";
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-card span {
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    font-size: 0.9rem;
}

/* --- Contact Section --- */
.contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: var(--white);
    padding: 80px 10%;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

.contact-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #1d4ed8;
}

/* --- Footer --- */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 10%;
    text-align: center;
}

.footer-info a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.footer-info a:hover {
    text-decoration: underline;
}
html {
    scroll-behavior: smooth;
}
/* --- MOBILE OPTIMIZATION --- */

@media (max-width: 768px) {
    /* 1. Header & Navigation */
    .header {
        padding: 0.8rem 5%;
    }

    .nav-links {
        display: none; /* Приховуємо довгий список посилань */
    }

    /* 2. Hero Section */
    .hero {
        grid-template-columns: 1fr; /* Перемикаємо в одну колонку */
        height: auto;
        padding: 120px 5% 60px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem; /* Зменшуємо гігантський шрифт */
        letter-spacing: -1px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .image-wrapper {
        display: block; /* Повертаємо картинку, якщо вона була прихована */
        max-width: 80%;
        margin: 0 auto;
    }

    /* 3. About & Features */
    .about {
        padding: 60px 5%;
    }

    .about-grid {
        grid-template-columns: 1fr !important; /* Force single column */
        gap: 40px;
    }

    .features-modern {
        flex-direction: column; /* Картки стають одна під одною */
        gap: 1rem;
    }

    .f-card {
        width: 100%;
    }

    /* 4. Tech Stats */
    .tech-stats {
        padding: 25px 20px;
    }

    /* 5. Courses Section */
    .courses-container {
        grid-template-columns: 1fr; /* Одна картка на рядок */
        padding: 0 5%;
    }

    .course-card {
        padding: 2rem 1.5rem;
    }

    /* 6. General Elements */
    .btn-primary, .btn-cta, .btn-outline {
        width: 100%; /* Кнопки на всю ширину для зручності кліку */
        text-align: center;
        padding: 1rem;
    }
}

/* Додаткове виправлення для дуже маленьких екранів (iPhone SE тощо) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .badge {
        font-size: 0.65rem;
    }
}
