/* Modern Glassmorphism Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Custom Properties */
:root {
    /* Glassmorphism Properties */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(20px);
    --glass-saturate: saturate(180%);
    --glass-radius: 20px;

    /* Color System */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-tertiary: #94a3b8;
    --text-accent: #a78bfa;

    /* Background Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Animation Durations */
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;

    /* Easing Functions */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Ensure body doesn't overflow */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100vw;
    position: relative;
}

/* COMPREHENSIVE HEADER SCROLLBAR REMOVAL */
/* Target all possible header/navbar elements */
nav,
header,
#navbar,
.navbar,
.nav,
.navigation {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    /* Firefox */
    -ms-overflow-style: none !important;
    /* IE and Edge */
}

/* Hide scrollbars for WebKit browsers */
nav::-webkit-scrollbar,
header::-webkit-scrollbar,
#navbar::-webkit-scrollbar,
.navbar::-webkit-scrollbar,
.nav::-webkit-scrollbar,
.navigation::-webkit-scrollbar {
    display: none !important;
}

/* Target all children of header elements */
nav *,
header *,
#navbar *,
.navbar *,
.nav *,
.navigation * {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    /* Firefox */
    -ms-overflow-style: none !important;
    /* IE and Edge */
}

/* Hide scrollbars for WebKit browsers */
nav *::-webkit-scrollbar,
header *::-webkit-scrollbar,
#navbar *::-webkit-scrollbar,
.navbar *::-webkit-scrollbar,
.nav *::-webkit-scrollbar,
.navigation *::-webkit-scrollbar {
    display: none !important;
}

/* Fix navigation overflow - Remove scrollbars completely */
#navbar {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    /* Ensure no scrollbars appear */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

/* Hide scrollbars for WebKit browsers */
#navbar::-webkit-scrollbar {
    display: none;
}

/* Fix navigation container */
#navbar>div {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    /* Ensure no scrollbars appear */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

/* Hide scrollbars for WebKit browsers */
#navbar>div::-webkit-scrollbar {
    display: none;
}

/* Fix inner navigation containers */
#navbar .flex {
    overflow-x: hidden;
    overflow-y: hidden;
    /* Ensure no scrollbars appear */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

/* Hide scrollbars for WebKit browsers */
#navbar .flex::-webkit-scrollbar {
    display: none;
}

/* Fix flex container overflow */
.flex {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    /* Ensure no scrollbars appear */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

/* Hide scrollbars for WebKit browsers */
.flex::-webkit-scrollbar {
    display: none;
}

/* Fix grid overflow */
.grid {
    max-width: 100%;
}

/* Fix text overflow in cards */
.glass-card {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fix buttons text overflow */
.glass-button {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fix navigation buttons */
.nav-link {
    white-space: nowrap;
    overflow: hidden;
    /* Ensure no scrollbars appear */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

/* Hide scrollbars for WebKit browsers */
.nav-link::-webkit-scrollbar {
    display: none;
}

/* Fix search filters overflow */
@media (max-width: 640px) {

    .search-feature-tag,
    .flex.gap-2 button {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* Fix note cards overflow */
@media (max-width: 640px) {
    .glass-card.p-8 {
        padding: 1rem;
    }

    .glass-card h3 {
        font-size: 1.25rem;
    }
}

/* Fix stats section overflow */
@media (max-width: 640px) {
    .flex.flex-wrap.justify-center {
        gap: 1rem;
    }
}

/* Contain all sections */
section {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix hero section overflow */
.hero-section {
    overflow-x: hidden;
    position: relative;
}

/* Fix container overflow */
.max-w-7xl {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .max-w-7xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Glassmorphism Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur) var(--glass-saturate);
    -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--shadow-xl);
    transition: all var(--duration-normal) var(--ease-out);
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-2xl);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur) var(--glass-saturate);
    -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-2xl);
    transform: translateY(-4px);
}

.glass-button {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur) var(--glass-saturate);
    -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.glass-button:active {
    transform: translateY(0);
}

.glass-input {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur) var(--glass-saturate);
    -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all var(--duration-normal) var(--ease-out);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

/* Navigation Styles */
#navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--duration-normal) var(--ease-out);
    /* Ensure no scrollbars appear anywhere in navbar */
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    /* Firefox */
    -ms-overflow-style: none !important;
    /* IE and Edge */
}

/* Hide scrollbars for WebKit browsers */
#navbar::-webkit-scrollbar {
    display: none !important;
}

/* Ensure all navbar children have no scrollbars */
#navbar * {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    /* Firefox */
    -ms-overflow-style: none !important;
    /* IE and Edge */
}

/* Hide scrollbars for WebKit browsers */
#navbar *::-webkit-scrollbar {
    display: none !important;
}

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   MOBILE NAVBAR RESPONSIVE FIXES
   Professional, targeted fixes for small screens only
   ======================================== */

/* Tablet and below - reduce navbar padding */
@media (max-width: 1024px) {
    #navbar>div {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Mobile screens - optimize spacing */
@media (max-width: 768px) {

    /* Reduce navbar container padding */
    #navbar>div {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Reduce navbar height slightly */
    #navbar .h-16 {
        height: 3.5rem;
        min-height: 3.5rem;
    }

    /* Reduce logo size */
    .holo-logo {
        width: 2rem;
        height: 2rem;
        border-radius: 10px;
    }

    .holo-logo::before {
        inset: 1.5px;
        border-radius: 8px;
    }

    /* Adjust logo icon size */
    .holo-logo .logo-core i {
        font-size: 0.875rem;
    }

    /* Reduce orbit dots size */
    .logo-orbit {
        inset: -3px;
    }

    .logo-orbit .dot {
        width: 4px;
        height: 4px;
        margin: -2px 0 0 -2px;
    }

    /* Reduce brand text size */
    .brand-holo,
    #navbar .text-xl {
        font-size: 0.875rem;
        letter-spacing: 0.1px;
    }

    /* Reduce spacing between logo and text */
    #navbar .flex.items-center.space-x-3 {
        gap: 0.5rem;
    }

    /* Ensure mobile icons fit */
    #mobile-icon-nav {
        gap: 0.125rem;
        padding: 0.25rem 0;
        max-width: calc(100vw - 8rem);
    }
}

/* Small mobile screens - further optimization */
@media (max-width: 480px) {

    /* Further reduce navbar padding */
    #navbar>div {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
    }

    /* Further reduce navbar height */
    #navbar .h-16 {
        height: 3.25rem;
        min-height: 3.25rem;
    }

    /* Smaller logo */
    .holo-logo {
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 8px;
    }

    .holo-logo::before {
        inset: 1px;
        border-radius: 6px;
    }

    .holo-logo .logo-core i {
        font-size: 0.75rem;
    }

    /* Smaller orbit */
    .logo-orbit {
        inset: -2.5px;
    }

    .logo-orbit .dot {
        width: 3px;
        height: 3px;
        margin: -1.5px 0 0 -1.5px;
    }

    /* Hide brand text on very small screens to save space */
    .brand-holo {
        display: none;
    }

    /* Tighter spacing */
    #navbar .flex.items-center.space-x-3 {
        gap: 0.375rem;
    }

    /* Optimize mobile icons */
    #mobile-icon-nav {
        gap: 0.0625rem;
        padding: 0.25rem 0;
        max-width: calc(100vw - 6rem);
    }
}

/* Ensure brand label visible on past papers page */
.past-papers-page .brand-holo {
    display: inline-block !important;
}

/* Extra small screens - maximum optimization */
@media (max-width: 360px) {

    /* Minimal padding */
    #navbar>div {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    /* Compact navbar height */
    #navbar .h-16 {
        height: 3rem;
        min-height: 3rem;
    }

    /* Smallest logo */
    .holo-logo {
        width: 1.5rem;
        height: 1.5rem;
    }

    .holo-logo .logo-core i {
        font-size: 0.625rem;
    }

    /* Minimal spacing */
    #navbar .flex.items-center.space-x-3 {
        gap: 0.25rem;
    }

    /* Maximum space for mobile icons */
    #mobile-icon-nav {
        gap: 0.0625rem;
        padding: 0.125rem 0;
        max-width: calc(100vw - 4.5rem);
    }
}

.past-papers-page .brand-holo {
    display: inline-block !important;
}

/* ========================================
   MID-SIZE DEVICES (problematic presets)
   e.g. iPad Pro, Asus Zenbook Fold, Nest Hub
   Only tweak spacing & font size, no behavior
   ======================================== */

@media (min-width: 800px) and (max-width: 1100px) {

    /* Slightly tighter navbar padding */
    #navbar>div {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Reduce gaps between nav items */
    #navbar .hidden.lg\:flex.items-center.space-x-8 {
        column-gap: 1.5rem;
    }

    /* Make brand text and nav text a bit smaller */
    .brand-holo,
    #navbar .text-xl {
        font-size: 1rem;
    }

    #navbar .nav-link {
        font-size: 0.9rem;
    }

    /* Slightly shrink Upload / Pro buttons */
    #navbar .glass-button {
        padding-inline: 1.1rem;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Gradient Text */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -30px, 0);
    }

    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -15px, 0);
    }

    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* Animation Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-blob {
    animation: blob 7s infinite;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease-out;
}

