/* === dev styles === */
:root {
    --primary: #0077be;
    --primary-dark: #005a8c;
    --primary-light: #e0f2ff;
    --secondary: #00d4aa;
    --secondary-dark: #00b894;
    --accent: #ff7043;
    --dark: #1e293b;
    --dark-light: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(0, 119, 190, 0.3);
    
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === Sticky Footer === */
.Site {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.Site-content {
    flex: 1;
}

/* === Typography === */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

p {
    color: var(--gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--ease-out);
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Header & Navigation === */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s var(--ease-out);
}

#header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 48px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.logo-svg {
    width: 248px;
    height: 100px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-svg {
    transform: scale(1.1);
}

.logo-icon {
    display: none;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.1); }
    20% { transform: scale(1); }
    30% { transform: scale(1.1); }
    40% { transform: scale(1); }
}

.nav-menu {
    display: flex;
    gap: 36px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-light);
    position: relative;
    padding: 8px 0;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: all 0.3s var(--bounce);
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::before {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(6px) translateX(6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-6px) translateX(6px);
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #003d5c 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.15) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url("images/sierra.jpg");
    /* radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 170, 0.1) 0%, transparent 40%);
    animation: pulse-bg 8s ease-in-out infinite alternate; */

}

@keyframes pulse-bg {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 24px;
    animation: fade-up 1s var(--ease-out) forwards;
    opacity: 0;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    font-weight: 300;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 42px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: var(--white);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-primary:not(:has(span)) {
    position: relative;
    z-index: 1;
}

.pulse {
    animation: glow-pulse 2.5s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}

/* === Sections === */
.section {
    padding: 100px 24px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    margin: 20px auto 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === Services Section === */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--light);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s var(--ease-out);
}

.service-card:hover {
    background: var(--white);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.2s);
}

.service-card:nth-child(1) .service-icon { --i: 0; }
.service-card:nth-child(2) .service-icon { --i: 1; }
.service-card:nth-child(3) .service-icon { --i: 2; }
.service-card:nth-child(4) .service-icon { --i: 3; }
.service-card:nth-child(5) .service-icon { --i: 4; }
.service-card:nth-child(6) .service-icon { --i: 5; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.service-card h3 {
    font-size: 1.3rem;
    margin: 12px 0;
    color: var(--dark);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === About Section === */
.about {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
}

.about-grid {
    display: block;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.about-content .section-title::after {
    margin: 20px 0 0;
}

.about-intro-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-main-content {
    flex: 1;
}

.about-intro-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--gray);
    margin-bottom: 20px;
}

.about-list {
    flex: 0 0 300px; /* Fixed width for the list on the right */
    list-style: none;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.about-list li:last-child {
    border-bottom: none;
}

.about-sub-section {
    margin-top: 20px;
}

.sub-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* === History & Mission Section === */
.history-mission {
    background: var(--dark);
    color: var(--white);
}

.history-mission .section-title {
    color: var(--white);
    margin-bottom: 30px;
}

.history-grid {
    margin-bottom: 60px;
}

.history-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.8;
}

.team-doctor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.team-card, .doctor-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);

}
/* .doctor-card {
    background: rgba(0, 119, 190, 0.1);
    border: 1px solid var(--primary);
    position: relative;
    overflow: hidden;
} */

/* .doctor-card::before {
    content: 'MD';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 212, 170, 0.1);
    line-height: 1;
} */

.member-image-placeholder {
    width: 140px;
    height: 140px;
    background: var(--white);
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 4px solid var(--primary);
}

.member-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-card h3 {
    color: var(--secondary) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.doctor-card p {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    line-height: 1.8;
}

.history-mission h3 {
    color: var(--secondary);
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.history-mission p {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .team-doctor-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .about-intro-wrapper {
        flex-direction: column;
    }
    .about-list {
        flex: none;
        width: 100%;
    }
}

.check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
}

.about-stats {
    display: grid;
    gap: 20px;
}

.stat-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-out);
}

.stat-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray);
    font-weight: 500;
}

/* === Contact Section === */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form {
    background: var(--light);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
    color: var(--dark);
    transition: all 0.3s var(--ease-out);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn {
    width: 100%;
    padding: 20px;
    font-size: 1.05rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.response-message {
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    min-height: 24px;
}

.response-message.success {
    color: var(--secondary-dark);
}

.response-message.error {
    color: var(--accent);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.location {
    cursor: pointer;
    text-decoration: none;

}
.info-card {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--light);
    padding: 28px;
    border-radius: var(--radius-md);
    transition: all 0.4s var(--ease-out);
    border: 1px solid transparent;

}

.info-card:hover {
    background: var(--white);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.info-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.info-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.info-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === Footer === */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 24px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-logo .logo-icon {
    animation: none;
}

.footer-address {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 30px;
}

.bottom-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-sub-logo-dot {
    height: 11rem;
    width: 13rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.footer-sub-logo {
    height: 8rem;
    width: 14rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-sub-logo:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* === Scroll Reveal Animation === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

@media (max-width: 1024px) {
    .logo-svg{
        transform: scale(1);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .logo-svg{
        text-align: center;
    }
    .nav-container{
        justify-content: center;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 20;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-out);
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        font-size: 1.5rem;
        padding: 20px;
    }
    
    .about-list {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .section {
        padding: 70px 20px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 32px 24px;
    }
    
    .testimonial-card {
        padding: 32px 24px;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
    .footer-sub-logo{
        width:10rem;
    }
    .bottom-logos{
        gap: 0;
    }
}
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 14px 32px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}
