/* app/static/css/custom.css */
/* TeacherPro KZ - Exact Match to Uploaded Images */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --light-cream: #f8f8f8;
    --soft-white: #fafafa;
    --card-white: #ffffff;
    --dark-end: #2a2a2a;
    --text-black: #22d3ee;
    --text-gray: #666666;
    --accent-blue: #4a90e2;
    --accent-green: #10b981;
    --accent-purple: #9b59b6;
    /* Tech colors */
    --tech-cyan: #00ffff;
    --tech-blue: #0096ff;
    --tech-emerald: #10b981;
    --tech-dark: #0a0a0a;
    --tech-grid: rgba(0, 255, 255, 0.03);
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Ақ фон */
    background: #ffffff;
    min-height: 100vh;
    color: var(--text-black);
    position: relative;
    overflow-x: hidden;
}

/* Пиксел эффектілері жойылды - ақ фон қалды */
body::before,
body::after {
    display: none;
}

/* Navigation - light pages */
body:not(.tech-bg) nav {
    background: rgba(248, 248, 248, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Tech nav */
body.tech-bg nav {
    background: rgba(8, 8, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 200, 255, 0.12);
    box-shadow: 0 1px 20px rgba(0, 200, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

body:not(.tech-bg) nav a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color: #1a1a1a;
}

body:not(.tech-bg) nav a:hover {
    color: var(--accent-blue) !important;
}

body:not(.tech-bg) nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

body:not(.tech-bg) nav a:hover::after {
    width: 80%;
}

/* Tech page nav links inherit their Tailwind color classes */
body.tech-bg nav a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Main content */
main {
    position: relative;
    z-index: 10;
}

/* Hero section full width */
main .hero-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Clean IT-Style Pixelated Background Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #0f0f0f;
    isolation: isolate;
}

/* Base dark background with subtle tech gradient */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 200, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 150, 255, 0.02) 0%, transparent 50%),
        #0f0f0f;
    z-index: 0;
    animation: gradientShift 15s ease infinite;
}

/* Subtle scanline overlay */
.hero-section {
    position: relative;
}

.hero-section::before {
    z-index: 2;
}

/* Scanline effect using pseudo-element */
.hero-section::after {
    background-image: 
        linear-gradient(
            transparent 50%,
            rgba(0, 200, 255, 0.015) 50%
        ),
        radial-gradient(circle at 20% 30%, rgba(0, 200, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 150, 255, 0.02) 0%, transparent 50%),
        #0f0f0f;
    background-size: 
        100% 4px,
        100% 100%,
        100% 100%,
        100% 100%;
    animation: 
        scanline 8s linear infinite,
        gradientShift 15s ease infinite;
}

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

/* Soft pixelated pattern - subtle and eye-friendly */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Softer pixel pattern with reduced opacity */
    background-image: 
        url("data:image/svg+xml,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='6' height='6' fill='%23000000'/%3E%3Crect x='6' y='6' width='6' height='6' fill='%23000000'/%3E%3Crect x='6' y='0' width='6' height='6' fill='%230080aa'/%3E%3Crect x='0' y='6' width='6' height='6' fill='%230080aa'/%3E%3C/svg%3E");
    background-size: 12px 12px;
    background-position: 0 0;
    opacity: 0.15;
    filter: blur(0.5px);
    
    /* Smooth dissolving mask */
    mask-image: 
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.8) 20%,
            rgba(0, 0, 0, 0.5) 35%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.05) 65%,
            rgba(0, 0, 0, 0) 75%,
            transparent 100%
        );
    -webkit-mask-image: 
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.8) 20%,
            rgba(0, 0, 0, 0.5) 35%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.05) 65%,
            rgba(0, 0, 0, 0) 75%,
            transparent 100%
        );
    
    /* Subtle fade animation */
    animation: pixelFade 20s ease-in-out infinite;
}

@keyframes pixelFade {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.25;
    }
}

/* Clean tech grid overlay - very subtle */
.hero-section {
    background-image: 
        /* Subtle tech grid lines */
        linear-gradient(rgba(0, 200, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 255, 0.015) 1px, transparent 1px),
        /* Base dark */
        #0f0f0f;
    background-size: 
        80px 80px,
        80px 80px,
        100% 100%;
    animation: gridPulse 12s ease-in-out infinite;
}

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

/* Scanline effect overlay */
.hero-section::after {
    background-image: 
        linear-gradient(
            transparent 50%,
            rgba(0, 200, 255, 0.01) 50%
        ),
        radial-gradient(circle at 20% 30%, rgba(0, 200, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 150, 255, 0.02) 0%, transparent 50%),
        #0f0f0f;
    background-size: 
        100% 4px,
        100% 100%,
        100% 100%,
        100% 100%;
    animation: 
        scanline 10s linear infinite,
        gradientShift 15s ease infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 0 100vh, 0 0, 0 0, 0 0;
    }
}

/* Buttons - light pages */
body:not(.tech-bg) .btn-primary,
body:not(.tech-bg) .bg-blue-600 {
    background: linear-gradient(135deg, var(--accent-blue), #3b7ac4) !important;
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.25);
}

