/* --- Variables & Reset --- */
:root {
    --bg-main: #020b16;
    --royal-blue: #4169E1;
    --deep-blue: #0f1c3f;
    --teal: #00ced1;
    --neon-cyan: #00f2ff;
    --neon-white: #ffffff;
    --text-gray: #a8b2d1;
    
    --discord: #5865F2;
    --instagram: #E1306C;
    --twitter: #1DA1F2;
    --github: #ffffff;
    --email: #FFD700;

    --gradient-primary: linear-gradient(135deg, var(--teal), var(--royal-blue));
    --glass-bg: rgba(10, 25, 40, 0.75);
    --glass-border: rgba(255, 255, 255, 0.15);
    
    --section-padding: 140px 3rem;
    --easing-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor is active */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 17px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--neon-white);
    line-height: 1.6;
}

/* --- Scrollbar (Transparent & Sleek) --- */
::-webkit-scrollbar { 
    width: 12px; 
    background: transparent; 
}
::-webkit-scrollbar-track { 
    background: transparent; 
}
::-webkit-scrollbar-corner {
    background: transparent; 
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--deep-blue), var(--teal), var(--royal-blue));
    border-radius: 6px;
    border: 3px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { 
    background-color: var(--neon-cyan); 
}

/* --- Backgrounds & Snow --- */
.video-bg-container {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -5; overflow: hidden;
}

.bg-texture {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images3.alphacoders.com/108/thumb-1920-1082406.png');
    background-size: cover;
    background-position: center;
    opacity: 0.9;
    mix-blend-mode: overlay;
    z-index: 2;
}

.bg-video { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }

.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 11, 22, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1;
}

#snow-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: -2;
}

.bg-orb {
    position: fixed; border-radius: 50%; filter: blur(100px); z-index: -3; opacity: 0.4;
    animation: floatOrb 20s infinite ease-in-out;
}
.orb-1 { width: 500px; height: 500px; background: var(--royal-blue); top: -150px; left: -150px; }
.orb-2 { width: 350px; height: 350px; background: var(--teal); bottom: 10%; right: -50px; animation-delay: -5s; }
.orb-3 { width: 250px; height: 250px; background: var(--neon-cyan); top: 40%; left: 40%; animation-delay: -10s; opacity: 0.2; }

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(60px, 90px); }
    66% { transform: translate(-40px, -60px); }
}

/* --- Custom Cursor --- */
.cursor-glow {
    width: 25px; height: 25px;
    background-color: rgba(255, 255, 255, 1);
    position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 99999;
    pointer-events: none;
    box-shadow: 0 0 35px 8px rgba(255, 255, 255, 0.9), 0 0 70px 15px rgba(0, 242, 255, 0.6);
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s;
}

.cursor-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    color: var(--neon-cyan);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    pointer-events: none;
    opacity: 0;
    z-index: 99998;
    transition: opacity 0.2s;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    white-space: nowrap;
}

/* --- Navigation --- */
.navbar {
    position: fixed; top: 0; width: 100%;
    padding: 1.5rem 3rem;
    backdrop-filter: blur(20px);
    background: rgba(2, 11, 22, 0.5);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-container { max-width: 1500px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.brand-wrapper { display: flex; align-items: center; gap: 15px; }
.nav-pfp { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--neon-cyan); box-shadow: 0 0 15px var(--neon-cyan); transition: transform 0.3s; }
.nav-pfp:hover { transform: scale(1.1); }
.logo { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.8rem; color: var(--neon-white); text-decoration: none; }
.dot { color: var(--neon-cyan); }

.nav-links-wrapper { position: relative; }
.nav-links { display: flex; gap: 4rem; list-style: none; position: relative; z-index: 2; }
.nav-links a { text-decoration: none; color: var(--text-gray); font-size: 1rem; font-weight: 500; transition: 0.3s; position: relative; }
.nav-links a:hover { color: var(--neon-cyan); }
.nav-links a.active-link { color: white; }

.nav-glider {
    position: absolute;
    bottom: -8px; left: 0; height: 3px;
    background: var(--neon-cyan);
    border-radius: 10px;
    box-shadow: 0 0 15px var(--neon-cyan);
    transition: all 0.5s var(--easing-smooth);
    z-index: 1; pointer-events: none;
}

/* --- Hero Section --- */
.hero-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 6rem 2rem 2rem; }
.hero-layout { display: flex; align-items: center; justify-content: center; gap: 6rem; max-width: 1400px; width: 100%; }

