/* ============================================
   DEEP WEB GATEWAY - COSMIC PREMIUM DESIGN
   Gateway to the Deep Web Universe
   ============================================ */

/* CSS Variables - Cosmic Theme */
:root {
    /* Deep Space Colors */
    --void: #020408;
    --cosmos: #050a14;
    --nebula: #0a1428;
    --dark-matter: #0f1f3c;
    
    /* Text */
    --text-bright: #ffffff;
    --text-light: #e2e8f0;
    --text-grey: #94a3b8;
    --text-muted: #64748b;
    
    /* Cosmic Accents */
    --portal-cyan: #06b6d4;
    --portal-cyan-light: #22d3ee;
    --portal-glow: rgba(6, 182, 212, 0.6);
    
    --wormhole-purple: #8b5cf6;
    --wormhole-light: #a78bfa;
    --wormhole-glow: rgba(139, 92, 246, 0.5);
    
    --quantum-green: #10b981;
    --quantum-glow: rgba(16, 185, 129, 0.5);
    
    --energy-gold: #f59e0b;
    --energy-glow: rgba(245, 158, 11, 0.5);
    
    --danger-red: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.4);
    
    /* Glass Effects */
    --glass-bg: rgba(10, 20, 40, 0.7);
    --glass-border: rgba(6, 182, 212, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    
    /* Borders & Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* Fonts */
    --font-display: 'Orbitron', 'Rajdhani', sans-serif;
    --font-main: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Animation */
    --ease-cosmic: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--void);
    color: var(--text-light);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ============================================
   COSMIC BACKGROUND - DEEP SPACE PORTAL
   ============================================ */

.cosmic-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 90%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        var(--void);
}

/* Starfield Layer 1 - Distant Stars */
.starfield {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1.5px 1.5px at 160px 120px, var(--portal-cyan), transparent),
        radial-gradient(1px 1px at 200px 200px, rgba(255,255,255,0.4), transparent);
    background-size: 250px 250px;
    animation: starDrift 100s linear infinite;
}

@keyframes starDrift {
    from { transform: translateY(0); }
    to { transform: translateY(-250px); }
}

/* Starfield Layer 2 - Brighter Stars */
.starfield-2 {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1.5px 1.5px at 100px 50px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 250px 150px, var(--wormhole-light), transparent),
        radial-gradient(1.5px 1.5px at 350px 250px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 450px 100px, var(--portal-cyan-light), transparent);
    background-size: 500px 400px;
    animation: starDrift2 80s linear infinite;
}

@keyframes starDrift2 {
    from { transform: translateY(0) translateX(0); }
    to { transform: translateY(-400px) translateX(-100px); }
}

/* Central Wormhole Portal */
.wormhole-portal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    pointer-events: none;
}

.wormhole-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid;
    opacity: 0.3;
}

.wormhole-ring-1 {
    width: 200px;
    height: 200px;
    border-color: var(--portal-cyan);
    box-shadow: 
        0 0 30px var(--portal-glow),
        inset 0 0 30px var(--portal-glow);
    animation: ringPulse 4s ease-in-out infinite, ringRotate 20s linear infinite;
}

.wormhole-ring-2 {
    width: 350px;
    height: 350px;
    border-color: var(--wormhole-purple);
    box-shadow: 0 0 40px var(--wormhole-glow);
    animation: ringPulse 5s ease-in-out infinite 0.5s, ringRotate 30s linear infinite reverse;
}

.wormhole-ring-3 {
    width: 500px;
    height: 500px;
    border-color: var(--portal-cyan);
    opacity: 0.2;
    animation: ringPulse 6s ease-in-out infinite 1s, ringRotate 40s linear infinite;
}

.wormhole-ring-4 {
    width: 700px;
    height: 700px;
    border-color: var(--wormhole-purple);
    opacity: 0.1;
    animation: ringPulse 7s ease-in-out infinite 1.5s, ringRotate 50s linear infinite reverse;
}

