/*
 * iCode Consultancy - Official CSS Stylesheet
 * Brand Tagline: code.software.ai
 * Aesthetic: Premium High-Definition Flat Tech & Gaming Fusion (Solid Logo Colors)
 */

/* ==========================================
   1. Import Fonts & Root Variable System
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Extracted from logo.png */
    --color-bg-deep: #fafbfe;             /* Premium slate-white background */
    --color-bg-dark: #ffffff;             /* Crisp pure white for dark sections */
    --color-bg-card: rgba(255, 255, 255, 0.75); /* Soft light glassmorphism card background */
    
    --color-primary: #009CE9;            /* Signature Logo Cyber Blue */
    --color-primary-rgb: 0, 156, 233;
    --color-secondary: #004087;          /* Signature Logo Deep Navy Blue */
    --color-secondary-rgb: 0, 64, 135;
    
    /* Afro Run Game Accents (Flat Solid) */
    --color-game-orange: #FF5E36;
    --color-game-orange-rgb: 255, 94, 54;
    
    /* Global Text Colors - Inverted for Light Mode */
    --color-text-white: #0f172a;          /* Slate black text for headers */
    --color-text-muted: #5e6b83;          /* Elegant dark grey text for muted details */
    --color-text-bright: #0f172a;         /* High-contrast body text color */
    
    /* Layout Constants */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-glass: 1px solid rgba(0, 0, 0, 0.06); /* Subtly defined dark borders for light cards */
    --border-glow: 1px solid rgba(var(--color-primary-rgb), 0.15);
}

/* ==========================================
   2. Reset & Typography Setup
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-bright);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--color-text-white);
    letter-spacing: -0.02em;
}

p {
    color: var(--color-text-muted);
}

/* Legibility Overrides & Bootstrap Light Mode Adjustments */
.text-muted {
    color: var(--color-text-muted) !important;
}

/* Force Bootstrap's text-white and text-white-50 utilities to dark colors in light mode */
.text-white {
    color: var(--color-text-white) !important;
}

.text-white-50 {
    color: var(--color-text-muted) !important;
}

.opacity-60 {
    opacity: 0.78 !important;
}

a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-text-white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    border: 2px solid var(--color-bg-deep);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ==========================================
   3. Custom Layouts & Flat Backgrounds
   ========================================== */
/* Replaced all mesh gradients with clean, flat dark backgrounds */
.bg-mesh-gradient {
    position: relative;
    background-color: var(--color-bg-deep);
}

.z-1 {
    position: relative;
    z-index: 1;
}

/* ==========================================
   4. Glassmorphism Components (No Gradients)
   ========================================== */
.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-glass);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 64, 135, 0.02); /* Soft shadow for standard state */
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--color-primary-rgb), 0.35);
    box-shadow: 0 20px 40px rgba(0, 64, 135, 0.08), 0 0 20px rgba(var(--color-primary-rgb), 0.1);
}

.glass-card-purple:hover {
    border-color: rgba(var(--color-secondary-rgb), 0.5);
    box-shadow: 0 20px 40px rgba(0, 64, 135, 0.12), 0 0 20px rgba(var(--color-secondary-rgb), 0.1);
}

.glass-card-orange:hover {
    border-color: rgba(var(--color-game-orange-rgb), 0.55);
    box-shadow: 0 20px 40px rgba(255, 94, 54, 0.1), 0 0 20px rgba(var(--color-game-orange-rgb), 0.12);
}

/* Glass Navigation Bar */
.navbar-glass {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 1.2rem 0;
    transition: var(--transition-smooth);
}

.navbar-glass.scrolled {
    padding: 0.7rem 0;
    background: var(--color-bg-dark);
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.25);
    box-shadow: 0 10px 30px rgba(0, 64, 135, 0.05);
}

/* ==========================================
   5. Solid Color Accents (No Gradients)
   ========================================== */
.text-gradient-cyan {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: var(--color-text-muted);
}

.text-gradient-purple {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: var(--color-text-muted);
}

.text-gradient-orange {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: var(--color-game-orange);
}

.text-gradient-brand {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: var(--color-text-muted);
}

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

/* Flat Neon Buttons */
.btn-neon {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-neon-cyan {
    background: var(--color-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3);
}

.btn-neon-cyan:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.5), 0 0 35px rgba(var(--color-primary-rgb), 0.25);
}

