/* PLAYVIAN Brand Colors - 2025 Dynamic Palette */
:root {
    /* Primary Brand Colors from PLAYVIAN logo */
    --primary-navy: #1a2332;
    --primary-dark: #2d3748;
    --primary-slate: #4a5568;
    --accent-orange: #ff6b35;
    --accent-red: #d63031;
    --accent-orange-light: #ff8c42;
    --accent-fire: #fd79a8;
    
    /* New Wing-Inspired Gradients */
    --brand-gradient: linear-gradient(135deg, #ff6b35 0%, #d63031 50%, #fd79a8 100%);
    --brand-gradient-wings: linear-gradient(145deg, #ff8c42 0%, #ff6b35 30%, #d63031 70%, #a5314d 100%);
    --brand-gradient-subtle: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(214, 48, 49, 0.1) 100%);
    --glassmorphism-bg: rgba(255, 255, 255, 0.1);
    --glassmorphism-border: rgba(255, 255, 255, 0.2);
    
    /* Modern Typography Scale */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing & Sizing */
    --section-padding: clamp(4rem, 8vw, 8rem);
    --container-max: 1280px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-backdrop: blur(8px);
}

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

body {
    font-family: var(--font-body);
    background: var(--primary-navy);
    color: white;
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(214, 48, 49, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(253, 121, 168, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Modern Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

/* Enhanced Gradient Text */
.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
}

/* Wing-inspired gradient for special elements */
.wings-gradient {
    background: var(--brand-gradient-wings);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    position: relative;
}

/* Wing-inspired background elements */
.wings-bg {
    background: var(--brand-gradient-wings);
    position: relative;
    overflow: hidden;
}

.wings-bg::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: all 0.8s ease;
}

.wings-bg:hover::before {
    left: 100%;
}

/* Logo styling enhancements */
img[src="LOGO.png"] {
    filter: brightness(1.05) contrast(1.1);
    transition: all 0.3s ease;
}

img[src="LOGO.png"]:hover {
    filter: brightness(1.1) contrast(1.15);
    transform: scale(1.02);
}

/* Ensure logo looks great on all backgrounds */
.logo-container {
    position: relative;
    display: inline-block;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.logo-container:hover::before {
    opacity: 1;
}

/* Modern Button Styles */
.btn-primary {
    background: var(--brand-gradient);
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: var(--glass-border);
    padding: 16px 32px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Enhanced Typography Hierarchy */
h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Modern Container */
.container {
    max-width: 100%;
    margin: 0 auto;
}

/* Enhanced Section Spacing */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Modern Navigation Enhancements */
nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(26, 32, 44, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(26, 32, 44, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Section Enhancements */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(214, 48, 49, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(20, 184, 166, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* Feature Cards with Glassmorphism */
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Enhanced Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }

/* Modern Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

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

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Responsive Design Enhancements */
/* Enhanced Mobile Menu Styling */
.mobile-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 480px) {
    .mobile-menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Mobile menu hover effects */
#mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(2px);
}

/* Enhanced mobile menu backdrop */
#mobile-menu {
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Mobile menu section headers */
#mobile-menu h4 {
    color: white;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Mobile menu gradient icons */
#mobile-menu .bg-gradient-to-r {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Smooth transitions for mobile menu */
#mobile-menu a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile menu container styling */
#mobile-menu .container {
    max-width: 100%;
}

/* Prevent horizontal scroll on mobile menu */
#mobile-menu {
    overflow-x: hidden;
}

/* Enhanced Desktop Navigation Sub-Menu Backgrounds */
nav .group .absolute.backdrop-blur-xl {
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 
                0 0 0 1px rgba(0, 212, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Additional enhancement for better visibility */
nav .group .absolute.rounded-2xl {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 32, 44, 0.9) 100%) !important;
}

@media (max-width: 768px) {
    :root {
        --section-padding: clamp(3rem, 6vw, 4rem);
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Enhanced mobile menu styling */
#mobile-menu {
    max-height: 100vh;
    overflow-y: auto;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.08) 0%, transparent 50%);
}

/* Mobile menu responsive padding */
#mobile-menu .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Mobile menu items styling */
#mobile-menu a {
    border-left: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu a:hover {
    border-left-color: rgba(255, 107, 53, 0.8);
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
}

/* Mobile menu icon styling */
#mobile-menu a .w-10 {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu a:hover .w-10 {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

/* Push effect for main content */
.main-content-wrapper {
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    position: relative;
}

/* Prevent horizontal scroll during push effect */
body {
    overflow-x: hidden;
}

/* Mobile menu push effect - only on mobile */
@media (max-width: 768px) {
    .main-content-wrapper.menu-open {
        transform: translateX(320px);
        width: calc(100% - 320px);
    }
    
    /* Ensure mobile menu is properly positioned */
    #mobile-menu {
        width: 320px !important;
        max-width: 320px;
    }
}

@media (min-width: 769px) {
    .main-content-wrapper.menu-open {
        transform: translateX(0);
        width: 100%;
    }
    
    /* Hide mobile menu on desktop */
    #mobile-menu {
        display: none !important;
    }
}

/* Mobile menu sidebar specific styling */
#mobile-menu {
    border-radius: 0 24px 24px 0;
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.5);
}

/* Bottom call to action button in mobile menu */
#mobile-menu .absolute.bottom-0 {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(10px);
}
}

@media (max-width: 375px) {
    /* Extra small mobile adjustments */
    #mobile-menu .grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #mobile-menu h4 {
        font-size: 0.875rem;
    }
    
    #mobile-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Focus States for Accessibility */
*:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Modern Link Styles */
a {
    color: var(--accent-orange-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--accent-orange);
}

a.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    transition: width 0.3s ease;
}

a.link-underline:hover::after {
    width: 100%;
}

/* Legacy Atomic Classes for Backward Compatibility */
.atomic-button {
    background: var(--brand-gradient);
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.atomic-button:hover::before {
    left: 100%;
}

.atomic-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.atomic-button-outline {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: var(--glass-border);
    padding: 16px 32px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.atomic-button-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.atomic-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.atomic-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

.atomic-navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(26, 32, 44, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}