/* =========================================================
   THEME VARIABLES — DARK (default) & LIGHT
   ========================================================= */
:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-glow: rgba(0, 153, 255, 0.2);
    --accent-color: #0099ff;
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.06);
    --transition-speed: 0.3s;
    /* image placeholder */
    --img-placeholder-bg: rgba(0, 153, 255, 0.06);
    --img-placeholder-border: rgba(0, 153, 255, 0.2);
    --img-placeholder-icon: rgba(0, 153, 255, 0.3);
}

/* LIGHT MODE overrides */
body.light-mode {
    --bg-dark: #f0f4f8;
    --bg-darker: #e2e8f0;
    --text-primary: #0a0a0a;
    --text-secondary: #4a5568;
    --accent-glow: rgba(0, 100, 200, 0.15);
    --accent-color: #0066cc;
    --card-bg: rgba(0, 0, 0, 0.03);
    --card-border: rgba(0, 0, 0, 0.08);
    --img-placeholder-bg: rgba(0, 100, 200, 0.06);
    --img-placeholder-border: rgba(0, 100, 200, 0.2);
    --img-placeholder-icon: rgba(0, 100, 200, 0.3);
}

    /* Light mode: flip elements that hardcode dark colours */
    body.light-mode .bg {
        background: var(--bg-dark) !important;
    }

    body.light-mode .nexus-nav {
        background: rgba(240,244,248,0.96) !important;
    }

        body.light-mode .nexus-nav.scrolled {
            border-bottom-color: var(--card-border);
        }

    body.light-mode .offcanvas {
        background-color: #e2e8f0 !important;
    }

    body.light-mode .offcanvas-title {
        color: #0a0a0a !important;
    }

    body.light-mode .nav-link {
        color: var(--text-secondary) !important;
    }

        body.light-mode .nav-link:hover {
            color: var(--text-primary) !important;
        }

    body.light-mode .navbar-toggler-icon {
        filter: invert(1);
    }

    body.light-mode .btn-close-white {
        filter: invert(1);
    }

    body.light-mode .form-control {
        background: rgba(0,0,0,0.05) !important;
        border-color: rgba(0,0,0,0.15) !important;
        color: #0a0a0a !important;
    }

    body.light-mode .pholder::placeholder {
        color: #4a5568;
    }

    body.light-mode .nexus-card {
        background: rgba(255,255,255,0.7) !important;
        border-color: rgba(0,0,0,0.1) !important;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }

    body.light-mode .glass-panel {
        background: rgba(255,255,255,0.8) !important;
        border-color: rgba(0,0,0,0.08) !important;
    }

        body.light-mode .glass-panel:hover {
            border-color: rgba(0,100,200,0.3) !important;
        }

    body.light-mode .nav-arrow-btn {
        background: rgba(0,0,0,0.06);
        border-color: rgba(0,0,0,0.15);
        color: #0a0a0a;
    }

    body.light-mode .section-title {
        color: var(--text-secondary);
    }

    body.light-mode h1, body.light-mode h2, body.light-mode h3, body.light-mode h4, body.light-mode h5 {
        color: var(--text-primary);
    }

    body.light-mode .text-white {
        color: var(--text-primary) !important;
    }

    body.light-mode .text-muted-custom {
        color: var(--text-secondary) !important;
    }

    body.light-mode .border-dark {
        border-color: rgba(0,0,0,0.1) !important;
    }

    body.light-mode .border-secondary {
        border-color: rgba(0,0,0,0.12) !important;
    }

    body.light-mode .nexus-btn {
        border-color: rgba(0,0,0,0.2);
        color: var(--text-primary);
    }

        body.light-mode .nexus-btn:hover {
            background: var(--text-primary);
            color: var(--bg-dark);
        }

    body.light-mode .bg-dark-custom {
        background: rgba(220,228,240,0.95) !important;
    }

/* =========================================================
   THEME TOGGLE BUTTON
   ========================================================= */
#theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9990;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(10,10,10,0.7);
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.35s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

    #theme-toggle:hover {
        background: var(--accent-color);
        border-color: var(--accent-color);
        box-shadow: 0 0 20px var(--accent-glow);
        transform: scale(1.1) rotate(15deg);
    }

body.light-mode #theme-toggle {
    background: rgba(240,244,248,0.9);
    border-color: rgba(0,0,0,0.15);
    color: #0a0a0a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* =========================================================
   IMAGE PLACEHOLDERS
   ========================================================= */
