/* Global Reset to eliminate browser gaps */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #eff6ff;
    --secondary-blue: #3b82f6;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --light-bg: #f8fafc;
}

/* Global Styles */
body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.02em;
}

.hero-carousel {
    position: relative;
    min-height: 220px; /* Increased for multi-line headlines */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.carousel-item-text {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%) translateY(20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden;
    text-align: center;
}

.carousel-item-text.active {
    opacity: 1;
    transform: translateY(-50%) translateY(0);
    visibility: visible;
}

.hero-section h1 {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 30px rgba(37, 99, 235, 0.3);
}

.hero-section h1 span.text-info {
    text-shadow: 0 0 20px rgba(13, 202, 240, 0.6), 0 0 40px rgba(13, 202, 240, 0.4);
}


.tracking-wider {
    letter-spacing: 0.1em;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    transition: all 0.3s ease;
    top: 0; /* Force to top */
}

.footer {
    background-color: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 5rem;
    padding-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}

.footer-link:hover {
    color: var(--primary-blue);
    transform: translateX(8px);
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-heading {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
}


.navbar-brand {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.4rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Dropdown on Hover */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        margin-top: 0;
    }

    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .nav-item.dropdown:hover > .dropdown-menu {
        pointer-events: auto;
    }
    
    /* Hover Bridge */
    .nav-item.dropdown {
        padding-bottom: 10px;
        margin-bottom: -10px;
    }
}

.dropdown-item {
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0 8px;
    width: calc(100% - 16px);
}

.dropdown-item:hover {
    background-color: var(--primary-blue-light) !important;
    color: var(--primary-blue) !important;
    transform: translateX(4px);
}

.navbar-nav.ms-auto .nav-item {
    display: flex;
    align-items: center;
    height: auto; /* Prevent stretching to full navbar height */
    padding: 0;
    margin: 0;
}

.login-link {
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 24px; /* Fixed height for exact hitbox */
    height: 24px;
    display: block;
    padding: 0 !important;
    margin: 0 !important;
    align-self: center;
}

.login-link:hover {
    color: var(--primary-blue);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
}

.btn-hover-scale {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-self: center; /* Prevent vertical stretching */
    height: 42px; /* Fixed height for exact hitbox */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.btn-hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2) !important;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Hero background effect */
.hero-bg {
    background: url('assets/images/hero-modern-tech.png') center/cover no-repeat;
}

.hero-section h1 {
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7); /* Solid, dark black shadow */
}

.hero-section p.lead {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Strong shadow for readability */
}

/* Dashboard Mockup */
.dashboard-mockup {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) scale(1.02);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Floating Avatars Animations */
.floating-avatar {
    z-index: 2;
    animation: floatAnimation 4s ease-in-out infinite alternate;
}

.floating-icon {
    object-fit: contain;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 12px; /* Give icons breathing room */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.08); /* Deep, layered shadows */
    transition: all 0.3s ease;
}

.floating-icon:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}


.avatar-1 {
    animation-delay: 0s;
}

.avatar-2 {
    animation-delay: 1s;
    animation-duration: 5s;
}

.avatar-3 {
    animation-delay: 0.5s;
    animation-duration: 4.5s;
}

.avatar-4 {
    animation-delay: 1.5s;
    animation-duration: 6s;
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Feature Cards */
.bg-light {
    background-color: var(--light-bg) !important;
}

.feature-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 40px 70px rgba(37, 99, 235, 0.12) !important;
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.2) !important;
    cursor: pointer;
}

.feature-card .feature-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
    background-color: var(--primary-blue) !important;
    color: white !important;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.feature-card h3 {
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--primary-blue);
}

.btn-hover-scale {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.btn-hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Hero Special Buttons */
.btn-hero-creator {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.btn-hero-creator:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2) !important;
}

.btn-hero-brand {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.btn-hero-brand:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2) !important;
}

/* Creator Cards */
/* Advantage Cards (Why Choose Us) */
.advantage-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.advantage-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1) !important;
    border-color: var(--primary-blue) !important;
    z-index: 10; /* Bring to front on hover */
    cursor: pointer;
}

.advantage-card .icon-box {
    transition: all 0.3s ease;
    pointer-events: none; /* Let the card handle the hover */
}

.advantage-card:hover .icon-box {
    background-color: var(--primary-blue) !important;
    color: white !important;
    transform: rotate(10deg);
}

.creator-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.creator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.creator-img {
    transition: transform 0.6s ease;
}

.creator-card:hover .creator-img {
    transform: scale(1.1);
}

.creator-info {
    width: calc(100% - 1.5rem);
    left: 0.75rem;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    bottom: 0.75rem;
}

.creator-card:hover .creator-info {
    transform: translateY(120%);
    opacity: 0;
}

