/* SoftwareGenie24 Designer Edition */
:root {
    --bg-main: #F4F6F9;
    --surface: #FFFFFF;
    --primary-dark: #0f172a; /* Slate 900 */
    --primary: #1e293b; /* Slate 800 */
    --accent: #3b82f6; /* Premium Blue */
    --accent-glow: rgba(59, 130, 246, 0.5);
    --text-main: #334155; /* Slate 700 */
    --text-muted: #64748B; /* Slate 500 */
    
    /* Animation Durations */
    --transition-snappy: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
    ::selection {
        background-color: var(--accent);
        color: white;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Subtle noise texture for premium tactile feel */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6, .brand-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }

p { margin-bottom: 1.25rem; }

.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Floating Glass Navbar --- */
.nav-wrapper {
    position: fixed;
    top: 1.5rem;
    left: 0;
    right: 0;
    z-index: 1030;
    display: flex;
    justify-content: center;
    pointer-events: none; /* Let clicks pass to content behind nav-wrapper */
}

.floating-nav {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 100px;
    padding: 0.5rem 1.5rem !important;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255,255,255,1);
    pointer-events: auto; /* Re-enable clicks for navbar itself */
    min-width: 80%;
    transition: all var(--transition-snappy);
}

.navbar-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-dark) !important;
    transition: transform var(--transition-snappy);
}

.navbar-brand:hover { transform: scale(1.02); }

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.25rem !important;
    border-radius: 100px;
    transition: all var(--transition-snappy);
    margin: 0 0.1rem;
}

.nav-link:hover {
    color: var(--primary-dark) !important;
    background: rgba(15, 23, 42, 0.04);
}

.nav-link.active {
    color: var(--primary-dark) !important;
    background: rgba(15, 23, 42, 0.06);
    font-weight: 600;
}

.nav-link-contact {
    background: var(--primary-dark) !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.nav-link-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.25);
    background: var(--accent) !important;
}

/* Fix mobile nav */
@media (max-width: 991px) {
    .floating-nav { border-radius: 20px; align-items: flex-start; }
    .navbar-collapse { padding-top: 1rem; border-top: 1px solid rgba(0,0,0,0.05); margin-top: 1rem; }
    .nav-link { border-radius: 8px; margin-bottom: 0.5rem; }
}


/* --- Hero Section & Glow Orbs --- */
.hero-section {
    background-color: var(--surface);
    padding: 160px 0 120px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    z-index: 1;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: -10%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.5;
    z-index: -1;
    animation: float-slow 12s infinite alternate ease-in-out;
}

.hero-glow-2 {
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: float-slow 15s infinite alternate-reverse ease-in-out;
}

@keyframes float-slow {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.05); }
}

.hero-section h1 { color: var(--primary-dark); }
.hero-section .lead { color: var(--text-main); max-width: 700px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn-primary {
    background: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 100px;
    padding: 1rem 2rem;
    font-weight: 500;
    transition: all var(--transition-snappy);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-dark);
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 100px;
    padding: 1rem 2rem;
    font-weight: 500;
    transition: all var(--transition-snappy);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
}

/* Sections & Typography Alignments */
.section-padding { padding: 120px 0; position: relative; }
.section-title { font-size: 2.5rem; letter-spacing: -0.02em; position: relative; display: inline-block; color: var(--primary-dark); margin-bottom: 3rem; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 40px; height: 3px; background: var(--accent); border-radius: 10px; }

.bg-light-custom { background-color: var(--surface) !important; }

/* Bento Grid System */
.bento-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(min-content, auto);
    gap: 24px;
}

.bento-item {
    background: var(--surface);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 24px rgba(0,0,0,0.02);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity var(--transition-snappy);
    z-index: 1; pointer-events: none;
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
}

.bento-item:hover::before { opacity: 1; }

.bento-item > * { position: relative; z-index: 2; }

/* Bento Span Classes */
.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }
.bento-span-8 { grid-column: span 8; }
.bento-span-12 { grid-column: span 12; }

@media (max-width: 991px) {
    .bento-span-4, .bento-span-6, .bento-span-8 { grid-column: span 12; }
}

/* Retro-Compatibility for old Feature Boxes & Cards */
.feature-box, .card {
    background: var(--surface);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 24px rgba(0,0,0,0.02);
    transition: all var(--transition-smooth);
    height: 100%;
}
.card { padding: 0; }
.card-body { padding: 2rem; }

.feature-box:hover, .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    color: var(--accent);
    transition: all var(--transition-snappy);
}

.feature-box:hover .feature-icon {
    background: var(--accent);
    color: white;
    transform: scale(1.05) rotate(5deg);
}

.check-list { list-style: none; padding-left: 0; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.5rem; color: var(--text-main); }
.check-list li::before {
    content: "\F26A"; /* Bootstrap Icon Check Circle Fill */
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0; color: var(--accent);
    font-size: 1.1rem; top: 1px;
}

/* Footers */
.footer-modern {
    background: var(--surface) !important;
    color: var(--text-muted);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.footer-modern h5 { color: var(--primary-dark); font-weight: 600; margin-bottom: 1.5rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: all var(--transition-snappy); }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* Animation Utility */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