.animate-slideInUp {
    animation: slideInUp 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Animation Delays */
.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

.animation-delay-800 {
    animation-delay: 0.8s;
}

.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-500 {
    animation-delay: 0.5s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.spin-duration-3 {
    animation-duration: 3s;
}

.spin-duration-4 {
    animation-duration: 4s;
}

.hidden-by-default {
    display: none;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Background Patterns */
.bg-grid-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Particles Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 8s infinite linear;
}

/* Hover Effects */
.hover-lift {
    transition: transform var(--duration-normal) var(--ease-out);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

.hover-glow {
    transition: box-shadow var(--duration-normal) var(--ease-out);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.3);
}

.hover-scale {
    transition: transform var(--duration-normal) var(--ease-out);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

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

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-item:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-item:nth-child(5) {
    animation-delay: 0.5s;
}

.stagger-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur) var(--glass-saturate);
    -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--duration-normal) var(--ease-out);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-tertiary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur) var(--glass-saturate);
    -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
}

/* Button States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-loading {
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

/* Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur) var(--glass-saturate);
    -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-2xl);
    transform: translateY(-4px);
}

.card-header {
    padding: 1.5rem 1.5rem 0;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 0 1.5rem 1.5rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur) var(--glass-saturate);
    -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--shadow-2xl);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.9) translateY(20px);
    transition: all var(--duration-normal) var(--ease-out);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--duration-fast) var(--ease-out);
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: rgba(34, 197, 94, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.notification-error {
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.notification-warning {
    background: rgba(245, 158, 11, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.notification-info {
    background: rgba(59, 130, 246, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Utility Classes */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.bg-gradient {
    background: var(--primary-gradient);
}

.border-gradient {
    border: 1px solid transparent;
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
        var(--primary-gradient) border-box;
}

.shadow-glow {
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.3);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.backdrop-blur-xl {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

/* ======================= */
/* COMPREHENSIVE RESPONSIVE DESIGN */
/* ======================= */

/* Ultra-wide screens (2560px+) */
@media (min-width: 2560px) {
    .container {
        max-width: 2400px;
        margin: 0 auto;
    }

    h1 {
        font-size: clamp(4rem, 6vw, 8rem);
    }

    .glass-panel {
        padding: 3rem;
    }
}

/* Large desktop screens (1440px - 2559px) */
@media (min-width: 1440px) and (max-width: 2559px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Desktop screens (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {

    .glass-panel,
    .glass-card {
        border-radius: 18px;
    }

    :root {
        --glass-radius: 18px;
    }

    /* Optimize spacing for desktop */
    .hero-section {
        padding: 4rem 0;
    }
}

/* Tablet landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {

    .glass-panel,
    .glass-card {
        border-radius: 16px;
    }

    :root {
        --glass-radius: 16px;
    }

    /* Tablet-specific adjustments */
    .hero-section {
        padding: 3rem 0;
    }

    /* Improve button sizes for tablet */
    .glass-button {
        min-height: 48px;
        padding: 12px 24px;
        font-size: 1rem;
    }

    /* Better grid layouts for tablet */
    .grid-tablet-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Optimize navigation for tablet */
    #navbar {
        padding: 0 1.5rem;
    }

    /* Improve card layouts */
    .glass-card {
        padding: 1.5rem;
    }
}

/* Tablet portrait and large mobile (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {

    .glass-panel,
    .glass-card {
        border-radius: 14px;
    }

    :root {
        --glass-radius: 14px;
    }

    /* Mobile-first button improvements */
    .glass-button {
        min-height: 52px;
        padding: 14px 28px;
        font-size: 1.1rem;
        font-weight: 600;
    }

    /* Better spacing for mobile */
    .hero-section {
        padding: 2.5rem 0;
    }

    /* Improve text readability */
    h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        line-height: 1.1;
    }

    h2 {
        font-size: clamp(2rem, 6vw, 2.8rem);
        line-height: 1.2;
    }

    /* Better form inputs */
    .glass-input {
        min-height: 48px;
        padding: 12px 16px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Improve card layouts */
    .glass-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    /* Better navigation */
    #navbar {
        padding: 0 1rem;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 1rem;
    }
}

/* Mobile landscape (480px - 639px) */
@media (min-width: 480px) and (max-width: 639px) {

    .glass-panel,
    .glass-card {
        border-radius: 12px;
    }

    :root {
        --glass-radius: 12px;
    }

    /* Enhanced mobile buttons */
    .glass-button {
        min-height: 56px;
        padding: 16px 32px;
        font-size: 1.125rem;
        font-weight: 700;
    }

    /* Better mobile spacing */
    .hero-section {
        padding: 2rem 0;
    }

    /* Improved mobile typography */
    h1 {
        font-size: clamp(2.2rem, 9vw, 3rem);
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }

    h2 {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
        line-height: 1.2;
    }

    h3 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    /* Better mobile forms */
    .glass-input {
        min-height: 52px;
        padding: 14px 18px;
        font-size: 16px;
        border-radius: 12px;
    }

    /* Improve mobile cards */
    .glass-card {
        padding: 1.5rem;
        margin-bottom: 1.25rem;
    }

    /* Better mobile navigation */
    #navbar {
        padding: 0 0.75rem;
    }

    .nav-link {
        padding: 10px 14px;
        font-size: 1.1rem;
    }

    /* Mobile-specific grid adjustments */
    .grid-mobile-1 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Mobile portrait (320px - 479px) */
@media (max-width: 479px) {

    .glass-panel,
    .glass-card {
        border-radius: 10px;
    }

    :root {
        --glass-radius: 10px;
    }

    /* Optimized mobile buttons */
    .glass-button {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 0.95rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Ensure buttons don't overflow */
    .glass-button i {
        margin-right: 6px;
    }

    /* Compact mobile spacing */
    .hero-section {
        padding: 1.5rem 0;
        min-height: calc(100vh - 60px);
        /* Account for navbar height */
    }

    /* Mobile-optimized typography */
    h1 {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: clamp(1.5rem, 8vw, 2rem);
        line-height: 1.2;
    }

    h3 {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Enhanced mobile forms */
    .glass-input {
        min-height: 56px;
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 14px;
        width: 100%;
    }

    /* Mobile-optimized cards */
    .glass-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    /* Compact mobile navigation */
    #navbar {
        padding: 0 0.5rem;
        height: 60px;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
    }

    /* Mobile-specific layouts */
    .flex-mobile-col {
        flex-direction: column;
        gap: 1rem;
    }

    /* Better mobile modals */
    .modal {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
        max-height: calc(100vh - 1rem);
    }

    /* Mobile notifications */
    .notification {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        transform: translateY(-100%);
        padding: 0.75rem 1rem;
    }

    .notification.show {
        transform: translateY(0);
    }

    /* Mobile-specific spacing */
    .section-padding-mobile {
        padding: 1.5rem 0;
    }

    .container-mobile {
        padding: 0 1rem;
    }

    /* Fix viewport height issues on mobile */
    .min-h-screen {
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Remove hover effects on touch devices */
    .glass-button:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.15);
    }

    .glass-card:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.15);
    }

    /* Larger touch targets */
    .glass-button {
        min-height: 48px;
        padding: 12px 24px;
    }

    /* Touch-friendly navigation */
    .nav-link {
        padding: 12px 16px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    /* Disable complex animations on touch devices */
    .animate-gradient-shift,
    .animate-float-particle-1,
    .animate-float-particle-2,
    .animate-float-particle-3,
    .animate-float-particle-4,
    .animate-pulse-glow {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* Optimize for retina displays */
    .glass-panel,
    .glass-card {
        border-width: 0.5px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {

    /* Compact layout for landscape mobile */
    .hero-section {
        padding: 1rem 0;
    }

    h1 {
        font-size: clamp(1.5rem, 8vw, 2rem);
        margin-bottom: 0.5rem;
    }

    .glass-button {
        min-height: 48px;
        padding: 12px 24px;
    }

    #navbar {
        height: 50px;
    }
}

/* Print optimizations */
@media print {

    .glass-panel,
    .glass-card,
    .glass-button,
    .glass-input {
        background: white !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        color: black !important;
    }

    .animate-float,
    .animate-blob,
    .animate-pulse,
    .animate-spin,
    .animate-bounce {
        animation: none !important;
    }

    /* Hide non-essential elements */
    #navbar,
    .particles-container,
    .cursor-follower {
        display: none !important;
    }
}

/* Print Styles */
@media print {

    .glass-panel,
    .glass-card,
    .glass-button,
    .glass-input {
        background: white !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }

    .animate-float,
    .animate-blob,
    .animate-pulse,
    .animate-spin,
    .animate-bounce {
        animation: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.2);
        --glass-border: rgba(255, 255, 255, 0.4);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-float,
    .animate-blob,
    .animate-pulse,
    .animate-spin,
    .animate-bounce {
        animation: none !important;
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid rgba(167, 139, 250, 0.5);
    outline-offset: 2px;
}

/* ======================= */
/* Cinematic Header Effects*/
/* ======================= */

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

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

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(167, 139, 250, 0.25), inset 0 0 20px rgba(255, 255, 255, 0.06);
    }

    50% {
        box-shadow: 0 0 36px rgba(236, 72, 153, 0.35), inset 0 0 24px rgba(255, 255, 255, 0.12);
    }
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(14px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(14px) rotate(-360deg);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-120%);
    }

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

@keyframes liquidMorph {
    0% {
        border-radius: 30px 50px 40px 60px;
    }

    50% {
        border-radius: 50px 30px 60px 40px;
    }

    100% {
        border-radius: 30px 50px 40px 60px;
    }
}

/* Animated navbar backdrop */
#navbar.navbar-holo {
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.70), rgba(49, 46, 129, 0.45), rgba(190, 24, 93, 0.45)), rgba(15, 23, 42, 0.55);
    background-size: 300% 300%;
    animation: gradientShift 14s ease infinite;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#navbar.navbar-holo.scrolled {
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.90), rgba(49, 46, 129, 0.6), rgba(190, 24, 93, 0.6)), rgba(15, 23, 42, 0.85);
}

