/* ===== CSS VARIABLES ===== */
:root {
    /* Premium Blue Color Palette - Streamlined & Professional */
    --c-deep: #0a1428;           /* Deepest navy - for backgrounds */
    --c-navy: #1e293b;           /* Rich navy - primary dark */
    --c-teal: #0891b2;           /* Premium teal - primary accent */
    --c-blue-light: #1e40af;     /* Royal blue - secondary accent */
    --c-blue-medium: #3b82f6;    /* Bright blue - highlights */
    --c-blue-dark: #1e3a8a;      /* Deep blue - depth */
    
    /* Neutral Palette */
    --white: #FFFFFF;
    --light-gray: #f8fafc;
    --medium-gray: #94a3b8;
    --dark-gray: #475569;
    --black: #000000;
    
    /* Legacy Support */
    --green: var(--c-teal);
    
    /* Typography System - Professional Landing Page */
    --font-size-xs: 0.8125rem;    /* ~13px */
    --font-size-sm: 0.9375rem;    /* ~15px */
    --font-size-base: 1.05rem;    /* ~16.8px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.35rem;      /* ~21.6px */
    --font-size-2xl: 1.8rem;      /* 28.8px */
    --font-size-3xl: 2.25rem;     /* 36px */
    --font-size-4xl: 2.7rem;      /* 43.2px */
    --font-size-5xl: 2.9rem;      /* 46.4px */
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
    --line-height-loose: 1.9;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ===== BACKGROUND ===== */
.bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 50%, var(--c-blue-light) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Dots overlay limited to top/bottom bands via mask */
.bg-dots {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0 1px, transparent 1.2px);
    background-size: 22px 22px;
    opacity: 0.9;
    transform: rotate(-12deg);
    /* Show only in top ~30% and bottom ~28% (tweak stops to taste) */
    -webkit-mask:
        linear-gradient(to bottom, black 0%, black 30%, transparent 48%),
        linear-gradient(to top, black 0%, black 28%, transparent 50%);
    mask:
        linear-gradient(to bottom, black 0%, black 30%, transparent 48%),
        linear-gradient(to top, black 0%, black 28%, transparent 50%);
}

/* Graceful fallback where mask isn't supported: soften dots in the centre */
@supports not ((-webkit-mask: none) or (mask: none)) {
    .bg-dots {
        background-image:
            radial-gradient(circle, rgba(74, 144, 226, 0.35) 0 1px, transparent 1.2px),
            /* centre fade reduces dot visibility */
            linear-gradient(to bottom, rgba(4, 26, 51, 0) 20%, rgba(4, 26, 51, 0.85) 55%, rgba(4, 26, 51, 0) 80%);
        background-size: 22px 22px, 100% 100%;
        background-blend-mode: normal, multiply;
        opacity: 0.8;
    }
}

/* ===== HERO SECTION ===== */
.custom-hero {
    background: rgba(4, 26, 51, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    overflow-x: clip; /* guard against animated elements causing horizontal scroll */
}

.custom-hero h1 {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
    line-height: var(--line-height-tight);
}

.custom-hero h2 {
    font-size: var(--font-size-lg);
    color: var(--light-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-normal);
}

/* ===== CUSTOM CONTENT ===== */
.custom-content {
    padding: 5rem 0;
    background: #ffffff;
    overflow-x: clip; /* guard against grid overflow */
}

.custom-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.custom-intro h2 {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--c-deep);
    margin-bottom: 1.5rem;
}

.custom-intro p {
    font-size: var(--font-size-lg);
    color: var(--dark-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
}

/* ===== SOLUTIONS GRID ===== */
.solutions-grid {
    margin-top: 3rem;
}

/* Prevent Bootstrap row negative gutters from causing horizontal overflow on small screens */
.solutions-grid .row {
    margin-left: 0;
    margin-right: 0;
}

.solution-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 1.75rem;
    text-align: left;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.solution-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--c-teal);
}

.solution-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 100%);
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.5rem 0;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(10, 20, 40, 0.15);
}

.solution-icon i {
    font-size: 1.125rem;
    color: var(--white);
}

.solution-card h3 {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--c-deep);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.solution-card p {
    font-size: var(--font-size-sm);
    color: var(--dark-gray);
    line-height: 1.5;
    margin: 0;
}

/* ===== CTA BUTTON ===== */
.btn-custom {
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-navy) 100%);
    color: var(--white);
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(10, 20, 40, 0.15);
    min-height: 44px;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 20, 40, 0.25);
    color: var(--white);
}

.btn-custom i {
    margin-left: 0.625rem;
    font-size: var(--font-size-sm);
    color: var(--white);
}

.btn-custom .icon-left {
    margin-left: 0;
    margin-right: 0.625rem;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .custom-hero h1 {
        font-size: 2rem;
    }

    .custom-hero h2 {
        font-size: 1.125rem;
    }

    .custom-intro h2 {
        font-size: 1.5rem;
    }

    .solution-card {
        margin-bottom: 2rem;
    }

    /* Mobile: avoid fixed background causing horizontal scroll/jank */
    .bg {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    /* Slightly larger paragraph text for readability on small phones */
    .custom-intro p,
    .solution-card p {
        font-size: clamp(0.95rem, 3.6vw, 1.0625rem);
        line-height: 1.55;
    }
}
