body {
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    background-image: url("../images/background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #cccccc;
}

/* ===========================
   HERO SECTION
=========================== */

.hero-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 50px;
    margin: 0 auto;
    padding: 20px 40px 50px;
    flex-wrap: wrap;
}

.hero-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 20%;
    flex-shrink: 0;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    color: white;
    text-align: left;
    margin-bottom: 10px;
}

.tagline {
    color: white;
    font-weight: bold;
    font-style: italic;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-align: center;
}

.company-overview {
    margin-top: -20px;
}

.company-overview p {
    line-height: 1.8;
    font-size: clamp(15px, 2vw, 18px);
}

/* ===========================
   ABOUT SECTION
=========================== */

#about {
    margin-top: -40px;
    padding: 20px;
}

/* ===========================
   CARD CONTAINER
=========================== */

.card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 20px 0;
}

/* ===========================
   GENERAL
=========================== */

.content {
    width: min(1200px, 95%);
    margin: auto;
}

a {
    text-decoration: none;
}

ul li {
    list-style: none;
    color: #cccccc;
}

ol li {
    list-style-type: circle;
    color: #cccccc;
}

p {
    font-family: Arial, Helvetica, sans-serif;
    text-align: justify;
    color: white;
    line-height: 1.8;
}

.content div h1 {
    text-align: center;
    color: #cccccc;
}

/* ===========================
   ICONS
=========================== */

.icon {
    padding-right: 50px;
    padding-left: 20px;
}

.icons {
    text-align: center;
    padding: 20px;
}

/* ===========================
   LABOUR CARD
=========================== */

.labour-card .card-front {
    background: url("../images/labour.jpg") center/cover no-repeat;
     position: relative;
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 22px;

    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.labour-card .card-front::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 12px;
    z-index: 1;
}

.labour-card .card-front h3 {
    position: relative;
    z-index: 2;

    width: 100%;
    margin: 0;
    padding: 0;

    text-align: center;
    color: white;
    font-size: 22px;
    line-height: 1.3;
}


/* ===========================
   RESPONSIVE
=========================== */

@media (max-width:992px){

.hero-container{
    justify-content:center;
    text-align:center;
    gap:30px;
}

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

.hero-text h1,
.tagline{
    text-align:center;
}

.company-overview{
    margin-top:0;
}

#about{
    margin-top:20px;
}

}

@media (max-width:768px){

.hero-container{
    padding:20px;
}

.hero-logo{
    max-width:300px;
}

.content{
    width:95%;
}

.icon{
    padding:10px;
}

}

@media (max-width:480px){

.hero-logo{
    max-width:220px;
}

.tagline{
    letter-spacing:1px;
}

.company-overview p{
    font-size:15px;
}

}
/* Second part */


 /* ==========================================
   CIVIL LITIGATION CARD
========================================== */

