:root {
    --brand-blue: #1d71b8;
    --bg-deep: #010306;
    --glass-vibrant: rgba(8, 14, 26, 0.65);
    --glass-border: rgba(255, 255, 255, 0.2);
    --pure-white: #ffffff !important;
}

body,
html {
    margin: 0;
    padding: 0;
    background-color: var(--bg-deep);
    font-family: 'Inter', sans-serif;
    color: var(--pure-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Blueprint Grid Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(29, 113, 184, 0.05) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(29, 113, 184, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
.nav-link {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pure-white);
    letter-spacing: -1px;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 45px);
    line-height: 1.1;
}

.mono-label {
    font-family: 'JetBrains Mono', monospace;
    color: var(--brand-blue) !important;
    font-size: 0.8rem;
    letter-spacing: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Frosted Glass Header */
.navbar-glass {
    background: rgba(1, 3, 6, 0.6) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    z-index: 9999;
}

.nav-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-left: 25px;
    color: var(--pure-white) !important;
    transition: 0.3s;
}

/* Intensified Glass Hero Chassis */
.hero-chassis {
    background: var(--glass-vibrant) !important;
    backdrop-filter: blur(45px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(45px) saturate(200%) !important;
    border: 1px solid var(--glass-border) !important;
    padding: 50px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    border-radius: 4px;
}

/* Buttons */
.btn-pill {
    border-radius: 50px;
    padding: 16px 45px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.4s;
    border: 2px solid var(--brand-blue);
    background: var(--brand-blue);
    color: #fff !important;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    text-align: center;
}

.btn-pill:hover {
    background: #fff;
    color: var(--brand-blue) !important;
    transform: scale(1.02);
}

.nav-item .btn-pill {
    font-size: 10px;
    padding: 10px 25px;
}

/* HERO IMAGE FIX */
.hero-viewport {
    min-height: 100vh;
    background-image: linear-gradient(rgba(1, 3, 6, 0.7), rgba(1, 3, 6, 0.85)), url('images/Fiber RACKS Server room 2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    background-attachment: fixed;
}

/* Interactive About & Lifecycle Cards */
.about-card {
    background: rgba(29, 113, 184, 0.05);
    border: 1px solid var(--glass-border);
    padding: 30px;
    transition: 0.4s;
}

.about-card:hover {
    background: rgba(29, 113, 184, 0.15);
    border-color: var(--brand-blue);
    transform: translateY(-5px);
}

.lifecycle-card {
    background: rgba(10, 15, 24, 0.8);
    border: 1px solid var(--glass-border);
    padding: 30px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.lifecycle-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-blue);
    transform: scaleY(0);
    transition: 0.4s;
}

.lifecycle-card:hover::after {
    transform: scaleY(1);
}

/* High Visibility Discovery Card */
.contact-card {
    background: rgba(10, 15, 24, 0.95);
    border: 1px solid var(--glass-border);
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.form-label-blueprint {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-control-white {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    color: #000000 !important;
    padding: 12px 15px !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    width: 100%;
}

.section-padding {
    padding: 120px 0;
}

.bg-subtle {
    background: #050a14;
}

.hardware-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
    filter: grayscale(100%) brightness(0.8);
    transition: 0.4s;
}

/* RESPONSIVE DESIGN */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(1, 3, 6, 0.98);
        padding: 30px;
        margin-top: 15px;
        border: 1px solid var(--glass-border);
    }

    .nav-link {
        margin: 15px 0 !important;
        text-align: center;
    }

    .nav-item.ms-lg-4 {
        margin-left: 0 !important;
        width: 100%;
    }

    .nav-item .btn-pill {
        width: 100% !important;
        display: block;
        margin-top: 10px;
        font-size: 0.8rem;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .hero-viewport {
        text-align: center;
    }

    .hero-chassis {
        padding: 30px 20px !important;
    }

    .btn-pill {
        width: 100% !important;
        margin-bottom: 15px;
        display: block !important;
    }

    .section-padding {
        padding: 80px 0;
    }
}

/* Reverses the grayscale effect on hover */
.hardware-img:hover {
    filter: grayscale(0%) brightness(1.0) !important;
    border-color: var(--brand-blue) !important;
    cursor: pointer;
}

/* Interactive Blueprint Grid */
.topology-blueprint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(29, 113, 184, 0.15) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

/* The "Glow" follows the mouse to simulate network discovery */
.node-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29, 113, 184, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity 0.5s ease;
    opacity: 0;
}

/* Ensure Hero content stays on top of the art */
.hero-chassis {
    position: relative;
    z-index: 10 !important;
}

/* Parallax Core */
.parallax-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* This creates the fixed background effect */
    background-attachment: fixed;
    overflow: hidden;
    position: relative;
}

/* Ensure mobile devices (which often hate fixed attachments) still look good */
@media (max-width: 1024px) {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* Success Animation */
.pulse-status {
    animation: signal-pulse 2s infinite ease-in-out;
}

@keyframes signal-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(40, 167, 69, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Ensure overlay stays on top */
.contact-card.position-relative {
    overflow: hidden;
}