@keyframes ringPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.5; }
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Wormhole Core */
.wormhole-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--portal-cyan) 0%, var(--wormhole-purple) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.5;
    animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.7; }
}

/* Data Streams - Flowing Data */
.data-streams {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.data-stream {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--portal-cyan), transparent);
    opacity: 0.4;
    animation: dataFlow 4s linear infinite;
}

.data-stream:nth-child(1) { left: 10%; height: 100px; animation-delay: 0s; }
.data-stream:nth-child(2) { left: 25%; height: 150px; animation-delay: 0.5s; }
.data-stream:nth-child(3) { left: 40%; height: 80px; animation-delay: 1s; }
.data-stream:nth-child(4) { left: 55%; height: 120px; animation-delay: 1.5s; }
.data-stream:nth-child(5) { left: 70%; height: 90px; animation-delay: 2s; }
.data-stream:nth-child(6) { left: 85%; height: 130px; animation-delay: 2.5s; }

@keyframes dataFlow {
    0% { transform: translateY(-100%); opacity: 0; }
    20% { opacity: 0.4; }
    80% { opacity: 0.4; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--portal-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--portal-glow);
    animation: particleFloat 15s ease-in-out infinite;
}

.particle:nth-child(1) { left: 15%; top: 20%; animation-delay: 0s; background: var(--portal-cyan); }
.particle:nth-child(2) { left: 35%; top: 60%; animation-delay: 2s; background: var(--wormhole-purple); }
.particle:nth-child(3) { left: 55%; top: 30%; animation-delay: 4s; background: var(--quantum-green); }
.particle:nth-child(4) { left: 75%; top: 70%; animation-delay: 6s; background: var(--portal-cyan); }
.particle:nth-child(5) { left: 90%; top: 40%; animation-delay: 8s; background: var(--wormhole-purple); }

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate(20px, -30px) scale(1.2); opacity: 0.9; }
    50% { transform: translate(-10px, 20px) scale(0.8); opacity: 0.5; }
    75% { transform: translate(30px, 10px) scale(1.1); opacity: 0.8; }
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background: rgba(5, 10, 20, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-bright);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.logo:hover {
    color: var(--text-bright);
}

.logo-icon {
    width: 48px;
    height: 48px;
    position: relative;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    color: var(--portal-cyan);
    filter: drop-shadow(0 0 10px var(--portal-glow));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 10px var(--portal-glow)); }
    50% { filter: drop-shadow(0 0 20px var(--portal-glow)); }
}

.logo-text {
    background: linear-gradient(135deg, var(--text-bright) 0%, var(--portal-cyan) 50%, var(--wormhole-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: textShimmer 5s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav {
    display: flex;
    gap: 8px;
}

.nav a {
    color: var(--text-grey);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-cosmic);
    text-decoration: none;
}

.nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--portal-cyan), var(--wormhole-purple));
    opacity: 0;
    transition: opacity 0.3s var(--ease-cosmic);
    border-radius: inherit;
}

.nav a:hover {
    color: var(--text-bright);
}

.nav a:hover::before {
    opacity: 0.15;
}

.nav a span {
    position: relative;
    z-index: 1;
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ============================================
   MAIN
   ============================================ */

.main {
    flex: 1;
    position: relative;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 500px;
    background: radial-gradient(ellipse, var(--portal-glow) 0%, transparent 60%);
    opacity: 0.2;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--portal-cyan-light);
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 36px;
    animation: badgePulse 4s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.2), inset 0 0 20px rgba(6, 182, 212, 0.05); }
    50% { box-shadow: 0 0 40px rgba(6, 182, 212, 0.4), inset 0 0 30px rgba(6, 182, 212, 0.1); }
}

.hero-badge svg {
    width: 18px;
    height: 18px;
    animation: iconSpin 10s linear infinite;
}

