/* ==========================================================================
   KAKASHIPLAYZ PORTFOLIO - MASTER STYLESHEET
   Engineered for Ultra-Performance, Dynamic Animations, and Multi-Ratio UI
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --color-bg-base: #08090d;
    --color-bg-surface: #0f121a;
    --color-bg-card: rgba(18, 22, 33, 0.72);
    --color-bg-card-hover: rgba(26, 32, 48, 0.85);
    --color-bg-glass: rgba(15, 18, 26, 0.8);
    
    /* Crimson & Cyber Accents */
    --color-primary: #ff3b3b;
    --color-primary-rgb: 255, 59, 59;
    --color-primary-hover: #ff5c5c;
    --color-primary-dark: #b81c1c;
    --color-accent-glow: rgba(255, 59, 59, 0.35);
    --color-secondary-glow: rgba(229, 57, 53, 0.18);
    --color-gold: #ffb703;
    --color-discord: #5865F2;
    --color-spigot: #f39c12;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #c7cbd9;
    --text-muted: #888f9e;
    --text-faint: #555c6d;

    /* Borders & Outlines */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 59, 59, 0.3);
    --border-glow-bright: rgba(255, 59, 59, 0.6);

    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Elevations & Shadows */
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 59, 59, 0.08);
    --shadow-card-hover: 0 20px 45px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 59, 59, 0.28);
    --shadow-glow: 0 0 25px rgba(255, 59, 59, 0.45);
    --shadow-btn: 0 6px 20px rgba(255, 59, 59, 0.3);

    /* Transitions & Physics */
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 0.2s var(--ease-smooth);
    --transition-base: 0.3s var(--ease-smooth);
    --transition-slow: 0.5s var(--ease-smooth);

    /* Border Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;

    /* Header Heights */
    --nav-height: 80px;
}

/* --------------------------------------------------------------------------
   2. Reset & Global Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-base);
    color: var(--text-primary);
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-base);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
}

body.drawer-open {
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #08090d;
}
::-webkit-scrollbar-thumb {
    background: #232734;
    border-radius: 5px;
    border: 2px solid #08090d;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

::selection {
    background: var(--color-primary);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. Background Canvas & Ambient Lighting
   -------------------------------------------------------------------------- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    animation: pulseAmbient 10s ease-in-out infinite alternate;
}

.glow-top-left {
    top: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 59, 59, 0.28) 0%, transparent 70%);
}

.glow-bottom-right {
    bottom: -150px;
    right: -150px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(184, 28, 28, 0.22) 0%, transparent 70%);
    animation-delay: -5s;
}

.glow-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 59, 59, 0.08) 0%, transparent 70%);
    animation-duration: 14s;
}

@keyframes pulseAmbient {
    0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
    50% { transform: scale(1.12) translate(20px, -20px); opacity: 0.55; }
    100% { transform: scale(0.95) translate(-15px, 15px); opacity: 0.38; }
}

/* Scroll Progress Bar at Top */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ff3b3b, #ff7b7b, #ff3b3b);
    z-index: 10001;
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.8);
    transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   4. Custom Cursor (Desktop Only)
   -------------------------------------------------------------------------- */
.custom-cursor-dot,
.custom-cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-cursor-dot {
    width: 8px;
    height: 8px;
    background: #ff3b3b;
    box-shadow: 0 0 8px #ff3b3b;
}

.custom-cursor-glow {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 59, 59, 0.4);
    background: rgba(255, 59, 59, 0.05);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

body.cursor-active .custom-cursor-glow {
    width: 52px;
    height: 52px;
    border-color: rgba(255, 59, 59, 0.8);
    background: rgba(255, 59, 59, 0.15);
}

