/* ============================================
   CSS Variables & Design System
============================================ */
:root {
    /* Colors - Dark Mode (Default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: rgba(20, 20, 30, 0.8);

    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #a78bfa;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --accent-gradient-animated: linear-gradient(270deg, #6366f1, #8b5cf6, #a78bfa, #ec4899, #6366f1);

    --success: #22c55e;
    --warning: #eab308;
    --error: #ef4444;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Effects */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-glow-intense: 0 0 80px rgba(99, 102, 241, 0.5);
}

/* Light Mode Theme */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.9);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --shadow-glow-intense: 0 0 60px rgba(99, 102, 241, 0.25);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all var(--transition-bounce);
    color: var(--text-primary);
    margin-left: 8px;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(180deg);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="light"] .gradient-orb {
    opacity: 0.2;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loading {
    overflow: hidden;
}

::selection {
    background: var(--accent-primary);
    color: white;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Scroll Progress Bar
============================================ */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10000;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--accent-primary);
}

/* ============================================
   Animated Gradient Text
============================================ */
.animated-gradient {
    background: linear-gradient(90deg,
            #6366f1,
            #8b5cf6,
            #ec4899,
            #f59e0b,
            #10b981,
            #6366f1);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-word {
    background: linear-gradient(90deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.role-prefix {
    color: var(--text-secondary);
}

/* ============================================
   Loading Screen Animation
============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.loader-logo .bracket {
    color: var(--accent-primary);
    display: inline-block;
    animation: bracketPulse 1s ease-in-out infinite;
}

.loader-logo .bracket:last-child {
    animation-delay: 0.5s;
}

@keyframes bracketPulse {

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

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    animation: loadingBar 1.5s ease-in-out infinite;
}

@keyframes loadingBar {
    0% {
        left: -100%;
    }

    50% {
        left: 0%;
    }

    100% {
        left: 100%;
    }
}

.loader-text {
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ============================================
   Scroll Progress Indicator
============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-gradient);
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ============================================
   Background Animation - Enhanced
============================================ */
/* ============================================
   Background Animation & Texture
============================================ */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-primary);
}

/* Premium Noise Texture */
.bg-animation::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Increased blur for smoother blending */
    opacity: 0.45;
    /* Slight increase for vibrancy */
    animation: float 20s ease-in-out infinite;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -200px;
    animation: morphFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -100px;
    left: -100px;
    animation: morphFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-tertiary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: morphFloat3 18s ease-in-out infinite;
}

@keyframes morphFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50%;
    }

    25% {
        transform: translate(50px, -50px) scale(1.1) rotate(90deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        transform: translate(-30px, 30px) scale(0.95) rotate(180deg);
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    75% {
        transform: translate(-50px, -30px) scale(1.05) rotate(270deg);
        border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    }
}

@keyframes morphFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        border-radius: 50%;
    }

    33% {
        transform: translate(70px, -40px) scale(1.15);
        border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    }

    66% {
        transform: translate(-40px, 50px) scale(0.9);
        border-radius: 40% 60% 30% 70% / 70% 40% 60% 30%;
    }
}

@keyframes morphFloat3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        border-radius: 50%;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
    }
}

/* Particle Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   Navigation - Enhanced
============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-medium);
    transform: translateY(0);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition-fast);
    position: relative;
}

.nav-logo:hover {
    color: var(--accent-primary);
}

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

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

.logo-bracket {
    color: var(--accent-primary);
    transition: var(--transition-bounce);
}

.nav-logo:hover .logo-bracket {
    display: inline-block;
    animation: bracketBounce 0.5s ease;
}

@keyframes bracketBounce {

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

    50% {
        transform: translateX(3px);
    }
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: all var(--transition-medium);
    transform: translateX(-50%);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

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

.nav-github {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.nav-github::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.nav-github:hover {
    transform: translateY(-3px) rotate(360deg);
    color: white;
    box-shadow: var(--shadow-glow);
}

.nav-github:hover::before {
    opacity: 1;
}

.nav-github svg {
    position: relative;
    z-index: 1;
}

/* ============================================
   Hero Section - Enhanced
============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 24px 60px;
    position: relative;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    opacity: 0;
    animation: slideInLeft 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wave {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50%,
    70% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }

    80% {
        transform: rotate(-4deg);
    }
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.name-gradient {
    background: var(--accent-gradient-animated);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    position: relative;
    display: inline-block;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Glitch effect on hover */