.img-placeholder {
    width: 100%;
    border: 2px dashed var(--img-placeholder-border);
    background: var(--img-placeholder-bg);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--img-placeholder-icon);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    .img-placeholder:hover {
        border-color: var(--accent-color);
        background: rgba(0,153,255,0.1);
    }

    .img-placeholder i {
        font-size: 2.5rem;
    }

    .img-placeholder span {
        font-size: 0.78rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        opacity: 0.7;
    }

    .img-placeholder .img-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--accent-color);
        opacity: 0.6;
        margin-top: 4px;
    }
/* Sizes */
.img-placeholder-hero {
    height: 480px;
}

.img-placeholder-about {
    height: 380px;
}

.img-placeholder-card {
    height: 220px;
}

.img-placeholder-inline {
    height: 300px;
}




body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}
/*** Works on common browsers ***/
*::selection {
    background-color: #ffffff;
    color: #050505;
    eeeeeeeeee
}

/*** Mozilla based browsers ***/
*::-moz-selection {
    background-color: #ffffff;
    color: #050505;
}

/***For Other Browsers ***/
*::-o-selection {
    background-color: #ffffff;
    color: #050505;
}

*::-ms-selection {
    background-color: #ffffff;
    color: #050505;
}

/*** For Webkit ***/
*::-webkit-selection {
    background-color: #ffffff;
    color: #050505;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
}

.display-3 {
    font-weight: 600;
    letter-spacing: -1.5px;
}

.display-5 {
    letter-spacing: -1px;
}

/* 🌟 CANVAS Glowing Grid Pattern */
/*.grid-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;*/
/*    pointer-events: none;*/
/*background-color: var(--bg-dark);
}*/

/* Utilities */
.text-muted-custom {
    color: var(--text-secondary);
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.max-w-700 {
    max-width: 700px;
}

.section-title {
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--text-secondary);
}

.hover-white {
    transition: color var(--transition-speed);
}

    .hover-white:hover {
        color: var(--text-primary) !important;
    }

/* Navbar */
.nexus-nav {
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-speed) ease;
    padding: 1rem 0;
    z-index: 1030;
}

    .nexus-nav.scrolled {
        /*background: rgba(10, 10, 10, 0.95);*/
        /*  backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);*/
        border-bottom: 1px solid var(--card-border);
        padding: 0.6rem 0;
    }

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--text-primary) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-secondary) !important;
    transition: color 0.2s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 0.5rem 1.2rem !important;
}

    .nav-link:hover {
        color: var(--text-primary) !important;
    }

/* Buttons */
.nexus-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    padding: 0.75rem 2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    font-weight: 400;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2;
}

    .nexus-btn:hover {
        background: var(--text-primary);
        color: var(--bg-dark);
        border-color: var(--text-primary);
        box-shadow: 0 0 20px var(--accent-glow);
    }

    .nexus-btn.btn-lg {
        padding: 1rem 2.5rem;
        font-size: 0.9rem;
    }

.border-md-start {
    border-color: var(--card-border) !important;
}

/* Hero Specific */
.hero-text h1 {
    line-height: 1.1;
}

.spline-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.spline-container {
    width: 100%;
    height: 600px;
    border: none;
    outline: none;
}

/* Cards */
.nexus-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    cursor: pointer;
}

    .nexus-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(600px circle at var(--mouse-x, -500%) var(--mouse-y, -500%), rgba(255,255,255,0.06), transparent 40%);
        opacity: 0;
        transition: opacity var(--transition-speed) ease;
        pointer-events: none;
    }

    .nexus-card:hover {
        transform: translateY(-5px);
        border-color: rgba(255,255,255,0.25);
        background: rgba(255, 255, 255, 0.05);
    }

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

.card-icon {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 200;
    color: var(--accent-color);
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem !important;
}

.bg-dark-custom {
    background: rgba(5,5,5,0.9);
    backdrop-filter: blur(10px);
}

.footer-top1 {
    visibility: hidden;
}
/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
/*.hide-cursor, .hide-cursor * {
        cursor: none !important;
    }
    */
/*.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 15px var(--accent-color);
}*/

/*.cursor-trail {
    position: fixed;
    top: 0; left: 0;
    width: 26px;
    height: 26px;
    background-color: rgba(0, 153, 255, 0.15);
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 50%;*/
/*    pointer-events: none;*/
/*z-index: 9998;
}*/