.civil-card .card-front {
    background: url("../images/law.jpg") center/cover no-repeat;
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 22px;

    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Dark overlay */
.civil-card .card-front::before {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    border-radius: 12px;
    z-index: 1;
}

/* Civil Litigation title */
.civil-card .card-front h3 {
    position: relative;
    z-index: 2;

    width: 100%;
    margin: 0;
    padding: 0;

    text-align: center;
    color: white;

    font-size: 22px;
    line-height: 1.3;
}

/* ==========================================
   COMMERCIAL LAW CARD
========================================== */

.commercial-card .card-front {
    background: url("../images/civil.jpg") center/cover no-repeat;
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 22px;

    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Dark overlay */
.commercial-card .card-front::before {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    border-radius: 12px;
    z-index: 1;
}

/* Commercial Law title */
.commercial-card .card-front h3 {
    position: relative;
    z-index: 2;

    width: 100%;
    margin: 0;
    padding: 0;

    text-align: center;
    color: white;

    font-size: 22px;
    line-height: 1.3;
}

/* Commercial Law back */
.commercial-card .card-back {
    background: white;
    color: #333;

    transform: rotateY(180deg);

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding: 18px;
    box-sizing: border-box;

    overflow-y: auto;

    text-align: left;
    line-height: 1.5;

    font-size: clamp(13px, 1.5vw, 16px);
}

/* ==========================================
   FAMILY LAW CARD
========================================== */


/* Family Law Card */
.family-card .card-front {
    background: url("../images/family.jpg") center/cover no-repeat;
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 22px;

    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Dark overlay */
.family-card .card-front::before {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    border-radius: 12px;
    z-index: 1;
}

/* Family Law title */
.family-card .card-front h3 {
    position: relative;
    z-index: 2;

    width: 100%;
    margin: 0;
    padding: 0;

    text-align: center;
    color: white;

    font-size: 22px;
    line-height: 1.3;
}

/* Family Law back */
.family-card .card-back {
    background: white;
    color: #333;

    transform: rotateY(180deg);

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding: 18px;
    box-sizing: border-box;

    overflow-y: auto;

    text-align: left;
    line-height: 1.5;

    font-size: clamp(13px, 1.5vw, 16px);
}

/* ==========================================
   CORPORATE LAW CARD
========================================== */

.corporate-card .card-front {
    background: url("../images/hand_shanke.jpg") center/cover no-repeat;
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 22px;

    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Dark overlay */
.corporate-card .card-front::before {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    border-radius: 12px;
    z-index: 1;
}

/* Corporate Law title */
.corporate-card .card-front h3 {
    position: relative;
    z-index: 2;

    width: 100%;
    margin: 0;
    padding: 0;

    text-align: center;
    color: white;

    font-size: 22px;
    line-height: 1.3;
}

/* Corporate Law back */
.corporate-card .card-back {
    background: white;
    color: #333;

    transform: rotateY(180deg);

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding: 18px;
    box-sizing: border-box;

    overflow-y: auto;

    text-align: left;
    line-height: 1.5;

    font-size: clamp(13px, 1.5vw, 16px);
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width:768px){

    .commercial-card .card-back,
    .family-card .card-back{
        padding:15px;
        font-size:14px;
        line-height:1.4;
    }

}

@media (max-width:480px){

    .commercial-card .card-back,
    .family-card .card-back{
        padding:12px;
        font-size:13px;
    }

}
/* 3rd part */



/* ==========================================
   ESTATE PLANNING & WILLS CARD
========================================== */

.estate-card .card-front {
    background: url("../images/will.jpg") center/cover no-repeat;
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 22px;

    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Dark overlay */
.estate-card .card-front::before {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    border-radius: 12px;
    z-index: 1;
}

/* Estate Planning & Wills title */
.estate-card .card-front h3 {
    position: relative;
    z-index: 2;

    width: 100%;
    margin: 0;
    padding: 0;

    text-align: center;
    color: white;

    font-size: 22px;
    line-height: 1.3;
}

/* Estate Planning & Wills back */
.estate-card .card-back {
    background: white;
    color: #333;

    transform: rotateY(180deg);

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding: 18px;
    box-sizing: border-box;

    overflow-y: auto;
    overflow-wrap: break-word;

    text-align: left;
    line-height: 1.5;

    font-size: clamp(13px, 1.5vw, 16px);
}

/* ==========================================
   FOOTER
========================================== */

footer {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
}

footer a i {
    color: black;
    font-size: 24px;
    transition: 0.3s;
}

footer a:hover i {
    transform: scale(1.2);
}

/* ==========================================
   NAVIGATION
========================================== */

.topnav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 100;
}

/* ==========================================
   IMAGES
========================================== */

img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 20%;
}

/* ==========================================
   PAGE LAYOUT
========================================== */

.content {
    width: min(1200px, 95%);
    margin: auto;
}

.topNavBar {
    display: grid;
    grid-template-columns: 1fr 3fr;
    background: rgba(0,0,0,.30);
}

.topBarMenu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    padding: 15px;
}

/* ==========================================
   BUTTONS & INPUTS
========================================== */

button {
    border-radius: 10px;
}

textarea {
    width: 100%;
    min-height: 120px;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width:768px){

    .topNavBar{
        grid-template-columns:1fr;
    }

    .topBarMenu{
        flex-direction:column;
        gap:15px;
    }

    .Happy{
        padding:10px;
    }

    .estate-card .card-back{
        font-size:14px;
        padding:15px;
    }

    footer{
        flex-wrap:wrap;
        gap:20px;
    }

}

/* ==========================================
   MOBILE
========================================== */

@media (max-width:480px){

    .content{
        width:95%;
    }

    .estate-card .card-back{
        padding:12px;
        font-size:13px;
    }

    .skillsItem{
        word-spacing:5px;
    }

    footer{
        padding:15px;
    }

    footer a i{
        font-size:20px;
    }

}
/* 4th part */


/* ==========================================
   HEADINGS
========================================== */

h1 {
    text-align: center;
    color: #f3f3f3;
    font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
    color: #f3f3f3;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
    color: #f3f3f3;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
}

h4 {
    color: #f3f3f3;
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.skills {
    margin-top: 50px;
}

/* ==========================================
   LOADER
========================================== */

.loader-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader p {
    text-align: right;
}

.loader {
    width: clamp(180px, 25vw, 320px);
    height: clamp(180px, 25vw, 320px);
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    animation: spin 5s linear infinite;
}

/* ==========================================
   ABOUT CARDS
========================================== */

.card {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
    transition: .3s ease;
    display: flex;
    flex-wrap: wrap;
    font-family: Arial, Helvetica, sans-serif;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,.25);
}

.card-content {
    flex: 1;
    min-width: 280px;
    padding: 25px;
}

.card-description {
    color: white;
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px 0;
}

/* ==========================================
   PRACTICE GRID
========================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    margin: auto;
}

/* ==========================================
   FLIP CARDS
========================================== */

.flipcard-container {
    perspective: 1000px;
}

.flipcard {
    width: 100%;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform .6s;
}

.flipcard-container:hover .flipcard {
    transform: rotateY(180deg);
}

.flipcard-face {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
}

.card-front {
    background: #020c29;
    color: white;
    font-weight: bold;
    font-size: clamp(18px, 2vw, 22px);
}

.card-back {
    background: white;
    color: #333;
    transform: rotateY(180deg);
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.6;
    overflow-y: auto;
    text-align: justify;
}

/* ==========================================
   CONTACT
========================================== */

.contact-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 40px 0;
}

.contact-info {
    flex: 1;
    min-width: 280px;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info p {
    margin: 12px 0;
    font-size: clamp(14px, 1.5vw, 16px);
}

.contact-info i {
    margin-right: 10px;
    color: #1e3a8a;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width:768px){

    .card{
        flex-direction:column;
    }

    .card-content{
        min-width:100%;
    }

    .flipcard{
        height:230px;
    }

    .contact-container{
        flex-direction:column;
        gap:30px;
    }

}

/* ==========================================
   MOBILE
========================================== */

@media (max-width:480px){

    .card-grid{
        grid-template-columns:1fr;
    }

    .flipcard{
        height:220px;
    }

    .card-content{
        padding:18px;
    }

    .contact-info{
        min-width:100%;
    }

}
/* 5th part  */


/* ==========================================
   CONTACT FORM
========================================== */

.contact-form {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

.form-group {
    margin-bottom: 20px;
}

input,
select,
textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
    background: #fafafa;
    font-size: 15px;
    transition: .3s;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    background: white;
    box-shadow: 0 0 0 3px rgba(30,58,138,.15);
}

::placeholder {
    color: #999;
}

textarea {
    resize: vertical;
    min-height: 140px;
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg,#1e3a8a,#162d6b);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30,58,138,.30);
}

button:active {
    transform: scale(.98);
}

/* ==========================================
   WHATSAPP BUTTON
========================================== */

.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,.30);
    transition: .3s;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    transform: scale(1.08);
}

