/* ===== GENERAL STYLES & VARIABLES ===== */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #667eea;
    --tertiary-color: #764ba2;
    --accent-color: #ffd700;
    --dark-background: #1a1a1a;
    --light-background: #f8f9fa;
    --text-color: #333;
    --light-text-color: #fff;
    --border-radius: 15px;
    --shadow-light: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.15);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
    padding-top: 80px; /* Account for fixed header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== HEADER & NAVIGATION ===== */
/* ===== HEADER OPTIMIZATION ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--dark-background);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-normal);
    will-change: transform;
    /* Ensure compatibility with older browsers */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    position: relative;
    /* Fallback for older browsers */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
}

/* Logo - Ensure consistent sizing */
.logo img {
    height: 50px;
    width: auto;
    max-width: 180px;
    transition: all var(--transition-normal);
    object-fit: contain;
    /* Fallback for object-fit */
    font-family: 'object-fit: contain;';
}

/* Navigation Links - Improved cross-browser support */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    /* Fallback for gap property */
    margin: 0 -0.75rem;
}

.nav-links > li {
    margin: 0 0.75rem;
}

.nav-links a {
    color: var(--light-text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    /* Fallback for gap */
    margin-right: 0.5rem;
}

/* Dropdown Menu - Enhanced compatibility */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-background);
    border-radius: var(--border-radius);
    padding: 1rem;
    min-width: 220px;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Ensure proper stacking in all browsers */
    -webkit-transform: translateY(15px);
    -moz-transform: translateY(15px);
}

/* Mobile Navigation - Enhanced reliability */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark-background);
        flex-direction: column;
        padding: 80px 30px 30px;
        /* Fallback for gap */
        margin: 0;
    }
    
    .nav-links > li {
        margin: 0.75rem 0;
    }
    
    .nav-links.active {
        right: 0;
        /* Hardware acceleration for smoother animation */
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    
    /* Mobile menu toggle - enhanced visibility */
    .mobile-menu-toggle {
        display: flex;
        width: 30px;
        height: 24px;
        flex-direction: column;
        justify-content: space-between;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }
    
    .mobile-menu-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        transition: all var(--transition-normal);
        transform-origin: center;
        /* Ensure visibility in all browsers */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Overlay - improved browser support */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        /* Fallback for backdrop-filter */
        background: rgba(0, 0, 0, 0.8);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }
}

/* Ensure proper spacing for fixed header */
body {
    padding-top: 80px;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}



/* CTA Button */
.nav-cta {
    margin-left: 1rem;
}

.nav-cta .phone-link {
    background: linear-gradient(135deg, var(--primary-color), #ff8f65);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-cta .phone-link::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 var(--transition-slow);
}

.nav-cta .phone-link:hover::before {
    left: 100%;
}

.nav-cta .phone-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.nav-cta .phone-link i {
    font-size: 1.1rem;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
    transition: all var(--transition-normal);
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all var(--transition-normal);
    transform-origin: center;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark-background);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li a {
        padding: 0.8rem 1rem;
        border-radius: 5px;
        font-size: 1.1rem;
    }
    
    .nav-links li a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        background: rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
        margin-top: 0;
        border: none;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
    }
    
    .dropdown-menu a {
        padding: 0.8rem 1.5rem;
    }
    
    .nav-cta {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .logo img {
        height: 40px;
    }
    
    .nav-cta .phone-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Very small devices */
@media (max-width: 480px) {
    .nav-links {
        width: 100%;
        right: -100%;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        width: 26px;
        height: 20px;
    }
}

/* ===== SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Performance optimizations */
.nav-links,
.dropdown-menu {
    will-change: transform, opacity;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== PAGE SECTIONS ===== */
.page {
    display: none;
    padding: 100px 0 50px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.page.active {
    display: block;
}

.page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== HERO SECTION ===== */
.hero {

    text-align: center;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    margin-bottom: 2rem;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(255, 107, 53, 0.2));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.cta-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text-color);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
    font-size: 2rem;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== STATS SECTION ===== */
.stats {
    background: rgb(106,90,205); 
    padding: 4rem 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    border: 1px solid rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

.service-card ul,
.service-features {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.service-card ul li,
.service-features li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-features li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-color);
}

/* ===== FEATURES SECTION ===== */
.features {
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    padding: 4rem 0;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #ff8f65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.2rem;
    color: var(--light-text-color);
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.feature-item h3 {
    color: var(--light-text-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== WORKFLOW SECTION ===== */
.workflow {
    padding: 4rem 0;
    background: var(--light-background);
    border-radius: var(--border-radius);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.workflow-step {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    text-align: center;
    min-width: 280px;
}

.workflow-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(255,107,53,0.3);
}

.workflow-step h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
    color: var(--light-text-color);
    border-radius: var(--border-radius);
    margin-top: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="quote-pattern" patternUnits="userSpaceOnUse" width="20" height="20"><text x="0" y="15" font-family="Arial" font-size="20" fill="white" opacity="0.05">"</text></pattern></defs><rect width="100" height="100" fill="url(%23quote-pattern)"/></svg>');
    z-index: 1;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--accent-color);
}

.award-badge {
    background: rgba(255, 215, 0, 0.2);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    border: 2px solid var(--accent-color);
    backdrop-filter: blur(10px);
    text-align: center;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.award-badge h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.award-badge p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ===== CONTACT INFO ===== */
.contact-info {
    background: var(--dark-background);
    color: var(--light-text-color);
    padding: 3rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: rgba(255,255,255,0.05);
    transition: background 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,255,255,0.1);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ff8f65;
}

/* ===== FORMS ===== */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    background: #f0f0f0;
    width: 100%;
    height: 250px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-light);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.gallery-item:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

/* Top text overlay */
.gallery-item > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    padding: 0px;
    text-align: center;
    z-index: 2;
    border-bottom: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
}

.gallery-item h4,
.gallery-item p {
    margin: 0;
    color: var(--text-color);
    z-index: 2;
    position: relative;
}

.gallery-item p {
    font-size: 0.9rem;
    color: #555;
}

/* ===== FINAL CTA ===== */
.final-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.final-cta .cta-button {
    background: white;
    color: var(--primary-color);
    font-weight: bold;
}

.final-cta .cta-button:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    color: var(--primary-color);
}

