/* =========================================
   1. GLOBAL VARIABLES & RESET (Original)
   ========================================= */
:root {
    --brand-primary: #4361ee;
    --brand-secondary: #7209b7;
    --brand-accent: #f72585;
    --dark-bg: #0f172a;
    --light-bg: #f8f9fa;
    --eco-green: #064e3b;
    /* 2025 Earthy Extension */
    --earth-dark: #12151c;
}

body {
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    background: var(--dark-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.8s ease;
    /* For Adaptive Dark Mode */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* =========================================
   2. NAVIGATION (Original)
   ========================================= */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s ease;
}

.nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--brand-accent) !important;
}

.btn-nav {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 0;
    padding: 10px 25px;
}

/* =========================================
   3. HERO & SECTIONS (Original)
   ========================================= */
.hero-wrapper {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 20% 50%, #1e293b 0%, #0f172a 100%);
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    clip-path: polygon(25% 0%, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
    opacity: 0.55;
}

.code-tag {
    font-family: 'Roboto Mono', monospace;
    color: var(--brand-accent);
    background: rgba(247, 37, 133, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Slanted Sections (Original) */
.slant-section {
    position: relative;
    padding: 100px 0;
    z-index: 5;
}

.bg-white-slant {
    background: #fff;
    color: #1e293b;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: -50px 0;
    padding: 150px 0;
}

/* =========================================
   4. SPECIALTY SECTIONS (ECO / WEB DEV - Original)
   ========================================= */
.eco-hero-section {
    position: relative;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--eco-green) 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.eco-blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.eco-blob {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
}

/* =========================================
   5. CARDS & UI ELEMENTS (Original)
   ========================================= */
.service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    color: white !important;
    border-color: var(--brand-primary);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--brand-primary);
    z-index: -1;
    transition: width 0.4s ease;
}

/* =========================================
   6. FOOTER (Original)
   ========================================= */
footer {
    background: #020617;
    padding-top: 100px;
    font-size: 0.9rem;
    margin-top: auto;
}

footer .form-control {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(15, 23, 42, 0.6);
    border-radius: 4px;
}

footer .form-control:focus {
    background-color: rgba(15, 23, 42, 0.9);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
    color: #fff;
}

/* =========================================
   7. 2025 STRATEGIC EXTENSIONS (NEW)
   ========================================= */

/* Bold Typography Standard */
.fw-black {
    font-weight: 900;
    letter-spacing: -0.04em;
}

/* 2025 Muted Backgrounds */
.bg-dark-2025 {
    background-color: var(--earth-dark);
}

/* Micro-Interaction: Strategic Hover Effect */
.trend-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.trend-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--brand-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Responsive Micro-interactions for Framework Badges */
.feature-tag {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    padding: 6px 16px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--brand-primary);
    border: 1px solid rgba(67, 97, 238, 0.2);
    display: inline-block;
}

/* Adaptive Dark Mode Support */
body.theme-night {
    background-color: #020617;
    /* Deeper Black */
}

/* Mobile Adjustments for Oversized Fonts */
@media (max-width: 991px) {
    .display-3 {
        font-size: 3rem !important;
    }
}

/* =========================================
   8. RETRO MODE (WINDOWS 95/98) INTEGRATION
   ========================================= */
:root {
    --retro-silver: #c0c0c0;
    --retro-dark-blue: #000080;
    --retro-cyan: #008080;
    --retro-neon-pink: #ff00ff;
    --retro-neon-yellow: #fff200;
}

/* CRT Switch Transition Overlay */
#crt-switch-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: none;
    opacity: 0;
    pointer-events: none;
}

#crt-switch-transition.active {
    display: block;
    pointer-events: all;
    animation: crt-glitch-anim 0.8s ease-out;
}