/* Holographic logo */
.holo-logo {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    background: conic-gradient(from 180deg at 50% 50%, rgba(168, 85, 247, 0.9), rgba(236, 72, 153, 0.9), rgba(59, 130, 246, 0.9), rgba(168, 85, 247, 0.9));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: glowPulse 3.5s ease-in-out infinite;
    overflow: hidden;
}

.holo-logo::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 12px;
    background: radial-gradient(120px 120px at 20% 20%, rgba(255, 255, 255, 0.3), transparent 40%),
        radial-gradient(160px 160px at 80% 80%, rgba(255, 255, 255, 0.15), transparent 45%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(8px) saturate(160%);
    -webkit-backdrop-filter: blur(8px) saturate(160%);
}

.holo-logo .logo-core {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.logo-orbit {
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    pointer-events: none;
}

.logo-orbit .dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff, #a78bfa);
    filter: drop-shadow(0 0 8px #a78bfa);
    transform-origin: -14px 0;
    animation: orbit 6s linear infinite;
}

.logo-orbit .dot:nth-child(2) {
    transform-origin: -18px 0;
    animation-duration: 8s;
    opacity: 0.9;
}

.logo-orbit .dot:nth-child(3) {
    transform-origin: -22px 0;
    animation-duration: 10s;
    opacity: 0.7;
}

/* Brand name cinematic type */
.brand-holo {
    background: linear-gradient(90deg, #fff, #e9d5ff, #fbcfe8, #bfdbfe, #fff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 10s linear infinite;
    letter-spacing: 0.2px;
}

/* Holographic underline for nav links */
.nav-link {
    position: relative;
    will-change: transform;
}

.nav-link .holo-underline {
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #a78bfa, #ec4899, #60a5fa);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.6);
    transition: width var(--duration-slow) var(--ease-out);
}

.nav-link:hover .holo-underline {
    width: 100%;
}

.nav-link.active .holo-underline {
    width: 50%;
}

/* Liquid buttons */
.glass-button.liquid {
    animation: liquidMorph 10s ease-in-out infinite;
}

.glass-button.shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.15) 30%, transparent 60%);
    transform: translateX(-120%);
    animation: shimmer 2.4s ease-in-out infinite;
}

/* Cursor follower */
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    margin-top: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(167, 139, 250, 0.5));
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.7;
    transition: transform 0.12s ease-out, width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
}

.cursor-follower.hidden {
    opacity: 0;
}

.cursor-follower.enlarge {
    width: 36px;
    height: 36px;
    margin-left: -18px;
    margin-top: -18px;
}

/* Holographic grid overlay inside navbar */
.nav-holo-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(167, 139, 250, 0.15), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.12), transparent 40%),
        radial-gradient(circle at 30% 80%, rgba(59, 130, 246, 0.12), transparent 40%),
        linear-gradient(transparent, transparent),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 26px 26px, 26px 26px;
    background-position: center;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
}

/* Lens flare accent for navbar */
#navbar .lensflare {
    position: absolute;
    top: 0;
    left: -20%;
    right: -20%;
    height: 120%;
    background: radial-gradient(ellipse at var(--x, 60%) 10%, rgba(255, 255, 255, 0.15), transparent 40%);
    filter: blur(12px);
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.6;
}

/* ========================================
   MOBILE HAMBURGER MENU
   ======================================== */

/* Hide mobile icon navigation - replaced with hamburger menu */
#mobile-icon-nav {
    display: none !important;
}

/* Hamburger Menu Button */
#mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    position: relative;
}

#mobile-menu-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

#mobile-menu-button:active {
    transform: scale(0.95);
}

/* Show hamburger button on mobile and tablet */
@media (max-width: 1024px) {
    #mobile-menu-button {
        display: flex !important;
    }
}

/* Hamburger Icon Lines */
.hamburger-line {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 3px 0;
}

#mobile-menu-button.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#mobile-menu-button.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#mobile-menu-button.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Panel */
#mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(88, 28, 135, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#mobile-menu-panel.active {
    transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(to right, #fff, #e5e7eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Mobile Menu Content */
.mobile-menu-content {
    padding: 1.5rem 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#mobile-menu-panel .mobile-menu-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-menu-item {
    display: flex !important;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    min-height: 52px;
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-menu-item span {
    display: inline-block !important;
    color: rgba(255, 255, 255, 0.9) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-menu-item:hover,
.mobile-menu-item:focus {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(139, 92, 246, 0.8);
    color: white;
    padding-left: 1.75rem;
}

.mobile-menu-item i {
    width: 24px;
    margin-right: 1rem;
    text-align: center;
    font-size: 1.125rem;
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.75rem 1.5rem;
}

/* Medium screens (769px - 1024px) - Use hamburger menu */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Hide desktop navigation on medium screens */
    .hidden.lg\\:flex {
        display: none !important;
    }
}

/* Large screens (1025px+) - Use desktop navigation */
@media (min-width: 1025px) {
    #mobile-menu-button {
        display: none !important;
    }

    /* Ensure desktop navigation is visible */
    .hidden.lg\\:flex {
        display: flex !important;
    }

    /* Desktop navigation styling */
    .nav-link {
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 1rem;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .nav-link:hover {
        color: white;
    }
}

/* Mobile Navigation Icon - DEPRECATED (replaced with hamburger menu) */
.mobile-nav-icon {
    display: none !important;
}

/* Mobile Navigation Icon Hover Effects */
.mobile-nav-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.mobile-nav-icon:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile Navigation Icon Focus States */
.mobile-nav-icon:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-nav-icon {
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.3);
        color: white;
    }

    .mobile-nav-icon:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.5);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mobile-nav-icon {
        transition: none;
    }

    .mobile-nav-icon:hover {
        transform: none;
    }

    .mobile-nav-icon svg {
        transition: none;
    }

    .mobile-nav-icon:hover svg {
        transform: none;
    }
}

/* Mobile Navigation Label */
.mobile-nav-label {
    font-size: 0.5rem;
    /* Reduced from 0.625rem */
    font-weight: 500;
    margin-top: 0.125rem;
    /* Reduced margin */
    text-align: center;
    line-height: 1;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.mobile-nav-icon:hover .mobile-nav-label {
    opacity: 1;
}

/* Mobile Navigation Icon SVG */
.mobile-nav-icon svg {
    width: 1.25rem;
    /* Reduced from 1.5rem */
    height: 1.25rem;
    /* Reduced from 1.5rem */
    stroke-width: 2;
    transition: all 0.3s ease;
}

.mobile-nav-icon:hover svg {
    transform: scale(1.1);
}

/* Active State for Mobile Navigation */
.mobile-nav-icon.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: white;
}

.mobile-nav-icon.active svg {
    stroke-width: 2.5;
}

/* Mobile Navigation Responsive Adjustments */
@media (max-width: 480px) {
    #mobile-icon-nav {
        gap: 0.0625rem;
        /* Even smaller gap */
        padding: 0.25rem 0;
    }

    .mobile-nav-icon {
        min-width: 36px;
        /* Smaller icons */
        min-height: 36px;
        padding: 0.25rem;
    }

    .mobile-nav-icon svg {
        width: 1rem;
        /* Smaller SVG */
        height: 1rem;
    }

    .mobile-nav-label {
        font-size: 0.4375rem;
        /* Smaller text */
        margin-top: 0.0625rem;
    }
}

@media (max-width: 360px) {
    #mobile-icon-nav {
        gap: 0.0625rem;
    }

    .mobile-nav-icon {
        min-width: 36px;
        min-height: 36px;
        padding: 0.25rem;
    }

    .mobile-nav-icon svg {
        width: 1.125rem;
        height: 1.125rem;
    }

    .mobile-nav-label {
        font-size: 0.4375rem;
    }
}

/* Extra small screens - 2-row layout */
@media (max-width: 320px) {
    #mobile-icon-nav {
        flex-wrap: wrap;
        gap: 0.125rem;
        justify-content: center;
        max-width: 100%;
    }

    .mobile-nav-icon {
        min-width: 32px;
        min-height: 32px;
        padding: 0.1875rem;
        flex: 0 0 calc(20% - 0.125rem);
    }

    .mobile-nav-icon svg {
        width: 1rem;
        height: 1rem;
    }

    .mobile-nav-label {
        font-size: 0.375rem;
        margin-top: 0.0625rem;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    #mobile-icon-nav {
        gap: 0.125rem;
        padding: 0.25rem 0;
    }

    .mobile-nav-icon {
        min-width: 40px;
        min-height: 40px;
        padding: 0.375rem;
    }

    .mobile-nav-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .mobile-nav-label {
        font-size: 0.5rem;
    }
}