body:not(.tech-bg) .btn-primary:hover,
body:not(.tech-bg) .bg-blue-600:hover {
    background: linear-gradient(135deg, #3b7ac4, #2d5f9a) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.35);
}

body:not(.tech-bg) .btn-success,
body:not(.tech-bg) .bg-green-600 {
    background: linear-gradient(135deg, var(--accent-green), #059669) !important;
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

body:not(.tech-bg) .btn-success:hover,
body:not(.tech-bg) .bg-green-600:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

body:not(.tech-bg) .bg-red-600 {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: white !important;
}

body:not(.tech-bg) .bg-red-600:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
}

/* Cards - light pages only */
body:not(.tech-bg) .card,
body:not(.tech-bg) .bg-white,
body:not(.tech-bg) [class*="bg-gray"] {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cards in hero section - dark theme */
.hero-section .card {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(0, 200, 255, 0.2) !important;
    color: white !important;
}

.hero-section .card h1,
.hero-section .card h2,
.hero-section .card h3,
.hero-section .card p,
.hero-section .card label,
.hero-section .card th,
.hero-section .card td {
    color: white !important;
}

.hero-section .card input,
.hero-section .card textarea,
.hero-section .card select {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(0, 200, 255, 0.3) !important;
    color: white !important;
}

.hero-section .card input:focus,
.hero-section .card textarea:focus,
.hero-section .card select:focus {
    border-color: rgba(0, 200, 255, 0.6) !important;
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.3) !important;
}

.hero-section .card input::placeholder,
.hero-section .card textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Date input styling */
.hero-section input[type="date"] {
    color-scheme: dark;
}

.hero-section input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.hero-section input[type="number"]::-webkit-inner-spin-button,
.hero-section input[type="number"]::-webkit-outer-spin-button {
    filter: invert(1);
}

.hero-section .card a {
    color: rgba(0, 200, 255, 0.8) !important;
}

.hero-section .card a:hover {
    color: rgba(0, 200, 255, 1) !important;
}

.hero-section .card button,
.hero-section .card .bg-blue-600,
.hero-section .card .bg-green-600 {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.8), rgba(0, 150, 255, 0.8)) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.4) !important;
}

.hero-section .card .bg-green-600 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(5, 150, 105, 0.8)) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4) !important;
}

.hero-section .card button:hover,
.hero-section .card .bg-blue-600:hover,
.hero-section .card .bg-green-600:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.6) !important;
}

.hero-section .card .bg-gray-600 {
    background: rgba(75, 85, 99, 0.8) !important;
    box-shadow: 0 0 10px rgba(75, 85, 99, 0.4) !important;
}

.hero-section .card .bg-gray-600:hover {
    background: rgba(75, 85, 99, 1) !important;
    box-shadow: 0 0 15px rgba(75, 85, 99, 0.6) !important;
}

.hero-section .card table thead {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.8), rgba(0, 150, 255, 0.8)) !important;
}

.hero-section .card table tbody tr {
    border-color: rgba(0, 200, 255, 0.2) !important;
}

.hero-section .card table tbody tr:hover {
    background: rgba(0, 200, 255, 0.1) !important;
}

body:not(.tech-bg) .card:hover,
body:not(.tech-bg) .bg-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(74, 144, 226, 0.15) !important;
}

/* Forms — light pages only */
body:not(.tech-bg) input,
body:not(.tech-bg) textarea,
body:not(.tech-bg) select {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: var(--text-black) !important;
    transition: all 0.3s ease;
}

body:not(.tech-bg) input:focus,
body:not(.tech-bg) textarea:focus,
body:not(.tech-bg) select:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1) !important;
    outline: none !important;
}

body:not(.tech-bg) input::placeholder,
body:not(.tech-bg) textarea::placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
}

body:not(.tech-bg) label {
    color: rgba(0, 0, 0, 0.8) !important;
    font-weight: 500;
}

/* Tables — light pages only */
body:not(.tech-bg) table {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body:not(.tech-bg) thead {
    background: linear-gradient(135deg, var(--accent-blue), #3b7ac4) !important;
    color: white !important;
}

body:not(.tech-bg) thead th {
    border: none !important;
    color: white !important;
}

body:not(.tech-bg) tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

body:not(.tech-bg) tbody tr:hover {
    background: rgba(74, 144, 226, 0.04);
}

body:not(.tech-bg) tbody td {
    color: rgba(0, 0, 0, 0.8);
}

/* Feature Cards - matching uploaded design */
.feature-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Clean feature cards - subtle tech theme */
.hero-section .feature-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 200, 255, 0.2);
    backdrop-filter: blur(12px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(0, 200, 255, 0.08),
        inset 0 0 15px rgba(0, 200, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section .feature-card:hover {
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(0, 200, 255, 0.35);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(0, 200, 255, 0.15),
        inset 0 0 25px rgba(0, 200, 255, 0.08);
    transform: translateY(-6px) scale(1.01);
}

/* Subtle tech card icons */
.tech-card-icon {
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.25);
    transition: all 0.4s ease;
}

.tech-card-icon:hover {
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.4);
    transform: scale(1.05);
}

/* Subtle neon text effect - clean IT style */
.neon-text {
    text-shadow: 
        0 0 8px currentColor,
        0 0 16px currentColor,
        0 0 24px currentColor;
    animation: neonPulse 3s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 
            0 0 8px currentColor,
            0 0 16px currentColor,
            0 0 24px currentColor;
        opacity: 1;
    }
    50% {
        text-shadow: 
            0 0 4px currentColor,
            0 0 8px currentColor,
            0 0 12px currentColor;
        opacity: 0.9;
    }
}

