/* ===================================
   WEBME - Developer Portfolio
   Modern Tech/Coder Style
   =================================== */

/* CSS Variables */
:root {
    /* Primary Colors - Cyberpunk/Terminal Theme */
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --primary-glow: rgba(0, 255, 136, 0.3);
    
    /* Accent Colors */
    --accent: #00d4ff;
    --accent-purple: #a855f7;
    --accent-pink: #ff006e;
    --accent-orange: #ff9500;
    
    /* Background Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #15151f;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    
    /* Terminal Colors */
    --terminal-bg: #0d0d14;
    --terminal-header: #1a1a25;
    --terminal-green: #00ff88;
    --terminal-blue: #00d4ff;
    --terminal-yellow: #ffd700;
    --terminal-red: #ff4757;
    --terminal-purple: #a855f7;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    --gradient-glow: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
    
    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;
    
    /* Typography */
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-display: 'Orbitron', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 30px;
    animation: pulse-glow 2s ease-in-out infinite;
}

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

.preloader-logo .name {
    color: var(--text-primary);
    margin: 0 5px;
}

@keyframes pulse-glow {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }
    50% { 
        text-shadow: 0 0 40px rgba(0, 255, 136, 0.8), 0 0 60px rgba(0, 255, 136, 0.4);
    }
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: preloader-fill 2s ease-in-out forwards;
}

@keyframes preloader-fill {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.preloader-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    animation: blink-text 1s infinite;
}

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

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

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

body {
    font-family: var(--font-mono);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

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

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Title */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
}

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

/* Matrix Background */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 10px 30px;
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-brand .bracket {
    color: var(--primary);
}

.nav-brand .name {
    color: var(--text-primary);
    margin: 0 5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 0;
    position: relative;
    transition: var(--transition-fast);
}

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

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

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

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-normal);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
}

/* Terminal Window */
.terminal-window {
    background: var(--terminal-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 255, 136, 0.2);
    overflow: hidden;
    box-shadow: 
        0 0 50px rgba(0, 255, 136, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: left;
}

.terminal-window.large {
    max-width: 100%;
}

.terminal-header {
    background: var(--terminal-header);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background: #ff5f57; }
.btn-minimize { background: #febc2e; }
.btn-maximize { background: #28c840; }

.terminal-title {
    color: var(--text-muted);
    font-size: 0.85rem;
    flex: 1;
    text-align: center;
}

.terminal-body {
    padding: 25px;
    font-size: 0.95rem;
}

.line {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt {
    color: var(--terminal-green);
    font-weight: 600;
}

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

.output {
    color: var(--text-secondary);
    padding-left: 20px;
}

.output.success {
    color: var(--terminal-green);
}

/* Glitch Effect */
.glitch {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--accent);
    animation: glitch-1 0.5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
    color: var(--accent-pink);
    animation: glitch-2 0.5s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(3px, 3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(-3px, 3px); }
}

/* Typing Effect */
.typing-text {
    color: var(--terminal-yellow);
}

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

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

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
}

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

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

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

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Hero Decoration */
.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-icons {
    position: absolute;
    inset: 0;
}

.floating-icons i {
    position: absolute;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-icons i:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-icons i:nth-child(2) { top: 30%; right: 15%; animation-delay: 1s; }
.floating-icons i:nth-child(3) { top: 60%; left: 5%; animation-delay: 2s; }
.floating-icons i:nth-child(4) { top: 70%; right: 10%; animation-delay: 3s; }
.floating-icons i:nth-child(5) { bottom: 20%; left: 20%; animation-delay: 4s; }
.floating-icons i:nth-child(6) { bottom: 30%; right: 25%; animation-delay: 5s; }

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

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 10;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

/* Profile Image */
.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--primary);
}

.image-frame img {
    width: 100%;
    display: block;
    filter: grayscale(20%);
    transition: var(--transition-normal);
}

.image-frame:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* Profile Image */
.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition-normal);
    filter: grayscale(20%) contrast(1.05);
}

.image-frame:hover .profile-image {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.03);
}

.frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
}

