/* assets/css/main.css */
:root {
    --primary: #0F172A; /* Deep dark blue/gray */
    --accent: #F59E0B; /* Vibrant Gold/Amber */
    --bg: #020617; /* Very dark background */
    --surface: #1E293B; /* Slightly lighter for cards */
    --text-primary: #F8FAFC; /* Near white text */
    --text-muted: #94A3B8; /* Gray text */
    --success: #10B981;
    --danger: #EF4444;
    --border: #334155; /* Subtle border for dark mode */

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-card: 12px;
    --radius-btn: 8px;
    --radius-input: 6px;
    --radius-badge: 20px;

    --shadow-card: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-hover: 0 10px 40px rgba(0,0,0,0.6);
    --shadow-modal: 0 24px 64px rgba(0,0,0,0.8);

    --transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animated Blurred Background Elements */
@keyframes blob-bounce {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(25vw, -15vh) scale(1.4); }
    66% { transform: translate(-15vw, 25vh) scale(0.8); }
    100% { transform: translate(0px, 0px) scale(1); }
}
@keyframes blob-bounce-2 {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(-25vw, 25vh) scale(0.9); }
    66% { transform: translate(30vw, -15vh) scale(1.5); }
    100% { transform: translate(0px, 0px) scale(1); }
}
@keyframes blob-bounce-3 {
    0% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(15vw, 30vh) scale(1.6); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animated-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg);
}

.animated-bg .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.8;
}

.animated-bg .blob-1 {
    top: -20vh; left: -10vw; width: 70vw; height: 70vw;
    background: rgba(30, 58, 138, 0.8); /* Deep Blue */
    animation: blob-bounce 25s infinite ease-in-out alternate;
}

.animated-bg .blob-2 {
    bottom: -30vh; right: -10vw; width: 80vw; height: 80vw;
    background: rgba(15, 23, 42, 0.95); /* Primary Dark */
    animation: blob-bounce-2 30s infinite ease-in-out alternate;
}

.animated-bg .blob-3 {
    top: 10vh; left: 10vw; width: 60vw; height: 60vw;
    background: rgba(245, 158, 11, 0.35); /* Vibrant Gold */
    animation: blob-bounce-3 28s infinite ease-in-out alternate;
}

.animated-bg .blob-4 {
    bottom: 10vh; left: 30vw; width: 40vw; height: 40vw;
    background: rgba(56, 189, 248, 0.4); /* Bright cyan accent */
    animation: blob-bounce 20s infinite ease-in-out alternate-reverse;
}

/* Padding utilities */
.py-hero { padding: 120px 0 64px 0; }
.py-section { padding: 96px 0; }

@media (max-width: 768px) {
    .py-hero { padding: 64px 0 32px 0; }
    .py-section { padding: 48px 0; }
}

/* Typing Animation */
.typing-wrapper {
    display: inline-flex;
}
.typing-text {
    border-right: 3px solid var(--accent);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent) }
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: transparent; /* Allow animated bg to show */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #fff;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-white { color: #fff !important; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* Filter Bar Specific */
.filter-bar-card {
    margin-bottom: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: var(--transition);
}

@media (min-width: 769px) {
    .filter-bar-card {
        position: sticky;
        top: 100px;
        z-index: 100;
        box-shadow: var(--shadow-card);
    }
}

@media (max-width: 768px) {
    .filter-bar-card {
        position: relative;
        top: 0;
        margin-bottom: 24px;
        padding: 16px;
    }
    
    .filter-bar-form {
        gap: 12px !important;
    }
}

/* Layout */
main {
    min-height: calc(100vh - 80px - 200px); /* header + footer approx */
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.navbar.scrolled {
    box-shadow: var(--shadow-card);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}
.logo-accent {
    width: 32px;
    height: 3px;
    background-color: var(--accent);
    margin-top: 2px;
    border-radius: 2px;
}

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* Footer */
.site-footer {
    background-color: var(--primary);
    color: #fff;
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-col h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 24px;
}
.footer-tagline {
    color: rgba(255,255,255,0.7);
    margin-top: 16px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.7);
}
.footer-col ul li a:hover {
    color: var(--accent);
}
.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.7);
}
.contact-list li i {
    width: 18px;
    height: 18px;
    color: var(--accent);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Sections */
.section {
    padding: 96px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 36px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}
.bg-navy { background-color: var(--primary); color: #fff; }
.bg-navy h2, .bg-navy h3, .bg-navy p { color: #fff; }
.bg-navy p { color: rgba(255,255,255,0.8); }
.bg-light { background-color: var(--bg); }
.bg-white { background-color: var(--surface); }

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-card);
    }
    .nav-links.show { display: flex; }
    .mobile-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom .container { flex-direction: column; gap: 12px; }
    .section { padding: 48px 0; }
    
    .filter-bar-form {
        display: grid;
        grid-template-columns: 1fr;
    }
    .filter-bar-form .form-group {
        margin-bottom: 12px;
    }
    
    .hero .form-row {
        text-align: center;
    }
    .hero h1 {
        font-size: 36px !important;
    }
    .hero p {
        font-size: 16px !important;
        margin: 0 auto 24px !important;
    }
    .hero .btn {
        width: 100%;
        margin-bottom: 12px;
    }
    .hero .btn-outline {
        margin-bottom: 0;
    }
    
    .hero-stats-container {
        display: none;
    }
    
    .nav-actions .btn-primary {
        display: none;
    }
}

@media (min-width: 769px) {
    .filter-bar-form {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr auto;
    }
    .hero-stats-container {
        display: block;
    }
    
    .grid-2-col {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (min-width: 1024px) {
    .grid-7-3-col {
        grid-template-columns: 7fr 3fr !important;
    }
    .grid-2-col-lg {
        grid-template-columns: 1fr 1fr !important;
    }
    .detail-col {
        grid-column: span 1;
    }
}

.grid-responsive {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.grid-2-col-mobile-safe {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 480px) {
    .grid-2-col-mobile-safe {
        grid-template-columns: 1fr 1fr;
    }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 24px;
}
.card-grid-lg {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    gap: 24px;
}

.trusted-logo {
    color: var(--text-primary);
    opacity: 0.3;
    transition: all 0.4s ease;
    cursor: default;
}
.trusted-logo:hover {
    opacity: 1;
    color: var(--accent);
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}
