@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

/* =========================================
   Announcement Bar & Marquee Animation
   ========================================= */

.announcement-bar {
    padding: 12px 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    width: fit-content;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    padding: 0 4rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

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

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

/* Pause on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}


/* Obsidian Theme Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #09090b;
}

::-webkit-scrollbar-thumb {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

/* =========================================
   Ultra Modern Utilities 
   ========================================= */

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism */
.glass {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark .glass {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glass Card Hover Effect */
.glass-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.005);
    box-shadow: 0 40px 80px -20px rgba(37, 99, 235, 0.15);
    /* Blue Glow shadow */
    border-color: rgba(37, 99, 235, 0.2);
    background: #0a0a0a;
}

/* Neon Button */
.btn-neon {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #465fef, #8b5cf6);
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-neon:hover {
    box-shadow: 0 0 20px rgba(70, 129, 239, 0.6);
    transform: translateY(-2px);
}

.dark .btn-neon:hover {
    box-shadow: 0 0 30px rgba(70, 107, 239, 0.4);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grids */
.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}

/* Micro-animations */
.hover-scale-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.group:hover .hover-scale-img {
    transform: scale(1.1);
}

.icon-spin:hover {
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Toast Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.toast-enter {
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.toast-exit {
    animation: fadeOut 0.3s ease-out forwards;
}

/* Bump Animation */
@keyframes bump {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.animate-bump {
    animation: bump 0.3s ease-out;
}

/* Pattern Background for Dark Mode */
.dark .bg-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Slide Down Animation */
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

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

.animate-slide-down {
    animation: slideDown 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Button Press Effect */
.btn-press:active {
    transform: scale(0.97);
}

/* Custom Scrollbar Hide */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom Scrollbar Thin */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #000000;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #1e293b;
    border-radius: 20px;
}

/* =========================================
   SAAS Mobile App Industry Styling 
   ========================================= */

/* Typography Optimization */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.025em;
    /* Tight tracking for modern look */
}

/* Enhanced Gradient for SAAS */
.saas-gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Soft Shadows */
.shadow-soft {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Enhanced Mobile Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    font-size: 16px;
    /* Prevent zoom on iOS */
    border-radius: 12px;

    padding: 0.875rem 1rem;
    transition: all 0.2s ease-in-out;
}

input:focus,
select:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
    transform: translateY(-1px);
}

.footer-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;

}

/* Mobile Bottom Nav Specifics */
.mobile-nav-item {
    position: relative;
    z-index: 10;
}

.mobile-nav-item.active {
    color: #2563eb;
    /* Blue 600 */
}

.mobile-nav-item.active svg {
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.5));
    transform: translateY(-4px);
}

.mobile-nav-item span {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 8px;
    letter-spacing: 0.1em;
    font-weight: 800;
}

.mobile-nav-item.active span {
    transform: translateY(-2px);
    opacity: 1;
    color: #2563eb;
}

.mobile-nav-float {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #2563eb;
    border-radius: 100px;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-nav-center {
    position: relative;
    z-index: 20;
}

.mobile-nav-center .btn-inner {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    transform: translateY(-25px);
    border: 5px solid white;
}

.dark .mobile-nav-center .btn-inner {
    border-color: #09090b;
    /* dark-bg */
}

.mobile-nav-center:active .btn-inner {
    transform: translateY(-20px) scale(0.95);
}

/* Header Compact Classes */
#main-header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#nav-container {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Improvements for Mobile */
@media (max-width: 640px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .glass-card {
        border: 1px solid rgba(0, 0, 0, 0.03);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    }



    /* Better spacing for touch targets */
    button,
    a {
        min-height: 44px;
        /* Apple Human Interface Guidelines */
    }
}

/* Loading Skeleton Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

.dark .skeleton {
    background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
}

/* Floating Action Button (FAB) Style Support */
.fab {
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.fab:active {
    box-shadow: 0 5px 10px -2px rgba(59, 130, 246, 0.4);
    transform: scale(0.95);
}

/* New Animations for Landing Page */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(6deg);
    }

    50% {
        transform: translateY(-20px) rotate(8deg);
    }

    100% {
        transform: translateY(0px) rotate(6deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

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

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.shadow-3xl {
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

.dark .shadow-3xl {
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.6);
}

/* Admin Sidebar Mobile Transition */
@media (max-width: 768px) {
    aside.mobile-sidebar-active {
        display: flex !important;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 80% !important;
        z-index: 50;
        background: #0f0f11;
        box-shadow: 50px 0 100px rgba(0, 0, 0, 0.9);
        animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    @keyframes slideInLeft {
        from {
            transform: translateX(-100%);
        }

        to {
            transform: translateX(0);
        }
    }
}

/* Chrome-specific font smoothing */
body {
    text-rendering: optimizeLegibility;
}