.frame-corner.top-left { top: -5px; left: -5px; border-right: none; border-bottom: none; }
.frame-corner.top-right { top: -5px; right: -5px; border-left: none; border-bottom: none; }
.frame-corner.bottom-left { bottom: -5px; left: -5px; border-right: none; border-top: none; }
.frame-corner.bottom-right { bottom: -5px; right: -5px; border-left: none; border-top: none; }

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 255, 136, 0.1) 100%);
    pointer-events: none;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    opacity: 0.5;
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Code Block */
.code-block {
    background: var(--terminal-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 255, 136, 0.2);
    overflow: hidden;
    margin-bottom: 25px;
}

.code-header {
    background: var(--terminal-header);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.file-icon {
    color: var(--terminal-yellow);
}

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

.code-content {
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-content .key {
    color: var(--terminal-purple);
}

.code-content .string {
    color: var(--terminal-green);
}

.code-content .number {
    color: var(--terminal-yellow);
}

.about-text {
    /* Grid children default to min-width:auto, which lets the un-wrapped
       <pre> code block stretch the column and the whole page on mobile. */
    min-width: 0;
}

.about-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   SKILLS SECTION
   =================================== */
.skills {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    position: relative;
    z-index: 10;
}

/* New Skills Grid */
.skills-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card.featured {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-color: rgba(0, 255, 136, 0.2);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-card-header i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 10px;
}

.skill-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.skill-tag i {
    font-size: 0.85rem;
    color: var(--primary);
}

/* Old skill styles kept for compatibility */
.skills-terminal {
    max-width: 900px;
    margin: 0 auto;
}

.skills-body {
    display: grid;
    gap: 30px;
}

.skill-category {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-category:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding-left: 20px;
}

.skill-item {
    display: grid;
    grid-template-columns: 30px 100px 1fr;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.skill-item:hover {
    background: rgba(0, 255, 136, 0.05);
}

.skill-item i {
    font-size: 1.2rem;
    color: var(--primary);
}

.skill-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0;
    transition: width 1s ease;
}

/* ===================================
   PROJECTS SECTION
   =================================== */
.projects {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 10;
}

/* Filter Buttons */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-primary);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 136, 0.05) 0%,
        rgba(0, 212, 255, 0.05) 25%,
        rgba(168, 85, 247, 0.05) 50%,
        rgba(255, 0, 110, 0.05) 75%,
        rgba(0, 255, 136, 0.05) 100%
    );
    background-size: 400% 400%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.project-card:hover::before {
    opacity: 1;
    animation: holographic-shift 3s ease infinite;
}

.project-card > * {
    position: relative;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

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

/* Custom Project Image Backgrounds */
.project-image.gradient-1 {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
}
.project-image.gradient-2 {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d1b4e 100%);
}
.project-image.gradient-3 {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #0a2540 100%);
}

.project-image-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    text-align: center;
}

.project-image-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.8;
    transition: var(--transition-normal);
}

.project-card:hover .project-image-icon {
    transform: scale(1.2);
    opacity: 1;
}

.project-image-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
    opacity: 0.9;
    letter-spacing: 1px;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

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

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

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

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

.project-link:hover {
    background: var(--accent);
    transform: scale(1.1) !important;
}

.project-info {
    padding: 25px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-year {
    font-size: 0.8rem;
    color: var(--primary);
    padding: 3px 10px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    font-size: 0.75rem;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* View More */
.view-more {
    text-align: center;
    margin-top: 50px;
}

/* ===================================
   AWARDS SECTION
   =================================== */
.awards {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    position: relative;
    z-index: 10;
}

/* After the Experience/Projects/Skills reorder, Awards & Education sits
   between two sections that both use --bg-primary, so give it the secondary
   background to keep the page's alternating light/dark rhythm. */
#awards {
    background: var(--bg-secondary);
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.5s forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

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

.timeline-marker {
    position: absolute;
    left: -40px;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
}

.timeline-content {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.timeline-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary);
}

.timeline-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 40px 0 25px -30px;
    padding: 15px 25px;
    background: rgba(0, 255, 136, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.timeline-section-header:first-child {
    margin-top: 0;
}

.timeline-section-header i {
    font-size: 1.2rem;
}

/* ===================================
   DEMO SECTION
   =================================== */
.demo {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
    position: relative;
    z-index: 10;
}

.demo-showcase {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.demo-terminal .terminal-window {
    max-width: 100%;
}

#demo-terminal-body {
    min-height: 300px;
}

.terminal-input {
    background: transparent;
    border: none;
    color: var(--terminal-green);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    width: 100%;
    outline: none;
}

.terminal-input::placeholder {
    color: var(--text-muted);
}

.demo-features h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.command-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.command-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: var(--transition-fast);
}

.command-item:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.05);
}