/* Clean tech title */
.tech-title {
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.3),
        0 0 16px rgba(0, 200, 255, 0.2);
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            0 0 8px rgba(255, 255, 255, 0.3),
            0 0 16px rgba(0, 200, 255, 0.2);
    }
    50% {
        text-shadow: 
            0 0 12px rgba(255, 255, 255, 0.4),
            0 0 24px rgba(0, 200, 255, 0.3);
    }
}

/* Subtle tech line */
.tech-line {
    box-shadow: 0 0 8px rgba(0, 200, 255, 0.4);
    animation: linePulse 3s ease-in-out infinite;
}

@keyframes linePulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(0, 200, 255, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 12px rgba(0, 200, 255, 0.6);
    }
}

/* Clean tech buttons with smooth animations */
.tech-button {
    box-shadow: 
        0 0 15px rgba(0, 200, 255, 0.3),
        0 0 30px rgba(0, 150, 255, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.tech-button:hover {
    box-shadow: 
        0 0 20px rgba(0, 200, 255, 0.5),
        0 0 40px rgba(0, 150, 255, 0.25);
    transform: translateY(-2px);
}

.tech-button:hover::before {
    left: 100%;
}

.tech-button-outline {
    box-shadow: 
        0 0 8px rgba(0, 200, 255, 0.25),
        inset 0 0 8px rgba(0, 200, 255, 0.08);
    transition: all 0.3s ease;
}

.tech-button-outline:hover {
    box-shadow: 
        0 0 15px rgba(0, 200, 255, 0.4),
        inset 0 0 15px rgba(0, 200, 255, 0.15);
    transform: translateY(-2px);
}

/* Subtle neon dots */
.neon-dot {
    box-shadow: 
        0 0 4px currentColor,
        0 0 8px currentColor;
    animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 
            0 0 4px currentColor,
            0 0 8px currentColor;
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
        box-shadow: 
            0 0 6px currentColor,
            0 0 12px currentColor;
    }
}

/* Clean tech stats */
.tech-stat {
    position: relative;
    padding: 1rem;
    border: 1px solid rgba(0, 200, 255, 0.15);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.tech-stat:hover {
    border-color: rgba(0, 200, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 0 15px rgba(0, 200, 255, 0.2),
        inset 0 0 15px rgba(0, 200, 255, 0.05);
    transform: translateY(-3px);
}

/* Monospace font for tech feel */
.font-mono {
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    letter-spacing: 0.05em;
}

/* Smooth scroll reveal animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section > * {
    animation: fadeInUp 0.8s ease-out backwards;
}

.hero-section > *:nth-child(1) { animation-delay: 0.1s; }
.hero-section > *:nth-child(2) { animation-delay: 0.2s; }
.hero-section > *:nth-child(3) { animation-delay: 0.3s; }
.hero-section > *:nth-child(4) { animation-delay: 0.4s; }
.hero-section > *:nth-child(5) { animation-delay: 0.5s; }

/* Scanline animation */
@keyframes scanline {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 0 100vh, 0 0, 0 0, 0 0;
    }
}

/* Code-like typing effect for stats */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Smooth hover transitions for all interactive elements */
.hero-section a,
.hero-section .feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Additional subtle effects layer */
.hero-section {
    position: relative;
}

/* Scanline effect overlay */
.hero-section::after {
    background-image: 
        linear-gradient(
            transparent 50%,
            rgba(0, 200, 255, 0.01) 50%
        ),
        radial-gradient(circle at 20% 30%, rgba(0, 200, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 150, 255, 0.02) 0%, transparent 50%),
        #0f0f0f;
    background-size: 
        100% 4px,
        100% 100%,
        100% 100%,
        100% 100%;
    animation: 
        scanline 10s linear infinite,
        gradientShift 15s ease infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 0 100vh, 0 0, 0 0, 0 0;
    }
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(74, 144, 226, 0.05) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(74, 144, 226, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Stat Cards */
.stat-card {
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.98);
}

.stat-card:hover {
    transform: translateY(-5px);
}

/* Alerts — light pages base style */
.alert {
    backdrop-filter: blur(10px);
}

body:not(.tech-bg) .alert {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-black);
}

.alert-success {
    border-left: 3px solid var(--accent-green);
}

.alert-danger {
    border-left: 3px solid #dc2626;
}

.alert-info {
    border-left: 3px solid var(--accent-blue);
}

/* Footer - light pages */
body:not(.tech-bg) footer {
    background: rgba(245, 245, 245, 0.98);
    border-top: 6px solid #000000;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Text colors — only for light (non-tech) pages */
.text-black {
    color: var(--text-black) !important;
}

/* On light pages gray shades */
.text-gray-300, .text-gray-400 {
    color: #999999 !important;
}

.text-gray-500, .text-gray-600 {
    color: var(--text-gray) !important;
}

.text-gray-700 {
    color: #4a4a4a !important;
}

/* On tech-bg pages — override ALL dark text to be visible */
body.tech-bg .text-white { color: rgba(220, 240, 255, 0.95) !important; }
body.tech-bg .text-gray-800 { color: rgba(200, 225, 245, 0.9) !important; }
body.tech-bg .text-gray-700 { color: rgba(170, 200, 225, 0.85) !important; }
body.tech-bg .text-gray-600 { color: rgba(140, 170, 200, 0.8) !important; }
body.tech-bg .text-gray-500 { color: rgba(110, 145, 175, 0.75) !important; }
body.tech-bg .text-gray-400 { color: rgba(90, 120, 155, 0.7) !important; }
body.tech-bg .text-gray-300 { color: rgba(110, 145, 180, 0.7) !important; }
body.tech-bg h1, body.tech-bg h2, body.tech-bg h3,
body.tech-bg h4, body.tech-bg h5, body.tech-bg h6 { color: rgba(220, 240, 255, 0.95) !important; }
body.tech-bg p { color: rgba(160, 190, 215, 0.85) !important; }
body.tech-bg label { color: rgba(0, 200, 255, 0.8) !important; }
body.tech-bg strong { color: rgba(210, 235, 255, 0.9) !important; }
body.tech-bg span:not(.text-cyan-400):not(.text-emerald-400):not(.text-violet-400) {
    color: inherit;
}

/* Numbers / big stats on tech pages */
body.tech-bg .text-6xl,
body.tech-bg .text-5xl { color: rgba(220, 240, 255, 0.95) !important; }

/* Table cells on tech pages */
body.tech-bg td { color: rgba(170, 200, 230, 0.85) !important; }

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

::-webkit-scrollbar-track {
    background: var(--light-cream);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Logo */
.logo-glow {
    filter: drop-shadow(0 2px 6px rgba(74, 144, 226, 0.2));
}

/* Glow Effects */
.glow-blue {
    box-shadow: 0 0 25px rgba(74, 144, 226, 0.2);
}

.glow-green {
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
}

.glow-purple {
    box-shadow: 0 0 25px rgba(155, 89, 182, 0.2);
}

/* Selection */
::selection {
    background: rgba(74, 144, 226, 0.2);
    color: black;
}

/* Responsive - пиксел эффектілері жоқ */

/* Print */
@media print {
    body::before,
    body::after {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    nav, footer {
        display: none;
    }
}

/* Smooth transitions */
* {
    transition-property: background, border, transform, box-shadow, opacity, color;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

*::before,
*::after {
    transition: none;
}

/* Border adjustments — light pages only */
body:not(.tech-bg) .border-gray-100,
body:not(.tech-bg) .border-gray-200 {
    border-color: rgba(0, 0, 0, 0.06) !important;
}

body:not(.tech-bg) .border-gray-700,
body:not(.tech-bg) .border-gray-800 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Background adjustments — light pages only */
body:not(.tech-bg) .bg-gray-50 {
    background: rgba(250, 250, 250, 0.98) !important;
}

body:not(.tech-bg) .bg-gray-100 {
    background: rgba(248, 248, 248, 0.98) !important;
}

/* Headings — only on light pages */
body:not(.tech-bg) h1,
body:not(.tech-bg) h2,
body:not(.tech-bg) h3,
body:not(.tech-bg) h4,
body:not(.tech-bg) h5,
body:not(.tech-bg) h6 {
    color: var(--text-black);
}

body:not(.tech-bg) p {
    color: var(--text-gray);
}

/* ============================================
   FANTASY ANIMATIONS - IT STYLE
   ============================================ */

/* Floating Code Particles */
.code-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.code-particles::before,
.code-particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 200, 255, 0.6);
    border-radius: 50%;
    animation: floatUp 15s infinite linear;
    box-shadow: 
        0 0 6px rgba(0, 200, 255, 0.8),
        0 0 12px rgba(0, 200, 255, 0.4);
}

.code-particles::before {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.code-particles::after {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 18s;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) scale(1);
        opacity: 0;
    }
}

/* Multiple code particles */
.hero-section::before {
    z-index: 1;
}

.hero-section {
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(0, 200, 255, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 85% 40%, rgba(0, 150, 255, 0.12) 1px, transparent 1px),
        radial-gradient(circle at 50% 80%, rgba(0, 200, 255, 0.1) 1px, transparent 1px);
    background-size: 200px 200px, 180px 180px, 220px 220px;
    animation: particlesMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes particlesMove {
    0%, 100% {
        background-position: 0% 0%, 100% 50%, 50% 100%;
        opacity: 0.3;
    }
    50% {
        background-position: 20% 20%, 80% 70%, 70% 80%;
        opacity: 0.5;
    }
}

/* Digital Wave Effect */
.digital-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(
        to top,
        rgba(0, 200, 255, 0.1) 0%,
        rgba(0, 200, 255, 0.05) 50%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
    animation: waveMove 8s ease-in-out infinite;
    clip-path: polygon(
        0% 100%,
        100% 100%,
        100% 80%,
        90% 75%,
        80% 80%,
        70% 70%,
        60% 75%,
        50% 65%,
        40% 70%,
        30% 60%,
        20% 65%,
        10% 55%,
        0% 60%
    );
}

@keyframes waveMove {
    0%, 100% {
        clip-path: polygon(
            0% 100%,
            100% 100%,
            100% 80%,
            90% 75%,
            80% 80%,
            70% 70%,
            60% 75%,
            50% 65%,
            40% 70%,
            30% 60%,
            20% 65%,
            10% 55%,
            0% 60%
        );
    }
    50% {
        clip-path: polygon(
            0% 100%,
            100% 100%,
            100% 75%,
            90% 70%,
            80% 75%,
            70% 65%,
            60% 70%,
            50% 60%,
            40% 65%,
            30% 55%,
            20% 60%,
            10% 50%,
            0% 55%
        );
    }
}

/* Typing Text Effect */
.typing-text {
    position: relative;
    overflow: hidden;
}

.typing-text::after {
    content: '|';
    color: rgba(0, 200, 255, 0.8);
    animation: blink 1s infinite;
    margin-left: 2px;
}

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

/* Holographic Card Effect */
.holographic-card {
    position: relative;
    overflow: hidden;
}

.holographic-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 200, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: holographicShine 3s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes holographicShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.holographic-card:hover::before {
    animation-duration: 1.5s;
}

/* 3D Card Transform */
.holographic-card {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.holographic-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg) scale(1.01);
}

/* Glitch Text Effect */
.tech-title {
    position: relative;
}

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

.tech-title:hover {
    animation: glitchText 0.3s infinite;
}

@keyframes glitchText {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
        text-shadow: 
            -2px 2px 0 rgba(255, 0, 0, 0.5),
            2px -2px 0 rgba(0, 255, 0, 0.5);
    }
    40% {
        transform: translate(-2px, -2px);
        text-shadow: 
            -2px -2px 0 rgba(255, 0, 0, 0.5),
            2px 2px 0 rgba(0, 255, 0, 0.5);
    }
    60% {
        transform: translate(2px, 2px);
        text-shadow: 
            2px 2px 0 rgba(255, 0, 0, 0.5),
            -2px -2px 0 rgba(0, 255, 0, 0.5);
    }
    80% {
        transform: translate(2px, -2px);
        text-shadow: 
            2px -2px 0 rgba(255, 0, 0, 0.5),
            -2px 2px 0 rgba(0, 255, 0, 0.5);
    }
    100% {
        transform: translate(0);
    }
}

/* Particle Explosion on Hover */
.holographic-card {
    position: relative;
}

.holographic-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.6) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 2;
}