@media (hover: none) and (pointer: coarse) {
    .custom-cursor-dot,
    .custom-cursor-glow {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   5. Reusable Layout Utilities
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.section {
    padding: clamp(70px, 8vw, 130px) 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(36px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid rgba(255, 59, 59, 0.25);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-line {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin: 16px auto 0;
    border-radius: var(--radius-full);
}

.section-subtitle {
    max-width: 620px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 14px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   6. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid transparent;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.btn:hover::after {
    opacity: 1;
    transform: scale(1);
}

.btn-primary {
    background: linear-gradient(135deg, #ff3b3b 0%, #c61d1d 100%);
    color: #ffffff;
    border-color: rgba(255, 120, 120, 0.4);
    box-shadow: 0 4px 18px rgba(255, 59, 59, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 59, 59, 0.55);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 59, 59, 0.12);
    color: #ffffff;
    border-color: rgba(255, 59, 59, 0.4);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 59, 59, 0.25);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 59, 59, 0.25);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border-color: var(--border-subtle);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   7. Navigation Bar (Desktop & Responsive Header)
   -------------------------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    padding: 0 clamp(20px, 5vw, 60px);
    background: rgba(8, 9, 13, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

header.scrolled .navbar {
    height: 68px;
    background: rgba(8, 9, 13, 0.92);
    border-bottom-color: rgba(255, 59, 59, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.03);
}

.logo-box {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #ff3b3b, #9e0e0e);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.5);
    animation: pulseBox 4s ease-in-out infinite alternate;
}

@keyframes pulseBox {
    0% { box-shadow: 0 0 10px rgba(255, 59, 59, 0.4); }
    100% { box-shadow: 0 0 20px rgba(255, 59, 59, 0.8); }
}

.logo-text span {
    color: var(--color-primary);
}

/* Desktop Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.5vw, 36px);
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 4px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
    transition: width 0.3s var(--ease-smooth);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Nav Actions CTA & Hamburger */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-nav {
    padding: 9px 20px;
    font-size: 0.88rem;
    background: rgba(88, 101, 242, 0.15);
    color: #ffffff;
    border: 1px solid rgba(88, 101, 242, 0.4);
    border-radius: var(--radius-full);
}

.btn-nav:hover {
    background: #5865F2;
    border-color: #5865F2;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: rgba(255, 59, 59, 0.15);
    border-color: var(--color-primary);
}

.hamburger-btn .bar {
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s var(--ease-smooth);
}

.hamburger-btn.active .bar-1 {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--color-primary);
}

.hamburger-btn.active .bar-2 {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-btn.active .bar-3 {
    transform: translateY(-7px) rotate(-45deg);
    background-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   8. Mobile Drawer Menu
   -------------------------------------------------------------------------- */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(85vw, 360px);
    height: 100%;
    height: 100dvh;
    background: rgba(13, 16, 24, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 59, 59, 0.25);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: right 0.4s var(--ease-spring);
    overflow-y: auto;
}

.mobile-drawer.active {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.drawer-close-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-close-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: rotate(90deg);
}

.mobile-drawer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin: 20px 0 10px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius-sm);
    color: #4ade80;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: blinkGlow 2s infinite;
}

@keyframes blinkGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    flex: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.mobile-nav-link i {
    font-size: 1.15rem;
    color: var(--color-primary);
    width: 24px;
    text-align: center;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 59, 59, 0.15);
    border-color: rgba(255, 59, 59, 0.4);
    color: #ffffff;
    transform: translateX(6px);
}

.mobile-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.mobile-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.mobile-socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.mobile-socials a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 59, 59, 0.4);
}

/* --------------------------------------------------------------------------
   9. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: calc(var(--nav-height) + 40px) clamp(20px, 6vw, 80px) 40px;
    position: relative;
    z-index: 2;
}

.hero-container {
    width: 100%;
    max-width: 1280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(40px, 5vw, 80px);
}

/* Avatar / 3D Showcase */
.hero-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-card-3d {
    position: relative;
    width: clamp(260px, 28vw, 380px);
    height: clamp(260px, 28vw, 380px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-out;
}

.avatar-glow-ring {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ff3b3b, #b81c1c, #ff7b7b, #ff3b3b);
    animation: rotateGlowRing 8s linear infinite;
    filter: blur(10px);
    opacity: 0.7;
    z-index: 1;
}

@keyframes rotateGlowRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.avatar-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #131622;
    background: #090a0f;
    box-shadow: 0 0 35px rgba(255, 59, 59, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s var(--ease-smooth);
}

.profile-card-3d:hover .profile-img {
    transform: scale(1.08);
}

/* Floating Badges */
.hero-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 18, 28, 0.9);
    border: 1px solid rgba(255, 59, 59, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 59, 59, 0.25);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    z-index: 3;
    animation: floatBadge 4s ease-in-out infinite alternate;
}

