/* Base Styles & Variables */
:root {
    --primary-color: #0066ff; /* Vibrant electric blue */
    --primary-hover: #0052cc;
    --navy-blue: #0a192f;
    --charcoal: #111827;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(0, 102, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--charcoal);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

p {
    font-size: 1.125rem;
    color: var(--text-light);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--charcoal);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--charcoal);
    color: var(--charcoal);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
    padding: 16px 0;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--charcoal);
    letter-spacing: -0.03em;
}

.logo i {
    color: var(--primary-color);
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--charcoal);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background-color: var(--bg-main);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(255,255,255,0) 100%);
    z-index: 0;
    border-bottom-left-radius: 100%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 102, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 102, 255, 0); }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.trust-banner {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.trust-banner p {
    font-size: 0.875rem;
    margin-bottom: 16px;
    font-weight: 500;
}

.trust-logos {
    display: flex;
    gap: 32px;
    align-items: center;
}

.logo-placeholder {
    font-size: 2rem;
    color: #94a3b8;
    opacity: 0.7;
    transition: var(--transition);
}

.logo-placeholder:hover {
    color: var(--charcoal);
    opacity: 1;
}

/* Hero Graphic / Dashboard Mockup */
.hero-graphic {
    position: relative;
    perspective: 1000px;
}

.glass-card {
    background: rgba(10, 25, 47, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    color: white;
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-card:hover {
    transform: rotateY(0) rotateX(0);
}

.dashboard-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dots {
    display: flex;
    gap: 6px;
    margin-right: 16px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.dashboard-header .title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
}

.dashboard-body {
    padding: 24px;
}

.stat-row {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.stat-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid transparent;
}

.stat-item.critical { border-left-color: #ef4444; }
.stat-item.high { border-left-color: #f97316; }
.stat-item.medium { border-left-color: #eab308; }

.stat-item .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 8px;
}

.stat-item .value {
    font-size: 2rem;
    font-weight: 700;
}

.scan-line-container {
    position: relative;
    background: #0d1117;
    padding: 24px;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    overflow: hidden;
}

.code-snippet {
    color: #c9d1d9;
}

.code-snippet .keyword { color: #ff7b72; }
.code-snippet .function { color: #d2a8ff; }
.code-snippet .string { color: #a5d6ff; }
.code-snippet .comment { color: #8b949e; }

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color), 0 20px 20px rgba(0, 102, 255, 0.2);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Section Headers */
.section-header {
    margin-bottom: 64px;
    max-width: 800px;
}

.section-header.center {
    text-align: center;
    margin: 0 auto 64px;
}

.heading-line {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
    margin-top: 16px;
}

.heading-line.center {
    margin: 16px auto 0;
}

.section-subtitle {
    margin-top: 24px;
    font-size: 1.25rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    border-radius: 12px;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 102, 255, 0.2);
    transform: translateY(-4px);
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    margin-bottom: 24px;
    min-height: 84px;
}

.card-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link:hover {
    gap: 12px;
}

/* Benefits / Why Us */
.benefits-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.benefit-icon {
    font-size: 2rem;
    color: var(--charcoal);
}

.benefit-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-main);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.quote-icon {
    font-size: 2rem;
    color: rgba(0, 102, 255, 0.2);
    margin-bottom: 24px;
}

.testimonial-text {
    color: var(--charcoal);
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 32px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Call to Action */
.cta {
    position: relative;
    background-color: var(--navy-blue);
    color: white;
    text-align: center;
    overflow: hidden;
    padding: 120px 0;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.glow-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -200px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #4ade80;
    bottom: -150px;
    right: -100px;
}

.cta-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.cta h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 24px;
}

.cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

/* Footer */
.footer {
    background-color: var(--charcoal);
    color: white;
    padding: 80px 0 32px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-logo {
    color: white;
    margin-bottom: 24px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-column h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
}

.legal-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .trust-logos {
        justify-content: center;
    }
    
    .hero-graphic {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .services-grid,
    .benefits-layout,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    
    .hero-title { font-size: 2.5rem; }
    
    .nav-links, .nav-actions .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .services-grid,
    .benefits-layout,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links-group {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Internal Pages specific styling */
.inner-hero {
    padding: 140px 0 60px;
    background-color: var(--bg-light);
    }

.inner-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.inner-hero p {
    font-size: 1.25rem;
    max-width: 600px;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pricing-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 102, 255, 0.3);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 24px;
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.pricing-features li i {
    color: var(--primary-color);
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.resource-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.resource-card:hover {
    box-shadow: var(--shadow-lg);
}

.resource-image {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(0, 102, 255, 0.2);
}

.resource-content {
    padding: 24px;
}

.resource-content .badge {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.resource-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .pricing-grid, .resources-grid {
        grid-template-columns: 1fr;
    }
}



/* ============================================
   MOBILE NAV DRAWER
   ============================================ */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.open { opacity: 1; }

.nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--bg-main);
    z-index: 1200;
    padding: 32px 24px;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-drawer.open { right: 0; }

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.drawer-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.125rem;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    display: block;
}

.drawer-links a:hover { color: var(--primary-color); }

.drawer-cta {
    margin-top: 32px;
}

/* ============================================
   CONTACT MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: var(--bg-main);
    border-radius: 16px;
    width: 100%;
    max-width: 540px;
    padding: 48px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover { color: var(--charcoal); }

.modal-box h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.modal-box > p {
    color: var(--text-light);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--text-main);
    background: var(--bg-main);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-submit {
    width: 100%;
    margin-top: 8px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 24px;
}

.form-success i {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 16px;
}

/* ============================================
   FLOATING BUTTONS (WhatsApp + Back-to-Top)
   ============================================ */
.floating-buttons {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.fab:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }

.fab-whatsapp {
    background: #25d366;
    color: white;
    text-decoration: none;
}

.fab-top {
    background: var(--primary-color);
    color: white;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.fab-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   STATS COUNTER SECTION
   ============================================ */
.stats-section {
    background: var(--primary-color);
    padding: 64px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-count-item {
    color: white;
}

.stat-count-item .count-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-count-item .count-label {
    font-size: 1rem;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .floating-buttons { bottom: 20px; right: 20px; }
}

/* ============================================
   RESOURCES PAGE ENHANCEMENTS
   ============================================ */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.resource-card.hidden { display: none; }

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.resource-card-featured {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    min-height: 280px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.resource-card-featured:hover {
    box-shadow: var(--shadow-lg);
}

.resource-card-featured .resource-image {
    height: 100%;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 80px 0;
    text-align: center;
}

.newsletter-section h2 { margin-bottom: 12px; }
.newsletter-section p { margin-bottom: 32px; }

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    background: var(--bg-main);
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

@media (max-width: 768px) {
    .resources-grid { grid-template-columns: 1fr; }
    .resource-card-featured { grid-column: span 1; grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
}

/* Active nav link */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 700;
}




/* Custom Logo Image Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Keeps white background transparent */
}
.footer-logo img {
    height: 48px;
}


/* THREAT TICKER */
.threat-ticker-wrapper {
    background-color: #0f172a;
    border-bottom: 1px solid #1e293b;
    color: #94a3b8;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    height: 40px;
    width: 100%;
    position: relative;
    z-index: 90;
}

.threat-ticker-label {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    color: white;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: 1px;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}

.threat-ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    padding-left: 20px;
}

.threat-ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    margin-right: 40px;
    display: flex;
    align-items: center;
}

.ticker-severity {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 8px;
    color: white;
}

.severity-critical { background-color: #dc2626; }
.severity-high { background-color: #ea580c; }
.severity-medium { background-color: #eab308; color: #111827; }

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}


/* ATTACK SURFACE DIAGRAM */
.attack-surface-diagram {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 40px;
    position: relative;
}

.as-node {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    width: 160px;
    height: 150px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.as-node i {
    font-size: 2.5rem;
    color: #6366f1;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.as-node span {
    font-weight: 600;
    color: #1e293b;
}

.as-node:hover {
    transform: translateY(-5px);
    border-color: #dc2626;
    box-shadow: 0 10px 15px rgba(220, 38, 38, 0.1);
}

.as-node:hover i {
    color: #dc2626;
}

.as-info-panel {
    width: 100%;
    max-width: 600px;
    background: #1e293b;
    border-radius: 12px;
    padding: 30px;
    color: white;
    margin-top: 20px;
    min-height: 200px;
    transition: all 0.3s ease;
}

.as-info-panel h3 {
    color: #60a5fa;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.as-info-panel p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 10px;
}

.threat-text {
    color: #fca5a5;
    font-weight: 600;
}
.defense-text {
    color: #86efac;
    font-weight: 600;
}


/* LEAD GEN CARD */
.lead-gen-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}


/* ROI CALCULATOR */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
}

.calc-inputs h3, .calc-outputs h3 {
    margin-bottom: 25px;
    color: #0f172a;
    font-size: 1.5rem;
}

.calc-group {
    margin-bottom: 25px;
}

.calc-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #475569;
}

.calc-group select, .calc-group input[type="range"] {
    width: 100%;
}

.calc-group select {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 1rem;
    outline: none;
}

.calc-group input[type="range"] {
    -webkit-appearance: none;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
}

.calc-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6366f1;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.range-val {
    text-align: right;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 8px;
    font-weight: 600;
}

.output-card {
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.output-card.risk {
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.output-card.investment {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.output-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.risk .output-label { color: #dc2626; }
.investment .output-label { color: #10b981; }

.output-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 5px;
}

.output-sub {
    font-size: 0.875rem;
    color: #64748b;
}

.roi-metric {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #cbd5e1;
}


/* INFINITE MARQUEE */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.tech-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #64748b;
    margin: 0 30px;
    transition: color 0.3s ease;
}

.tech-logo i {
    font-size: 1.75rem;
}

.tech-logo:hover {
    color: white;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* INTERACTIVE TIMELINE */
.timeline-container {
    max-width: 800px;
    margin: 40px auto 0;
    position: relative;
    padding-left: 30px;
    border-left: 3px solid #e2e8f0;
}

.timeline-step {
    position: relative;
    margin-bottom: 30px;
    cursor: pointer;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    position: absolute;
    left: -48px;
    top: 0;
    width: 34px;
    height: 34px;
    background: white;
    border: 3px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    color: #64748b;
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-step.active .step-marker {
    border-color: #6366f1;
    background: #6366f1;
    color: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.step-content {
    background: white;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.timeline-step.active .step-content {
    border-color: #6366f1;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.1);
}

.step-content h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1e293b;
    transition: color 0.3s ease;
}

.timeline-step.active .step-content h3 {
    color: #6366f1;
}

.step-details {
    display: none;
    margin-top: 15px;
    color: #475569;
    line-height: 1.6;
    animation: fadeIn 0.4s ease;
}

.step-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.step-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}

.text-primary { color: #6366f1; margin-right: 8px; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* HACKER TERMINAL */
.terminal-container {
    background: #0d1117;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.1);
    overflow: hidden;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
}
.terminal-header {
    background: #161b22;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #30363d;
}
.terminal-title {
    color: #8b949e;
    font-size: 0.875rem;
    margin-left: 15px;
    font-weight: 500;
}
.terminal-body {
    padding: 24px;
    color: #c9d1d9;
    font-size: 0.95rem;
    line-height: 1.6;
    height: 350px;
    overflow-y: hidden;
    position: relative;
}
.term-line {
    margin-bottom: 4px;
    display: block;
}
.term-prompt { color: #3fb950; font-weight: bold; margin-right: 8px; }
.term-cmd { color: #f2cc60; }
.term-success { color: #3fb950; font-weight: bold; }
.term-error { color: #f85149; font-weight: bold; }
.term-info { color: #58a6ff; }
.term-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #c9d1d9;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }


/* THREAT LIBRARY */
.threat-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}
.threat-card:hover {
    transform: translateX(10px);
    border-color: #cbd5e1;
}
.threat-header {
    background: #f8fafc;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.threat-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #0f172a;
}
.cvss {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.cvss.critical { background: rgba(220, 38, 38, 0.1); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.2); }
.cvss.high { background: rgba(249, 115, 22, 0.1); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.2); }

.threat-body {
    padding: 24px;
    color: #475569;
}
.threat-body p {
    margin-bottom: 16px;
    line-height: 1.7;
}
.threat-body p:last-child {
    margin-bottom: 0;
}
.threat-body strong {
    color: #0f172a;
}


/* GLOBAL ATTACK MAP */
.attack-map-wrapper {
    background: #1e293b;
    border-radius: 16px;
    border: 1px solid #334155;
    padding: 40px;
    position: relative;
}

.map-stats {
    display: flex;
    justify-content: space-around;
}

.map-stat {
    text-align: center;
}

.map-stat .stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.map-stat .stat-lbl {
    color: #94a3b8;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.attack-map {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 400px;
}

.world-map {
    width: 100%;
    height: 100%;
    fill: #334155;
    opacity: 0.5;
}

.continent {
    transition: fill 0.3s ease;
}
.continent:hover {
    fill: #475569;
}

.attack-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: radar-pulse 2s infinite;
}

.attack-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.attack-line {
    stroke: #ef4444;
    stroke-width: 2;
    stroke-dasharray: 10, 10;
    opacity: 0.5;
    animation: dash-flow 2s linear infinite;
}

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1.2s; }
.delay-3 { animation-delay: 1.8s; }

@keyframes radar-pulse {
    0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
    100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes dash-flow {
    to { stroke-dashoffset: -20; }
}

@media (max-width: 768px) {
    .map-stats { flex-direction: column; gap: 20px; }
    .attack-map { display: none; /* Hide complex SVG on mobile */ }
}


/* PROFESSIONAL SVG MAP STYLES */
.realistic-world-map {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.1));
}
.realistic-world-map path {
    fill: #1e293b;
    stroke: #334155;
    stroke-width: 0.5px;
    transition: fill 0.3s;
}
.realistic-world-map path:hover {
    fill: #334155;
}

#radar-blips {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.radar-blip {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #ef4444, 0 0 20px #ef4444;
    animation: blip-pulse 2s infinite;
    z-index: 20;
}

.radar-blip.blue {
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6, 0 0 20px #3b82f6;
}

.radar-ring {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid #ef4444;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radar-ring-anim 2s infinite ease-out;
}
.radar-blip.blue .radar-ring { border-color: #3b82f6; }

@keyframes blip-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes radar-ring-anim {
    0% { width: 12px; height: 12px; opacity: 1; border-width: 2px; }
    100% { width: 60px; height: 60px; opacity: 0; border-width: 0px; }
}

.attack-vector {
    fill: none;
    stroke: #ef4444;
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.6;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash-draw 1.5s forwards ease-in-out, fade-out 2s forwards 2s;
}

@keyframes dash-draw {
    to { stroke-dashoffset: 0; }
}
@keyframes fade-out {
    to { opacity: 0; }
}

.threat-tooltip {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 16px;
    width: 240px;
    color: white;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 30;
}
.threat-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}
.tt-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border-bottom: 1px solid #334155;
    padding-bottom: 8px;
}
.tt-body div { margin-bottom: 6px; }
.tt-label { color: #94a3b8; }
.tt-val { color: #f8fafc; font-family: monospace; float: right; }
.tt-status {
    margin-top: 12px;
    font-weight: 700;
    text-align: center;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 4px;
    border-radius: 4px;
}


/* CASE STUDY SPECIFIC STYLES */
.featured-case-study {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}
.fcs-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.fcs-metrics {
    display: flex;
    gap: 30px;
    border-top: 1px solid #334155;
    padding-top: 25px;
}
.fcs-metric {
    display: flex;
    flex-direction: column;
}
.fcs-val {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
}
.fcs-lbl {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .featured-case-study { grid-template-columns: 1fr; }
}

.case-study-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.csc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.csc-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.csc-logo {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.1rem;
}
.csc-logo i { color: #3b82f6; margin-right: 5px; }
.csc-body {
    flex-grow: 1;
}
.csc-block {
    margin-bottom: 20px;
}
.csc-block h4 {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.csc-block p {
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.6;
}
.csc-footer {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
    border-left: 3px solid #3b82f6;
}
.csc-quote {
    font-style: italic;
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.csc-author {
    display: flex;
    flex-direction: column;
}
.csc-author strong { font-size: 0.9rem; color: #0f172a; }
.csc-author span { font-size: 0.8rem; color: #64748b; }


/* CAROUSEL STYLES */
.case-study-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 50px;
}
.case-study-carousel {
    overflow: hidden;
    width: 100%;
}
.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.case-study-carousel-wrapper .case-study-card {
    min-width: calc(33.333% - 20px); /* 3 items per view */
    flex-shrink: 0;
    /* Remove fade-up transform conflict */
    transform: none;
    opacity: 1;
}
.case-study-carousel-wrapper .case-study-card:hover {
    transform: translateY(-5px);
}
.carousel-btn {
    background: #0f172a;
    color: white;
    border: 2px solid #3b82f6;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    transition: background 0.3s, transform 0.3s;
}
.carousel-btn:hover {
    background: #3b82f6;
    transform: scale(1.1);
}
.carousel-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}
.prev-btn { left: -25px; }
.next-btn { right: -25px; }

@media (max-width: 1200px) {
    .case-study-carousel-wrapper .case-study-card { min-width: calc(50% - 15px); /* 2 items */ }
}
@media (max-width: 768px) {
    .case-study-carousel-wrapper .case-study-card { min-width: 100%; /* 1 item */ }
    .carousel-btn { display: none; }
    .case-study-carousel {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
    }
    .carousel-track { gap: 15px; }
    .case-study-carousel-wrapper .case-study-card { scroll-snap-align: center; }
}


/* CONTINUOUS TESTIMONIAL MARQUEE */
.testimonial-marquee-wrapper {
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Break out of container to be full width */
    position: relative;
    padding: 20px 0 60px 0;
    margin-top: 40px;
}
.testimonial-marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-testimonials 50s linear infinite;
    padding-left: 30px;
}
.testimonial-marquee-track:hover {
    animation-play-state: paused;
}
.testimonial-card {
    width: 380px;
    white-space: normal;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.quote-icon {
    color: #3b82f6;
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0.5;
}
.testimonial-text {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}
.author-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.author-info h4 {
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 2px;
}
.author-info span {
    font-size: 0.8rem;
    color: #64748b;
}

@keyframes scroll-testimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

@media (max-width: 768px) {
    .testimonial-card { width: 300px; padding: 25px; }
    .testimonial-marquee-track { animation-duration: 40s; }
}


/* ANIMATED STATS SECTION */
.animated-stats-section {
    position: relative;
}
.stats-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    top: -200px;
    left: -200px;
    animation: float-glow 15s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}
.stats-glow-2 {
    top: auto;
    bottom: -200px;
    left: auto;
    right: -200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    animation: float-glow-reverse 12s ease-in-out infinite alternate;
}

@keyframes float-glow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}
@keyframes float-glow-reverse {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, -50px) scale(1.1); }
}

@media (max-width: 992px) {
    .animated-stats-section .stats-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}


/* LIGHT STATS OVERRIDES */
.light-glow {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}
.light-glow-2 {
    top: auto;
    bottom: -200px;
    left: auto;
    right: -200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    animation: float-glow-reverse 12s ease-in-out infinite alternate;
}
.light-glass-card {
    transition: transform 0.3s, box-shadow 0.3s;
}
.light-glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.15) !important;
}
