body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: rgb(248, 246, 246); 
    color: rgb(7, 6, 6);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 98%;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #7B68EE; /* White color for the logo */
}
.hamburger-menu {
    display: none; 
    font-size: 24px;
    cursor: pointer;
}
nav {
    display: flex;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-right: 20px;
}

nav a {
    text-decoration: none;
    color: rgb(7, 7, 7);
    font-weight: bold;
}

.phone-section {
    display: flex;
    align-items: center;
}

.phone-icon {
    font-size: 1.2em;
    margin-right: 5px;
}

.phone-number {
    font-weight: bold;
    color: #7B68EE; 
}

/* Hero Section Styles */
.hero {
    position: relative;
    height: 900px;
    background: url('./assets/img/Chennai_High_Court.jpg') center/cover no-repeat;
    object-fit: cover;
    background-position: top;
}

.hero-content {
    position: absolute;
    top: 25%;
    left: 30%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgb(2, 2, 2);
}

.hero h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

.hero-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #d7d1f9;
    color: rgb(123, 104, 238); 
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}
/* About us */
.about-us {
    background-image: linear-gradient(to right,rgba(123,104,238,0.6),rgba(123,104,238,0.1),rgba(123,104,238,0)); /* Light Gray Background */
    padding: 20px;
  
 
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.profile-image {
    border-radius: 50%;
    width: 700px;
    height: 700px;
    object-fit: cover;
    margin-right: 20px;
}

.text {
    max-width: 600px;
 
}
.about-us h2 {
  
    padding: 2%;
    background-color: rgba(123,104,238,0.4);
    display: flex;
    align-self: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.548); 
    border-radius: 10px;
}

.about-us h3 {
    color: rgb(233, 166, 78);
}
/* practice areas */


.practice-areas {
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.wave-section {
    position: relative;
    background-color:white; 
}

/* .background-image {
 
    background: url('./assets/img/kkimageservice.jpeg') center/cover no-repeat;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
   
}*/
.practice-areas h2{
   
    
    display: flex;
    justify-content: center;
    align-self: center;
    color:black;
    background-color: rgba(123,104,238,0.4);
    padding: 2%;
    font-weight: 900;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.548); 
    border-radius: 10px;
   

}

.wave-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 80px 0; 
}

.card {
    width: 450px; 
    height: 300px; 
    margin: 10px;
    perspective: 800px; 
}

.card-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s;
    cursor: pointer;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); 
}
.icon {
    font-size: 100px;
    margin-bottom: 10px;
}
.front {
    background-color:white; 
    background:url('./assets/img/kkimageservice.jpeg')
  
}

.back {
    background-color: rgba(123,104,238,0.6); 
    transform: rotateY(180deg);
}

/*  styles for the content of the cards (title and bullet points) */
.card-content {
    padding: 20px;
    text-align: center;
}
.card-content h3 {
    color: black;
    background: white;
    padding: 10px;
}
.card-content ul {
    list-style-type: none;
    color: whitesmoke;
}
.practice-section h3 {
    margin-bottom: 10px;
}

.practice-section ul {
    list-style-type: none;
    padding: 0;
}

.practice-section ul li {
    margin-bottom: 8px;
    color: #fff; 
}

/* Testimonial */

.testimonial {
    padding: 20px;
}
.testimonial h2 {
    padding: 2%;
    background-color: rgba(123,104,238,0.4);
    display: flex;
    align-self: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.548); 
    border-radius: 10px;
    margin-bottom: 7%;
}
.carousel-container {
    position: relative;
    max-width: 80%;
    margin: auto;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: calc(96% / 3);
    box-sizing: border-box;
    padding: 40px;
    margin: 0 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    
   
}

.testimonial-title {
    color: purple;
    font-size: 18px;
    font-weight: bold;
}

.testimonial-rating {
    color: gold;
}

.testimonial-explanation {
    margin-top: 10px;
    text-align: justify;
    color: rgba(8, 8, 8, 0.705);
}

.testimonial-name {
    margin-top: 10px;
    font-style: italic;
    color: purple;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Our Team */



.meet-my-team {
    background-color: #f9f9f9; 
    padding: 60px 0;
    text-align: center;
}

.meet-my-team h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333; 
}

.team-members {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding-top: 2%;
    padding-left: 10%;
    padding-right: 10%;
}
.team-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.team-member {
    flex: 1;
    max-width: 300px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 100%;
    height: 30%;
    border-radius: 50%;
}

