:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --accent: #06b6d4;
    --accent2: #ec4899;
    --accent3: #f59e0b;
    --bg: #030712;
    --bg-card: rgba(15, 23, 42, 0.8);
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(139, 92, 246, 0.15);
    --glow: 0 0 80px rgba(139, 92, 246, 0.3);
    --radius: 16px;
    --radius-lg: 24px;
}

[data-theme="light"] {
    --bg: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text: #0f172a;
    --text-dim: #475569;
    --text-muted: #64748b;
    --border: rgba(139, 92, 246, 0.2);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    transition: background 0.5s, color 0.5s;
}

body.loaded .loader {
    opacity: 0;
    pointer-events: none;
}

.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s;
}

.loader-inner {
    text-align: center;
}

.loader-ring {
    width: 100px;
    height: 100px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

.loader-text {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.loader-text span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    animation: bounce-letter 0.6s ease infinite;
}

.loader-text span:nth-child(1) {
    animation-delay: 0s;
}

.loader-text span:nth-child(2) {
    animation-delay: 0.1s;
}

.loader-text span:nth-child(3) {
    animation-delay: 0.2s;
}

.loader-text span:nth-child(4) {
    animation-delay: 0.3s;
}

.loader-text span:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes bounce-letter {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.2s, height 0.2s;
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: 0.15s ease-out;
    opacity: 0.5;
}

.cursor-dot.hover {
    width: 50px;
    height: 50px;
    background: rgba(139, 92, 246, 0.2);
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
}

#cursorTrail {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
}

@media (hover: none) {

    .cursor-dot,
    .cursor-ring,
    #cursorTrail {
        display: none;
    }

    body {
        cursor: auto;
    }
}

.bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(135deg, var(--bg) 0%, #0f172a 50%, var(--bg) 100%);
    transition: background 0.5s;
}

[data-theme="light"] .bg {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    will-change: transform;
}

.o1 {
    width: 800px;
    height: 800px;
    background: var(--primary);
    top: -300px;
    right: -200px;
    animation: drift 25s ease-in-out infinite;
}

.o2 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    bottom: -200px;
    left: -200px;
    animation: drift 20s ease-in-out infinite reverse;
}

.o3 {
    width: 500px;
    height: 500px;
    background: var(--accent2);
    top: 50%;
    left: 40%;
    animation: drift 30s ease-in-out infinite;
}

@keyframes drift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.05);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    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;
}

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.5s;
}

[data-theme="light"] .nav {
    background: rgba(248, 250, 252, 0.85);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text);
    transition: 0.3s;
}

.theme-toggle .moon {
    display: none;
}

[data-theme="light"] .theme-toggle .sun {
    display: none;
}

[data-theme="light"] .theme-toggle .moon {
    display: block;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.nav-cta svg {
    width: 16px;
    height: 16px;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7rem 5% 3rem;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    color: #22c55e;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px transparent;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.typed {
    color: var(--accent);
    font-weight: 600;
}

.typed-cursor {
    color: var(--primary);
    animation: blink 1s infinite;
    font-weight: 300;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-bio {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.bio-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: all 0.3s;
}

.bio-tag:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.bio-tag svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s;
    flex: 1;
    max-width: 140px;
    transform-style: preserve-3d;
}

.stat:hover {
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transform: translateZ(20px);
}

.stat-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.stat-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent2));
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.btn.secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn.secondary:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.btn.lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.hero-visual {
    flex-shrink: 0;
}

.avatar-wrap {
    position: relative;
    width: 340px;
    height: 340px;
    transform-style: preserve-3d;
}

.avatar-glow {
    position: absolute;
    inset: -40px;
    background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--accent2), var(--accent3), var(--primary));
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.avatar-ring {
    position: absolute;
    inset: -6px;
    background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--accent2), var(--accent3), var(--primary));
    border-radius: 50%;
    animation: spin 8s linear infinite;
}

.avatar-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--bg);
    z-index: 1;
    transform: translateZ(30px);
}

.avatar-status {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateZ(40px);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    z-index: 2;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.float-icons {
    position: absolute;
    inset: -20px;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    animation: float 5s ease-in-out infinite;
}

.float-icon svg {
    width: 22px;
    height: 22px;
}

.f1 {
    top: 5%;
    left: -10%;
    color: var(--accent3);
    animation-delay: 0s;
}

.f2 {
    top: 20%;
    right: -15%;
    color: var(--accent);
    animation-delay: -1s;
}

.f3 {
    bottom: 25%;
    left: -15%;
    color: var(--accent2);
    animation-delay: -2s;
}

.f4 {
    bottom: 5%;
    right: -10%;
    color: var(--primary);
    animation-delay: -3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(5deg);
    }
}

