:root {
    --primary: #0f172a;
    --secondary: #0ea5e9;
    --accent: #38bdf8;
    --dark: #020617;
    --light: #f8fafc;
    --text-body: #475569;
    --text-heading: #1e293b;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--text-body);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: var(--transition);
    z-index: 9999;
}

/* Make navbar span full viewport width so the toggler stays visible */
.navbar.fixed-top {
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure the mobile toggler sits above all content and is clearly visible */
.navbar-toggler {
    z-index: 10001;
    border: none;
}

.navbar-toggler-icon {
    /* Force a dark visible icon regardless of Bootstrap defaults */
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280,0,0,0.85%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Keep container positioned so absolute toggler positions relative to it */
.navbar .container-fluid {
    position: relative;
}

/* Ensure navbar's inner container has horizontal padding but cannot overflow */
.navbar .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
}

/* Prevent oversized logo pushing the toggler offscreen on small viewports */
.navbar-brand img {
    max-width: 160px;
    height: auto;
    display: block;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--secondary);
}

.nav-link {
    color: var(--text-heading) !important;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.btn-primary-custom {
    background-color: var(--secondary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
}

.btn-primary-custom:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(14, 165, 233, 0.23);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-shape {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
    filter: blur(60px);
}

/* Section General */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title p {
    color: var(--text-body);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Services */

.service-card {
    background: white;
    border-radius: 1rem;
    padding: 0;

    padding-bottom: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    height: 100%;
    overflow: hidden;
    /* For image scaling */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.service-img-wrapper {
    overflow: hidden;
    height: 250px !important;
    /* Taller for better visibility */
    width: 100% !important;
    /* Full width of the card */
    margin: 0 0 1.5rem !important;
    /* Reset margin */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 12px 12px 0 0;
    /* Top corners rounded */
    border-bottom: 1px solid #f0f0f0;
}

.service-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    /* Show full image */
    object-position: center;
    transition: transform 0.5s ease;
    padding: 0.5rem;
}

/* Marquee / Carousel Styles */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
    background: white;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.partner-logo,
.client-logo {
    height: 200px !important;
    width: 200px !important;
    object-fit: contain !important;
    margin: 0 2rem;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    display: inline-block;
}

.partner-logo:hover,
.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-content {
    padding: 0 2rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}



/* Footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 50px 0 20px;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer p {
    color: #94a3b8;
}

.footer-link {
    color: #94a3b8;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--secondary);
    padding-left: 5px;
}

@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 1rem;
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
    }
}

/* Gallery */
.gallery-img {
    height: 420px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 991.98px) {
    .gallery-img {
        height: 250px;
    }
}