/* Mobile Navigation Animation */
@keyframes mobile-nav-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

.mobile-nav-icon.animate-pulse {
    animation: mobile-nav-pulse 2s infinite;
}

/* Mobile Navigation Ripple Effect */
.mobile-nav-icon::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, height 0.6s;
    pointer-events: none;
}

.mobile-nav-icon:active::before {
    width: 100px;
    height: 100px;
}

/* Mobile Navigation Glow Effect */
.mobile-nav-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.mobile-nav-icon:hover::after {
    opacity: 1;
}

/* ========================================
   HAMBURGER MENU & MOBILE NAVIGATION (LEGACY - DISABLED)
   ======================================== */

/* Animated Hamburger Icon */
.hamburger-icon {
    position: relative;
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger-line-1 {
    transform-origin: top left;
}

.hamburger-line-2 {
    transform-origin: center;
}

.hamburger-line-3 {
    transform-origin: bottom left;
}

/* Hamburger to X Animation */
.mobile-menu-open .hamburger-line-1 {
    transform: rotate(45deg) translate(5px, -1px);
}

.mobile-menu-open .hamburger-line-2 {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-open .hamburger-line-3 {
    transform: rotate(-45deg) translate(7px, 1px);
}

/* Mobile Menu Animations - NO SCROLLING (Centered Panel) */
#mobile-menu {
    /* center horizontally like the green rectangle */
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* CRITICAL: Remove all height restrictions */
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    /* panel width larger for easy selection */
    width: min(560px, calc(100% - 24px)) !important;
    /* Debug: Add border to see if menu is positioned correctly */
    border: 2px solid rgba(255, 0, 0, 0.3);
    background: rgba(15, 23, 42, 0.95) !important;
}

#mobile-menu.mobile-menu-visible {
    transform: translate(-50%, 0) scale(1) !important;
    opacity: 1;
    visibility: visible;
    /* CRITICAL: Ensure full content is visible */
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 35;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Items Animation */
/* Mobile menu items should be visible by default */
/* Mobile Menu Items - Force visibility */
#mobile-menu-panel .mobile-menu-item,
#mobile-menu-panel .mobile-menu-item * {
    opacity: 1 !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

#mobile-menu-panel .mobile-menu-item {
    display: flex !important;
    align-items: center !important;
}

#mobile-menu-panel .mobile-menu-item span {
    display: inline-block !important;
    color: rgba(255, 255, 255, 0.9) !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#mobile-menu-panel .mobile-menu-item i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    width: 24px !important;
    margin-right: 1rem !important;
}

#mobile-menu-panel button.mobile-menu-item {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    text-align: left !important;
    width: 100% !important;
}

/* Animate menu items when panel opens */
#mobile-menu-panel.active .mobile-menu-item {
    animation: slideInFromRight 0.3s ease-out forwards;
}

#mobile-menu-panel.active .mobile-menu-item:nth-child(1) {
    animation-delay: 0.05s;
}

#mobile-menu-panel.active .mobile-menu-item:nth-child(2) {
    animation-delay: 0.1s;
}

#mobile-menu-panel.active .mobile-menu-item:nth-child(3) {
    animation-delay: 0.15s;
}

#mobile-menu-panel.active .mobile-menu-item:nth-child(4) {
    animation-delay: 0.2s;
}

#mobile-menu-panel.active .mobile-menu-item:nth-child(5) {
    animation-delay: 0.25s;
}

#mobile-menu-panel.active .mobile-menu-item:nth-child(6) {
    animation-delay: 0.3s;
}

#mobile-menu-panel.active .mobile-menu-item:nth-child(7) {
    animation-delay: 0.35s;
}

#mobile-menu-panel.active .mobile-menu-item:nth-child(8) {
    animation-delay: 0.4s;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

/* Enhanced Mobile Menu Styling - NO SCROLLING (Centered Panel) */
#mobile-menu {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.8);
    /* CRITICAL: Remove all height restrictions */
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    /* center */
    left: 50% !important;
    right: auto !important;
    width: min(560px, calc(100% - 24px)) !important;
}

#mobile-menu a {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#mobile-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

#mobile-menu a:hover::before {
    left: 100%;
}

#mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

/* Mobile Menu Button Hover Effects */
#mobile-menu-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

#mobile-menu-button:active {
    transform: scale(0.95);
}

/* Focus States for Accessibility */
#mobile-menu-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.5);
}

#mobile-menu a:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

/* Compact Navigation Items */
.compact-nav-item {
    min-height: 40px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.compact-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.compact-nav-item:hover::before {
    left: 100%;
}

.compact-nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.compact-nav-item:active {
    transform: translateY(0);
}

/* Compact Grid Layout */
#mobile-menu .grid {
    gap: 8px;
}

#mobile-menu .grid-cols-2>* {
    min-height: 40px;
}

/* Mobile Menu Responsive Adjustments */
@media (max-width: 640px) {
    #mobile-menu {
        margin: 0 8px;
        top: 70px;
        padding: 12px;
    }

    .hamburger-icon {
        width: 20px;
        height: 16px;
    }

    .hamburger-line {
        height: 1.5px;
    }

    .compact-nav-item {
        min-height: 36px;
        padding: 8px 12px;
    }

    .compact-nav-item span {
        font-size: 12px;
    }

    .compact-nav-item i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #mobile-menu {
        margin: 0 6px;
        padding: 10px;
        top: 65px;
    }

    .compact-nav-item {
        min-height: 32px;
        padding: 6px 10px;
    }

    .compact-nav-item span {
        font-size: 11px;
    }

    .compact-nav-item i {
        font-size: 11px;
        margin-right: 4px;
    }

    #mobile-menu .grid {
        gap: 6px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    #mobile-menu {
        margin: 0 4px;
        padding: 8px;
    }

    .compact-nav-item {
        min-height: 30px;
        padding: 4px 8px;
    }

    .compact-nav-item span {
        font-size: 10px;
    }

    .compact-nav-item i {
        font-size: 10px;
        margin-right: 3px;
    }
}

/* ========================================
   FULL NAVIGATION ITEMS - NO SCROLLING
   ======================================== */

/* Full Navigation Items - Auto-expanding menu */
.full-nav-item {
    min-height: 48px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    text-align: left;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    flex-shrink: 0;
}

.full-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.full-nav-item:hover::before {
    left: 100%;
}

.full-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.full-nav-item:active {
    transform: translateY(0);
}

.full-nav-item i {
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.full-nav-item span {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    flex: 1;
}

/* Mobile Menu Auto-Expansion - Remove scrolling - CRITICAL FIX (Centered Panel) */
#mobile-menu {
    max-height: none !important;
    overflow: visible !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    height: auto !important;
    position: fixed !important;
    /* Ensure no scrollbars appear */
    scrollbar-width: none !important;
    /* Firefox */
    -ms-overflow-style: none !important;
    /* IE and Edge */
}

/* Hide scrollbars for WebKit browsers */
#mobile-menu::-webkit-scrollbar {
    display: none !important;
}

/* Mobile menu positioning and layout */
#mobile-menu {
    top: 64px !important;
    left: 50% !important;
    right: auto !important;
    z-index: 50 !important;
    width: min(560px, calc(100% - 24px)) !important;
    /* Force auto-expansion - no height restrictions */
    min-height: auto !important;
    /* Ensure content is never clipped */
    clip: none !important;
    clip-path: none !important;
    /* CRITICAL: Override any conflicting rules */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translate(-50%, 0) !important;
    /* Ensure menu can expand beyond viewport */
    bottom: auto !important;
    contain: none !important;
    overscroll-behavior: none !important;
}

/* Ensure menu content is fully visible */
#mobile-menu .space-y-2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-height: auto;
}

/* Ensure grid containers expand properly */
#mobile-menu .grid {
    display: grid;
    width: 100%;
    gap: 8px;
}

/* Prevent any text truncation */
#mobile-menu .full-nav-item span {
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    flex: 1;
}

/* Auto-adjust menu height based on content - NO SCROLLING - CRITICAL (Centered Panel) */
#mobile-menu.mobile-menu-visible {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    /* Additional guarantees for no scrolling */
    contain: none !important;
    overscroll-behavior: none !important;
    /* Ensure menu can expand beyond viewport if needed */
    position: fixed !important;
    top: 64px !important;
    bottom: auto !important;
    /* CRITICAL: Override any potential height restrictions */
    min-height: auto !important;
    /* Force visibility of all content */
    visibility: visible !important;
    opacity: 1 !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, 0) scale(1) !important;
    width: min(560px, calc(100% - 24px)) !important;
}

/* Mobile responsive adjustments - NO SCROLLING */
@media (max-width: 640px) {
    #mobile-menu {
        top: 60px !important;
        max-height: none !important;
        overflow: visible !important;
        height: auto !important;
        left: 50% !important;
        right: auto !important;
        width: min(420px, calc(100% - 24px)) !important;
    }

    .full-nav-item {
        min-height: 44px;
        padding: 10px 14px;
    }

    .full-nav-item i {
        font-size: 14px;
        margin-right: 10px;
        width: 18px;
    }

    .full-nav-item span {
        font-size: 13px;
    }
}