.hero-avatar-wrapper { 
    position: relative; width: 360px; height: 360px; 
    display: flex; justify-content: center; align-items: center; 
    animation: float 6s ease-in-out infinite;
    transition: transform 0.5s var(--easing-smooth);
}
.hero-avatar-wrapper:hover { transform: scale(1.05); }
.hero-avatar { width: 310px; height: 310px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(0, 206, 209, 0.5); box-shadow: 0 0 70px rgba(0, 206, 209, 0.3); z-index: 2; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px solid var(--royal-blue); box-shadow: 0 0 20px var(--royal-blue); width: 380px; height: 380px; animation: spin 10s linear infinite; border-top-color: transparent; }
.orbit-ring-2 { position: absolute; border-radius: 50%; border: 1px solid var(--neon-cyan); width: 420px; height: 420px; animation: spin-reverse 15s linear infinite; border-left-color: transparent; opacity: 0.6; }

.badge-container { display: flex; gap: 1.2rem; margin-bottom: 2rem; }
.glass-badge { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); padding: 0.6rem 1.4rem; border-radius: 50px; font-size: 0.9rem; color: var(--neon-cyan); backdrop-filter: blur(5px); transition: 0.3s; }
.glass-badge:hover { background: rgba(0, 242, 255, 0.2); border-color: var(--neon-cyan); box-shadow: 0 0 20px var(--neon-cyan); }

.hero-title { font-size: 6rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -2px; }
.gradient-text-name { background: linear-gradient(to right, var(--neon-cyan), var(--royal-blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 30px rgba(0, 206, 209, 0.6)); }
.text-white { color: white; }
.hero-desc { font-size: 1.6rem; color: var(--text-gray); max-width: 650px; margin-bottom: 3rem; font-weight: 300; }

.btn-group-center { display: flex; justify-content: flex-start; }
.cta-btn { padding: 1.2rem 3.5rem; background: var(--gradient-primary); color: white; text-decoration: none; border-radius: 50px; font-weight: 600; font-size: 1.1rem; box-shadow: 0 0 30px rgba(0, 206, 209, 0.4); position: relative; overflow: hidden; transition: transform 0.3s; }
.cta-btn:hover { transform: translateY(-4px); box-shadow: 0 0 60px rgba(0, 206, 209, 0.8); }

/* --- Section Styling --- */
.section-container { max-width: 1400px; margin: 0 auto; padding: var(--section-padding); }
.section-header { margin-bottom: 2rem; }
.section-title { font-size: 3.5rem; font-weight: 700; text-shadow: 0 0 30px rgba(0,0,0,0.6); margin-bottom: -1rem; }
.section-subtitle { font-size: 1.5rem; color: var(--text-gray); font-weight: 300; margin-bottom: 0rem; }
.highlight { color: var(--teal); text-shadow: 0 0 20px rgb(0, 183, 255); }
.title-line { 
    width: 100%; height: 5px; 
    background: var(--gradient-primary); 
    margin-top: 15px; border-radius: 3px; 
    box-shadow: 0 0 20px var(--teal); 
}

/* --- About Section --- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.full-width { grid-column: 1 / -1; }

.glass-panel { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 3rem; border-radius: 30px; backdrop-filter: blur(10px); transition: 0.4s var(--easing-smooth); }
.glass-panel:hover { border-color: var(--neon-cyan); transform: translateY(-8px); box-shadow: 0 10px 40px rgba(0, 206, 209, 0.15); }
.glass-panel h3 { margin-bottom: 1.2rem; font-size: 1.8rem; color: var(--neon-white); display: flex; gap: 15px; align-items: center; }
.glass-panel h3 i { color: var(--neon-cyan); filter: drop-shadow(0 0 5px var(--neon-cyan)); }
.glass-panel p { font-size: 1.1rem; }

/* --- Visual Hobby Cards --- */
.hobby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; width: 100%; }