.command-item code {
    color: var(--terminal-green);
    font-size: 0.9rem;
    padding: 3px 10px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: var(--radius-sm);
}

.command-item span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 10;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    padding: 25px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-card a,
.contact-card p {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-card a:hover {
    color: var(--primary);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-primary);
    transform: translateY(-5px);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.contact-form {
    padding: 0;
}

.form-header {
    background: var(--terminal-header);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-header .file-icon {
    color: var(--terminal-green);
}

.form-group {
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--terminal-green);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.02);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.btn-submit {
    width: 100%;
    margin: 0;
    padding: 18px;
    border-radius: 0;
    justify-content: center;
    font-size: 1rem;
}

.form-footer {
    padding: 10px 25px;
    background: rgba(0, 255, 136, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-hint i {
    color: var(--primary);
}

.form-group .command {
    color: var(--terminal-blue);
}

.contact-form .terminal-buttons {
    display: flex;
    gap: 8px;
}

.contact-form .terminal-title {
    flex: 1;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.contact-form .form-header {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--terminal-header);
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    padding: 40px 0 30px;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    position: relative;
    z-index: 10;
}

.footer-simple {
    text-align: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-brand .bracket {
    color: var(--primary);
}

.footer-brand .name {
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
    margin-bottom: 20px;
}

.footer-bottom-content {
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copyright i {
    color: var(--primary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

/* ===================================
   SCROLL PROGRESS BAR
   =================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 10001;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ===================================
   3D TILT EFFECT FOR CARDS
   =================================== */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.tilt-card .project-info {
    transform: translateZ(30px);
}

.tilt-card .project-image-icon {
    transform: translateZ(50px);
}

/* ===================================
   MAGNETIC BUTTON EFFECT
   =================================== */
.magnetic-btn {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===================================
   TEXT REVEAL ANIMATION
   =================================== */
.reveal-text {
    overflow: hidden;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.reveal-text.revealed span {
    transform: translateY(0);
    opacity: 1;
}

/* ===================================
   GLOWING BORDER ANIMATION
   =================================== */
.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary), var(--accent), var(--accent-purple), var(--primary));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    animation: gradient-rotate 3s ease infinite;
    transition: opacity 0.3s ease;
}

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

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===================================
   FLOATING ANIMATION ENHANCED
   =================================== */
.float-enhanced {
    animation: float-enhanced 6s ease-in-out infinite;
}

@keyframes float-enhanced {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
        filter: drop-shadow(0 5px 15px rgba(0, 255, 136, 0.3));
    }
    25% { 
        transform: translateY(-15px) rotate(5deg);
        filter: drop-shadow(0 15px 25px rgba(0, 255, 136, 0.5));
    }
    50% { 
        transform: translateY(-10px) rotate(0deg);
        filter: drop-shadow(0 10px 20px rgba(0, 255, 136, 0.4));
    }
    75% { 
        transform: translateY(-20px) rotate(-5deg);
        filter: drop-shadow(0 20px 30px rgba(0, 255, 136, 0.5));
    }
}

/* ===================================
   NEON TEXT EFFECT
   =================================== */
.neon-text {
    text-shadow: 
        0 0 5px var(--primary),
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--primary);
    animation: neon-flicker 2s infinite alternate;
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 5px var(--primary),
            0 0 10px var(--primary),
            0 0 20px var(--primary),
            0 0 40px var(--primary);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* ===================================
   SKILL ORBIT ANIMATION
   =================================== */
.skill-orbit {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 10;
    box-shadow: 0 0 30px var(--primary-glow);
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    animation: orbit-rotate 20s linear infinite;
}

.orbit-ring:nth-child(1) { width: 150px; height: 150px; animation-duration: 15s; }
.orbit-ring:nth-child(2) { width: 220px; height: 220px; animation-duration: 20s; animation-direction: reverse; }
.orbit-ring:nth-child(3) { width: 290px; height: 290px; animation-duration: 25s; }

.orbit-item {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    animation: orbit-counter-rotate 20s linear infinite;
}

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

@keyframes orbit-counter-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Theme Color Overrides */
body.theme-cyan {
    --primary: #00d4ff;
    --primary-dark: #00a8cc;
    --primary-glow: rgba(0, 212, 255, 0.3);
    --terminal-green: #00d4ff;
}

/* ===================================
   PARTICLE CANVAS
   =================================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===================================
   HOVER CARD SHINE EFFECT
   =================================== */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.shine-effect:hover::after {
    transform: rotate(30deg) translateX(100%);
}

/* ===================================
   TYPING CURSOR ENHANCED
   =================================== */
.cursor-blink {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: var(--primary);
    margin-left: 2px;
    animation: cursor-blink 1s step-end infinite;
    box-shadow: 0 0 10px var(--primary-glow);
}

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

/* ===================================
   MORPHING BACKGROUND
   =================================== */
.morph-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 40%, rgba(168, 85, 247, 0.03) 0%, transparent 50%);
    animation: morph-move 20s ease-in-out infinite;
}

@keyframes morph-move {
    0%, 100% { 
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    25% { 
        background-position: 100% 0%, 0% 100%, 25% 75%;
    }
    50% { 
        background-position: 100% 100%, 0% 0%, 75% 25%;
    }
    75% { 
        background-position: 0% 100%, 100% 0%, 50% 50%;
    }
}

/* ===================================
   SOUND TOGGLE
   =================================== */
.sound-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    z-index: 998;
    transition: var(--transition-normal);
}

.sound-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sound-toggle.active {
    background: var(--primary);
    color: var(--bg-primary);
    border-color: var(--primary);
}

.sound-toggle.active i::before {
    content: "\f028";
}

/* ===================================
   RIPPLE EFFECT
   =================================== */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===================================
   TOOLTIP ENHANCED
   =================================== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    padding: 8px 15px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 100;
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   INTERACTIVE BADGE
   =================================== */
.interactive-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition-normal);
}

.interactive-badge:hover {
    background: var(--primary);
    color: var(--bg-primary);
    transform: scale(1.05);
    box-shadow: 0 5px 20px var(--primary-glow);
}

.interactive-badge i {
    animation: pulse 2s infinite;
}

/* ===================================
   GLASSMORPHISM CARDS
   =================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

/* ===================================
   ANIMATED UNDERLINE
   =================================== */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

/* ===================================
   TYPEWRITER CONTAINER
   =================================== */
.typewriter-container {
    display: inline-flex;
    align-items: center;
}

.typewriter-text {
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

/* ===================================
   HOVER LIFT EFFECT
   =================================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===================================
   GRADIENT TEXT
   =================================== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   PULSE RING
   =================================== */
.pulse-ring {
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid var(--primary);
    border-radius: inherit;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* ===================================
   SECTION TRANSITIONS
   =================================== */
.section-transition {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-transition.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   ANIMATED BORDER
   =================================== */
.animated-border {
    position: relative;
    background: var(--bg-card);
    z-index: 1;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-purple), var(--primary));
    background-size: 300% 100%;
    border-radius: inherit;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-animation 3s linear infinite;
    z-index: -1;
}

@keyframes border-animation {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ===================================
   FLOATING LABEL INPUT
   =================================== */
.floating-label-group {
    position: relative;
    margin-bottom: 20px;
}

.floating-label-group input,
.floating-label-group textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    transition: var(--transition-normal);
}

.floating-label-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-normal);
}

