/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 30px;
}

.hero-slides {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 180px 0 100px;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-slide h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

.hero-slide p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}


.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.hero-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.features-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    height: 250px;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.feature-card-content {
    transition: all var(--transition-speed) ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
}

.feature-card-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: all var(--transition-speed) ease;
    background-color: white;
}

.feature-card-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.feature-card:hover .feature-card-content {
    opacity: 0;
    transform: translateY(20px);
}

.feature-card:hover .feature-card-logo {
    opacity: 1;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
}

/* Services Preview */
.services-preview {
    padding: 80px 0;
    background-color: white;
}

.services-preview .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-preview h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 2.2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease;
    opacity: 0;
    transform: translateY(20px);
}

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

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-content {
    padding: 25px;
    background: white;
}

.service-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-link {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.btn-link i {
    margin-left: 5px;
    transition: transform var(--transition-speed) ease;
}

.btn-link:hover {
    color: var(--primary-color);
}

.btn-link:hover i {
    transform: translateX(5px);
}

.text-center {
    text-align: center;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.testimonials-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 2.2rem;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: none;
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.rating {
    color: #f1c40f;
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 25px;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.testimonial-prev,
.testimonial-next {
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all var(--transition-speed) ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
}

.cta-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-slider {
        height: 500px;
    }
    
    .hero-slide h1 {
        font-size: 3rem;
    }
    
    .hero-slide {
        padding: 150px 0 80px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 450px;
    }
    
    .hero-slide h1 {
        font-size: 2.2rem;
    }
    
    .hero-slide p {
        font-size: 1.1rem;
    }
    
    .hero-slide {
        padding: 120px 0 60px;
    }
    
    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .testimonial-nav {
        position: static;
        transform: none;
        margin-top: 20px;
        justify-content: center;
        gap: 20px;
        pointer-events: auto;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 400px;
    }
    
    .hero-slide h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .feature-card {
        height: 220px;
    }
    
    .feature-card-content {
        padding: 30px 20px;
    }
}