.holographic-card:hover::after {
    width: 300px;
    height: 300px;
    opacity: 0.4;
    animation: particleExplode 0.6s ease-out;
}

@keyframes particleExplode {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Loading Bar Animation */
.tech-stat::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.8), transparent);
    animation: loadingBar 2s ease-in-out infinite;
}

@keyframes loadingBar {
    0% {
        width: 0%;
        left: 0;
    }
    50% {
        width: 100%;
        left: 0;
    }
    100% {
        width: 0%;
        left: 100%;
    }
}

/* Digital Matrix Rain Effect (Subtle) */
.hero-section {
    position: relative;
}

.hero-section::after {
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 200, 255, 0.03) 2px,
            rgba(0, 200, 255, 0.03) 4px
        ),
        linear-gradient(
            transparent 50%,
            rgba(0, 200, 255, 0.01) 50%
        ),
        radial-gradient(circle at 20% 30%, rgba(0, 200, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 150, 255, 0.02) 0%, transparent 50%),
        #0f0f0f;
    background-size: 
        100% 8px,
        100% 4px,
        100% 100%,
        100% 100%,
        100% 100%;
    animation: 
        matrixRain 20s linear infinite,
        scanline 10s linear infinite,
        gradientShift 15s ease infinite;
}

@keyframes matrixRain {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 0 100vh, 0 100vh, 0 0, 0 0, 0 0;
    }
}