@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 28px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-title .title-line-1 {
    display: block;
    background: linear-gradient(135deg, var(--text-bright) 0%, var(--portal-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .title-line-2 {
    display: block;
    background: linear-gradient(135deg, var(--portal-cyan) 0%, var(--wormhole-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.7em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-grey);
    max-width: 750px;
    margin: 0 auto 48px;
    line-height: 1.9;
}

.hero-disclaimer {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--energy-gold);
    padding: 18px 32px;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 500;
    animation: disclaimerGlow 4s ease-in-out infinite;
}

@keyframes disclaimerGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.1); }
    50% { box-shadow: 0 0 35px rgba(245, 158, 11, 0.2); }
}

.hero-disclaimer svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    animation: warningBounce 2s ease-in-out infinite;
}

@keyframes warningBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: linear-gradient(180deg, var(--cosmos) 0%, var(--void) 100%);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--text-bright), var(--portal-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    color: var(--text-grey);
    text-align: center;
    max-width: 650px;
    margin: 0 auto 70px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ============================================
   PROJECT CARDS - PREMIUM GATEWAY STYLE
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 36px;
    transition: all 0.5s var(--ease-cosmic);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--portal-cyan), var(--wormhole-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-cosmic);
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, var(--portal-glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-cosmic);
    pointer-events: none;
}

.project-card:hover {
    border-color: var(--portal-cyan);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(6, 182, 212, 0.2),
        0 0 80px rgba(6, 182, 212, 0.1);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover::after {
    opacity: 0.15;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.project-status {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-muted);
    position: relative;
}

.project-status.online {
    background: var(--quantum-green);
    box-shadow: 0 0 15px var(--quantum-glow);
    animation: statusGlow 2s ease-in-out infinite;
}

@keyframes statusGlow {
    0%, 100% { box-shadow: 0 0 15px var(--quantum-glow); }
    50% { box-shadow: 0 0 25px var(--quantum-glow); }
}

.project-status.offline {
    background: var(--danger-red);
    box-shadow: 0 0 15px var(--danger-glow);
}

.project-category {
    font-family: var(--font-display);
    font-size: 0.65rem;
    color: var(--portal-cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 6px 14px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.project-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    transition: all 0.5s var(--ease-cosmic);
    position: relative;
    overflow: hidden;
}

.project-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--portal-cyan), var(--wormhole-purple));
    opacity: 0;
    transition: opacity 0.5s var(--ease-cosmic);
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px var(--portal-glow);
}

.project-card:hover .project-icon::before {
    opacity: 0.2;
}

.project-icon svg {
    width: 32px;
    height: 32px;
    color: var(--portal-cyan);
    position: relative;
    z-index: 1;
}

.project-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.project-description {
    color: var(--text-grey);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 28px;
    font-family: var(--font-mono);
}

.project-meta svg {
    width: 18px;
    height: 18px;
    color: var(--portal-cyan);
}

.project-actions {
    display: flex;
    gap: 14px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.4s var(--ease-cosmic);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s var(--ease-cosmic);
}

.btn-primary {
    background: linear-gradient(135deg, var(--portal-cyan), var(--wormhole-purple));
    color: white;
    box-shadow: 0 4px 25px var(--portal-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--wormhole-purple), var(--portal-cyan));
    opacity: 0;
    transition: opacity 0.4s var(--ease-cosmic);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 35px var(--portal-glow),
        0 0 50px rgba(6, 182, 212, 0.2);
    color: white;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--text-grey);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--portal-cyan);
    color: var(--text-bright);
}

.btn-large {
    padding: 20px 40px;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
}

.btn-large svg {
    width: 22px;
    height: 22px;
}

/* Pulsing Button Animation */
.btn-pulse {
    animation: btnPulse 3s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 25px var(--portal-glow); }
    50% { box-shadow: 0 4px 40px var(--portal-glow), 0 0 60px rgba(6, 182, 212, 0.3); }
}

.btn-pulse:hover {
    animation: none;
}

/* ============================================
   INFO CARDS
   ============================================ */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.info-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    transition: all 0.5s var(--ease-cosmic);
    backdrop-filter: blur(15px);
}

