*{
   padding: 0;
   margin: 0;
   box-sizing: border-box; 
   list-style: none;
   border: none;
   outline: none;
   scroll-behavior: smooth;
   font-family: "Poppins", sans-serif;
   text-decoration: none;
}

:root{
    --text-color: #fff;
    --bg-color: #000;
    --main-color:#ffa343; 

    --h1-font: 6rem;
    --h2-font: 3rem;
    --p-font: 1rem;
}

html {
    scroll-behavior: smooth;
}

body{
    color: var(--text-color);
    background: var(--bg-color);
}

header{
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background: transparent;
    padding: 27px 17%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .50s ease;
}

header.sticky{
    padding: 8px 17%;
    background: rgb(53, 51, 51,0.1);
    z-index: 999;
    backdrop-filter: blur(10px);
    
}

section{
    padding: 120px 17% 60px;
}

.logo{
    font-size: 18px;
    color: var(--text-color);
    font-weight: 700;
    text-decoration: none;
}

span{
    color: var(--main-color);
}

.navbar{
    display: flex;
}

.navbar a{
    color: var(--text-color);
    font-size: var(--p-font);
    font-weight: 500;
    margin: 15px 22px;
    transition: all .50s ease;
    text-decoration: none;
}

.navbar a:hover{
    color: var(--main-color);
}

.h-right{
    display: flex;
    align-items: center;
}

.h-right a:first-child{
    color: var(--text-color);
    font-size: var(--p-font);
    margin-right: 20px;
}

.h-right a{
    vertical-align: middle;
    font-size: 20px;
    color: var(--text-color);
    margin-right: 18px;
    margin-left: 5px;
    transition: all .50s ease;
}

.h-right a:hover{
   color: var(--main-color);
   transform: translateY(-3px);

}

#menu-icon{
    color: var(--text-color);
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
    display: none;
}

section{
    padding: 70px 17% 60px;
    scroll-margin-top: 80px;
}

.home{
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(to left , rgba(0,0,0,0.6), rgba(0,0,0,0.3)), url(../img/background-1.1.jpeg);
    background-size:cover;
    background-position: bottom center;
    display: flex ;
    align-items: center;
    justify-content: flex-start;
}

.home-text h5{
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--main-color);
}

.home-text h1{
    font-size: var(--h1-font);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.home-text p{
    font-size: var(--p-font);
    font-weight: 500;
    line-height: 30px;
    color: #fff;
    margin-bottom: 35px;
}
.btn{
    display: inline-block;
    padding: 13px 40px;
    background: var(--main-color);
    color: var(--bg-color);
    font-size: 15px;
    font-weight: 500;
    border: 2px solid transparent;
    border-radius: 20px;
    transition: all .50s ease;
    cursor: pointer;
}

.btn:hover{
    transform: translateX(10px);
    border: 2px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
}

.header.sticky{
    padding: 8px 17%;
    background: transparent;
    backdrop-filter: blur(115px);
}

.feature-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, auto));
    align-items: center;
    text-align: center;
    gap: 3rem;
}

.row-img{
    overflow: hidden;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    margin-bottom: 20px;
    border-radius: 50%;
    cursor: pointer;
}

.row-img img{
    width: 100%;
    display: block;
    transition: transform 0.7s;
}

.row-img img:hover{
    transform: scale(1.2);
}

.feature-content h4{
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all .50s ease;
}

.feature-content h4:hover{
    color: var(--main-color);
}

.divorce{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 9rem;
}

.divorce-img img{
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.divorce-text h5 {
    font-size: 22px;
    font-weight: 560;
    color: var(--main-color);
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 20px;
}

.divorce-text h2 {
    font-size: var(--h2-font);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.divorce-text p {
    font-size: var(--p-font);
    font-weight: 500;
    line-height: 30px;
    color: #ffffffab;
    margin-bottom: 35px;
}

.center-text{
    text-align: center;
}

.center-text h2{
    font-size: var(--h2-font);
    font-weight: 800;
}


.service-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Flexible grid columns */
    align-items: start; /* Align items at the start of each grid cell */
    gap: 3rem;
    margin-top: 5rem;
}

.box {
    position: relative;
    text-align: center;
    padding: 20px; /* Added padding for space around the content */
}

.box img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(100%);
    transition: all .3s cubic-bezier(.499, .05, .55, .95);
    will-change: filter;
    display: block;
    margin: 0 auto;
}

.box h6 {
    font-size: 18px;
    font-weight: 500;
    margin-top: 10px; /* Adjusted margin to push text below image */
}

.box h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--main-color);
    margin-top: 5px; /* Adjusted margin to push text below image */
}

.box p {
    font-size: 16px;
    font-weight: 400;
    margin-top: 10px; /* Adjusted margin to push text below image */
}

.boss {
    grid-column: 1 / -1; /* Span across all columns */
    text-align: center;
}

.boss img {
    width: 200px;
    height: 200px;
    border: 5px solid var(--main-color);
}

/* Additional styles for hover effect */
.box img:hover {
    filter: brightness(120%);
    transform: scale(1.04);
    cursor: pointer;
}

.specialities{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 9rem;
}

