/* ============================================================
   DESIGN SYSTEM — Epic Cyberpunk Personal Page
   ============================================================ */

/* === Custom Properties === */
:root {
    /* Colors - Industrial/Vercel Base */
    --bg-primary: #090B0F;
    --bg-secondary: #11151C;
    --bg-card: #171C24;
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    
    --text-primary: #F3F5F7;
    --text-secondary: #A2ACB8;
    --text-muted: #55556a;
    
    --accent-cyan: #B7F36B;      /* Signal Green */
    --accent-purple: #7CBF2F;    /* Dark Green */
    --accent-pink: #FF6B6B;      /* Red alert */
    
    /* System Status */
    --status-blue: #6BCBFF;
    --status-amber: #FFB84D;
    --status-red: #FF6B6B;
    
    /* Refined Gradients & Glows (No Neon overload) */
    --accent-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    --glow-cyan: 0 0 15px rgba(183, 243, 107, 0.1), 0 0 30px rgba(183, 243, 107, 0.05);
    --glow-purple: 0 0 15px rgba(124, 191, 47, 0.1), 0 0 30px rgba(124, 191, 47, 0.05);
    
    --glass-bg: rgba(17, 21, 28, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --ff-heading: 'Outfit', sans-serif;
    --ff-body: 'Inter', sans-serif;
    --fs-hero: clamp(3rem, 8vw, 7rem);
    --fs-h2: clamp(2rem, 4vw, 3.5rem);
    --fs-h3: clamp(1.1rem, 2vw, 1.4rem);
    --fs-body: 1rem;
    --fs-small: 0.875rem;

    /* Spacing */
    --section-padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 5vw, 6rem);
    --card-padding: 2rem;
    --gap: 2rem;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out-expo);
    --transition-medium: 0.5s var(--ease-out-expo);
    --transition-slow: 0.8s var(--ease-out-expo);
}

/* === Reset === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) var(--bg-primary);
}

body {
    font-family: var(--ff-body);
    font-size: var(--fs-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 300;
    padding: 0.75rem 1rem;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-radius: 0.5rem;
    font-weight: 700;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
}

img {
    max-width: 100%;
    display: block;
}

/* === Custom Scrollbar (Webkit) === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

img {
    max-width: 100%;
    display: block;
}

/* === Custom Scrollbar (Webkit) === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 3px;
}

/* === 3D Canvas Background === */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* === Floating Contact Sidebar === */
.floating-contact {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    transition: var(--transition-medium);
}

.social-icon-link svg {
    width: 20px;
    height: 20px;
}

.social-icon-link:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: var(--glow-cyan);
}

/* === Tracking Dots (Scrollspy) === */
.tracking-dots {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.tracking-dots ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tracking-dots .dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--glass-border);
    border: 1px solid transparent;
    transition: var(--transition-medium);
}

.tracking-dots .dot:hover {
    background: rgba(183, 243, 107, 0.5);
    transform: scale(1.2);
}

.tracking-dots .dot.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    transform: scale(1.5);
}

/* === Cursor Glow === */
#cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    will-change: left, top;
}

/* === Navigation === */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-medium);
}

.nav-logo {
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-medium);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active::after {
    width: 100%;
}

/* === Sections (shared) === */
main {
    position: relative;
    z-index: 2;
}

section {
    min-height: 100vh;
    padding: var(--section-padding);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-number {
    font-family: var(--ff-heading);
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
}

.section-header h2 {
    font-family: var(--ff-heading);
    font-size: var(--fs-h2);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
}

/* === HERO === */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-name {
    font-family: var(--ff-heading);
    font-size: var(--fs-hero);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.name-glow {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.3));
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    min-height: 2rem;
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--accent-cyan);
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: var(--fs-small);
    letter-spacing: 0.05em;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--bg-card);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    box-shadow: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(183, 243, 107, 0.2);
}