.name-gradient:hover {
    animation: glitch 0.3s ease forwards, gradientShift 5s ease infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons - Enhanced with magnetic effect */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-medium);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300%;
    height: 300%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-intense);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
    border-color: var(--accent-secondary);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* Button icon animation */
.btn svg {
    transition: transform var(--transition-medium);
}

.btn:hover svg {
    transform: translateX(5px);
}

/* Code Window - Enhanced */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: slideInRight 1s ease forwards;
    animation-delay: 0.7s;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.code-window {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 450px;
    animation: float-gentle 6s ease-in-out infinite;
    transition: all var(--transition-medium);
    position: relative;
}

.code-window::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: calc(var(--border-radius) + 2px);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-medium);
}

.code-window:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-glow-intense);
}

.code-window:hover::before {
    opacity: 0.5;
}

@keyframes float-gentle {

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

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

.window-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform var(--transition-bounce);
}

.code-window:hover .dot {
    animation: dotBounce 0.5s ease;
}

.code-window:hover .dot:nth-child(1) {
    animation-delay: 0s;
}

.code-window:hover .dot:nth-child(2) {
    animation-delay: 0.1s;
}

.code-window:hover .dot:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes dotBounce {

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

    50% {
        transform: scale(1.3);
    }
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27ca40;
}

.window-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.window-content {
    padding: 24px;
}

.window-content pre {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
}

.window-content .keyword {
    color: #c678dd;
}

.window-content .variable {
    color: #e5c07b;
}

.window-content .property {
    color: #e06c75;
}

.window-content .string {
    color: #98c379;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.5s;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 1;
    }

    50% {
        transform: rotate(45deg) translate(5px, 5px);
        opacity: 0.5;
    }
}

/* ============================================
   Section Styles - Enhanced
============================================ */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(30px);
}

.section-title.visible {
    animation: revealUp 0.8s ease forwards;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-number {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-primary);
    font-weight: 500;
    position: relative;
}

.title-number::after {
    content: '';
    display: inline-block;
    width: 50px;
    height: 1px;
    background: var(--accent-primary);
    margin-left: 15px;
    vertical-align: middle;
    opacity: 0.5;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

/* ============================================
   About Section - Enhanced
============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateX(-30px);
}

.about-text.visible {
    animation: slideInLeft 0.8s ease forwards;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.skill-category h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent-primary);
}

.skill-list li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.skill-list li:hover {
    color: var(--text-primary);
    transform: translateX(10px);
}

.skill-icon {
    color: var(--accent-primary);
    transition: transform var(--transition-fast);
}

.skill-list li:hover .skill-icon {
    transform: scale(1.2);
}

.about-visual {
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateX(30px);
}

.about-visual.visible {
    animation: slideInRight 0.8s ease forwards;
}

.profile-frame {
    position: relative;
    width: 300px;
    height: 300px;
    cursor: pointer;
}

.profile-glow {
    position: absolute;
    inset: -20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    animation: pulseGlow 4s ease-in-out infinite;
    transition: all var(--transition-medium);
}

.profile-frame:hover .profile-glow {
    opacity: 0.7;
    filter: blur(50px);
    inset: -30px;
}

@keyframes pulseGlow {

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

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.profile-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 50%;
    border: 3px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
    overflow: hidden;
}

.profile-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.profile-frame:hover .profile-placeholder {
    border-color: var(--accent-primary);
    transform: scale(1.05) rotate(5deg);
}

.profile-frame:hover .profile-placeholder::before {
    opacity: 0.1;
}

.initials {
    font-size: 4rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    transition: transform var(--transition-bounce);
}

.profile-frame:hover .initials {
    transform: scale(1.1);
}

/* ============================================
   3D Animated Avatar Cube
============================================ */
.avatar-3d-container {
    perspective: 1000px;
    width: 220px;
    height: 220px;
    position: relative;
    margin: 0 auto;
}

.avatar-cube {
    width: 150px;
    height: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(-15deg) rotateY(25deg);
    animation: cubeRotate 12s ease-in-out infinite;
}

@keyframes cubeRotate {

    0%,
    100% {
        transform: translate(-50%, -50%) rotateX(-15deg) rotateY(25deg);
    }

    25% {
        transform: translate(-50%, -50%) rotateX(15deg) rotateY(115deg);
    }

    50% {
        transform: translate(-50%, -50%) rotateX(-10deg) rotateY(205deg);
    }

    75% {
        transform: translate(-50%, -50%) rotateX(20deg) rotateY(295deg);
    }
}

.cube-face {
    position: absolute;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 30px rgba(99, 102, 241, 0.1);
}

.cube-face.front {
    transform: translateZ(75px);
}

.cube-face.back {
    transform: translateZ(-75px) rotateY(180deg);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(75px);
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(75px);
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(75px);
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(75px);
}

.face-initials {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.face-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    filter: blur(30px);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.avatar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 190px;
    height: 190px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: ringRotate 8s linear infinite;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-primary);
}

