/*
 * AEKMC - Apple-style OLED Dark Theme
 * Inspired by Apple's product pages design
 * Features: OLED Black backgrounds, scroll animations, modern typography
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Professional Purple-Gray Palette */
    --black: #0a0a0b;
    --dark-gray: #1a1a1d;
    --medium-gray: #2d2d32;
    --light-gray: #8b8b93;
    --white: #f5f5f7;
    --primary-purple: #6366f1;
    --secondary-purple: #8b5cf6;
    --accent-gray: #6b7280;
    --success-green: #10b981;
    --danger-red: #ef4444;
    
    /* Page Theming Variables */
    --section-bg: var(--dark-gray);
    --card-bg: var(--black);
    --text-primary: var(--white);
    --text-secondary: var(--light-gray);
    --border-color: var(--medium-gray);
    --input-bg: var(--dark-gray);
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
    --font-weight-thin: 200;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease-out;
    --transition-medium: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
    
    /* Header */
    --header-height: 64px;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    font-weight: var(--font-weight-regular);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--light-gray);
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    opacity: 0.8;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--border-radius-xl);
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-purple);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--primary-purple);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--medium-gray);
    z-index: 1000;
    transition: var(--transition-medium);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
}

.logo i {
    color: var(--primary-purple);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

nav a {
    color: var(--light-gray);
    font-weight: var(--font-weight-medium);
    position: relative;
    transition: var(--transition-fast);
}

nav a:hover {
    color: var(--white);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-actions .btn {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.9rem;
    border-radius: var(--border-radius-sm);
}

.header-actions .btn i {
    font-size: 0.85rem;
}

.lang-switch-btn {
    background: transparent;
    border: 1px solid var(--medium-gray);
    color: var(--light-gray);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switch-btn:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

/* Language Switcher Container */
.language-switcher {
    position: relative;
    z-index: 20;
}

/* Currency Switcher */
.currency-switcher {
    position: relative;
}

.currency-switch-btn {
    background: transparent;
    border: 1px solid var(--medium-gray);
    color: var(--light-gray);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.currency-switch-btn:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.currency-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    margin-top: var(--spacing-xs);
}

.currency-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--medium-gray);
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-option:hover {
    background: var(--medium-gray);
}

.currency-option.active {
    background: var(--primary-purple);
    color: var(--white);
}

.currency-flag {
    font-size: 1.2rem;
}

.currency-name {
    font-size: 0.875rem;
    color: var(--light-gray);
}

.currency-option:hover .currency-name,
.currency-option.active .currency-name {
    color: var(--white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: var(--spacing-xs);
}

/* Hide mobile nav sections on desktop */
.mobile-nav-sections {
    display: none;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MAIN CONTENT ===== */
main {
    margin-top: var(--header-height);
}

section {
    padding: var(--spacing-xxl) 0;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.5rem;
    color: var(--light-gray);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--medium-gray);
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-purple);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: var(--font-weight-medium);
}

/* ===== FEATURES SECTION ===== */
.features-highlight {
    background: var(--dark-gray);
    text-align: center;
}

.features-highlight h2 {
    color: var(--white);
    margin-bottom: var(--spacing-xl);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: var(--black);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
    opacity: 0;
    transition: var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--light-gray);
    font-size: 1rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-md);
}

.feature-card ul li {
    color: var(--light-gray);
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: var(--spacing-md);
    font-size: 0.9rem;
}

.feature-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-purple);
    font-weight: bold;
}

.plan-price {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-purple);
    margin: var(--spacing-md) 0;
    text-align: center;
}

.feature-card .btn {
    margin-top: var(--spacing-md);
    width: 100%;
    justify-content: center;
}

/* ===== PROMO SECTION ===== */
.free-server-promo {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    border-radius: var(--border-radius-xl);
    margin: var(--spacing-xl) auto;
    max-width: 1000px;
}

.promo-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--spacing-lg);
    align-items: center;
    padding: var(--spacing-xl);
}

.promo-icon i {
    font-size: 3rem;
    color: var(--white);
}

.promo-text h2 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.promo-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.promo-action .btn-secondary {
    background: var(--white);
    color: var(--primary-purple);
    border: 2px solid var(--white);
    font-weight: var(--font-weight-semibold);
}

.promo-action .btn-secondary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ===== GAME TYPES SECTION ===== */
.game-types {
    background: var(--black);
    text-align: center;
}

.game-types h2 {
    color: var(--white);
    margin-bottom: var(--spacing-xl);
}

.game-types p {
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.125rem;
}

.game-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.game-type {
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    transition: var(--transition-medium);
    cursor: pointer;
}

.game-type:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
    background: rgba(99, 102, 241, 0.1);
}

