/* ================================
   CYBERPUNK PORTFOLIO STYLES
   Premium Dark Theme with Neon Accents
   ================================ */

/* CSS Variables for Theme */
:root {
    /* Aggressive Neon Colors */
    --neon-red: #ff0040;
    --neon-crimson: #dc143c;
    --neon-cyan: #00ffff;
    --neon-cyan-dark: #00d4ff;
    --neon-orange: #ff4500;
    --neon-yellow: #ffff00;
    --electric-blue: #0080ff;
    
    /* Background - Darker */
    --bg-primary: #000000;
    --bg-secondary: #0d0d0d;
    --bg-tertiary: #1a1a1a;
    
    /* Glass Effect */
    --glass-bg: rgba(13, 13, 13, 0.6);
    --glass-border: rgba(255, 0, 64, 0.3);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #999999;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-padding: 0 40px;
    
    /* Fonts */
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* Selection */
::selection {
    background: var(--neon-red);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-red), var(--neon-cyan));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-orange), var(--electric-blue));
}

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

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

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

.loader-container {
    text-align: center;
    max-width: 600px;
    width: 90%;
}

.loader-logo {
    margin-bottom: 50px;
}

.loader-name {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-red), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.loader-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.loader-bar-container {
    position: relative;
}

.loader-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.3);
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-red), var(--neon-orange), var(--neon-cyan));
    background-size: 200% 100%;
    animation: shimmerLoad 1.5s infinite;
    border-radius: 10px;
    box-shadow: 0 0 20px var(--neon-red), 0 0 40px rgba(255, 0, 64, 0.5);
    transition: width 0.1s linear;
}

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

.loader-percentage {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 10px 40px rgba(255, 0, 64, 0.3);
}

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

.nav-logo {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--neon-red);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-red), var(--neon-cyan));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--neon-cyan);
}

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

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-hamburger span {
    width: 30px;
    height: 3px;
    background: var(--neon-red);
    transition: var(--transition-smooth);
}

/* Glitch Effect */
.glitch {
    position: relative;
    font-weight: 700;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-red);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }
    10% {
        clip: rect(112px, 9999px, 76px, 0);
    }
    20% {
        clip: rect(85px, 9999px, 77px, 0);
    }
    30% {
        clip: rect(29px, 9999px, 40px, 0);
    }
    40% {
        clip: rect(14px, 9999px, 27px, 0);
    }
    50% {
        clip: rect(83px, 9999px, 98px, 0);
    }
    60% {
        clip: rect(23px, 9999px, 85px, 0);
    }
    70% {
        clip: rect(54px, 9999px, 46px, 0);
    }
    80% {
        clip: rect(65px, 9999px, 15px, 0);
    }
    90% {
        clip: rect(25px, 9999px, 99px, 0);
    }
    100% {
        clip: rect(76px, 9999px, 52px, 0);
    }
}

/* Typing Header Effect */
.typing-header {
    position: relative;
    animation: typing-header 3.5s steps(10, end) 0.5s 1 forwards;
    overflow: hidden;
    white-space: nowrap;
}

