/*
    Traventry - Modern UI Stylesheet
    Inspired by modern SaaS layouts (deep dark theme, vibrant gradients, glassmorphism)
*/

:root {
    /* Color Variables - Blue & White Theme */
    --clr-dark-bg: #f8fafc;
    /* Light Slate */
    --clr-dark-surface: #ffffff;
    /* White */
    --clr-dark-elevated: #f1f5f9;
    /* Soft Slate */

    --clr-primary: #0d6efd;
    /* Bootstrap Blue */
    --clr-primary-hover: #0b5ed7;
    /* Darker Blue */

    --clr-accent-1: #0056b3;
    /* Deep Blue Accent */
    --clr-accent-2: #3b82f6;
    /* Bright Blue */

    --clr-text-main: #0f172a;
    /* Dark Slate Text */
    --clr-text-muted: #64748b;
    /* Muted Slate Text */
    --clr-text-dark: #020617;
    /* Very Dark Text */

    --clr-light-bg: #ffffff;
    --clr-light-surface: #f8fafc;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
}

/* ==================================
   Base & Typography
   ================================== */
body {
    font-family: var(--font-body);
    background-color: var(--clr-light-bg);
    color: var(--clr-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: inherit;
    font-weight: 700;
}

/* Utilities */
.transition-all {
    transition: var(--transition-smooth);
}

.text-muted-light {
    color: var(--clr-text-muted) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--clr-accent-2) 0%, var(--clr-accent-1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Buttons */
.btn-action {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent-1) 100%);
    color: white !important;
    border: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--clr-accent-1) 0%, var(--clr-primary) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(192, 38, 211, 0.3);
}

.btn-action:hover::before {
    opacity: 1;
}

/* ==================================
   Navigation (Dark on Top, Lightens on Scroll)
   ================================== */
.custom-navbar {
    padding: 20px 0;
    background-color: transparent;
    transition: all 0.4s ease;
    z-index: 1030;
}

.custom-navbar .nav-link {
    color: var(--clr-text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 16px;
    margin: 0 4px;
}

.custom-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--clr-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.custom-navbar .nav-link:hover::after,
.custom-navbar .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    color: #0d6efd;
}

/* Scrolled Navbar State */
.custom-navbar.scrolled {
    padding: 12px 0;
    background-color: rgba(214, 214, 214, 0.95);
    /* Slate 900 Glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* ==================================
   Hero Section
   ================================== */
.hero-section {
    position: relative;
    background-color: var(--clr-dark-bg);
    min-height: 100vh;
    padding: 120px 0 80px 0;
    overflow: hidden;
    color: var(--clr-text-main);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.badge-accent {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    font-size: 0.85rem;
}

/* Hero Glow Effects */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.4;
}

.hero-glow.shape-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--clr-primary);
}

.hero-glow.shape-2 {
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--clr-accent-1);
    opacity: 0.3;
}

.hero-glow.shape-3 {
    top: 40%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: var(--clr-accent-2);
    opacity: 0.2;
}

/* Mockup Images */
.dashboard-mockup-wrapper {
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.dashboard-mockup-wrapper:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.glass-card {
    background: rgba(30, 41, 59, 0.7);
    /* Slate 800 semi-transparent */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-group .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--clr-dark-bg);
    margin-right: -10px;
    font-size: 12px;
}

/* ==================================
   General Sections
   ================================== */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

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

.text-accent-1 {
    color: var(--clr-accent-1);
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft) !important;
}

/* ==================================
   Clients & Process Cards
   ================================== */
.client-logo {
    filter: grayscale(100%) opacity(0.5);
    transition: var(--transition-smooth);
    max-height: 40px;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
}

/* Process Lines */
.process-line {
    position: absolute;
    top: 100px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.6) 50%, rgba(99, 102, 241, 0.1) 100%);
    z-index: 0;
}

.process-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.process-step {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--clr-dark-bg);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
}

/* ==================================
   Card Styling
   ================================== */
.feature-card-dark {
    background-color: var(--clr-dark-surface);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    /* Added strong prominent shadow for light mode */
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.feature-card-dark:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
    /* Blue tinted shadow on hover */
    border-color: var(--clr-primary) !important;
}

.blur-decoration {
    width: 600px;
    height: 600px;
    filter: blur(150px);
    pointer-events: none;
}

/* ==================================
   Stats, Reviews & Utilities
   ================================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent-2) 100%);
}

.review-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.border-opacity-10 {
    --bs-border-opacity: 0.1;
}

/* ==================================
   Responsive Adjustments
   ================================== */
@media (max-width: 991.98px) {
    .custom-navbar {
        background-color: rgba(208, 208, 208, 0.98);
        padding: 10px 0;
    }

    .process-line {
        display: none;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-section {
        padding-top: 100px;
    }
}

/* ==================================
   Marquee Scroller
   ================================== */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    display: flex;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    gap: 4rem;
    padding-right: 4rem;
    animation: scrollMarquee 50s linear infinite;
}

.marquee-content img {
    max-height: 45px;
    width: auto;
    opacity: 0.85;
    /* Slightly faded by default for an elegant look */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Smooth, slightly bouncy animation */
}

.marquee-content img:hover {
    opacity: 1;
    cursor: pointer;
    transform: scale(1.15) translateY(-4px);
    /* Pop out and float up */
    filter: drop-shadow(0px 10px 15px rgba(13, 110, 253, 0.25));
    /* Add a soft blue trailing shadow */
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ==================================
   WhatsApp Floating Button
   ================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}