.floating-label-group input:focus,
.floating-label-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.floating-label-group input:focus + label,
.floating-label-group input:not(:placeholder-shown) + label,
.floating-label-group textarea:focus + label,
.floating-label-group textarea:not(:placeholder-shown) + label {
    top: 0;
    left: 10px;
    font-size: 0.75rem;
    padding: 0 5px;
    background: var(--bg-card);
    color: var(--primary);
}

/* ===================================
   SKILL PROGRESS CIRCLE
   =================================== */
.progress-circle {
    position: relative;
    width: 80px;
    height: 80px;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-circle circle {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
}

.progress-circle .bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.progress-circle .progress {
    stroke: var(--primary);
    stroke-dasharray: 226;
    stroke-dashoffset: 226;
    transition: stroke-dashoffset 1s ease;
}

.progress-circle .value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

/* ===================================
   CARD STACK EFFECT
   =================================== */
.card-stack {
    position: relative;
}

.card-stack::before,
.card-stack::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: inherit;
    z-index: -1;
    transition: var(--transition-normal);
}

.card-stack::before {
    transform: rotate(-3deg) translateY(5px);
}

.card-stack::after {
    transform: rotate(3deg) translateY(10px);
}

.card-stack:hover::before {
    transform: rotate(-5deg) translateY(8px);
}

