:root {
    --primary-color: #001F3F;
    /* Brand Navy */
    --primary-dark: #00152a;
    /* Darker Navy */
    --secondary-color: #64748b;
    /* Slate Gray */
    --accent-color: #3DB9F5;
    /* Lighter Blue Accent */
    --light-bg: #f8fbff;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;

    /* Service Themes */
    --theme-web: #001F3F;
    /* Navy */
    --theme-saas: #10b981;
    /* Green */
    --theme-marketing: #8b5cf6;
    /* Purple */
    --theme-cloud: #b45309;
    /* Brown/Rust */
}

/* Override Bootstrap Defaults to match Brand */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Fix visibility in primary background sections */
.bg-primary,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6 {
    color: #ffffff !important;
}

.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6 {
    color: #ffffff !important;
}

body {
    font-family: var(--font-body);
    color: #334155;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #0f172a;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-web {
    background: linear-gradient(135deg, var(--theme-web), #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-saas {
    background: linear-gradient(135deg, var(--theme-saas), #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-marketing {
    background: linear-gradient(135deg, var(--theme-marketing), #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cloud {
    background: linear-gradient(135deg, var(--theme-cloud), #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.section-padding {
    padding: 80px 0;
}

.ls-1 {
    letter-spacing: 1px;
}

/* Navbar Style */
.navbar {
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.fixed-top {
    top: 0;
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.fixed-top.scrolled {
    top: 20px;
    width: 90%;
    max-width: 1300px;
    left: 5%;
    right: 5%;
    margin: 0 auto;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}



.nav-link {
    font-weight: 500;
    color: #475569 !important;
    margin: 0 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Dropdown Hover for Desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: all 0.3s ease;
    }

    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-color);
    color: #fff;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
    background: transparent;
    position: relative;
}

.hero-bg-shape {
    display: none;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    inset: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.2);
    /* Light overlay for readability */
    z-index: 1;
}

.hero-image-wrapper {
    position: relative;
    border: 8px solid rgba(255, 255, 255, 0.8);
}

.shadow-2 {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.floating-card {
    min-width: 180px;
    z-index: 2;
}

.animate-float-slow {
    animation: float 6s ease-in-out infinite;
}

.animate-float-fast {
    animation: float 5s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Services */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.border-bottom-primary {
    border-bottom: 4px solid var(--primary-color);
}

.border-bottom-success {
    border-bottom: 4px solid #10b981;
}

.border-bottom-warning {
    border-bottom: 4px solid #f59e0b;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* About */
.experience-badge {
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3);
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}



/* CTA */
.cta-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.cta-circle-1,
.cta-circle-2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.cta-circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
}

.hover-scale {
    transition: transform 0.2s;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Footer */
.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Grayscale Hover */
.grayscale-hover img {
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.grayscale-hover img:hover {
    filter: grayscale(0%);
}

/* Infinite Scroll Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: var(--light-bg);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.1);
}

.accordion-button::after {
    filter: grayscale(100%);
}

.accordion-button:not(.collapsed)::after {
    filter: invert(36%) sepia(68%) saturate(3065%) hue-rotate(224deg) brightness(83%) contrast(100%);
}

/* =========================================
   Responsive Styles
   ========================================= */

@media (max-width: 991px) {

    /* Tablet & Small Desktop */
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }

    .hero-image-wrapper {
        margin-top: 3rem;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .display-3 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Devices */

    /* Typography */
    .display-3 {
        font-size: 2.25rem;
        /* Smaller hero heading globally */
    }

    .display-5 {
        font-size: 1.75rem;
        /* Smaller section headings */
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Layout Spacing */
    .section-padding {
        padding: 50px 0;
        /* Reduce vertical spacing */
    }

    /* Hero Section */
    .hero-section {
        min-height: 80vh !important;
        /* Ensure enough height to see the video background */
        padding-top: 120px;
        padding-bottom: 60px;
        display: flex;
        align-items: center;
    }

    .hero-bg-video {
        position: absolute;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        object-fit: cover;
    }

    /* Stats */
    .counter {
        font-size: 2.5rem;
    }

    /* Marquee */
    .marquee-content img {
        margin: 0 1rem !important;
        /* Reduce space between logos */
        height: 30px;
        /* Slightly smaller logos */
        width: 30px;
    }

    /* CTA */
    .cta-circle-1,
    .cta-circle-2 {
        display: none;
        /* Hide abstract circles on mobile to prevent overflow/clutter */
    }

    .cta-box {
        padding: 2rem !important;
        border-radius: 1.5rem !important;
    }

    /* Navbar */
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }
}

/* Floating Footer Style */
/* Case Studies */
.case-study-card {
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    overflow: hidden;
}

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.case-study-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Tech Stack */
.tech-icon-box {
    width: 100px;
    height: 100px;
    padding: 20px;
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    transition: all 0.3s ease;
}

.tech-icon-box:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tech-icon-box img {
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.tech-icon-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Engagement Models */
.engagement-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.engagement-card:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
}

.engagement-card .icon-circle {
    width: 60px;
    height: 60px;
}

/* Lead Capture Form */
.lead-form-section {
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.lead-form-card {
    border: none;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

footer {
    position: relative;
    margin: 40px 5%;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

@media (max-width: 991px) {
    .navbar.fixed-top.scrolled {
        width: 95%;
        left: 2.5%;
        top: 10px;
        border-radius: 20px;
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-radius: 24px;
    padding: 24px;
    z-index: 10000;
    transition: bottom 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
    bottom: 30px;
}

.cookie-content {
    margin-bottom: 20px;
}

.cookie-content h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-content p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cookie-accept {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cookie-accept:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 31, 63, 0.2);
}

.btn-cookie-reject {
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cookie-reject:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

@media (max-width: 576px) {
    .cookie-banner {
        width: calc(100% - 30px);
        padding: 20px;
        border-radius: 20px;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-actions .btn {
        width: 100%;
        text-align: center;
    }
}