.info-card:hover {
    border-color: var(--portal-cyan);
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s var(--ease-cosmic);
}

.info-card:hover .info-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 0 40px var(--portal-glow);
}

.info-icon svg {
    width: 36px;
    height: 36px;
    color: var(--portal-cyan);
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.info-card p {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ============================================
   LEGAL NOTICE
   ============================================ */

.legal-notice {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 56px;
    text-align: center;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.legal-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--energy-gold), var(--portal-cyan), var(--wormhole-purple));
}

.legal-notice h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    letter-spacing: 0.02em;
}

.legal-notice h3 svg {
    width: 36px;
    height: 36px;
    color: var(--energy-gold);
    animation: warningBounce 2s ease-in-out infinite;
}

.legal-notice p {
    color: var(--text-grey);
    max-width: 750px;
    margin: 0 auto 18px;
    font-size: 1.05rem;
    line-height: 1.9;
}

.legal-notice .btn {
    margin-top: 28px;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
    font-size: 0.9rem;
}

.breadcrumb a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-grey);
    text-decoration: none;
    transition: color 0.3s var(--ease-cosmic);
}

.breadcrumb a:hover {
    color: var(--portal-cyan);
}

.breadcrumb svg {
    width: 18px;
    height: 18px;
}

.breadcrumb > span {
    color: var(--text-muted);
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    margin-bottom: 56px;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-header h1 svg {
    width: 56px;
    height: 56px;
    color: var(--portal-cyan);
    filter: drop-shadow(0 0 15px var(--portal-glow));
    animation: logoGlow 3s ease-in-out infinite;
}

.page-description {
    color: var(--text-grey);
    font-size: 1.25rem;
    line-height: 1.7;
}

/* ============================================
   DISCLAIMER BOX
   ============================================ */

.disclaimer-box {
    display: flex;
    gap: 24px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 56px;
    backdrop-filter: blur(10px);
}

.disclaimer-box > svg {
    width: 32px;
    height: 32px;
    color: var(--energy-gold);
    flex-shrink: 0;
    animation: warningBounce 2s ease-in-out infinite;
}

.disclaimer-box strong {
    display: block;
    color: var(--energy-gold);
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-family: var(--font-display);
}

.disclaimer-box p {
    color: var(--text-grey);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.8;
}

/* ============================================
   SECTION SUBTITLE
   ============================================ */

.section-subtitle {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: 0.02em;
}

.section-subtitle svg {
    width: 30px;
    height: 30px;
    color: var(--portal-cyan);
}

/* ============================================
   MIRRORS LIST - PREMIUM GATEWAY CARDS
   ============================================ */

.mirrors-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 56px;
}

.mirror-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    transition: all 0.4s var(--ease-cosmic);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.mirror-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--portal-cyan), var(--wormhole-purple));
    transform: scaleY(0);
    transition: transform 0.4s var(--ease-cosmic);
}

.mirror-card:hover {
    border-color: var(--portal-cyan);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.15);
    transform: translateX(10px);
}

.mirror-card:hover::before {
    transform: scaleY(1);
}

.mirror-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.mirror-status {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-muted);
}

.mirror-status.online {
    background: var(--quantum-green);
    box-shadow: 0 0 15px var(--quantum-glow);
    animation: statusGlow 2s ease-in-out infinite;
}

.mirror-status.slow {
    background: var(--energy-gold);
    box-shadow: 0 0 15px var(--energy-glow);
}

.mirror-status.offline {
    background: var(--danger-red);
    box-shadow: 0 0 15px var(--danger-glow);
}

.mirror-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mirror-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.mirror-region {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mirror-region svg {
    width: 14px;
    height: 14px;
    color: var(--portal-cyan);
}

.mirror-url {
    flex: 1;
    background: rgba(2, 4, 8, 0.6);
    padding: 16px 22px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--portal-cyan-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 200px;
    border: 1px solid var(--glass-border);
}

.mirror-actions {
    margin-left: auto;
}

/* ============================================
   INFO BOX
   ============================================ */

.info-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 48px;
    backdrop-filter: blur(10px);
}

