/* ================== Variables ================== */
:root {
    --primary: #b8dde3;
    --secondary: #253238;
    --accent: #5ecbb6;
    --white: #fff;
    --light: #eaf4f5;
    --dark: #162028;
    --radius: 16px;
    --shadow: 0 2px 16px 0 rgba(40, 60, 70, 0.16);
    --transition: all 0.3s ease;
    --font-main: 'Inter', Arial, sans-serif;

    --dark-purple: #362061;
    --main-purple: #6C2791;
    --yellow-pill: #FFD84D;
}

/* ================== Global Styles ================== */
body {
    font-family: var(--font-main);
    background: var(--primary);
    color: var(--secondary);
    margin: 0;
}

.container {
    width: 94%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 8px;
}

/* ================== Header / Navbar ================== */
.header {
    background: transparent !important;
    padding: 20px 0;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo img {
    width: 100px;
    height: auto;
}

/* Nav Links */
nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #000 !important;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    font-family: cursive;
}

nav a:hover {
    color: var(--main-purple) !important;
}

nav .active::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 130%;
    height: 14px;
    background: var(--yellow-pill);
    border-radius: 100% / 100%;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    z-index: -1;
}

/* Contact Button */
.ss {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid #8932b8 !important;
    background-color: white !important;
    color: #842fb2 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ss:hover {
    transform: translateY(-2px);
    background-color: #842fb2 !important;
    color: white !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 25px;
    background: var(--secondary);
    border-radius: 3px;
}

/* ================== Hero ================== */
.hero {
    background: var(--primary);
    background-image: url("../images/Dental.png");
    background-position: center;
    background-repeat: no-repeat;
    padding: 42px 0 22px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
}

.hero-text {
    flex: 1;
}

.hero-img img {
    width: 220px;
    object-fit: cover;
}

.hero-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 8px;
}

.hero-text .highlight {
    color: var(--accent);
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
}

.btn {
    border: none;
    border-radius: var(--radius);
    padding: 13px 36px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.03rem;
    transition: var(--transition);
}

.btn.primary {
    background: var(--accent);
    color: var(--white);
}

.btn.primary:hover {
    background: var(--secondary);
}

.btn.secondary {
    background: var(--white);
    color: var(--secondary);
    border: 1px solid var(--accent);
}

.btn.secondary:hover {
    border-color: var(--secondary);
    color: var(--accent);
}

.hero-actions {
    display: flex;
    gap: 36px;
    font-size: 0.98rem;
    color: var(--secondary);
    margin-top: 12px;
}

.hero-actions i {
    color: var(--accent);
    margin-right: 7px;
}

/* ================== About ================== */
.about {
    background: var(--white);
    padding: 34px 0 16px;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 200px;
}

.about-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.about-main-img {
    width: 240px;
    height: 400px;
    object-fit: cover;
    border-radius: 40%;
    box-shadow: var(--shadow);
}

.about-second-img {
    width: 260px;
    height: auto;
    border-radius: var(--radius);
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.about-text p {
    font-size: 1.16rem;
    margin-bottom: 9px;
}

/* ================== Services ================== */
.services {
    background: var(--secondary);
    color: var(--white);
    padding: 40px 0 30px;
}

.services h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.services > p {
    font-size: 1.1rem;
    margin-bottom: 23px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 37px;
}

.service-card {
    background: var(--light);
    color: var(--secondary);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
}

.service-card img {
    width: 46px;
    margin-bottom: 6px;
}

/* ================== Comfort ================== */
.comfort {
    background: var(--white);
    padding: 60px 0;
}

.comfort-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.comfort-text {
    flex: 1;
    max-width: 520px;
}

.comfort-text h3 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
}

.comfort-text ul {
    margin-top: 12px;
    list-style: none;
    padding: 0;
}

.comfort-text ul li {
    font-size: 1.08rem;
    margin-bottom: 10px;
    position: relative;
    padding-left: 28px;
}

.comfort-text ul li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 2px;
}

/* ================== CTA ================== */
.cta {
    background: var(--secondary);
    color: var(--white);
    padding: 41px 0 22px;
    position: relative;
}

.cta-content {
    text-align: center;
}

.cta-content h3 {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.cta-content .highlight {
    color: var(--accent);
}

/* ================== Footer ================== */
.footer {
    background: #f6f6ff;
    color: black;
    padding: 70px 0 0;
    position: relative; 
    box-shadow: 0 -15px 30px rgba(108, 39, 145, 0.4);
    border-radius: 40px;
}

.footer-container{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:40px;
}

.footer-links a{
    display:block;
    color:black;
    margin:8px 0;
    text-decoration:none;
}

.footer-links h4{
    color: #94A3B8;
}

.footer-bottom{
    text-align:center;
    padding:20px 0;
    margin-top:40px;
    border-top:1px solid #333;
    color:#aaa;
}

.footer-head{
    color: #6C2791;
}

/* ================== Responsive ================== */
/* ================== Hamburger Menu ================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10000;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 28px;
    background: var(--secondary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger animation عند الضغط */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================== Navbar Responsive ================== */
@media (max-width: 980px) {
    nav {
        display: none;
        flex-direction: column;
        background: var(--white);
        position: absolute;
        top: 70px;
        right: 20px;
        width: 220px;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        z-index: 9999;
    }

    nav.show {
        display: flex;
    }

    nav a {
        margin: 12px 0;
        font-size: 16px;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .ss {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}

/* ================== Hero Section Responsive ================== */
@media (max-width: 850px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .hero-img img {
        width: 180px;
        height: auto;
    }

    .hero-text h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 650px) {
    .hero-text h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .hero-img img {
        width: 140px;
        height: 140px;
    }
}

/* ================== About Section Responsive ================== */
@media (max-width: 850px) {
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .about-img img {
        width: 180px;
        height: auto;
    }
}

/* ================== Services Responsive ================== */
@media (max-width: 850px) {
    .services-list {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 500px) {
    .services-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ================== Comfort Section Responsive ================== */
@media (max-width: 850px) {
    .comfort-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .comfort-img img {
        width: 160px;
        height: auto;
    }
}


@media (max-width: 850px) {
    .about-content {
        flex-direction: column; 
        align-items: center;   
        text-align: center;     
        gap: 25px;
    }

    .about-img {
        display: flex;
        flex-direction: column;  
        align-items: center;     
        gap: 15px;
        margin-bottom: 20px;     
    }

    .about-main-img,
    .about-second-img {
        width: 70%;   
        max-width: 300px; 
        height: auto; 
        border-radius: 20px;
    }

    .about-text h3 {
        font-size: 1.6rem;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.4;
    }
}