.scroll-cta {
    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.85rem;
    text-decoration: none;
    animation: bounce 2s infinite;
}

.scroll-cta svg {
    width: 20px;
    height: 20px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    will-change: transform;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.section-label svg {
    width: 18px;
    height: 18px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.dot {
    color: var(--accent2);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s;
    transform-style: preserve-3d;
}

.card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: var(--glow);
}

.card-main {
    grid-column: span 2;
}

.card-accent {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border-color: rgba(139, 92, 246, 0.25);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    margin-bottom: 1rem;
    transform: translateZ(25px);
}

.card-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-emoji {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.1));
    border-radius: 16px;
    margin-bottom: 1rem;
    transform: translateZ(25px);
}

.card-emoji svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.card-tags span {
    padding: 0.35rem 0.75rem;
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.skill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.skill:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: var(--glow);
}

.skill-main {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.08), rgba(139, 92, 246, 0.08));
    border-color: rgba(250, 204, 21, 0.2);
}

.skill-accent {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    border-color: rgba(236, 72, 153, 0.25);
}

.skill-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
    transform: translateZ(20px);
}

.skill-icon.js {
    background: linear-gradient(135deg, #f7df1e, #f0db4f);
    color: #000;
}

.skill-icon.js svg {
    width: 32px;
    height: 32px;
}

.skill-icon.web {
    background: linear-gradient(135deg, var(--accent), #0891b2);
    color: white;
}

.skill-icon.web svg {
    width: 28px;
    height: 28px;
}

.skill-icon.sport {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.skill-icon.sport svg {
    width: 28px;
    height: 28px;
}

.skill-icon.loyal {
    background: linear-gradient(135deg, var(--primary), var(--accent2));
    color: white;
}

.skill-icon.loyal svg {
    width: 28px;
    height: 28px;
}

.skill-info {
    flex: 1;
}

.skill-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.skill-info p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.bar {
    height: 8px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 50px;
    width: 0;
    transition: width 1.5s ease;
}

.bar span {
    position: absolute;
    right: 0;
    top: -22px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.skill-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.75rem;
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.skill-badge.fire {
    background: rgba(236, 72, 153, 0.2);
    color: var(--accent2);
}

.skills-extra {
    margin-top: 3rem;
    text-align: center;
}

.skills-extra>span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.extra-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.extra-list span {
    padding: 0.6rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.extra-list span:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.contact {
    text-align: center;
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.contact-desc {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.email-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.3s;
    transform-style: preserve-3d;
}

.email-card:hover {
    border-color: var(--primary);
}

.email-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent2));
    border-radius: 14px;
    flex-shrink: 0;
    transform: translateZ(20px);
}

.email-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.email-info {
    flex: 1;
    text-align: left;
}

.email-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.email-addr {
    display: block;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
}

.email-arrow {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.footer-logo svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.footer-tagline {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-easter {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.6;
}

.game-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.game-modal.active {
    opacity: 1;
    pointer-events: all;
}

.game-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.game-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.game-close:hover {
    border-color: var(--accent2);
    color: var(--accent2);
}

.game-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

#snakeGame {
    background: #0f172a;
    border-radius: 12px;
    border: 2px solid var(--border);
    display: block;
    margin: 0 auto;
}

.game-score {
    margin-top: 1rem;
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 600;
}

.game-hint {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-bio {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .avatar-wrap {
        width: 280px;
        height: 280px;
    }

    .card-main {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        opacity: 0;
        transition: 0.3s;
    }

    [data-theme="light"] .nav-menu {
        background: rgba(248, 250, 252, 0.98);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 6rem 5% 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-sub {
        font-size: 1.25rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat {
        padding: 1rem;
        min-width: 100px;
    }

    .avatar-wrap {
        width: 220px;
        height: 220px;
    }

    .float-icons {
        display: none;
    }

    section {
        padding: 4rem 5%;
    }

    .section-title {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-bio {
        flex-direction: column;
        align-items: center;
    }

    .bio-tag {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat {
        width: 100%;
        max-width: 200px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .avatar-wrap {
        width: 180px;
        height: 180px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill {
        flex-direction: column;
        text-align: center;
    }

    .skill-icon {
        margin: 0 auto;
    }

    .bar span {
        position: static;
        margin-top: 0.5rem;
        display: block;
    }
}

::selection {
    background: rgba(139, 92, 246, 0.3);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}