/* =============================================
   ESPYX — Global Styles
   ============================================= */

/* --- Base --- */
body {
    background-color: #000000;
    color: #D1D5DB;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF;
    letter-spacing: -0.04em;
}

/* --- Page Section (Multi-page, always visible) --- */
.page-section {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* --- WebGL Canvas --- */
.webgl-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.canvas-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.8) 80%,
        rgba(0,0,0,1) 100%);
    z-index: 1;
    pointer-events: none;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Glass Panel --- */
.glass-panel {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Navigation Links --- */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #FFFFFF;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Laser Timeline (Hardware Page) --- */
.laser-line {
    background: linear-gradient(to bottom, #1a1a1a, #ffffff 50%, #1a1a1a);
    background-size: 100% 200%;
    animation: pulseLaser 4s linear infinite;
}

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

/* --- Glow Effects --- */
.neon-glow-white {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

/* --- Range Input --- */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.1s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* --- Terminal Text --- */
.terminal-text {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb { background: #222222; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444444; }

/* =============================================
   Responsive Overrides
   ============================================= */

/* Mobile: reduce hero height */
@media (max-width: 767px) {
    .hero-section {
        min-height: 70vh !important;
        height: auto !important;
    }

    .hero-section h1 {
        font-size: 2.5rem !important;
        line-height: 1 !important;
    }

    .hero-section p {
        font-size: 1rem !important;
    }

    /* Reduce vertical padding on mobile */
    .section-padding {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Tablet tweaks */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section h1 {
        font-size: 4rem !important;
    }
}