@keyframes ringRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ============================================
   Projects Section - Enhanced
============================================ */
.projects {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-medium);
    opacity: 0;
    transform: translateY(50px);
    position: relative;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.project-card.visible {
    animation: cardReveal 0.8s ease forwards;
}

.project-card:nth-child(1).visible {
    animation-delay: 0s;
}

.project-card:nth-child(2).visible {
    animation-delay: 0.15s;
}

.project-card:nth-child(3).visible {
    animation-delay: 0.3s;
}

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Border Glow */
.project-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--accent-gradient);
    border-radius: var(--border-radius);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-medium);
}

/* Spotlight Sheen */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 2;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: transparent;
    box-shadow: var(--shadow-glow-intense);
}

.project-card:hover::before {
    opacity: 0.3;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-primary));
    overflow: hidden;
}

.project-card.featured .project-image {
    aspect-ratio: auto;
    min-height: 300px;
}

.game-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-icon {
    font-size: 5rem;
    animation: float-gentle 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: all var(--transition-medium);
}

.project-card:hover .game-icon {
    transform: scale(1.2) rotate(10deg);
}

.game-particles span {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

.game-particles span:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.game-particles span:nth-child(2) {
    top: 30%;
    right: 25%;
    animation-delay: 0.5s;
}

.game-particles span:nth-child(3) {
    bottom: 25%;
    left: 30%;
    animation-delay: 1s;
}

.game-particles span:nth-child(4) {
    bottom: 20%;
    right: 20%;
    animation-delay: 1.5s;
}

.game-particles span:nth-child(5) {
    top: 50%;
    left: 15%;
    animation-delay: 2s;
}

.game-particles span:nth-child(6) {
    top: 40%;
    right: 15%;
    animation-delay: 2.5s;
}

@keyframes particleFloat {

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

    50% {
        transform: scale(1.5) translateY(-10px);
        opacity: 1;
    }
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-medium);
    backdrop-filter: blur(5px);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.play-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
    padding: 20px 40px;
    background: var(--accent-gradient);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: all var(--transition-bounce);
    transform: translateY(20px);
}

.project-card:hover .play-button {
    transform: translateY(0);
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow-intense);
}

.project-info {
    padding: 30px;
}

.project-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 12px;
    display: block;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    transition: color var(--transition-fast);
}

.project-card:hover .project-title {
    color: var(--accent-tertiary);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech li {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-tertiary);
    background: rgba(99, 102, 241, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    transition: all var(--transition-fast);
}

.project-tech li:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 16px;
}

.project-link {
    color: var(--text-secondary);
    transition: all var(--transition-bounce);
    padding: 8px;
    border-radius: 50%;
    background: transparent;
}

.project-link:hover {
    color: var(--accent-primary);
    transform: translateY(-5px) rotate(360deg);
    background: rgba(99, 102, 241, 0.1);
}

/* Coming Soon Card */
.project-card.coming-soon {
    opacity: 0.6;
}

.project-card.coming-soon:hover {
    opacity: 0.8;
}

.coming-soon-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-muted);
}

.plus-icon {
    font-size: 3rem;
    font-weight: 300;
    animation: pulsePlus 2s ease-in-out infinite;
}

@keyframes pulsePlus {

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

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.coming-text {
    font-size: 0.9rem;
}

/* ============================================
   Contact Section - Enhanced
============================================ */
.contact {
    text-align: center;
    padding: 150px 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
}

.contact-content.visible {
    animation: revealUp 0.8s ease forwards;
}

.contact-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-fast);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* ============================================
   Footer - Enhanced
============================================ */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: var(--accent-gradient);
}

.footer-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-text .highlight {
    color: var(--accent-primary);
    position: relative;
}

.footer-text .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

.footer-text:hover .highlight::after {
    transform: scaleX(1);
}

.footer-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Mobile Navigation Menu
============================================ */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-medium);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

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

.mobile-nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 30px;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 15px 30px;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

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

.mobile-nav-links a:hover::after,
.mobile-nav-links a:active::after {
    width: 50%;
}

