@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #7000FF 0%, #FF007A 100%);
    --secondary-gradient: linear-gradient(135deg, #00F2FF 0%, #7000FF 100%);
    --bg-dark: #0A0A0F;
    --bg-card: rgba(15, 15, 25, 0.4);
    --text-main: #F8F9FA;
    --text-muted: #94A3B8;
    --accent: #00F2FF;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-inner: rgba(255, 255, 255, 0.03);
    --glass-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    position: relative;
    border-radius: 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(112, 0, 255, 0.2);
}

.glass-nav {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Typography & Colors */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.1));
}

.bg-gradient-primary {
    background: var(--primary-gradient);
}

.bg-gradient-secondary {
    background: var(--secondary-gradient);
}

/* Buttons */
.btn-primary {
    position: relative;
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    letter-spacing: 0.025em;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    box-shadow: 0 10px 20px -5px rgba(112, 0, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(112, 0, 255, 0.6);
    filter: brightness(1.1);
}

/* Animations */
.reveal {
    opacity: 0;
    transition: all 1s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #1E1E2E;
    border-radius: 10px;
    border: 3px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Mobile Menu */
#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

#mobile-menu.active {
    transform: translateX(0);
}

/* Custom Animations */
@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.animate-ripple {
    animation: ripple 4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes scanner {
    0% {
        top: 0;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0;
    }
}

.animate-scanner {
    animation: scanner 6s linear infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.floating-shape {
    animation: float 10s ease-in-out infinite;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    section {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }

    .hero-text h1 {
        font-size: clamp(2.5rem, 9vw, 3.5rem);
        line-height: 1.1;
    }

    .hero-text p {
        font-size: 1rem;
    }

    /* Better Mobile Menu Styling */
    #mobile-menu {
        background: rgba(10, 10, 15, 0.98);
        /* High opacity for legibility */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    /* Touch Targets & Spacing */
    a,
    button,
    input,
    textarea,
    select {
        min-height: 48px;
        /* Native feel touch target */
    }

    .glass-nav a {
        min-height: auto;
        /* Reset for desktop nav items if needed */
    }

    .glass-nav button {
        min-height: 48px;
        min-width: 48px;
    }

    /* Mobile Text & Layout Optimization */
    p {
        font-size: 1.125rem;
        line-height: 1.7;
    }

    h1 {
        line-height: 1.1;
    }

    /* Card Spacing & Touch */
    .glass-card {
        margin-bottom: 2rem;
        padding: 2rem !important;
        border: 1px solid rgba(255, 255, 255, 0.08);
        /* Better visibility */
    }

    /* Section Spacing */
    section {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }

    /* Glassmorphism Performance & Readability on Mobile */
    .glass-card {
        backdrop-filter: blur(12px);
        /* Reduced blur for better mobile performance */
        -webkit-backdrop-filter: blur(12px);
        background: rgba(20, 20, 30, 0.7);
        /* Darker background for contrast */
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }

    /* Mobile Menu Items - App Like Feel */
    #mobile-menu a {
        padding: 1rem 1.25rem !important;
        border-radius: 12px;
        margin-bottom: 0.75rem;
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    #mobile-menu a:active {
        background: rgba(0, 242, 255, 0.1);
        border-color: rgba(0, 242, 255, 0.2);
        transform: scale(0.98);
    }

    /* Fix Overflow */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }
}

/* Global Smoothness */
* {
    -webkit-tap-highlight-color: transparent;
    /* Remove blue tap box */
}

/* Scrollbar Hide for Clean Mobile Look (Optional but "App-like") */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
    }
}