.game-type i {
    font-size: 2rem;
    color: var(--primary-purple);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.game-type h3 {
    color: var(--white);
    font-size: 1.125rem;
    margin: 0;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background: var(--dark-gray);
    text-align: center;
}

.testimonials h2 {
    color: var(--white);
    margin-bottom: var(--spacing-xl);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.testimonial {
    background: var(--black);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    transition: var(--transition-medium);
}

.testimonial:hover {
    transform: translateY(-5px);
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-md);
}

.testimonial-content p {
    font-style: italic;
    color: var(--light-gray);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.testimonial-content .fas {
    color: var(--primary-purple);
    opacity: 0.6;
    font-size: 0.875rem;
}

.testimonial-author {
    color: var(--white);
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
}

/* ===== CTA SECTION ===== */
.cta {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    text-align: center;
    border-radius: var(--border-radius-xl);
    margin: var(--spacing-xl) auto;
    max-width: 1000px;
}

.cta h2 {
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.cta .btn {
    font-size: 1.25rem;
    padding: var(--spacing-md) var(--spacing-xxl);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-gray);
    border-top: 1px solid var(--medium-gray);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: var(--spacing-xs);
}

.footer-col a {
    color: var(--light-gray);
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--medium-gray);
    color: var(--light-gray);
    font-size: 0.875rem;
}

/* ===== FAQ SECTION ===== */
.faq-header {
    text-align: center;
    padding: 80px 0 40px;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
}

.faq-header h1 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.faq-header p {
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

.faq-content {
    padding: var(--spacing-xxl) 0;
    background: var(--dark-gray);
}

.faq-questions {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--black);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: var(--transition-medium);
}

.faq-item:hover {
    border-color: var(--primary-purple);
}

.faq-question {
    padding: var(--spacing-lg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
    background: transparent;
}

.faq-question:hover {
    background: rgba(99, 102, 241, 0.05);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    color: var(--white);
    flex: 1;
}

.faq-question i {
    color: var(--primary-purple);
    font-size: 1rem;
    transition: var(--transition-fast);
    margin-left: var(--spacing-md);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--dark-gray);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.faq-answer p {
    color: var(--light-gray);
    margin: 0;
    padding-top: var(--spacing-sm);
    line-height: 1.6;
}

/* ===== ABOUT-US SECTION ===== */
.about-header {
    text-align: center;
    padding: 80px 0 40px;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
}

.about-header h1 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.about-content {
    padding: var(--spacing-xxl) 0;
    background: var(--dark-gray);
}

.about-text {
    max-width: 800px;
    margin: 0 auto var(--spacing-xxl);
    text-align: center;
}

.about-text h2 {
    color: var(--primary-purple);
    margin: var(--spacing-xxl) 0 var(--spacing-lg);
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--light-gray);
}

.team {
    text-align: center;
}

.team h2 {
    color: var(--white);
    margin-bottom: var(--spacing-xxl);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.team-member {
    background: var(--black);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: var(--transition-medium);
}

.team-member:hover {
    transform: translateY(-8px);
    border-color: var(--primary-purple);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.team-member h3 {
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.team-member p {
    color: var(--light-gray);
    margin: 0;
    font-size: 1rem;
}


/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for multiple elements */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .promo-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Header */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide some header actions on mobile to save space */
    .language-switcher,
    .currency-switcher {
        display: none;
    }
    
    .header-actions {
        gap: var(--spacing-sm);
    }
    
    .header-actions .btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
    }
    
    nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        transition: var(--transition-medium);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: var(--spacing-xl);
        gap: var(--spacing-lg);
    }
    
    nav a {
        font-size: 1.25rem;
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid var(--medium-gray);
    }
    
    /* Add mobile menu sections */
    .mobile-nav-sections {
        display: block;
        padding: var(--spacing-lg) var(--spacing-xl);
        border-top: 1px solid var(--medium-gray);
        margin-top: var(--spacing-lg);
    }
    
    .mobile-nav-section {
        margin-bottom: var(--spacing-lg);
    }
    
    .mobile-nav-section h4 {
        color: var(--light-gray);
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: var(--spacing-sm);
    }
    
    .mobile-nav-section .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
        justify-content: flex-start;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    /* Content */
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero {
        min-height: 80vh;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .promo-content {
        padding: var(--spacing-lg);
    }
}

/* ===== SMOOTH SCROLLING BEHAVIOR ===== */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== FIREFOX RECOMMENDATION POPUP ===== */
.firefox-recommendation-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg), 0 0 32px rgba(99, 102, 241, 0.15);
    padding: var(--spacing-lg);
    z-index: 10000;
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    transition: all var(--transition-medium) cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.firefox-recommendation-popup.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.firefox-recommendation-popup.hiding {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all var(--transition-fast) ease-in;
}

.firefox-popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.firefox-popup-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: var(--spacing-sm);
}

.firefox-popup-close {
    background: rgba(139, 139, 147, 0.3);
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--light-gray);
    font-size: 1rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.firefox-popup-close:hover {
    background: rgba(139, 139, 147, 0.5);
    color: var(--white);
    transform: scale(1.1);
}

.firefox-popup-title {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--white);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.3;
}

.firefox-popup-message {
    font-size: 0.9rem;
    color: var(--light-gray);
    line-height: 1.4;
    margin-bottom: var(--spacing-lg);
}

.firefox-popup-button {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    border: none;
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--white);
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    transition: all var(--transition-fast);
    min-height: 40px;
    width: 100%;
}