.btn-neon-purple {
    background: var(--color-secondary);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(var(--color-secondary-rgb), 0.35);
}

.btn-neon-purple:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--color-secondary-rgb), 0.65), 0 0 35px rgba(var(--color-secondary-rgb), 0.3);
}

.btn-neon-orange {
    background: var(--color-game-orange);
    color: #07080d !important;
    box-shadow: 0 4px 15px rgba(var(--color-game-orange-rgb), 0.4);
}

.btn-neon-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--color-game-orange-rgb), 0.6), 0 0 35px rgba(var(--color-game-orange-rgb), 0.35);
}

.btn-neon-outline {
    background: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(var(--color-primary-rgb), 0.35);
}

.btn-neon-outline:hover {
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.08);
    box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), 0.15);
    transform: translateY(-3px);
}

/* ==========================================
   6. Custom Micro-Animations
   ========================================== */
.ani-float {
    animation: float 6s ease-in-out infinite;
}

.ani-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Tech Icon Flat Solid Styling */
.tech-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
    color: var(--color-text-muted);
    position: relative;
}

.tech-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: var(--color-primary);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.glass-card:hover .tech-icon-wrapper {
    color: #07080d;
    transform: rotate(5deg) scale(1.05);
}

.glass-card:hover .tech-icon-wrapper::after {
    opacity: 1;
}

/* ==========================================
   7. Afro Run Showcase Styling (Flat Solid)
   ========================================== */
.afro-run-showcase {
    position: relative;
    border-radius: 30px;
    background: #0f1017; /* Retain dark contrast for the showcase */
    border: 1px solid rgba(var(--color-game-orange-rgb), 0.25);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Force elements inside Afro Run showcase to retain white styling */
.afro-run-showcase .text-white,
.afro-run-showcase h1,
.afro-run-showcase h2,
.afro-run-showcase h3,
.afro-run-showcase h4,
.afro-run-showcase td,
.afro-run-showcase .fw-700 {
    color: #ffffff !important;
}

.afro-run-showcase .text-white-50,
.afro-run-showcase p,
.afro-run-showcase td.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Custom override for dark tables in light mode */
.table-dark {
    --bs-table-color: var(--color-text-white) !important;
    --bs-table-bg: transparent !important;
}

.afro-badge {
    background: rgba(var(--color-game-orange-rgb), 0.1);
    color: var(--color-game-orange);
    border: 1px solid rgba(var(--color-game-orange-rgb), 0.3);
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Floating Game Mockup */
.mockup-container {
    position: relative;
    perspective: 1000px;
}

.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 40px;
    border: 12px solid #1c1d29;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(var(--color-game-orange-rgb), 0.25);
    transform: rotateY(-15deg) rotateX(10deg);
    transition: var(--transition-smooth);
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.03);
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.9), 0 0 50px rgba(var(--color-game-orange-rgb), 0.4);
}

.phone-screen {
    width: 100%;
    aspect-ratio: 9 / 19.5;
    background-size: cover;
    background-position: center;
    border-radius: 28px;
    overflow: hidden;
}

/* ==========================================
   8. Form Styling
   ========================================== */
.form-glass-input {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-text-white) !important;
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: var(--transition-smooth);
}

.form-glass-input::placeholder {
    color: rgba(15, 23, 42, 0.4);
}

.form-glass-input:focus {
    background: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.15);
    outline: none;
}

textarea.form-glass-input {
    min-height: 120px;
}

/* ==========================================
   9. Footer Styles & Info Panels
   ========================================== */
.footer-border-top {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.02);
    border: var(--border-glass);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

.footer-social-btn:hover {
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.08);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

/* ==========================================
   10. App Store Badges Styling
   ========================================== */
.badge-store {
    height: 44px;
    display: inline-block;
    transition: var(--transition-smooth);
}

.badge-store:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ==========================================
   11. Extra Animations & Layout Fixes
   ========================================== */
.cursor-pointer {
    cursor: pointer;
}

.highlight-badge {
    background: rgba(var(--color-primary-rgb), 0.08);
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .glass-card {
        padding: 1.8rem;
    }
    
    .phone-mockup {
        transform: none;
        max-width: 280px;
        margin-top: 3rem;
    }
    
    .phone-mockup:hover {
        transform: scale(1.02);
    }
}
