:root {
    --primary-color: #0F172A;
    /* Slate 900 */
    --accent-color: #3B82F6;
    /* Blue 500 */
    --accent-glow: #60A5FA;
    /* Blue 400 */
    --text-color: #334155;
    /* Slate 700 */
    --text-light: #94A3B8;
    /* Slate 400 */
    --bg-color: #F8FAFC;
    /* Slate 50 */
    --white: #FFFFFF;
    --nav-height: 90px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    color: var(--primary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary:hover {
    background: #2563EB;
    /* Blue 600 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    height: var(--nav-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* MANDATORY: Clips the logo's white bottom */
}

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

.logo-img {
    height: 70px; /* Requested size */
    /* Standard size for cropped logo */
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    margin-left: 0;
    /* Removed margin as crop might be tight */
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links li a:not(.btn-primary):hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-section h1 .highlight {
    color: var(--accent-color);
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background:
        radial-gradient(circle at 70% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.2) 0%, transparent 40%),
        linear-gradient(to left, rgba(255, 255, 255, 0) 0%, var(--bg-color) 100%);
    pointer-events: none;
    z-index: 1;
    filter: blur(40px);
    opacity: 0.8;
}

/* Solution Section */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #EFF6FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-color);
}

.icon-box svg {
    width: 32px;
    height: 32px;
}

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

.card p {
    color: var(--text-color);
}

/* Why Analytics Section */
.analytics-section {
    background: var(--primary-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.theme-dark-text h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.theme-dark-text .lead {
    font-size: 1.2rem;
    color: #94A3B8;
    /* Slate 400 */
    margin-bottom: 40px;
}

.feature-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.check {
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.feature-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-list p {
    color: #CBD5E1;
    /* Slate 300 */
    font-weight: 300;
}

.abstract-graphic {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, var(--accent-color), #2563EB);
    border-radius: 30px;
    opacity: 0.8;
    position: relative;
}

.abstract-graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.1) 10px,
            transparent 10px,
            transparent 20px);
    border-radius: 30px;
}

/* Result Section */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.stat-item .label {
    font-weight: 500;
    color: var(--text-color);
}

/* Why Snapview Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-card {
    padding: 30px;
    border-left: 4px solid var(--accent-color);
    background: #F1F5F9;
    transition: var(--transition);
}

.feature-card:hover {
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

/* Contact Section */
.contact-section {
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 40px;
    color: var(--text-color);
}

.info-item {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-form {
    padding: 40px;
    background: var(--bg-color);
    border-radius: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.block-btn {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: #94A3B8;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    max-width: 300px;
    line-height: 1.6;
}

.logo-img-footer {
    height: 50px;
    width: auto;
    background: white;
    padding: 4px;
    border-radius: 6px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand p {
        margin: 16px auto 0;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

.fade-in-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 968px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .split-layout,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu implementation in JS */
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: var(--primary-color);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        height: auto;
        padding: 150px 0 80px;
    }

    /* Mobile Nav Adjustments */
    :root {
        --nav-height: 80px;
    }



    .logo-img {
        height: 60px;
        /* Max safe size (User preferred) */
    }
}

.analytics-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.analytics-img:hover {
    transform: scale(1.02);
}

/* Logo Styles */
.logo-link {
    display: flex;
    align-items: center;
}

.logo-crop-container {
    height: 80px;
    width: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 4px;
    padding: 2px;
}



.logo-img-footer {
    height: 80px;
    width: auto;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 8px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

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

.modal-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.modal-content p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.modal-content .close-btn {
    padding: 0.8rem 2rem;
}



/* Mobile Responsive Fixes - Comprehensive */
@media (max-width: 768px) {

    /* Stack Grids */
    .grid-3,
    .grid-4,
    .split-layout,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Typography Sizing */
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    /* Padding Adjustments */
    .section {
        padding: 50px 0;
    }

    .stat-item {
        padding: 20px;
    }

    .card {
        padding: 25px;
    }

    .container {
        padding: 0 20px;
    }

    /* Ensure content doesn't overflow */
    img,
    svg,
    video {
        max-width: 100%;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        display: block;
    }
}

/* Animation Control */
body.video-active .fade-up,
body.video-active .fade-in,
body.video-active .fade-in-scroll {
    opacity: 0 !important;
    animation: none !important;
    transition: none !important;
    transform: translateY(20px);
}

body.animations-active .fade-up {
    animation: fadeUp 0.8s ease forwards;
}

body.animations-active .delay-1 {
    animation-delay: 0.2s;
}

body.animations-active .delay-2 {
    animation-delay: 0.4s;
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    will-change: transform;
}

/* Flip Logic */
.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    outline: 1px solid transparent;
    /* Fix for jagged edges/lines */
    transform: translateZ(1px);
    /* Fix for z-fighting */
}

/* Front Face: Image + Overlay */
.flip-card-front {
    background-color: #0F172A;
    background-size: cover;
    background-position: center;
    color: white;
}

.card-data .flip-card-front {
    background-image: linear-gradient(rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.3)), url('assets/card-1.png');
}

.card-predictive .flip-card-front {
    background-image: linear-gradient(rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.3)), url('assets/card-2.png');
}

.card-realtime .flip-card-front {
    background-image: linear-gradient(rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.3)), url('assets/card-3.png');
}

.flip-card-front .card-image-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.flip-card-front h3 {
    color: white !important;
    font-size: 1.5rem;
    margin: 0;
}

.icon-box-large {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-box-large svg {
    width: 40px;
    height: 40px;
    color: white;
}

/* Back Face: White + Detail Text */
.flip-card-back {
    background: var(--white);
    transform: rotateY(180deg);
    border: 1px solid #e2e8f0;
    align-items: flex-start;
    text-align: left;
}

.flip-card-back h3 {
    color: var(--primary-color);
}