/* Base Reset and Fonts */
* {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: navy;
}

html {
    scroll-behavior: smooth;
}

body {
    height: 300vh;
    background: linear-gradient(-45deg, rgb(123, 109, 30), white); 
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Header */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header a {
    text-decoration: none;
    color: inherit;
}

.header button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.header button img {
    width: 200px;
    height: auto;
}

/* Navigation Buttons */
#home, #about, #contact, #team, #servicetab {
    margin: 5px;
    padding: 4px 8px;
    border: 2px outset black;
    border-radius: 10px;
    cursor: pointer;
    color: navy;
}

#home:hover, #about:hover, #contact:hover, #team:hover, #servicetab:hover {
    color: white;
    border-style: inset;
}

/* Titles */
h1 {
    font-family: 'Arial', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 60px;
    text-align: center;
    color: navy;
    word-spacing: 5px;
    padding: 0 20px;
}

/* Hero Section */
.back {
    min-height: 100vh;
    padding-top: 140px; /* so it doesn’t hide behind the fixed header */
    background-image: url('./Justice_scale_with_lady.jpg');
    background-size: cover;
    background-position: center 5%;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Team Section */
.teamcard {
    min-height: 100vh;
    padding-top: 140px; /* so it doesn’t hide behind the fixed header */
    background-image: url('./Light_back_justice_scale.jpg');
    background-size: cover;
    background-position: center 5%;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

/* Services Section */
.servicescard {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 100px 0 300px;
    padding: 0 20px;
    text-align: center;
}

.raf, .divorce, .litigation {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.raf h2, .divorce h2, .litigation h2 {
    padding-bottom: 15px;
}

/* Team Members */
.teamcontainer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 50px 0 100px;
    padding: 0 20px;
    text-align: center;
}

.member, .member1 {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.member h2 {
    margin-bottom: 5px;
}

.member p {
    font-size: 14px;
}

#title {
    font-weight: bold;
}

/* About Us */
.aboutUs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 50px;
    flex-wrap: wrap;
    text-align: center;
}

.aboutUs p {
    font-size: 20px;
    max-width: 600px;
}

.aboutUs img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
}

/* Contact Section */
.contact-info-display {
    position: relative;
    z-index: 10;
    text-align: center;
    margin: 20px auto;
    padding: 10px;
    font-size: 1.1rem;
    border-radius: 8px;
    width: fit-content;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-info-display p {
    margin: 5px 15px;
}

.contactUs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 50px;
    flex-wrap: wrap;
}

.outerContainer {
    width: 100%;
    max-width: 500px;
}

.outerContainer h3 {
    margin-bottom: 5px;
    font-size: 18px;
    color: #333;
}

.outerContainer input,
.outerContainer textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: border 0.3s ease-in-out;
}

.outerContainer textarea {
    height: 150px;
    resize: vertical;
}

.outerContainer input:focus,
.outerContainer textarea:focus {
    border-color: #007BFF;
    outline: none;
}

.contactUs img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    object-fit: cover;
}

#legalproblem {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
}

.contact-btn {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: #007BFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease;
}

.contact-btn:hover {
    background-color: #0056b3;
}

.contact-btn:active {
    transform: scale(0.98);
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

/* ------------------------- */
/* 📱 Responsive Media Queries */
/* ------------------------- */

/* Tablet */
@media screen and (max-width: 1024px) {
    h1 {
        font-size: 40px;
    }

    .header {
        flex-direction: column;
    }

    .aboutUs, .contactUs {
        flex-direction: column;
        text-align: center;
    }

    .aboutUs img,
    .contactUs img {
        width: 90%;
    }

    .outerContainer {
        width: 90%;
    }

    .header button img {
        width: 180px;
    }
}

/* Mobile */
@media screen and (max-width: 600px) {
    h1 {
        font-size: 32px;
    }

    .servicescard,
    .teamcontainer {
        flex-direction: column;
    }

    .raf, .divorce, .litigation, .member {
        max-width: 90%;
        min-width: unset;
    }

    .aboutUs p {
        font-size: 18px;
    }

    .header button img {
        width: 140px;
    }

    .contact-btn {
        font-size: 16px;
        padding: 10px;
    }

    .aboutUs, .contactUs {
        padding: 20px;
    }
}
