/* -----------------------
   Variables & Reset
----------------------- */
:root {
    --bg-dark: #050505;
    --bg-gradient: linear-gradient(135deg, #0a0a12 0%, #050505 100%);
    --primary: #00ffcc;    /* Cyan */
    --secondary: #7000ff;  /* Purple */
    --accent: #ff0055;     /* Red/Pink */
    --text-main: #ffffff;
    --text-muted: #8892b0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
    
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Noto Sans SC', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* -----------------------
   Background & Utils
----------------------- */
#bgCanvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
}
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,0.8) 100%);
    z-index: -1; pointer-events: none;
}
.container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.highlight { color: var(--primary); text-shadow: 0 0 10px rgba(0, 255, 204, 0.3); }

/* -----------------------
   Navigation
----------------------- */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    height: var(--nav-height);
    transition: background 0.3s ease, padding 0.3s ease;
    display: flex; align-items: center;
}
.site-header.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
}
.nav-container {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
}
.logo {
    font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: var(--primary);
    display: flex; align-items: center; gap: 10px;
}
.nav-actions { display: flex; gap: 15px; }
.btn-outline, .btn-solid {
    padding: 8px 20px; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 0.9rem;
    transition: all 0.3s ease; display: flex; align-items: center; gap: 8px;
}
.btn-outline {
    background: transparent; border: 1px solid var(--primary); color: var(--primary);
}
.btn-outline:hover { background: rgba(0, 255, 204, 0.1); box-shadow: 0 0 15px rgba(0, 255, 204, 0.3); }
.btn-solid {
    background: #07c160; border: 1px solid #07c160; color: white;
}
.btn-solid:hover { background: #06ad56; transform: translateY(-2px); }

/* -----------------------
   Hero Section
----------------------- */
.hero-section {
    min-height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    padding-top: var(--nav-height); position: relative;
    padding-bottom: 50px;
}
.main-title {
    font-family: var(--font-head); font-size: 5rem; font-weight: 900; margin-bottom: 20px;
    letter-spacing: 5px;
    background: linear-gradient(to right, #fff, var(--primary), #fff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: glow 3s infinite alternate;
}
.typewriter-container {
    font-size: 1.5rem; color: var(--text-muted); margin-bottom: 50px;
    font-family: 'Courier New', monospace;
}
.typing-text { color: var(--secondary); font-weight: bold; text-shadow: 0 0 5px var(--secondary); }
.cursor { animation: blink 1s step-end infinite; color: var(--primary); }

.hero-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-btn {
    padding: 15px 35px; border-radius: 50px; border: none; font-size: 1.1rem; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); font-weight: 700; display: flex; gap: 10px; align-items: center;
}
.hero-btn.primary {
    background: var(--primary); color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
}
.hero-btn.secondary {
    background: transparent; border: 2px solid var(--secondary); color: #fff;
}
.hero-btn.ghost {
    background: var(--glass); color: var(--text-muted); border: 1px solid var(--glass-border);
}
.hero-btn:hover { transform: translateY(-5px) scale(1.05); }

/* --- Toolbox Card Styles (Ink Reveal) --- */
.toolbox-card {
    display: block;
    width: 100%;
    max-width: 500px;
    height: 90px;
    margin: 0 auto;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    z-index: 5;
    cursor: pointer;
    /* Base background for the card itself (dark) */
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Layer System */
.card-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; padding: 0 25px;
}

/* Layer 1: Default (Bottom) */
.layer-default {
    z-index: 1;
    justify-content: space-between;
    gap: 20px;
}
.toolbox-icon { font-size: 2rem; color: var(--primary); filter: drop-shadow(0 0 5px rgba(0,255,204,0.5)); }
.toolbox-text { flex: 1; text-align: center; }
.toolbox-title { font-family: var(--font-head); color: #fff; font-size: 1.4rem; margin-bottom: 2px; letter-spacing: 1px; }
.toolbox-desc { color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.5px; }
.toolbox-arrow { color: var(--glass-border); font-size: 1.2rem; transition: 0.3s; }

/* Layer 2: Hover (Top - Masked) */
.layer-hover {
    z-index: 2;
    /* Gradient Ink Color */
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    justify-content: center;
    
    /* Initially hidden via clip-path (0 radius) */
    /* JS will animate this property */
    clip-path: circle(0% at 50% 50%);
    pointer-events: none; /* Let mouse events pass through to card for coordinate tracking */
}

.hover-content {
    display: flex; align-items: center; gap: 15px;
    color: #000; /* Dark text on bright gradient */
}
.hover-text {
    font-family: var(--font-head); font-weight: 900; font-size: 1.6rem;
    letter-spacing: 1px; text-transform: uppercase;
}
.hover-icon { font-size: 1.8rem; transform: rotate(45deg); }

/* Subtle hover effect for the container itself */
.toolbox-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
/* Animate internal elements on hover */
.toolbox-card:hover .hover-icon {
    animation: shake 0.5s ease-in-out infinite alternate;
}

@keyframes shake { from { transform: rotate(45deg) translateX(0); } to { transform: rotate(45deg) translateX(3px); } }


.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: var(--text-muted); font-size: 0.8rem; opacity: 0.7;
    animation: float 2s infinite ease-in-out;
}

/* -----------------------
   Delta Force Section
----------------------- */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-family: var(--font-head); font-size: 2.5rem; margin-bottom: 10px; }
.section-desc { color: var(--text-muted); }