/* Smooth cursor interaction */
.hero-section {
    cursor: default;
}

/* Floating Tech Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.floating-tech-element {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: rgba(0, 200, 255, 0.6);
    text-shadow: 0 0 10px currentColor;
    animation: floatUpRotate 15s linear infinite;
    pointer-events: none;
}

@keyframes floatUpRotate {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* Moving Code Lines */
.moving-code-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.moving-code-line {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(0, 200, 255, 0.3);
    white-space: nowrap;
    animation: moveCodeLine 25s linear infinite;
    text-shadow: 0 0 5px rgba(0, 200, 255, 0.5);
}

@keyframes moveCodeLine {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    5% {
        opacity: 0.3;
    }
    95% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

/* Code Particles */
.code-particle {
    position: absolute;
    background: rgba(0, 200, 255, 0.6);
    border-radius: 50%;
    box-shadow: 
        0 0 6px rgba(0, 200, 255, 0.8),
        0 0 12px rgba(0, 200, 255, 0.4);
    animation: particleFloat 12s linear infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) scale(1);
        opacity: 0;
    }
}

/* Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(0, 200, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.8);
    transition: opacity 0.5s ease;
    transform: translate(-50%, -50%);
}

/* Additional floating particles layer */
.code-particles {
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(0, 200, 255, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 85% 40%, rgba(0, 150, 255, 0.12) 1px, transparent 1px),
        radial-gradient(circle at 50% 80%, rgba(0, 200, 255, 0.1) 1px, transparent 1px);
    background-size: 200px 200px, 180px 180px, 220px 220px;
    animation: particlesMove 20s ease-in-out infinite;
}

/* Neon Pulse on Stats */
.tech-stat {
    animation: statPulse 4s ease-in-out infinite;
}

@keyframes statPulse {
    0%, 100% {
        border-color: rgba(0, 200, 255, 0.15);
        box-shadow: 0 0 10px rgba(0, 200, 255, 0.1);
    }
    50% {
        border-color: rgba(0, 200, 255, 0.3);
        box-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
    }
}
/* ============================================
   INNER PAGES - TECH DARK THEME
   ============================================ */

