/* 
    Intellix 2026 | Beyond Limits | SCAI
    Design System: Kinetic Cyber-Editorial
*/

:root {
    --background: #0e0e10;
    --surface: #0e0e10;
    --surface-container-low: #131316;
    --surface-container-high: #1f1f22;
    --surface-container-highest: #262529;
    --primary: #81ecff;
    --primary-dim: #00d4ec;
    --secondary: #c47fff;
    --tertiary: #ff60cd;
    --outline-variant: rgba(72, 71, 74, 0.15);
}

html {
    scroll-behavior: smooth;
    background-color: var(--background);
}

body {
    overflow-x: hidden;
}

/* Kinetic Background & Light Leaks */
.kinetic-bg {
    background: radial-gradient(circle at 0% 0%, rgba(196, 127, 255, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(129, 236, 255, 0.03) 0%, transparent 50%);
}

.glow-primary {
    text-shadow: 0 0 30px rgba(129, 236, 255, 0.4);
}

.glow-secondary {
    text-shadow: 0 0 30px rgba(196, 127, 255, 0.4);
}

/* Glassmorphism */
.glass-panel {
    background: rgba(31, 31, 34, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* No-Line Rule Fallback */
.no-line-rule {
    border: none !important;
}

/* Premium Shadows & Glows */
.shadow-premium {
    box-shadow: 0 0 60px -15px rgba(129, 236, 255, 0.15);
}

.shadow-premium-purple {
    box-shadow: 0 0 60px -15px rgba(196, 127, 255, 0.15);
}

.shadow-glow:hover {
    box-shadow: 0 0 30px -5px rgba(129, 236, 255, 0.6);
}

/* Custom Animations */
.hover-warp:hover {
    transform: scaleX(1.05) scaleY(1.02);
    filter: brightness(1.1);
}

.scanning-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    opacity: 0.5;
    animation: scan 3s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% { top: -10px; }
    100% { top: 100%; }
}

/* Material Symbols Adjustments */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* GSAP Reveal Base States */
.reveal-left, .reveal-right, .reveal-up, .reveal-down {
    opacity: 0;
}

/* High Fidelity Inputs */
input:focus, select:focus {
    outline: none !important;
    box-shadow: 0 4px 20px -5px rgba(129, 236, 255, 0.3) !important;
}

/* Preloader Overlay */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.preloader-title {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    text-shadow: 0 0 40px rgba(129, 236, 255, 0.4);
    letter-spacing: -0.05em;
}

.preloader-subtitle {
    font-size: 0.8rem;
    color: var(--surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.5em;
    margin-top: 1rem;
}

.preloader-line {
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin-top: 2rem;
    box-shadow: 0 0 15px var(--primary);
}

/* Logo and Header Adjustments */
img[alt="SCAI Logo"] {
    filter: brightness(1.2);
    transition: filter 0.5s ease;
}

/* Registration Button */
.register-btn {
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 1px rgba(129, 236, 255, 0.2);
}

.register-btn:hover {
    box-shadow: inset 0 0 0 1px rgba(129, 236, 255, 0.8), 0 0 20px rgba(129, 236, 255, 0.4);
    background: rgba(129, 236, 255, 0.05);
}

.cursor-blink {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--primary);
    vertical-align: text-bottom;
    margin-left: 6px;
    animation: blink 1.2s step-end infinite;
    box-shadow: 0 0 10px var(--primary);
}

.cursor-blink-secondary {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--secondary);
    vertical-align: text-bottom;
    margin-left: 6px;
    animation: blink-secondary 1.2s step-end infinite;
    box-shadow: 0 0 10px var(--secondary);
}

@keyframes blink {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px var(--primary); }
    50% { opacity: 0; text-shadow: none; }
}

@keyframes blink-secondary {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px var(--secondary); }
    50% { opacity: 0; text-shadow: none; }
}

img[alt="SCAI Logo"]:hover {
    filter: brightness(1.5) drop-shadow(0 0 8px var(--primary));
}

#countdown {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.5rem;
    border-radius: 0.125rem;
    border-left: 2px solid var(--primary);
    width: fit-content;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .glow-primary {
        text-shadow: 0 0 15px rgba(129, 236, 255, 0.4);
    }
    .preloader-title {
        font-size: 2rem;
    }
}

/* Glass Tilt Effect - Easily Reversible */
.glass-tilt-container {
    transition: background 0.3s ease, border 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.glass-tilt-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(129, 236, 255, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

.glass-tilt-container:hover {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.glass-tilt-container:hover::before {
    opacity: 1;
}
