* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --dark: #0a0a0f;
    --neon-blue: #00f3ff;
    --neon-purple: #9d4edd;
    --neon-pink: #ff00ff;
    --neon-green: #00ff88;
    --paper-yellow: #f9f3d5;
    --paper-line: #e8e4d6;
    --text: #ffffff;
    --card-bg: rgba(20, 20, 40, 0.3);
    --glow: 0 0 20px;
}

body {
    background: var(--black);
    color: var(--text);
    font-family: 'Orbitron', sans-serif;
    overflow-x: hidden;
}

.enhanced-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.intro-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-item {
    position: absolute;
    opacity: 0;
    animation: floatItem 8s linear infinite;
    z-index: 1;
}

.floating-item.book {
    font-size: 3rem;
    color: var(--paper-yellow);
    animation-delay: 0.5s;
}

.floating-item.pen {
    font-size: 2.5rem;
    color: var(--neon-blue);
    animation-delay: 1.5s;
}

.floating-item.notebook {
    font-size: 3.5rem;
    color: var(--neon-purple);
    animation-delay: 3s;
}

.floating-item.code {
    font-size: 2.8rem;
    color: var(--neon-green);
    animation-delay: 4.5s;
}

.floating-item.calculator {
    font-size: 2.7rem;
    color: var(--neon-pink);
    animation-delay: 6s;
}

.floating-item.laptop {
    font-size: 3.2rem;
    color: white;
    animation-delay: 7.5s;
}

@keyframes floatItem {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.intro-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.student-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    color: var(--paper-yellow);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(249, 243, 213, 0.5);
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--paper-yellow);
    animation: typeWriter 3.5s steps(40, end), blinkCursor 0.75s step-end infinite;
}

.main-title {
    font-size: 5rem;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(0, 243, 255, 0.7);
    margin-bottom: 20px;
    animation: titleGlow 3s infinite alternate;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--neon-green);
    font-family: 'Share Tech Mono', monospace;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 1s 4s forwards;
}

.text-content {
    margin-bottom: 60px;
}

.notebook-paper {
    position: absolute;
    width: 400px;
    height: 500px;
    background: linear-gradient(to bottom, var(--paper-yellow) 0%, #f5f0d1 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(5deg);
    opacity: 0.7;
    box-shadow: 0 0 40px rgba(249, 243, 213, 0.3);
    z-index: 1;
    animation: paperFloat 6s ease-in-out infinite;
}

.paper-lines {
    position: absolute;
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 24px,
        var(--paper-line) 24px,
        var(--paper-line) 25px
    );
}

.paper-content {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    font-family: 'JetBrains Mono', monospace;
    color: #333;
    font-size: 0.9rem;
    line-height: 25px;
    opacity: 0;
    animation: fadeIn 1s 2s forwards;
}

@keyframes typeWriter {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blinkCursor {
    from, to { border-color: transparent }
    50% { border-color: var(--paper-yellow) }
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 30px rgba(0, 243, 255, 0.7); }
    50% { text-shadow: 0 0 50px rgba(157, 78, 221, 0.8); }
    100% { text-shadow: 0 0 40px rgba(255, 0, 255, 0.7); }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
    from { opacity: 0; transform: translateY(20px); }
}

@keyframes paperFloat {
    0%, 100% { transform: translate(-50%, -50%) rotate(5deg) translateY(0); }
    50% { transform: translate(-50%, -50%) rotate(3deg) translateY(-20px); }
}

@keyframes fadeIn {
    to { opacity: 0.7; }
}

.intro-progress {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    z-index: 3;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 2px;
    animation: progressFill 4s linear forwards;
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
    visibility: hidden;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
    position: relative;
}

.profile-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple)) border-box;
    overflow: hidden;
    animation: rotate 20s linear infinite;
    box-shadow: var(--glow) var(--neon-blue);
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    padding: 3px;
    background: #000;
}