.member-details {
    padding: 20px;
}

.member-details h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333; 
}

.member-details p {
    font-size: 16px;
    color: #666; 
}

.description-card {
    flex: 1;
    padding: 20px;
    color: #fff;
    text-align: justify;
}

.description-card-1 {
    background-color: #3498db; 
}

.description-card-2 {
    background-color: #e74c3c; 
}

.description-card-3 {
    background-color: #2ecc71; 
}






/* contact us */
.contact-us {
    text-align: center;
    padding: 20px;
}
.contact-us h2 {
    color: rgba(123,104,238,1);
}

.contact-details {
    margin-top: 20px;
}

.address {
    font-weight: bold;
}

.contact-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.contact-form button {
    background-color: rgba(123,104,238,1);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Consultation Form Styles */
.form-section {
    background-color: #f4f4f4; /* Light Gray Background */
    padding: 40px;
    text-align: center;
}

form {
    max-width: 400px;
    margin: 0 auto;
}

form label {
    display: block;
    margin-bottom: 10px;
}

form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form input[type="submit"] {
    background-color:#7B68EE; /* Purple color for the submit button */
    color: #fff;
    cursor: pointer;
}

form input[type="submit"]:hover {
    background-color:#7B68EE; /* Darker Purple color on hover */
}
/* footer */
footer {
    background-color: #333; 
    color: #fff; 
    padding: 20px 0;
}
.footer p{
    border-radius: 10px;
    margin-bottom: 5%;
    background: #fff3f3;
    padding: 25px;
    width:70%;
    margin: auto;
    font-size: 20px;
    text-align: left;
    justify-content: center;
    color: black;
    
}


.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
}

.footer-contact {
    flex: 1;
    max-width: 400px;
}

.footer-social a {
    color: #fff; 
    margin-right: 10px;
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    margin-top: 10px;
}
@media only screen and (max-width: 768px) {
    header {
        padding: 15px;
    }
    .hamburger-menu {
        display: block; 
    }
    nav {
        display: none; 
        flex-direction: column; 
        position: absolute;
        top: 60px; 
        left: 0;
        width: 100%;
        background-color: rgb(248, 246, 246);
        z-index: 999;
    }

    nav.show {
        display: flex; 
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
    }

    .nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
    }


    .hero-content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .hero-content h1 {
        display: none;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        padding: 0 10px;
    }

    .profile-image {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .wave-content {
        padding: 40px 0;
    }

    .card {
        width: 100%;
        margin: 10px 0;
    }

    .testimonial {
        padding: 40px;
        display: none;
    }

    .testimonial-card {
        margin: 0 auto;
        max-width: 400px; 
        box-sizing: border-box;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 10px;
        transform-style: preserve-3d;
        backface-visibility: hidden;
        margin-bottom: 20px;
    }
    .prev-btn,
    .next-btn {
        display: none;
    }

    .carousel-container {
        max-width: 100%;
    }

    .team-members {
        flex-direction: column;
        align-items: center;
        padding: 40px 10px;
    }

    .team-member {
        max-width: 100%;
    }

    .contact-form,
    .form-section,
    .meet-my-team,
    .testimonial,
    .practice-areas,
    .about-us,
    .hero,
    .footer-content,
    .footer-bottom {
        width: 100%;
    }

    
}
/* Responsive styles for mobile screens */

@media only screen and (max-width: 480px) {
    header {
        padding: 15px;
    }

    .hero-content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hero-content h1 {
        display: none;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        padding: 0 10px;
    }

    .profile-image {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .wave-content {
        padding: 40px 0;
    }

    .card {
        width: 100%;
        margin: 10px 0;
    }

    .testimonial {
        padding: 40px;
        display: none;
    }

    .testimonial-card {
        margin: 0 auto;
        max-width: 400px; 
        box-sizing: border-box;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 10px;
        transform-style: preserve-3d;
        backface-visibility: hidden;
        margin-bottom: 20px;
    }
    .prev-btn,
    .next-btn {
        display: none;
    }

    .carousel-container {
        max-width: 100%;
    }

    .team-members {
        flex-direction: column;
        align-items: center;
        padding: 40px 10px;
    }

    .team-member {
        max-width: 100%;
    }

    .contact-form,
    .form-section,
    .meet-my-team,
    .testimonial,
    .practice-areas,
    .about-us,
    .hero,
    .footer-content,
    .footer-bottom {
        width: 100%;
    }

    
}

