@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&family=Nunito:wght@400;700&display=swap');

:root {
    --bg-light: #f0fdfa; /* Calming very light teal */
    --primary: #0f766e; /* Deep calming teal */
    --secondary: #0ea5e9; /* Soft blue */
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-3d: 0 20px 40px rgba(15, 118, 110, 0.08);
    --shadow-hover: 0 30px 60px rgba(15, 118, 110, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Nunito', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; color: var(--primary); }

/* Sticky 3D Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center; padding: 15px 5%;
    background: var(--glass-bg); backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100;
}
.navbar .logo { font-size: 28px; font-weight: 800; text-decoration: none; color: var(--primary); display: flex; align-items: center; gap: 10px;}
.navbar .logo span { color: var(--secondary); }

.nav-links { display: flex; align-items: center; }
.nav-links a { color: var(--text-dark); text-decoration: none; margin-left: 25px; font-weight: 600; transition: 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 3px; background: var(--secondary); bottom: -5px; left: 0; transition: 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* OTP & Doctor Login Buttons */
.auth-btns { display: flex; gap: 15px; margin-left: 30px; }
.btn-outline { padding: 8px 20px; border: 2px solid var(--primary); color: var(--primary); border-radius: 50px; text-decoration: none; font-weight: 700; transition: 0.3s; }
.btn-outline:hover { background: var(--primary); color: var(--white); box-shadow: 0 10px 20px rgba(15,118,110,0.2); transform: translateY(-3px); }

.btn-solid { padding: 10px 25px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white); border-radius: 50px; border: none; text-decoration: none; font-weight: 700; cursor: pointer; transition: 0.4s; box-shadow: 0 10px 20px rgba(15,118,110,0.3); }
.btn-solid:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(15,118,110,0.4); }

/* Hamburger Menu */
.menu-toggle { display: none; font-size: 30px; color: var(--primary); cursor: pointer; }

/* General Layout */
.container { padding: 80px 5%; flex: 1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
p { font-size: 1.15rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 20px; }

/* 3D Glass Cards */
.card-3d {
    background: var(--white); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-3d);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); border-top: 5px solid transparent;
    transform-style: preserve-3d; position: relative; overflow: hidden;
}
.card-3d:hover { border-top: 5px solid var(--secondary); box-shadow: var(--shadow-hover); transform: translateY(-15px); }

/* Service Grids */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 50px; }
.service-card { text-align: center; }
.service-card .icon { font-size: 3rem; margin-bottom: 20px; }

/* AI Chatbot Float */
.ai-bot-float { position: fixed; bottom: 30px; right: 30px; width: 70px; height: 70px; background: linear-gradient(135deg, #8b5cf6, #3b82f6); border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4); z-index: 1000; cursor: pointer; transition: 0.3s; animation: floatBot 3s infinite ease-in-out; }
.ai-bot-float img { width: 40px; filter: brightness(0) invert(1); }
@keyframes floatBot { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }

/* Footer */
.footer { background: #0f172a; color: #fff; padding: 60px 5% 20px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer h3 { color: var(--secondary); margin-bottom: 20px; font-size: 1.5rem; }
.footer p, .footer a { color: #94a3b8; text-decoration: none; line-height: 1.8; display: block; margin-bottom: 10px; transition: 0.3s; }
.footer a:hover { color: var(--white); padding-left: 8px; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; color: #64748b; }

/* =========================================
   MOBILE RESPONSIVE CSS
========================================= */
@media screen and (max-width: 992px) { 
    .grid-2 { grid-template-columns: 1fr; text-align: center; } 
}

@media screen and (max-width: 768px) {
    .menu-toggle { display: block; }
    .auth-btns { display: none; } /* Hide buttons in mobile top bar */
    .navbar { padding: 15px 5%; flex-wrap: wrap; }
    
    /* 3D Dropdown Menu for Mobile */
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%; flex-direction: column;
        background: var(--glass-bg); backdrop-filter: blur(20px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 0; max-height: 0; overflow: hidden; opacity: 0; transition: all 0.4s ease-in-out;
        border-bottom-left-radius: 20px; border-bottom-right-radius: 20px;
    }
    
    /* Menu Open State */
    .nav-links.active { max-height: 400px; opacity: 1; padding: 20px 0; }
    
    .nav-links a { margin: 10px 0; font-size: 1.1rem; text-align: center; width: 100%; padding: 10px 0; margin-left: 0; }
    .nav-links a::after { display: none; } /* Disable underline hover on mobile */
    .nav-links a:hover, .nav-links a.active { background: rgba(15, 118, 110, 0.05); color: var(--primary); }

    /* Adjusting Headings & Padding for Mobile */
    h1 { font-size: 2.6rem !important; }
    h2 { font-size: 2.2rem !important; }
    .container { padding: 60px 5%; }
    .services-grid { grid-template-columns: 1fr; }
}