* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --special-color: #f59e0b;
    --neural-color-1: #64c8ff;
    --neural-color-2: #ff64c8;
    --neural-color-3: #64ffc8;
    --neural-glow: rgba(100, 200, 255, 0.3);
    --neural-glow-strong: rgba(100, 200, 255, 0.6);
    --dark-bg: #0a0a1a;
    --header-bg: rgba(10, 10, 26, 0.95);
    --dropdown-bg: rgba(70, 63, 131, 0.95);
    --card-bg: rgba(70, 63, 131, 0.8);
    --title-bg: rgba(50, 45, 100, 0.9);
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --neural-shadow: 0 0 20px var(--neural-glow);
    --neural-shadow-strong: 0 0 30px var(--neural-glow-strong);
    --border-radius: 8px;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.2;
    color: var(--white);
    background: var(--dark-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}


.hero {
    background: linear-gradient(180deg, #464370 0%, #2e2e6c 50%, #121d3a 100%);
    color: var(--white);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-logo {
    margin-bottom: 1.5rem;
}

.hero-logo img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 0 20px var(--neural-glow-strong));
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-shadow: 0 0 10px var(--neural-glow);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    line-height: 1.8;
}


.cta-button {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid var(--neural-color-1);
    padding: 14px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    font-family: inherit;
}

.cta-button:hover {
    background: rgba(100, 200, 255, 0.2);
    box-shadow: var(--neural-shadow-strong);
    transform: translateY(-2px);
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--neural-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.cta-button:hover .button-glow {
    opacity: 0.3;
}


.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube-animation {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 10s infinite linear;
    margin: 0 auto;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;       
    border: 4px solid var(--neural-color-1);
    display: flex;
    align-items: center;
    justify-content: center;    
    backdrop-filter: blur(18px);
    box-shadow: 0 0 12px var(--neural-glow);
}

.cube-face.special {
   background: rgba(100, 200, 255, 0.2);
    border-color: #77b9df27;
    color: var(--neural-color-1);
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 0 0 10px var(--neural-glow);
}

@-moz-document url-prefix() {
    .cube-face.special {
        background: rgba(43, 109, 145, 0.77);
    }
}

.cube-icon {
    width: 130px;
    height: 130px;
    filter: drop-shadow(0 0 8px var(--neural-color-1));
    object-fit: contain; 
}

.front { transform: translateZ(100.1px); }
.back { transform: translateZ(-100px) rotateY(180deg); }
.right { transform: translateX(100.05px) rotateY(90deg); }
.left { transform: translateX(-100.05px) rotateY(-90deg); }
.top { transform: translateY(-100.02px) rotateX(90deg); }
.bottom { transform: translateY(100.02px) rotateX(-90deg); }

.cube-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--neural-glow) 0%, transparent 70%);
    opacity: 0.3;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotateX(0) rotateY(0); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}


.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--white);
    text-shadow: 0 0 10px var(--neural-glow);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neural-color-1), transparent);
}


.neural-card {
    background: #322f50cc;
    border: 1px solid rgba(100, 200, 255, 0);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: cardAppear 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.neural-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(100, 200, 255, 0.1), 
        transparent);
    transition: left 0.6s;
}

.neural-card:hover::before {
    left: 100%;
}