/* Tech page wrapper for inner pages */
.tech-page {
    background: #0f0f0f;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Inner page grid background */
.tech-page::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 200, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Radial ambient glows */
.tech-page::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(0, 200, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(0, 100, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 150, 200, 0.02) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Navigation - dark tech style for inner pages */
.tech-page ~ nav,
body.tech-bg nav,
.tech-nav {
    background: rgba(10, 10, 10, 0.95) !important;
    border-bottom: 1px solid rgba(0, 200, 255, 0.15) !important;
    box-shadow: 0 1px 20px rgba(0, 200, 255, 0.08) !important;
}

/* Apply dark bg to body when has tech class */
body.tech-bg {
    background: #0f0f0f !important;
}

body.tech-bg nav {
    background: rgba(10, 10, 10, 0.95) !important;
    border-bottom: 1px solid rgba(0, 200, 255, 0.15) !important;
}

body.tech-bg nav a {
    color: rgba(220, 240, 255, 0.85) !important;
}

body.tech-bg nav a:hover {
    color: rgba(0, 200, 255, 1) !important;
}

body.tech-bg footer {
    background: rgba(8, 8, 8, 0.95) !important;
    border-top: 1px solid rgba(0, 200, 255, 0.12) !important;
    color: rgba(150, 170, 190, 0.8) !important;
}

body.tech-bg footer p,
body.tech-bg footer span {
    color: rgba(120, 140, 160, 0.7) !important;
}

body.tech-bg footer .text-blue-500 {
    color: rgba(0, 200, 255, 0.8) !important;
}

/* Tech card - glass morphism dark */
.tech-card {
    background: rgba(15, 20, 30, 0.85) !important;
    border: 1px solid rgba(0, 200, 255, 0.18) !important;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 200, 255, 0.06),
        inset 0 0 30px rgba(0, 200, 255, 0.02) !important;
    backdrop-filter: blur(20px);
    color: rgba(220, 240, 255, 0.9) !important;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.4), transparent);
}

.tech-card h1, .tech-card h2, .tech-card h3,
.tech-card p, .tech-card label,
.tech-card strong {
    color: rgba(220, 240, 255, 0.9) !important;
}

.tech-card .text-gray-600,
.tech-card .text-gray-700,
.tech-card .text-gray-800 {
    color: rgba(170, 190, 210, 0.85) !important;
}

/* Tech form inputs */
.tech-input {
    background: rgba(0, 20, 40, 0.6) !important;
    border: 1px solid rgba(0, 150, 200, 0.25) !important;
    color: rgba(220, 240, 255, 0.9) !important;
    transition: all 0.3s ease !important;
}

.tech-input:focus {
    background: rgba(0, 30, 55, 0.8) !important;
    border-color: rgba(0, 200, 255, 0.6) !important;
    box-shadow: 
        0 0 0 2px rgba(0, 200, 255, 0.12),
        0 0 15px rgba(0, 200, 255, 0.15) !important;
    outline: none !important;
    color: rgba(220, 240, 255, 1) !important;
}

.tech-input::placeholder {
    color: rgba(100, 140, 170, 0.6) !important;
}

/* Tech label */
.tech-label {
    color: rgba(0, 200, 255, 0.8) !important;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Tech button - cyan */
.tech-btn-cyan {
    background: linear-gradient(135deg, rgba(0, 180, 230, 0.9), rgba(0, 120, 200, 0.9)) !important;
    color: white !important;
    border: 1px solid rgba(0, 200, 255, 0.4) !important;
    box-shadow: 
        0 0 15px rgba(0, 200, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.tech-btn-cyan::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.tech-btn-cyan:hover {
    background: linear-gradient(135deg, rgba(0, 200, 255, 1), rgba(0, 150, 220, 1)) !important;
    box-shadow: 
        0 0 25px rgba(0, 200, 255, 0.45),
        0 4px 20px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-2px) !important;
}

.tech-btn-cyan:hover::before {
    left: 100%;
}

/* Tech button - green */
.tech-btn-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 120, 90, 0.9)) !important;
    color: white !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    box-shadow: 
        0 0 15px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.tech-btn-green:hover {
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Tech button - red/danger */
.tech-btn-red {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.85), rgba(180, 20, 20, 0.85)) !important;
    color: white !important;
    border: 1px solid rgba(220, 50, 50, 0.35) !important;
    transition: all 0.3s ease !important;
}

.tech-btn-red:hover {
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* Tech stat card */
.tech-stat-card {
    background: rgba(10, 15, 25, 0.8) !important;
    border: 1px solid rgba(0, 200, 255, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.tech-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.5), transparent);
}

.tech-stat-card.green::before {
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), transparent);
}

.tech-stat-card:hover {
    border-color: rgba(0, 200, 255, 0.3) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 20px rgba(0, 200, 255, 0.1) !important;
    transform: translateY(-4px);
}

.tech-stat-card.green:hover {
    border-color: rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 20px rgba(16, 185, 129, 0.1) !important;
}