.mobile-nav-links a:active {
    color: var(--accent-primary);
    transform: scale(0.98);
}

/* ============================================
   Responsive Design
============================================ */

@media (hover: none) and (pointer: coarse) {

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.97);
        opacity: 0.9;
    }

    .project-card:hover {
        transform: none;
    }

    .project-card:active {
        transform: scale(0.99);
    }

    .project-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.5);
    }

    .play-button {
        transform: translateY(0);
    }

    .social-link:hover {
        transform: none;
    }

    .social-link:active {
        transform: scale(0.95);
    }

    .nav-link {
        padding: 12px 16px;
    }

    .project-link {
        padding: 12px;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .hero-description {
        margin: 0 auto 40px;
    }

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

    .hero-visual {
        order: -1;
    }

    .code-window {
        max-width: 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual {
        order: -1;
    }

    .project-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .mobile-nav-overlay,
    .mobile-nav-links {
        display: flex;
    }

    .hero {
        padding: 120px 24px 60px;
        min-height: calc(100vh - env(safe-area-inset-bottom));
    }

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

    .profile-frame {
        width: 200px;
        height: 200px;
    }

    .initials {
        font-size: 3rem;
    }

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

    .section-title {
        flex-wrap: wrap;
        gap: 8px;
    }

    body {
        -webkit-overflow-scrolling: touch;
    }

    .gradient-orb {
        animation: none;
    }

    .code-window {
        animation: none;
    }

    .scroll-indicator {
        display: none;
    }

    .btn {
        padding: 16px 32px;
        font-size: 1rem;
        min-height: 52px;
    }

    .play-button {
        padding: 24px 48px;
        font-size: 1.1rem;
    }

    .social-link {
        width: 56px;
        height: 56px;
    }

    .social-links {
        gap: 16px;
    }

    .project-info {
        padding: 24px;
    }

    .project-tech {
        gap: 8px;
    }

    .project-tech li {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .contact {
        padding: 100px 0;
    }

    .contact-text {
        font-size: 1rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }

    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 16px 40px;
    }

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

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

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

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

    .code-window {
        margin: 0 -8px;
        border-radius: 12px;
    }

    .window-content {
        padding: 16px;
        overflow-x: auto;
    }

    .window-content pre {
        font-size: 0.7rem;
        white-space: pre-wrap;
        word-break: break-word;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .profile-frame {
        width: 160px;
        height: 160px;
    }

    .initials {
        font-size: 2.5rem;
    }

    .game-icon {
        font-size: 4rem;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .footer {
        padding: 30px 0;
    }

    .footer-text {
        font-size: 0.85rem;
    }
}

@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    .hero {
        padding-bottom: max(60px, env(safe-area-inset-bottom));
    }

    .footer {
        padding-bottom: max(40px, env(safe-area-inset-bottom));
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 24px 40px;
    }

    .scroll-indicator {
        display: none;
    }

    .section-padding {
        padding: 60px 0;
    }
}

@media (prefers-reduced-motion: reduce) {

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

    html {
        scroll-behavior: auto;
    }
}

@media (prefers-contrast: high) {
    :root {
        --bg-card: rgba(0, 0, 0, 0.9);
        --text-secondary: #d0d0e0;
        --text-muted: #a0a0b0;
    }

    .project-card,
    .code-window {
        border-width: 2px;
    }
}

/* ============================================
   Custom Cursor (Desktop only)
============================================ */
@media (hover: hover) and (pointer: fine) {
    .custom-cursor {
        width: 20px;
        height: 20px;
        border: 2px solid var(--accent-primary);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 99999;
        transition: transform 0.15s ease, background 0.15s ease;
        transform: translate(-50%, -50%);
    }

    .custom-cursor.hover {
        transform: translate(-50%, -50%) scale(1.5);
        background: rgba(99, 102, 241, 0.2);
    }

    .custom-cursor.click {
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* ============================================
   Text Selection Styling
============================================ */
::selection {
    background: var(--accent-primary);
    color: white;
}

::-moz-selection {
    background: var(--accent-primary);
    color: white;
}

}

/* End of styles */
/* ============================================
   Accessibility Improvements
============================================ */

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 12px 24px;
    background: var(--accent-primary);
    color: white;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Reduced motion preferences */
@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;
    }
    
    .gradient-orb,
    .custom-cursor,
    .loader-bar {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #d0d0e0;
        --text-muted: #a0a0b0;
        --border-radius: 4px;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

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