/* CSS Custom Properties for consistent theming */
:root {
    --primary-blue: #2d69b3;
    --primary-green: #41b649;
    --secondary-green: #369e3e;
    --light-gray: #f8f9fa;
    --dark-gray: #404040;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
    --border-radius: 25px;
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-gray);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Navbar Styles */
.navbar {
    background: var(--white) !important;
    border-bottom: 1px solid #ddd;
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    transition: var(--transition);
}

.navbar-brand, 
.nav-link {
    color: var(--primary-blue) !important;
    text-decoration: none !important;
    font-weight: 500;
}

.navbar-brand:hover, 
.nav-link:hover {
    color: var(--primary-green) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.navbar-toggler {
    border: none;
    background-color: transparent;
    padding: 8px;
    border-radius: 4px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px var(--primary-blue);
    outline: none;
}

.navbar-toggler-icon i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

/* Logo Optimization */
.navbar-brand img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(45, 105, 179, 0.7), rgba(65, 182, 73, 0.7));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 15px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Technologies Section */
.technologies {
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    padding: 4rem 0;
}

.technology-img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    transition: var(--transition);
    filter: grayscale(20%);
}

.technology-img:hover {
    transform: scale(1.1) rotate(2deg);
    filter: grayscale(0%);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary:focus {
    box-shadow: 0 0 0 3px rgba(65, 182, 73, 0.3);
    outline: none;
}

/* Plan Cards */
.plan-card {
    transition: var(--transition);
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

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

.plan-card .card-title {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.3rem;
}

.price-container {
    margin-bottom: 1rem;
}

.plan-card .card-price {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.plan-card .card-price span {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.monthly-price {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.list-group-item {
    border: none;
    padding: 0.75rem 1rem;
    background: transparent;
}

.list-group-item i {
    width: 20px;
    margin-right: 10px;
}

/* Popular Plan Badge */
.popular-plan {
    border: 3px solid var(--primary-green);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0 var(--border-radius) 0 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Features Section */
.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon i {
    color: var(--primary-blue);
    transition: var(--transition);
}

.feature-icon:hover i {
    color: var(--primary-green);
    transform: scale(1.1);
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stars {
    color: #ffd700;
}

.testimonial-card cite {
    font-style: italic;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-gray), #2c2c2c);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer a {
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
}

.footer a:hover {
    color: #ffcc00;
    text-decoration: none;
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.footer-links a {
    margin: 5px 15px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.footer-links a:hover {
    background: rgba(255, 204, 0, 0.2);
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

/* Floating Buttons */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.8rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(100px);
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(0) scale(1.1);
    box-shadow: var(--shadow-hover);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 50px;
    }

    .hero {
        height: 80vh;
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .technology-img {
        max-width: 120px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-links a {
        margin: 5px 0;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 70px;
    }

    .whatsapp-float a {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 0 10px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .plan-card .card-price {
        font-size: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }

    .testimonial-card {
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid var(--white);
    }
}

/* Print styles */
@media print {
    .navbar,
    .whatsapp-float,
    .back-to-top,
    .hero-video {
        display: none !important;
    }

    .hero {
        height: auto;
        background: var(--primary-blue);
        padding: 2rem 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Focus styles for better accessibility */
.btn:focus,
.nav-link:focus,
.navbar-brand:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Loading states */
.technology-img {
    background: #f0f0f0;
    min-height: 100px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styles */
::selection {
    background: var(--primary-green);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-green);
    color: var(--white);
}