:root {
    --primary: #121e36;
    /* Dark Navy Blue */
    --primary-light: #1a2a4c;
    --secondary: #cc9900;
    /* Darker Gold */
    --accent: #cc5500;
    /* Dark Orange */
    --bg-white: #ffffff;
    --bg-soft: #f8fafc;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 12px 0;
    background: #ffffff;
    /* Solid white to merge logo perfectly */
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.clinic-name {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin: 0;
    color: var(--primary);
}

.doctor-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-top: 2px;
    letter-spacing: 0.1px;
    text-transform: uppercase;
    white-space: nowrap;
}

header.scrolled {
    padding: 8px 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

header.scrolled .logo img {
    height: 55px;
}

header.scrolled .clinic-name {
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    border: none;
}

.btn-primary {
    background: var(--primary) !important;
    color: white !important;
    border: 2px solid var(--primary) !important;
}

.btn-primary:hover {
    background: var(--primary-light) !important;
    color: white !important;
    opacity: 1 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
}

.btn-secondary:hover {
    background: var(--bg-soft) !important;
    opacity: 1 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-btn {
    padding: 10px 20px;
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
}

.nav-btn:hover {
    background: var(--primary-light) !important;
    opacity: 1 !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    text-align: left;
    padding-top: 80px;
    position: relative;
    background-color: #f0f0f0;
    /* Fallback */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    /* Slightly clearer overlay */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.5));
}

.text-3d {
    text-shadow: 1px 1px 0px #fff, 2px 2px 0px rgba(0, 0, 0, 0.1), 3px 3px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    /* Darker for better contrast */
    font-weight: 500;
}

.hero-subtitle {
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    display: inline-block;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

.hero .btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: flex-start;
    align-items: center;
}

/* Why Choose Us */
.why-choose-us {
    background: var(--bg-soft);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-light);
}

.card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.card .fa-star {
    color: #fbbf24 !important;
    font-size: inherit;
    margin-bottom: 0;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    text-align: left;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    background: var(--bg-soft);
}

.service-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        height: auto;
        padding: 100px 0 80px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero .btns {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }

    .logo,
    header.scrolled .logo {
        flex-direction: row;
        justify-content: flex-start;
        width: auto;
        padding-right: 0;
    }

    .logo img,
    header.scrolled .logo img {
        height: 45px;
        margin-right: 10px;
    }

    .logo-text,
    header.scrolled .logo-text {
        max-width: none;
        text-align: left;
        flex: 1;
        min-width: 0;
    }

    .doctor-name,
    header.scrolled .doctor-name {
        white-space: normal;
        font-size: 0.55rem;
        line-height: 1.2;
        margin-top: 2px;
    }

    .clinic-name,
    header.scrolled .clinic-name {
        font-size: 0.9rem;
        line-height: 1.1;
        text-align: left;
        display: block;
        width: 100%;
        letter-spacing: 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
        padding: 12px 20px;
        border-bottom: 1px solid #f9f9f9;
        margin: 0;
    }

    .nav-btn {
        width: 90% !important;
        margin: 10px auto !important;
        display: block !important;
    }

    .menu-toggle {
        display: block;
        color: var(--primary);
        font-size: 1.8rem;
        position: relative;
        margin-left: 15px;
        flex-shrink: 0;
    }

    .grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 20px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        max-width: none;
    }

    .clinic-name {
        font-size: 0.95rem;
    }

    .doctor-name {
        font-size: 0.5rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }
}

.footer-logo {
    height: 60px !important;
    width: auto !important;
    max-width: 140px !important;
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Social Icons */
.jd-icon {
    font-family: 'Arial Black', sans-serif;
    font-weight: 900;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 1;
    transition: var(--transition);
}

.jd-icon .j {
    color: #0076d7;
}

.jd-icon .d {
    color: #fe6b00;
}

.insta-icon {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.wa-icon {
    color: #25D366;
}

.footer-col a:hover .jd-icon,
.footer-col a:hover i {
    transform: scale(1.2);
    transition: var(--transition);
}