/**
 * Modern Homepage Styles with Bootstrap 5
 * High-end animations and professional design
 */

/* ===== Hero Modern ===== */
.hero-modern {
    min-height: 100vh;
    padding-top: 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

.hero-background {
    background-image: url('../img/image1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: 0;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 250, 252, 0.9) 100%);
    z-index: 1;
}

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

.hero-title-modern {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-subtitle-modern {
    animation: fadeInUp 1.2s ease;
}

.hero-cta-modern {
    animation: fadeInUp 1.4s ease;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
    color: white;
}

.btn-outline-primary-modern {
    border: 2px solid #1e40af;
    color: #1e40af;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-primary-modern:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.2);
}

.hero-scroll-modern {
    z-index: 2;
}

.scroll-indicator {
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateY(5px);
    color: var(--primary-color) !important;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

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

/* ===== Trust Indicators Modern ===== */
.trust-indicators-modern {
    background: white;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.stat-card-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.1), transparent);
    transition: left 0.5s;
}

.stat-card-modern:hover::before {
    left: 100%;
}

.stat-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.stat-icon-modern {
    transition: transform 0.3s ease;
}

.stat-card-modern:hover .stat-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

.stat-number-modern {
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.stat-card-modern:hover .stat-number-modern {
    transform: scale(1.1);
}

/* ===== Services Modern ===== */
.services-section-modern {
    background: white;
}

.service-card-modern {
    background: white;
    border: 2px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-hover-effect {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card-modern:hover .service-hover-effect {
    opacity: 1;
}

.service-icon-modern {
    transition: transform 0.3s ease;
}

.service-card-modern:hover .service-icon-modern {
    transform: scale(1.05);
}

.service-title-modern {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.service-card-modern:hover .service-title-modern {
    color: var(--primary-color);
}

/* ===== Projects Modern ===== */
.projects-section-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.project-card-modern {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-modern:hover {
    transform: translateY(-10px);
}

.project-card-modern .card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-modern:hover .card {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.project-image-modern {
    overflow: hidden;
}

.project-img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-modern:hover .project-img {
    transform: scale(1.1);
}

.project-overlay-modern {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card-modern:hover .project-overlay-modern {
    opacity: 1;
}

.project-link-modern {
    transition: all 0.3s ease;
}

.project-card-modern:hover .project-link-modern {
    transform: translateX(5px);
}

/* ===== About Modern ===== */
.about-section-modern {
    background: white;
}

.about-image-modern {
    position: relative;
    overflow: hidden;
}

.about-image-modern img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-modern:hover img {
    transform: scale(1.05);
}

.about-image-overlay {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image-modern:hover .about-image-overlay {
    opacity: 1;
}

/* ===== CTA Modern ===== */
.cta-section-modern {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}

.cta-background-modern {
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    opacity: 0.3;
}

.cta-title-modern {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp-cta {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-whatsapp-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-whatsapp-cta:hover::before {
    width: 300px;
    height: 300px;
}

.btn-whatsapp-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

.btn-whatsapp-cta i {
    animation: pulse 2s infinite;
}

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

/* ===== Section Titles ===== */
.section-title-modern {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle-modern {
    max-width: 600px;
    margin: 0 auto;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title-modern {
        font-size: 2.5rem !important;
    }
    
    .display-3 {
        font-size: 2rem !important;
    }
    
    .display-4 {
        font-size: 1.75rem !important;
    }
    
    .stat-number-modern {
        font-size: 2rem !important;
    }
}

/* ===== Object Fit Utility ===== */
.object-fit-cover {
    object-fit: cover;
}