/* Very small screens - single column, NO SCROLLING */
@media (max-width: 480px) {
    #mobile-menu {
        max-height: none !important;
        overflow: visible !important;
        height: auto !important;
        width: calc(100% - 20px) !important;
        left: 50% !important;
        right: auto !important;
    }

    #mobile-menu .grid {
        grid-template-columns: 1fr !important;
    }

    .full-nav-item {
        min-height: 42px;
        padding: 8px 12px;
    }

    .full-nav-item i {
        font-size: 13px;
        margin-right: 8px;
        width: 16px;
    }

    .full-nav-item span {
        font-size: 12px;
    }
}

/* Extra small screens - NO SCROLLING */
@media (max-width: 360px) {
    #mobile-menu {
        max-height: none !important;
        overflow: visible !important;
        height: auto !important;
        width: calc(100% - 16px) !important;
        left: 50% !important;
        right: auto !important;
    }

    .full-nav-item {
        min-height: 40px;
        padding: 6px 10px;
    }
}

/* CRITICAL: Final override to prevent any scrolling in mobile menu */
#mobile-menu,
#mobile-menu.mobile-menu-visible,
#mobile-menu.hidden,
#mobile-menu:not(.hidden) {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    position: fixed !important;
    top: 64px !important;
    left: 8px !important;
    right: 8px !important;
    width: calc(100% - 16px) !important;
    z-index: 50 !important;
    contain: none !important;
    overscroll-behavior: none !important;
    clip: none !important;
    clip-path: none !important;
}

.full-nav-item i {
    font-size: 12px;
    margin-right: 6px;
    width: 14px;
}

.full-nav-item span {
    font-size: 11px;
}

/* ========================================
   MOBILE RESPONSIVENESS FIXES
   ======================================== */

/* Hero Section Mobile Fixes - HIGH SPECIFICITY */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero-section .grid {
        gap: 2rem;
    }

    /* Ensure buttons don't overlap */
    .hero-section .flex.flex-col {
        gap: 12px;
    }

    /* CRITICAL: Override all conflicting glass-button styles for hero section */
    .hero-section .glass-button {
        width: auto !important;
        max-width: 280px !important;
        min-width: 200px !important;
        min-height: 44px !important;
        padding: 12px 24px !important;
        margin: 0 auto !important;
        aspect-ratio: 2.5 / 1 !important;
        font-size: 0.95rem !important;
    }

    /* Reduce visual height on mobile */
    .hero-section .relative.overflow-hidden {
        min-height: 250px;
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 70px;
        padding-bottom: 30px;
    }

    .hero-section .grid {
        gap: 1.5rem;
    }

    /* Further reduce visual height on small mobile */
    .hero-section .relative.overflow-hidden {
        min-height: 200px;
        max-height: 250px;
    }

    /* Ensure proper spacing */
    .hero-section .flex.flex-col {
        gap: 10px;
    }

    /* Fix button proportions on small mobile - HIGH SPECIFICITY */
    .hero-section .glass-button {
        width: auto !important;
        max-width: 250px !important;
        min-width: 180px !important;
        min-height: 40px !important;
        padding: 10px 20px !important;
        aspect-ratio: 2.2 / 1 !important;
        font-size: 0.875rem !important;
    }

    /* Make stats more compact */
    .hero-section .flex.flex-wrap {
        gap: 8px;
    }

    .hero-section .flex.flex-wrap>div {
        flex: 1;
        min-width: 80px;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .hero-section {
        padding-top: 60px;
        padding-bottom: 20px;
    }

    .hero-section h1 {
        font-size: 1.875rem;
        /* 30px */
        line-height: 1.2;
    }

    .hero-section p {
        font-size: 0.875rem;
        /* 14px */
        margin-bottom: 1rem;
    }

    .hero-section .glass-button {
        padding: 8px 16px !important;
        font-size: 0.875rem !important;
        width: auto !important;
        max-width: 220px !important;
        min-width: 160px !important;
        min-height: 36px !important;
        aspect-ratio: 2.0 / 1 !important;
    }

    .hero-section .relative.overflow-hidden {
        min-height: 180px;
        max-height: 220px;
    }
}

/* Ensure proper viewport handling */
@media (max-width: 768px) {
    .hero-section {
        min-height: calc(100vh - 80px);
    }
}

/* Fix for landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: 20px;
    }

    .hero-section .relative.overflow-hidden {
        min-height: 200px;
        max-height: 250px;
    }
}

/* ========================================
   CRITICAL MOBILE BUTTON FIXES - HIGHEST SPECIFICITY
   ======================================== */

/* Override ALL conflicting button styles for hero section on mobile */
@media (max-width: 768px) {
    .hero-section .flex.flex-col .glass-button {
        width: auto !important;
        max-width: 280px !important;
        min-width: 200px !important;
        min-height: 44px !important;
        padding: 12px 24px !important;
        margin: 0 auto !important;
        aspect-ratio: 2.5 / 1 !important;
        font-size: 0.95rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .hero-section .flex.flex-col .glass-button {
        width: auto !important;
        max-width: 250px !important;
        min-width: 180px !important;
        min-height: 40px !important;
        padding: 10px 20px !important;
        aspect-ratio: 2.2 / 1 !important;
        font-size: 0.875rem !important;
    }
}

@media (max-width: 360px) {
    .hero-section .flex.flex-col .glass-button {
        width: auto !important;
        max-width: 220px !important;
        min-width: 160px !important;
        min-height: 36px !important;
        padding: 8px 16px !important;
        aspect-ratio: 2.0 / 1 !important;
        font-size: 0.875rem !important;
    }
}

/* Button success pulse */
@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.0);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(34, 197, 94, 0.15);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.0);
    }
}

.glass-button.success-anim {
    outline: 2px solid rgba(34, 197, 94, 0.6);
    animation: successPulse 900ms ease-out;
}


button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(167, 139, 250, 0.5);
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background: rgba(167, 139, 250, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(167, 139, 250, 0.3);
    color: var(--text-primary);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Firefox Scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

/* ======================= */
/* Enhanced Start Learning Button Animations */
/* ======================= */

/* Gradient shift animation for background */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

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

/* Floating particles animations */
@keyframes float-particle-1 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.8;
    }

    25% {
        transform: translateY(-8px) translateX(4px);
        opacity: 1;
    }

    50% {
        transform: translateY(-12px) translateX(-2px);
        opacity: 0.9;
    }

    75% {
        transform: translateY(-6px) translateX(-6px);
        opacity: 0.7;
    }
}

@keyframes float-particle-2 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.6;
    }

    30% {
        transform: translateY(-10px) translateX(-3px);
        opacity: 1;
    }

    60% {
        transform: translateY(-15px) translateX(5px);
        opacity: 0.8;
    }

    90% {
        transform: translateY(-5px) translateX(2px);
        opacity: 0.5;
    }
}

@keyframes float-particle-3 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.7;
    }

    20% {
        transform: translateY(-6px) translateX(-4px);
        opacity: 1;
    }

    40% {
        transform: translateY(-14px) translateX(3px);
        opacity: 0.9;
    }

    80% {
        transform: translateY(-8px) translateX(-1px);
        opacity: 0.6;
    }
}

@keyframes float-particle-4 {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.5;
    }

    35% {
        transform: translateY(-9px) translateX(6px);
        opacity: 1;
    }

    70% {
        transform: translateY(-13px) translateX(-4px);
        opacity: 0.8;
    }

    85% {
        transform: translateY(-4px) translateX(1px);
        opacity: 0.4;
    }
}

/* Shimmer effect animation */
@keyframes shimmer {
    0% {
        transform: translateX(-120%) skewX(-12deg);
    }

    100% {
        transform: translateX(120%) skewX(-12deg);
    }
}

/* Pulsing glow animation */
@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

/* Ripple effect animation */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

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

/* Border pulse animation */
@keyframes border-pulse {

    0%,
    100% {
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.4);
    }

    50% {
        border-color: rgba(255, 255, 255, 0.6);
        box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.2);
    }
}

/* Apply animations to classes */
.animate-gradient-shift {
    animation: gradient-shift 3s ease-in-out infinite;
}

.animate-float-particle-1 {
    animation: float-particle-1 4s ease-in-out infinite;
}