.hero-badge i {
    color: var(--color-primary);
    font-size: 0.95rem;
}

.badge-top-right {
    top: 5%;
    right: -15px;
    animation-delay: 0s;
}

.badge-bottom-left {
    bottom: 5%;
    left: -15px;
    animation-delay: -2s;
}

@keyframes floatBadge {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* Hero Content */
.hero-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid rgba(255, 59, 59, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-primary);
    animation: blinkGlow 1.5s infinite;
}

.intro {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 6px;
}

.typing-container {
    color: var(--color-primary);
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 59, 59, 0.4);
    padding-bottom: 2px;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--color-primary);
    vertical-align: middle;
    margin-left: 2px;
    animation: blinkCursor 0.8s infinite;
}

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

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw + 0.5rem, 4.5rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    margin: 10px 0 20px;
}

.name-gradient {
    background: linear-gradient(135deg, #ffffff 30%, #ff5c5c 70%, #ff1f1f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(255, 59, 59, 0.35));
}

.hero-description {
    font-size: clamp(0.98rem, 1.2vw, 1.12rem);
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
    width: 100%;
}

/* Social Links */
.social-links-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.15rem;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
}

.social-btn .tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #181d2a;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.social-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.social-btn:hover {
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.social-btn.discord:hover { background: #5865F2; border-color: #5865F2; box-shadow: 0 0 20px rgba(88, 101, 242, 0.5); }
.social-btn.github:hover { background: #24292e; border-color: #ffffff; box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
.social-btn.tiktok:hover { background: #000000; border-color: #ff0050; box-shadow: 0 0 20px rgba(255, 0, 80, 0.4); }
.social-btn.facebook:hover { background: #1877F2; border-color: #1877F2; box-shadow: 0 0 20px rgba(24, 119, 242, 0.4); }
.social-btn.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; box-shadow: 0 0 20px rgba(220, 39, 67, 0.4); }
.social-btn.mail:hover { background: var(--color-primary); border-color: var(--color-primary); box-shadow: 0 0 20px var(--color-primary); }

/* Scroll Down Hint */
.scroll-down-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.scroll-down-hint:hover {
    color: var(--color-primary);
}

.mouse-icon {
    width: 22px;
    height: 34px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse-icon .wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 7px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   10. About Me Section
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   11. About Me Section
   -------------------------------------------------------------------------- */
.about-content {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: clamp(36px, 5vw, 64px);
    align-items: flex-start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #ffffff;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

/* Features Grid */
.about-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 10px 0 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 59, 59, 0.06);
    border-color: rgba(255, 59, 59, 0.3);
    transform: translateX(6px);
}

.feature-icon {
    font-size: 1.35rem;
    color: var(--color-primary);
    background: rgba(255, 59, 59, 0.12);
    padding: 12px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.feature-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Categorized Skills */
.skills-section {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skills-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-heading i {
    color: var(--color-primary);
}

.skills-category {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skills-cat-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
    user-select: none;
}

.skill-tag i {
    color: var(--color-primary);
}

.skill-tag:hover {
    background: rgba(255, 59, 59, 0.15);
    border-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 59, 59, 0.3);
}

/* About Image Frame */
.about-image-card {
    position: sticky;
    top: 100px;
}

.about-card-inner {
    background: var(--color-bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.about-card-inner:hover {
    border-color: rgba(255, 59, 59, 0.3);
    box-shadow: var(--shadow-card-hover);
}

.about-img-frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-card-inner:hover .about-img {
    transform: scale(1.04);
}

.about-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(9, 10, 15, 0.95) 100%);
    padding: 24px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 4px 12px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.badge-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.about-quote {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 8px 6px;
}

.quote-icon {
    font-size: 1.4rem;
    color: var(--color-primary);
    opacity: 0.8;
}

.about-quote p {
    font-size: 0.92rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. Projects / Portfolio Section
   -------------------------------------------------------------------------- */
.portfolio-filter-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 9px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: #ffffff;
    background: rgba(255, 59, 59, 0.1);
    border-color: rgba(255, 59, 59, 0.4);
}

.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 59, 59, 0.4);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    transition: all 0.4s var(--ease-smooth);
    opacity: 1;
    transform: scale(1);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    display: none;
}

.portfolio-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(16px);
    transition: all 0.35s var(--ease-smooth);
    box-shadow: var(--shadow-card);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 59, 59, 0.4);
    box-shadow: var(--shadow-card-hover);
}

.portfolio-image-wrapper {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #090b10;
}

.portfolio-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-smooth);
}

