/* 1. Налаштування шрифтів та преміальна палітра */
:root {
    --bg-dark: #060608;        /* Глибокий чорний фон як на фото */
    --bg-card: #111114;        /* Колір карток */
    --primary: #0070f3;        /* Яскравий синій Next.js стиль */
    --primary-glow: rgba(0, 112, 243, 0.3);
    --accent-pink: #ff0080;    /* Рожевий для градієнта */
    --text-main: #ffffff;
    --text-muted: #888888;
    --border-white: rgba(255, 255, 255, 0.1);
    --grid-color: rgba(255, 255, 255, 0.03);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}
html{
	scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 2. Header & Navigation (Dark Glassmorphism) */
.header {
    background-color: rgba(6, 6, 8, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
}

.main-nav a:hover {
    color: var(--text-main);
}

/* 3. Кнопки з градієнтом та світінням */
.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

/* Кнопка "Обрати курс" з градієнтом */
.btn-primary {
    background: linear-gradient(90deg, #00c6ff 0%, #0072ff 50%, #ff0080 100%);
    background-size: 200% auto;
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
}

/* Кнопка "Безкоштовна консультація" */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-white);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

/* 4. Hero Section: Сітка + Сяйво (як на сайті-прикладі) */
.hero {
    padding: 120px 0;
    position: relative;
    text-align: center;
    /* Фонові ефекти */
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Синій Glow ефект знизу/збоку */
.hero::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 112, 243, 0.1) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    filter: blur(80px);
    z-index: -1;
}

/* Бейдж "Нове покоління" */
.social-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 112, 243, 0.1);
    border: 1px solid rgba(0, 112, 243, 0.3);
    padding: 8px 16px;
    border-radius: 100px;
    color: #00c6ff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(0, 112, 243, 0.2);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

/* Виділення слова IT градієнтом */
.hero h1 span {
    background: linear-gradient(to right, #00c6ff, #ff0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 5. Courses / Benefits (Dark Cards) */
.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-white);
    padding: 40px;
    border-radius: 20px;
    transition: 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.course-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
		cursor: pointer;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero-actions { flex-direction: column; }
}

/* Спільний стиль для заголовків секцій */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Переваги (Benefits) - робимо в ряд */
.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    list-style: none;
    margin-bottom: 80px;
}

.benefits-list article {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    border-radius: 16px;
    text-align: left; /* Вирівнювання по лівому краю виглядає дорожче */
    font-size: 1.1rem;
    transition: 0.3s;
}

.benefits-list article:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

/* Курси (Courses) - компактні картки */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: #111114;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px; /* Додаємо стабільну висоту */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 112, 243, 0.1);
}

.course-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #fff;
}

.course-card p {
    color: #888;
    font-size: 1rem;
    margin-bottom: 24px;
}

/* Кнопка Enroll Now */
.enroll-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.enroll-link:hover {
    gap: 12px; /* Ефект стрілки, що рухається */
}

/* Адаптація для мобілок */
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .courses-grid { grid-template-columns: 1fr; }
}

/* 8. Footer: Luxury & Responsive */
.main-footer {
    padding: 80px 0 40px;
    background-color: #050505; /* Глибокий чорний */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #888;
}

/* Секція з формою (Lead Magnet у підвалі) */
.footer-top {
    text-align: center;
    margin-bottom: 60px;
}

.footer-top h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 20px;
}

.lead-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.lead-form input {
    flex: 1;
    background: #111114;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.lead-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 112, 243, 0.2);
}

/* Нижня частина: Копірайт та посилання */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    text-decoration: none;
    color: #64748b;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #fff;
}

.copyright {
    font-size: 0.9rem;
}

/* 8. FOOTER STYLES */
.main-footer {
    background-color: #050505; /* Глибокий чорний */
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #888;
}

.footer-grid {
    display: grid;
    /* Чотири колонки на десктопі */
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.footer-brand p {
    max-width: 250px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col ul li a:hover {
    color: #0070f3; /* Твій основний синій */
    padding-left: 5px; /* Легкий ефект руху */
}

/* Footer Bottom Section */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: #888;
}

/* МОБІЛЬНА АДАПТАЦІЯ */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* 2 колонки на планшетах */
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr; /* 1 колонка на телефонах */
        gap: 30px;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}


/* Позиціонування Dropdown */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Стильна стрілочка */
.arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(-135deg);
    margin-top: 4px;
}

/* Контейнер списку */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(17, 17, 20, 0.95); /* Колір твоїх карток */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    min-width: 260px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Пункти меню */
.dropdown-menu li {
    display: block !important; /* Відміняємо flex з головного меню */
    margin: 0 !important;
}

.dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Іконки та текст всередині */
.course-icon {
    font-size: 1.2rem;
    background: rgba(0, 112, 243, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.course-info {
    display: flex;
    flex-direction: column;
}

.course-info strong {
    color: #fff;
    font-size: 0.95rem;
    display: block;
}

.course-info small {
    color: #888;
    font-size: 0.8rem;
}

/* Сильне неонове сяйво для акцентів */
.hero h1 span {
    background: linear-gradient(to right, #00c6ff, #ff0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Додаємо фільтр для ефекту світіння самого тексту */
    filter: drop-shadow(0 0 15px rgba(0, 198, 255, 0.4));
}

.btn-primary {
    background: linear-gradient(90deg, #00c6ff 0%, #0072ff 50%, #ff0080 100%);
    background-size: 200% auto;
    position: relative;
    box-shadow: 0 0 10px var(--primary-glow), 0 0 20px rgba(0, 112, 243, 0.2);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--primary), 0 0 40px rgba(255, 0, 128, 0.3);
    transform: translateY(-2px) scale(1.02);
}