.hobby-card {
    position: relative; height: 320px;
    border-radius: 30px; overflow: hidden;
    text-decoration: none; background: #000;
    border: 1px solid var(--glass-border);
    transition: transform 0.4s var(--easing-smooth), box-shadow 0.4s var(--easing-smooth), border-color 0.4s var(--easing-smooth);
    isolation: isolate;
}
.hobby-card:hover { transform: translateY(-8px); box-shadow: 0 10px 40px rgba(0, 206, 209, 0.15); border-color: var(--neon-cyan); z-index: 10; }

.hobby-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); opacity: 0.8; }
.hobby-card:hover .hobby-bg { transform: scale(1.15); opacity: 0.3; }

.hobby-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent 30%, rgba(2, 11, 22, 0.85) 60%, rgba(2, 11, 22, 1) 100%); z-index: 1; pointer-events: none; }

.hobby-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem 1.5rem; z-index: 2; }
.hobby-title { font-size: 1.8rem; font-weight: 800; color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.8); margin-bottom: 5px; transform: translateY(15px); transition: transform 0.5s var(--easing-smooth), color 0.3s; }
.hobby-desc { font-size: 0.95rem; color: var(--text-gray); line-height: 1.4; opacity: 0; transform: translateY(20px); height: 0; transition: all 0.3s var(--easing-smooth) 0s; }

.hobby-card:hover .hobby-title { transform: translateY(0); color: var(--neon-cyan); }
.hobby-card:hover .hobby-desc { opacity: 1; transform: translateY(0); height: auto; margin-top: 5px; transition: all 0.6s var(--easing-smooth) 0.15s; }

/* --- Projects --- */
.projects-wrapper { display: flex; flex-direction: column; gap: 5rem; }

.project-row { 
    display: grid; grid-template-columns: 400px 1fr; 
    background: rgba(255, 255, 255, 0.02); border-radius: 30px; 
    overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05); 
    transition: all 1s var(--easing-smooth); cursor: none; min-height: 300px; 
}
.project-row:hover { border-color: var(--neon-cyan); transform: scale(1.02); box-shadow: 0 0 50px rgba(0, 206, 209, 0.25); }

.project-visual { position: relative; overflow: hidden; height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; }
.project-thumb { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--easing-smooth); z-index: 1; }
.project-row:hover .project-thumb { transform: scale(1.1); filter: brightness(0.4); }
.visual-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8)); opacity: 0.5; }

.click-hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8); font-size: 1.1rem; color: white; font-weight: bold; display: flex; flex-direction: column; align-items: center; gap: 8px; text-shadow: 0 0 10px black; opacity: 0; transition: all 0.4s var(--easing-smooth); }
.project-row:hover .click-hint { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.project-info { padding: 3.5rem; display: flex; flex-direction: column; justify-content: center; }
.project-name { font-size: 2.5rem; font-weight: 700; margin-bottom: 0rem; text-shadow: 0 0 15px rgba(255,255,255,0.1); }
.project-desc { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 2rem; }
.project-stats { display: flex; gap: 3rem; list-style: none; font-family: 'JetBrains Mono', monospace; color: var(--neon-cyan); font-size: 1.1rem; }
.project-stats li i { margin-right: 8px; color: var(--neon-cyan); }

/* --- Advanced Glowing Border Animation (Modal) --- */
.glow-border { position: relative; z-index: 1; border: none !important; background: var(--bg-main) !important; overflow: visible !important; }
.glow-border::before { content: ""; position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px; background: linear-gradient(45deg, var(--deep-blue), var(--royal-blue), var(--neon-cyan), var(--neon-white), var(--neon-cyan), var(--royal-blue), var(--deep-blue)); background-size: 400% 400%; z-index: -1; border-radius: 40px; animation: flowGlow 12s linear infinite; }
.glow-border::after { content: ""; position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px; background: inherit; z-index: -2; border-radius: 40px; filter: blur(25px); opacity: 0.8; }
@keyframes flowGlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* --- Floating Project Modal --- */
.fullscreen-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.9); backdrop-filter: blur(20px); z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.4s; display: flex; justify-content: center; align-items: center; }
.fullscreen-modal.active { opacity: 1; pointer-events: auto; }