.info-box h3 {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}

.info-box h3 svg {
    width: 28px;
    height: 28px;
    color: var(--portal-cyan);
}

.info-box ol {
    padding-left: 28px;
    color: var(--text-grey);
}

.info-box li {
    margin-bottom: 16px;
    padding-left: 10px;
    line-height: 1.8;
}

.info-box li::marker {
    color: var(--portal-cyan);
    font-weight: 700;
    font-family: var(--font-display);
}

.info-box a {
    color: var(--portal-cyan);
    text-decoration: underline;
    text-decoration-color: rgba(6, 182, 212, 0.3);
    transition: all 0.3s var(--ease-cosmic);
}

.info-box a:hover {
    color: var(--portal-cyan-light);
    text-decoration-color: var(--portal-cyan);
}

/* ============================================
   REDIRECT PAGE - PORTAL GATEWAY
   ============================================ */

.redirect-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 48px 0;
}

.redirect-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 64px;
    max-width: 700px;
    text-align: center;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.redirect-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--portal-cyan), var(--wormhole-purple), var(--portal-cyan));
    background-size: 200% 100%;
    animation: gradientSlide 3s linear infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.redirect-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 40px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
    border: 2px solid rgba(6, 182, 212, 0.4);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: portalFloat 4s ease-in-out infinite;
    position: relative;
}

.redirect-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 34px;
    animation: ringExpand 2s ease-in-out infinite;
}

@keyframes portalFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes ringExpand {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

.redirect-icon svg {
    width: 48px;
    height: 48px;
    color: var(--portal-cyan);
    filter: drop-shadow(0 0 10px var(--portal-glow));
}

.redirect-card h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--text-bright), var(--portal-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.redirect-info {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.redirect-info .label {
    color: var(--text-muted);
}

.redirect-info .value {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--portal-cyan-light);
}

.redirect-url {
    background: rgba(2, 4, 8, 0.7);
    padding: 22px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--portal-cyan);
    margin-bottom: 32px;
    word-break: break-all;
    border: 1px solid var(--glass-border);
    text-align: left;
}

.redirect-warning {
    display: flex;
    gap: 18px;
    text-align: left;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 32px;
}

.redirect-warning svg {
    width: 28px;
    height: 28px;
    color: var(--danger-red);
    flex-shrink: 0;
    animation: warningBounce 2s ease-in-out infinite;
}

