:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3; /* Improved contrast for WCAG AA */
    --accent-color: #00f2ea;
    --accent-secondary: #ff0055;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #333 var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 242, 234, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: left 0.1s ease, top 0.1s ease;
    mix-blend-mode: screen;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-color), #00aaff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.glass-nav {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

.logo .highlight {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links .cta-btn {
    padding: 0.6rem 1.5rem;
    background: var(--text-primary);
    color: var(--bg-color);
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-links .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
    overflow: hidden;
    /* Removed the old radial gradient to allow the image to shine, 
       but keeping a dark overlay for text readability */
    background: #050505;
}

/* The Flowing Background Image */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: url('images/hero-bg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.4;
    /* Keeping it subtle so text pops */
    z-index: 1;
    animation: flowBg 20s ease-in-out infinite alternate;
    filter: blur(2px) brightness(0.8);
    /* Artistic touch for depth */
}

/* Animation Keyframes for the Flow */
@keyframes flowBg {
    0% {
        transform: scale(1) translate(0, 0);
    }

    33% {
        transform: scale(1.05) translate(-1%, 1%);
    }

    66% {
        transform: scale(1.02) translate(1%, -1%);
    }

    100% {
        transform: scale(1.08) translate(0, 0);
    }
}

.hero::after {
    /* Gradient overlay to ensure text contrast at the bottom/center */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #050505 90%);
    z-index: 1;
}

.hero-content {
    max-width: var(--container-width);
    width: 100%;
    position: relative;
    z-index: 10;
    /* Above the background and overlay */
    text-align: center;
}

.pill-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    background: rgba(5, 5, 5, 0.8);
    /* Added bg for better contrast over image */
    backdrop-filter: blur(5px);
}

.hero-sub {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.25rem;
    color: #e0e0e0;
    /* Slightly brighter for image background */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.primary-btn,
.secondary-btn,
.cta-btn-large {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(45deg, var(--accent-color), #00aaff);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.3);
}

.primary-btn:hover {
    box-shadow: 0 0 40px rgba(0, 242, 234, 0.6);
    transform: translateY(-2px);
}

.secondary-btn {
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent backing */
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(4px);
}

.secondary-btn:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Philosophy Section */
.philosophy-section {
    padding: 8rem 2rem;
    background: #080808;
    position: relative;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Problem / Gap Section */
.gap-section {
    padding: 8rem 2rem;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(to right, #050505, #0a0a0a);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.problem-list {
    list-style: none;
    margin: 2rem 0;
}

.problem-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.problem-list span {
    font-size: 1.5rem;
}

.highlight-p {
    color: var(--text-primary);
    font-weight: 600;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
}

.comparison-graphic {
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.old-way {
    opacity: 0.5;
    margin-bottom: 2rem;
}

.bar {
    height: 30px;
    background: #333;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    width: 80%;
    /* Indicating high cost */
}

.new-way .bar-success {
    height: 40px;
    background: var(--accent-color);
    color: #000;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    font-weight: 700;
    width: 40%;
    /* Efficient */
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.4);
}

/* Case Study */
.case-study-section {
    padding: 8rem 2rem;
}

.case-header .tag {
    color: var(--accent-secondary);
    border: 1px solid var(--accent-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-header h2 {
    margin-top: 1rem;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.story-item {
    padding: 2rem;
    border-left: 1px solid var(--glass-border);
    position: relative;
}

.story-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 2px;
    height: 0;
    background: var(--accent-color);
    transition: height 0.5s ease;
}

.story-item:hover::before {
    height: 100%;
}

.story-item .step-number {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.05);
    font-weight: 700;
    position: absolute;
    top: 1rem;
    right: 2rem;
}

.story-item h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Contact */
.contact-section {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: radial-gradient(circle at 50% 100%, rgba(0, 242, 234, 0.05) 0%, transparent 50%);
}

.cta-btn-large {
    background: var(--text-primary);
    color: var(--bg-color);
    font-size: 1.2rem;
    margin-top: 3rem;
    display: inline-block;
}

.cta-btn-large:hover {
    background: var(--accent-color);
    color: #000;
}

/* Footer */
footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-secondary);
}

/* Protocol Section */
.protocol-section {
    padding: 8rem 2rem;
    background: #080808;
}

.protocol-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.step-card {
    flex: 1;
    min-width: 200px;
    position: relative;
    padding: 1rem;
}

.step-card .step-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.step-line {
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    opacity: 0.3;
    display: none;
    /* Hidden on mobile, shown on desktop via query if needed */
}

/* Enhanced Case Study */
.case-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: center;
}

.case-narrative h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.metric-box {
    background: rgba(0, 242, 234, 0.05);
    /* Tinted background */
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.metric-box:hover {
    transform: scale(1.05);
    background: rgba(0, 242, 234, 0.1);
}

.metric-val {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Blog / Insights Section */
.insights-section {
    padding: 8rem 2rem;
    background: linear-gradient(to bottom, #0a0a0a, #050505);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.blog-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.read-more {
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: margin-left 0.2s;
}

.read-more:hover {
    margin-left: 5px;
}

/* Mobile Tweaks for new sections */
@media (max-width: 768px) {
    .case-content-wrapper {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 3rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .glass-nav {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .nav-links.nav-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background: rgba(10, 10, 10, 0.98);
        padding: 1.5rem 2rem;
        border-radius: 20px;
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(20px);
        gap: 1rem;
        z-index: 1000;
    }

    .nav-links.nav-active li {
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        width: 25px;
        height: 2px;
        background: var(--text-primary);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Mobile Menu Toggle - Hidden on Desktop */
.mobile-menu-toggle {
    display: none;
}

/* Blog Specific Styles */
.blog-page-nav {
    position: relative;
    /* Not fixed like home, or optionally fixed */
    margin-bottom: 2rem;
}

.blog-hero {
    padding: 6rem 2rem 4rem;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(0, 242, 234, 0.05) 0%, transparent 70%);
}

.blog-hero h1 {
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.blog-meta-large {
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.9rem;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    font-size: 1.15rem;
    color: #d0d0d0;
}

.blog-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.blog-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.blog-content ul {
    list-style: none;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--accent-color);
}

.blog-content li {
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.blog-content strong {
    color: var(--text-primary);
}

.blog-footer-nav {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    text-align: center;
}

/* ============================================
   TRUST SIGNALS SECTION
   ============================================ */

.trust-section {
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, #0a0a0a, var(--bg-color));
    border-top: 1px solid var(--glass-border);
}

.trust-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.trust-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.trust-icon {
    font-size: 1.5rem;
}

.trust-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .trust-grid {
        gap: 1rem;
    }

    .trust-item {
        padding: 0.8rem 1.2rem;
    }

    .trust-text {
        font-size: 0.85rem;
    }
}

/* ============================================
   CONTACT & WHATSAPP ENHANCEMENTS
   ============================================ */

.contact-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.whatsapp-btn {
    background: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
    color: #fff;
}

.btn-icon {
    font-size: 1.3rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .contact-actions {
        flex-direction: column;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus States for Keyboard Navigation */
a:focus-visible,
button:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.nav-links .cta-btn:focus-visible,
.cta-btn-large:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* Skip to main content link (add to HTML if needed) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: #000;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Reduced Motion for Users Who Prefer It */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .cursor-glow {
        display: none;
    }

    .hero::before {
        animation: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .cursor-glow,
    header,
    footer,
    .hero::before,
    .hero::after {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: 2rem;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .gradient-text {
        background: none;
        -webkit-text-fill-color: black;
        color: black;
    }
}