@keyframes typing-header {
    from {
        width: 0;
        visibility: visible;
    }
    to {
        width: 100%;
        visibility: visible;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(255, 0, 64, 0.05) 0%,
        rgba(0, 255, 255, 0.05) 100%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
    position: relative;
    z-index: 10;
}

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

.hero-tag {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--neon-cyan);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.tag-bracket {
    color: var(--neon-red);
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.name-primary {
    background: linear-gradient(135deg, var(--neon-red), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    text-shadow: 0 0 80px rgba(176, 38, 255, 0.5);
}

.glitch-hero {
    position: relative;
}

.hero-alias {
    font-family: var(--font-mono);
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.alias-label {
    color: var(--neon-red);
}

.alias-name {
    color: var(--neon-cyan);
    font-weight: 700;
    margin-left: 10px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 50px;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

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

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

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-tertiary);
    font-size: 16px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease 1s backwards;
}

.hero-location svg {
    color: var(--neon-red);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 1.2s backwards;
}

.hero-btn {
    position: relative;
    padding: 15px 35px;
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    border: 2px solid;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    border-color: var(--neon-red);
    background: rgba(176, 38, 255, 0.1);
}

.btn-primary:hover {
    background: var(--neon-red);
    box-shadow: 0 0 30px var(--neon-red), 0 0 60px rgba(176, 38, 255, 0.5);
    transform: translateY(-3px);
}

.btn-secondary {
    border-color: var(--neon-cyan);
    background: rgba(0, 212, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 30px var(--neon-cyan), 0 0 60px rgba(0, 212, 255, 0.5);
    transform: translateY(-3px);
}

.btn-accent {
    border-color: var(--electric-blue);
    background: rgba(0, 212, 255, 0.1);
}

.btn-accent:hover {
    background: var(--electric-blue);
    color: var(--bg-primary);
    box-shadow: 0 0 30px var(--electric-blue), 0 0 60px rgba(0, 212, 255, 0.5);
    transform: translateY(-3px);
}

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

.hero-btn:active::before {
    width: 300px;
    height: 300px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.8s ease 1.4s backwards;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--neon-red);
    border-radius: 20px;
    position: relative;
}

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

@keyframes scroll {
    0% {
        opacity: 1;
        top: 10px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

.scroll-indicator p {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.hex-grid {
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 
        linear-gradient(30deg, var(--neon-red) 12%, transparent 12.5%, transparent 87%, var(--neon-red) 87.5%, var(--neon-red)),
        linear-gradient(150deg, var(--neon-red) 12%, transparent 12.5%, transparent 87%, var(--neon-red) 87.5%, var(--neon-red)),
        linear-gradient(30deg, var(--neon-red) 12%, transparent 12.5%, transparent 87%, var(--neon-red) 87.5%, var(--neon-red)),
        linear-gradient(150deg, var(--neon-red) 12%, transparent 12.5%, transparent 87%, var(--neon-red) 87.5%, var(--neon-red));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

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

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--neon-cyan);
    margin-bottom: 15px;
    display: inline-block;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--neon-red), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-red), var(--neon-cyan));
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 10;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(176, 38, 255, 0.1), 
        transparent);
    transition: left 0.8s;
}

.glass-card:hover::before {
    left: 100%;
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--neon-red), var(--neon-cyan));
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.5s;
}

.glass-card:hover .card-glow {
    opacity: 0.6;
}

.intro-text {
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

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

.highlight {
    color: var(--neon-cyan);
    font-weight: 600;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.expertise-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(176, 38, 255, 0.1);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.expertise-item:hover {
    background: rgba(176, 38, 255, 0.05);
    border-color: var(--neon-red);
    transform: translateX(10px);
}

.expertise-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--neon-red), var(--neon-cyan));
    border-radius: 12px;
    color: var(--text-primary);
}

.expertise-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--neon-cyan);
    margin-bottom: 8px;
}

.expertise-item p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin: 0;
}

/* Experience Section */
.experience-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 10;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--neon-red), var(--neon-cyan));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--neon-red);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--neon-red);
    z-index: 1;
}

.timeline-content {
    width: calc(50% - 50px);
    margin-left: auto;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--neon-cyan);
    margin-bottom: 15px;
}

.timeline-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--neon-red);
    margin-bottom: 10px;
}

.timeline-company {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.timeline-description {
    list-style: none;
    padding: 0;
}

.timeline-description li {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.timeline-description li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-size: 20px;
}

/* Skills Section */
.skills-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 10;
}

.skills-content {
    max-width: 900px;
    margin: 0 auto;
}

.skill-item {
    margin-bottom: 35px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.skill-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-percentage {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--neon-cyan);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-red), var(--neon-cyan));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 20px var(--neon-red);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: shimmer 2s infinite;
}

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

/* Projects Section */
.projects-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 10;
}

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

.project-card {
    padding: 40px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(176, 38, 255, 0.2), 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

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

.project-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--neon-red), var(--neon-cyan));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.project-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

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

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    font-size: 12px;
    padding: 6px 14px;
    background: rgba(176, 38, 255, 0.1);
    border: 1px solid var(--neon-red);
    border-radius: 20px;
    color: var(--neon-cyan);
    transition: var(--transition-smooth);
}

.tag:hover {
    background: var(--neon-red);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 10;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.contact-form {
    position: relative;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--neon-cyan);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    font-family: var(--font-secondary);
    font-size: 16px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(176, 38, 255, 0.2);
    border-radius: 8px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--neon-red);
    background: rgba(176, 38, 255, 0.1);
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-red), var(--neon-cyan));
    transition: width 0.4s;
}

