/* Premium Enterprise CSS Styles */

:root {
    --primary: #0A0E27;
    --secondary: #1A1F3A;
    --accent: #6366F1;
    --accent-dark: #4F46E5;
    --accent-light: #818CF8;
    --gold: #F59E0B;
    --platinum: #E5E7EB;
    --surface: #0F1729;
    --surface-light: #1E293B;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    color: #1F2937;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Premium Selection */
::selection {
    background: var(--accent);
    color: white;
}

/* Smooth Scrolling with anchor offset */
section[id] {
    scroll-margin-top: 100px;
}

/* Premium Cursor */
body {
    cursor: default;
}

a, button {
    cursor: pointer;
}

/* Luxury Glassmorphism */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Premium Gradient Text */
.gradient-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite;
}

/* Luxury Hover Effects */
.luxury-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.luxury-hover:hover::before {
    width: 300px;
    height: 300px;
}

/* 3D Card Effect */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d:hover {
    transform: perspective(1000px) rotateY(5deg) translateZ(20px);
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Parallax Container */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Premium Shadow */
.premium-shadow {
    box-shadow: 
        0 10px 40px rgba(99, 102, 241, 0.15),
        0 20px 80px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradient-x {
    0%, 100% {
        background-size: 200% 200%;
        background-position: left center;
    }
    50% {
        background-size: 200% 200%;
        background-position: right center;
    }
}

.animate-gradient-x {
    animation: gradient-x 3s ease infinite;
}

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

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

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

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

.animate-slide-up {
    animation: slide-up 0.8s ease-out forwards;
}

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

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

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

.animate-fade-in {
    animation: fade-in 1s ease-out forwards;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading Animation */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Binary Code Rain Animation */
@keyframes scroll-down {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(150vh);
        opacity: 0;
    }
}

.animate-scroll-down {
    animation: scroll-down 20s linear infinite;
}

/* Floating Code Snippets */
@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

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

/* Animated Dashed Lines */
@keyframes dash {
    0% {
        stroke-dasharray: 0, 1000;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 1000, 0;
        stroke-dashoffset: -500;
    }
    100% {
        stroke-dasharray: 0, 1000;
        stroke-dashoffset: -1000;
    }
}

.animate-dash {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
    animation: dash 8s linear infinite;
}
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    padding: 12px 32px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 32px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

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

/* Section Transitions */
section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Code Block Styling */
pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}

code {
    font-family: 'Courier New', monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e11d48;
}

pre code {
    background: transparent;
    padding: 0;
    color: #e2e8f0;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

thead {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

tbody tr:hover {
    background: #f9fafb;
}

/* Blog Post Styling */
.blog-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 2rem 0 1rem;
    color: #111827;
    line-height: 1.2;
}

.blog-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 2rem 0 1rem;
    color: #1f2937;
    line-height: 1.3;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: #374151;
    line-height: 1.4;
}

.blog-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: #4b5563;
    line-height: 1.5;
}

.blog-content p {
    margin: 1rem 0;
    line-height: 1.8;
    color: #4b5563;
    font-size: 1.0625rem;
}

.blog-content ul, .blog-content ol {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
    color: #4b5563;
}

.blog-content li {
    margin: 0.5rem 0;
}

.blog-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.blog-content a:hover {
    border-bottom-color: var(--accent);
}

/* Badge Styling */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

.badge-purple {
    background: #f3e8ff;
    color: #6b21a8;
}

.badge-cyan {
    background: #cffafe;
    color: #155e75;
}

.badge-green {
    background: #d1fae5;
    color: #065f46;
}

/* Alert Boxes */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-info {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e3a8a;
}