.redirect-warning strong {
    color: var(--danger-red);
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.redirect-warning p {
    color: var(--text-grey);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

.redirect-disclaimer {
    text-align: left;
    margin-bottom: 40px;
    background: rgba(6, 182, 212, 0.05);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid rgba(6, 182, 212, 0.1);
}

.redirect-disclaimer h3 {
    font-size: 1.05rem;
    margin-bottom: 18px;
    color: var(--portal-cyan-light);
    font-family: var(--font-display);
}

.redirect-disclaimer ul {
    padding-left: 24px;
    color: var(--text-grey);
    font-size: 0.9rem;
}

.redirect-disclaimer li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.redirect-disclaimer li::marker {
    color: var(--portal-cyan);
}

.redirect-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.redirect-note {
    margin-top: 32px;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.redirect-note svg {
    width: 14px;
    height: 14px;
}

/* Countdown Timer */
.countdown-container {
    margin-bottom: 32px;
}

.countdown-text {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.countdown-timer {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--portal-cyan);
    text-shadow: 0 0 30px var(--portal-glow);
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================
   CONTENT BLOCKS
   ============================================ */

.content-block {
    margin-bottom: 56px;
}

.content-block h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: 0.02em;
}

.content-block h2 svg {
    width: 30px;
    height: 30px;
    color: var(--portal-cyan);
}

.content-block p {
    color: var(--text-grey);
    margin-bottom: 18px;
    line-height: 1.9;
    font-size: 1.05rem;
}

.content-block ul {
    padding-left: 28px;
    color: var(--text-grey);
}

.content-block li {
    margin-bottom: 14px;
    line-height: 1.8;
}

.content-block li::marker {
    color: var(--portal-cyan);
}

.legal-content {
    max-width: 850px;
}

.legal-date {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   ERROR PAGES
   ============================================ */

.error-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.error-card {
    text-align: center;
}

.error-code {
    font-family: var(--font-display);
    font-size: 12rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--portal-cyan), var(--wormhole-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 24px;
    opacity: 0.4;
    animation: errorGlow 3s ease-in-out infinite;
}

@keyframes errorGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

.error-card h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.error-card p {
    color: var(--text-grey);
    margin-bottom: 48px;
    font-size: 1.15rem;
}

/* ============================================
   BACK LINK
   ============================================ */

.back-link {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}

.back-link a {
    color: var(--text-grey);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s var(--ease-cosmic);
}

.back-link a svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease-cosmic);
}

.back-link a:hover {
    color: var(--portal-cyan);
}

.back-link a:hover svg {
    transform: translateX(-6px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--cosmos);
    border-top: 1px solid var(--glass-border);
    padding: 72px 0 36px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: var(--text-bright);
    letter-spacing: 0.02em;
}

.footer-section p {
    color: var(--text-grey);
    font-size: 0.9rem;
    margin-bottom: 14px;
    line-height: 1.8;
}

.footer-section a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-grey);
    font-size: 0.9rem;
    padding: 10px 0;
    text-decoration: none;
    transition: all 0.3s var(--ease-cosmic);
}

.footer-section a svg {
    width: 18px;
    height: 18px;
    color: var(--portal-cyan);
}

.footer-section a:hover {
    color: var(--text-bright);
    transform: translateX(4px);
}