.animate-float-particle-2 {
    animation: float-particle-2 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.animate-float-particle-3 {
    animation: float-particle-3 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-float-particle-4 {
    animation: float-particle-4 5.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

.animate-shimmer {
    animation: shimmer 1.5s ease-in-out;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-ripple {
    animation: ripple 0.7s ease-out;
}

.animate-border-pulse {
    animation: border-pulse 2s ease-in-out infinite;
}

/* ======================= */
/* MOBILE-SPECIFIC ENHANCEMENTS */
/* ======================= */

/* Fix floating cards overflow - only on mobile */
@media (max-width: 768px) {
    .hero-section .glass-card {
        overflow: hidden;
    }
}

/* WhatsApp button positioning */
@media (max-width: 768px) {
    .fixed.bottom-6.right-6 {
        bottom: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
    }
}

/* Touch manipulation */
.touch-manipulation {
    touch-action: manipulation;
}

/* Mobile device specific styles */
.mobile-device .glass-button {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Touch device specific styles */
.touch-device .glass-button:hover {
    transform: none;
}

.touch-device .glass-card:hover {
    transform: none;
}

/* Viewport height fix for mobile browsers */
:root {
    --vh: 1vh;
}

.min-h-screen-mobile {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}

/* Fix for vertical overflow on mobile devices */
@media (max-width: 768px) {
    .hero-section {
        min-height: calc(100vh - 64px);
        /* Account for navbar */
        max-height: calc(100vh - 64px);
        overflow: hidden;
    }

    /* Ensure content fits within viewport */
    .hero-section .max-w-7xl {
        height: 100%;
        display: flex;
        align-items: center;
    }

    /* Reduce spacing on mobile to prevent overflow */
    .hero-section .grid {
        gap: 1rem;
    }

    /* Make stats more compact on mobile */
    .hero-section .flex.flex-wrap {
        margin-top: 1rem;
        gap: 0.5rem;
    }
}

/* Mobile-specific button enhancements */
@media (max-width: 768px) {
    .glass-button {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    /* Prevent text selection on mobile */
    .glass-button,
    .nav-link,
    .mobile-menu a {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    /* Better mobile scrolling */
    body {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }

    /* Mobile-specific animations */
    .mobile-device .animate-gradient-shift,
    .mobile-device .animate-float-particle-1,
    .mobile-device .animate-float-particle-2,
    .mobile-device .animate-float-particle-3,
    .mobile-device .animate-float-particle-4,
    .mobile-device .animate-pulse-glow {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .glass-input {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .glass-button {
        -webkit-appearance: none;
        border-radius: 50px;
    }
}

/* Android Chrome specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .glass-button {
        -webkit-appearance: none;
    }
}

/* Mobile landscape specific adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
        padding: 1rem 0;
    }

    .glass-button {
        min-height: 44px;
        padding: 10px 20px;
        font-size: 1rem;
    }

    #navbar {
        height: 50px;
    }

    .nav-link {
        padding: 8px 12px;
    }
}

/* Ultra-wide screen optimizations */
@media (min-width: 2560px) {
    .container {
        max-width: 2400px;
    }

    .glass-panel {
        padding: 4rem;
    }

    .glass-card {
        padding: 3rem;
    }

    h1 {
        font-size: clamp(4rem, 6vw, 10rem);
    }

    h2 {
        font-size: clamp(3rem, 5vw, 8rem);
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {

    /* Larger focus indicators for mobile */
    *:focus {
        outline: 3px solid rgba(167, 139, 250, 0.6);
        outline-offset: 3px;
    }

    /* Better contrast for mobile */
    .glass-panel,
    .glass-card {
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }

    /* Improved text contrast */
    .text-gray-300 {
        color: rgba(255, 255, 255, 0.9);
    }

    .text-gray-400 {
        color: rgba(255, 255, 255, 0.8);
    }
}

/* Performance optimizations */
@media (max-width: 768px) {

    /* Reduce blur effects on mobile for better performance */
    .glass-panel,
    .glass-card,
    .glass-button {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* Optimize shadows for mobile */
    .glass-panel,
    .glass-card {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .glass-button {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }
}

/* Prevent forced reflows and improve performance */
* {
    will-change: auto;
}

.glass-panel,
.glass-card,
.glass-button {
    will-change: transform, opacity;
    transform: translateZ(0);
    /* Force hardware acceleration */
}

/* Optimize animations for better performance */
@media (prefers-reduced-motion: no-preference) {

    .animate-float,
    .animate-blob,
    .animate-pulse {
        will-change: transform;
    }
}

/* Reduce layout thrashing */
.hero-section,
#latest-notes,
#features,
#about,
#contact {
    contain: layout style paint;
}

/* Optimize text rendering */
body {
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Improve scroll performance */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Optimize image loading */
img {
    content-visibility: auto;
}

/* ========================================
   INTERACTIVE 3D LEARNING ENVIRONMENT
   ======================================== */

/* Base Container */
.learning-environment {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Particle System */
.particle-system {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    border-radius: 50%;
    opacity: 0.8;
    will-change: transform, opacity;
}

.particle-1 {
    top: 20%;
    left: 10%;
    animation: float-particle-1 8s ease-in-out infinite;
}

.particle-2 {
    top: 60%;
    left: 80%;
    animation: float-particle-2 10s ease-in-out infinite;
}

.particle-3 {
    top: 80%;
    left: 20%;
    animation: float-particle-3 12s ease-in-out infinite;
}

.particle-4 {
    top: 30%;
    left: 70%;
    animation: float-particle-4 9s ease-in-out infinite;
}

.particle-5 {
    top: 70%;
    left: 60%;
    animation: float-particle-5 11s ease-in-out infinite;
}

.particle-6 {
    top: 40%;
    left: 30%;
    animation: float-particle-6 7s ease-in-out infinite;
}

.particle-7 {
    top: 10%;
    left: 50%;
    animation: float-particle-7 13s ease-in-out infinite;
}

.particle-8 {
    top: 90%;
    left: 40%;
    animation: float-particle-8 6s ease-in-out infinite;
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    backdrop-filter: blur(10px);
    will-change: transform;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 15%;
    left: 15%;
    animation: morph-shape-1 15s ease-in-out infinite;
}

.shape-2 {
    width: 40px;
    height: 40px;
    top: 75%;
    left: 75%;
    animation: morph-shape-2 12s ease-in-out infinite;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 10%;
    animation: morph-shape-3 18s ease-in-out infinite;
}

.shape-4 {
    width: 50px;
    height: 50px;
    top: 25%;
    left: 85%;
    animation: morph-shape-4 14s ease-in-out infinite;
}

/* Floating 3D Books */
.floating-books {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.book {
    position: absolute;
    width: 40px;
    height: 60px;
    transform-style: preserve-3d;
    will-change: transform;
}

.book-1 {
    top: 20%;
    left: 20%;
    animation: float-book-1 8s ease-in-out infinite;
}

.book-2 {
    top: 60%;
    left: 70%;
    animation: float-book-2 10s ease-in-out infinite;
}

.book-3 {
    top: 80%;
    left: 30%;
    animation: float-book-3 12s ease-in-out infinite;
}

.book-cover {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 4px;
    transform: rotateY(-15deg);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
}

.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(135deg, #6d28d9, #be185d);
    border-radius: 4px 0 0 4px;
}

.book-pages {
    position: absolute;
    top: 2px;
    left: 6px;
    right: 2px;
    bottom: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 2px 2px 0;
}

.book-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: book-glow 3s ease-in-out infinite;
}

/* Floating Notebooks */
.floating-notebooks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.notebook {
    position: absolute;
    width: 50px;
    height: 70px;
    transform-style: preserve-3d;
    will-change: transform;
}

.notebook-1 {
    top: 30%;
    left: 60%;
    animation: float-notebook-1 9s ease-in-out infinite;
}

.notebook-2 {
    top: 70%;
    left: 15%;
    animation: float-notebook-2 11s ease-in-out infinite;
}

.notebook-cover {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    border-radius: 6px;
    transform: rotateY(10deg) rotateX(5deg);
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.3);
}

.notebook-pages {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 2px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.notebook-glow {
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: notebook-glow 4s ease-in-out infinite;
}

/* Holographic Interface */
.holographic-interface {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    pointer-events: none;
}

.holo-ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    animation: holo-rotate 20s linear infinite;
}

.holo-ring-1 {
    width: 120px;
    height: 120px;
    border-color: rgba(139, 92, 246, 0.6);
    animation-duration: 20s;
}

.holo-ring-2 {
    width: 90px;
    height: 90px;
    top: 15px;
    left: 15px;
    border-color: rgba(236, 72, 153, 0.5);
    animation-duration: 15s;
    animation-direction: reverse;
}

.holo-ring-3 {
    width: 60px;
    height: 60px;
    top: 30px;
    left: 30px;
    border-color: rgba(6, 182, 212, 0.4);
    animation-duration: 10s;
}

.holo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    animation: holo-pulse 2s ease-in-out infinite;
}

.holo-icon {
    color: white;
    font-size: 18px;
    animation: holo-icon-spin 3s ease-in-out infinite;
}

/* Knowledge Flow Particles */
.knowledge-flow {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.flow-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
    will-change: transform;
}

.flow-1 {
    top: 10%;
    left: 10%;
    animation: knowledge-flow-1 8s ease-in-out infinite;
}

.flow-2 {
    top: 30%;
    left: 80%;
    animation: knowledge-flow-2 10s ease-in-out infinite;
}

.flow-3 {
    top: 70%;
    left: 20%;
    animation: knowledge-flow-3 12s ease-in-out infinite;
}

.flow-4 {
    top: 90%;
    left: 70%;
    animation: knowledge-flow-4 9s ease-in-out infinite;
}

.flow-5 {
    top: 50%;
    left: 50%;
    animation: knowledge-flow-5 11s ease-in-out infinite;
}

/* Collaboration Lines */
.collaboration-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
    opacity: 0.6;
    will-change: transform, opacity;
}

.line-1 {
    top: 25%;
    left: 20%;
    width: 60%;
    animation: connection-flow-1 6s ease-in-out infinite;
}

.line-2 {
    top: 60%;
    left: 10%;
    width: 80%;
    animation: connection-flow-2 8s ease-in-out infinite;
}

.line-3 {
    top: 80%;
    left: 30%;
    width: 50%;
    animation: connection-flow-3 7s ease-in-out infinite;
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.icon-float {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(236, 72, 153, 0.8));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    will-change: transform;
}

.icon-1 {
    top: 15%;
    left: 70%;
    animation: float-icon-1 7s ease-in-out infinite;
}

.icon-2 {
    top: 45%;
    left: 85%;
    animation: float-icon-2 9s ease-in-out infinite;
}

.icon-3 {
    top: 75%;
    left: 60%;
    animation: float-icon-3 8s ease-in-out infinite;
}

.icon-4 {
    top: 85%;
    left: 20%;
    animation: float-icon-4 10s ease-in-out infinite;
}

/* Achievement Badges */
.achievement-badges {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.badge {
    position: absolute;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    will-change: transform;
}

.badge-1 {
    top: 25%;
    left: 80%;
    animation: badge-float-1 6s ease-in-out infinite;
}

.badge-2 {
    top: 55%;
    left: 15%;
    animation: badge-float-2 8s ease-in-out infinite;
}

.badge-3 {
    top: 85%;
    left: 75%;
    animation: badge-float-3 7s ease-in-out infinite;
}

/* Interactive Elements */
.interactive-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hover-zone {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.hover-zone-1 {
    top: 20%;
    left: 30%;
}

.hover-zone-2 {
    top: 60%;
    left: 60%;
}

.hover-zone-3 {
    top: 80%;
    left: 20%;
}

.hover-zone:hover {
    opacity: 1;
}

.hover-zone:hover~.learning-environment .book,
.hover-zone:hover~.learning-environment .notebook,
.hover-zone:hover~.learning-environment .icon-float {
    transform: scale(1.2);
    filter: brightness(1.3);
}

/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */

/* Particle Animations */
@keyframes float-particle-1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.8;
    }

    25% {
        transform: translate(20px, -30px) rotate(90deg);
        opacity: 1;
    }

    50% {
        transform: translate(-10px, -50px) rotate(180deg);
        opacity: 0.6;
    }

    75% {
        transform: translate(-30px, -20px) rotate(270deg);
        opacity: 0.9;
    }
}

@keyframes float-particle-2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.7;
    }

    33% {
        transform: translate(-25px, 20px) rotate(120deg);
        opacity: 1;
    }

    66% {
        transform: translate(15px, -40px) rotate(240deg);
        opacity: 0.5;
    }
}

@keyframes float-particle-3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.9;
    }

    20% {
        transform: translate(30px, 10px) rotate(72deg);
        opacity: 0.6;
    }

    40% {
        transform: translate(-20px, 30px) rotate(144deg);
        opacity: 1;
    }

    60% {
        transform: translate(-40px, -10px) rotate(216deg);
        opacity: 0.7;
    }

    80% {
        transform: translate(10px, -30px) rotate(288deg);
        opacity: 0.8;
    }
}

@keyframes float-particle-4 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: translate(-35px, -25px) rotate(180deg);
        opacity: 1;
    }
}

@keyframes float-particle-5 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.8;
    }

    25% {
        transform: translate(25px, 35px) rotate(90deg);
        opacity: 0.4;
    }

    50% {
        transform: translate(-15px, 20px) rotate(180deg);
        opacity: 1;
    }

    75% {
        transform: translate(-30px, -25px) rotate(270deg);
        opacity: 0.7;
    }
}

@keyframes float-particle-6 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.7;
    }

    33% {
        transform: translate(20px, -20px) rotate(120deg);
        opacity: 1;
    }

    66% {
        transform: translate(-25px, 15px) rotate(240deg);
        opacity: 0.5;
    }
}

@keyframes float-particle-7 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.9;
    }

    14% {
        transform: translate(15px, 25px) rotate(51deg);
        opacity: 0.6;
    }

    28% {
        transform: translate(-20px, 20px) rotate(102deg);
        opacity: 1;
    }

    42% {
        transform: translate(-30px, -15px) rotate(153deg);
        opacity: 0.7;
    }

    57% {
        transform: translate(-10px, -35px) rotate(204deg);
        opacity: 0.8;
    }

    71% {
        transform: translate(25px, -20px) rotate(255deg);
        opacity: 0.5;
    }

    85% {
        transform: translate(30px, 10px) rotate(306deg);
        opacity: 0.9;
    }
}