/* Tech action cards */
.tech-action-card {
    background: rgba(10, 15, 25, 0.75) !important;
    border: 1px solid rgba(0, 150, 200, 0.15) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-action-card:hover {
    background: rgba(0, 20, 40, 0.9) !important;
    border-color: rgba(0, 200, 255, 0.35) !important;
    transform: translateY(-5px) scale(1.01);
    box-shadow: 
        0 12px 35px rgba(0,0,0,0.5),
        0 0 20px rgba(0, 200, 255, 0.12) !important;
}

.tech-action-card:hover::before {
    opacity: 1;
}

.tech-action-card.green:hover {
    border-color: rgba(16, 185, 129, 0.35) !important;
    box-shadow: 
        0 12px 35px rgba(0,0,0,0.5),
        0 0 20px rgba(16, 185, 129, 0.12) !important;
}

.tech-action-card.purple:hover {
    border-color: rgba(139, 92, 246, 0.35) !important;
    box-shadow: 
        0 12px 35px rgba(0,0,0,0.5),
        0 0 20px rgba(139, 92, 246, 0.12) !important;
}

/* Tech icon box */
.tech-icon-box {
    background: rgba(0, 200, 255, 0.08) !important;
    border: 1px solid rgba(0, 200, 255, 0.2) !important;
    transition: all 0.3s ease;
}

.tech-icon-box:hover {
    background: rgba(0, 200, 255, 0.15) !important;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.2) !important;
}

.tech-icon-box.green {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.tech-icon-box.purple {
    background: rgba(139, 92, 246, 0.08) !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
}

/* Tech section header */
.tech-section-title {
    color: rgba(200, 225, 255, 0.95) !important;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.03em;
    text-shadow: 0 0 20px rgba(0, 200, 255, 0.15);
}

/* Tech table */
.tech-table {
    background: rgba(8, 12, 22, 0.9) !important;
    border: 1px solid rgba(0, 200, 255, 0.15) !important;
    overflow: hidden;
}

.tech-table thead {
    background: linear-gradient(135deg, rgba(0, 60, 100, 0.9), rgba(0, 40, 80, 0.9)) !important;
    border-bottom: 1px solid rgba(0, 200, 255, 0.3) !important;
}

.tech-table thead.green {
    background: linear-gradient(135deg, rgba(5, 100, 70, 0.9), rgba(0, 70, 50, 0.9)) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.tech-table thead th {
    color: rgba(0, 220, 255, 0.9) !important;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tech-table thead.green th {
    color: rgba(100, 255, 200, 0.9) !important;
}

.tech-table tbody tr {
    border-bottom: 1px solid rgba(0, 200, 255, 0.07) !important;
    transition: all 0.2s ease;
}

.tech-table tbody tr:hover {
    background: rgba(0, 200, 255, 0.06) !important;
}

.tech-table tbody td {
    color: rgba(180, 210, 230, 0.85) !important;
}

/* Tech link */
.tech-link-blue {
    color: rgba(0, 200, 255, 0.8) !important;
    transition: all 0.2s ease;
}

.tech-link-blue:hover {
    color: rgba(0, 220, 255, 1) !important;
    text-shadow: 0 0 8px rgba(0, 200, 255, 0.5);
}

.tech-link-green {
    color: rgba(50, 220, 160, 0.8) !important;
    transition: all 0.2s ease;
}

.tech-link-green:hover {
    color: rgba(60, 240, 170, 1) !important;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.tech-link-red {
    color: rgba(240, 80, 80, 0.8) !important;
    transition: all 0.2s ease;
}

.tech-link-red:hover {
    color: rgba(255, 100, 100, 1) !important;
    text-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}

/* Tech empty state */
.tech-empty {
    background: rgba(8, 12, 22, 0.8) !important;
    border: 1px dashed rgba(0, 200, 255, 0.15) !important;
    color: rgba(100, 140, 170, 0.7) !important;
}

/* Tech tip card */
.tech-tip {
    background: rgba(0, 20, 40, 0.6) !important;
    border-left: 2px solid rgba(0, 200, 255, 0.5) !important;
    transition: all 0.3s ease;
}

.tech-tip:hover {
    background: rgba(0, 30, 55, 0.8) !important;
    border-left-color: rgba(0, 200, 255, 0.9) !important;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.08) !important;
}

.tech-tip.green {
    border-left-color: rgba(16, 185, 129, 0.5) !important;
}
.tech-tip.green:hover {
    border-left-color: rgba(16, 185, 129, 0.9) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.08) !important;
}

.tech-tip.purple {
    border-left-color: rgba(139, 92, 246, 0.5) !important;
}

.tech-tip.yellow {
    border-left-color: rgba(245, 158, 11, 0.5) !important;
}

/* Tech divider */
.tech-divider {
    border-color: rgba(0, 200, 255, 0.12) !important;
}

/* Tech badge */
.tech-badge-blue {
    background: rgba(0, 150, 200, 0.15);
    border: 1px solid rgba(0, 200, 255, 0.25);
    color: rgba(0, 200, 255, 0.9);
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

/* Section header bar */
.tech-header-bar {
    width: 3px;
    background: linear-gradient(180deg, rgba(0, 200, 255, 0.9), rgba(0, 100, 200, 0.4));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 200, 255, 0.4);
}

/* Alert/Flash messages - dark */
body.tech-bg .alert {
    background: rgba(10, 15, 25, 0.9) !important;
    border: 1px solid rgba(0, 200, 255, 0.2) !important;
}

body.tech-bg .alert-success {
    border-color: rgba(16, 185, 129, 0.35) !important;
    background: rgba(0, 30, 20, 0.85) !important;
}

body.tech-bg .alert-danger {
    border-color: rgba(220, 38, 38, 0.35) !important;
    background: rgba(30, 5, 5, 0.85) !important;
}

body.tech-bg .alert span {
    color: rgba(200, 225, 255, 0.9) !important;
}

/* Scan line animation for tech pages */
@keyframes techScan {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(100vh); opacity: 0; }
}

.tech-scan-line {
    position: fixed;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.2), transparent);
    animation: techScan 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Corner decorations */
