/* -------------------- GLOBAL RESET -------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Raleway, sans-serif;
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: visible;
    /* Allow scrolling on the body */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: url('bg/12.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: blur(3px);
    /* ✅ Blur the background image */
    transform: scale(1.05);
    /* ✅ Prevent clipping at edges due to blur */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Raleway", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f9fc;
}


/* -------------------- NAVBAR -------------------- */

nav {
    background: rgba(255, 255, 255, 0.2);
    /* Semi-transparent white */
    backdrop-filter: blur(5px);
    /* Blurs background */
    -webkit-backdrop-filter: blur(5px);
    /* Safari support */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 80px;
    width: auto;
    margin-right: 20px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    display: inline-block;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none;
    color: white;
    border-radius: 8px;
    /* Smooth shape even before hover */
}


/* Hover and Active styles */

.navbar ul li a:hover,
.navbar ul li a.active {
    background: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    border-color: #7a766cde;
    transform: scale(1.1);
    /* Slight expansion */
    border-radius: 15px;
    /* ✅ Rounded square shape on hover */
}


/* Active link */

.navbar ul li a.active {
    background: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    border-radius: 15px;
    /* ✅ Rounded shape stays on active */
}


/* Optional underline effect on hover */

.navbar ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 80%;
    height: 2px;
    background-color: #7a766cde;
    transform: scaleX(1);
    transform-origin: bottom center;
    transition: transform 0.3s ease;
    border-radius: 2px;
}


/* -------------------- Animation -------------------- */

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
        /* Start slightly below */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        /* End in place */
    }
}

.navbar ul li {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}


/* Staggered animation (each list item appears with delay) */

.navbar ul li:nth-child(1) {
    animation-delay: 0.1s;
}

.navbar ul li:nth-child(2) {
    animation-delay: 0.2s;
}

.navbar ul li:nth-child(3) {
    animation-delay: 0.3s;
}

.navbar ul li:nth-child(4) {
    animation-delay: 0.4s;
}

.navbar ul li:nth-child(5) {
    animation-delay: 0.5s;
}

.navbar ul li:nth-child(6) {
    animation-delay: 0.6s;
}

.navbar ul li:nth-child(7) {
    animation-delay: 0.7s;
}

.navbar ul li:nth-child(8) {
    animation-delay: 0.8s;
}

.navbar ul li:nth-child(9) {
    animation-delay: 0.9s;
}

.navbar ul li:nth-child(10) {
    animation-delay: 1s;
}


/* Active link */

.navbar ul li a.active {
    background: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
}

.navbar ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    /* Thin line for underline */
    background-color: rgb(0, 0, 0);
    transform: scaleX(0);
    /* Initially hidden */
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}


/* -------------------- Responsive -------------------- */

@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        /* Vertical stack */
        gap: 10px;
        align-items: center;
        /* Center items */
    }
    .navbar ul li a {
        font-size: 16px;
        padding: 12px 20px;
        display: block;
    }
}

@media (max-width: 480px) {
    .navbar ul li a {
        font-size: 14px;
        padding: 10px 18px;
    }
}


/* -------------------- AREA COVERAGE SECTION -------------------- */

.area-coverage {
    text-align: center;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    position: relative;
}

.area-coverage h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    position: relative;
    background-color: rgba(0, 0, 0, 0.6);
    /* semi-transparent black background */
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: inline-block;
    /* shrink box to text width */
}

.area-coverage h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #ffcc00;
    margin: 12px auto 0;
    border-radius: 2px;
}


/* Slideshow container */

.slideshow {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}


/* Each slide */

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    display: flex;
    flex-direction: column;
    /* stack image and text */
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 20px 40px;
    box-sizing: border-box;
}

.slide.active {
    opacity: 1;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.region-map {
    width: 550px;
    height: 620px;
    border-radius: 20px;
    /* <- soft rounded corners */
    object-fit: cover;
    cursor: default;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.slide h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    /* White font */
    font-size: 3.5rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    width: auto;
    /* Black outline effect using text-shadow */
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}


/* Arrows */

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 12px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    user-select: none;
    z-index: 2;
    transition: background 0.3s ease;
}

.prev:hover,
.next:hover {
    background: gold;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}


/* Dots */

.dots {
    position: absolute;
    bottom: 1px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.dot {
    cursor: pointer;
    height: 14px;
    width: 14px;
    margin: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-block;
    transition: background 0.3s ease;
}

.dot.active,
.dot:hover {
    background: rgb(0, 0, 0);
}


/* Responsive Slideshow */

@media (max-width: 768px) {
    .slide {
        flex-direction: column;
        padding: 15px;
    }
    .region-map {
        width: 90%;
        max-height: 300px;
        margin-bottom: 15px;
    }
    .slide h3 {
        position: static;
        transform: none;
        width: 100%;
        text-align: center;
        white-space: normal;
        font-size: 2.2rem;
        padding: 10px 15px;
        justify-content: center;
        margin-top: 10px;
        pointer-events: auto;
        background: rgba(0, 0, 0, 0.6);
    }
}