.card-stack:hover::after {
    transform: rotate(5deg) translateY(15px);
}

/* ===================================
   LOADING SKELETON
   =================================== */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===================================
   NOTIFICATION TOAST
   =================================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 15px 30px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast i {
    color: var(--primary);
}

/* ===================================
   CONFETTI EFFECT (for achievements)
   =================================== */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary);
    pointer-events: none;
    z-index: 9999;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===================================
   COMMAND PALETTE
   =================================== */
.command-palette {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.command-palette.active {
    display: flex;
}

.command-palette-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.command-palette-modal {
    position: relative;
    width: 600px;
    max-width: 90vw;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px) scale(0.95);
    transition: var(--transition-normal);
    overflow: hidden;
}

.command-palette.active .command-palette-modal {
    transform: translateY(0) scale(1);
}

.command-palette-header {
    padding: 15px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.command-palette-header i {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.command-palette-header input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
}

.command-palette-header input::placeholder {
    color: var(--text-muted);
}

.command-palette-header kbd {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.command-palette-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.command-group {
    margin-bottom: 15px;
}

.command-group-title {
    padding: 8px 15px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.command-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.command-item:hover,
.command-item.selected {
    background: rgba(0, 255, 136, 0.1);
}

.command-item i {
    width: 20px;
    color: var(--primary);
}

.command-item span {
    flex: 1;
    color: var(--text-primary);
}

.command-item kbd {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.command-palette-footer {
    padding: 12px 20px;
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.command-palette-footer kbd {
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-right: 5px;
}

/* ===================================
   KEYBOARD SHORTCUT HINT
   =================================== */
.shortcut-hint {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 100;
    pointer-events: none;
}

.shortcut-hint.show {
    opacity: 1;
    visibility: visible;
}

.shortcut-hint kbd {
    padding: 3px 8px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    border-radius: 4px;
    color: var(--primary);
    margin: 0 3px;
}

/* ===================================
   HOLOGRAPHIC CARD EFFECT
   =================================== */
.holographic {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 136, 0.1) 0%,
        rgba(0, 212, 255, 0.1) 25%,
        rgba(168, 85, 247, 0.1) 50%,
        rgba(255, 0, 110, 0.1) 75%,
        rgba(0, 255, 136, 0.1) 100%
    );
    background-size: 400% 400%;
    animation: holographic-shift 8s ease infinite;
}

.holographic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 60%
    );
    background-size: 200% 200%;
    animation: holographic-shine 3s linear infinite;
    pointer-events: none;
}

@keyframes holographic-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes holographic-shine {
    0% { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

/* ===================================
   GLITCH EFFECT ENHANCED
   =================================== */
.glitch-container {
    position: relative;
}

.glitch-container:hover .glitch-text {
    animation: glitch-intense 0.3s infinite;
}

@keyframes glitch-intense {
    0% {
        transform: translate(0);
        text-shadow: -2px 0 #ff006e, 2px 0 #00d4ff;
    }
    20% {
        transform: translate(-3px, 3px);
        text-shadow: 2px 0 #ff006e, -2px 0 #00d4ff;
    }
    40% {
        transform: translate(-3px, -3px);
        text-shadow: 2px 0 #a855f7, -2px 0 #00ff88;
    }
    60% {
        transform: translate(3px, 3px);
        text-shadow: -2px 0 #00d4ff, 2px 0 #ff006e;
    }
    80% {
        transform: translate(3px, -3px);
        text-shadow: 2px 0 #00ff88, -2px 0 #a855f7;
    }
    100% {
        transform: translate(0);
        text-shadow: -2px 0 #ff006e, 2px 0 #00d4ff;
    }
}

/* ===================================
   ANIMATED TECH ORBIT
   =================================== */
.tech-orbit-showcase {
    text-align: center;
    margin-bottom: 60px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.orbit-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
}

/* Center Element */
.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 30px var(--primary-glow),
        0 0 60px rgba(0, 255, 136, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    z-index: 10;
    animation: center-pulse 3s ease-in-out infinite;
}

.orbit-center .center-icon {
    font-size: 2rem;
    line-height: 1;
}

.orbit-center .center-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--bg-primary);
    margin-top: 2px;
}

@keyframes center-pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 30px var(--primary-glow), 0 0 60px rgba(0, 255, 136, 0.3);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 50px var(--primary-glow), 0 0 80px rgba(0, 255, 136, 0.4);
    }
}

