/* ========================================
   Modern Portfolio - CSS Styles
   With ReactBits-inspired Animations
   ======================================== */

/* ===== CSS Variables ===== */
:root {
    /* Colors - Dark Theme (Default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-glass: rgba(18, 18, 26, 0.8);
    --bg-glass-hover: rgba(26, 26, 37, 0.9);
    
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent-primary: #64ffda;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #64ffda 0%, #7c3aed 100%);
    
    --border-color: rgba(100, 255, 218, 0.1);
    --border-hover: rgba(100, 255, 218, 0.3);
    
    --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(100, 255, 218, 0.15);
    
    /* Typography */
    --font-sans: 'Inter', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --text-xs: clamp(0.7rem, 1.5vw, 0.75rem);
    --text-sm: clamp(0.8rem, 1.8vw, 0.875rem);
    --text-base: clamp(0.9rem, 2vw, 1rem);
    --text-lg: clamp(1rem, 2.2vw, 1.125rem);
    --text-xl: clamp(1.1rem, 2.5vw, 1.25rem);
    --text-2xl: clamp(1.4rem, 3vw, 1.5rem);
    --text-3xl: clamp(1.8rem, 4vw, 2rem);
    --text-4xl: clamp(2.2rem, 5vw, 2.5rem);
    --text-5xl: clamp(2.8rem, 6vw, 3.5rem);
    --text-6xl: clamp(3.5rem, 8vw, 4.5rem);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Layout */
    --nav-height: 80px;
    --sidebar-width: 40px;
    --container-max: 1200px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Light Theme */
body.light-theme {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f4f4f5;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-hover: rgba(244, 244, 245, 0.95);
    
    --text-primary: #18181b;
    --text-secondary: #3f3f46;
    --text-muted: #71717a;
    
    --accent-primary: #0ea5e9;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
    
    --border-color: rgba(14, 165, 233, 0.15);
    --border-hover: rgba(14, 165, 233, 0.4);
    
    --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.12);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

body.no-scroll {
    overflow: hidden;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* ===== Loader Screen ===== */
.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.loader-logo {
    width: 80px;
    height: 80px;
    animation: loaderPulse 2s ease-in-out infinite;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.logo-hex {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawHex 2s ease forwards;
}

.logo-letter {
    fill: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 40px;
    font-weight: 700;
    opacity: 0;
    animation: fadeInLetter 0.5s ease 1s forwards;
}

.loader-text {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    color: var(--accent-primary);
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-full);
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0;
    background: var(--accent-gradient);
    animation: loadProgress 2s ease forwards;
}

@keyframes drawHex {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeInLetter {
    to { opacity: 1; }
}

@keyframes loadProgress {
    to { width: 100%; }
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Remove underline from all links */
a {
    text-decoration: none;
}

a:hover,
a:focus,
a:active {
    text-decoration: none;
}

/* ===== Galaxy Background ===== */
.galaxy-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.galaxy-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(100, 255, 218, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(100, 255, 218, 0.02) 0%, transparent 70%);
    animation: galaxyRotate 120s linear infinite;
}

@keyframes galaxyRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

body.light-theme .galaxy-bg::before {
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

/* ===== Blob Cursor ===== */
.blob-cursor {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    filter: blur(40px);
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: transform 0.05s ease-out, width 0.2s ease, height 0.2s ease;
    mix-blend-mode: difference;
}

.cursor-dot.expanded {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--accent-primary);
}

body.light-theme .blob-cursor {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
    .blob-cursor, .cursor-dot {
        display: none;
    }
}

/* ===== Glass Surface ===== */
.glass-surface {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.glass-surface:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
}

/* ===== Navigation ===== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none;
    transition: all var(--transition-base);
}

.glass-nav.scrolled {
    height: 64px;
    box-shadow: var(--shadow-md);
}

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

/* Logo */
.nav-logo {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--accent-primary);
    border: none;
    border-radius: 0;
    transition: all var(--transition-base);
    position: relative;
    overflow: visible;
    padding: 0 8px;
}



.logo-link {
    text-decoration: none;
}

/* Pill Navigation */
.pill-nav {
    position: relative;
    display: flex;
    align-items: center;
}

.pill-indicator {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius-full);
    transition: all var(--transition-base);
}

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

.nav-link.active {
    color: var(--accent-primary);
    background: none;
}

.nav-num {
    color: var(--accent-primary);
    font-size: var(--text-xs);
}

.nav-link.active .nav-num {
    color: inherit;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform var(--transition-base);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.dropdown-item:hover {
    background: var(--border-color);
    color: var(--accent-primary);
}

.dropdown-item.active {
    background: rgba(100, 255, 218, 0.15);
    color: var(--accent-primary);
    border: 1px solid var(--border-hover);
    pointer-events: none;
}

.dropdown-item.active i {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.dropdown-item i {
    font-size: var(--text-lg);
    color: var(--accent-primary);
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
}

.dropdown-item-title {
    font-weight: 500;
    font-size: var(--text-sm);
}

.dropdown-item-desc {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cta-btn-nav {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--accent-primary);
    text-decoration: none;
    border: 1px solid var(--accent-primary);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.cta-btn-nav:hover {
    background: rgba(100, 255, 218, 0.1);
    box-shadow: var(--shadow-glow);
}

/* Theme Toggle - iOS style */
.theme-toggle {
    width: 64px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-base);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

.toggle-track {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: background var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-base);
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f7fafc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
    transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
}

.theme-toggle:hover .toggle-track {
    box-shadow: inset 0 0 0 1px rgba(100, 255, 218, 0.35);
}

.theme-toggle:hover .toggle-thumb {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.36);
    filter: brightness(1.02);
}

body.light-theme .toggle-track {
    background: linear-gradient(120deg, rgba(52, 211, 153, 0.78) 0%, rgba(34, 211, 238, 0.78) 100%);
}

body.light-theme .toggle-thumb {
    transform: translateX(28px);
    background: #ffffff;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger .line {
    width: 24px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(75vw, 400px);
    height: 100vh;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    z-index: 999;
    transition: right var(--transition-slow);
}

.mobile-menu.open {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-link {
    display: block;
    padding: var(--space-md);
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.mobile-link span {
    color: var(--accent-primary);
    margin-right: var(--space-sm);
}

.mobile-link:hover {
    background: var(--border-color);
    color: var(--accent-primary);
    transform: translateX(10px);
}

.mobile-dropdown {
    padding: var(--space-md);
}

.mobile-dropdown-title {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.mobile-dropdown-title span {
    color: var(--accent-primary);
    margin-right: var(--space-sm);
}

.mobile-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding-left: var(--space-lg);
}

.mobile-dropdown-content a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.mobile-dropdown-content a:hover {
    color: var(--accent-primary);
    background: var(--border-color);
}

.mobile-dropdown-content a.active {
    background: rgba(100, 255, 218, 0.15);
    color: var(--accent-primary);
    border: 1px solid var(--border-hover);
    font-weight: 600;
}

.mobile-cta {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-mono);
    font-size: var(--text-base);
    color: var(--accent-primary);
    text-decoration: none;
    border: 1px solid var(--accent-primary);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-base);
}

.mobile-cta:hover {
    background: rgba(100, 255, 218, 0.1);
}

/* Mobile Menu Overlay */
.mobile-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: -1;
}

.mobile-menu.open::before {
    opacity: 1;
    visibility: visible;
}

/* ===== Sidebars ===== */
.social-sidebar,
.email-sidebar {
    position: fixed;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.social-sidebar {
    left: 40px;
}

.email-sidebar {
    right: 40px;
}

.social-icons {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    font-size: var(--text-xl);
    transition: all var(--transition-base);
}

.social-icons a:hover {
    color: var(--accent-primary);
    transform: translateY(-5px);
}

.email-link {
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: all var(--transition-base);
}

.email-link:hover {
    color: var(--accent-primary);
    transform: translateY(-5px);
}

.sidebar-line {
    width: 1px;
    height: 100px;
    background: var(--text-muted);
    margin-top: var(--space-lg);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
}

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

.hero-intro {
    margin-bottom: var(--space-lg);
}

.typing-text {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    color: var(--accent-primary);
    position: relative;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

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

/* True Focus Animation */
.hero-name {
    font-size: var(--text-5xl);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.true-focus .char {
    display: inline-block;
    opacity: 0.3;
    filter: blur(4px);
    transition: all 0.3s ease;
}

.true-focus .char.focused {
    opacity: 1;
    filter: blur(0);
    color: var(--accent-primary);
}

.true-focus .char.space {
    width: 0.3em;
}

.hero-tagline {
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.1;
    margin-bottom: var(--space-xl);
}

.hero-description {
    max-width: 540px;
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.hero-cta {
    display: inline-flex;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-2xl);
    font-family: var(--font-mono);
    font-size: var(--text-base);
    color: var(--accent-primary);
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--accent-primary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.1;
    transition: left var(--transition-base);
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.cta-button i {
    transition: transform var(--transition-base);
}

.cta-button:hover i {
    transform: translateX(5px);
}

.cta-button.large {
    padding: var(--space-xl) var(--space-3xl);
    font-size: var(--text-lg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0.7;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

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

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== Sections ===== */
.section {
    padding: var(--space-4xl) var(--space-xl);
    max-width: var(--container-max);
    margin: 0 auto;
    scroll-margin-top: var(--nav-height);
}

.container {
    width: 100%;
}

/* Section Title */
.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    font-size: var(--text-3xl);
    font-weight: 700;
}

.section-title.centered {
    justify-content: center;
    text-align: center;
}

.title-num {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--accent-primary);
}

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

.title-line {
    flex: 1;
    max-width: 300px;
    height: 1px;
    background: var(--border-color);
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--space-3xl);
    align-items: start;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    list-style: none;
    margin-top: var(--space-xl);
}

.skill-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.skill-item:hover {
    background: var(--border-color);
    color: var(--accent-primary);
    transform: translateX(5px);
}

.skill-arrow {
    color: var(--accent-primary);
}

/* Profile Card */
.about-image-wrapper {
    display: flex;
    justify-content: center;
}

.profile-card {
    position: relative;
    width: 280px;
    height: 320px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.profile-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all var(--transition-base);
}

.profile-card:hover .profile-image {
    filter: grayscale(0%);
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.3;
    mix-blend-mode: multiply;
    transition: opacity var(--transition-base);
}

.profile-card:hover .profile-overlay {
    opacity: 0;
}

.profile-border {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    transition: all var(--transition-base);
}

.profile-card:hover .profile-border {
    top: 10px;
    left: 10px;
}

/* ===== Experience Section ===== */
.stepper-container {
    margin-bottom: var(--space-2xl);
    overflow-x: auto;
    padding-bottom: var(--space-md);
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    min-width: max-content;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-base);
}

.stepper-item:hover,
.stepper-item.active {
    border-color: var(--accent-primary);
    background: rgba(100, 255, 218, 0.05);
}

.stepper-item.active {
    box-shadow: var(--shadow-glow);
}

.stepper-number {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--accent-primary);
}

.stepper-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    white-space: nowrap;
}

.stepper-line {
    width: 60px;
    height: 2px;
    background: var(--border-color);
    transition: background var(--transition-base);
}

/* Scroll Stack */
.scroll-stack {
    position: relative;
}

.stack-card {
    padding: var(--space-2xl);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--space-lg);
    display: none;
    animation: fadeInUp 0.5s ease;
}