@keyframes float-particle-8 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.8;
    }

    50% {
        transform: translate(40px, -30px) rotate(180deg);
        opacity: 1;
    }
}

/* Shape Morphing Animations */
@keyframes morph-shape-1 {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        border-radius: 50%;
    }

    25% {
        transform: scale(1.2) rotate(90deg);
        border-radius: 20%;
    }

    50% {
        transform: scale(0.8) rotate(180deg);
        border-radius: 10%;
    }

    75% {
        transform: scale(1.1) rotate(270deg);
        border-radius: 30%;
    }
}

@keyframes morph-shape-2 {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        border-radius: 50%;
    }

    33% {
        transform: scale(1.3) rotate(120deg);
        border-radius: 25%;
    }

    66% {
        transform: scale(0.7) rotate(240deg);
        border-radius: 15%;
    }
}

@keyframes morph-shape-3 {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        border-radius: 50%;
    }

    20% {
        transform: scale(1.1) rotate(72deg);
        border-radius: 40%;
    }

    40% {
        transform: scale(0.9) rotate(144deg);
        border-radius: 20%;
    }

    60% {
        transform: scale(1.2) rotate(216deg);
        border-radius: 30%;
    }

    80% {
        transform: scale(0.8) rotate(288deg);
        border-radius: 10%;
    }
}

@keyframes morph-shape-4 {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        border-radius: 50%;
    }

    50% {
        transform: scale(1.4) rotate(180deg);
        border-radius: 20%;
    }
}

/* Book Floating Animations */
@keyframes float-book-1 {

    0%,
    100% {
        transform: translate(0, 0) rotateY(0deg) rotateX(0deg);
    }

    25% {
        transform: translate(15px, -20px) rotateY(15deg) rotateX(5deg);
    }

    50% {
        transform: translate(-10px, -30px) rotateY(-10deg) rotateX(-5deg);
    }

    75% {
        transform: translate(-20px, -10px) rotateY(20deg) rotateX(10deg);
    }
}

@keyframes float-book-2 {

    0%,
    100% {
        transform: translate(0, 0) rotateY(0deg) rotateX(0deg);
    }

    33% {
        transform: translate(-20px, 15px) rotateY(-15deg) rotateX(-8deg);
    }

    66% {
        transform: translate(25px, -25px) rotateY(25deg) rotateX(12deg);
    }
}

@keyframes float-book-3 {

    0%,
    100% {
        transform: translate(0, 0) rotateY(0deg) rotateX(0deg);
    }

    20% {
        transform: translate(20px, 10px) rotateY(20deg) rotateX(8deg);
    }

    40% {
        transform: translate(-15px, 25px) rotateY(-20deg) rotateX(-10deg);
    }

    60% {
        transform: translate(-25px, -15px) rotateY(30deg) rotateX(15deg);
    }

    80% {
        transform: translate(10px, -20px) rotateY(-25deg) rotateX(-12deg);
    }
}

@keyframes book-glow {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Notebook Floating Animations */
@keyframes float-notebook-1 {

    0%,
    100% {
        transform: translate(0, 0) rotateY(0deg) rotateX(0deg);
    }

    25% {
        transform: translate(-15px, -25px) rotateY(-10deg) rotateX(-8deg);
    }

    50% {
        transform: translate(20px, -15px) rotateY(15deg) rotateX(12deg);
    }

    75% {
        transform: translate(-10px, 20px) rotateY(-20deg) rotateX(-15deg);
    }
}

@keyframes float-notebook-2 {

    0%,
    100% {
        transform: translate(0, 0) rotateY(0deg) rotateX(0deg);
    }

    33% {
        transform: translate(25px, -20px) rotateY(20deg) rotateX(15deg);
    }

    66% {
        transform: translate(-20px, 30px) rotateY(-25deg) rotateX(-20deg);
    }
}

@keyframes notebook-glow {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Holographic Interface Animations */
@keyframes holo-rotate {
    0% {
        transform: rotate(0deg);
    }

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

@keyframes holo-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 50px rgba(139, 92, 246, 0.8);
    }
}

@keyframes holo-icon-spin {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

/* Knowledge Flow Animations */
@keyframes knowledge-flow-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }

    25% {
        transform: translate(30px, -20px) scale(1.2);
        opacity: 1;
    }

    50% {
        transform: translate(-20px, -40px) scale(0.8);
        opacity: 0.6;
    }

    75% {
        transform: translate(-30px, -10px) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes knowledge-flow-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }

    33% {
        transform: translate(-25px, 30px) scale(1.3);
        opacity: 1;
    }

    66% {
        transform: translate(20px, -25px) scale(0.7);
        opacity: 0.5;
    }
}

@keyframes knowledge-flow-3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.9;
    }

    20% {
        transform: translate(25px, 15px) scale(1.1);
        opacity: 0.6;
    }

    40% {
        transform: translate(-15px, 35px) scale(0.9);
        opacity: 1;
    }

    60% {
        transform: translate(-35px, -20px) scale(1.2);
        opacity: 0.7;
    }

    80% {
        transform: translate(10px, -30px) scale(0.8);
        opacity: 0.8;
    }
}

@keyframes knowledge-flow-4 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-40px, -30px) scale(1.4);
        opacity: 1;
    }
}

@keyframes knowledge-flow-5 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }

    25% {
        transform: translate(20px, 30px) scale(1.2);
        opacity: 0.4;
    }

    50% {
        transform: translate(-20px, 25px) scale(0.8);
        opacity: 1;
    }

    75% {
        transform: translate(-30px, -30px) scale(1.3);
        opacity: 0.7;
    }
}