/* Orbit Rings */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px dashed rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-ring.ring-1 {
    width: 180px;
    height: 180px;
    animation: orbit-spin 20s linear infinite;
}

.orbit-ring.ring-2 {
    width: 280px;
    height: 280px;
    animation: orbit-spin 30s linear infinite reverse;
}

@keyframes orbit-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Orbit Icons */
.orbit-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--primary-glow);
    transition: all 0.3s ease;
    animation: counter-spin 20s linear infinite;
}

.ring-2 .orbit-icon {
    animation: counter-spin 30s linear infinite reverse;
}

@keyframes counter-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

.orbit-icon i {
    font-size: 1.4rem;
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.orbit-icon:hover {
    transform: translate(-50%, -50%) scale(1.3) !important;
    background: var(--primary);
    z-index: 20;
}

.orbit-icon:hover i {
    color: var(--bg-primary);
}

/* Position icons on ring-1 (3 icons, 120deg apart) */
.ring-1 .orbit-icon:nth-child(1) { top: 0; left: 50%; }
.ring-1 .orbit-icon:nth-child(2) { top: 87%; left: 93%; }
.ring-1 .orbit-icon:nth-child(3) { top: 87%; left: 7%; }

/* Position icons on ring-2 (4 icons, 90deg apart) */
.ring-2 .orbit-icon:nth-child(1) { top: 0; left: 50%; }
.ring-2 .orbit-icon:nth-child(2) { top: 50%; left: 100%; }
.ring-2 .orbit-icon:nth-child(3) { top: 100%; left: 50%; }
.ring-2 .orbit-icon:nth-child(4) { top: 50%; left: 0; }

/* Pause on hover */
.orbit-container:hover .orbit-ring {
    animation-play-state: paused;
}

.orbit-container:hover .orbit-icon {
    animation-play-state: paused;
}

.orbit-caption {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .orbit-container {
        width: 260px;
        height: 260px;
    }
    
    .orbit-center {
        width: 70px;
        height: 70px;
    }
    
    .orbit-center .center-icon {
        font-size: 1.5rem;
    }
    
    .orbit-ring.ring-1 {
        width: 140px;
        height: 140px;
    }
    
    .orbit-ring.ring-2 {
        width: 220px;
        height: 220px;
    }
    
    .orbit-icon {
        width: 40px;
        height: 40px;
    }
    
    .orbit-icon i {
        font-size: 1rem;
    }
}

/* ===================================
   CYBER GRID BACKGROUND
   =================================== */
.cyber-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -3;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* ===================================
   SCANLINE EFFECT
   =================================== */
.scanlines::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    animation: scanline-flicker 0.1s infinite;
}

@keyframes scanline-flicker {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.9; }
}

/* ===================================
   NEON BORDER ANIMATION
   =================================== */
.neon-border {
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, 
        var(--primary), 
        var(--accent), 
        var(--accent-purple), 
        var(--accent-pink),
        var(--primary)
    );
    background-size: 400%;
    border-radius: inherit;
    z-index: -1;
    animation: neon-border-glow 3s linear infinite;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

@keyframes neon-border-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===================================
   MATRIX RAIN ENHANCED
   =================================== */
.matrix-column {
    position: fixed;
    top: -100%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
    writing-mode: vertical-rl;
    animation: matrix-fall linear infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

@keyframes matrix-fall {
    0% { transform: translateY(0); }
    100% { transform: translateY(200vh); }
}

/* ===================================
   INTERACTIVE CURSOR TRAIL
   =================================== */
.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.4;
    transition: transform 0.1s ease;
}

