@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1420;
    --bg-card: #141a28;
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff00aa;
    --neon-purple: #8b5cf6;
    --neon-green: #00ff88;
    --text-primary: #e8edf4;
    --text-secondary: #8892a6;
    --border-glow: rgba(0, 240, 255, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.2);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) var(--bg-secondary);
}

*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

*::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 4px;
}

body {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 0, 170, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

.main-header {
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
}

.logo a::after {
    content: '_';
    animation: blink 1s infinite;
}

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

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a::before {
    content: '>';
    position: absolute;
    left: -15px;
    opacity: 0;
    color: var(--neon-cyan);
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.main-nav a:hover::before,
.main-nav a.active::before {
    opacity: 1;
    left: -20px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--neon-cyan);
    transition: 0.3s;
    box-shadow: 0 0 5px var(--neon-cyan);
}

.hero {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f3a 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 240, 255, 0.03) 2px,
            rgba(0, 240, 255, 0.03) 4px
        );
    pointer-events: none;
}

.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--neon-cyan);
    pointer-events: none;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary), var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.hero-image {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    opacity: 0.15;
    filter: blur(2px);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: transparent;
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--neon-cyan);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    border-color: var(--neon-magenta);
    color: var(--neon-magenta);
}

.btn-secondary:hover {
    background: var(--neon-magenta);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(255, 0, 170, 0.5);
}

.features, .popular-courses, .courses-section, .about-content, .contact-section, .legal-content {
    padding: 5rem 0;
    position: relative;
}

h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
}

h2::before {
    content: '// ';
    color: var(--neon-cyan);
    font-family: 'JetBrains Mono', monospace;
}

h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.features-grid, .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card, .course-card {
    background: rgba(20, 26, 40, 0.6);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before, .course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 170, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover, .course-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.3);
}

.feature-card:hover::before, .course-card:hover::before {
    opacity: 1;
}

.feature-card h3, .course-card h3 {
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.course-content {
    padding: 1rem 0;
}

.course-features {
    list-style: none;
    margin: 1.5rem 0;
}

.course-features li {
    padding: 0.6rem 0;
    padding-left: 2rem;
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.course-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--neon-green);
    font-weight: bold;
}

.cta {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f3a 100%);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    text-align: center;
    padding: 5rem 0;
    position: relative;
}

.cta h2::before {
    color: var(--neon-magenta);
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.page-header {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f3a 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(0, 240, 255, 0.03) 40px,
            rgba(0, 240, 255, 0.03) 80px
        );
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.page-header h1::before {
    content: '<';
    margin-right: 10px;
    color: var(--neon-cyan);
}

.page-header h1::after {
    content: ' />';
    margin-left: 10px;
    color: var(--neon-cyan);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 3rem 0;
}

.about-grid.reverse {
    direction: rtl;
}

.about-grid.reverse > * {
    direction: ltr;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.2);
}

.about-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.about-text li {
    margin: 0.8rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.values {
    margin-top: 5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: rgba(20, 26, 40, 0.6);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.value-card h3 {
    color: var(--neon-purple);
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.contact-info-section {
    background: rgba(20, 26, 40, 0.4);
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.contact-details {
    margin: 2rem 0;
    font-family: 'JetBrains Mono', monospace;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h2 {
    text-align: left;
}

.contact-item {
    margin: 2rem 0;
}

.contact-item h3 {
    color: var(--neon-cyan);
    margin-bottom: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

.contact-form-wrapper {
    background: rgba(20, 26, 40, 0.6);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--neon-cyan);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.success-message {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.error-message {
    background: rgba(255, 0, 170, 0.1);
    border: 1px solid var(--neon-magenta);
    color: var(--neon-magenta);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.error-message ul {
    list-style: none;
    margin: 0;
}

.legal-text {
    max-width: 900px;
    margin: 0 auto;
}

.legal-text h2 {
    text-align: left;
    font-size: 2rem;
    margin: 3rem 0 1.5rem 0;
    color: var(--neon-cyan);
}

.legal-text h2::before {
    content: '## ';
}

.legal-text h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
    color: var(--neon-purple);
    font-family: 'JetBrains Mono', monospace;
}

.legal-text h3::before {
    content: '### ';
    color: var(--neon-cyan);
}

.legal-text p, .legal-text li {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-text ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-text a {
    color: var(--neon-cyan);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.legal-text a:hover {
    border-bottom-color: var(--neon-cyan);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.cookie-table th {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    font-weight: 600;
}

.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    padding: 4rem 0 2rem 0;
}

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

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--neon-cyan);
    font-family: 'JetBrains Mono', monospace;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin: 0.8rem 0;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 240, 255, 0.3);
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -5px 30px rgba(0, 240, 255, 0.2);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-consent p {
    margin: 0;
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cookie-consent a {
    color: var(--neon-cyan);
    text-decoration: none;
    border-bottom: 1px solid var(--neon-cyan);
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 240, 255, 0.2);
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .main-nav li {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-image {
        opacity: 0.08;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid.reverse {
        direction: ltr;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .features-grid,
    .courses-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
