html, body {
    overflow-x: hidden;
}
body{
    margin: 0;
}
.navbar {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0; 
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.nav-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #682a2a;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 28px;
    font-weight: bold;
    font-family: 'Segoe UI', sans-serif;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: rgb(0, 0, 0);
    font-size: 19px;
    font-weight: 800;
    transition: 0.3s ease;
    position: relative;

}

/* Hover underline animation */
.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #181200;
    transition: 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    color: #f7c948;
}

.image-slab{
    margin-top: 0;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url("https://d1oc8cgqbx2xxb.cloudfront.net/static/assets/serviceImg.jpg");
    background-repeat: no-repeat;
    background-size: cover;    
    width: 100%;
    min-height: 90vh;    
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    justify-content: center;
    align-items: center;
    color: aliceblue;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.image-slab h1{
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;    
    font-size: 100px;
    transition: 0.4s ease-in-out;
}

.image-slab p{
    font-size: 50px;
    transition: 0.7s ease-out;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
}

.services-section {
    margin: 0;
    padding: 60px 40px 80px;
    text-align: center;
    background: #f5f0f5;
}

.section-tag {
    color: #2f9e44;
    font-weight: 600;
    font-size: 90px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 60px;
    font-family: 'Playfair Display', serif;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Card */
.service-card {
    background: #ffffff;
    padding: 60px 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    transition: 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    background-color: #f7c948;
}

.service-card a{
    text-decoration: none;
}

/* Floating Icon */
.icon-box {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.service-card h3 {
    margin-top: 20px;
    font-size: 22px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.service-card p {
    font-size: 19px;
    color: #686868;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin: 15px 0 25px;
}

/* Arrow Button */
.arrow {
    width: 40px;
    height: 40px;
    margin: auto;
    border-radius: 50%;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.arrow:hover {
    scale: 1.3;
    border-radius: 20%;
    background-color: aqua;
}

.footer {
    background: #111;
    color: #fff;
    padding-top: 100px;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0 40px 40px;
    gap: 40px;
}

.footer-column {
    max-width: 300px;
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: 15px;
}

.footer-column p {
    color: #bbb;
    line-height: 1.6;
    font-size: 14px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #bbb;
    font-size: 14px;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    color: #00c9a7;
}

.footer-social a {
    color: #bbb;
    margin-right: 15px;
    font-size: 20px;
    transition: 0.3s;
}

.footer-social a:hover {
    color: #00c9a7;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    background: #0a0a0a;
    font-size: 14px;
    color: #888;
}



@media (max-width: 1024px) {

    .image-slab{
        background-size: cover;
        background-repeat: no-repeat;   
    }

    .image-slab h1 {
        font-size: 70px;
    }

    .image-slab p {
        font-size: 30px;
        text-align: center;
    }

    .section-tag {
        font-size: 60px;
    }

    .section-title {
        font-size: 30px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .service-card {
        padding: 50px 20px 35px;
    }
}


@media (max-width: 768px) {

    /* NAVBAR */
    .nav-container {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
    }

    .nav-links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        width: 100%;
        padding: 0;
        font-weight: bolder;
    }

    .logo {
        text-align: center;
        font-size: 20px;
        word-wrap: break-word;
    }

    /* HERO */
    .image-slab {
        min-height: 60vh;
        padding: 30px 15px;
        text-align: center;    
        background-size: cover;
        background-repeat: no-repeat;    
    }

    .image-slab h1 {
        font-size: 38px;
    }

    .image-slab p {
        font-size: 16px;
        max-width: 90%;
        padding: 0 10px;
    }

    /* SECTION HEADINGS */
    .section-tag {
        font-size: 40px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 40px;
    }

    /* GRID → SINGLE COLUMN */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-card {
        padding: 50px 25px 35px;
    }

    .service-card p {
        font-size: 16px;
    }

    /* Footer Stack */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {

    .image-slab {
    /* Multiplied gradient layered BEFORE the URL */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                     url(https://d1oc8cgqbx2xxb.cloudfront.net/static/assets/serviceImgMob.jpg);
    min-height: 65vh;          
    background-position: top center;
    background-repeat: no-repeat;   
    background-size: cover; /* Optional: ensures image fits the 65vh area nicely */
}


    .image-slab h1 {
        font-size: 35px;
    }

    .image-slab p {
        font-size: 16px;
    }

    .section-tag {
        font-size: 28px;
    }

    .section-title {
        font-size: 18px;
    }

    .icon-box {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .service-card h3 {
        font-size: 18px;
    }
}