.tech-corner::before,
.tech-corner::after {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    border-color: rgba(0, 200, 255, 0.5);
    border-style: solid;
}

.tech-corner::before {
    top: 8px; left: 8px;
    border-width: 1px 0 0 1px;
}

.tech-corner::after {
    bottom: 8px; right: 8px;
    border-width: 0 1px 1px 0;
}

/* Glow pulse on form submit btn */
.tech-submit-btn {
    animation: btnGlow 4s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 200, 255, 0.25); }
    50% { box-shadow: 0 0 25px rgba(0, 200, 255, 0.45), 0 0 50px rgba(0, 150, 255, 0.15); }
}


/* ============================================
   TECH PAGE SPECIFIC — FORCE VISIBILITY
   ============================================ */

/* All text in tech-bg must be visible — comprehensive override */
body.tech-bg * {
    -webkit-font-smoothing: antialiased;
}

/* Any element with Tailwind text-gray-* on dark bg */
body.tech-bg .text-gray-800,
body.tech-bg .text-gray-700,
body.tech-bg .text-gray-600 {
    color: rgba(190, 215, 240, 0.9) !important;
}

body.tech-bg .text-gray-500 {
    color: rgba(130, 160, 190, 0.75) !important;
}

body.tech-bg .text-gray-400 {
    color: rgba(100, 135, 170, 0.65) !important;
}

/* Big counter numbers */
body.tech-bg .text-6xl,
body.tech-bg .text-5xl,
body.tech-bg .text-4xl {
    color: rgba(225, 240, 255, 0.95) !important;
}

/* Normal body text */
body.tech-bg p,
body.tech-bg span,
body.tech-bg li {
    color: rgba(170, 200, 225, 0.85) !important;
}

/* Explicit white on tech bg */
body.tech-bg .text-white {
    color: rgba(225, 240, 255, 0.97) !important;
}

/* Input fields on tech pages */
body.tech-bg input,
body.tech-bg textarea,
body.tech-bg select {
    background: rgba(0, 20, 40, 0.7) !important;
    border: 1px solid rgba(0, 150, 200, 0.3) !important;
    color: rgba(210, 235, 255, 0.95) !important;
}

body.tech-bg input:focus,
body.tech-bg textarea:focus,
body.tech-bg select:focus {
    border-color: rgba(0, 200, 255, 0.65) !important;
    box-shadow: 0 0 0 2px rgba(0, 200, 255, 0.12), 0 0 15px rgba(0, 200, 255, 0.12) !important;
    outline: none !important;
    color: rgba(225, 245, 255, 1) !important;
}

body.tech-bg input::placeholder,
body.tech-bg textarea::placeholder {
    color: rgba(80, 120, 160, 0.6) !important;
}

/* input type=date on dark bg */
body.tech-bg input[type="date"],
body.tech-bg input[type="number"] {
    color-scheme: dark;
    color: rgba(210, 235, 255, 0.95) !important;
}

/* Labels on tech pages */
body.tech-bg label {
    color: rgba(0, 200, 255, 0.82) !important;
    font-family: 'Courier New', monospace;
}

/* Strong / bold text */
body.tech-bg strong,
body.tech-bg b {
    color: rgba(215, 238, 255, 0.95) !important;
}

/* All cards bg-white on tech page should be dark */
body.tech-bg .bg-white {
    background: rgba(12, 18, 30, 0.88) !important;
    border-color: rgba(0, 200, 255, 0.16) !important;
    color: rgba(200, 225, 250, 0.9) !important;
}

/* Gradient from-blue-50 type stat cards on tech page */
body.tech-bg [class*="from-blue-50"],
body.tech-bg [class*="from-green-50"],
body.tech-bg [class*="from-purple-50"],
body.tech-bg [class*="from-yellow-50"] {
    background: rgba(8, 15, 28, 0.85) !important;
}

/* Table in tech pages — header text */
body.tech-bg thead th {
    color: rgba(0, 220, 255, 0.9) !important;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.tech-bg tbody td {
    color: rgba(170, 205, 235, 0.88) !important;
}

/* Nav text on tech pages */
body.tech-bg nav {
    background: rgba(8, 8, 15, 0.97) !important;
    border-bottom: 1px solid rgba(0, 200, 255, 0.12) !important;
}


/* ============================================
   INDEX PAGE — NAV MATCHES HERO DARK STYLE
   ============================================ */

body.index-page {
    background: #0f0f0f;
    color: white;
}

/* Nav seamlessly blends into hero on index page */
body.index-page nav {
    background: rgba(8, 8, 15, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 200, 255, 0.12) !important;
    box-shadow: 0 1px 25px rgba(0, 0, 0, 0.6) !important;
}

body.index-page nav a,
body.index-page nav span {
    color: rgba(200, 225, 255, 0.85) !important;
}

body.index-page nav a:hover {
    color: rgba(0, 200, 255, 1) !important;
}

/* Footer on index page — dark */
body.index-page footer {
    background: rgba(6, 6, 12, 0.95) !important;
    border-top: 1px solid rgba(0, 200, 255, 0.1) !important;
}

body.index-page footer p,
body.index-page footer span {
    color: rgba(100, 130, 160, 0.7) !important;
}

/* Main on index page — no padding, hero takes full width */
body.index-page main {
    padding: 0 !important;
}

/* Hero section inside index — flush with nav */
body.index-page .hero-section {
    margin-top: 0 !important;
}