/* ===================================
   Satyam Bhaii Portfolio - Premium Styles
   Dark Mode | Neon-Indigo | Glassmorphism
   Mobile-First Responsive Design
   =================================== */

/* CSS Variables - Premium Dark Theme */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f16;
    --bg-tertiary: #15151f;
    --bg-card: #12121a;
    
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #a78bfa;
    --accent-glow: rgba(99, 102, 241, 0.5);
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --accent-glow-gradient: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    
    --saffron-primary: #ff9500;
    --saffron-secondary: #ffb347;
    --saffron-glow: rgba(255, 149, 0, 0.4);
    --saffron-gradient: linear-gradient(135deg, #ff9500 0%, #ffb347 100%);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(99, 102, 241, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-shadow-hover: 0 12px 48px rgba(99, 102, 241, 0.2);
    
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    scroll-behavior: auto;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    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;
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Premium Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-base);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-2px);
}

/* Premium Gradient Text */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glowing Text Effect */
.glow-text {
    color: var(--accent-primary);
    text-shadow: 
        0 0 20px var(--accent-glow),
        0 0 40px var(--accent-glow),
        0 0 60px var(--accent-glow);
}

/* Premium Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

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

/* ===================================
   Navigation - Premium
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    padding: var(--space-sm) 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform var(--transition-bounce);
}

.nav-logo:hover {
    transform: scale(1.02);
}

.logo-bracket {
    color: var(--text-muted);
}

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

.logo-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: none;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    padding: var(--space-sm) 0;
}

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

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

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

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

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

/* Mobile Nav Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

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

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

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

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
}

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

/* Desktop Navigation */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .mobile-nav {
        display: none;
    }
}

/* ===================================
   Hero Section - Premium
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3xl) 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(99, 102, 241, 0.12) 0%, transparent 50%);
    transform: translateX(-50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.03) 0%, transparent 30%);
    animation: heroBgFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroBgFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, -2%); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    position: relative;
    z-index: 1;
}

/* Premium Terminal Card */
.terminal-card {
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    background: rgba(15, 15, 22, 0.8);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
}