.form-group input:focus ~ .input-border,
.form-group textarea:focus ~ .input-border {
    width: 100%;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--neon-red), var(--neon-cyan));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    box-shadow: 0 10px 40px rgba(176, 38, 255, 0.5);
    transform: translateY(-3px);
}

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

.submit-btn:active::before {
    width: 400px;
    height: 400px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.form-success.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    margin-bottom: 20px;
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-icon svg {
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 20px var(--neon-cyan));
}

.form-success h3 {
    font-size: 28px;
    color: var(--neon-cyan);
    margin-bottom: 15px;
}

.form-success p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.back-btn {
    padding: 12px 30px;
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(176, 38, 255, 0.2);
    border: 2px solid var(--neon-red);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.back-btn:hover {
    background: var(--neon-red);
    box-shadow: 0 0 20px var(--neon-red);
}

/* Footer */
.footer {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

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

.footer-content p {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-subtext {
    color: var(--text-tertiary);
    font-size: 12px;
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
        --container-padding: 0 30px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 20px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.4s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-hamburger {
        display: flex;
    }
    
    .nav-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .glass-card {
        padding: 30px;
    }
    
    .intro-text {
        font-size: 20px;
    }
    
    .about-text p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .loader-name {
        font-size: 2.5rem;
    }
    
    .loader-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .loader-percentage {
        font-size: 2rem;
    }
    
    .terminal-content {
        padding: 20px;
    }
    
    .terminal-line {
        font-size: 14px;
    }
    
    .boot-line {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-alias {
        font-size: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .glass-card {
        padding: 20px;
    }
}

/* ================================
   TACTICAL NOIR THEME REWRITE
   ================================ */
:root {
    --neon-red: #c1121f;
    --neon-crimson: #9b0e1a;
    --neon-cyan: #3a6ea5;
    --neon-cyan-dark: #2d5a8b;
    --neon-orange: #d97706;
    --neon-yellow: #f59e0b;
    --electric-blue: #234972;

    --bg-primary: #070a10;
    --bg-secondary: #0d121b;
    --bg-tertiary: #161f2c;

    --glass-bg: rgba(16, 24, 35, 0.72);
    --glass-border: rgba(72, 92, 120, 0.35);

    --text-primary: #e7edf6;
    --text-secondary: #bcc8d8;
    --text-tertiary: #8696aa;
}

html {
    color-scheme: dark;
}

body {
    background:
        radial-gradient(circle at 20% 18%, rgba(56, 95, 160, 0.18), transparent 38%),
        radial-gradient(circle at 78% 6%, rgba(22, 48, 92, 0.22), transparent 44%),
        radial-gradient(circle at 52% 78%, rgba(8, 20, 44, 0.35), transparent 48%),
        linear-gradient(180deg, #02040a 0%, #060b15 45%, #03060d 100%);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 12% 22%, rgba(80, 140, 230, 0.1), transparent 42%),
        radial-gradient(circle at 86% 18%, rgba(52, 90, 170, 0.12), transparent 44%),
        radial-gradient(circle at 54% 84%, rgba(14, 40, 92, 0.16), transparent 50%);
    filter: blur(14px);
    animation: nebulaDrift 20s ease-in-out infinite alternate;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.32) 1px, transparent 1.6px),
        radial-gradient(circle at 74% 38%, rgba(165, 205, 255, 0.28) 1px, transparent 1.7px),
        radial-gradient(circle at 44% 76%, rgba(255, 255, 255, 0.24) 1px, transparent 1.6px);
    background-size: 220px 220px, 300px 300px, 260px 260px;
    background-position: 0 0, 80px 120px, 140px 60px;
    opacity: 0.42;
}

@keyframes nebulaDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(-10px, 8px, 0) scale(1.04);
    }
}

::selection {
    background: rgba(58, 110, 165, 0.42);
    color: #f3f7fb;
}

::-webkit-scrollbar-track {
    background: #0c121a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2f5f92, #c1121f);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3f78b4, #d33b47);
}

#particleCanvas {
    opacity: 0.92;
    mix-blend-mode: screen;
}

.galaxy-rotor-layer {
    --gx: 0px;
    --gy: 0px;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    transform: translate3d(var(--gx), var(--gy), 0);
    will-change: transform;
}

.galaxy-rotor {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50% / 62%;
    opacity: 0.25;
    transform-origin: center center;
    background:
        radial-gradient(ellipse at center, rgba(232, 244, 255, 0.26) 0%, rgba(152, 190, 245, 0.16) 28%, rgba(48, 88, 160, 0.1) 52%, rgba(11, 24, 52, 0) 78%),
        radial-gradient(ellipse at 35% 48%, rgba(220, 238, 255, 0.18), rgba(0, 0, 0, 0) 62%),
        radial-gradient(ellipse at 65% 52%, rgba(126, 176, 240, 0.2), rgba(0, 0, 0, 0) 60%);
    box-shadow: 0 0 70px rgba(76, 125, 205, 0.18);
    filter: blur(1px);
}

.rotor-a {
    width: min(130vw, 1800px);
    height: min(34vh, 300px);
    transform: translate(-50%, -50%) rotate(-16deg);
    animation: milkyBandA 120s linear infinite;
}

.rotor-b {
    width: min(96vw, 1300px);
    height: min(26vh, 210px);
    transform: translate(-44%, -48%) rotate(-13deg);
    opacity: 0.21;
    animation: milkyBandB 96s ease-in-out infinite alternate;
}

.rotor-c {
    width: min(64vw, 820px);
    height: min(18vh, 160px);
    transform: translate(-56%, -56%) rotate(-19deg);
    opacity: 0.16;
    animation: milkyBandC 74s ease-in-out infinite alternate;
}

@keyframes milkyBandA {
    0% {
        transform: translate(-50%, -50%) rotate(-18deg) scale(1);
    }
    100% {
        transform: translate(-49%, -51%) rotate(-12deg) scale(1.04);
    }
}

@keyframes milkyBandB {
    0% {
        transform: translate(-44%, -48%) rotate(-14deg) scale(1);
    }
    100% {
        transform: translate(-46%, -52%) rotate(-10deg) scale(1.06);
    }
}

@keyframes milkyBandC {
    0% {
        transform: translate(-56%, -56%) rotate(-20deg) scale(1);
    }
    100% {
        transform: translate(-53%, -53%) rotate(-16deg) scale(1.08);
    }
}

.galaxy-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(156, 198, 255, 0.12);
    border-radius: 50%;
    transform-origin: center center;
    box-shadow: inset 0 0 20px rgba(126, 176, 240, 0.06);
}

