:root {
    --primary: #00f2ff; /* Sky/Cyan Blue */
    --secondary: #0066ff; /* Tech Blue */
    --dark: #050a14;
    --text: #ffffff;
    --glass: rgba(5, 20, 40, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--dark);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    overflow: hidden; /* Hijack scroll */
    height: 100vh;
    width: 100vw;
}

/* 3D Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* UI Overlay */
.ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 10;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 2px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: blink 2s infinite;
}

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

/* Sections */
main {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
    padding: 2rem;
}

.section.active {
    opacity: 1;
    pointer-events: all;
}

/* Hero Section */
#section-hero {
    /* Visuals handled by Three.js, just needed the scroll indicator */
    justify-content: flex-end;
    padding-bottom: 50px;
}

.scroll-indicator {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeInUp 1s 2s forwards;
}

.arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    animation: arrowBounce 1.5s infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(5px, 5px); }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Projects Section */
#section-projects {
    background: radial-gradient(circle at center, rgba(0,20,50,0.4) 0%, rgba(0,0,0,0.9) 100%);
    backdrop-filter: blur(2px);
}

.content-wrapper {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: white;
    text-transform: uppercase;
    text-shadow: 0 0 20px var(--secondary);
    margin-bottom: 1rem;
    position: relative;
}

.divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 0 auto 2rem auto;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
}

.project-card {
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    background: rgba(0, 242, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.15);
    border-color: var(--primary);
}

.project-card h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--primary);
    transition: height 0.3s ease;
}

.project-card:hover::before {
    height: 100%;
}

/* Button */
.cyber-button {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 1rem 2.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cyber-button:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 30px var(--primary);
}

.btn-glitch {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transform: skewX(-20deg);
    transition: left 0.5s;
}

.cyber-button:hover .btn-glitch {
    left: 100%;
    transition: left 0.5s;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

/* Exit Animation */
body.exit-animation main,
body.exit-animation .ui-overlay {
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    .project-card { padding: 1rem; }
}