.stack-card.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    margin-bottom: var(--space-xl);
}

.card-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.company-name {
    color: var(--accent-primary);
}

.card-date {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.card-list li {
    display: flex;
    gap: var(--space-md);
    color: var(--text-secondary);
    line-height: 1.6;
}

.list-arrow {
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* ===== Services / Bento Grid ===== */
.magic-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: var(--space-lg);
}

.bento-card {
    position: relative;
    padding: var(--space-2xl);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
    pointer-events: none;
}

.bento-large {
    grid-column: span 7;
    grid-row: span 2;
}

.bento-medium {
    grid-column: span 5;
}

.bento-small {
    grid-column: span 5;
}

.bento-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: 0;
    transition: all var(--transition-slow);
}

.bento-card:hover .bento-bg-image {
    opacity: 0.25;
    transform: scale(1.05);
}

.bento-icon {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-lg);
}

.bento-icon i {
    font-size: var(--text-2xl);
    color: var(--bg-primary);
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
    display: block;
}

.bento-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.bento-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.bento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    list-style: none;
    margin-bottom: var(--space-lg);
}

.bento-tags li {
    padding: var(--space-xs) var(--space-md);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent-primary);
    background: rgba(100, 255, 218, 0.1);
    border-radius: var(--border-radius-full);
}