/* This is the magic fix */
/*.cursor-dot,
.cursor-trail {
    pointer-events: none !important;
    user-select: none !important;
}*/

/* Ensure your buttons are definitely clickable and on a high layer */
.nexus-btn,
.nav-link,
a,
button {
    pointer-events: auto !important;
    /*cursor: none !important;*/ /*  Keeps the system cursor hidden */
    position: relative;
    z-index: 100;
}
/* =========================================================
   GSAP FULL PAGE SCROLL DEFAULT (Mobile fallback)
   ========================================================= */
#gsap-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
}

.gsap-section {
    position: relative;
    width: 100%;
    min-height: 90vh;
    padding: 130px 0 20px;
    overflow: hidden;
}

.outer, .inner, .bg {
    width: 100%;
    height: 100%;
}

.bg {
    display: flex;
    align-items: center;
    position: relative;
}

/* =========================================================
   GSAP FULL PAGE SCROLL DESKTOP ONLY
   ========================================================= */
@media (min-width: 992px) {
    body {
        overflow: hidden;
    }
    /* Disable native scroll */
    #gsap-wrapper {
        height: 100vh;
        width: 100vw;
    }

    .gsap-section {
        height: 100%;
        width: 100%;
        top: 0;
        left: 0;
        position: fixed;
        visibility: hidden;
        will-change: transform;
        padding: 0;
    }

    .outer, .inner {
        width: 100%;
        height: 100%;
        overflow-y: hidden;
        will-change: transform;
    }

    .bg {
        position: absolute;
        top: 0;
        left: 0;
        background: transparent;
    }

    /* SplitType text animation styles */
    .char {
        transform: translateY(100%);
        opacity: 0;
        display: inline-block;
    }

    .clip-text-wrapper {
        overflow: hidden;
        display: inline-block;
        vertical-align: top;
    }
}


/* --- RESPONSIVENESS GUIDELINES --- */
@media (min-width: 768px) {
    .border-md-start {
        border-left: 1px solid var(--card-border) !important;
    }

    .footer-top1 {
        visibility: visible !important;
        top: 100px;
    }
}

@media (max-width: 1024px) {
    .display-3 {
        font-size: 3.5rem;
    }

    .spline-container {
        height: 500px;
    }
}

@media (max-width: 991px) {
    .gsap-section {
        visibility: visible !important;
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .py-6 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .display-3 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .display-5 {
        font-size: 2rem;
    }

    .hero-text p.lead {
        font-size: 1.05rem;
    }

    .spline-wrapper {
        margin-top: 2rem;
    }

    .spline-container {
        height: 350px;
    }

    .offcanvas {
        background-color: #050505 !important;
    }

    .nexus-btn {
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .spline-container {
        height: 250px;
    }

    .display-3 {
        font-size: 2.2rem;
    }

    .nexus-card {
        padding: 1.5rem !important;
    }

    .border-md-start {
        border: none !important;
        margin-top: 1rem;
    }
}

/* =========================================================
   CUSTOM UTILITIES FOR TECHRADIANCE UPDATE
   ========================================================= */
/*.text-glow {
    text-shadow: 0 0 20px rgba(0, 153, 255, 0.4);
}*/
.glass-panel {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

    .glass-panel:hover {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(0, 153, 255, 0.3) !important;
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

.fs-7 {
    font-size: 0.8rem;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.transition-transform {
    transition: transform 0.3s ease;
    display: inline-block;
}

.nexus-card:hover .arrow-hover {
    transform: translateX(5px);
}

.border-accent {
    border-color: var(--accent-color) !important;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Navigation Arrows */
.slide-nav-arrows {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.nav-arrow-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

    .nav-arrow-btn:hover {
        background: rgba(0, 153, 255, 0.2);
        border-color: var(--accent-color);
        color: var(--accent-color);
        box-shadow: 0 0 15px rgba(0, 153, 255, 0.4);
        transform: scale(1.1);
    }
/*.pholder::placeholder {
        color: var(--text-secondary) !important;
        opacity: 1 !important;
    }*/
.pholder::placeholder {
    color: #ffffff; /* Your desired color */
    opacity: 0.7; /* Required for Firefox to show the full color */
}

.pholder::-ms-input-placeholder { /* Edge 12 -18 */
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}
