/* ----- PREMIUM LIGHT THEME CSS ----- */
:root {
    --primary: #00a88f; /* Rich Jade/Teal from business card */
    --primary-light: #e6f7f4; /* Light tint of jade/teal */
    --secondary: #0ea5e9; /* Medical Blue */
    --secondary-light: #e0f2fe;
    
    --navy: #0d1321; /* Deep Premium Navy/Charcoal from card logo */
    --slate: #334155; /* Secondary Text */
    --gray-500: #64748b; /* Lighter Text */
    --gray-200: #e2e8f0; /* Borders */
    --gray-100: #f1f5f9; /* Inputs Background */
    --gray-50: #f8fafc; /* Section Backgrounds */
    --white: #ffffff;
    
    --bg-color: #ffffff;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 40px -5px rgba(15, 23, 42, 0.08);
    --shadow-float: 0 30px 60px -10px rgba(15, 23, 42, 0.12);
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

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

body {
    font-family: var(--font-body);
    color: var(--slate);
    background-color: var(--bg-color);
    line-height: 1.7;
    position: relative;
}

h1, h2, h3, h4, h5, h6, p, a, span {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.bg-gray {
    background-color: var(--gray-50);
}

/* ----- ABSTRACT HERO BACKGROUND ----- */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh;
    background: 
        radial-gradient(circle at 15% 50%, rgba(13, 148, 136, 0.06), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.06), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

/* ----- LAYOUT & COMPONENTS ----- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.125rem;
}

/* CARDS */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

/* ICONS */
.card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
}

.teal-icon {
    background: var(--primary-light);
    color: var(--primary);
}

.blue-icon {
    background: var(--secondary-light);
    color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--navy);
    background: var(--gray-50);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* ----- NAVBAR ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    max-width: 80%; /* Reserve space for hamburger menu toggle */
}

.logo-gd-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.logo-gd-letters {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.1rem;
    line-height: 0.85;
    color: var(--navy);
    letter-spacing: -1.5px;
}

.logo-gd-dots {
    display: grid;
    grid-template-columns: repeat(3, 7px);
    grid-gap: 3px;
    justify-content: center;
    width: 27px;
}

.logo-dot {
    width: 7px;
    height: 7px;
    border-radius: 1px;
}

.logo-dot.dark {
    background-color: var(--navy);
}

.logo-dot.teal {
    background-color: var(--primary);
}

.logo-dot.bottom-dot {
    grid-column: 2;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Enable flex-shrink and text wrapping */
}

.logo-title {
    color: var(--navy);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.1;
    letter-spacing: -0.2px;
    white-space: normal; /* Safe wrap on mobile screens */
}

.logo-sub {
    color: var(--primary);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    margin-top: 1px;
    white-space: normal; /* Safe wrap on mobile screens */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--slate);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover:not(.btn) {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    color: var(--navy);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ----- HERO SECTION ----- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-500);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--navy);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ----- DOCTOR SECTION ----- */
.doctor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    padding: 3rem;
    border: 1px solid var(--gray-200);
}

.doctor-info-grid {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.doctor-title-area {
    flex: 1;
}

.doc-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.3);
}

.doctor-title-area h3 {
    margin-bottom: 0.25rem;
    font-size: 2rem;
}

.designation {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 1.5rem;
}

.doctor-desc {
    color: var(--gray-500);
    line-height: 1.8;
}

.qualifications {
    flex: 1.2;
}

.qualification-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.qualification-list li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.qualification-list li:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
    border-color: var(--primary-light);
}

.q-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.q-text {
    display: flex;
    flex-direction: column;
}

.q-text strong {
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.q-text span {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ----- DIABETES SECTION ----- */
.info-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 4rem;
    background: var(--gray-100);
    padding: 0.5rem;
    border-radius: 50px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--gray-500);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.tab-btn:hover {
    color: var(--navy);
}

.tab-btn.active {
    background: var(--white);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-float);
    border-color: transparent;
}

.info-card h4 {
    margin-bottom: 0.75rem;
}

.info-card p {
    color: var(--gray-500);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ----- CONTACT SECTION ----- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-details {
    padding: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: var(--gray-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.whatsapp-box {
    background: #e6fdf2;
    color: #25D366;
}

.details h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    color: var(--navy);
}

.details p, .details a {
    color: var(--gray-500);
    line-height: 1.6;
    text-decoration: none;
    transition: var(--transition);
}

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

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ----- FORM STYLES ----- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--navy);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

/* ----- FOOTER ----- */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 5rem 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

footer .logo-title { color: var(--white); }
footer .logo-sub { color: var(--primary); }
footer .logo-gd-letters { color: var(--white); }
footer .logo-dot.dark { background-color: var(--white); }

.footer-brand p {
    margin-top: 1.5rem;
    color: #94a3b8;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* ----- ANIMATIONS & REVEAL ----- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* ----- MEDIA QUERIES ----- */
@media (max-width: 992px) {
    h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .doctor-info-grid {
        flex-direction: column;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4.5rem 0; /* Reduce padding on mobile devices */
    }

    /* Scaled down logo for mobile to prevent wrapping issues */
    .logo {
        gap: 0.75rem;
        max-width: 80%;
    }

    .logo-gd-letters {
        font-size: 1.8rem;
    }

    .logo-gd-dots {
        grid-template-columns: repeat(3, 6px);
        grid-gap: 2px;
        width: 22px;
    }

    .logo-dot {
        width: 6px;
        height: 6px;
    }

    .logo-title {
        font-size: 0.95rem;
        line-height: 1.1;
    }

    .logo-sub {
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }

    /* Premium horizontally scrollable tabs to prevent horizontal page stretching */
    .info-tabs {
        max-width: 100%;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding: 0.3rem;
        border-radius: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide Firefox scrollbar */
    }
    
    .info-tabs::-webkit-scrollbar {
        display: none; /* Hide Chrome/Safari scrollbar */
    }
    
    .tab-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.95rem;
        flex-shrink: 0; /* Prevent buttons from shrinking */
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--gray-200);
        clip-path: circle(0% at top right);
        transition: all 0.4s ease-out;
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.active {
        clip-path: circle(150% at top right);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .doctor-card { padding: 2rem; }
    .contact-details { padding: 2rem; }
    .enquiry-form-card { padding: 2rem !important; }
    .directions-card { padding: 2rem !important; }
}

@media (max-width: 480px) {
    /* Extra-fine optimizations for narrow viewports */
    .logo {
        gap: 0.5rem;
    }

    .logo-gd-letters {
        font-size: 1.6rem;
    }

    .logo-gd-dots {
        grid-template-columns: repeat(3, 5px);
        grid-gap: 2px;
        width: 19px;
    }

    .logo-dot {
        width: 5px;
        height: 5px;
    }

    .logo-title {
        font-size: 0.85rem;
        max-width: 160px; /* Force text to wrap nicely on thin mobile screens */
    }

    .logo-sub {
        font-size: 0.58rem;
        letter-spacing: 0.1px;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-item {
        font-size: 0.9rem;
    }
    
    .doctor-card {
        padding: 1.25rem;
    }

    .doctor-title-area h3 {
        font-size: 1.6rem;
    }
    
    .qualification-list li {
        padding: 1rem;
        gap: 1rem;
    }
    
    .q-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .q-text strong {
        font-size: 0.95rem;
    }
    
    .q-text span {
        font-size: 0.8rem;
    }
    
    .contact-details {
        padding: 1.5rem;
    }
    
    .contact-item {
        gap: 1rem;
    }
}
