/* Root Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --black: #000000;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-light: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-medium: 0 5px 25px rgba(0,0,0,0.15);
    --shadow-heavy: 0 10px 40px rgba(0,0,0,0.2);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Fixed Buttons */
.fixed-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.btn-call, .btn-whatsapp {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: var(--shadow-medium);
/*    transition: var(--transition-bounce);*/
    animation: float 3s ease-in-out infinite;
}

.btn-call {
    background: var(--gradient-primary);
    animation-delay: 0s;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    animation-delay: 1s;
}

.btn-call:hover, .btn-whatsapp:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: var(--shadow-heavy);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
/*    transition: var(--transition-smooth);*/
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(0,0,0,0.95) !important;
    box-shadow: var(--shadow-light);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
/*    transition: var(--transition-smooth);*/
}

.animated-logo:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 0.5rem;
/*    transition: var(--transition-smooth);*/
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
/*    transition: var(--transition-smooth);*/
    transform: translateX(-50%);
}

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

/* Hero Section */
.hero-slider {
    height: 100vh;
    position: relative;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.pulse-btn {
    animation: pulse 2s infinite;
/*    transition: var(--transition-bounce);*/
}

.pulse-btn:hover {
    animation: none;
    transform: scale(1.05);
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
/*    transition: var(--transition-smooth);*/
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.1);
}

/* About Section */
#about {
    padding: 100px 0;
}

.about-features .feature-item {
/*    transition: var(--transition-smooth);*/
    padding: 1rem;
    border-radius: 10px;
}

.about-features .feature-item:hover {
    background: var(--light-color);
    transform: translateX(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
/*    background: var(--gradient-primary);*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* Services Section */
.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
/*    transition: var(--transition-bounce);*/
    border: none;
}

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

.service-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
/*    transition: var(--transition-smooth);*/
}

.service-card:hover .service-overlay {
    opacity: 0.9;
}

.service-overlay i {
    color: white;
    font-size: 3rem;
    transform: scale(0);
/*    transition: var(--transition-bounce);*/
}

.service-card:hover .service-overlay i {
    transform: scale(1);
}

.service-content {
    padding: 2rem;
}

.service-content h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.service-features li {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
/*    transition: var(--transition-bounce);*/
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
/*    transition: var(--transition-smooth);*/
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
/*    transition: var(--transition-smooth);*/
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-link {
    color: white;
    font-size: 2rem;
    text-decoration: none;
    transform: scale(0);
/*    transition: var(--transition-bounce);*/
}

.gallery-item:hover .gallery-link {
    transform: scale(1);
}

/* Video Section */
.video-item {
/*    transition: var(--transition-smooth);*/
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.video-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
/*    transition: var(--transition-smooth);*/
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
/*    transition: var(--transition-smooth);*/
}

.video-play-btn {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
/*    transition: var(--transition-bounce);*/
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
}

.video-play-btn:hover {
    transform: scale(1.1);
    background: var(--gradient-secondary);
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* Why Us Section */
.why-us-card {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
/*    transition: var(--transition-bounce);*/
    border: 2px solid transparent;
    height: 100%;
}

.why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.why-us-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
/*    transition: var(--transition-bounce);*/
}

.why-us-card:hover .why-us-icon {
    transform: rotateY(360deg);
}

/* FAQ Section */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
/*    transition: var(--transition-smooth);*/
}

.accordion-item:hover {
    box-shadow: var(--shadow-medium);
}

.accordion-button {
    background: white;
    border: none;
    font-weight: 600;
    color: var(--dark-color);
/*    transition: var(--transition-smooth);*/
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

/* Clients Section */
.client-carousel {
    display: flex;
    animation: scroll 20s linear infinite;
    gap: 2rem;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.client-slide {
    flex: 0 0 400px;
}

.client-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
/*    transition: var(--transition-bounce);*/
    height: 100%;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.stars {
    color: #ffc107;
    margin-bottom: 1rem;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.client-info h5 {
    margin: 0;
    color: var(--dark-color);
}

.client-info span {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-info .contact-item {
/*    transition: var(--transition-smooth);*/
    padding: 1rem;
    border-radius: 10px;
}

.contact-info .contact-item:hover {
    background: white;
    box-shadow: var(--shadow-light);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
/*    transition: var(--transition-smooth);*/
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
/*    transition: var(--transition-bounce);*/
}

.social-links a:hover {
    transform: translateY(-5px);
    background: var(--gradient-secondary);
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.btn-close {
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slide {
        background-attachment: scroll;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
    }
    
    .fixed-buttons {
        right: 15px;
        bottom: 15px;
    }
    
    .btn-call, .btn-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .client-carousel {
        animation-duration: 30s;
    }
    
    .client-slide {
        flex: 0 0 300px;
    }
    
    .service-image, .gallery-item img, .video-thumbnail img {
        height: 200px;
    }
    
    .why-us-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem !important;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-content, .why-us-card {
        padding: 1.5rem;
    }
    
    .client-slide {
        flex: 0 0 280px;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(50px);
/*    transition: var(--transition-smooth);*/
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Print Styles */
@media print {
    .fixed-buttons,
    .navbar,
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
}