.alert-success {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.alert-warning {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-error {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-content h1 {
        font-size: 2rem;
    }
    
    .blog-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-content h3 {
        font-size: 1.25rem;
    }
    
    .blog-content p {
        font-size: 1rem;
    }
    
    pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.75rem;
    }
}

/* Print Styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
    
    pre, code {
        border: 1px solid #ccc;
    }
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

/* Create invisible bridge between menu and dropdown */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    z-index: 999;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 300px;
    background: rgba(15, 23, 41, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 1rem 1.5rem;
    color: #D1D5DB;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #06B6D4;
    border-left-color: #06B6D4;
    padding-left: 1.75rem;
}

.dropdown-item i {
    width: 20px;
    margin-right: 0.75rem;
    color: #6366F1;
}

.dropdown-item:hover i {
    color: #06B6D4;
    transform: scale(1.1);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.dropdown-header {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #9CA3AF;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Dropdown Arrow Icon */
.dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Extend dropdown hover area */
.dropdown {
    padding-bottom: 20px;
    margin-bottom: -20px;
}

/* Premium Navigation Menu Hover Effects */
.nav-link {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #06B6D4, #6366F1, #A855F7);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #06B6D4, #6366F1, #A855F7);
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.4s ease;
}

.nav-link:hover::after {
    opacity: 0.6;
}

/* Active Nav Link */
.nav-link.active {
    color: #06B6D4 !important;
    font-weight: 600;
}

.nav-link.active::before {
    width: 100%;
    background: linear-gradient(90deg, #06B6D4, #3B82F6);
}

/* Nav Link Glow on Hover */
.nav-link:hover {
    color: #06B6D4 !important;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* CTA Button in Nav */
.nav-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4) !important;
}

/* Fixed Navigation Layout */
html, body {
    height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Ensure all content is below fixed nav */
body > section:first-of-type,
body > main:first-of-type {
    margin-top: 0;
}

/* All content should have proper z-index */
body > *:not(nav) {
    position: relative;
    z-index: 1;
}

/* Mobile Menu Animations */
#mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px) saturate(160%);
    transition: opacity 0.35s ease;
    opacity: 0;
    z-index: 2000;
    pointer-events: none;
}

/* Hide scrollbar for Chrome, Safari, and Opera */
#mobile-menu::-webkit-scrollbar {
    display: none;
}

/* Show mobile menu on mobile devices */
@media (max-width: 768px) {
    #mobile-menu {
        display: block;
    }
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    #mobile-menu .mobile-menu-panel {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
        border-right: none;
        box-shadow: inset -1px 0 0 rgba(148, 163, 184, 0.15);
        transform: translateX(-100%);
        transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        padding: calc(env(safe-area-inset-top) + 5.5rem) 1.5rem calc(env(safe-area-inset-bottom) + 2.5rem);
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        height: 100vh;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        z-index: 2001;
        -ms-overflow-style: none;
        scrollbar-width: none;
        box-sizing: border-box;
    }

    #mobile-menu .mobile-menu-panel::-webkit-scrollbar {
        display: none;
    }

    #mobile-menu .mobile-menu-panel > * {
        flex-shrink: 0;
    }

    .mobile-menu-header {
        position: sticky;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin: 0 -1.5rem 1.5rem;
        padding: calc(env(safe-area-inset-top) + 1.2rem) 1.5rem 1.4rem;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 100%);
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
        box-shadow: 0 16px 45px rgba(15, 23, 42, 0.45);
        z-index: 2002;
    }

    .mobile-menu-brand {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        text-decoration: none;
        color: #F8FAFC;
    }

    .mobile-menu-brand-icon {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        background: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 12px 35px rgba(56, 189, 248, 0.35);
    }

    .mobile-menu-brand-icon i {
        font-size: 1.1rem;
        color: #ffffff;
    }

    .mobile-menu-brand-text {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
    }

    .mobile-menu-brand-title {
        font-weight: 700;
        font-size: 1.05rem;
        letter-spacing: -0.01em;
    }

    .mobile-menu-brand-sub {
        font-size: 0.68rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: #38BDF8;
        font-weight: 600;
    }

    .mobile-menu-close {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 9999px;
        border: 1px solid rgba(148, 163, 184, 0.25);
        background: rgba(15, 23, 42, 0.4);
        color: #E2E8F0;
        font-size: 1.1rem;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.45);
        transition: all 0.25s ease;
    }

    .mobile-menu-close i {
        pointer-events: none;
    }

    .mobile-menu-close:hover {
        background: rgba(59, 130, 246, 0.2);
        color: #60A5FA;
        transform: scale(1.05);
    }

    .mobile-menu-close:active {
        transform: scale(0.92);
    }

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

/* Mobile Menu Items */
#mobile-menu .nav-link {
    display: block;
    padding: 1rem 0;
    /* Minimum touch target size for accessibility */
    min-height: 44px;
    /* Add spacing between items */
    margin-bottom: 0.5rem;
    /* Flexbox for vertical centering */
    display: flex;
    align-items: center;
}

/* Add visual separation for touch targets */
#mobile-menu a.nav-link {
    position: relative;
    z-index: 5;
}

/* Disable all nav-link pseudo-elements in mobile menu */
#mobile-menu .nav-link::before {
    display: none !important;
}

/* Only allow ::after for accordion triggers (for the arrow icon) */
#mobile-menu .nav-link:not(.accordion-trigger):not(.cursor-pointer)::after {
    display: none !important;
}

