/* ========================================
   MEGA E SERVICES - CUSTOM CSS
   Ultra-Premium Glassmorphism Design
   ======================================== */

/* ========================================
   1. GLOBAL STYLES & RESETS
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   2. GLASSMORPHISM COMPONENTS
   ======================================== */

/* Navigation Glass Effect */
.glass-nav {
    background: rgba(16, 16, 16, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(16, 16, 16, 0.95);
    backdrop-filter: blur(25px);
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card::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;
}

.pricing-card:hover::before {
    left: 100%;
}

/* ========================================
   3. NAVIGATION STYLES
   ======================================== */
.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

.nav-link.active {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.2);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #3b82f6);
    border-radius: 1px;
}

/* Mobile Menu */
.mobile-menu {
    backdrop-filter: blur(20px);
    background: rgba(16, 16, 16, 0.95);
}

.mobile-menu-btn {
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    color: #a855f7;
    transform: scale(1.1);
}

/* ========================================
   4. HERO SECTION
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
}

/* Animated Background */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    animation: floatingOrbs 20s ease-in-out infinite;
}

/* Floating Orbs Animation */
.floating-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-orbs::before,
.floating-orbs::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent);
    animation: float 15s ease-in-out infinite;
}

.floating-orbs::before {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-orbs::after {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 10%;
    animation-delay: 7s;
}

@keyframes floatingOrbs {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Hero Title Gradient */
.hero-title {
    background: linear-gradient(135deg, #ffffff, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

.gradient-text {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   5. BUTTONS
   ======================================== */
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-primary-lg,
.btn-secondary-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.btn-primary-lg,
.btn-secondary-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-height: 56px;
}

.btn-primary {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: white;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
    background: transparent;
    color: #a855f7;
    border: 2px solid #a855f7;
}

.btn-ghost:hover {
    background: #a855f7;
    color: white;
    transform: translateY(-3px);
}

/* Button Glow Effect */
.btn-primary::before,
.btn-secondary::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;
}

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

/* ========================================
   6. WHATSAPP FLOATING BUTTON
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========================================
   7. ANIMATIONS & EFFECTS
   ======================================== */

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Glow Animation */
.glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px #a855f7; }
    50% { box-shadow: 0 0 20px #a855f7, 0 0 30px #a855f7; }
}

/* ========================================
   8. RESPONSIVE DESIGN
   ======================================== */

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 56px;
        height: 56px;
    }
    
    .btn-primary-lg,
    .btn-secondary-lg {
        width: 100%;
        max-width: 280px;
    }
    
    .pricing-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .glass-card {
        padding: 1rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-ghost {
        width: 100%;
    }
}

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

/* Focus styles for accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.nav-link:focus,
.form-input:focus {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

/* ========================================
   10. FORM STYLES
   ======================================== */
.form-input,
.form-select,
.form-textarea {
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.valid,
.form-select.valid,
.form-textarea.valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ========================================
   11. FOOTER
   ======================================== */
footer {
    background: rgba(16, 16, 16, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   12. PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Hardware acceleration for animations */
.glass-card,
.pricing-card,
.hero-bg-animation,
.floating-orbs {
    transform: translateZ(0);
    will-change: transform;
}

/* Smooth scrolling for iOS */
@media (hover: none) and (pointer: coarse) {
    html {
        -webkit-overflow-scrolling: touch;
    }
}

/* ========================================
   13. CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #9333ea, #2563eb);
}

/* ========================================
   14. SELECTION STYLES
   ======================================== */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(168, 85, 247, 0.3);
    color: #ffffff;
}