/* -------------------- 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;
}

nav {
    background: rgba(255, 255, 255, 0.2);
    /* Semi-transparent white */
    backdrop-filter: blur(5px);
    /* Blurs background behind nav */
    -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;
}

.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;
    }
}


/* Import Google Fonts (Playfair Display for headings, Lato for text) */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Lato:wght@400;500&display=swap');

/* Services Section Styling */

.services {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 40px 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-align: center;
}


/* Section Title */

.services h2 {
    font-family: 'Playfair Display', serif;
    /* Classic law firm look */
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    color: gold;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 15px 35px;
    border-radius: 8px;
    background: transparent;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}


/* Hover effect for title */

.services h2:hover {
    background: black;
    color: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}


/* Service List */

.services .service-list {
    font-family: 'Lato', sans-serif;
    /* Clean modern contrast */
    color: #f5f5f5;
    font-size: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}


/* Service List Items */

.services .service-list li {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}


/* Hover Effect for Items */

.services .service-list li:hover {
    background-color: black;
    color: gold;
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}