/* ===== MESSAGE BOX ===== */
.message-box-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.message-box-overlay.show {
    opacity: 1;
    visibility: visible;
}

.message-box-content {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.message-box-overlay.show .message-box-content {
    transform: translateY(0);
    opacity: 1;
}

.message-box-content h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.message-box-content p {
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.5;
}

.message-box-content button {
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.message-box-content button:hover {
    background: #e55a2b;
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    font-size: 1.8rem;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
    transform: scale(1.1);
}

.whatsapp-float .tooltip {
    position: absolute;
    right: 70px;
    background: var(--dark-background);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

.whatsapp-float .tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid var(--dark-background);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== SOCIAL MEDIA LINKS ===== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ===== UTILITY CLASSES ===== */
.no-scroll {
    overflow: hidden;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-cta .phone-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 80vh;
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid, 
    .features-grid, 
    .contact-grid, 
    .workflow-steps, 
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .workflow-step {
        min-width: unset;
        width: 100%;
    }

    .service-card {
        padding: 1.5rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .contact-info > .container > div > div {
        flex-direction: column;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 70vh;
    }
}

/* Social Media */
.social-section {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.social-link.facebook { background: linear-gradient(135deg, #1877f2, #42a5f5); }
.social-link.twitter { background: linear-gradient(135deg, #1da1f2, #0d8bd9); }
.social-link.instagram { background: linear-gradient(135deg, #e4405f, #fd1d1d, #fcb045); }
.social-link.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }

/* Award Badge */
.award-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    from { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    to { box-shadow: 0 0 40px rgba(255, 215, 0, 0.6); }
}

.award-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.award-badge-content {
    position: relative;
    z-index: 2;
}

.award-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.award-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Bottom Section */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    margin: 0 -2rem -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
}

.copyright {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.license {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Hero Slider */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.6) 100%);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

.nav-dot:hover {
    border-color: white;
    transform: scale(1.1);
}

.hero .container {
    position: relative;
    z-index: 5;
}

.scroll-indicator {
    position: relative;
    z-index: 5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-nav {
        bottom: 20px;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
    }
}

/* Ensure consistent flexbox behavior */
.nav-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -moz-flex;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    -moz-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -moz-align-items: center;
    align-items: center;
}

/* Add Firefox-specific fixes for gap */
.nav-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -moz-flex;
    display: flex;
    gap: 1.5rem;
    -moz-column-gap: 1.5rem;
}

/* Ensure sticky nav works consistently */
.sticky-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: auto;
}

/* Add Firefox prefix for backdrop-filter */
.mobile-nav-overlay {
    -moz-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}