.galaxy-orbit::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px dashed rgba(140, 186, 245, 0.08);
}

.planet {
    position: absolute;
    left: 50%;
    top: -2px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 18px rgba(255, 210, 130, 0.3);
}

.orbit-star {
    position: absolute;
    left: 50%;
    bottom: -2px;
    border-radius: 50%;
    transform: translate(-50%, 50%);
    filter: drop-shadow(0 0 10px currentColor);
}

.orbit-1 {
    width: min(78vw, 1040px);
    height: min(32vw, 430px);
    transform: translate(-50%, -50%) rotate(-14deg);
    opacity: 0.26;
    animation: orbitSpin1 62s linear infinite;
}

.orbit-2 {
    width: min(54vw, 740px);
    height: min(24vw, 320px);
    transform: translate(-50%, -50%) rotate(-20deg);
    opacity: 0.22;
    animation: orbitSpin2 44s linear infinite;
}

.orbit-3 {
    width: min(94vw, 1260px);
    height: min(42vw, 540px);
    transform: translate(-50%, -50%) rotate(-8deg);
    opacity: 0.16;
    animation: orbitSpin3 88s linear infinite;
}

.planet-1 {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 30% 30%, #ffe3c0 0%, #ff945e 52%, #8a341d 100%);
    box-shadow: 0 0 20px rgba(255, 133, 86, 0.35);
}

.planet-2 {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 30% 25%, #ddffe8 0%, #5adf9d 55%, #1f6f4d 100%);
    box-shadow: 0 0 16px rgba(90, 223, 157, 0.32);
}