.student-tag {
    position: absolute;
    bottom: 10px;
    right: -10px;
    background: var(--neon-green);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    animation: pulse 2s infinite;
    z-index: 2;
    border: 2px solid #000;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--neon-blue), white);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.tagline {
    font-size: 1.5rem;
    color: var(--neon-purple);
    margin-bottom: 20px;
    font-weight: 600;
}

.typing {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    color: var(--neon-blue);
    border-right: 3px solid var(--neon-blue);
    white-space: nowrap;
    overflow: hidden;
    margin: 0 auto;
    width: fit-content;
    animation: typing 3s steps(30, end), blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--neon-blue) }
}

.social-links {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(20, 20, 40, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 30px var(--neon-blue);
}

.section {
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.section-title {
    font-size: 3rem;
    color: var(--neon-blue);
    margin-bottom: 50px;
    text-align: center;
    text-shadow: var(--glow) var(--neon-blue);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 2px;
}

.about-content {
    max-width: 800px;
    background: rgba(20, 20, 40, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-purple);
    border-radius: 20px;
    padding: 40px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    width: 100%;
}

.skill-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-blue);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.3);
    border-color: var(--neon-pink);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--neon-blue);
    margin-bottom: 20px;
    display: block;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
}

.project-card {
    background: rgba(20, 20, 40, 0.5);
    border: 1px solid var(--neon-pink);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 0, 255, 0.3);
}

.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.player-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--neon-purple);
    color: var(--neon-purple);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
}

.player-btn:hover {
    transform: rotate(180deg) scale(1.1);
    background: var(--neon-purple);
    color: #000;
}

.player-btn.active {
    background: var(--neon-purple);
    color: #000;
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.8);
}

.music-controls {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--neon-purple);
    display: none;
    flex-direction: column;
    gap: 15px;
    min-width: 250px;
    backdrop-filter: blur(10px);
}

.player-btn.active + .music-controls {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control input {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #333;
    border-radius: 5px;
    outline: none;
}

.volume-control input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--neon-purple);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
}

.music-info {
    font-size: 0.9rem;
    color: var(--neon-blue);
    text-align: center;
    margin-bottom: 10px;
    font-family: 'Share Tech Mono', monospace;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.control-btn {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--neon-blue);
    color: #000;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

footer {
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    background: rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--neon-purple);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    transition: all 0.5s ease;
    opacity: 1;
    visibility: visible;
}

.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
}

.scroll-indicator i {
    animation: bounce 2s infinite;
    color: var(--neon-blue);
}

.scroll-indicator span {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    background: rgba(0, 243, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

@keyframes fadeInIndicator {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.scroll-indicator:not(.hidden) {
    animation: fadeInIndicator 1s ease;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-pink));
}

.enter-portal {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s 4.5s forwards;
    opacity: 0;
    width: 100%;
    z-index: 100;
}

.portal-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: rotate 20s linear infinite reverse;
}

.portal-ring.outer {
    width: 200px;
    height: 200px;
    border-image: linear-gradient(45deg, var(--neon-blue), var(--neon-pink), var(--neon-purple)) 1;
    box-shadow: 
        0 0 30px rgba(0, 243, 255, 0.5),
        inset 0 0 30px rgba(0, 243, 255, 0.2);
    animation-delay: 0s;
}

.portal-ring.middle {
    width: 160px;
    height: 160px;
    border-image: linear-gradient(45deg, var(--neon-purple), var(--neon-green), var(--neon-blue)) 1;
    box-shadow: 
        0 0 25px rgba(157, 78, 221, 0.5),
        inset 0 0 25px rgba(157, 78, 221, 0.2);
    animation-delay: 0.2s;
}

.portal-ring.inner {
    width: 120px;
    height: 120px;
    border-image: linear-gradient(45deg, var(--neon-green), var(--neon-blue), var(--neon-purple)) 1;
    box-shadow: 
        0 0 20px rgba(0, 255, 136, 0.5),
        inset 0 0 20px rgba(0, 255, 136, 0.2);
    animation-delay: 0.4s;
}