.footer-section .disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--void);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--portal-cyan), var(--wormhole-purple));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--portal-cyan-light), var(--wormhole-light));
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 18px 24px;
        gap: 18px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title .title-line-2 {
        font-size: 0.6em;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    
    .mirror-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mirror-actions {
        margin-left: 0;
    }
    
    .redirect-card {
        padding: 40px 28px;
    }
    
    .redirect-card h1 {
        font-size: 1.7rem;
    }
    
    .error-code {
        font-size: 7rem;
    }
    
    .wormhole-portal {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        padding: 10px 20px;
        font-size: 0.65rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-disclaimer {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.8rem;
    }
    
    .btn-large {
        padding: 16px 28px;
    }
    
    .project-card {
        padding: 28px;
    }
    
    .countdown-timer {
        font-size: 2.2rem;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   GPU Acceleration & Low-Power Device Support
   ============================================ */

/* GPU Acceleration Hints */
.cosmic-bg,
.starfield,
.starfield-2,
.wormhole-portal,
.wormhole-ring,
.wormhole-core,
.data-stream,
.particle,
.project-card,
.btn,
.logo-icon svg {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce paint areas */
.project-card::before,
.project-card::after,
.btn::before,
.redirect-icon::before {
    contain: strict;
}

/* ============================================
   REDUCED MOTION - Accessibility
   For users who prefer reduced motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .starfield,
    .starfield-2,
    .data-streams,
    .particles,
    .wormhole-portal {
        display: none !important;
    }
    
    .cosmic-bg {
        background: 
            radial-gradient(ellipse at 50% 0%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
            var(--void);
    }
    
    .logo-icon svg,
    .project-status.online,
    .hero-badge,
    .hero-disclaimer svg,
    .redirect-icon,
    .countdown-timer {
        animation: none !important;
    }
    
    .btn-pulse {
        animation: none !important;
        box-shadow: 0 4px 25px var(--portal-glow);
    }
}

/* ============================================
   MOBILE PERFORMANCE MODE
   Simplified animations for mobile devices
   ============================================ */

@media (max-width: 768px) {
    /* Disable heavy background animations on mobile */
    .starfield,
    .starfield-2 {
        animation: none;
        opacity: 0.3;
    }
    
    .data-streams {
        display: none;
    }
    
    .particles {
        display: none;
    }
    
    .wormhole-ring {
        animation: none;
        opacity: 0.15;
    }
    
    .wormhole-core {
        animation: none;
    }
    
    /* Simplify card animations */
    .project-card:hover {
        transform: translateY(-6px);
    }
    
    .project-card:hover .project-icon {
        transform: scale(1.05);
    }
    
    /* Reduce glow effects */
    .project-status.online {
        animation: none;
        box-shadow: 0 0 8px var(--quantum-glow);
    }
    
    .btn-primary {
        box-shadow: 0 2px 15px var(--portal-glow);
    }
    
    .btn-pulse {
        animation: none;
    }
    
    /* Simplify logo animation */
    .logo-icon svg {
        animation: none;
        filter: drop-shadow(0 0 8px var(--portal-glow));
    }
    
    /* Reduce hero effects */
    .hero::before {
        opacity: 0.1;
    }
    
    .hero-badge {
        animation: none;
        box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
    }
    
    /* Simplify redirect page */
    .redirect-icon {
        animation: none;
    }
    
    .redirect-icon::before {
        display: none;
    }
    
    /* Reduce backdrop blur for performance */
    .header,
    .project-card,
    .info-card,
    .redirect-card,
    .legal-notice {
        backdrop-filter: blur(8px);
    }
}

/* ============================================
   LOW POWER MODE
   Extra optimizations for weak devices
   ============================================ */

@media (max-width: 480px), 
       (hover: none) and (pointer: coarse) {
    /* Completely disable complex backgrounds */
    .cosmic-bg {
        background: var(--void);
    }
    
    .cosmic-bg::before,
    .cosmic-bg::after {
        display: none;
    }
    
    .starfield,
    .starfield-2,
    .wormhole-portal,
    .data-streams,
    .particles {
        display: none !important;
    }
    
    /* Static gradient background instead */
    body {
        background: linear-gradient(180deg, var(--void) 0%, var(--cosmos) 50%, var(--void) 100%);
    }
    
    /* Disable all hover transforms */
    .project-card:hover,
    .info-card:hover,
    .btn:hover {
        transform: none;
    }
    
    .project-card:hover .project-icon {
        transform: none;
    }
    
    /* Remove all box shadows on hover */
    .project-card:hover {
        box-shadow: none;
        border-color: var(--portal-cyan);
    }
    
    .btn-primary:hover {
        box-shadow: 0 2px 10px var(--portal-glow);
    }
    
    /* Disable backdrop blur completely */
    .header,
    .project-card,
    .info-card,
    .redirect-card,
    .legal-notice,
    .mirror-card,
    .info-box,
    .disclaimer-box {
        backdrop-filter: none;
        background: rgba(10, 20, 40, 0.95);
    }
    
    /* Simpler gradients */
    .btn-primary {
        background: var(--portal-cyan);
    }
    
    .btn-primary::before {
        display: none;
    }
    
    /* Remove pseudo-element animations */
    .project-card::before,
    .project-card::after,
    .redirect-card::before {
        display: none;
    }
    
    /* Simplify scrollbar */
    ::-webkit-scrollbar-thumb {
        background: var(--portal-cyan);
    }
    
    /* Reduce font loading */
    .hero-title,
    .section-title,
    .project-name,
    .btn {
        font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

@media (hover: none) {
    /* Remove hover states on touch devices */
    .project-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Active states for touch */
    .project-card:active {
        transform: scale(0.98);
        border-color: var(--portal-cyan);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .mirror-card {
        padding: 20px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .cosmic-bg,
    .starfield,
    .starfield-2,
    .wormhole-portal,
    .data-streams,
    .particles {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .header,
    .footer {
        display: none;
    }
    
    .project-card,
    .info-card {
        border: 1px solid #ccc;
        background: white;
        page-break-inside: avoid;
    }
}
