﻿/* ===== GLOBAL STYLES ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

h1, h2, h3 {
    margin: 0 0 15px 0;
}

p {
    margin: 0 0 10px 0;
}

/* ===== HERO CAROUSEL ===== */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 20px;
}

.carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

    .carousel .slide {
        position: absolute;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 1s ease-in-out;
    }

        .carousel .slide.active {
            opacity: 1;
        }

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
}

.hero-content {
    position: relative;
    max-width: 700px;
    padding: 20px;
    color: #fff;
    z-index: 1;
}

/* ===== ANIMATED GRADIENT HERO TEXT ===== */
.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 900;
    background: linear-gradient(90deg, #ff6b00, #ff9a00, #ffd600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 5s infinite linear;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero p {
    font-size: 1.2rem;
    animation: fadeInUp 1.3s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 60px 20px;
    text-align: center;
}

    .services-section h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
        color: #222;
    }

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    color: #333;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.5s, box-shadow 0.5s, opacity 0.5s;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

    .service-card.show {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .service-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0px 12px 25px rgba(0,0,0,0.2);
    }

.service-img {
    position: relative;
    overflow: hidden;
    height: 180px;
}

    .service-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s, filter 0.5s;
    }

.service-card:hover .service-img img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

.service-card h3 {
    margin: 15px 0 10px;
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    padding: 0 15px 20px;
    color: #555;
}

/* ===== FLOATING BUTTON ===== */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #ff6b00;
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
    transition: background 0.3s, transform 0.3s;
    z-index: 999;
    animation: pulse 2s infinite;
}

    .floating-btn:hover {
        background-color: #ff4b00;
        transform: scale(1.1);
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .services-container {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .service-card {
        margin-bottom: 20px;
    }

    .floating-btn {
        padding: 12px 20px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .service-img {
        height: 150px;
    }
}