.modal-content-wrapper { width: 90vw; height: 85vh; max-width: 1600px; background: #020b16; border-radius: 35px; position: relative; overflow: visible; display: flex; isolation: isolate; }
.modal-content-wrapper > * { border-radius: 35px; overflow: hidden; }

.close-modal-btn { position: absolute; top: 2rem; right: 2rem; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); color: white; width: 50px; height: 50px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: 0.3s; z-index: 50; }
.close-modal-btn:hover { background: var(--neon-cyan); color: black; transform: rotate(90deg); }

.modal-grid { display: grid; grid-template-columns: 40% 60%; width: 100%; height: 100%; }
.modal-left { padding: 4rem; display: flex; flex-direction: column; justify-content: center; background: rgba(0,0,0,0.8); z-index: 2; border-right: 1px solid rgba(255,255,255,0.05); }
.modal-title { font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.1; margin-bottom: 1.5rem; color: var(--neon-cyan); text-shadow: 0 0 30px rgba(0, 206, 209, 0.3); }
.modal-desc-wrapper { margin-bottom: 2.5rem; max-height: 40vh; overflow: hidden; }
.modal-description { font-size: clamp(1rem, 1.2vw, 1.15rem); color: #e0e6ed; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 10; -webkit-box-orient: vertical; overflow: hidden; }
.project-visit-btn { margin: 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; padding: 1.2rem 3.5rem; background: var(--gradient-primary); color: white; text-decoration: none; border-radius: 50px; font-weight: bold; margin-bottom: 2rem; transition: 0.3s; box-shadow: 0 0 25px rgba(0, 206, 209, 0.4); font-size: 1.1rem; }
.project-visit-btn:hover { transform: translateY(-4px); box-shadow: 0 0 50px var(--neon-cyan); }

/* JS-Driven Infinite Scroller (No CSS animation keyframes) */
.modal-right { position: relative; height: 100%; display: flex; align-items: center; background: black; overflow: hidden; }
.image-scroller-container { 
    width: 100%; height: 60%; display: flex; align-items: center; 
    overflow-x: hidden; /* JS handles scrolling */
    overflow-y: hidden; 
    cursor: grab; position: relative; padding: 25px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); 
}
.image-scroller-container:active { cursor: grabbing; }

.scroller-track { display: flex; gap: 2rem; width: max-content; padding: 0 50vw 0 0; }
.scroller-track img { 
    height: 45vh; width: auto; border-radius: 15px; border: 1px solid rgba(255,255,255,0.1); 
    transition: transform 0.3s, border-color 0.3s; cursor: pointer; opacity: 0.8; 
    user-select: none; -webkit-user-drag: none; 
}
.scroller-track img:hover { transform: scale(1.05); border-color: var(--neon-cyan); opacity: 1; box-shadow: 0 0 40px rgba(0,242,255,0.3); }
.scroll-hint-overlay { position: absolute; bottom: 2rem; width: 100%; text-align: center; color: var(--text-gray); font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; pointer-events: none; opacity: 0.7; }