/* ==========================================
   SPIN ANIMATION
========================================== */

@keyframes spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

/* ==========================================
   LARGE TABLETS
========================================== */

@media (max-width:1200px){

    img{
        width:100%;
        max-width:350px;
        margin:auto;
        display:block;
    }

    .gridContainer{
        display:grid;
        gap:60px;
    }

    .icons{
        padding:20px;
        margin:0;
    }

    p{
        font-size:15px;
        line-height:1.7;
    }

    h2{
        text-align:center;
        padding-left:0;
        margin-bottom:30px;
    }

}

/* ==========================================
   TABLETS
========================================== */

@media (max-width:992px){

    .contact-container{
        flex-direction:column;
        gap:30px;
    }

    .contact-info,
    .contact-form{
        width:100%;
    }

    .contact-form{
        padding:30px;
    }

}

/* ==========================================
   MOBILE
========================================== */

@media (max-width:768px){

    .contact-container{
        padding:20px 0;
    }

    .contact-form{
        padding:25px;
        min-width:100%;
    }

    input,
    select,
    textarea{
        font-size:14px;
        padding:13px;
    }

    button{
        font-size:15px;
    }

    .whatsapp-float{
        width:55px;
        height:55px;
        right:15px;
        bottom:15px;
        font-size:26px;
    }

}

/* ==========================================
   SMALL PHONES
========================================== */

@media (max-width:480px){

    img{
        max-width:250px;
    }

    .contact-form{
        padding:20px;
    }

    h1{
        font-size:2rem;
    }

    h2{
        font-size:1.5rem;
    }

    p{
        font-size:14px;
    }

    .whatsapp-float{
        width:50px;
        height:50px;
        font-size:22px;
    }

}
/* ==========================
   TEAM SECTION
========================== */

.team-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-top: 30px;
}

.team-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(0,0,0,0.55);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
}

.team-card img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
    flex-shrink: 0;
    /* border: 4px solid #0e1852; */
}

.team-info {
    flex: 1;
}

.team-info h2 {
    color: #ffffff;
    margin-bottom: 5px;
}

.team-info h4 {
    color: #24a70a;
    margin-bottom: 20px;
    font-style: italic;
}

.team-info p {
    color: white;
    line-height: 1.8;
    text-align: justify;
}

/* Hover Effect */

.team-card:hover {
    transform: translateY(-5px);
    transition: .3s;
}

/* Mobile */

@media (max-width:768px){

.team-card{
    flex-direction:column;
    text-align:center;
}

.team-card img{
    width:180px;
    height:180px;
}

.team-info p{
    text-align:left;
}

}