.planet-3 {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 32% 28%, #f3e4ff 0%, #b98cff 42%, #6f49a9 78%, #352255 100%);
    box-shadow: 0 0 22px rgba(185, 140, 255, 0.34);
}

.planet-3::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 9px;
    border: 1px solid rgba(228, 207, 255, 0.55);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-22deg);
    opacity: 0.8;
}

.planet-4 {
    left: 84%;
    top: 44%;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 32% 28%, #d3f6ff 0%, #67d7ef 58%, #2a6c85 100%);
    box-shadow: 0 0 14px rgba(103, 215, 239, 0.34);
}

.planet-5 {
    left: 18%;
    top: 68%;
    width: 13px;
    height: 13px;
    background: radial-gradient(circle at 32% 24%, #ffe6ed 0%, #ff88ad 54%, #7f2f45 100%);
    box-shadow: 0 0 16px rgba(255, 136, 173, 0.3);
}

.planet-6 {
    left: 72%;
    top: 76%;
    width: 9px;
    height: 9px;
    background: radial-gradient(circle at 28% 26%, #fff7d8 0%, #ffd96d 58%, #8d6722 100%);
    box-shadow: 0 0 14px rgba(255, 217, 109, 0.28);
}

.star-1 {
    width: 6px;
    height: 6px;
    color: #ffd37b;
    background: radial-gradient(circle, #fff2bf 0%, #ffc35f 72%, rgba(255, 195, 95, 0) 100%);
}

.star-2 {
    width: 5px;
    height: 5px;
    color: #ff9e9e;
    background: radial-gradient(circle, #ffd3d3 0%, #ff8e8e 72%, rgba(255, 142, 142, 0) 100%);
}

.star-3 {
    width: 7px;
    height: 7px;
    color: #c8ffb2;
    background: radial-gradient(circle, #ecffd9 0%, #98e876 72%, rgba(152, 232, 118, 0) 100%);
}

.star-4 {
    left: 22%;
    top: 16%;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    color: #9be7ff;
    background: radial-gradient(circle, #ddf8ff 0%, #8adfff 72%, rgba(138, 223, 255, 0) 100%);
}

.star-5 {
    left: 78%;
    top: 84%;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    color: #ffa8cc;
    background: radial-gradient(circle, #ffe1ef 0%, #ff96c2 72%, rgba(255, 150, 194, 0) 100%);
}

.star-6 {
    left: 34%;
    top: 54%;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    color: #ffe89d;
    background: radial-gradient(circle, #fff7d7 0%, #ffde81 72%, rgba(255, 222, 129, 0) 100%);
}

@keyframes orbitSpin1 {
    from {
        transform: translate(-50%, -50%) rotate(-14deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(346deg);
    }
}

@keyframes orbitSpin2 {
    from {
        transform: translate(-50%, -50%) rotate(340deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-20deg);
    }
}

@keyframes orbitSpin3 {
    from {
        transform: translate(-50%, -50%) rotate(-8deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(352deg);
    }
}

.loading-screen {
    background:
        radial-gradient(circle at 20% 20%, rgba(193, 18, 31, 0.14), transparent 38%),
        radial-gradient(circle at 80% 14%, rgba(58, 110, 165, 0.12), transparent 38%),
        linear-gradient(180deg, #070a10 0%, #0d121b 100%);
}

.loader-container {
    max-width: 720px;
}

.loader-panel {
    position: relative;
    background: linear-gradient(165deg, rgba(12, 18, 28, 0.88), rgba(8, 13, 20, 0.8));
    border: 1px solid rgba(79, 101, 131, 0.42);
    border-radius: 16px;
    padding: 30px 28px;
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.loader-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(193, 18, 31, 0), rgba(193, 18, 31, 0.9), rgba(58, 110, 165, 0.95), rgba(58, 110, 165, 0));
}

.loader-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1.2px;
    color: #b8c7da;
    border: 1px solid rgba(79, 101, 131, 0.5);
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 16px;
    background: rgba(58, 110, 165, 0.12);
}

.loader-logo {
    margin-bottom: 10px;
}

.loader-name {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: #f3f6fb;
    text-shadow: 0 0 22px rgba(58, 110, 165, 0.26);
}

.loader-subtitle {
    color: var(--text-tertiary);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    letter-spacing: 0.8px;
    text-transform: none;
    margin-bottom: 14px;
}

.loader-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.loader-meta-item {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #95aac3;
    letter-spacing: 0.9px;
}

.loader-status {
    font-family: var(--font-mono);
    font-size: 14px;
    color: #c5d4e6;
    text-align: left;
    margin-bottom: 14px;
    min-height: 20px;
}

.loader-bar {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.loader-progress {
    background: linear-gradient(90deg, #c1121f, #d97706, #3a6ea5, #5a8dc4);
    box-shadow: 0 0 24px rgba(58, 110, 165, 0.4);
}

.loader-percentage {
    color: #9fc0e5;
    text-shadow: 0 0 14px rgba(58, 110, 165, 0.45);
    letter-spacing: 1px;
}

@media (max-width: 480px) {
    .loader-panel {
        padding: 24px 18px;
        border-radius: 14px;
    }

    .loader-badge {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .loader-subtitle {
        font-size: 0.85rem;
    }

    .loader-meta-item {
        font-size: 11px;
    }

    .loader-status {
        font-size: 12px;
        margin-bottom: 12px;
    }
}

.navbar {
    background: rgba(10, 16, 24, 0.86);
    border-bottom: 1px solid rgba(72, 92, 120, 0.3);
}

.navbar.scrolled {
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 600;
}

.nav-link::after {
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, #c1121f, #3a6ea5);
}

.nav-link:hover,
.nav-link.active {
    color: #f0f5fc;
}

.nav-hamburger span {
    background: linear-gradient(90deg, #c1121f, #3a6ea5);
}

.glitch::before,
.glitch::after {
    display: none;
}

.hero-section {
    background:
        radial-gradient(circle at 20% 0%, rgba(193, 18, 31, 0.12), transparent 42%),
        radial-gradient(circle at 82% 6%, rgba(58, 110, 165, 0.14), transparent 40%);
}

.hero-tag {
    color: #8ea8c8;
}

.tag-bracket {
    color: #d33b47;
}

.name-primary {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: #f1f5fb;
    text-shadow: 0 0 28px rgba(58, 110, 165, 0.25);
}

.alias-label {
    color: #97a6b9;
}

.alias-name {
    color: #9ab8da;
}

.cursor-blink {
    color: #c1121f;
}

.hero-location svg {
    color: #c1121f;
}

.hero-btn {
    border-radius: 12px;
    border-width: 1px;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 26px rgba(0, 0, 0, 0.26);
}

.btn-primary {
    border-color: rgba(193, 18, 31, 0.75);
    background: rgba(193, 18, 31, 0.12);
}

.btn-primary:hover {
    background: rgba(193, 18, 31, 0.85);
    box-shadow: 0 12px 28px rgba(193, 18, 31, 0.28);
}

.btn-secondary {
    border-color: rgba(58, 110, 165, 0.75);
    background: rgba(58, 110, 165, 0.14);
}

.btn-secondary:hover {
    background: rgba(58, 110, 165, 0.9);
    color: #edf3fb;
    box-shadow: 0 12px 28px rgba(58, 110, 165, 0.28);
}

.btn-film {
    border-color: rgba(34, 211, 238, 0.82);
    background: rgba(34, 211, 238, 0.14);
}

.btn-film:hover {
    background: rgba(34, 211, 238, 0.92);
    color: #072126;
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.3);
}

.btn-accent {
    border-color: rgba(217, 119, 6, 0.78);
    background: rgba(217, 119, 6, 0.14);
}

.btn-accent:hover {
    background: rgba(217, 119, 6, 0.9);
    color: #1d1308;
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.26);
}

.hex-grid {
    opacity: 0.04;
}

.section-tag {
    color: #94abc8;
}

.section-title {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: #eef3fb;
    text-shadow: 0 0 18px rgba(58, 110, 165, 0.2);
}

.section-line {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #c1121f, #3a6ea5);
}

.glass-card {
    background: linear-gradient(165deg, rgba(16, 24, 35, 0.82), rgba(10, 16, 24, 0.72));
    border: 1px solid rgba(72, 92, 120, 0.34);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
}

.glass-card::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.card-glow {
    background: linear-gradient(135deg, rgba(193, 18, 31, 0.6), rgba(58, 110, 165, 0.5));
}

.intro-text,
.about-text p,
.timeline-company,
.timeline-description li,
.project-description,
.form-success p {
    color: var(--text-secondary);
}

.highlight {
    color: #a9c3e1;
}

.expertise-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(72, 92, 120, 0.28);
}

.expertise-item:hover {
    background: rgba(58, 110, 165, 0.12);
    border-color: rgba(193, 18, 31, 0.72);
    transform: translateX(6px);
}

.expertise-icon {
    background: linear-gradient(135deg, #c1121f, #3a6ea5);
}

.expertise-item h4,
.timeline-title,
.project-title,
.skill-name {
    color: #edf3fb;
}

.timeline::before {
    background: linear-gradient(180deg, #c1121f, #3a6ea5);
}

.timeline-dot {
    background: #c1121f;
    border-color: #070a10;
    box-shadow: 0 0 16px rgba(193, 18, 31, 0.55);
}

.timeline-date,
.skill-percentage {
    color: #9bb8d8;
}

.timeline-description li::before {
    content: '>';
    color: #7ea4d2;
    font-size: 15px;
    font-weight: 700;
}

.skill-bar {
    background: rgba(255, 255, 255, 0.06);
}

.skill-progress {
    background: linear-gradient(90deg, #c1121f, #d97706, #3a6ea5);
    box-shadow: 0 0 18px rgba(58, 110, 165, 0.35);
}

.project-card {
    border: 1px solid rgba(72, 92, 120, 0.3);
}

.project-card:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.project-glow {
    background: radial-gradient(circle at center, rgba(58, 110, 165, 0.22), transparent 70%);
}

.project-icon {
    background: linear-gradient(135deg, #c1121f, #3a6ea5);
}

.tag {
    background: rgba(58, 110, 165, 0.12);
    border-color: rgba(58, 110, 165, 0.44);
    color: #c3d5ea;
}

.tag:hover {
    background: #c1121f;
    border-color: #c1121f;
    color: #f8fbff;
}

.form-group label {
    color: #a9c3e1;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(72, 92, 120, 0.42);
    border-radius: 10px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3a6ea5;
    background: rgba(58, 110, 165, 0.1);
    box-shadow: 0 0 18px rgba(58, 110, 165, 0.24);
}

.input-border {
    background: linear-gradient(90deg, #c1121f, #3a6ea5);
}

.submit-btn {
    background: linear-gradient(135deg, #c1121f, #3a6ea5);
    border-radius: 10px;
}

.submit-btn:hover {
    box-shadow: 0 14px 34px rgba(58, 110, 165, 0.28), 0 14px 34px rgba(193, 18, 31, 0.2);
}

.success-icon svg,
.form-success h3 {
    color: #9fc1e7;
}

.back-btn {
    background: rgba(58, 110, 165, 0.18);
    border-color: rgba(58, 110, 165, 0.6);
}

.back-btn:hover {
    background: #3a6ea5;
    box-shadow: 0 0 18px rgba(58, 110, 165, 0.35);
}

.footer {
    background: #0c1118;
    border-top: 1px solid rgba(72, 92, 120, 0.28);
}

.reveal-up {
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left {
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .nav-menu {
        background: rgba(10, 16, 24, 0.97);
        border-top: 1px solid rgba(72, 92, 120, 0.3);
    }

    .galaxy-rotor {
        opacity: 0.14;
        filter: blur(1.2px);
    }

    .rotor-a {
        width: 160vw;
        height: 26vh;
    }

    .rotor-b {
        width: 126vw;
        height: 20vh;
    }

    .rotor-c {
        display: none;
    }

    .galaxy-orbit {
        opacity: 0.14;
    }

    .orbit-3 {
        display: none;
    }
}

/* Cross-device hardening */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-tertiary);
    min-height: 20px;
}

.form-status.info {
    color: #9bb8d8;
}

.form-status.error {
    color: #f6a6ac;
}

.form-status a {
    color: #9fc1e7;
    text-decoration: underline;
}

.submit-btn:disabled,
.submit-btn.is-loading {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.submit-btn.is-loading .btn-icon {
    opacity: 0.8;
}

.project-title,
.project-description,
.timeline-title,
.timeline-company,
.timeline-description li,
.skill-name {
    overflow-wrap: anywhere;
}

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

@media (max-width: 360px) {
    .hero-btn {
        padding: 13px 16px;
        font-size: 14px;
    }

    .timeline-content,
    .timeline-item:nth-of-type(odd) .timeline-content,
    .timeline-item:nth-of-type(even) .timeline-content {
        width: calc(100% - 68px);
        margin-left: 68px;
    }

    .section-title {
        font-size: 1.7rem;
    }
}

@media (hover: none) {
    .project-card:hover {
        transform: none;
    }

    .expertise-item:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Tactical timeline layout: desktop zig-zag, mobile stack */
.experience-section .timeline {
    position: relative;
}

.experience-section .timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #c1121f, #3a6ea5);
    opacity: 0.85;
}

.timeline-item {
    position: relative;
}

.timeline-content {
    width: calc(50% - 56px);
}

.timeline-item:nth-of-type(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    text-align: right;
}

.timeline-item:nth-of-type(odd) .timeline-description li {
    padding-left: 0;
    padding-right: 25px;
}

.timeline-item:nth-of-type(odd) .timeline-description li::before {
    left: auto;
    right: 0;
}

.timeline-item:nth-of-type(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

@media (max-width: 1024px) {
    .experience-section .timeline::before {
        left: 30px;
        transform: none;
    }

    .timeline-dot {
        left: 30px;
        transform: translateX(0);
    }

    .timeline-content,
    .timeline-item:nth-of-type(odd) .timeline-content,
    .timeline-item:nth-of-type(even) .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-item:nth-of-type(odd) .timeline-description li,
    .timeline-item:nth-of-type(even) .timeline-description li {
        padding-left: 25px;
        padding-right: 0;
    }

    .timeline-item:nth-of-type(odd) .timeline-description li::before,
    .timeline-item:nth-of-type(even) .timeline-description li::before {
        left: 0;
        right: auto;
    }
}

/* Games Section */
.games-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 10;
}

.game-shell {
    padding: 24px;
}

.game-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.game-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    color: #bfd0e6;
    font-size: 14px;
}

.game-stats strong {
    color: #f6fbff;
}

.game-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.game-btn {
    border: 1px solid rgba(86, 116, 155, 0.6);
    background: rgba(58, 110, 165, 0.18);
    color: #dce8f8;
    font-family: var(--font-secondary);
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.game-btn:hover {
    background: rgba(58, 110, 165, 0.9);
    color: #f5f9ff;
}

.game-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.game-canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    border: 1px solid rgba(86, 116, 155, 0.45);
    background: radial-gradient(circle at 50% 40%, rgba(24, 41, 72, 0.55), rgba(6, 10, 18, 0.95));
    box-shadow: inset 0 0 40px rgba(49, 85, 150, 0.14);
    touch-action: none;
}

.game-status {
    margin-top: 12px;
    font-size: 14px;
    color: #a8bdd8;
    line-height: 1.5;
    min-height: 22px;
}

.game-mobile-controls {
    display: none;
}

.game-mobile-btn {
    border: 1px solid rgba(106, 146, 196, 0.65);
    background: rgba(44, 89, 142, 0.22);
    color: #e7f1ff;
    font-family: var(--font-secondary);
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 12px 10px;
    min-height: 46px;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: var(--transition-smooth);
}

.game-mobile-btn:active {
    transform: translateY(1px);
    background: rgba(65, 126, 194, 0.45);
}

.game-mobile-btn-fire {
    background: linear-gradient(120deg, rgba(220, 73, 84, 0.35), rgba(165, 54, 73, 0.42));
    border-color: rgba(236, 129, 136, 0.75);
}

.game-mobile-btn-pause {
    background: rgba(108, 130, 161, 0.25);
}

@media (max-width: 768px) {
    .game-shell {
        padding: 18px;
    }

    .game-topbar {
        gap: 12px;
    }

    .game-stats {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        font-size: 13px;
    }

    .game-controls {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .game-btn {
        width: 100%;
        padding: 8px 10px;
        font-size: 14px;
    }
}

@media (hover: none), (pointer: coarse), (max-width: 768px) {
    .game-canvas {
        touch-action: pan-y;
    }

    .game-mobile-controls {
        margin-top: 12px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .game-mobile-btn {
        font-size: 12px;
        padding: 11px 8px;
    }
}

