:root {
    --sapphire: #0e4c92;
    --sapphire-light: #1a73e8;
    --gold: #d4af37;
    --gold-light: #f0d98c;
    --ivory: #f8f5f0;
    --charcoal: #2c3e50;
    --coral: #ff6b6b;
    --mint: #4db6ac;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    --border-radius: 24px;
    --border-radius-sm: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: var(--ivory);
    color: var(--charcoal);
    overflow-x: hidden;
    min-height: 100vh;
    background-image: radial-gradient(circle at 5% 10%, rgba(218, 235, 255, 0.3) 0%, transparent 30%),
    radial-gradient(circle at 95% 90%, rgba(212, 175, 55, 0.15) 0%, transparent 25%);
    background-attachment: fixed;
}

/* Header Styles */
header.EX-Header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(248, 245, 240, 0.92);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.8s ease forwards;
    border-bottom: 1px solid rgba(14, 76, 146, 0.1);
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2.4rem;
    color: var(--sapphire);
    animation: pulse 3s infinite;
}

.logo-text {
    font-size: 1.9rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--sapphire) 0%, var(--sapphire-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--coral));
    border-radius: 2px;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--sapphire);
    cursor: pointer;
    transition: var(--transition);
    background: rgba(212, 175, 55, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.menu-toggle:hover {
    background: var(--gold-light);
    transform: rotate(90deg);
}

.EX-Menu ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.EX-Menu-Link a {
    position: relative;
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 600;
    padding: 0.6rem 0;
    transition: var(--transition);
    font-size: 1.1rem;
}

.EX-Menu-Link a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--coral));
    transition: var(--transition);
    border-radius: 2px;
}

.EX-Menu-Link a:hover {
    color: var(--sapphire);
}

.EX-Menu-Link a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(218, 235, 255, 0.4) 0%, rgba(248, 245, 240, 0.3) 100%);
}

.hero-content {
    max-width: 800px;
    color: var(--charcoal);
    animation: fadeInUp 1s ease-out 0.2s both;
    z-index: 2;
    position: relative;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.8rem;
    line-height: 1.25;
    background: linear-gradient(135deg, var(--sapphire) 0%, var(--sapphire-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(14, 76, 146, 0.15);
}

.hero p {
    font-size: 1.45rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    color: var(--charcoal);
    line-height: 1.85;
    font-weight: 500;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--sapphire) 0%, var(--sapphire-light) 100%);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    transition: var(--transition);
    box-shadow: 0 12px 30px rgba(14, 76, 146, 0.35);
    animation: pulse 3s infinite;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sapphire-light) 0%, var(--sapphire) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(14, 76, 146, 0.45);
}

.cta-button:hover::before {
    opacity: 1;
}

.hero-image {
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 45%;
    height: 85%;
    background: url('https://images.unsplash.com/photo-1621676803697-1f1d0b7b2b1d?auto=format&fit=crop&w=800') center/cover no-repeat;
    animation: floating 8s ease-in-out infinite;
    z-index: 1;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 8px solid white;
}

@keyframes floating {
    0% { transform: translateY(0px) rotate(1deg); }
    50% { transform: translateY(-20px) rotate(-1deg); }
    100% { transform: translateY(0px) rotate(1deg); }
}

/* Main Content */
.EX-Main {
    padding: 7rem 5% 3rem;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--sapphire) 0%, var(--sapphire-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    display: inline-block;
    font-weight: 800;
    position: relative;
    padding: 0 1.5rem;
}

.section-title h2::before, .section-title h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--coral));
    border-radius: 2px;
}

.section-title h2::before {
    right: 100%;
}

.section-title h2::after {
    left: 100%;
}

.section-title p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--charcoal);
    line-height: 1.9;
    font-weight: 500;
}

.EX-Container {
    margin-bottom: 7rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.EX-Container.visible {
    opacity: 1;
    transform: translateY(0);
}

.EX-Box {
    background: white;
    border-radius: var(--border-radius);
    padding: 4rem 3rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.EX-Box::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 120px;
    height: 120px;
    background: var(--gold-light);
    border-radius: 50%;
    opacity: 0.15;
    z-index: 0;
}

.EX-Box::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 80px;
    height: 80px;
    background: var(--sapphire-light);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.EX-Box:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Services Section */
.EX-Services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    list-style: none;
}

.EX-Service {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(14, 76, 146, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.EX-Service:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(212, 175, 55, 0.3);
}

.EX-Service:hover .EX-Image-Box {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--sapphire) 0%, var(--sapphire-light) 100%);
}

.EX-Image-Box {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.8rem;
    background: linear-gradient(135deg, var(--sapphire-light) 0%, var(--sapphire) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: white;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(14, 76, 146, 0.2);
}

.EX-Service-Title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    display: block;
    transition: var(--transition);
    color: var(--sapphire);
}

.EX-Service p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--charcoal);
    font-weight: 500;
}

/* Dentists Section */
.EX-Dentists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    list-style: none;
}

.EX-Dentist {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(14, 76, 146, 0.1);
    position: relative;
}

.EX-Dentist:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.EX-Dentist::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--gold), var(--coral));
    z-index: 1;
}