/* Connection Line Animations */
@keyframes connection-flow-1 {

    0%,
    100% {
        transform: scaleX(0) translateX(-50%);
        opacity: 0;
    }

    50% {
        transform: scaleX(1) translateX(0);
        opacity: 0.6;
    }
}

@keyframes connection-flow-2 {

    0%,
    100% {
        transform: scaleX(0) translateX(-50%);
        opacity: 0;
    }

    50% {
        transform: scaleX(1) translateX(0);
        opacity: 0.8;
    }
}

@keyframes connection-flow-3 {

    0%,
    100% {
        transform: scaleX(0) translateX(-50%);
        opacity: 0;
    }

    50% {
        transform: scaleX(1) translateX(0);
        opacity: 0.7;
    }
}

/* Icon Floating Animations */
@keyframes float-icon-1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(15px, -20px) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translate(-10px, -30px) rotate(180deg) scale(0.9);
    }

    75% {
        transform: translate(-20px, -10px) rotate(270deg) scale(1.05);
    }
}

@keyframes float-icon-2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(-20px, 15px) rotate(120deg) scale(1.2);
    }

    66% {
        transform: translate(25px, -25px) rotate(240deg) scale(0.8);
    }
}

@keyframes float-icon-3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    20% {
        transform: translate(20px, 10px) rotate(72deg) scale(1.1);
    }

    40% {
        transform: translate(-15px, 25px) rotate(144deg) scale(0.9);
    }

    60% {
        transform: translate(-25px, -15px) rotate(216deg) scale(1.2);
    }

    80% {
        transform: translate(10px, -20px) rotate(288deg) scale(0.8);
    }
}

@keyframes float-icon-4 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(-30px, -25px) rotate(180deg) scale(1.3);
    }
}

/* Badge Floating Animations */
@keyframes badge-float-1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(10px, -15px) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translate(-15px, -25px) rotate(180deg) scale(0.9);
    }

    75% {
        transform: translate(-20px, -5px) rotate(270deg) scale(1.05);
    }
}

@keyframes badge-float-2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(-15px, 20px) rotate(120deg) scale(1.2);
    }

    66% {
        transform: translate(20px, -20px) rotate(240deg) scale(0.8);
    }
}

@keyframes badge-float-3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    20% {
        transform: translate(15px, 10px) rotate(72deg) scale(1.1);
    }

    40% {
        transform: translate(-10px, 20px) rotate(144deg) scale(0.9);
    }

    60% {
        transform: translate(-20px, -10px) rotate(216deg) scale(1.2);
    }

    80% {
        transform: translate(5px, -15px) rotate(288deg) scale(0.8);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .learning-environment {
        min-height: 400px;
    }

    .particle {
        width: 3px;
        height: 3px;
    }

    .book {
        width: 30px;
        height: 45px;
    }

    .notebook {
        width: 35px;
        height: 50px;
    }

    .holographic-interface {
        width: 80px;
        height: 80px;
    }

    .holo-ring-1 {
        width: 80px;
        height: 80px;
    }

    .holo-ring-2 {
        width: 60px;
        height: 60px;
        top: 10px;
        left: 10px;
    }

    .holo-ring-3 {
        width: 40px;
        height: 40px;
        top: 20px;
        left: 20px;
    }

    .holo-center {
        width: 30px;
        height: 30px;
    }

    .holo-icon {
        font-size: 14px;
    }

    .icon-float {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .shape {
        width: 30px;
        height: 30px;
    }

    .shape-1 {
        width: 40px;
        height: 40px;
    }

    .shape-3 {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .learning-environment {
        min-height: 300px;
    }

    .particle {
        width: 2px;
        height: 2px;
    }

    .book {
        width: 25px;
        height: 35px;
    }

    .notebook {
        width: 30px;
        height: 40px;
    }

    .holographic-interface {
        width: 60px;
        height: 60px;
    }

    .holo-ring-1 {
        width: 60px;
        height: 60px;
    }

    .holo-ring-2 {
        width: 45px;
        height: 45px;
        top: 7.5px;
        left: 7.5px;
    }

    .holo-ring-3 {
        width: 30px;
        height: 30px;
        top: 15px;
        left: 15px;
    }

    .holo-center {
        width: 25px;
        height: 25px;
    }

    .holo-icon {
        font-size: 12px;
    }

    .icon-float {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .badge {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }

    .shape {
        width: 25px;
        height: 25px;
    }

    .shape-1 {
        width: 35px;
        height: 35px;
    }

    .shape-3 {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   ACCESSIBILITY & PERFORMANCE
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    .particle,
    .shape,
    .book,
    .notebook,
    .holo-ring,
    .holo-center,
    .holo-icon,
    .flow-particle,
    .connection-line,
    .icon-float,
    .badge {
        animation: none;
    }

    .learning-environment {
        transform: none;
    }
}

/* Performance optimizations */
.learning-environment * {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* GPU acceleration */
.particle,
.shape,
.book,
.notebook,
.holographic-interface,
.flow-particle,
.icon-float,
.badge {
    transform: translateZ(0);
}

/* ========================================
   BROWSE DROPDOWN COMPONENT
   ======================================== */

.browse-dropdown {
    position: fixed;
    min-width: 200px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: visible;
    max-height: none;
}

.browse-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.browse-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    min-height: 44px;
}

.browse-dropdown-item:hover,
.browse-dropdown-item.focused {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(4px);
}

.browse-dropdown-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.browse-dropdown-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.browse-dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 12px;
    color: #8b5cf6;
}

.browse-dropdown-item:hover i,
.browse-dropdown-item.focused i {
    color: #a78bfa;
}

/* Backdrop for mobile */
.browse-dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.browse-dropdown-backdrop.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Only show backdrop on mobile */
@media (min-width: 769px) {
    .browse-dropdown-backdrop {
        display: none !important;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .browse-dropdown {
        /* Position will be set dynamically by JavaScript */
        min-width: 200px;
        max-width: calc(100vw - 32px);
    }

    .browse-dropdown.open {
        /* Transform is handled by the open class, position is set by JS */
    }
}

/* Ensure trigger button has relative positioning */
.browse-dropdown-trigger {
    position: relative;
}

/* ========================================
   BACK ARROW BUTTON - Small & Distinctive
   ======================================== */

.back-arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 10;
    flex-shrink: 0;
}

.back-arrow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.4s ease;
}

.back-arrow-btn:hover::before {
    left: 100%;
}

.back-arrow-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateX(-2px) scale(1.08);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    border-color: rgba(255, 255, 255, 0.35);
}

.back-arrow-btn:active {
    transform: translateX(-1px) scale(0.96);
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.3);
}

.back-arrow-btn i {
    transition: transform 0.25s ease;
    font-size: 12px;
}

.back-arrow-btn:hover i {
    transform: translateX(-1px);
}

/* Mobile adjustments - keep it small */
@media (max-width: 768px) {
    .back-arrow-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
        border-radius: 6px;
        margin-right: 0.375rem;
    }

    .back-arrow-btn i {
        font-size: 10px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .back-arrow-btn {
        width: 26px;
        height: 26px;
        font-size: 10px;
        border-radius: 5px;
        margin-right: 0.25rem;
    }

    .back-arrow-btn i {
        font-size: 9px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .back-arrow-btn {
        width: 24px;
        height: 24px;
        font-size: 9px;
        border-radius: 4px;
        margin-right: 0.25rem;
    }

    .back-arrow-btn i {
        font-size: 8px;
    }
}

/* ========================================
   ADMIN APPROVAL INTERFACE
   ======================================== */

.tab-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.tab-button.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: rgba(196, 181, 253, 1);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   NOTE CARD V2 (Standalone, premium)
   ======================================== */
.note-card-v2 {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    min-height: 220px;
}

.note-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

.note-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--accent, #8b5cf6);
}

.note-card-body {
    padding: 18px 18px 12px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.note-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: start;
}

.note-icon {
    height: 40px;
    width: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent, #8b5cf6), rgba(139, 92, 246, 0.25));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

.note-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.note-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.note-meta {
    font-size: 13px;
    color: #475569;
}

.note-badge {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    background: #e0e7ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 6px 10px;
    white-space: nowrap;
    align-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    width: 96px;
    box-sizing: border-box;
}

.note-subject {
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
}

.note-desc {
    color: #1f2937;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.note-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    flex-wrap: wrap;
}

.note-uploader {
    font-weight: 600;
    color: #0f172a;
}

.note-badge-subtle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
    font-size: 13px;
}

.note-badge-subtle i {
    font-size: 13px;
}

.note-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 12px 12px 14px;
    border-top: 1px solid #e2e8f0;
    background: #f1f5f9;
}

.note-card-v2 .icon-btn {
    height: 38px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    font-weight: 600;
    font-size: 13px;
}

.note-card-v2 .icon-btn:hover {
    border-color: #94a3b8;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.note-card-v2 .icon-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
}

.note-card-v2 .icon-btn i {
    font-size: 14px;
}

.note-card-v2 .btn-label {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .note-card-body {
        padding: 16px 16px 10px 18px;
    }

    .note-top {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }

    .note-icon {
        grid-row: span 2;
    }

    .note-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}