.specialities-img img{
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.specialities-text h5 {
    font-size: 32px;
    font-weight: 560;
    color: var(--main-color);
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 20px;
}

.specialities-text h2 {
    font-size: var(--h2-font);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.specialities-text p {
    font-size: var(--p-font);
    font-weight: 500;
    line-height: 30px;
    color: #ffffffab;
    margin-bottom: 35px;
}
.specialities-text-1 h5 {
    font-size: 32px;
    font-weight: 560;
    color: var(--main-color);
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 20px;
}

.specialities-text-1 h2 {
    font-size: var(--h2-font);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.specialities-text-1 p {
    font-size: var(--p-font);
    font-weight: 500;
    line-height: 30px;
    color: #ffffffab;
    margin-bottom: 35px;
}

.footer{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,auto));
    gap: 2rem;
    background-color: #2a2a2b;
}

.footer-box{
    display: flex;
    flex-direction: column;
}

.footer-box h3{
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-box a {
    color: #979797;
    margin-bottom: 0.8rem;
    transition: all 0.50s ease;
}

.footer-box a:hover{
    transform: translateX(-5px);
    color: var(--text-color);
}

.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 45px;
    background: #202020;
    color: var(--text-color);
    font-size: 20px;
    border-radius: 50%;
    margin-right: 8px;
    transition: transform   0.6s;
}

.social a:hover{
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateX(-4px);
}

.copyright p {
    text-align: center;
    padding: 20px;
    color: #979797;
    font-size: 15px;
}

@media (max-width: 1700px){
    header{
        padding: 18px 8%;
    }
    header.sticky{
        padding: 7px 8%;
    }
    section{
        padding: 100px 8% 40px;
    }
}

@media (max-width: 1200px){
    header{
        padding: 14px 5%;
    }
    header.sticky{
        padding: 7px 5%;
    }
    section{
        padding: 90px 5% 35px;
    }
    :root{
        --h1-font: 4.6rem;
        --h2-font: 2.8rem;
        --p-font: 15px;
    }
    .home{
        height: 90vh;

    }
}

@media(max-width:1050px){
    .feature-content{
        gap: 1.5rem;
    }
    .specialities{
        gap: 3rem;
    }
    .divorce{
        gap: 3rem;
    }

    .specialities{
        gap: 3rem;
    }

    #menu-icon{
        display: block;
    }

    .navbar{
        position: absolute;
        width: 100%;
        height: 100vh;
        padding: 40px 60px;
        top: 0;
        bottom: 0;
        left: 100%;
        right:0;
        display: flex;
        flex-direction: column;
        background-color: var(--bg-color);
        transition: all .50s ease;
    }

    .navbar a {
        display: block;
        color: #979797;
        padding: 0;
        margin: 0px 0px 40px 0px;
        font-size: 2.2rem;
        font-weight: 400;
    }

    .navbar.open{
        left: 0;
    }
}

@media (max-width: 800px){
    .divorce{
        grid-template-columns: 1fr;
    }
    .specialities{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px){
    :root{
        --h1-font: clamp(1rem, -0.9231rem + 10.2564vw, 4rem);
        --h2-font: 2.1rem;

    }
    .home{
        height: 85vh;
    }
}

@media (max-width: 400px) {
    header{
        padding: 12px 3%;
    }

    header.sticky{
        padding: 7px 3%;
    }

    section{
        padding: 80px 3% 50px;
    }

}

/* About Us Section */
.about-us {
    padding: 80px 10%;
    background: var(--bg-color);
    color: #fff;
    text-align: center;
}

.about-us .center-text h2 {
    font-size: 3rem;
    color: #ffa343;
    margin-bottom: 40px;
    position: relative;
}

.about-us .center-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ffa343;
    margin: 10px auto 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
}

.about-content p {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-content p:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-content p strong {
    color: #ffa343;
    font-weight: 600;
    display: inline-block;
    margin-right: 10px;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .about-us {
        padding: 60px 5%;
    }

    .about-us .center-text h2 {
        font-size: 2.5rem;
    }

    .about-content p {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .about-us .center-text h2 {
        font-size: 2rem;
    }

    .about-content p {
        padding: 10px;
    }
}

html, body {
    overflow-x: hidden;
  }
  body {
    position: relative
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: #2a2a2b;
}

.footer-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-content p {
    color: #979797;
    margin-bottom: 1rem;
}

.footer-content ul {
    display: flex;
    gap: 1rem;
}

.footer-content ul li {
    display: inline-block;
}

.footer-content ul li a {
    color: var(--text-color);
    font-size: 20px;
    transition: all 0.50s ease;
}

.footer-content ul li a:hover {
    color: var(--main-color);
}

.footer-bottom {
    text-align: center;
    padding: 10px;
    background-color: #202020;
}

.footer-bottom p {
    color: #979797;
    font-size: 15px;
}

.contact {
    background-color: var(--bg-color); /* Light background color */
    color: var(--text-color); /* Dark text color */
    padding: 80px 17%;
    text-align: center;
    border-top: 2px solid var(--main-color); /* Top border */
}

.contact h2 {
    font-size: 2.5rem; /* Larger font size for the heading */
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.contact p {
    font-size: 1.1rem; /* Slightly larger font size for paragraphs */
    line-height: 1.8;
    margin-bottom: 20px;
}

.contact ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    margin-bottom: 20px;
}

.contact ul li {
    font-size: 1rem; /* Smaller font size for list items */
    line-height: 1.6;
    margin-bottom: 10px;
}

.contact a {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: #4CAF50; /* Change color on hover */
    text-decoration: underline;
}

.contact .contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.contact .contact-details .detail {
    flex: 1 1 300px; /* Flexible width for responsive design */
    padding: 20px;
    background-color: #fff; /* White background for each detail block */
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Soft shadow effect */
    text-align: left;
    transition: transform 0.3s ease;
}

.contact .contact-details .detail:hover {
    transform: translateY(-5px); /* Lift on hover */
}

.contact .contact-details .detail h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact .contact-details .detail p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 10%;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact .contact-details {
        flex-direction: column;
        align-items: center;
    }

    .contact .contact-details .detail {
        width: 100%;
        max-width: 400px;
    }
}