.btn-ghost {
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
    transform: rotate(45deg);
    opacity: 0.6;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* === ABOUT === */
.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--glass-border);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.image-frame:hover img {
    transform: scale(1.05);
}

.image-glow {
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: var(--accent-gradient);
    z-index: -1;
    opacity: 0.4;
    filter: blur(20px);
    transition: var(--transition-medium);
}

.image-frame:hover .image-glow {
    opacity: 0.7;
}

/* Profile art SVG */
.profile-art {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
}

.profile-backdrop {
    position: absolute;
    inset: 0;
.profile-bd {
    /* Removed old glow entirely from css to clean up. */
}

.profile-svg {
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.05));
    transition: var(--transition-medium);
}

.image-frame:hover .profile-svg {
    transform: scale(1.02);
    filter: drop-shadow(0 0 20px rgba(0,240,255,0.1));
}

/* Project gradient backgrounds */
.project-gradient-1 {
    background: linear-gradient(135deg, #0d1117, #1a0a2e, #0a1628) !important;
}

.project-gradient-2 {
    background: linear-gradient(135deg, #0d1117, #1a0a2e, #2a0a28) !important;
}

.project-gradient-3 {
    background: linear-gradient(135deg, #0d1117, #280a1a, #0a1628) !important;
}

.project-icon-art {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.project-icon-art svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
    transition: var(--transition-medium);
}

.project-card:hover .project-icon-art svg {
    opacity: 0.8;
    transform: scale(1.1);
}

.about-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-text strong {
    color: var(--accent-cyan);
}

.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--ff-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: var(--fs-small);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* === INTERESTS === */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap);
    max-width: 1100px;
}

.interest-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: var(--card-padding);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-medium);
    transform-style: preserve-3d;
    cursor: default;
}

.interest-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: var(--glow-cyan);
    transform: translateY(-5px);
}

.interest-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.2rem;
    color: var(--accent-cyan);
    transition: var(--transition-medium);
}

.interest-card:hover .interest-icon {
    color: var(--accent-purple);
    transform: scale(1.1);
}

.interest-card h3 {
    font-family: var(--ff-heading);
    font-size: var(--fs-h3);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.interest-card p {
    color: var(--text-secondary);
    font-size: var(--fs-small);
    line-height: 1.6;
}

/* === PROJECTS === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--gap);
    max-width: 1200px;
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    min-height: auto;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(183, 243, 107, 0.1);
}

.project-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    width: fit-content;
}

.project-card:focus-visible,
.social-icon-link:focus-visible,
.btn:focus-visible,
.nav-logo:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
}
#link-twitch:hover {
    border-color: #9146ff;
    box-shadow: 0 0 30px rgba(145, 70, 255, 0.3);
}

#link-twitch:hover .social-icon {
    color: #9146ff;
}

#link-instagram:hover {
    border-color: #e4405f;
    box-shadow: 0 0 30px rgba(228, 64, 95, 0.3);
}

#link-instagram:hover .social-icon {
    color: #e4405f;
}

#link-email:hover {
    border-color: var(--status-red);
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

#link-email:hover .social-icon {
    color: var(--status-red);
}

.social-name {
    font-family: var(--ff-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.social-handle {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

/* === FOOTER === */
#main-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: var(--fs-small);
    border-top: 1px solid var(--glass-border);
}

.heart {
    color: var(--accent-pink);
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.25);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }
}

/* === SCROLL REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.reveal:nth-child(5) {
    transition-delay: 0.4s;
}

.reveal:nth-child(6) {
    transition-delay: 0.5s;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-image {
        max-width: 200px;
        margin: 0 auto;
    }

    .about-stats {
        justify-content: center;
    }

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

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

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

    .hero-name {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}

@media (max-width: 480px) {
    .interests-grid {
        grid-template-columns: 1fr;
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    #cursor-glow,
    #bg-canvas,
    .scroll-indicator {
        display: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