/* Zoom Modal */
.zoom-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 3000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.3s; }
.zoom-modal.active { opacity: 1; pointer-events: auto; }
.zoom-container { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.zoom-modal img { max-width: 90%; max-height: 80vh; box-shadow: 0 0 80px rgba(0,242,255,0.3); border-radius: 10px; transition: transform 0.1s linear; }
.zoom-controls { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,0.1); padding: 10px 20px; border-radius: 30px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); }
.zoom-controls i { color: white; font-size: 1.2rem; }
.close-zoom-btn { position: absolute; top: 30px; right: 30px; background: none; border: none; font-size: 2rem; color: white; cursor: pointer; }

/* --- Friends Section --- */
.friends-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; width: 100%; }
.friend-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 30px; overflow: visible; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.4s var(--easing-smooth); }
.friend-card:hover { transform: translateY(-10px); border-color: var(--neon-cyan); box-shadow: 0 15px 40px rgba(0, 206, 209, 0.15); }

.friend-banner { width: 100%; height: 110px; background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; overflow: hidden; background-color: var(--deep-blue); border-radius: 28px 28px 0 0; z-index: 1; }
.friend-banner::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(2, 11, 22, 0.4); background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); opacity: 0.6; mix-blend-mode: overlay; }

.friend-avatar-wrapper { margin-top: -55px; z-index: 5; position: relative; background: transparent; padding: 0; display: flex; justify-content: center; align-items: center; }
.friend-avatar { width: 105px; height: 105px; border-radius: 50%; object-fit: cover; border: 5px solid var(--bg-main); box-shadow: 0 0 0 2px var(--neon-cyan), 0 0 20px rgba(0, 242, 255, 0.4); transition: transform 0.5s var(--easing-smooth), box-shadow 0.5s; background: var(--bg-main); }
.friend-card:hover .friend-avatar { transform: scale(1.1) rotate(5deg); box-shadow: 0 0 0 3px var(--neon-cyan), 0 0 30px rgba(0, 242, 255, 0.6); border-color: #05101c; }

.friend-content { padding: 1.5rem 2rem 2.5rem; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; z-index: 2; }
.friend-name { font-size: 1.5rem; font-weight: 700; color: white; }
.friend-role { font-size: 0.9rem; color: var(--neon-cyan); font-family: 'JetBrains Mono', monospace; background: rgba(0, 206, 209, 0.1); padding: 4px 12px; border-radius: 20px; margin-bottom: 8px; border: 1px solid rgba(0, 206, 209, 0.2); }
.friend-desc { color: var(--text-gray); font-size: 0.95rem; line-height: 1.5; margin-bottom: 1.5rem; max-width: 90%; }
.friend-btn { text-decoration: none; color: white; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2); padding: 0.8rem 2rem; border-radius: 50px; font-weight: 600; transition: 0.3s; display: flex; align-items: center; gap: 10px; }
.friend-btn:hover { background: var(--neon-cyan); color: black; box-shadow: 0 0 20px rgba(0, 242, 255, 0.4); transform: translateY(-2px); }

/* --- Footer & Socials --- */
.social-title { font-size: 2.5rem; font-weight: 700; color: white; }
.footer-section { margin-top: 10rem; }
.footer-glass { width: 100%; background: linear-gradient(180deg, rgba(10,30,60,0.9), rgba(2,11,22,0.98)); border-top: 1px solid var(--glass-border); padding: 10rem 2rem 5rem 2rem; text-align: center; box-shadow: 0 -10px 50px rgba(0,0,0,0.5); }
.social-grid { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin: 3.5rem 0; width: 100%; max-width: 1400px; margin-left: auto; margin-right: auto; }