.portal-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 
        0 0 40px rgba(0, 243, 255, 0.6),
        inset 0 0 20px rgba(0, 243, 255, 0.3);
}

.portal-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.95);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 
        0 0 60px rgba(255, 0, 255, 0.8),
        0 0 30px rgba(255, 0, 255, 0.6),
        inset 0 0 30px rgba(255, 0, 255, 0.4);
}

.portal-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.portal-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.4) 0%, transparent 70%);
    animation: pulseGlow 2s infinite alternate;
    z-index: -1;
}

.portal-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px currentColor;
}

.enter-label {
    margin-top: 30px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    color: var(--neon-green);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
    animation: blink 2s infinite;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.portal-btn.clicked {
    animation: portalClick 1s forwards;
}

@keyframes portalClick {
    0% {
        transform: scale(1);
        box-shadow: 0 0 60px rgba(255, 0, 255, 0.8);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 100px rgba(0, 243, 255, 0.9);
        background: rgba(0, 243, 255, 0.1);
    }
    100% {
        transform: scale(0);
        opacity: 0;
        box-shadow: 0 0 150px rgba(0, 243, 255, 1);
    }
}

@keyframes pulse-attention {
    0%, 100% { 
        box-shadow: 
            0 0 40px rgba(0, 243, 255, 0.6),
            inset 0 0 20px rgba(0, 243, 255, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 80px rgba(0, 243, 255, 0.9),
            0 0 40px rgba(0, 243, 255, 0.6),
            inset 0 0 30px rgba(0, 243, 255, 0.4);
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .notebook-paper {
        width: 280px !important;
        height: 350px !important;
        transform: translate(-50%, -50%) rotate(3deg) !important;
    }
    
    .paper-content {
        font-size: 0.7rem !important;
        line-height: 20px !important;
    }
    
    .main-title {
        font-size: 2.5rem !important;
        padding: 0 20px;
        text-align: center;
        line-height: 1.2;
    }
    
    .student-text {
        font-size: 1rem !important;
        padding: 0 15px;
        text-align: center;
    }
    
    .subtitle {
        font-size: 1rem !important;
        padding: 0 20px;
        text-align: center;
    }
    
    .text-content {
        margin-bottom: 40px;
    }
    
    .intro-text-container {
        padding: 0 20px;
    }
    
    .intro-progress {
        width: 250px !important;
        bottom: 30px !important;
    }
    
    .floating-item {
        font-size: 1.5rem !important;
    }
    
    .hero {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .profile-container {
        width: 150px;
        height: 150px;
    }
    
    h1 {
        font-size: 2rem !important;
        padding: 0 15px;
    }
    
    .tagline {
        font-size: 1rem !important;
        padding: 0 15px;
        text-align: center;
    }
    
    .typing {
        font-size: 0.9rem !important;
        padding: 0 15px;
        text-align: center;
    }
    
    #bg-canvas {
        display: none;
    }
    
    .music-player {
        bottom: 15px;
        right: 15px;
    }
    
    .player-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .music-controls {
        min-width: 200px;
        padding: 15px;
        right: -20px;
    }
    
    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .section {
        padding: 60px 20px;
        min-height: auto;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .about-content {
        padding: 25px;
        margin: 0 10px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        padding: 0 10px;
    }
    
    .skill-card {
        padding: 25px;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
        width: 100%;
    }
    
    .project-card {
        padding: 25px;
        margin: 0;
        width: 100%;
    }
    
    .enter-portal {
        margin-top: 30px;
    }
    
    .portal-ring.outer {
        width: 150px;
        height: 150px;
    }
    
    .portal-ring.middle {
        width: 120px;
        height: 120px;
    }
    
    .portal-ring.inner {
        width: 90px;
        height: 90px;
    }
    
    .portal-btn {
        width: 80px;
        height: 80px;
        font-size: 1rem;
    }
    
    .enter-label {
        font-size: 0.8rem;
        margin-top: 25px;
    }
}