:root {
    --primary:#0d3b66;
    --secondary:#1f5f8b;
    --accent:#4ea8de;
}

body { margin:0; font-family:Arial; }

/* HEADER */
header {
    background:var(--primary);
    color:white;
    display:flex;
    justify-content:space-between;
    padding:15px;
}

.logo-container { display:flex; align-items:center; }
.logo-container img { width:130px; margin-right:10px; }

nav a { color:white; margin:10px; text-decoration:none; }

/* HERO */
/* RESET */
body, html {
    margin: 0;
    padding: 0;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* SLIDER CONTAINER */
.bg-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* EACH IMAGE */
.bg-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;

    filter: blur(2px);
    transform: scale(1.1);

    opacity: 0;
    animation: slideShow 30s infinite;
}

/* DARK OVERLAY */
.hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
}

/* TEXT CONTENT */
.overlay {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
}

.overlay h2 {
    font-size: 2.5rem;
}

.overlay p {
    font-size: 1.2rem;
    margin: 15px 0;
}

/* BUTTON */
.overlay button {
    padding: 12px 25px;
    background: #00c853;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

/* ANIMATION TIMING FOR EACH IMAGE */
.bg-slide:nth-child(1) {
    animation-delay: 0s;
}
.bg-slide:nth-child(2) {
    animation-delay: 5s;
}
.bg-slide:nth-child(3) {
    animation-delay: 10s;
}
.bg-slide:nth-child(4) {
    animation-delay: 15s;
}
.bg-slide:nth-child(5) {
    animation-delay: 20s;
}
.bg-slide:nth-child(6) {
    animation-delay: 25s;
}



/* SLIDE + FADE ANIMATION */
@keyframes slideShow {
    0%   { opacity: 0; transform: scale(1.2) translateX(50px); }
    10%  { opacity: 1; transform: scale(1.1) translateX(0); }
    30%  { opacity: 1; transform: scale(1.1) translateX(0); }
    40%  { opacity: 0; transform: scale(1.2) translateX(-50px); }
    100% { opacity: 0; }
}

/* SECTIONS */
section { padding:50px; text-align:center; }

.service-container {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
}

.card {
    width:250px;
    margin:10px;
    padding:20px;
    background:#f4f4f4;
    border-left:5px solid var(--secondary);
}

/* STATS */
.stats {
    display:flex;
    justify-content:space-around;
    background:var(--primary);
    color:white;
}

/* BLOG */
.blog-card {
    background:#eef6fb;
    padding:20px;
    margin:10px;
    width:250px;
}

/* CTA */
.cta {
    background:var(--secondary);
    color:white;
}

#contact {
    width: 90%;
    margin: 50px auto;
    text-align: center;
}

#contact h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #333;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: auto;
}

#contactForm input,
#contactForm textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
    resize: vertical;
}

#contactForm button {
    padding: 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

#contactForm button:hover {
    background-color: #0056b3;
}

#formMessage {
    margin-top: 10px;
    font-weight: bold;
}

/* WHATSAPP */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column; /* THIS makes text go above */
    align-items: center;
    gap: 8px;
    z-index: 1000;
}

/* Text bubble */
.whatsapp-text {
    background: rgb(255, 255, 255);
    color: #333;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    text-align: center;
}

/* Button */
.whatsapp {
    background: #25D366;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.whatsapp i {
    color: white;
    font-size: 28px;
}

/* Hover effect */
.whatsapp:hover {
    transform: scale(1.1);
}

.projects-gallery {
    width: 90%;
    margin: 50px auto;
    text-align: center;
}

.projects-gallery h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #333;
}

.slider {
    display: flex;
    overflow: hidden;
    gap: 20px;
    scroll-behavior: smooth;
}

.slide {
    min-width: 300px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.slide img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.slide img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.project-info {
    padding: 15px;
    text-align: left;
}

.project-info h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #222;
}

.project-info p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}
/* Services Section */
#services {
    width: 90%;
    margin: 50px auto;
    text-align: center;
}

#services h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #333;
}

.service-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    width: 250px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.card img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.card img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.card-info {
    padding: 15px;
    text-align: left;
}

.card-info h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #222;
}

.card-info p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}
/* ABOUT SECTION */
.about {
    width: 90%;
    margin: 80px auto;
}

/* FLEX CONTAINER */
.about-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* LEFT SIDE */
.about-left {
    flex: 1;
}

.about-left h2 {
    font-size: 2.4rem;
    color: #0d3b66;
    margin-bottom: 20px;
}

.about-left p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

/* RIGHT SIDE */
.about-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* BOXES */
.about-box {
    background: #ffffff;
    padding: 20px;
    border-left: 5px solid #4ea8de;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.about-box h3 {
    margin-bottom: 8px;
    color: #1f5f8b;
}

.about-box p {
    font-size: 0.95rem;
    color: #555;
}

/* HOVER EFFECT */
.about-box:hover {
    transform: translateX(5px);
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {

    /* ===== Header and Navigation ===== */
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    nav a {
        margin: 5px 0;
    }

    .logo-container {
        justify-content: center;
        width: 100%;
    }

    /* ===== Hero Section ===== */
    .overlay h2 {
        font-size: 1.8rem;
    }

    .overlay p {
        font-size: 1rem;
    }

    .overlay button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* ===== Projects Section ===== */
    .projects-gallery {
        width: 95%;
        margin: 30px auto;
    }

    .projects-gallery .slider {
        flex-direction: column;
        overflow: visible;
        gap: 20px;
    }

    .projects-gallery .slide {
        min-width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .projects-gallery .slide img {
        width: 100%;
        height: auto;
    }

    .projects-gallery .project-info h3 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .projects-gallery .project-info p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* ===== Services & About Sections ===== */
    .service-container,
    .about-container {
        flex-direction: column;
    }

    .card,
    .about-left,
    .about-right {
        width: 100%;
    }

    .about-left h2,
    #services h2,
    .projects-gallery h2 {
        font-size: 1.6rem;
    }

    .about-left p,
    .card-info p,
    .project-info p {
        font-size: 0.95rem;
    }

    /* ===== Stats Section ===== */
    .stats {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* ===== Blogs & Testimonials ===== */
    .blog-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    /* ===== Contact Form ===== */
    #contactForm input,
    #contactForm textarea {
        font-size: 0.95rem;
    }

    #contactForm button {
        font-size: 0.95rem;
    }

    /* ===== WhatsApp Button ===== */
    .whatsapp-container {
        bottom: 15px;
        right: 15px;
    }
}