.social-card { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 160px; height: 160px; background: rgba(255, 255, 255, 0.03); border-radius: 24px; transition: 0.3s; border: 1px solid rgba(255,255,255,0.05); flex: 1; min-width: 140px; max-width: 250px; 
    
    /* --- NEW LINES TO FIX LINKS --- */
    text-decoration: none; /* Removes underline */
    color: var(--neon-white); /* Forces text to be white, not blue link color */
}
.social-card i { font-size: 3rem; margin-bottom: 1rem; transition: 0.3s; color: #fff; }

.social-card.discord:hover { border-color: var(--discord); box-shadow: 0 0 40px var(--discord); background: rgba(88, 101, 242, 0.1); } .social-card.discord:hover i { color: var(--discord); filter: drop-shadow(0 0 15px var(--discord)); }
.social-card.instagram:hover { border-color: var(--instagram); box-shadow: 0 0 40px var(--instagram); background: rgba(225, 48, 108, 0.1); } .social-card.instagram:hover i { color: var(--instagram); filter: drop-shadow(0 0 15px var(--instagram)); }
.social-card.twitter:hover { border-color: var(--twitter); box-shadow: 0 0 40px var(--twitter); background: rgba(29, 161, 242, 0.1); } .social-card.twitter:hover i { color: var(--twitter); filter: drop-shadow(0 0 15px var(--twitter)); }
.social-card.github:hover { border-color: var(--github); box-shadow: 0 0 40px var(--github); background: rgba(255, 255, 255, 0.1); } .social-card.github:hover i { color: var(--github); filter: drop-shadow(0 0 15px var(--github)); }
.social-card.email:hover { border-color: var(--email); box-shadow: 0 0 40px var(--email); background: rgba(255, 215, 0, 0.1); } .social-card.email:hover i { color: var(--email); filter: drop-shadow(0 0 15px var(--email)); }

.center-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); z-index: 2500; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.3s; }
.center-modal-overlay.active { opacity: 1; pointer-events: auto; }
.center-card { background: #0f1c3f; width: 400px; padding: 3rem; border-radius: 30px; border: 2px solid white; text-align: center; position: relative; transform: scale(0.8); transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.center-modal-overlay.active .center-card { transform: scale(1); }
.close-center-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; color: white; font-size: 1.5rem; }
.social-header i { font-size: 4rem; margin-bottom: 1rem; display: block; }
.social-action-btn { display: inline-block; padding: 1rem 2.5rem; border-radius: 40px; color: white; text-decoration: none; margin-top: 1.5rem; font-weight: bold; font-size: 1.1rem; }

/* --- Music Player Island --- */

.album-art-wrapper { width: 220px; height: 220px; margin-bottom: 25px; position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid rgba(255, 255, 255, 0.1); }
.album-art-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--easing-smooth); }
.music-island:hover .album-art-image { transform: scale(1.05); }

.music-island { position: fixed; bottom: 35px; right: 35px; background: rgba(15, 25, 45, 0.7); backdrop-filter: blur(30px); border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; padding: 0 25px; z-index: 1000; box-shadow: 0 15px 40px rgba(0,0,0,0.6); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); width: 240px; height: 65px; overflow: hidden; }
.music-island:hover { border-color: var(--neon-cyan); box-shadow: 0 0 25px rgba(0, 242, 255, 0.2); }