.portfolio-card:hover .portfolio-thumb {
    transform: scale(1.08);
}

.project-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.project-badge.spigot {
    background: rgba(243, 156, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-badge.upcoming {
    background: rgba(255, 59, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-badge.pack {
    background: rgba(59, 130, 246, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.portfolio-info {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.project-cat {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
}

.project-stars {
    font-size: 0.8rem;
    color: var(--color-gold);
    font-weight: 600;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.portfolio-excerpt {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.project-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.ptag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.portfolio-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.portfolio-card-actions .btn {
    flex: 1;
}

.btn-details {
    background: rgba(255, 59, 59, 0.12);
    border-color: rgba(255, 59, 59, 0.35);
    color: #ffffff;
}

.btn-details:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(255, 59, 59, 0.4);
}

.btn-external {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}

.btn-external:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   13. Resume & Career Timeline Section
   -------------------------------------------------------------------------- */
.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 4vw, 50px);
}

.resume-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.column-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 59, 59, 0.12);
    border: 1px solid rgba(255, 59, 59, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.25rem;
}

.column-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary) 0%, rgba(255, 59, 59, 0.1) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    top: 14px;
    left: -28px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #090a0f;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.6);
    z-index: 1;
}

.timeline-card {
    background: var(--color-bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 22px;
    backdrop-filter: blur(14px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.timeline-card:hover {
    border-color: rgba(255, 59, 59, 0.35);
    transform: translateX(4px);
}

.timeline-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 59, 59, 0.12);
    border: 1px solid rgba(255, 59, 59, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.timeline-org {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-org i {
    color: var(--color-primary);
}

.timeline-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.timeline-highlights {
    list-style: none;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-highlights li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 18px;
    line-height: 1.5;
}

.timeline-highlights li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Certifications & Philosophy Boxes */
.certifications-box,
.philosophy-box {
    background: var(--color-bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    backdrop-filter: blur(14px);
}

.cert-title,
.phil-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cert-title i,
.phil-title i {
    color: var(--color-primary);
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
}

.cert-item:hover {
    background: rgba(255, 59, 59, 0.08);
    border-color: rgba(255, 59, 59, 0.3);
    transform: translateX(4px);
}

.cert-item i {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.cert-item div {
    display: flex;
    flex-direction: column;
}

.cert-item strong {
    font-size: 0.92rem;
    color: #ffffff;
}

.cert-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.phil-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.phil-item {
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.phil-num {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-primary);
    display: block;
    margin-bottom: 4px;
}

.phil-item h5 {
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.phil-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   14. Contact Section
   -------------------------------------------------------------------------- */
.contact-layout {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    max-width: 760px;
    width: 100%;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.panel-desc {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 650px;
}

.contact-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    backdrop-filter: blur(14px);
    transition: all 0.3s ease;
    text-align: left;
}

.contact-card:hover {
    border-color: rgba(255, 59, 59, 0.4);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.card-icon-wrap.mail { background: rgba(255, 59, 59, 0.12); color: var(--color-primary); border: 1px solid rgba(255, 59, 59, 0.3); }
.card-icon-wrap.discord { background: rgba(88, 101, 242, 0.15); color: #5865F2; border: 1px solid rgba(88, 101, 242, 0.3); }
.card-icon-wrap.store { background: rgba(243, 156, 18, 0.15); color: var(--color-gold); border: 1px solid rgba(243, 156, 18, 0.3); }

.card-text-wrap {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.card-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-val {
    font-size: 0.98rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.card-val:hover {
    color: var(--color-primary);
}

.btn-copy {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-copy:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: scale(1.05);
}

/* Social Channels */
.social-channels-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-top: 10px;
}

.social-channels-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    width: 100%;
}

.channel-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.channel-card i {
    font-size: 1.05rem;
}

.channel-card:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.channel-card.discord:hover { background: #5865F2; border-color: #5865F2; }
.channel-card.github:hover { background: #24292e; border-color: #ffffff; }
.channel-card.tiktok:hover { background: #000000; border-color: #ff0050; }
.channel-card.facebook:hover { background: #1877F2; border-color: #1877F2; }
.channel-card.instagram:hover { background: #dc2743; border-color: #dc2743; }

/* --------------------------------------------------------------------------
   15. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    z-index: 2;
    background: #050608;
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 30px;
}

.footer-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 420px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-group a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links-group a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.footer-divider {
    height: 1px;
    background: var(--border-subtle);
    margin-bottom: 24px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.copyright strong {
    color: var(--color-primary);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-socials a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   16. Interactive Project Modal
   -------------------------------------------------------------------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: 88vh;
    z-index: 2;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.35s var(--ease-spring);
}

.modal.show .modal-container {
    transform: translateY(0) scale(1);
}

.modal-content {
    background: #0f121b;
    border: 1px solid rgba(255, 59, 59, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 59, 59, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 88vh;
    overflow: hidden;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.25s ease;
}

.close-btn:hover {
    background: var(--color-primary);
    transform: rotate(90deg);
}

.modal-header-section {
    padding: 28px 30px 16px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.modal-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    display: block;
    margin-bottom: 4px;
}

.modal-header-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: #ffffff;
    padding-right: 40px;
}

.modal-body-scroll {
    padding: 24px 30px 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.96rem;
}

.modal-body-scroll h3 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.15rem;
    margin-top: 10px;
    border-left: 3px solid var(--color-primary);
    padding-left: 10px;
}

.modal-body-scroll ul {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-body-scroll code {
    background: #1b202e;
    color: #ff7b7b;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.modal-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid rgba(255, 59, 59, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: #ff9e9e;
}

.modal-actions-row {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   17. Back to Top Button with Circular Progress Ring
   -------------------------------------------------------------------------- */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #0f121b;
    border: none;
    color: #ffffff;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: var(--color-primary);
    box-shadow: 0 0 25px rgba(255, 59, 59, 0.6);
}

.back-to-top-btn i {
    font-size: 1.1rem;
    z-index: 2;
    transition: transform 0.3s ease;
}

.back-to-top-btn:hover i {
    transform: translateY(-3px);
}

.progress-ring {
    position: absolute;
    top: 1px;
    left: 1px;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke-dasharray: 132;
    stroke-dashoffset: 132;
    transition: stroke-dashoffset 0.1s linear;
}

/* --------------------------------------------------------------------------
   18. Toast Notification System
   -------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 100000;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #111522;
    border: 1px solid rgba(255, 59, 59, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 59, 59, 0.25);
    border-radius: var(--radius-md);
    padding: 14px 22px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s var(--ease-spring);
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-icon {
    font-size: 1.25rem;
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   19. Scroll Reveal Animations
   -------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
    will-change: opacity, transform;
}

[data-reveal="fade-up"] { transform: translateY(40px); }
[data-reveal="fade-down"] { transform: translateY(-40px); }
[data-reveal="fade-left"] { transform: translateX(50px); }
[data-reveal="fade-right"] { transform: translateX(-50px); }
[data-reveal="scale"] { transform: scale(0.85); }

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ==========================================================================
   20. RESPONSIVE DESIGN - DEDICATED UI FOR ALL SCREEN RATIOS & SIZES
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. Ultra-Wide Displays (2K / 4K / 21:9 Ultrawide > 1600px)
   -------------------------------------------------------------------------- */
@media screen and (min-width: 1600px) {
    :root {
        --nav-height: 90px;
    }
    .container {
        max-width: 1480px;
    }
    .hero-container {
        max-width: 1480px;
    }
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px;
    }
    .hero-name {
        font-size: 5rem;
    }
    .profile-card-3d {
        width: 420px;
        height: 420px;
    }
}

/* --------------------------------------------------------------------------
   B. Standard Desktop & Laptop (1200px - 1599px)
   -------------------------------------------------------------------------- */
@media screen and (min-width: 1200px) and (max-width: 1599px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------------------------------------------------------------
   C. Compact Laptops & Landscape Tablets (992px - 1199px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1199px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

/* --------------------------------------------------------------------------
   D. Tablets (Portrait) & Large Mobile Devices (768px - 991px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 991px) {
    /* Navbar Switches to Mobile Drawer */
    .nav-links {
        display: none;
    }
    .btn-nav {
        display: none;
    }
    .hamburger-btn {
        display: flex;
    }

    /* Hero Stacks Centered */
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-right {
        align-items: center;
    }

    .hero-description {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-links-wrapper {
        justify-content: center;
    }

    /* About Section Stacks */
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image-card {
        position: static;
        max-width: 420px;
        margin: 0 auto;
    }

    /* Resume Section Stacks */
    .resume-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Section Stacks */
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   E. Mobile Phones - Standard to Large (576px - 767px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
    :root {
        --nav-height: 70px;
    }

    .navbar {
        padding: 0 16px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 20px);
        padding-bottom: 50px;
        min-height: auto;
    }

    .profile-card-3d {
        width: 240px;
        height: 240px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .badge-top-right {
        right: -8px;
    }

    .badge-bottom-left {
        left: -8px;
    }

    .hero-name {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card-actions {
        flex-direction: column;
    }

    .phil-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
    }

    .toast-container {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .toast {
        width: 100%;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   F. Small & Compact Phones (380px - 575px, e.g. iPhone, Galaxy)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 575px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .profile-card-3d {
        width: 210px;
        height: 210px;
    }

    .hero-pill {
        font-size: 0.78rem;
        padding: 5px 12px;
    }

    .intro {
        font-size: 1.05rem;
    }

    .hero-name {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .contact-card {
        padding: 12px 14px;
    }

    .card-icon-wrap {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .card-val {
        font-size: 0.88rem;
    }

    .modal {
        padding: 12px;
    }

    .modal-content {
        max-height: 92vh;
    }

    .modal-header-section {
        padding: 20px 20px 14px;
    }

    .modal-body-scroll {
        padding: 18px 20px 24px;
        font-size: 0.9rem;
    }

    .social-channels-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --------------------------------------------------------------------------
   G. Foldables Outer Screen & Ultra-Narrow Displays (max-width: 379px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 379px) {
    .logo-box {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .profile-card-3d {
        width: 170px;
        height: 170px;
    }

    .hero-badge {
        display: none; /* Hide floating badges on ultra-narrow screens to prevent clipping */
    }

    .hero-name {
        font-size: 1.85rem;
    }

    .btn {
        padding: 11px 20px;
        font-size: 0.88rem;
    }

    .social-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .filter-btn {
        padding: 7px 16px;
        font-size: 0.82rem;
    }

    .social-channels-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   H. Mobile Landscape Orientation (@media (max-height: 520px) and (orientation: landscape))
   -------------------------------------------------------------------------- */
@media screen and (max-height: 520px) and (orientation: landscape) {
    :root {
        --nav-height: 56px;
    }

    .hero {
        padding: calc(var(--nav-height) + 16px) 24px 30px;
        min-height: auto;
    }

    .hero-container {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }

    .hero-left {
        flex: 0.8;
    }

    .profile-card-3d {
        width: 160px;
        height: 160px;
    }

    .hero-badge {
        display: none;
    }

    .hero-name {
        font-size: 2rem;
        margin: 4px 0 10px;
    }

    .hero-description {
        margin-bottom: 16px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 16px;
    }

    .hero-buttons .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .scroll-down-hint {
        display: none;
    }

    .modal-content {
        max-height: 94vh;
    }

    .modal-body-scroll {
        max-height: 60vh;
    }
}

/* --------------------------------------------------------------------------
   I. High-DPI & Accessibility (Prefers Reduced Motion)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
    #bg-canvas {
        display: none !important;
    }
}