/* =================  General Styling  ================= */
:root {
    --black: rgba(0, 0, 0, 1);
    --white: rgba(255, 255, 255, 1);
    --primary-color: rgba(204, 136, 0, 1);
    --secondary-color: rgba(15, 87, 80, 1);
    --light-color: rgb(211, 208, 208);
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open-Sans", serif;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--light-color);
}

p {
    font-family: "Open-Sans", sans-serif;
    font-size: 1.15rem;
    color: var(--black);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair", serif;
    font-optical-sizing: auto;
    line-height: 1.2;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    margin: 1.5rem 0 .5rem;
    color: var(--secondary-color);
}

h1 {font-size: 3.5rem;}
h2 {font-size: 3rem;}
h3 {font-size: 2.5rem;}
h4 {font-size: 2rem;}
h5 {font-size: 1.5rem;}
h6 {font-size: 1.1rem;}

/* =================
   Navbar Styling
   ================= */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {max-width: 280px;}

.nav-link {color: var(--secondary-color);
    transition: color 0.3s ease !important;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
    opacity: 0.8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
    opacity: 0.8;
}

.nav-link:hover::after {width: 100%;}

/* =================  Hero Section  ================= */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {animation: fadeInDown 0.8s ease;}

.hero-section p {animation: fadeInUp 0.8s ease;}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================  About Section  ================= */
#about {scroll-margin-top: 50px;}

#about img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 5px solid var(--primary-color);
}

#about img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px var(--light-color) !important;
}

#about h2 {color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#about p {color: var(--black);
    font-size: 1.05rem;
}

/* =================  Appointment Section  ================= */
#appointment {
    scroll-margin-top: 60px;
}

#appointment h2 {color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.btn-primary {background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--light-color);
    opacity: 1;
    color: var(--black);
}

.btn-primary:active {transform: translateY(0);}

/* =================  Reviews Section  ================= */
#reviews {scroll-margin-top: 60px;}

#reviews h2 {color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

#reviews h2::after {content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 1rem auto 0;
}

.card {
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--black);
}

.card-body {padding: 2rem;}

.fa-star .text-warning {font-size: 1.2rem;
    color: var(--primary-color)!important;
}

.card-text {color: var(--black);
    font-size: 0.95rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.75;
}

.blockquote-footer {color: var(--secondary-color);
    font-weight: 600;
}

/* =================
   Contact Form Section
   ================= */
#contact {
    scroll-margin-top: 60px;
}

#contact h2 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control::placeholder {
    color: #999;
}

#contactForm {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    border: none;
    border-radius: 4px;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================
   Footer Styles
   ================= */
footer {
    background-color: var(--color-secondary);
    padding: 1rem;
    color: var(--color-white);
    margin-top: 3rem;
    border-top: 3px solid var(--primary-color);
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #007bff !important;
}

footer p {
    color: #bbb;
    font-size: 0.95rem;
}

.social-links a {
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #007bff !important;
}

hr {
    opacity: 0.3;
}

/* =================
   Responsive Design
   ================= */
@media (max-width: 768px) {
    .hero-section {
        min-height: 200px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    #about img {
        margin-bottom: 2rem;
    }

    #appointment {
        text-align: center;
    }

    #appointment .btn {
        width: 100%;
    }

    .card {
        margin-bottom: 1rem;
    }

    #contactForm {
        padding: 1.5rem;
    }

    footer {
        text-align: center;
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* =================
   Accessibility
   ================= */
:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}