@keyframes crt-glitch-anim {
    0% {
        opacity: 0;
        background: #000;
    }
    15% {
        opacity: 1;
        background: repeating-linear-gradient(0deg, #111 0px, #111 2px, #fff 2px, #fff 4px);
    }
    30% {
        opacity: 1;
        background: #000;
        transform: scaleY(1) scaleX(1);
    }
    45% {
        opacity: 1;
        background: repeating-linear-gradient(90deg, #00f 0px, #00f 2px, #f0f 2px, #f0f 4px);
        transform: scaleY(0.01) scaleX(1);
    }
    60% {
        opacity: 1;
        background: #fff;
        transform: scaleY(0.01) scaleX(0.01);
    }
    75% {
        opacity: 1;
        background: #000;
        transform: scaleY(1) scaleX(1);
    }
    100% {
        opacity: 0;
    }
}

/* Retro Navbar Button styling */
.nav-link-retro {
    border: 1px solid var(--brand-accent);
    color: var(--brand-accent) !important;
    border-radius: 4px;
    padding: 4px 12px !important;
    font-weight: bold;
    animation: pulse-retro-btn 2s infinite;
}
@keyframes pulse-retro-btn {
    0% { box-shadow: 0 0 0 0 rgba(247, 37, 133, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(247, 37, 133, 0); }
    100% { box-shadow: 0 0 0 0 rgba(247, 37, 133, 0); }
}

/* General Retro Overrides */
body.retro-active {
    background-color: var(--retro-cyan) !important;
    background-image: none !important;
    font-family: "Courier New", Courier, monospace !important;
    color: #000 !important;
    overflow-x: hidden !important;
}

body.retro-active * {
    font-family: "Courier New", Courier, monospace !important;
    border-radius: 0 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Nav Bar Windows 95 Style */
body.retro-active .navbar {
    background: var(--retro-silver) !important;
    border-bottom: 3px outset #fff !important;
    padding: 5px 0 !important;
    box-shadow: 0 2px 0 #000 !important;
}

body.retro-active .navbar-brand,
body.retro-active .navbar-brand * {
    color: #000 !important;
    font-weight: bold !important;
}

body.retro-active .nav-link {
    color: #000 !important;
    font-weight: bold !important;
    padding: 4px 10px !important;
    border: 1px solid transparent;
}

body.retro-active .nav-link:hover {
    background: var(--retro-dark-blue) !important;
    color: #fff !important;
}

body.retro-active .btn-nav {
    background: var(--retro-silver) !important;
    border: 2px outset #fff !important;
    color: #000 !important;
    font-weight: bold !important;
    box-shadow: inset 1px 1px 0 #fff !important;
}

body.retro-active .btn-nav:active {
    border: 2px inset #fff !important;
}

/* Slanted Sections Reset */
body.retro-active .slant-section,
body.retro-active .bg-white-slant,
body.retro-active .eco-hero-section {
    clip-path: none !important;
    background: var(--retro-cyan) !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 50px 0 !important;
}

body.retro-active section {
    background: var(--retro-cyan) !important;
    color: #000 !important;
}

/* Hero Section */
body.retro-active .hero-wrapper {
    background: var(--retro-cyan) !important;
    height: auto !important;
    min-height: unset !important;
    padding: 120px 0 50px 0 !important;
}

body.retro-active .hero-bg-shape {
    display: none !important;
}

body.retro-active .hero-content h1 {
    color: #fff !important;
    text-shadow: 2px 2px #000 !important;
}

body.retro-active .hero-content p {
    color: #fff !important;
    text-shadow: 1px 1px #000 !important;
    opacity: 1 !important;
}

body.retro-active .btn-light {
    background: var(--retro-silver) !important;
    border: 2px outset #fff !important;
    color: #000 !important;
    font-weight: bold !important;
    box-shadow: inset 1px 1px 0 #fff !important;
}

body.retro-active .btn-light:active {
    border: 2px inset #fff !important;
}

/* Turn modern containers & sections into Windows 95 Desktop Windows */
body.retro-active .bg-dark,
body.retro-active .service-card,
body.retro-active .trend-card,
body.retro-active .mobile-showcase,
body.retro-active .ai-panel,
body.retro-active footer {
    background: var(--retro-silver) !important;
    border: 3px outset #fff !important;
    color: #000 !important;
    box-shadow: 4px 4px 0px #000 !important;
    position: relative;
    padding-top: 35px !important;
    margin-bottom: 30px;
}

/* Pseudo Header Bars on Windows 95 Containers */
body.retro-active .service-card::before,
body.retro-active .trend-card::before,
body.retro-active .ai-panel::before,
body.retro-active footer::before {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 22px;
    background: linear-gradient(90deg, var(--retro-dark-blue), #1084d0) !important;
    color: white !important;
    font-family: sans-serif !important;
    font-size: 11px !important;
    font-weight: bold !important;
    display: flex;
    align-items: center;
    padding-left: 8px;
    box-sizing: border-box;
    z-index: 5;
}

body.retro-active .service-card::before { content: "SERVICE_MODULE.EXE"; }
body.retro-active .trend-card::before { content: "STANDARDS_COMPLIANCE.SYS"; }
body.retro-active .ai-panel::before { content: "AI_AGENT_WORKFORCE.EXE"; }
body.retro-active footer::before { content: "CONTACT_INFO.SYS"; }

/* Text Elements Inside Retro Windows */
body.retro-active .text-dark,
body.retro-active .text-secondary,
body.retro-active .text-light,
body.retro-active .text-muted,
body.retro-active .lead {
    color: #000 !important;
    opacity: 1 !important;
}

/* Link Elements */
body.retro-active a {
    color: #0000ee !important;
    text-decoration: underline !important;
}

body.retro-active a:hover {
    color: #551a8b !important;
}

/* Stat Box windows */
body.retro-active .stat-box {
    background: #fff !important;
    border: 2px inset #fff !important;
    margin: 5px !important;
    padding: 10px !important;
    text-align: center;
}

body.retro-active .stat-number {
    color: var(--retro-neon-pink) !important;
    font-size: 28px !important;
    font-weight: bold;
}

/* Desktop console mockup in hero (the exe window) */
body.retro-active .col-lg-6 .bg-dark {
    padding-top: 25px !important;
}

body.retro-active .col-lg-6 .bg-dark::before {
    content: "CLOUDARK_SYSTEM.EXE";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 20px;
    background: linear-gradient(90deg, var(--retro-dark-blue), #1084d0) !important;
    color: white !important;
    font-family: sans-serif !important;
    font-size: 10px !important;
    font-weight: bold !important;
    display: flex;
    align-items: center;
    padding-left: 5px;
}

body.retro-active .font-monospace {
    color: #00ff00 !important;
    background: #000 !important;
    padding: 5px !important;
}

/* Footer window styling */
body.retro-active footer {
    margin-top: 40px !important;
    padding-bottom: 20px !important;
}

body.retro-active footer * {
    color: #000 !important;
}

body.retro-active footer a.btn-primary {
    background: var(--retro-silver) !important;
    border: 2px outset #fff !important;
    color: #000 !important;
    font-weight: bold !important;
    box-shadow: inset 1px 1px 0 #fff !important;
}

body.retro-active footer a.btn-primary:active {
    border: 2px inset #fff !important;
}

/* CRT Screen overlay */
body.retro-active .crt-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.12) 0px,
            rgba(0, 0, 0, 0.12) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    z-index: 9999;
    animation: crt-flicker-effect 0.15s infinite;
}

@keyframes crt-flicker-effect {
    0% { opacity: 0.97; }
    50% { opacity: 1.0; }
    100% { opacity: 0.98; }
}

/* =========================================
   9. EXTRACTED INLINE STYLES UTILITIES
   ========================================= */
.navbar-logo {
    height: 75px;
}

.brand-accent-text {
    color: var(--brand-accent);
}

.hero-lead {
    max-width: 500px;
}

.hero-terminal {
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dot {
    width: 10px;
    height: 10px;
}

.stat-section-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -50px;
}

.converting-web-design {
    background: #0b1120;
}

.phone-screen {
    background: #111;
    height: 600px;
    border-radius: 20px;
    padding: 20px;
    position: relative;
}

.stats-chart {
    height: 100px;
}

.stats-bar-1 { height: 40%; }
.stats-bar-2 { height: 60%; }
.stats-bar-3 { height: 50%; }
.stats-bar-4 { height: 80%; }

.icon-circle {
    width: 40px;
    height: 40px;
}

.text-micro {
    font-size: 0.7rem;
}

.phone-fab {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--brand-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(247, 37, 133, 0.5);
}

.section-divider {
    height: 3px;
    width: 60px;
    background: var(--brand-primary);
    margin: 0 auto;
}

