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

/* BASE STYLES */
body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #74ebd5, #acb6e5);
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* GLASS HEADER */
.glass {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    /* border-radius: 0 0 16px 16px; */
}

/* HEADER FLEX */
header.logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    padding: 15px 20px;
}

header.logo img {
    height: 70px;
    border-radius: 20px;
    border: 2px solid #89c0ea;
    object-fit: contain;
}

/* NAVIGATION */
.nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    padding: 0;
    margin: 0;
}

.nav ul li a {
    color: #2cb0e8;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.nav ul li a:hover {
    color: #82c8ed;
}

/* HAMBURGER ICON */
.hamburger {
    font-size: 28px;
    cursor: pointer;
    background: transparent;
    border: none;
    display: none;
    z-index: 1001;
}

/* HERO SECTION */
.hero {
    position: relative;
    text-align: center;
    color: white;
    overflow: hidden;
}

.background-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: black;
}

.hero-section {
    padding: 120px 20px 80px;
    background: rgba(0, 0, 0, 0.4);
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

#about p {
    font-size: 19px;
    transition: text-shadow 0.3s ease;
}

#about p:hover {
    text-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
}

.hero-section img {
    width: 250px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* EDUCATION + SPECIALIST */
.education,
.specialist {
    background-color: #ffffff;
    padding: 30px 20px;
    text-align: center;
}

.education h1,
.specialist h1 {
    font-size: 2.5rem;
    color: #0077b6;
    margin-bottom: 20px;
}

.education p,
.specialist p {
    font-size: 16px;
    color: #2cb0e8;
    border: none;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.education p:hover,
.specialist p:hover {
    color: white;
    background-color: #2cb0e8;
    transition: 0.3s ease-in-out;
}

/* MAP SECTION */
.navigate {
    background-color: #f0fbff;
    padding: 60px 20px;
    text-align: center;
    color: #004d66;
    margin: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.navigate h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #0077b6;
}

.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* Keeps 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* CONTACT SECTION */
.contact {
    background-color: #e0f7fa;
    padding: 60px 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #004d66;
    margin-top: 40px;
}

.timings {
    text-align: center;
    font-size: 20px;
    color: #2cb0e8;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 12px;
    width: 50%;
    margin: 20px auto;
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timings:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.testimonials {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #e6f7ff, #ffffff);
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
}

.testimonials h1 {
    font-size: 2.2rem;
    color: #023e8a;
    margin-bottom: 40px;
    position: relative;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.review-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stars {
    color: #ffb400;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.review-card p {
    color: #333;
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.review-card span {
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

.add-comment {
    margin-top: 30px;
    padding: 20px;
    background: #f8faff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.add-comment h2 {
    color: #0077b6;
    margin-bottom: 15px;
}

.star-rating {
    direction: rtl;
    display: inline-flex;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: gold;
}

textarea,
input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

button {
    margin-top: 12px;
    padding: 12px;
    background: #2cb0e8;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #0077b6;
}

.operations {
    padding: 40px 20px;
    background: linear-gradient(to bottom, #f8fbfd, #e8f3f9);
    font-family: 'Segoe UI', sans-serif;
}

.operations h1 {
    text-align: center;
    font-size: 2rem;
    color: #1c75bc;
    /* Professional dental blue */
    margin-bottom: 30px;
    font-weight: 600;
}

.carding {
    flex: 0 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin: 0 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carding img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.carding:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(44, 176, 232, 0.4);
}

.carding:hover img {
    transform: scale(1.05);
}

.contact h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: #0077b6;
}

.contact h3 {
    font-size: 2rem;
    margin: 20px 0 5px;
    color: #006064;
}

.contact a {
    display: block;
    color: #0077b6;
    font-size: 1.8rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: #004d99;
    text-decoration: underline;
}

/* FOOTER */
.end {
    background-color: #ffffff;
    color: #222;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.end img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
}

.end p {
    font-size: 16px;
    margin: 0;
    flex: 1;
}

@media (min-width: 768px) {
    .operations-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .glass {
        position: sticky;
        top: 0;
        z-index: 1000;
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 8px 24px rgba(31, 38, 135, 0.15);
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        /* border-radius: 0 0 16px 16px; */
    }

    .nav {
        max-height: 0;
        overflow: hidden;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(5px) saturate(180%);
        -webkit-backdrop-filter: blur(5px) saturate(160%);
        border: 1px solid rgba(255, 255, 255, 0.25);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 16px 16px;
        padding: 0;
        z-index: 999;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease, padding 0.3s ease;
    }

    .nav.show {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        padding: 20px 0;
    }

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

    .nav ul li {
        width: 100%;
        text-align: center;
    }

    .nav ul li a {
        display: block;
        width: 100%;
        padding: 12px 0;
        color: #0077b6;
        font-size: 1.2rem;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.3s, color 0.3s;
        border-radius: 8px;
    }

    .nav ul li a:hover {
        background: rgba(224, 247, 250, 0.6);
        color: #023e8a;
    }

    .hamburger {
        display: block;
        z-index: 1001;
        backdrop-filter: blur(5px);
        background: transparent;
        cursor: pointer;
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .hamburger.active {
        transform: rotate(90deg);
    }

    .hero-section {
        margin: auto;
        padding: 8px;
    }

    .hero-section h1 {
        font-size: 25px;
    }

    .testimonials h1 {
        font-size: 1.8rem;
    }

    .review-card {
        padding: 15px;
    }

    .contact {
        padding: 8px;
    }

    .operations-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        overflow-x: unset;
    }

    .carding {
        min-width: unset;
        scroll-snap-align: unset;
        animation: heartbeatGlow 1.5s infinite;
    }

    @keyframes heartbeatGlow {
        0% {
            box-shadow: 0 0 5px #2cb0e8, 0 0 10px #2cb0e8, 0 0 15px #2cb0e8;
        }

        50% {
            box-shadow: 0 0 10px #2cb0e8, 0 0 25px #2cb0e8, 0 0 30px #2cb0e8;
        }

        100% {
            box-shadow: 0 0 5px #2cb0e8, 0 0 10px #2cb0e8, 0 0 15px #2cb0e8;
        }
    }

    .operations-container::-webkit-scrollbar {
        display: none;
    }

    .map-container {
        padding-bottom: 70%;
        border-radius: 0;
    }

    .map-container h1 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 10px;
    }
}