:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --background-dark: #0f172a;
    --background-medium: #1e293b;
    --background-light: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.4);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-light);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--background-light);
    transition: all var(--transition-normal);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 2s ease-in-out infinite;
}

.logo-icon img {
    width: 24px;
    height: 24px;
    fill: white;
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width var(--transition-normal);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--text-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.6;
    animation: float-particle 15s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fade-in-up 1s ease-out;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fade-in-up 1s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 2.5rem;
    animation: fade-in-up 1s ease-out 0.4s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fade-in-up 1s ease-out 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: white;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    margin: 20px auto;
    border-radius: 2px;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.lesson-card {
    background: var(--background-medium);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--background-light);
    position: relative;
}

.lesson-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.lesson-card:hover::before {
    transform: scaleX(1);
}

.lesson-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.lesson-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 1;
    color: #fff;
}

.lesson-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.lesson-card:hover .lesson-image {
    transform: scale(1.05);
}

.lesson-content {
    padding: 25px;
}

.lesson-content h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    transition: color var(--transition-fast);
}

.lesson-card:hover .lesson-content h3 {
    color: var(--secondary-color);
}

.lesson-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.lesson-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--background-light);
}

.lesson-duration {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.lesson-difficulty {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-beginner {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-color);
}

.difficulty-intermediate {
    background: rgba(245, 158, 11, 0.2);
    color: var(--secondary-color);
}

.difficulty-advanced {
    background: rgba(236, 72, 153, 0.2);
    color: var(--accent-pink);
}

.features-section {
    background: var(--background-medium);
}

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

.feature-card {
    padding: 40px 30px;
    background: var(--background-dark);
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-normal);
}

.feature-icon img {
    width: 32px;
    height: 32px;
    fill: white;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

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

.path-section {
    position: relative;
}

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

.path-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    padding-left: 30px;
}

.path-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: -40px;
    width: 3px;
    background: var(--gradient-1);
}

.path-item:last-child::before {
    bottom: 0;
}

.path-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    left: -54px;
}

.path-content {
    background: var(--background-medium);
    padding: 25px;
    border-radius: var(--border-radius-md);
    flex: 1;
    border: 1px solid var(--background-light);
    transition: all var(--transition-normal);
}

.path-content:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.path-content h3 {
    margin-bottom: 10px;
}

footer {
    background: var(--background-medium);
    padding: 60px 0 30px;
    border-top: 1px solid var(--background-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--background-light);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-page {
    padding-top: 100px;
}

.article-header {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--background-medium) 0%, var(--background-dark) 100%);
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.article-header-content {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

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

.breadcrumb span {
    color: var(--text-muted);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-content {
    padding: 60px 0;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 50px;
    animation: fade-in-up 0.6s ease-out both;
}

.content-section:nth-child(1) {
    animation-delay: 0.1s;
}

.content-section:nth-child(2) {
    animation-delay: 0.15s;
}

.content-section:nth-child(3) {
    animation-delay: 0.2s;
}

.content-section:nth-child(4) {
    animation-delay: 0.25s;
}

.content-section:nth-child(5) {
    animation-delay: 0.3s;
}

.content-section h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.content-section h3 {
    font-size: 1.25rem;
    margin: 25px 0 15px;
    color: var(--accent-cyan);
}

.content-section ul,
.content-section ol {
    margin: 15px 0;
    padding-left: 25px;
    color: var(--text-secondary);
}

.content-section li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 20px 25px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin: 20px 0;
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 20px 25px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin: 20px 0;
}

.tip-box {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 20px 25px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin: 20px 0;
}

.code-block {
    background: var(--background-medium);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    border: 1px solid var(--background-light);
}

.code-block code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-image {
    width: 100%;
    border-radius: var(--border-radius-md);
    margin: 30px 0;
    box-shadow: var(--shadow-lg);
}

.image-caption {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: -20px;
    margin-bottom: 30px;
    font-style: italic;
}

.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.step-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.nav-lessons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--background-light);
}

.nav-lesson {
    flex: 1;
    padding: 20px;
    background: var(--background-medium);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--background-light);
    transition: all var(--transition-normal);
}

.nav-lesson:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.nav-lesson.next {
    text-align: right;
}

.nav-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.nav-title {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-page {
    padding-top: 100px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-content h1 {
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--primary-light);
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.contact-form {
    background: var(--background-medium);
    padding: 30px;
    border-radius: var(--border-radius-md);
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--background-dark);
    border: 1px solid var(--background-light);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.7);
    }
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .lessons-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: var(--background-dark);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: right var(--transition-normal);
        border-left: 1px solid var(--background-light);
    }

    nav.active {
        right: 0;
    }

    nav a {
        font-size: 1.2rem;
        padding: 15px 0;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section {
        padding: 60px 0;
    }

    .lessons-grid {
        grid-template-columns: 1fr;
    }

    .path-item {
        padding-left: 20px;
    }

    .path-number {
        left: -30px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .article-header {
        padding: 40px 0;
    }

    .article-content {
        padding: 40px 0;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .nav-lessons {
        flex-direction: column;
    }

    .nav-lesson.next {
        text-align: left;
    }

    .features-grid {
        grid-template-columns: repeat(1, minmax(auto, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }

    .lesson-card {
        margin: 0 5px;
    }

    .legal-content {
        padding: 40px 15px;
    }

    .legal-content h1 {
        font-size: 1.75rem;
    }
}