/* ============================================
   Name: Nexus v3
   Author: WebOrbiton Team
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Space+Grotesk:wght@300;400;600;700&display=swap');

:root {
    
    --background: #030305;
    --foreground: #ffffff;
    --card: rgba(255, 255, 255, 0.03);
    --card-hover: rgba(255, 255, 255, 0.08);
    --muted: #e4e4ff;
    --border: rgba(255, 255, 255, 0.1);
    --success: #ccff00;
    --navbar-bg: rgba(10, 10, 12, 0.7);
    --neon-primary: #ccff00;
    --neon-secondary: #7000ff;
    --orb-color: rgba(112, 0, 255, 0.15);
    --glass-shadow: 0 20px 40px rgba(0,0,0,0.4);
}


:root[data-theme="light"] {
    --background: #f0f2f5;
    --foreground: #0a0a0c;
    --card: rgba(255, 255, 255, 0.5);
    --card-hover: rgba(255, 255, 255, 0.8);
    --muted: #626274;
    --border: rgba(0, 0, 0, 0.08);
    --success: #16a34a;
    --navbar-bg: rgba(240, 242, 245, 0.8);
    --neon-primary: #111111;
    --neon-secondary: #5800d4;
    --orb-color: rgba(0, 240, 255, 0.1);
    --glass-shadow: 0 10px 30px rgba(0,0,0,0.05);
}



* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--background);
    color: var(--foreground);
    transition: background 0.4s ease, color 0.4s ease;
    position: relative;
    overflow-x: hidden;
}


body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.5;
    mix-blend-mode: overlay;
}


body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, var(--orb-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(88, 0, 212, 0.08) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

main {
    margin-top: 50px !important;
}


h1, h2, h3, .logo, .stat-item h3, .pricing-card .price {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.04em !important;
}



.navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    right: 20px;
    left: 20px;
    border-radius: 0px 0px 30px 30px;
    background: color-mix(in srgb, var(--navbar-bg), transparent 20%);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 769px) {
    .navbar {
        top: 24px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 48px);
        max-width: 1100px;
        border-radius: 30px;
        box-shadow: var(--glass-shadow);
    }
    
    .navbar:hover {
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    }
}

.logo {
    transition: none;
}

.logo:hover {
    transform: none;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}



.btn {
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--foreground) !important;
    color: var(--background) !important;
    border: 1px solid var(--foreground) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    border: 1px solid var(--border) !important;
    background: var(--card) !important;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--foreground) !important;
    transform: translateY(-2px);
    background: var(--card-hover) !important;
}



.feature-card, .pricing-card, .testimonial-card, .product-card {
    background: var(--card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.feature-card:hover {
    background: var(--card-hover);
    border-color: var(--foreground);
}

.pricing-card:hover, .testimonial-card:hover, .product-card:hover {
    background: var(--card-hover);
}


.feature-card .icon, .product-card .icon {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-card:hover .icon, .product-card:hover .icon {
    transform: scale(1.2) rotate(5deg);
}



.hero { 
    padding-top: 220px;
}

.hero h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    background: linear-gradient(180deg, var(--foreground) 40%, var(--muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    padding-left: 24px;
}


@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px), 
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: 
        radial-gradient(ellipse at center, black 20%, transparent 70%),
        repeating-linear-gradient(90deg, 
            transparent 0, 
            black 20px, 
            black 80px, 
            transparent 100px, 
            transparent 180px
        );
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
    animation: pulse-flow 6s linear infinite;
}

@keyframes pulse-flow {
    0% {
        mask-position: 0 0, -180px 0;
    }
    100% {
        mask-position: 0 0, 180px 0;
    }
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}



.product-features li, .pricing-features li {
    transition: transform 0.2s ease, padding-left 0.2s ease;
}

.product-features li:hover, .pricing-features li:hover {
    transform: translateX(8px);
}

.product-features li::before, .pricing-features li::before {
    font-size: 0.8rem;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.product-features li:hover::before, .pricing-features li:hover::before {
    transform: scale(1.3);
}



.pricing-card.featured {
    background: var(--card-hover) !important;
}

:root[data-theme="light"] .pricing-card.featured {
    background: #fff !important;
}

.pricing-card .price {
    transition: color 0.3s ease;
}



.testimonial-card img {
    transition: transform 0.3s ease;
}

.testimonial-card:hover img {
    transform: scale(1.1);
}



.footer {
    border-top: 1px solid var(--border);
    background: var(--background);
    transition: border-color 0.3s ease;
}

.social-links a {
    background: var(--card);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    background: var(--neon-secondary);
    color: #fff;
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(112, 0, 255, 0.4);
}



section {
    
}



.toggle-switch {
    position: relative;
    transition: all 0.3s ease;
}

.toggle-switch:hover {
    transform: scale(1.05);
}



@media (max-width: 768px) {
    .navbar {
        border-radius: 0;
        transform: none !important;
        top: 10px;
        left: 10px;
        right: 10px;
        border-radius: 30px;
        animation: none;
    }
    
    .navbar:hover {
        border-color: var(--border);
        box-shadow: var(--glass-shadow);
    }
    
    .hero { 
        padding-top: 120px;
    }
    
    
    body::after {
        background: 
            radial-gradient(circle at 20% 10%, var(--orb-color) 0%, transparent 40%),
            radial-gradient(circle at 80% 90%, rgba(88, 0, 212, 0.08) 0%, transparent 40%);
    }
}



@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--foreground);
}



::selection {
    background: var(--neon-secondary);
    color: #fff;
}

::-moz-selection {
    background: var(--neon-secondary);
    color: #fff;
}