/* ===== CYBERPUNK NEON THEME ===== */
:root {
    --neon-blue: #00f3ff;
    --neon-purple: #9900ff;
    --neon-pink: #ff00c8;
    --neon-green: #00ff9d;
    --dark-bg: #0a0a0f;
    --darker-bg: #050507;
    --glass-bg: rgba(10, 10, 15, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background-color: var(--dark-bg);
    color: #fff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ===== MATRIX BACKGROUND ===== */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.15;
    pointer-events: none;
}

/* ===== CYBER GRID ===== */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* ===== PARTICLES ===== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.terminal {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--neon-green);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 30px var(--neon-green);
    max-width: 600px;
    width: 90%;
}

.terminal-line {
    color: var(--neon-green);
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    margin: 10px 0;
    opacity: 0;
    animation: typing 0.5s forwards;
}

.terminal-line:nth-child(1) {
    animation-delay: 0.5s;
}

.terminal-line:nth-child(2) {
    animation-delay: 1s;
}

.terminal-line:nth-child(3) {
    animation-delay: 1.5s;
}

.terminal-line:nth-child(4) {
    animation-delay: 2s;
}

@keyframes typing {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 255, 157, 0.2);
    margin-top: 20px;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--neon-green);
    animation: progress 2.5s linear forwards;
    box-shadow: 0 0 20px var(--neon-green);
}

@keyframes progress {
    to {
        width: 100%;
    }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
}

.cyber-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cyber-logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
    filter: drop-shadow(0 0 10px var(--neon-blue));
    animation: logoGlow 2s ease-in-out infinite;
    object-fit: cover;
}

@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px var(--neon-blue));
    }

    50% {
        filter: drop-shadow(0 0 20px var(--neon-pink));
    }
}

.glow-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

/* ===== SECTIONS ===== */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* ===== HOME SECTION ===== */
.hero-content {
    text-align: center;
}

.anime-logo-large {
    margin-bottom: 2rem;
}

.anime-logo-large img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-purple);
    filter: drop-shadow(0 0 30px var(--neon-purple));
    animation: floatLogo 3s ease-in-out infinite;
    object-fit: cover;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.glitch-text {
    font-size: 4rem;
    font-weight: bold;
    position: relative;
    color: #fff;
    text-shadow:
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue),
        0 0 40px var(--neon-blue);
    animation: glitch 3s infinite;
}

@keyframes glitch {

    0%,
    100% {
        transform: skew(0deg);
    }

    95% {
        transform: skew(0deg);
    }

    96% {
        transform: skew(5deg);
        text-shadow: -2px 0 var(--neon-pink), 2px 0 var(--neon-blue);
    }

    97% {
        transform: skew(-5deg);
    }

    98% {
        transform: skew(0deg);
    }
}

.typing-text {
    font-size: 1.5rem;
    margin: 2rem 0;
    color: var(--neon-green);
    animation: typing 3s steps(40) infinite;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid var(--neon-green);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.glowing-btn {
    display: inline-block;
    padding: 1rem 2rem;
    color: #fff;
    text-decoration: none;
    border: 2px solid var(--neon-blue);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.glowing-btn:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 30px var(--neon-blue);
    transform: scale(1.05);
}

/* ===== ABOUT SECTION ===== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-purple);
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 3rem;
}

.neon-text {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.hobby-card {
    background: var(--glass-bg);
    border: 1px solid var(--neon-blue);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.hobby-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--neon-pink);
    box-shadow: 0 0 30px var(--neon-pink);
}

/* ===== COURSES SECTION ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--glass-bg);
    border: 2px solid var(--neon-purple);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    animation: floatCard 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.course-card:nth-child(2) {
    animation-delay: 0.2s;
}

.course-card:nth-child(3) {
    animation-delay: 0.4s;
}

.course-card:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.course-card:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 40px var(--neon-pink);
    transform: translateY(-15px) scale(1.02);
}

.course-card h3 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.course-card p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.price {
    font-size: 1.5rem;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
    margin: 1rem 0;
}

.course-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--neon-purple);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.course-btn:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple);
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--glass-bg);
    border: 2px solid var(--neon-pink);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--neon-pink);
}

.contact-card h3 {
    color: var(--neon-pink);
    margin-bottom: 1rem;
}

.contact-card p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid var(--neon-blue);
    transition: all 0.3s;
}

.contact-link:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.contact-btn-container {
    text-align: center;
}

.glowing-btn-large {
    display: inline-block;
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    background: transparent;
    border: 3px solid var(--neon-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
}

.glowing-btn-large:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 50px var(--neon-blue);
    transform: scale(1.1);
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(5, 5, 7, 0.9);
    border-top: 2px solid var(--neon-purple);
    padding: 2rem 0;
    text-align: center;
    backdrop-filter: blur(5px);
}

.footer p {
    margin: 0.5rem 0;
    color: #ccc;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

/* ===== CURSOR TRAIL ===== */
.cursor-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-blue);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
    filter: blur(5px);
    transition: 0.1s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .glitch-text {
        font-size: 2.5rem;
    }

    .typing-text {
        font-size: 1rem;
        white-space: normal;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hobbies-grid,
    .courses-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .glitch-text {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .anime-logo-large img {
        width: 150px;
        height: 150px;
    }
}