﻿/* ==== Global Reset ==== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==== Hero Section ==== */
.hero {
    height: 50vh;
   background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
    animation: fadeIn 1.5s ease;
}

    .hero h1 {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .hero .brand {
        color: darkorange;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .hero button {
        background-color: white;
        color: darkorange;
        border: none;
        font-size: 16px;
        padding: 12px 30px;
        border-radius: 30px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .hero button:hover {
            background-color: darkorange;
            color: white;
            transform: scale(1.1);
        }

/* ==== About Section ==== */
.about-section {
    padding: 60px 10%;
    background-color: white;
    text-align: center;
    animation: fadeIn 1s ease;
}

    .about-section h2 {
        font-size: 2rem;
        color: #222;
        text-decoration: underline 3px darkorange;
        text-underline-offset: 8px;
        margin-bottom: 20px;
    }

/* ==== Services Slider ==== */
label {
    background: white;
    color: white;
    transition: transform 800ms ease-out;
    display: inline-block;
    max-height: 50%;
    width: 102vw;
    max-width: 100%;
    margin: 0;
    padding: 0;
    height: 40vh;
    position: relative;
    z-index: 1;
    text-align: center;
    line-height: 40vh;
}

form {
    position: relative;
    white-space: nowrap;
    padding: 0;
}

input {
    position: absolute;
}

.keys {
    display: none;
    position: fixed;
    z-index: 10;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0rem;
    color: gray;
    text-align: center;
    opacity: 0;
    transition: all 300ms linear;
}

input:focus ~ .keys {
    opacity: 0.8;
}

input:nth-of-type(1):checked ~ label:nth-of-type(1),
input:nth-of-type(2):checked ~ label:nth-of-type(2),
input:nth-of-type(3):checked ~ label:nth-of-type(3),
input:nth-of-type(4):checked ~ label:nth-of-type(4) {
    z-index: 5;
}

input:nth-of-type(1):checked ~ label {
    transform: translate3d(0, 0, 0);
}

input:nth-of-type(2):checked ~ label {
    transform: translate3d(-100.2%, 0, 0);
}

input:nth-of-type(3):checked ~ label {
    transform: translate3d(-200.47%, 0, 0);
}

input:nth-of-type(4):checked ~ label {
    transform: translate3d(-300.67%, 0, 0);
}

label {
    background: linear-gradient(135deg, #0F2027, #203A43, #2C5364);
    font-size: 4vw;
}

    label[for="service4"],
    label[for="service2"] {
        background: linear-gradient(135deg, #0F2027, #203A43, #2C5364);
    }

/* ==== Cards Section ==== */ .card-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #e5e5e5, #f9f9f9);
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #222;
    font-weight: 700;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.15), 0 16px 32px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
}

    .card:hover {
        transform: scale(1.05);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }

    .card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

.card-content {
    padding: 20px;
    text-align: left;
    flex-grow: 1;
}

    .card-content h3 {
        color: #ff6f00;
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .card-content p {
        color: #555;
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .card-content button {
        background: linear-gradient(135deg, #ff8c00, #ff5f6d);
        color: #fff;
        border: none;
        padding: 10px 18px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .card-content button:hover {
            transform: scale(1.2);
            box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3);
        }

/* ==== Why Choose Us ==== */
.why-choose {
    padding: 60px 10%;
    background: white;
    text-align: center;
}

.underlinedtext {
    text-decoration: underline 3px darkorange;
    text-underline-offset: 8px;
}

.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.feature {
    background: whitesmoke;
    border-radius: 12px;
    width: 250px;
    padding: 25px;
    color: black;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

    .feature i {
        font-size: 2rem;
        color: darkorange;
        margin-bottom: 10px;
    }

/* ==== Portfolio Preview ==== */
.portfolio-preview {
    padding: 60px 10%;
    text-align: center;
    background: linear-gradient(135deg, #ff8c00, #ff6f00);
}

.portfolio-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

    .portfolio-items img {
        width: 300px;
        height: 200px;
        border-radius: 10px;
        object-fit: cover;
    }

/* ==== Testimonials ==== */
.testimonials {
    padding: 60px 10%;
    text-align: center;
}

.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.testimonial {
    width: 300px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ==== Call to Action ==== */
.cta {
    background-color: white;
    color: black;
    text-align: center;
    padding: 60px 10%;
}

    .cta button {
        background-color: whitesmoke;
        color: darkorange;
        border: none;
        padding: 12px 30px;
        border-radius: 30px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .cta button:hover {
            background-color: darkorange;
            color: white;
            transform: scale(1.05);
        }

/* ==== Floating WhatsApp Button ==== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

    .whatsapp-float:hover {
        background-color: #1ebe5b;
        transform: scale(1.1);
    }

/* ==== Fade-in Animation ==== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    /* Center cards on mobile */
    .card-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .card {
        width: 90%;
        max-width: 350px;
        margin-bottom: 20px;
    }

    /* You can keep your previous mobile adjustments */
    .hero h1 {
        font-size: 2rem;
    }

    .feature, .testimonial {
        width: 90%;
    }

    label {
        width: 100vw !important;
        height: 40vh;
        font-size: 8vw;
        line-height: 40vh;
    }

    form {
        display: flex;
        white-space: nowrap;
    }

    input:nth-of-type(1):checked ~ label {
        transform: translate3d(0, 0, 0);
    }

    input:nth-of-type(2):checked ~ label {
        transform: translate3d(-100%, 0, 0);
    }

    input:nth-of-type(3):checked ~ label {
        transform: translate3d(-200%, 0, 0);
    }

    input:nth-of-type(4):checked ~ label {
        transform: translate3d(-300%, 0, 0);
    }
}

