@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1E88E5;
    /* Blue (main brand) */
    --secondary-color: #FFC107;
    /* Yellow (accent) */
    --background-color: #F5F7FA;
    /* Light background */

    /* Text Colors */
    --text-color: #222831;
    /* Main text */
    --muted-text: #6C757D;
    /* Secondary text */

    /* UI Elements */
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
    --card-shadow: rgba(0, 0, 0, 0.08);

    /* Buttons */
    --btn-primary: #1E88E5;
    --btn-hover: #9abce4;

    /*  Spacing */
    --radius: 12px;

    /* font sizes */
    --font-size-small: 0.875rem;
    --font-size-base: 1rem;
    --font-size-large: 1.5rem;
    --font-size-xlarge: 2.5rem;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 70px;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 10px var(--card-shadow);
    background-color: #fff;
    z-index: 1000;
}

.logo {
    font-size: 1.2rem;
    ;
    color: var(--primary-color);
}

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

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

ul li {
    margin: 0 15px;
}

.nav-links a,
.user a {
    text-decoration: none;
    padding: 10px 20px;
    color: var(--primary-color);
    font-size: var(--font-size-base);
}

a:hover {
    background-color: var(--btn-hover);
    color: #fff;
    border-radius: var(--radius);
    transition: background-color 0.3s ease;
}

.hero {
    height: calc(100vh - 70px);
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("https://images.pexels.com/photos/6197108/pexels-photo-6197108.jpeg") no-repeat center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: var(--font-size-xlarge);
    color: #fff;
    margin-bottom: 10px;
}

.hero p {
    font-size: var(--font-size-base);
    color: #fff;
    margin-bottom: 30px;
}

.hero .btn {
    background-color: var(--btn-primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    font-size: var(--font-size-base);
    transition: background-color 0.3s ease;
}

.hero .btn:hover {
    background-color: var(--btn-hover);
}

.service,
.about {
    width: 80%;
    margin: 50px auto;

}

.section-info {
    text-align: center;
    margin-bottom: 40px;
}

.section-info h2 {
    font-size: var(--font-size-large);
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.section-info p {
    font-size: var(--font-size-base);
    color: var(--muted-text);
}

.service .category {
    margin-bottom: 40px;
}

.category h3 {
    font-size: var(--font-size-large);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 4px 8px var(--card-shadow);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--card-shadow);
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.card h4 {
    font-size: var(--font-size-base);
    color: var(--text-color);
    margin-bottom: 10px;
}

.card p {
    font-size: var(--font-size-small);
    color: var(--muted-text);
}

.btn {
    margin-top: 15px;
    background-color: var(--btn-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: var(--font-size-small);
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--btn-hover);
}

/* about section css */

.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

.imgpart {
    width: 100%;
    height: 100%;
}

.imgpart img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 500px;
    border-radius: var(--radius);
    box-shadow: 0 6px 15px var(--card-shadow);
}

.content-part {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.box {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 4px 10px var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px var(--card-shadow);
}

.box h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: var(--font-size-large);
}

.box p {
    color: var(--muted-text);
    font-size: var(--font-size-small);
    line-height: 1.6;
}

ul {
    list-style-type: square;
    list-style-position: inside;
    color: var(--muted-text);
}

/* pop up */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 420px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
    position: relative;
}

.modal-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.modal-body {
    padding: 20px;
    text-align: left;
}

.modal-body h3 {
    margin-bottom: 10px;
}

.modal-body p {
    margin: 5px 0;
    color: #555;
}

.modal-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-weight: 500;
}

.modal-body .btn {
    width: 100%;
    margin-top: 15px;
}

/* close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* APPOINTMENT  */
.appointment {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--background-color);
}

.appointment-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.appointment-card h2 {
    font-size: var(--font-size-large);
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-preview {
    text-align: center;
    margin-bottom: 20px;
}

.service-preview img {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
}

form {
    display: flex;
    flex-direction: column;
}

input,
textarea {
    margin-top: 8px;
    width: 100%;
    height: 100%;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    outline: none;
    border: 1px solid var(--border-color);
}

/* FOOTER */
.footer {
    background: var(--card-bg);
    color: var(--muted-text);
    padding: 40px 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

h3 {
    color: var(--btn-primary);
}

.footer a {
    display: block;
    color: var(--muted-text);
    text-decoration: none;
    margin-top: 5px;
}

.footer a:hover {
    color: #fff;
}

copyright {
    text-align: center;
    margin-top: 20px;
}

/* HAMBURGER */
.toggle-button {
    position: absolute;
    top: 20px;
    right: 30px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.toggle-button .bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.mobile-user {
    display: none;
}

@media (min-width: 769px) and (max-width: 1024px) {

    .logo {
        font-size: 1rem;
    }

    .navbar {
        padding: 0;
        justify-content: space-around;
    }

    .nav-links li {
        margin: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cards */
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .imgpart img {
        max-height: 500px;
    }


    .service,
    .about {
        width: 90%;
    }

    .modal-content {
        max-width: 380px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .mobile-user {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    .mobile-user button {
        width: 100px;
        margin: auto;
    }

    .toggle-button {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 70px;
        left: 0;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .user {
        display: none;
    }

    .navbar.active .nav-links {
        max-height: 500px;
        opacity: 1;
        transition: max-height 0.5s ease-in-out, opacity 0.5s ease-out;

    }

    .toggle-button.active .bar:nth-child(2) {
        opacity: 0;

    }

    .toggle-button.active .bar:nth-child(1) {

        transform: translateY(8px) rotate(45deg);
    }

    .toggle-button.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-content,
    .cards {
        grid-template-columns: 1fr;
    }

    .service,
    .about {
        width: 90%;
        margin: 30px auto;
    }

    .navbar {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
        text-align: center;
    }

    .hero p {
        font-size: 0.9rem;
        text-align: center;
        padding: 0 10px;
    }

    .hero .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-info h2 {
        font-size: 1.3rem;
    }

    .section-info p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .about-content {
        gap: 25px;
    }

    .imgpart img {
        max-height: 300px;
    }

    .content-part h3 {
        text-align: center;
    }

    .content-part p {
        text-align: justify;
    }

    .card {
        padding: 15px;
    }

    .modal-content {
        width: 95%;
        max-width: 350px;
    }

    .modal-body {
        padding: 15px;
    }

    .appointment-card {
        width: 90%;
        padding: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer a {
        margin: 8px 0;
    }
}