/* Vertical Creator Cards (Top Creators Page) */
.creator-card-vertical {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    background: white;
    overflow: hidden;
    position: relative;
}

.creator-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12) !important;
}

.creator-img-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.creator-img-vertical {
    transition: transform 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-card-vertical:hover .creator-img-vertical {
    transform: scale(1.1);
}

.creator-card-vertical .card-body,
.creator-card-vertical .card-footer {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white;
    position: relative;
    z-index: 2;
}

.creator-card-vertical:hover .card-body,
.creator-card-vertical:hover .card-footer {
    background: #f8faff;
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-blue);
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.stats-item {
    flex: 1;
    text-align: center;
    padding: 5px;
}

.stats-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    display: block;
}

.stats-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* CTA Section */
.cta-section {
    background: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
}

.cta-bg {
    background: linear-gradient(90deg, #1d4ed8 0%, rgba(37, 99, 235, 0.8) 100%);
}

/* Utilities */
.text-hover-white {
    transition: all 0.3s ease;
    display: inline-block;
}

.text-hover-white:hover {
    color: var(--white) !important;
    transform: translateX(8px);
}

.max-w-2xl {
    max-width: 42rem;
}

/* Dashboard Utilities */
.bg-primary-soft { background-color: rgba(37, 99, 235, 0.1) !important; color: #2563eb; }
.bg-success-soft { background-color: rgba(34, 197, 94, 0.1) !important; color: #16a34a; }
.bg-warning-soft { background-color: rgba(234, 179, 8, 0.1) !important; color: #ca8a04; }
.bg-danger-soft { background-color: rgba(239, 68, 68, 0.1) !important; color: #dc2626; }
.x-small { font-size: 0.75rem; }
.btn-hover-light:hover { background-color: #f8f9fa; color: var(--primary) !important; }

/* Dashboard Sidebar */
.dashboard-sidebar .nav-link {
    transition: all 0.2s ease;
    border-radius: 12px !important;
}

.dashboard-sidebar .nav-link.active {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.dashboard-sidebar .nav-link:not(.active):hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

/* Trending & Dashboard Cards */
.trending-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent !important;
}

.trending-card:hover {
    border-color: rgba(37, 99, 235, 0.2) !important;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.05) !important;
}

.analytics-mockup div {
    transition: height 1s ease-in-out;
}

.-space-x-2 > * + * {
    margin-left: -0.5rem;
}

/* AI Chat Widget */
.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}


.ai-chat-btn {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: auto;
    z-index: 5;
    position: relative;
}

/* Bot Character & Bubble Styles */
.bot-character-img {
    width: 80px;
    height: 80px;
    position: absolute;
    bottom: -10px;
    right: -10px;
    z-index: 1;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bot-character-img.peek {
    opacity: 1;
    transform: translate(-10px, -60px) scale(1);
    animation: botPulse 2s infinite ease-in-out;
}

@keyframes botPulse {
    0%, 100% { transform: translate(-10px, -60px) scale(1); }
    50% { transform: translate(-10px, -65px) scale(1.05); }
}

.bot-greeting-bubble {
    position: absolute;
    bottom: 50px;
    right: 90px;
    background: white;
    padding: 12px 24px;
    border-radius: 20px;
    border-bottom-right-radius: 2px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px) scale(0.8);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 6;
    pointer-events: none;
}

.bot-greeting-bubble.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}


.ai-chat-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto; /* Re-enable when active */
}

.ai-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 25px rgba(37, 99, 235, 0.4) !important;
}

.ai-chat-popup {
    width: 340px;
    height: 450px;
    background: var(--white);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}

.ai-chat-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-body {
    flex: 1;
    overflow-y: auto;
}

/* Custom Scrollbar for Chat */
.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Brand Scrolling Marquee */
.brand-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.brand-marquee::before,
.brand-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brand-marquee::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.brand-marquee::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

@media (max-width: 768px) {

    .brand-marquee::before,
    .brand-marquee::after {
        width: 50px;
    }
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollMarquee 25s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.brand-name {
    font-size: 2.2rem;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: -1px;
    transition: opacity 0.3s ease;
}

.brand-name:hover {
    opacity: 0.7 !important;
    cursor: default;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Sidebar Dashboard Button Highlights */
.dashboard-sidebar .nav-link {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
    color: var(--text-muted) !important;
}

.dashboard-sidebar .nav-link:hover {
    color: var(--primary-blue) !important;
    background-color: var(--primary-blue-light) !important;
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    border-radius: 8px;
}

.dashboard-sidebar .nav-link.active {
    color: var(--primary-blue) !important;
    background-color: var(--primary-blue-light) !important;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.15);
    border-radius: 8px;
}