:root {
    --bg-color: #0a0b0d;
    --card-bg: #16181d;
    --text-main: #f4f4f4;
    --text-dim: #b0b0b0;
    --nav-bg: rgba(10, 11, 13, 0.9);
    --primary-cyan: #00e5ff;
    --accent-red: #ff3c3c;
}

body.light-mode {
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-main: #1a1c20;
    --text-dim: #555;
    --nav-bg: rgba(255, 255, 255, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background 0.4s ease, color 0.4s ease, border 0.4s ease, transform 0.3s ease;
}

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

/* --- Navbar & Logo --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background: var(--nav-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 35px;
    width: auto;
    filter: drop-shadow(0 0 5px var(--primary-cyan));
}

.brand-name {
    font-family: 'Orbitron';
    font-weight: 700;
    color: var(--primary-cyan);
    letter-spacing: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-right: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.btn-nav-join {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--primary-cyan);
    border-radius: 4px;
    color: var(--primary-cyan) !important;
}

.btn-nav-join:hover {
    background: var(--primary-cyan);
    color: #000 !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* --- Theme Toggle --- */
.fitness-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: rgba(128, 128, 128, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--text-dim);
}

.toggle-track {
    width: 30px;
    height: 16px;
    background: #444;
    border-radius: 10px;
    position: relative;
}

.toggle-ball {
    width: 12px;
    height: 12px;
    background: var(--primary-cyan);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
}

body.light-mode .toggle-ball {
    left: 16px;
    background: var(--accent-red);
}

/* --- Hero --- */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?q=80&w=1920') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), var(--bg-color));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    padding: 0 20px;
}

.main-title {
    font-family: 'Orbitron';
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-cyan);
}

.btn-main {
    padding: 1rem 2rem;
    background: var(--primary-cyan);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    display: inline-block;
    margin: 10px;
}

.btn-secondary {
    padding: 1rem 2rem;
    border: 2px solid var(--accent-red);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    display: inline-block;
    margin: 10px;
}

/* --- Section Layouts --- */
.services-section,
.why-section,
.cta-section {
    padding: 100px 8%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-title {
    font-family: 'Orbitron';
    font-size: 1.8rem;
    letter-spacing: 5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.header-glow-line {
    width: 80px;
    height: 3px;
    background: var(--primary-cyan);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--primary-cyan);
}

/* --- Card Grids --- */
.service-card,
.why-card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(128, 128, 128, 0.1);
    height: 100%;
}

.service-card:hover,
.why-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}

.service-card h3,
.why-card h3 {
    font-family: 'Orbitron';
    color: var(--primary-cyan);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.service-card li {
    margin-bottom: 10px;
    color: var(--text-dim);
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    list-style: none;
}

.service-card li::before {
    content: '◈';
    position: absolute;
    left: 0;
    color: var(--primary-cyan);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.services-grid .service-card:nth-child(1),
.services-grid .service-card:nth-child(2),
.services-grid .service-card:nth-child(3) {
    grid-column: span 2;
}

.services-grid .service-card:nth-child(4) {
    grid-column: 2 / 4;
}

.services-grid .service-card:nth-child(5) {
    grid-column: 4 / 6;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.why-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* --- CTA Section & Dynamic Buttons --- */
.cta-section {
    text-align: center;
    background: linear-gradient(to top, rgba(0, 229, 255, 0.05), var(--bg-color));
}

.cta-title {
    font-family: 'Orbitron';
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 15px;
}

.cta-subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.cta-button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.dynamic-btn {
    text-decoration: none;
    font-family: 'Orbitron';
    font-weight: 700;
    font-size: 0.85rem;
    padding: 18px 25px;
    border-radius: 8px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid transparent;
}

.btn-join {
    color: var(--accent-red);
    border-color: rgba(255, 60, 60, 0.3);
}

.btn-join:hover {
    background: var(--accent-red);
    color: #000;
    box-shadow: 0 0 25px rgba(255, 60, 60, 0.5);
}

.btn-bca {
    color: var(--primary-cyan);
    border-color: rgba(0, 229, 255, 0.3);
}

.btn-bca:hover {
    background: var(--primary-cyan);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
}

.btn-membership {
    color: var(--text-main);
    border-color: rgba(244, 244, 244, 0.2);
}

.btn-membership:hover {
    background: var(--text-main);
    color: #000;
    box-shadow: 0 0 25px rgba(244, 244, 244, 0.4);
}

/* --- CONTACT TERMINAL --- */
.contact-box-container {
    padding: 0 8% 60px 8%;
    display: flex;
    justify-content: center;
}

.contact-card-mini {
    background: var(--card-bg);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.contact-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    padding-bottom: 10px;
}

.label-tech {
    font-family: 'Orbitron';
    font-size: 0.65rem;
    color: var(--primary-cyan);
    letter-spacing: 2px;
}

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

.contact-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.details-block h4 {
    font-family: 'Orbitron';
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.details-block p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 5px 0;
}

.scanner-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mini-scanner-box {
    width: 70px;
    height: 70px;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.mini-scanner-box img {
    width: 100%;
}

.laser-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-cyan);
    top: 0;
    left: 0;
    animation: scanLine 2.5s infinite linear;
}

.scan-text {
    font-family: 'Orbitron';
    font-size: 0.6rem;
    color: var(--text-dim);
}

.social-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    text-decoration: none;
    font-family: 'Orbitron';
    font-size: 0.7rem;
    color: var(--text-main);
    border: 1px solid rgba(128, 128, 128, 0.2);
    padding: 8px;
    text-align: center;
    border-radius: 4px;
}

.social-btn:hover {
    background: var(--primary-cyan);
    color: #000;
    border-color: var(--primary-cyan);
}

/* --- Animations --- */
@keyframes scanLine {
    0% {
        top: 0;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* --- Responsiveness --- */
@media (max-width: 1024px) {

    .services-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid .service-card:nth-child(n) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {

    .services-grid,
    .why-grid,
    .cta-button-container,
    .contact-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-block {
        flex-direction: row;
        justify-content: center;
    }

    .nav-links {
        display: none;
    }
}

/* --- Light Mode Sync --- */
body.light-mode .service-card h3,
body.light-mode .why-card h3,
body.light-mode .service-card li::before,
body.light-mode .btn-nav-join,
body.light-mode .label-tech,
body.light-mode .details-block h4,
body.light-mode .brand-name {
    color: var(--accent-red) !important;
}

body.light-mode .btn-nav-join,
body.light-mode .contact-card-mini {
    border-color: var(--accent-red);
}

body.light-mode .header-glow-line,
body.light-mode .status-dot,
body.light-mode .laser-line {
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
}

body.light-mode .btn-nav-join:hover,
body.light-mode .social-btn:hover {
    background: var(--accent-red);
    color: #fff !important;
    border-color: var(--accent-red);
}

body.light-mode .btn-membership {
    color: #1a1c20;
    border-color: rgba(26, 28, 32, 0.2);
}

body.light-mode .btn-membership:hover {
    background: #1a1c20;
    color: #fff;
}

body.light-mode .brand-logo {
    filter: drop-shadow(0 0 5px var(--accent-red));
}