@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@500;700&display=swap');

:root {
    --bg: #050508;
    --neon-purple: #bc13fe;
    --neon-blue: #00d2ff;
    --neon-green: #39ff14;
    --card-bg: rgba(15, 15, 25, 0.9);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body, html {
    margin: 0; padding: 0;
    height: 100%; width: 100%;
    background-color: var(--bg);
    color: white;
    font-family: 'Rajdhani', sans-serif;
    overflow: hidden;
}

/* Background & Header */
.grid-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(188, 19, 254, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(188, 19, 254, 0.05) 1px, transparent 1px);
    background-size: 30px 30px; z-index: -1;
}

header {
    height: 70px; display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; background: transparent;
    position: fixed; width: 100%; top: 0; z-index: 1000;
}

.logo { font-family: 'Orbitron'; font-size: 1.2rem; color: var(--neon-purple); text-shadow: 0 0 10px var(--neon-purple); }
.menu-btn { font-size: 28px; cursor: pointer; color: white; }

/* Layout & Sections */
main {
    height: 100dvh; overflow-y: scroll;
    scroll-snap-type: y mandatory; scrollbar-width: none;
}
main::-webkit-scrollbar { display: none; }

section {
    min-height: 100dvh; width: 100%; scroll-snap-align: start;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 80px 20px 40px; text-align: center;
}

//* Ensure the body allows touch feedback */
body {
    -webkit-tap-highlight-color: transparent; /* Removes that ugly gray box on Android */
}

/* CYBER BUTTONS - Enhanced Click Effect */
.cyber-btn {
    padding: 18px clamp(30px, 5vw, 60px);
    background: transparent;
    border: 2px solid var(--neon-purple);
    color: white; 
    font-family: 'Orbitron';
    text-decoration: none; 
    border-radius: 12px;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    transition: all 0.15s ease-out; /* Faster transition for feedback */
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.3);
    display: inline-block;
    cursor: pointer;
    user-select: none; /* Prevents text selection on long press */
}

/* The Click/Tap Effect: Force it with !important if needed */
.cyber-btn:active, .cyber-btn.tapped {
    background-color: var(--neon-purple) !important; 
    color: #000 !important; 
    box-shadow: 0 0 40px var(--neon-purple) !important;
    transform: scale(0.94) translateY(2px) !important; /* Visual "press" down */
}

/* Tiles & Status */
.status-pill {
    padding: 8px 20px; border: 2px solid var(--neon-green); border-radius: 50px;
    background: rgba(57, 255, 20, 0.1); margin: 15px 0;
}

.tile-stack { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 15px; }
.tile { background: var(--card-bg); border-left: 4px solid var(--neon-blue); padding: 20px; border-radius: 8px; text-align: left; }

/* ... keep your existing cyber-btn and layout styles ... */

/* Ensures the installation tiles look consistent with the rest of the app */
#install-guide .tile h3 {
    color: var(--neon-purple);
    text-shadow: 0 0 5px var(--neon-purple);
}

#install-guide .tile {
    border-left-color: var(--neon-purple);
}

/* ... Keep your existing grid-bg and layout styles ... */

/* PULSING STATUS INDICATOR */
.status-pill {
    padding: 10px 30px;
    border: 2px solid var(--neon-green);
    border-radius: 50px;
    background: rgba(57, 255, 20, 0.05);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
    margin: 20px 0;
    animation: status-pulse 2s infinite ease-in-out; /* The Pulse */
}

@keyframes status-pulse {
    0% { box-shadow: 0 0 10px rgba(57, 255, 20, 0.2); border-color: rgba(57, 255, 20, 0.5); }
    50% { box-shadow: 0 0 25px rgba(57, 255, 20, 0.5); border-color: var(--neon-green); }
    100% { box-shadow: 0 0 10px rgba(57, 255, 20, 0.2); border-color: rgba(57, 255, 20, 0.5); }
}

/* REFRESH BUTTON SPIN */
.refresh-btn {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 8px 20px;
    border-radius: 5px;
    font-family: 'Orbitron';
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
}
.refresh-btn:active { background: var(--neon-blue); color: #000; }

.spinning { animation: spin 0.8s linear; }
@keyframes spin { to { transform: rotate(360deg); } }

/* METRICS STYLING */
.metric-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 5px;
}
.metric-val { color: var(--neon-blue); font-weight: bold; }

/* ... Keep the dynamic arrow and footer styles from before ... */


/* Optional: Add a subtle arrow indicator to show more content is below */
/* REMOVE the old section::after block entirely */

/* ADD this new dynamic arrow class */
.scroll-indicator {
    position: fixed;
    bottom: 40px; /* Positioned above the footer */
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    opacity: 0.6;
    animation: bounce 2s infinite;
    z-index: 10;
    pointer-events: none; /* User can click through it */
    transition: opacity 0.3s ease;
}

/* Hide it when class 'hidden' is added */
.scroll-indicator.hidden {
    opacity: 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* Navigation Menu */
#menu {
    position: fixed; top: 0; right: -100%;
    width: 100%; height: 100%;
    background: rgba(5, 5, 8, 0.98); backdrop-filter: blur(15px);
    z-index: 2000; transition: 0.4s ease;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
#menu.show { right: 0; }
.close-x { position: absolute; top: 20px; right: 20px; font-size: 40px; cursor: pointer; color: var(--neon-purple); }
#menu a { font-size: 2rem; color: white; text-decoration: none; margin: 15px; font-family: 'Orbitron'; }

footer { position: fixed; bottom: 0; width: 100%; padding: 10px; text-align: center; font-size: 0.7rem; opacity: 0.4; pointer-events: none; }