.bento-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: var(--space-md);
    margin-top: auto;
}

.bento-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--accent-primary);
    text-decoration: none;
    border: 1px solid var(--accent-primary);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.bento-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.bento-btn.secondary {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.bento-btn.secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: transparent;
}

/* ===== Contact Section ===== */
.contact {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-xl);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-heading {
    font-size: var(--text-5xl);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
}

.contact-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: var(--space-2xl);
}

/* ===== Footer ===== */
.footer {
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-lg);
}

.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    font-size: var(--text-xl);
    transition: all var(--transition-base);
}

.footer-icon:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

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

.footer-credit {
    margin-bottom: var(--space-xs);
}

.footer-credit .highlight {
    color: var(--accent-primary);
}

/* ===== Glare Hover Effect ===== */
.glare-hover {
    position: relative;
    overflow: hidden;
}

.glare-hover::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.glare-hover:hover::after {
    transform: rotate(45deg) translateY(100%);
}

/* ===== Spotlight Card ===== */
.spotlight-card {
    position: relative;
    overflow: hidden;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 0;
}

.spotlight-card:hover::before {
    opacity: 1;
}

/* ===== Star Border ===== */
.star-border {
    position: relative;
}

.star-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--accent-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.star-border:hover::before {
    opacity: 1;
}

