/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --accent-color: #00d4ff;
    --accent-secondary: #ff00ff;
    --accent-tertiary: #00ff88;
    --neon-glow: #00d4ff;
    --card-bg: rgba(20, 20, 35, 0.8);
    --card-border: rgba(0, 212, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #ff00ff 100%);
    --gradient-dark: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 1) 100%);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px var(--accent-secondary);
}

/* ===== Particles Background ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.5;
    animation: float-up 20s infinite linear;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ===== Scanlines Overlay ===== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: 0.3;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-image.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 15, 0.6) 0%,
        rgba(10, 10, 15, 0.8) 50%,
        rgba(10, 10, 15, 0.95) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    padding-bottom: 8rem;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.site-logo {
    max-height: 80px;
    margin-bottom: 1rem;
}

.site-logo.hidden {
    display: none;
}

.site-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    text-shadow:
        0 0 10px var(--accent-color),
        0 0 20px var(--accent-color),
        0 0 40px var(--accent-color),
        0 0 80px var(--accent-color);
    animation: pulse-glow 2s ease-in-out infinite;
}

.site-tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    transform: rotate(45deg);
    box-shadow: 2px 2px 5px var(--accent-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== Boxes Section ===== */
.boxes-section {
    position: relative;
    z-index: 2;
    padding: 5rem 2rem;
    min-height: 100vh;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-primary);
}

.title-underline {
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-color);
}

.boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Box Card ===== */
.box-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.box-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(0, 212, 255, 0.1) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.box-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow:
        0 10px 40px rgba(0, 212, 255, 0.2),
        0 0 20px rgba(0, 212, 255, 0.1),
        inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.box-card:hover::before {
    opacity: 1;
}

.box-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.box-card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.box-card-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.box-card-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.box-card-link::after {
    content: '\2192';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.box-card:hover .box-card-link::after {
    transform: translateX(5px);
}

/* ===== Box Page Styles ===== */
.box-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 100;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.9) 0%, transparent 100%);
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.back-arrow {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.box-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.box-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.box-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
}

.box-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.box-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-shadow:
        0 0 10px var(--accent-color),
        0 0 20px var(--accent-color);
}

.box-description {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 600px;
}

.box-content-section {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.box-content-container {
    max-width: 800px;
    margin: 0 auto;
}

.box-long-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.box-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border: 1px dashed var(--card-border);
    border-radius: 16px;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.box-placeholder h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.box-placeholder p {
    color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-link {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.admin-link:hover {
    color: var(--accent-color);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .boxes-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        letter-spacing: 0.1em;
    }

    .site-tagline {
        letter-spacing: 0.1em;
    }

    .box-card {
        padding: 1.5rem;
    }
}
