:root {
    --bg-main: #0d0d0d;
    --bg-layer: #000000;
    --gray-bg-color: #202020;
    --accent-glow: rgba(255, 255, 255, 0.05);
    --text-color: #ffffff;
    --font-family: 'Outfit', sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    animation: navFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #ffffff 30%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

.nav-icon {
    height: 44px;
    width: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
    border: 1.5px solid rgba(255,255,255,0.1); 
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-item {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: capitalize;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.discord-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.4s ease;
}

.nav-item:hover .discord-icon {
    transform: scale(1.1) rotate(5deg);
}

.nav-item:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

@keyframes navFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

body {
    background-color: var(--bg-main);
    font-family: var(--font-family);
    overflow: hidden;
    color: var(--text-color);
    background: var(--bg-main);
}

#rainCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.35;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gray-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 50%, var(--gray-bg-color) 0%, #0d0d0d 100%);
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gray-layer:hover {
    transform: scale(1.015);
}

.black-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-layer);
    z-index: 2;
    clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%);
    display: flex;
    align-items: center;
    padding-left: 8%;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(40px 0 30px rgba(0, 0, 0, 0.9));
}

.black-layer:hover {
    transform: scale(1.02);
}

.black-layer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 58%, rgba(255, 255, 255, 0.12) 58.1%, transparent 58.3%);
    pointer-events: none;
    z-index: 4;
}

.edge-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(90deg, transparent 57%, rgba(0,0,0,0.4) 58%, transparent 65%);
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 5;
    padding-bottom: 5vh;
    display: flex;
    align-items: center;
    min-height: 6rem;
    transition: transform 0.3s ease;
}

#typewriter-text {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -2px;
    line-height: 1.2;
    min-height: 1.2em;
    opacity: 1;
    background: linear-gradient(180deg, #ffffff 30%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

#typewriter-text:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 20px 60px rgba(255,255,255,0.15));
    cursor: default;
}

.cursor {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 200;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 5px;
    animation: blink 0.8s infinite;
}

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

.glow-orb {
    position: absolute;
    top: 20%;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(150px);
    pointer-events: none;
}

.ide-window {
    position: absolute;
    top: 50%;
    right: 25%;
    transform: translate(50%, -50%) rotate(-1deg);
    width: 380px;
    background: #2b2b2b;
    border-radius: 10px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    animation: ideFadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
}

@keyframes ideFadeIn {
    from { 
        opacity: 0; 
        transform: translate(50%, -30%) rotate(3deg); 
    }
    to { 
        opacity: 1; 
        transform: translate(50%, -50%) rotate(-1deg); 
    }
}

.ide-header {
    background: #3c3f41;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ide-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.ide-title {
    color: #afb1b3;
    font-size: 0.75rem;
    font-weight: 500;
}

.ide-content {
    padding: 1.2rem;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #a9b7c6;
    min-height: 250px;
}

#ide-code {
    white-space: pre-wrap;
    display: block;
}

.kw { color: #cc7832; font-weight: 500; } 
.meth { color: #ffc66d; } 
.str { color: #6a8759; } 
.ann { color: #bbb529; } 
.cmt { color: #808080; font-style: italic; } 

@media (max-width: 768px) {
    .black-layer {
        clip-path: polygon(0 0, 100% 0, 100% 60%, 0 80%);
        padding-left: 5%;
        padding-top: 10vh;
        align-items: flex-start;
    }

    .black-layer::after {
        background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.15) 60.2%, transparent 60.5%);
    }

    .ide-window {
        width: 85%;
        top: 70%;
        right: 50%;
        transform: translate(50%, -50%);
    }
    
    @keyframes ideFadeIn {
        from { opacity: 0; transform: translate(50%, -40%); }
        to { opacity: 1; transform: translate(50%, -50%); }
    }
}

.music-control {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #ffffff;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.music-control:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border-color: rgba(255,255,255,0.2);
}

.music-control:active {
    transform: scale(0.95);
}

.music-control #musicIcon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.music-control svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
}

.music-control.playing {
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .music-control {
        bottom: 25px;
        right: 25px;
        width: 45px;
        height: 45px;
    }
}