:root {
    --blue: #00c3ff;
    --blue-glow: rgba(0, 195, 255, 0.4);
    --bg: #030610;
    --bg-card: rgba(10, 18, 35, 0.85);
    --txt: #c8e8ff;
    --dim: #456c8f;
    --border: rgba(0, 195, 255, 1);
}

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

body {
    background: var(--bg);
    overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
    color: var(--txt);
    cursor: crosshair;
}

#app {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* --- BACKGROUND ANIMATION --- */
.background-animation {
    position: absolute;
    inset: -100px;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(20deg);
    animation: grid-drift 30s linear infinite;
    z-index: 0;
    opacity: 0.3;
}

@keyframes grid-drift {
    from { background-position: 0 0; }
    to { background-position: 0 600px; }
}

#trail-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.1) 51%);
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
}

/* --- UI ELEMENTS --- */
header {
    height: 70px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background: rgba(3, 6, 16, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    font-family: 'Orbitron';
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px var(--blue);
}

nav a {
    font-family: 'Orbitron';
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--dim);
    text-decoration: none;
    margin-left: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

nav a.active, nav a:hover {
    color: var(--blue);
    text-shadow: 0 0 10px var(--blue);
}

/* --- PAGES --- */
.page {
    display: none;
    flex: 1;
    padding: 3rem;
    z-index: 50;
    overflow-y: auto;
    animation: slideUp 0.5s ease-out;
}

.page.active { display: flex; flex-direction: column; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Home Section */
#home { align-items: center; justify-content: center; text-align: center; }
.d1-big { font-family: 'Orbitron'; font-size: 8rem; font-weight: 900; color: #fff; text-shadow: 0 0 30px var(--blue); }
.cd-label { letter-spacing: 5px; color: var(--dim); margin-bottom: 2rem; }
.cd-row { display: flex; gap: 1rem; margin-bottom: 2rem; }
.cd-box { background: var(--bg-card); border: 1px solid var(--blue); padding: 1rem; min-width: 100px; text-align: center; }
.cd-num { font-size: 2.5rem; color: var(--blue); font-weight: bold; }
.cd-unit { font-size: 0.7rem; color: var(--dim); text-transform: uppercase; }

/* Cards */
.about-card, .contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.section-label { color: var(--blue); font-family: 'Orbitron'; font-size: 0.8rem; margin-bottom: 1.5rem; }
.arow { display: flex; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.akey { width: 140px; color: var(--dim); font-size: 0.7rem; text-transform: uppercase; }
.aval { color: #fff; font-size: 1rem; }
.status-green { color: #00ffaa; text-shadow: 0 0 5px #00ffaa; }
.about-bio { margin-top: 1.5rem; line-height: 1.6; color: #a0c0d5; }

/* Robot Carousel */
.carousel-wrap { position: relative; border: 1px solid var(--blue); height: 400px; overflow: hidden; background: #000; }
.car-track { display: flex; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.car-slide { min-width: 100%; height: 400px; }
.ph { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ph-icon { font-size: 5rem; margin-bottom: 1rem; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,195,255,0.2); border: 1px solid var(--blue); color: #fff; padding: 15px; cursor: pointer; z-index: 10; font-size: 1.5rem; }
.car-btn.prev { left: 10px; }
.car-btn.next { right: 10px; }
.car-dots { display: flex; justify-content: center; gap: 10px; margin-top: 15px; }
.dot { width: 10px; height: 10px; background: var(--dim); border-radius: 50%; cursor: pointer; }
.dot.active { background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.robot-info { text-align: center; margin-top: 1.5rem; color: var(--dim); font-style: italic; }

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.citem { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); }
.cicon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--blue); color: var(--blue); font-weight: bold; }
.cplatform { font-size: 0.6rem; color: var(--dim); text-transform: uppercase; }
.chandle { font-size: 0.9rem; }
.chandle a,
.chandle button.copy-link {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.chandle button.copy-link {
    font: inherit;
}
.chandle a:hover,
.chandle button.copy-link:hover {
    background: rgba(255,255,255,0.22);
    box-shadow: 0 0 18px rgba(0, 195, 255, 0.35);
    transform: translateY(-1px);
}
.chandle a:focus,
.chandle button.copy-link:focus {
    outline: 2px solid rgba(0, 195, 255, 0.6);
    outline-offset: 2px;
}
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    box-shadow: 0 0 30px rgba(0, 195, 255, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
    z-index: 9999;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}