.delta-grid {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px;
}
.delta-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.5) 100%);
    border: 1px solid var(--glass-border); border-radius: 20px; padding: 40px;
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
}
.large-card { min-height: 400px; border: 1px solid var(--primary); box-shadow: 0 0 30px rgba(0, 255, 204, 0.05); }
.card-icon { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.feature-list { margin-top: 20px; list-style: none; }
.feature-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.feature-list i { color: var(--primary); }

.delta-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-box {
    background: var(--glass); padding: 25px; border-radius: 15px; text-align: center;
    border: 1px solid var(--glass-border); transition: 0.3s;
}
.info-box:hover { background: rgba(255,255,255,0.08); transform: translateY(-5px); }
.info-box i { font-size: 2rem; color: var(--secondary); margin-bottom: 15px; }
.info-box h4 { margin-bottom: 10px; color: #fff; }
.info-box p { font-size: 0.9rem; color: var(--text-muted); }

/* -----------------------
   Games Section
----------------------- */
.games-wrapper {
    display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.game-item {
    display: flex; flex-direction: column; align-items: center; gap: 15px;
    color: var(--text-muted); transition: 0.3s; cursor: pointer;
}
.game-item i { font-size: 2.5rem; transition: 0.3s; }
.game-item:hover { color: var(--primary); }
.game-item:hover i { transform: scale(1.2); text-shadow: 0 0 15px var(--primary); }

/* -----------------------
   Rocket Scroll to Top
----------------------- */
.rocket-container {
    position: fixed; bottom: 40px; right: 40px; width: 50px; height: 50px;
    background: var(--secondary); border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; z-index: 999;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.5);
}
.rocket-container.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.rocket-body { color: white; font-size: 1.2rem; transition: transform 0.3s; z-index: 2; }
.rocket-container:hover .rocket-body { transform: translateY(-3px); }

.rocket-fire {
    position: absolute; bottom: -10px; width: 10px; height: 10px;
    background: var(--accent); border-radius: 50%;
    opacity: 0; transition: opacity 0.1s;
    box-shadow: 0 0 10px var(--accent);
}
.rocket-container.launching {
    transform: translateY(-100vh); transition: transform 0.8s ease-in;
}
.rocket-container.launching .rocket-fire {
    opacity: 1;
    animation: jet-fire 0.1s infinite alternate;
    width: 20px; height: 40px; bottom: -35px; border-radius: 50% 50% 20% 20%;
}

/* -----------------------
   Footer & Animations
----------------------- */
.site-footer { background: #020202; padding: 50px 0 20px; border-top: 1px solid var(--glass-border); }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.footer-links a { color: var(--text-muted); text-decoration: none; margin-left: 20px; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); }
.copyright { text-align: center; color: #444; font-size: 0.8rem; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes glow { from { filter: brightness(1); } to { filter: brightness(1.3); } }
@keyframes float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }
@keyframes jet-fire { from { height: 30px; transform: scaleX(0.8); } to { height: 45px; transform: scaleX(1.2); } }

.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal-on-scroll.active { opacity: 1; transform: translateY(0); }

/* Media Queries */
@media (max-width: 768px) {
    .main-title { font-size: 3rem; }
    .delta-grid { grid-template-columns: 1fr; }
    .nav-actions span { display: none; }
    .rocket-container { right: 20px; bottom: 20px; }
    .toolbox-card { width: 90%; }
    .hover-text { font-size: 1.2rem; }
}