@keyframes starRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Blur Text Animation ===== */
.blur-text {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.blur-text.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* ===== Decrypted Text ===== */
.decrypted-text {
    font-family: var(--font-mono);
}

/* ===== Grid Scan ===== */
.grid-scan {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    background: 
        linear-gradient(90deg, transparent 49%, var(--accent-primary) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, var(--accent-primary) 50%, transparent 51%);
    background-size: 50px 50px;
    transition: opacity 0.3s ease;
}

.grid-scan.active {
    opacity: 0.03;
    animation: gridScan 0.5s ease-out;
}

@keyframes gridScan {
    from {
        background-position: 0 0;
        opacity: 0.1;
    }
    to {
        background-position: 50px 50px;
        opacity: 0;
    }
}

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

/* Large Screens (2K, 4K, Ultrawide) */
@media (min-width: 1920px) {
    :root {
        font-size: 18px;
    }
    
    .nav-container,
    .section,
    .hero {
        max-width: 1400px;
    }
    
    .social-sidebar {
        left: 60px;
    }
    
    .email-sidebar {
        right: 60px;
    }
}

@media (min-width: 2560px) {
    :root {
        font-size: 20px;
    }
    
    .nav-container,
    .section,
    .hero {
        max-width: 1600px;
    }
    
    .social-sidebar {
        left: 80px;
    }
    
    .email-sidebar {
        right: 80px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .pill-nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-image-wrapper {
        order: -1;
    }
    
    .magic-bento {
        grid-template-columns: 1fr;
    }
    
    .bento-large,
    .bento-medium,
    .bento-small {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .social-sidebar,
    .email-sidebar {
        display: none;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }
    
    .nav-container {
        padding: 0 var(--space-md);
    }
    
    .nav-actions {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
    }

    /* Hide urgent CTA on mobile to keep space for toggle */
    .cta-btn-nav {
        display: none;
    }
    
    .hero {
        padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-md) var(--space-2xl);
    }
    
    .hero-name {
        font-size: var(--text-4xl);
    }
    
    .hero-tagline {
        font-size: var(--text-3xl);
    }
    
    .section {
        padding: var(--space-3xl) var(--space-md);
    }
    
    .section-title {
        flex-wrap: wrap;
    }
    
    .title-line {
        display: none;
    }
    
    .stepper {
        justify-content: flex-start;
    }
    
    .stepper-item {
        padding: var(--space-sm) var(--space-md);
    }
    
    .stepper-label {
        font-size: var(--text-xs);
    }
    
    .stepper-line {
        width: 30px;
    }
    
    .stack-card {
        padding: var(--space-lg);
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-heading {
        font-size: var(--text-4xl);
    }
    
    .cta-button.large {
        padding: var(--space-lg) var(--space-xl);
        font-size: var(--text-base);
    }
    
    .footer-social {
        gap: var(--space-md);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-name {
        font-size: var(--text-3xl);
    }
    
    .hero-tagline {
        font-size: var(--text-2xl);
    }
    
    .bento-card {
        padding: var(--space-lg);
    }
    
    .bento-title {
        font-size: var(--text-xl);
    }
    
    .contact-heading {
        font-size: var(--text-3xl);
    }
    
    .mobile-menu {
        width: 100vw;
    }
}

/* Reduce Motion */
@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;
    }
    
    .blur-text {
        opacity: 1;
        filter: none;
        transform: none;
    }
    
    .true-focus .char {
        opacity: 1;
        filter: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: var(--accent-primary);
        --text-secondary: var(--text-primary);
    }
}

/* Print Styles */
@media print {
    .glass-nav,
    .mobile-menu,
    .social-sidebar,
    .email-sidebar,
    .blob-cursor,
    .cursor-dot,
    .galaxy-bg,
    #pixel-trail,
    .loader-screen,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