.firefox-popup-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.firefox-popup-button:active {
    transform: translateY(0);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .firefox-recommendation-popup {
        bottom: 15px;
        right: 15px;
        left: 15px;
        width: auto;
        max-width: none;
        padding: var(--spacing-md);
    }
    
    .firefox-popup-title {
        font-size: 1rem;
    }
    
    .firefox-popup-message {
        font-size: 0.85rem;
    }
    
    .firefox-popup-button {
        font-size: 0.85rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .firefox-recommendation-popup {
        bottom: 10px;
        right: 10px;
        left: 10px;
        padding: var(--spacing-sm);
    }
    
    .firefox-popup-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .firefox-popup-close {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
}

/* ===== LINUX OS RECOMMENDATION POPUP ===== */
.os-recommendation-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg), 0 0 32px rgba(139, 92, 246, 0.15);
    padding: var(--spacing-lg);
    z-index: 10000;
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    transition: all var(--transition-medium) cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.os-recommendation-popup.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.os-recommendation-popup.hiding {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all var(--transition-fast) ease-in;
}

.os-popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.os-popup-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--secondary-purple), #10b981);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: var(--spacing-sm);
}

.os-popup-close {
    background: rgba(139, 139, 147, 0.3);
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--light-gray);
    font-size: 1rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.os-popup-close:hover {
    background: rgba(139, 139, 147, 0.5);
    color: var(--white);
    transform: scale(1.1);
}

.os-popup-title {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--white);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.3;
}

.os-popup-message {
    font-size: 0.9rem;
    color: var(--light-gray);
    line-height: 1.4;
    margin: 0;
}

/* ===== OS POPUP MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .os-recommendation-popup {
        bottom: 15px;
        right: 15px;
        left: 15px;
        width: auto;
        max-width: none;
        padding: var(--spacing-md);
    }
    
    .os-popup-title {
        font-size: 1rem;
    }
    
    .os-popup-message {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .os-recommendation-popup {
        bottom: 10px;
        right: 10px;
        left: 10px;
        padding: var(--spacing-sm);
    }
    
    .os-popup-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .os-popup-close {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
}

/* ===== PRICING PACKAGES SECTION ===== */
.pricing-packages {
    padding: 4rem 0;
    background: var(--section-bg);
}

.pricing-packages .currency-selector {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-packages .currency-selector h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.pricing-packages .currency-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pricing-packages .currency-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.pricing-packages .currency-option:hover {
    border-color: var(--primary-purple);
    transform: translateY(-2px);
}

.pricing-packages .currency-option.active {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    color: white;
}

.currency-symbol {
    font-size: 1.2rem;
    font-weight: 600;
}

.currency-name {
    font-size: 0.9rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.package-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    height: fit-content;
}

.package-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}


.package-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.package-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    transition: all 0.3s ease;
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.package-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.package-features {
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    color: var(--primary-purple);
    width: 20px;
    text-align: center;
}

.package-recommended {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.package-select-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.package-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.package-select-btn:active {
    transform: translateY(0);
}

/* ===== CART SECTION ===== */
.cart-section {
    padding: 2rem 0;
    min-height: 60vh;
    background: var(--section-bg);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.cart-header h1 {
    color: var(--text-primary);
    font-size: 2rem;
    margin: 0;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-purple);
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--secondary-purple);
    transform: translateX(-3px);
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.empty-cart i {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.empty-cart h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-cart p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.package-details h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.selected-package {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
}


.selected-package .package-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.selected-package .package-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.selected-package .package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
}

.selected-package .price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    transition: all 0.3s ease;
}

.selected-package .price-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.selected-package .package-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.package-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 10px;
    color: var(--text-primary);
}

.spec-item i {
    color: var(--primary-purple);
    width: 20px;
    text-align: center;
}

.cart-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-sidebar .currency-selector,
.order-summary {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
}

.cart-sidebar .currency-selector h3,
.order-summary h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.cart-sidebar .currency-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-sidebar .currency-option {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.cart-sidebar .currency-option:hover {
    border-color: var(--primary-purple);
}

.cart-sidebar .currency-option.active {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    color: white;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.coupon-section {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 10px;
}

.coupon-section h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.coupon-input {
    display: flex;
    gap: 0.5rem;
}

.coupon-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
}

.coupon-input button {
    padding: 0.75rem 1rem;
    background: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.coupon-input button:hover {
    background: var(--secondary-purple);
}

#couponMessage {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    display: none;
}

#couponMessage.success {
    color: #22c55e;
}

#couponMessage.error {
    color: #ef4444;
}

.btn.full-width {
    width: 100%;
}

.login-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkout-actions {
    margin-top: 1.5rem;
}


/* ===== MOBILE RESPONSIVE FOR PACKAGES ===== */
@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    
    .pricing-packages .currency-options {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-packages .currency-option {
        min-width: 200px;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .package-specs {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar .currency-options {
        flex-direction: row;
    }
    
    .cart-header {
        flex-direction: column;
        align-items: flex-start;
    }
}