.music-mini-content { display: flex; align-items: center; gap: 15px; width: 100%; height: 100%; opacity: 1; transition: opacity 0.3s; cursor: pointer; }
.music-visualizer { display: flex; gap: 4px; height: 18px; align-items: flex-end; }
.bar { width: 3px; background: var(--neon-cyan); animation: equalize 1s infinite; height: 100%; border-radius: 2px; }
.music-mini-info { display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.music-title-mini { font-size: 0.9rem; font-weight: 700; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
.music-artist-mini { font-size: 0.75rem; color: var(--text-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.music-island.expanded { width: 320px; height: 500px; border-radius: 25px; background: rgba(10, 20, 35, 0.95); border: 1px solid var(--neon-cyan); box-shadow: 0 0 60px rgba(0,242,255,0.15); padding: 0; }
.music-island.expanded .music-mini-content { opacity: 0; pointer-events: none; position: absolute; }
.music-expanded-content { opacity: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; padding: 25px; transition: opacity 0.5s 0.2s; }
.music-island.expanded .music-expanded-content { opacity: 1; }

.music-header-row { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.now-playing-text { font-size: 0.75rem; letter-spacing: 1px; color: var(--text-gray); font-weight: 700; }
.player-icon-btn { background: none; border: none; color: white; font-size: 1.1rem; cursor: pointer; transition: 0.2s; }
.player-icon-btn:hover { color: var(--neon-cyan); }

.music-details-full { text-align: left; width: 100%; margin-bottom: 15px; }
.music-title-full { display: block; font-size: 1.4rem; font-weight: 700; color: white; margin-bottom: 2px; }
.music-artist-full { display: block; font-size: 0.9rem; color: var(--text-gray); }

.music-progress-container { width: 100%; margin-bottom: 20px; cursor: pointer; }
.music-progress-bg { width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: visible; position: relative; }
.progress-fill { width: 0%; height: 100%; background: var(--neon-cyan); border-radius: 2px; position: relative; transition: width 0.1s linear; }
.progress-thumb { width: 10px; height: 10px; background: white; border-radius: 50%; position: absolute; right: -5px; top: -3px; opacity: 0; transition: opacity 0.2s; box-shadow: 0 0 10px var(--neon-cyan); }
.music-progress-container:hover .progress-thumb { opacity: 1; }
.music-time-display { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-gray); font-family: 'JetBrains Mono', monospace; margin-top: 8px; }

.music-controls-full { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 20px; }
.music-controls-full button { background: none; border: none; color: white; font-size: 1.5rem; transition: 0.2s; cursor: pointer; }
.music-controls-full button:hover { color: var(--neon-cyan); }
.play-btn-main { font-size: 2rem !important; width: 55px; height: 55px; background: white !important; color: black !important; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 0 15px rgba(255,255,255,0.3); }
.play-btn-main:hover { transform: scale(1.05); box-shadow: 0 0 25px white; }

.volume-container { display: flex; align-items: center; gap: 10px; width: 100%; }
.volume-slider { flex: 1; height: 3px; }

@keyframes equalize { 0%, 100% { height: 20%; } 50% { height: 100%; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-25px); } }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }

.reveal { opacity: 0; transform: translateY(40px); transition: 1.2s var(--easing-smooth); will-change: transform, opacity; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: 1.2s var(--easing-smooth); will-change: transform, opacity; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: 1.2s var(--easing-smooth); will-change: transform, opacity; }
.reveal-bottom { opacity: 0; transform: translateY(40px); transition: 1.2s var(--easing-smooth); will-change: transform, opacity; }
.active { opacity: 1; transform: translate(0); }

/* Unified Media Queries */
@media (max-width: 1200px) { .about-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 1024px) {
    .friends-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .modal-left { padding: 2rem; align-items: center; text-align: center; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .modal-title { text-align: center; margin-bottom: 1rem; }
    .project-visit-btn { align-self: center; padding: 0.8rem 2rem; font-size: 1rem; }
    .modal-right { height: 100%; background: transparent; }
    .scroller-track img { height: 25vh; }
}

@media (max-width: 768px) {
    html { font-size: 15px; } 
    .nav-links-wrapper { display: none; }
    .hero-layout { flex-direction: column; text-align: center; gap: 3rem; }
    .hero-title { font-size: 3.5rem; }
    .about-grid, .friends-grid, .project-row { grid-template-columns: 1fr; }
    .hobby-grid { grid-template-columns: 1fr 1fr; }
    .hobby-card { height: 250px; }
    .project-visual { height: 250px; }
    .music-island { right: 20px; bottom: 20px; width: 240px; }
    .music-island.expanded { width: 90vw; height: auto; right: 5vw; bottom: 5vh; }
    .cursor-glow, .cursor-tooltip { display: none; }
    .social-card { min-width: 130px; }
    .fullscreen-modal .modal-content-wrapper { padding: 2rem; width: 100%; height: 100%; border-radius: 0; }
    .image-scroller-container { mask-image: none; }
}