/* Mobile Menu Accordion Trigger Styles - UNIFIED - LEFT ALIGNED */
#mobile-menu .accordion-trigger {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 1rem 1rem 1rem 3rem !important;
    user-select: none !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2) !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    text-decoration: none !important;
    color: #D1D5DB !important;
    z-index: 100 !important;
    margin-bottom: 0.75rem !important;
    min-height: 52px !important;
    background: rgba(99, 102, 241, 0.15) !important;
    border-radius: 8px !important;
    border: 2px solid rgba(99, 102, 241, 0.4) !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    text-align: left !important;
}

/* Hover/Touch feedback */
#mobile-menu .accordion-trigger:hover {
    background: rgba(99, 102, 241, 0.25) !important;
    border-color: rgba(99, 102, 241, 0.6) !important;
}

/* Visual feedback on touch/click */
#mobile-menu .accordion-trigger:active {
    background: rgba(99, 102, 241, 0.4) !important;
    border-color: rgba(99, 102, 241, 0.8) !important;
    transform: scale(0.98) !important;
}

/* Disable all pseudo-elements */
#mobile-menu .accordion-trigger::before {
    display: none !important;
}

/* Arrow icon for accordion - LEFT SIDE */
#mobile-menu .accordion-trigger::after {
    content: '\f105' !important;  /* Right chevron icon */
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 1.25rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: all 0.3s ease !important;
    font-size: 1rem !important;
    color: #60A5FA !important;
    pointer-events: none !important;
}

/* Ensure all child elements don't block clicks */
#mobile-menu .accordion-trigger * {
    pointer-events: none !important;
}

/* Legacy support for old class name */
#mobile-menu .nav-link.cursor-pointer {
    position: relative;
    display: block;
    padding: 1rem 2rem 1rem 0;
    user-select: none;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
    pointer-events: auto;
    touch-action: manipulation;
}

#mobile-menu .nav-link.cursor-pointer::before {
    display: none !important;
}

#mobile-menu .nav-link.cursor-pointer::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 0.875rem;
    color: #9CA3AF;
    pointer-events: none;
}

#mobile-menu .nav-link.cursor-pointer:active {
    opacity: 0.7;
}

/* Submenu as LEFT sidebar - MOBILE ONLY */
@media (max-width: 768px) {
    #mobile-menu .submenu-content {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        border-right: none !important;
        box-shadow: none !important;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        padding: calc(env(safe-area-inset-top) + 1.4rem) 1.4rem calc(env(safe-area-inset-bottom) + 2.4rem) !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.1rem !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 2100 !important;
        visibility: visible !important;
        opacity: 1 !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
        box-sizing: border-box !important;
    }

    #mobile-menu .submenu-content::-webkit-scrollbar {
        display: none !important;
    }

    .submenu-content.submenu-open {
        left: 0 !important;
    }
    
    #mobile-menu .submenu-content.submenu-open {
        left: 0 !important;
    }
}

/* Overlay when submenu is open - MOBILE ONLY */
@media (max-width: 768px) {
    .submenu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.7) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.4s ease !important;
        z-index: 2000 !important;
        display: block !important;
        visibility: hidden !important;
    }

    .submenu-overlay.active {
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }
}

/* Rotate arrow when submenu is open */
#mobile-menu div:has(> .submenu-content.submenu-open) > .accordion-trigger::after,
#mobile-menu div:has(> .submenu-content.submenu-open) > .nav-link.cursor-pointer::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Submenu styles - Only on mobile */
@media (max-width: 768px) {
    /* Submenu link styles */
    #mobile-menu .submenu-content a {
        display: block;
        padding: 0.85rem 0.85rem;
        color: #D1D5DB;
        text-decoration: none;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
        border-radius: 10px;
        font-size: 0.92rem;
    }

    #mobile-menu .submenu-content a:hover,
    #mobile-menu .submenu-content a:active {
        background: rgba(99, 102, 241, 0.1);
        color: #06B6D4;
        border-left-color: #06B6D4;
    }

    #mobile-menu .submenu-content a i {
        width: 24px;
        margin-right: 0.75rem;
        color: #6366F1;
    }

    #mobile-menu .submenu-content a:hover i {
        color: #06B6D4;
        transform: scale(1.1);
    }

    /* Close button in submenu */
    .submenu-close {
        position: absolute !important;
        top: calc(env(safe-area-inset-top) + 1rem) !important;
        right: 1.2rem !important;
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(99, 102, 241, 0.18) !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        z-index: 10 !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .submenu-close:hover {
        background: rgba(99, 102, 241, 0.35) !important;
        transform: rotate(90deg) !important;
    }

    .submenu-close i {
        color: white !important;
        font-size: 1.25rem !important;
    }
}

/* Active submenu parent styling */
#mobile-menu .accordion-trigger.active::after,
#mobile-menu .nav-link.cursor-pointer.active::after {
    color: #06B6D4;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Focus Styles for Accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}