.EX-Dentist .EX-Image-Box {
    width: 100%;
    height: 320px;
    border-radius: 0;
    margin-bottom: 0;
    background: linear-gradient(135deg, #e0f2f1 0%, #f0f9ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--sapphire);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.EX-Dentist .EX-Image-Box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(14, 76, 146, 0.4), transparent);
    z-index: 1;
}

.dentist-content {
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 2;
}

.EX-Dentist-Title {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--sapphire);
    position: relative;
    display: inline-block;
}

.EX-Dentist-Title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin: 0 auto;
}

.EX-Dentist p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--charcoal);
    margin-top: 1.2rem;
}

/* Appointment Form */
.reserve-form {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    padding: 4rem 3.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.reserve-form::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: var(--gold-light);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--sapphire);
    font-size: 1.1rem;
    padding-right: 0.5rem;
}

input, select {
    width: 100%;
    padding: 1.1rem 1.5rem;
    border: 2px solid #e0f2f1;
    border-radius: 14px;
    font-size: 1.05rem;
    transition: var(--transition);
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

input:focus, select:focus {
    border-color: var(--sapphire-light);
    outline: none;
    box-shadow: 0 0 0 4px rgba(14, 76, 146, 0.15);
}

button[type="submit"] {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--sapphire) 0%, var(--sapphire-light) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1.2rem;
    box-shadow: 0 10px 25px rgba(14, 76, 146, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sapphire-light) 0%, var(--sapphire) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

button[type="submit"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(14, 76, 146, 0.4);
}

button[type="submit"]:hover::before {
    opacity: 1;
}

/* Footer */
footer.EX-Footer {
    background: linear-gradient(135deg, var(--sapphire) 0%, #0a3a6e 100%);
    color: white;
    padding: 5rem 5% 2.5rem;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.EX-Address {
    font-size: 1.15rem;
    line-height: 1.9;
}

.EX-Address h3 {
    font-size: 1.7rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: white;
    font-weight: 800;
}

.EX-Address h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.EX-Address p {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.EX-Address i {
    color: var(--gold-light);
    font-size: 1.3rem;
    min-width: 25px;
    padding-top: 4px;
}

.EX-Links h3 {
    font-size: 1.7rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: white;
    font-weight: 800;
}

.EX-Links h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.EX-Links ul {
    list-style: none;
}

.EX-Links li {
    margin-bottom: 1.5rem;
}

.EX-Links a {
    color: white;
    text-decoration: none;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    font-weight: 500;
}

.EX-Links a i {
    background: rgba(255, 255, 255, 0.15);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.EX-Links a:hover {
    color: var(--gold-light);
    transform: translateX(8px);
}

.EX-Links a:hover i {
    background: var(--gold);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Floating shapes */
.shape {
    position: absolute;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
    animation-duration: 20s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 120px;
    height: 120px;
    border: 6px solid var(--gold);
    border-radius: 50%;
    animation: rotate 25s linear infinite;
}

.shape-2 {
    bottom: 20%;
    right: 5%;
    width: 100px;
    height: 100px;
    background: var(--coral);
    border-radius: 50%;
    animation: floating 9s ease-in-out infinite;
    opacity: 0.2;
}

.shape-3 {
    top: 30%;
    right: 15%;
    width: 80px;
    height: 80px;
    border: 5px solid var(--sapphire-light);
    transform: rotate(45deg);
    animation: bounce 5s ease infinite;
}

.shape-4 {
    bottom: 40%;
    left: 10%;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: var(--gold-light);
    animation: rotate 30s linear infinite reverse;
    opacity: 0.15;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

/* Tooth animation in hero */
.tooth-animation {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 80px;
    height: 100px;
    animation: toothFloat 6s ease-in-out infinite;
    opacity: 0.4;
    z-index: 0;
}

.tooth-animation svg {
    width: 100%;
    height: 100%;
    fill: var(--sapphire-light);
}

@keyframes toothFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(30px) rotate(-5deg); }
}

/* Responsive design */
@media (max-width: 1200px) {
    .hero h1 { font-size: 3.2rem; }
    .hero p { font-size: 1.3rem; }
    .section-title h2 { font-size: 2.5rem; }
}

@media (max-width: 992px) {
    .hero-image { display: none; }
    .hero-content { text-align: center; margin: 0 auto; }
    .hero p { margin: 0 auto 2.5rem; }
    .tooth-animation { display: none; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .EX-Menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        transition: var(--transition);
        z-index: 999;
        padding-top: 100px;
    }
    .EX-Menu.active { right: 0; }
    .EX-Menu ul {
        flex-direction: column;
        padding: 2rem;
        gap: 1.8rem;
    }
    .hero h1 { font-size: 2.6rem; }
    .section-title h2 { font-size: 2.2rem; }
    .reserve-form { padding: 3rem 2rem; }
    .EX-Box { padding: 3rem 2rem; }
}

@media (max-width: 576px) {
    header.EX-Header { padding: 1rem; }
    .hero { height: auto; padding: 100px 0 3rem; }
    .hero h1 { font-size: 2.3rem; }
    .EX-Services { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .section-title h2::before,
    .section-title h2::after { width: 30px; }
}