.neural-card:hover {
    border-color: var(--neural-color-1);
    box-shadow: var(--neural-shadow-strong);
    transform: translateY(-5px);
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--neural-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.neural-card:hover .card-glow {
    opacity: 0.2;
}


.about {
    padding: 80px 0;
    background: linear-gradient(180deg, #0e1228 0%, #1d1d3c 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.about-card {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.about-image {
    height: 50%;
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-card:hover .about-image img {
    transform: scale(1.05);
}

.about-content {
    height: 50%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);    
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
}

.about-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    text-align: center;
}


.programs {
    padding: 80px 0;
    background: linear-gradient(360deg, #0e1228 0%, #1d1d3c 100%);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.program-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
}

.program-image {
    height: 190px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.05);
}

.program-badges {
    position: absolute;
    top: 70%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
}

.city-badge,
.age-badge {
    background: rgba(27, 44, 100, 0.377);
    color: #f1f1f1;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(100, 200, 255, 0.4);
    text-shadow: 0 0 8px var(--neural-glow);
    box-shadow: 0 0 15px rgba(100, 200, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.program-card:hover .city-badge,
.program-card:hover .age-badge {
    background: rgba(40, 46, 131, 0.562);
    border-color: var(--neural-color-1);
    box-shadow: 0 0 20px var(--neural-glow);
    transform: translateY(-2px);
}

.program-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-title-section {
    background: var(--title-bg);
    padding: 1rem 1.5rem;
    margin: 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.program-title-section h3 {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 600;
    text-shadow: 0 0 8px var(--neural-glow);
    margin: 0;
    line-height: 1.3;
}

.program-description {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.5rem;
}

.program-description p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin: 0;
}

.program-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 0 1.5rem 1.5rem;
    margin-top: auto;
    flex-shrink: 0;
}

.program-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(100, 200, 255, 0.3);
    text-shadow: 0 0 5px var(--neural-glow);
    transition: all 0.3s ease;
}

.program-card:hover .program-tag {
    background: rgba(100, 200, 255, 0.15);
    border-color: var(--neural-color-1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(100, 200, 255, 0.3);
}


.stats {
    background: linear-gradient(135deg, rgb(53 50 80 / 95%) 0%, #4a467e 100%);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    /* text-shadow: 0 0 10px var(--neural-glow); */
    color: #aacded;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}


.footer {
    background: #2d2d44;
    color: var(--white);
    padding: 3rem 0 2rem;   
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--white);
    /*text-shadow: 0 0 10px var(--neural-glow);*/
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
    
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--neural-color-1);
    background: rgba(100, 200, 255, 0.1);
    border-color: var(--neural-color-1);
    transform: translateX(5px);
    text-shadow: 0 0 10px var(--neural-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(100, 200, 255, 0.2);
    color: #9ca3af;
}


@media (max-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .program-card {
        min-height: 400px;
    }
    
    .program-image {
        height: 180px;
    }
    
    .program-title-section {
        min-height: 75px;
    }
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-logo img {
        height: 80px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .cube-animation {
        width: 150px;
        height: 150px;
    }
    
    .cube-face {
        width: 150px;
        height: 150px;
        font-size: 1.5rem;
    }
    
    .cube-face.special {
        font-size: 1.7rem;
    }

    .front { transform: translateZ(75px); }
    .back { transform: translateZ(-75px) rotateY(180deg); }
    .right { transform: translateX(75px) rotateY(90deg); }
    .left { transform: translateX(-75px) rotateY(-90deg); }
    .top { transform: translateY(-75px) rotateX(90deg); }
    .bottom { transform: translateY(75px) rotateX(-90deg); }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .program-card {
        min-height: 380px;
    }
    
    .program-image {
        height: 170px;
    }
    
    .program-title-section {
        min-height: 70px;
        padding: 0.75rem 1rem;
    }
    
    .program-title-section h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-logo img {
        height: 70px;
    }
    
    .about,
    .programs {
        padding: 60px 0;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        height: 350px;
    }
    
    .program-card {
        min-height: 360px;
    }
    
    .program-image {
        height: 160px;
    }
    
    .program-badges {
        padding: 0.75rem;
    }
    
    .city-badge,
    .age-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .program-title-section {
        min-height: 65px;
        padding: 0.75rem 1rem;
    }
    
    .program-title-section h3 {
        font-size: 0.95rem;
    }
    
    .program-description {
        padding: 0.75rem 1rem;
    }
    
    .program-description p {
        font-size: 0.85rem;
    }
    
    .program-tags {
        padding: 0 1rem 1rem;
    }
    
    .program-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;    
    transform: translateZ(0);
}

.contact-item p {
    margin: 0;
    line-height: 1.4;
}


@media (max-width: 768px) {
    .contact-item {
        gap: 8px;
    }
    
    .contact-icon {
        width: 14px;
        height: 14px;
    }
}


.game-section {
            padding: 80px 0;
            background: linear-gradient(90deg, #0e1228 0%, #1a1a2e 50%, #1d1d3c 100%);
            position: relative;
            overflow: hidden;
        }

        .game-container {
            position: relative;
            text-align: center;
            margin-top: 40px;
        }

        .game-launch-button {
            position: relative;
            z-index: 10;
            transition: all 0.3s ease;
        }

        .game-launch-button:hover {
            transform: translateY(-2px);
        }

        .game-frame-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px 10px;
            box-sizing: border-box;
        }

        .game-frame-container.active {
            opacity: 1;
            visibility: visible;
        }

        .frame-overlay {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 1001;
        }

        .close-game-button {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            font-size: 24px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        .close-game-button:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        .game-iframe {
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 12px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
            background: #000;
            max-width: 100%;
            max-height: 100%;
        }

        @media (max-width: 768px) {
            .game-frame-container {
                padding: 10px;
            }
            
            .frame-overlay {
                top: 10px;
                right: 10px;
            }
            
            .close-game-button {
                width: 35px;
                height: 35px;
                font-size: 20px;
            }
        }

        @media (max-width: 480px) {
            .game-frame-container {
                padding: 5px;
            }
            
            .game-iframe {
                border-radius: 8px;
            }
        }

       
        @media (max-height: 600px) {
            .game-frame-container {
                padding: 5px;
            }
        }