/* Modern Ultra Design - Ultime Drive VTC */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* CSS Variables for Consistent Design */
:root {
    --primary: #1e3a8a;
    --primary-dark: #1e40af;
    --secondary: #dc2626;
    --accent: #059669;
    --dark: #0a0a0a;
    --dark-alt: #1a1a1a;
    --text-light: #ffffff;
    --text-dark: #2d3748;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-primary: 0 25px 50px -12px rgba(30, 58, 138, 0.25);
    --shadow-dark: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-modern: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--dark);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utility Classes */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.glow-effect {
    box-shadow: 0 0 30px rgba(30, 58, 138, 0.3);
}

/* Language Toggle - Ultra Modern */
.language-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.25rem;
    box-shadow: var(--shadow-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 35px 60px -12px rgba(30, 58, 138, 0.4);
}

.lang-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 40px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-modern);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.lang-btn.active::before,
.lang-btn:hover::before {
    left: 0;
}

.lang-btn.active {
    color: var(--text-light);
    transform: scale(1.05);
}

/* Ultra Modern Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-dark);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow-dark);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo h2 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-modern);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: -0.25rem;
}

.nav-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-modern);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

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

/* Navigation Contact Buttons */
.nav-contact {
    display: flex;
    gap: 0.75rem;
    margin-left: 1rem;
}

.nav-tel, .nav-whatsapp {
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-primary);
}

.nav-tel {
    background: var(--gradient-modern);
    color: var(--text-light);
}

.nav-whatsapp {
    background: #25d366;
    color: var(--text-light);
}

.nav-tel:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.4);
    color: var(--text-light);
}

.nav-whatsapp:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    color: var(--text-light);
    background: #20ba5a;
}

/* Hero Section - Ultra Modern */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    background: var(--dark);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 2;
}

/* Mobile optimization - keep video but optimize */
@media (max-width: 768px) {
    .hero-video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 3rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Ultra Modern Buttons */
.btn-primary, .btn-secondary {
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-modern);
    color: var(--text-light);
    box-shadow: var(--shadow-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 35px 60px -12px rgba(30, 58, 138, 0.4);
    color: var(--text-light);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-primary);
    color: var(--text-light);
}

/* Modern Section Styling */
.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient-modern);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-modern);
    border-radius: 2px;
}

/* Services Section - Ultra Modern */
.services {
    padding: 8rem 0;
    background: var(--dark);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(30, 58, 138, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    position: relative;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-modern);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2rem;
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: var(--shadow-primary);
    border-color: var(--primary);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: var(--gradient-modern);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-light);
    position: relative;
    box-shadow: var(--shadow-primary);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-weight: 300;
}

/* About Section - Modern Glass Effect */
.about {
    padding: 8rem 0;
    background: var(--dark-alt);
    position: relative;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(-60px);
}

.feature.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-primary);
}

.feature i {
    font-size: 3rem;
    background: var(--gradient-modern);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.feature h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-weight: 300;
}

/* Contact Section - Ultra Modern */
.contact {
    padding: 8rem 0;
    background: var(--dark);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.1) 0%, transparent 70%);
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.contact-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    overflow: hidden;
}

.contact-clickable {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-clickable:hover {
    text-decoration: none;
    color: inherit;
}

.contact-clickable .contact-link {
    color: var(--primary);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-modern);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover::before {
    opacity: 0.05;
}

.contact-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-primary);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--gradient-modern);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
    box-shadow: var(--shadow-primary);
}

.contact-item h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.contact-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-modern);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.contact-link:hover {
    color: var(--secondary);
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 300;
}

/* Ultra Modern Footer */
.footer {
    background: var(--dark-alt);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-modern);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 300;
}

.footer-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-btn {
    padding: 1rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.footer-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
    background: var(--primary);
    color: var(--text-light);
}

.footer-btn.whatsapp:hover {
    background: #25d366;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-legal {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal:hover {
    color: var(--primary);
    text-decoration: underline;
}

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

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 112, 243, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 112, 243, 0.6);
    }
}

/* Ultra Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .language-toggle {
        top: 0.25rem;
        right: 0.25rem;
        padding: 0.15rem;
        z-index: 1001;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
        flex-direction: row;
        gap: 0;
    }
    
    .nav-menu {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-contact {
        margin-left: 0;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .nav-tel, .nav-whatsapp {
        font-size: 0.7rem;
        padding: 0.5rem 0.8rem;
        justify-content: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .btn-primary, .btn-secondary {
        justify-content: center;
        padding: 1rem 2rem;
    }
    
    .services, .about, .contact {
        padding: 5rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-contact {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .language-toggle {
        top: 0.2rem;
        right: 0.2rem;
        padding: 0.1rem;
    }
    
    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .service-card, .contact-item, .feature {
        padding: 2rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    .service-icon, .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* Dark Mode Optimizations */
@media (prefers-color-scheme: dark) {
    body {
        background: var(--dark);
    }
}

/* High Performance Optimizations */
* {
    will-change: auto;
}

.service-card, .feature, .contact-item {
    will-change: transform;
}

/* Legal Page Styles */
.legal-main {
    padding: 8rem 0 4rem;
    background: var(--dark);
    min-height: 100vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    background: var(--gradient-modern);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-info {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.legal-info p {
    margin-bottom: 1rem;
}

.legal-info strong {
    color: var(--text-light);
    font-weight: 600;
}

.legal-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-info a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.legal-footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

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

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

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

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