/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
}

/* Typography */
.font-title {
    font-family: 'Poppins', sans-serif;
}

.font-body {
    font-family: 'Roboto', sans-serif;
}

/* Glassmorphism Effect - Lobelli Theme */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    transform: translateY(-5px);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Lobelli Brand Colors */
:root {
    --navy-50: #f8fafc;
    --navy-900: #0f172a;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --green-600: #16a34a;
}

/* Service Cards Enhancements */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.2);
}

/* Navigation Enhancements */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1) !important;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

/* Scroll Animations */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Particle Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #0ea5e9, #8b5cf6);
    border-radius: 50%;
    opacity: 0.6;
    animation: particle-float 15s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Lobelli Button Styles */
.btn-orange {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ea580c, #f97316);
    transition: all 0.3s ease;
}

.btn-orange::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-orange:hover::before {
    left: 100%;
}

/* WhatsApp Integration */
.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

/* Lobelli Form Enhancements */
.lobelli-form input,
.lobelli-form textarea,
.lobelli-form select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.lobelli-form input:focus,
.lobelli-form textarea:focus,
.lobelli-form select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.lobelli-form input::placeholder,
.lobelli-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Contact Section Dark Theme */
.contact-dark {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

/* Testimonial Cards */
.testimonial-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Stats Counter Animation */
.stat-counter {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Menu Animation */
.mobile-menu {
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Hero Section Enhancements */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(14, 165, 233, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Interactive Elements */
.interactive-element {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-element:hover {
    transform: scale(1.05);
}

/* Lobelli Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #ea580c, #f97316, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Lobelli Hero Background */
.hero-lobelli {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.05) 0%, 
        rgba(249, 115, 22, 0.05) 50%, 
        rgba(22, 163, 74, 0.05) 100%);
}

/* Lobelli Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ea580c, #f97316);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c2410c, #ea580c);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .bento-grid {
        gap: 1rem;
        grid-auto-rows: 180px;
    }
    
    .glass-card {
        padding: 1rem;
    }
    
    .glass-card:hover {
        transform: translateY(-3px);
    }
    
    .hero-bg {
        background: 
            radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 70%),
            radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.2) 0%, transparent 70%);
    }
    
    /* Mobile Typography */
    h1 {
        line-height: 1.2 !important;
    }
    
    h2 {
        line-height: 1.3 !important;
    }
    
    /* Mobile Navigation */
    .mobile-menu {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    /* Mobile Form */
    input, textarea, select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Mobile Cards */
    .service-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    /* Mobile Button Improvements */
    button, .btn {
        min-height: 44px; /* Touch target size */
        font-size: 16px;
    }
    
    /* Mobile Spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .glass-card {
        padding: 0.75rem;
        margin: 0.5rem 0;
    }
    
    /* Smaller touch targets adjustment */
    .grid {
        gap: 0.75rem !important;
    }
    
    /* Typography adjustments for very small screens */
    .text-4xl {
        font-size: 2rem !important;
    }
    
    .text-3xl {
        font-size: 1.75rem !important;
    }
    
    .text-2xl {
        font-size: 1.5rem !important;
    }
    
    .text-xl {
        font-size: 1.125rem !important;
    }
}

/* Print Styles */
@media print {
    .glass-card {
        background: white;
        border: 1px solid #e5e7eb;
        box-shadow: none;
    }
    
    nav, footer {
        display: none;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .glass-card {
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid #000;
    }
    
    .gradient-text {
        background: #000;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}