/* MIBOU TECH - BRAND ALIGNED HIGH CONTRAST V5 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;500;700&display=swap');

:root {
    --bg-core: #000000;
    --text-pure: #FFFFFF;

    /* Mibou Brand Colors */
    --mibou-blue: #0088CC;
    /* Adjusted to match logo */
    --mibou-dark: #003366;

    /* Nexus Brand Colors */
    --nexus-green: #00CC66;
    /* Adjusted to match logo */

    /* Neon Accents */
    --neon-blue: #0088CC;
    /* Using Brand Blue as Neon */
    --neon-green: #00CC66;
    /* Using Brand Green as Neon */
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-core);
    color: var(--text-pure);
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-pure) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

p,
li,
span,
div,
a {
    color: var(--text-pure);
}

/* NAVBAR - CLEAN LOOK */
.navbar {
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid #222;
    padding: 20px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 24px;
    color: #FFF !important;
    letter-spacing: 1px;
}

/* Logo Image Filter - Make it visible on dark if needed, or rely on text */
.navbar-brand img {
    height: 40px;
    /* If the logo has dark text, this filter helps, but user asked for "title white" */
    /* We will use the icon + text approach */
}

.brand-text-mibou {
    color: var(--mibou-blue);
}

.brand-text-tech {
    color: #FFFFFF;
}

.nav-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    margin: 0 10px;
    transition: 0.3s;
    color: #FFF !important;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    color: var(--mibou-blue) !important;
    opacity: 1;
    text-shadow: 0 0 15px var(--mibou-blue);
}

/* HERO ANIMATION */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: #000;
    overflow: hidden;
}

.hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(transparent 95%, var(--mibou-blue) 100%),
        linear-gradient(90deg, transparent 95%, var(--mibou-blue) 100%);
    background-size: 80px 80px;
    opacity: 0.1;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 1000px;
    }
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.15) 0%, transparent 70%);
    filter: blur(60px);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
}

/* CARDS */
.tech-card {
    background: #050505;
    border: 1px solid #222;
    padding: 35px;
    height: 100%;
    transition: 0.3s;
    position: relative;
}

.tech-card:hover {
    border-color: var(--mibou-blue);
    box-shadow: 0 0 25px rgba(0, 136, 204, 0.2);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--mibou-blue) !important;
    margin-bottom: 20px;
    display: block;
}

/* BUTTONS - FIXED CONTRAST */
.btn-cyber {
    background: transparent;
    border: 2px solid var(--mibou-blue);
    color: #FFFFFF !important;
    /* FORCE WHITE TEXT */
    padding: 15px 35px;
    font-family: 'Orbitron';
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.3s;
    position: relative;
    z-index: 1;
}

.btn-cyber:hover {
    background: var(--mibou-blue);
    color: #FFFFFF !important;
    box-shadow: 0 0 25px var(--mibou-blue);
}

.btn-cyber-green {
    border-color: var(--nexus-green);
}

.btn-cyber-green:hover {
    background: var(--nexus-green);
    box-shadow: 0 0 25px var(--nexus-green);
    color: #000 !important;
    /* Black text on bright green for contrast */
}

/* NAV BUTTON SPECIAL */
.btn-nav {
    border: 1px solid var(--nexus-green);
    color: #FFFFFF !important;
    /* White text by default */
    padding: 10px 25px;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.3s;
    background: rgba(0, 204, 102, 0.1);
}

.btn-nav:hover {
    background: var(--nexus-green);
    color: #000 !important;
    box-shadow: 0 0 20px var(--nexus-green);
}

/* SYSTEM STATUS */
.status-bar {
    height: 4px;
    background: #222;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.status-bar::after {
    content: '';
    position: absolute;
}

.theme-nexus .hero-bg-anim {
    background:
        linear-gradient(transparent 95%, var(--nexus-green) 100%),
        linear-gradient(90deg, transparent 95%, var(--nexus-green) 100%);
    background-size: 80px 80px;
}

.theme-nexus .hero-glow {
    background: radial-gradient(circle, rgba(0, 204, 102, 0.15) 0%, transparent 70%);
}

.theme-nexus .card-icon {
    color: var(--nexus-green) !important;
}

.theme-nexus .tech-card:hover {
    border-color: var(--nexus-green);
    box-shadow: 0 0 25px rgba(0, 204, 102, 0.2);
}

.theme-nexus .btn-cyber {
    border-color: var(--nexus-green);
}

.theme-nexus .btn-cyber:hover {
    background: var(--nexus-green);
    color: #000 !important;
    box-shadow: 0 0 25px var(--nexus-green);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .display-3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {

    /* Typography Adjustments - AGGRESSIVE REDUCTION */
    .hero-title {
        font-size: 1.5rem !important;
        /* Much smaller */
        line-height: 1.3;
        word-wrap: break-word;
    }

    .display-3,
    .display-4 {
        font-size: 1.4rem !important;
    }

    h1,
    h2,
    h3 {
        word-wrap: break-word;
        /* Prevent overflow */
    }

    .lead {
        font-size: 0.95rem !important;
    }

    .navbar-brand {
        font-size: 18px;
    }

    /* Layout Adjustments */
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        /* More space for fixed nav */
        padding-bottom: 60px;
        align-items: flex-start;
        text-align: center;
        /* Force center alignment on mobile */
    }

    /* Override inline margins */
    .hero-content {
        margin-top: 0 !important;
        width: 100%;
        padding: 0 15px;
    }

    /* Stack Buttons */
    .hero-content .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 15px !important;
        width: 100%;
    }

    .btn-cyber,
    .btn-nav {
        width: 100%;
        max-width: 100%;
        display: block;
        text-align: center;
        padding: 12px 20px;
        /* Slightly smaller padding */
        font-size: 14px;
    }

    /* Adjust Tech Cards */
    .tech-card {
        margin-bottom: 20px;
        padding: 25px;
    }

    /* Nexus Specifics */
    .theme-nexus .hero-content {
        margin-top: 0 !important;
        /* Reset margin */
        padding-top: 20px;
    }

    /* Fix for Nexus Title specifically if needed */
    .theme-nexus .hero-title br {
        display: none;
        /* Remove line break on mobile to save vertical space if needed, or keep it */
    }
}