/* GOLDEN ELECTRO FAB - MASTER STYLESHEET
    Aesthetic: Modern, Tech-Forward, Bento-Box
    Developed by: BnGLink (https://bnglink.in/)
*/

/* 1. IMPORTS & VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap');

:root {
    --brand-primary: #0ea5e9; 
    --brand-dark: #0f172a; 
    --brand-light: #f8fafc;
    --brand-slate: #334155;
    --neon-glow: rgba(14, 165, 233, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.85);
}

/* 2. CORE RESET */
body {
    font-family: 'Outfit', sans-serif;
    color: var(--brand-slate);
    background-color: #f1f5f9; /* Subtle off-white for depth */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

main {
    flex: 1 0 auto;
}

/* 3. TYPOGRAPHY & TEXT COLORS */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--brand-dark);
    font-weight: 700;
    letter-spacing: -1.5px;
}

.text-primary { color: var(--brand-primary) !important; }

/* FIX: Ensure white text is visible on dark backgrounds */
.bg-dark .text-muted, .bg-primary .text-white-50 {
    color: #cbd5e1 !important; 
}
.bg-dark .lead, .bg-primary .lead {
    color: #f1f5f9 !important;
}

.display-5 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, var(--brand-dark) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 4. FLOATING ISLAND NAVIGATION */
.nav-wrapper {
    z-index: 9999 !important;
    pointer-events: none;
}

.glass-nav {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 1);
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--brand-dark);
    font-weight: 600;
    padding: 0.6rem 1.2rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--brand-primary) !important;
    background: rgba(14, 165, 233, 0.08);
}

/* 5. BENTO BOX CARDS */
.card, .bg-white.rounded-5, .bg-dark.rounded-5 {
    border-radius: 28px !important;
    border: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
}

.card-img-top {
    border-radius: 20px !important;
    margin: 10px;
    width: calc(100% - 20px);
}

/* 6. MODERN BUTTONS */
.btn {
    border-radius: 50px;
    font-weight: 700;
    padding: 0.8rem 1.8rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border: none;
    box-shadow: 0 8px 20px var(--neon-glow);
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 28px var(--neon-glow);
    background: linear-gradient(135deg, #1d4ed8, #0284c7);
}

.btn-outline-dark {
    border: 2px solid var(--brand-dark);
    background: transparent;
}

.bg-primary-soft {
    background-color: rgba(14, 165, 233, 0.1) !important;
}

/* 7. SECTION SPACING & HERO FIX */
header {
    padding-top: 11rem !important; /* Push content below floating nav */
    padding-bottom: 6rem !important;
    position: relative;
    z-index: 1;
}

.feature {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 18px;
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* 8. MASTER FOOTER */
footer {
    background-color: var(--brand-dark) !important;
    padding: 4rem 0 3rem;
    color: #94a3b8;
}

footer h5, footer h6 { color: white; }

/* Legibility fix for BnGLink credit */
footer p, footer span {
    color: #cbd5e1 !important;
    font-weight: 400;
}

footer a.text-info {
    color: var(--brand-primary) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

footer a.text-info:hover {
    text-shadow: 0 0 12px var(--brand-primary);
    color: white !important;
}

/* 9. MOBILE REFINEMENTS */
@media (max-width: 991px) {
    header { padding-top: 8rem !important; }
    .display-5 { font-size: 2.8rem; }
    .offcanvas { width: 300px !important; }
}