.terminal-buttons {
    display: flex;
    gap: var(--space-sm);
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.terminal-btn:hover {
    transform: scale(1.1);
}

.terminal-btn.red { background: #ff5f56; }
.terminal-btn.yellow { background: #ffbd2e; }
.terminal-btn.green { background: #27ca40; }

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

.terminal-body {
    padding: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.terminal-prompt {
    color: var(--accent-primary);
}

.terminal-command {
    color: var(--text-secondary);
}

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

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

.terminal-output {
    color: var(--text-primary);
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.output-name {
    color: var(--accent-tertiary);
}

.output-alias {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Hero Content */
.hero-content {
    text-align: left;
}

.hero-subtitle {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero-title-sub {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

/* Magnetic Button Effect */
.magnetic-btn {
    position: relative;
    transition: transform var(--transition-fast);
}

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

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

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

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

@keyframes scroll {
    0%, 100% { opacity: 1; top: 6px; }
    50% { opacity: 0.5; top: 14px; }
}

/* Desktop Hero Layout */
@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .terminal-card {
        order: 2;
    }
    
    .hero-content {
        order: 1;
        flex: 1;
    }
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: var(--space-2xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.title-number {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 1rem;
}

/* ===================================
   Cursor Glow Effect - Premium
   =================================== */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    will-change: left, top;
    contain: strict;
    mix-blend-mode: screen;
}

.cursor-glow.active {
    opacity: 0.4;
}

/* ===================================
   Container
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

.cursor-glow.active {
    opacity: 0.4;
}

/* ===================================
   Container
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
    outline: 2px solid white;
    outline-offset: 2px;
}

/* ===================================
   Sections - Premium
   =================================== */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: var(--space-2xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.title-number {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 1rem;
}

/* ===================================
   About Section - Premium
   =================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.about-content {
    padding: var(--space-xl);
    background: var(--bg-card);
}

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

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    color: var(--text-primary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.stat-card {
    padding: var(--space-xl);
    text-align: center;
    background: var(--bg-card);
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-hover);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

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

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* ===================================
   Bento Grid - Skills Section - Premium
   =================================== */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.bento-card {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    background: var(--bg-card);
    transition: all var(--transition-base);
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-hover);
}

.bento-card.featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.bento-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
}

.bento-icon svg {
    width: 24px;
    height: 24px;
}

.bento-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.bento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: auto;
}

.tag {
    padding: var(--space-xs) var(--space-sm);
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive Bento Grid - Mobile First */
@media (min-width: 640px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-large {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .bento-medium {
        grid-column: span 2;
    }
    
    .bento-small {
        grid-column: span 1;
    }
}

/* ===================================
   Projects Section - Premium
   =================================== */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.project-card {
    overflow: hidden;
    background: var(--bg-card);
    transition: all var(--transition-base);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glass-shadow-hover);
}

.project-image {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-placeholder {
    width: 80px;
    height: 80px;
    color: var(--accent-primary);
    opacity: 0.5;
    position: relative;
    z-index: 1;
}

.project-placeholder svg {
    width: 100%;
    height: 100%;
}

.project-content {
    padding: var(--space-xl);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.project-links {
    display: flex;
    gap: var(--space-md);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
}

.project-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.project-link svg {
    width: 18px;
    height: 18px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.project-links {
    display: flex;
    gap: var(--space-md);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-fast);
}

.project-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.project-link svg {
    width: 18px;
    height: 18px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   Contact Section - Premium
   =================================== */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    padding: var(--space-2xl);
    background: var(--bg-card);
}

.contact-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.contact-text p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    transition: all var(--transition-base);
}

.contact-link:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-hover);
}

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

/* ===================================
   Footer - Premium
   =================================== */
.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.footer-location {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.location-icon {
    font-size: 1.2rem;
}

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

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

.footer-year {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    color: var(--text-muted);
    transition: all var(--transition-fast);
    padding: var(--space-sm);
}

.footer-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.footer-links svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ===================================
   Utility Classes
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

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

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

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

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

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

/* ===================================
   Focus States - Enhanced Accessibility
   =================================== */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

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

button:focus-visible {
    outline-offset: 4px;
}

/* ===================================
   Reduced Motion Support - Accessibility
   =================================== */
@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;
    }
    
    .cursor-glow {
        display: none;
    }
    
    .hero::after {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .terminal-cursor {
        animation: none;
    }
    
    .pulse-dot {
        animation: none;
    }
}

/* ===================================
   High Contrast Mode Support
   =================================== */
@media (prefers-contrast: high) {
    :root {
        --glass-border: rgba(255, 255, 255, 0.3);
        --text-secondary: #ffffff;
    }
    
    .glass-card {
        border-width: 2px;
    }
}

/* ===================================
   Print Styles - SEO Friendly
   =================================== */
@media print {
    .navbar,
    .scroll-indicator,
    .cursor-glow,
    .identity-toggle,
    .magnetic-btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .glass-card {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    a {
        color: #0066cc;
        text-decoration: underline;
    }
    
    .gradient-text {
        background: none;
        color: #000;
        -webkit-text-fill-color: unset;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* ===================================
   Status Divider
   =================================== */
.status-divider {
    width: 1px;
    height: 30px;
    background: var(--glass-border);
}

/* ===================================
   Footer Enhancements
   =================================== */
.footer-historical {
    text-align: center;
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--glass-border);
}

.historical-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.footer-ecosystem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--glass-border);
}

.ecosystem-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ecosystem-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
}
    margin-left: var(--space-lg);
    padding-left: var(--space-lg);
    border-left: 1px solid var(--glass-border);
}

.toggle-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--accent-gradient);
    border-radius: 50%;
    transition: transform var(--transition-base);
    box-shadow: 0 2px 8px var(--accent-glow);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(20px);
    background: var(--saffron-gradient);
    box-shadow: 0 2px 8px var(--saffron-glow);
}

.toggle-switch.active {
    border-color: var(--saffron-primary);
}

/* ===================================
   Hero Enhancements
   =================================== */
.hero-title-sub {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.hero-role {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--saffron-primary);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===================================
   Live Status Card
   =================================== */
.live-status-card {
    display: inline-flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    margin-top: var(--space-xl);
    background: rgba(39, 202, 64, 0.05);
    border-color: rgba(39, 202, 64, 0.2);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #27ca40;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(39, 202, 64, 0.5);
}

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

.status-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #27ca40;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.status-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.status-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.status-divider {
    width: 1px;
    height: 30px;
    background: var(--glass-border);
}

/* ===================================
   Footer Enhancements
   =================================== */
.footer-historical {
    text-align: center;
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--glass-border);
}

.historical-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.footer-ecosystem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--glass-border);
}

.ecosystem-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ecosystem-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
}

.ecosystem-links a {
    color: var(--accent-tertiary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.ecosystem-links a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.ecosystem-links .divider {
    color: var(--text-muted);
}

.ecosystem-links .coming-soon {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

/* ===================================
   Professional Mode Styles
   =================================== */
body.professional-mode {
    --accent-primary: var(--saffron-primary);
    --accent-secondary: var(--saffron-secondary);
    --accent-glow: var(--saffron-glow);
}

body.professional-mode .gradient-text {
    background: var(--saffron-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.professional-mode .btn-primary {
    background: var(--saffron-gradient);
    box-shadow: 0 4px 20px var(--saffron-glow);
}

body.professional-mode .hero-role {
    color: var(--accent-primary);
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
    .identity-toggle {
        display: none;
    }
    
    .live-status-card {
        width: 100%;
    }
    
    .status-stats {
        justify-content: space-around;
        width: 100%;
    }
    
    .footer-historical {
        padding: var(--space-lg) var(--space-md);
    }
    
    .historical-text {
        font-size: 0.9rem;
    }
}

/* ===================================
   Jarvis Voice Indicator
   =================================== */
.jarvis-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: none;
}

.jarvis-indicator.speaking {
    animation: pulse-jarvis 1s ease-in-out infinite;
}

.jarvis-indicator svg {
    width: 24px;
    height: 24px;
    color: white;
}

@keyframes pulse-jarvis {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.8), 0 0 80px rgba(0, 255, 136, 0.4);
        transform: scale(1.1);
    }
}

.jarvis-indicator:hover {
    transform: scale(1.1);
}

/* ===================================
   Voice Control Button
   =================================== */
.voice-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--accent-glow);
    z-index: 9999;
    transition: all var(--transition-base);
}

.voice-control:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px var(--accent-glow);
}

.voice-control svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .voice-control {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}