@media (max-width: 768px) {
    .cursor-trail {
        display: none;
    }
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */
@media (max-width: 768px) {
    .command-palette-modal {
        margin: 0 20px;
    }
    
    .shortcut-hint {
        display: none;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    /* 8 nav items no longer fit on one row, so collapse to the hamburger
       menu from tablet width down instead of only below 768px. */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
    }

    /* Keep every row at its natural height so the stacked links can never
       be squashed into each other when the menu is open. */
    .nav-links li {
        flex-shrink: 0;
    }

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

    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        width: 100%;
        max-width: min(400px, 100%);
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skill-items {
        grid-template-columns: 1fr;
    }
    
    .demo-showcase {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .navbar {
        padding: 15px 20px;
    }
    
    .glitch {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 40px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-marker {
        left: -35px;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .terminal-window {
        margin: 0 -10px 30px;
        border-radius: 0;
    }
    
    .terminal-body {
        padding: 15px;
        font-size: 0.85rem;
    }
    
    .glitch {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-item {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .project-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ===================================
   ANIMATIONS & EFFECTS
   =================================== */

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-item.visible {
    animation: staggerIn 0.5s forwards;
}

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

/* Glow Effect */
.glow {
    box-shadow: 
        0 0 5px var(--primary),
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--primary);
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Loading State */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 136, 0.1),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Hide initially for animation */
.project-card,
.timeline-item,
.skill-category {
    opacity: 0;
    transform: translateY(30px);
}

.project-card.animate,
.timeline-item.animate,
.skill-category.animate {
    animation: fadeUp 0.6s forwards;
}

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

/* Light and dark appearance switch */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 20px;
}

.mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    font: 500 0.8rem var(--font-mono);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.mode-toggle:hover,
.mode-toggle:focus-visible {
    border-color: var(--primary);
    outline: 2px solid transparent;
}

html.light-mode {
    color-scheme: light;
}

html.light-mode body {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f8fc;
    --bg-tertiary: #eaf2f9;
    --bg-card: #ffffff;
    --text-primary: #142434;
    --text-secondary: #42566b;
    --text-muted: #62778b;
    --terminal-bg: #ffffff;
    --terminal-header: #eaf3fa;
    --terminal-green: #087da2;
    --terminal-blue: #087da2;
    --gradient-dark: linear-gradient(180deg, #ffffff, #f4f8fc);
}

html.light-mode body.theme-cyan {
    --primary: #087da2;
    --primary-dark: #066782;
    --primary-glow: rgba(8, 125, 162, 0.15);
    --gradient-primary: linear-gradient(135deg, #087da2, #39a9d0);
}

html.light-mode .navbar,
html.light-mode .navbar.scrolled,
html.light-mode .nav-links {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(8, 91, 125, 0.12);
    box-shadow: 0 5px 25px rgba(22, 56, 83, 0.07);
}

html.light-mode .mode-toggle {
    border-color: #c8d9e6;
    background: #f4f9fd;
}

html.light-mode .terminal-window,
html.light-mode .about-card,
html.light-mode .project-card,
html.light-mode .contact-card,
html.light-mode .contact-form-wrapper,
html.light-mode .skill-category,
html.light-mode .timeline-content,
html.light-mode .command-item {
    border-color: #dce8f0;
    box-shadow: 0 10px 35px rgba(24, 68, 97, 0.06);
}

html.light-mode .project-image.gradient-1 {
    background: linear-gradient(135deg, #e9f6ff, #c9e7f9);
}
html.light-mode .project-image.gradient-2 {
    background: linear-gradient(135deg, #f1f8ff, #dce9f7);
}
html.light-mode .project-image.gradient-3 {
    background: linear-gradient(135deg, #e6f5fa, #c9e9ee);
}

html.light-mode .project-overlay {
    background: rgba(241, 249, 254, 0.94);
}

html.light-mode .form-group input,
html.light-mode .form-group textarea {
    background: #ffffff;
    border-color: #c8d9e6;
    color: var(--text-primary);
}

html.light-mode .form-group input:focus,
html.light-mode .form-group textarea:focus {
    background: #ffffff;
}

html.light-mode .form-header,
html.light-mode .form-group,
html.light-mode .form-footer,
html.light-mode .terminal-header,
html.light-mode .nav-link {
    border-color: #dce8f0;
}

html.light-mode .form-footer {
    background: #f4f9fd;
}

html.light-mode #matrix-bg,
html.light-mode #particle-canvas,
html.light-mode .cursor-glow {
    opacity: 0;
}

@media (max-width: 1024px) {
    .nav-actions { margin-left: auto; }
}

@media (max-width: 480px) {
    .mode-toggle span { display: none; }
    .mode-toggle { width: 38px; height: 38px; justify-content: center; padding: 0; }
}
