/* =========================================
   DR SAHNI MED - LUXURY MEDICAL TECHNOLOGY
   ========================================= */

:root {
  --color-white: #ffffff;
  --color-off-white: #f8fafc;
  --color-navy: #0f172a;
  --color-navy-light: #1e293b;
  --color-teal: #0d9488;
  --color-teal-light: #14b8a6;
  --color-teal-glow: rgba(20, 184, 166, 0.4);
  --color-silver: #e2e8f0;
  --color-silver-dark: #94a3b8;
  
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Outfit', sans-serif;
  
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-primary); background-color: var(--color-off-white); color: var(--color-navy); line-height: 1.6; }

h1, h2, h3, h4 { font-family: var(--font-secondary); font-weight: 600; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.text-gradient { background: linear-gradient(135deg, var(--color-teal), var(--color-navy)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section { padding: 6rem 0; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; text-align: center; }
.section-subtitle { font-size: 1.1rem; color: var(--color-silver-dark); text-align: center; max-width: 600px; margin: 0 auto 3rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1.8rem; border-radius: 50px; font-weight: 500; cursor: pointer; transition: var(--transition-smooth); border: none; outline: none; gap: 0.5rem; font-size: 0.95rem; }
.btn-primary { background: var(--color-navy); color: var(--color-white); }
.btn-primary:hover { background: var(--color-teal); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(13, 148, 136, 0.3); }
.btn-secondary { background: var(--color-white); color: var(--color-navy); border: 1px solid var(--color-silver); }
.btn-secondary:hover { border-color: var(--color-teal); color: var(--color-teal); }

/* Navigation */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 1.2rem 0; transition: var(--transition-smooth); }
.navbar.scrolled { background: var(--glass-bg); backdrop-filter: blur(20px); border-bottom: var(--glass-border); padding: 1rem 0; box-shadow: var(--shadow-soft); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand { font-family: var(--font-secondary); font-size: 1.4rem; font-weight: 700; color: var(--color-navy); display: flex; align-items: center; gap: 0.5rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--color-teal); }
.nav-actions { display: flex; gap: 1rem; }

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; position: relative; overflow: hidden; background: linear-gradient(135deg, #f0f4f8 0%, #e0e7ff 100%); }
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero h1 { font-size: 4rem; margin-bottom: 1.5rem; }
.hero p { font-size: 1.2rem; color: var(--color-navy-light); margin-bottom: 2rem; }
.hero-visual { position: absolute; right: 0; top: 15%; width: 55%; z-index: 1; }
.hero-visual img { width: 100%; filter: drop-shadow(-20px 20px 30px rgba(0,0,0,0.1)); }

/* Dual Roles Section */
.dual-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: -80px; position: relative; z-index: 10; padding-bottom: 4rem;}
.role-card { background: white; padding: 3rem; border-radius: 24px; box-shadow: var(--shadow-premium); transition: var(--transition-smooth); border: 1px solid transparent; }
.role-card:hover { transform: translateY(-10px); border-color: var(--color-teal-glow); }
.role-icon { width: 60px; height: 60px; background: #f1f5f9; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: var(--color-teal); }
.role-card h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.role-card p { color: var(--color-silver-dark); margin-bottom: 2rem; }

/* About Doctor */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.about-img-wrap { position: relative; border-radius: 24px; overflow: hidden; }
.about-img-wrap img { width: 100%; display: block; }
.badge-floating { position: absolute; bottom: 2rem; right: -2rem; background: white; padding: 1.5rem; border-radius: 16px; box-shadow: var(--shadow-premium); display: flex; align-items: center; gap: 1rem; }

/* Block Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.product-block { background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-soft); transition: var(--transition-smooth); display: flex; flex-direction: column; cursor: pointer; border: 1px solid #f1f5f9; }
.product-block:hover { transform: translateY(-8px); box-shadow: var(--shadow-premium); border-color: var(--color-teal); }
.product-img-container { height: 250px; background: linear-gradient(135deg, #f8fafc, #e2e8f0); padding: 2rem; display: flex; justify-content: center; align-items: center; position: relative; }
.product-img-container img { max-width: 100%; max-height: 100%; mix-blend-mode: multiply; transition: var(--transition-smooth); }
.product-block:hover .product-img-container img { transform: scale(1.05); }
.product-badge { position: absolute; top: 1rem; left: 1rem; background: var(--color-navy); color: white; padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; }
.product-details { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.product-category { font-size: 0.8rem; color: var(--color-teal); font-weight: 600; text-transform: uppercase; margin-bottom: 0.5rem; }
.product-title { font-size: 1.25rem; color: var(--color-navy); margin-bottom: 0.5rem; }
.product-rating { display: flex; gap: 0.2rem; color: #fbbf24; font-size: 0.9rem; margin-bottom: 1rem; }
.product-price { font-family: var(--font-secondary); font-size: 1.5rem; font-weight: 700; color: var(--color-navy); margin-top: auto; margin-bottom: 1.5rem; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

/* Location Section */
.location-section { background: var(--color-navy); color: white; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.map-container { border-radius: 24px; overflow: hidden; height: 400px; }
.map-container iframe { width: 100%; height: 100%; border: none; }
.contact-info-card { background: rgba(255,255,255,0.05); padding: 2.5rem; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { color: var(--color-teal); font-size: 1.5rem; }

/* Modals */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); z-index: 2000; justify-content: center; align-items: center; backdrop-filter: blur(4px); }
.modal-content { background: white; width: 90%; max-width: 500px; border-radius: 16px; padding: 2rem; box-shadow: var(--shadow-premium); position: relative; max-height: 90vh; overflow-y: auto;}
.close-btn { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-silver-dark); z-index: 10; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; }
.form-control { width: 100%; padding: 0.8rem; border: 1px solid #cbd5e1; border-radius: 8px; font-family: var(--font-primary); }

/* Product Detail Page Specific */
.product-detail-section { padding-top: 120px; padding-bottom: 6rem; }
.pdp-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; }
.pdp-gallery { display: flex; flex-direction: column; gap: 1rem; }
.pdp-main-img { background: #f8fafc; border-radius: 24px; padding: 3rem; display: flex; justify-content: center; height: 500px; border: 1px solid #e2e8f0;}
.pdp-main-img img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pdp-thumb { background: #f8fafc; border-radius: 12px; height: 100px; padding: 1rem; cursor: pointer; border: 2px solid transparent; transition: 0.2s; }
.pdp-thumb.active, .pdp-thumb:hover { border-color: var(--color-teal); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.pdp-info h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.pdp-price { font-size: 2.5rem; font-family: var(--font-secondary); font-weight: 700; color: var(--color-navy); margin: 1.5rem 0; }
.pdp-desc { color: var(--color-silver-dark); font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.8; }
.pdp-features { list-style: none; margin-bottom: 2rem; }
.pdp-features li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; color: var(--color-navy); font-weight: 500; }
.pdp-features li::before { content: '✓'; display: inline-flex; justify-content: center; align-items: center; width: 24px; height: 24px; background: var(--color-teal-glow); color: var(--color-teal); border-radius: 50%; font-size: 0.8rem; }
.pdp-buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.pdp-buy-actions .btn { padding: 1.2rem; font-size: 1.1rem; }

/* Footer */
.footer { background: var(--color-navy-light); color: white; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { font-family: var(--font-secondary); font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.footer-desc { color: var(--color-silver-dark); font-size: 0.95rem; margin-bottom: 1.5rem; max-width: 300px; }
.footer-socials { display: flex; gap: 1rem; }
.social-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: var(--transition-smooth); }
.social-icon:hover { background: var(--color-teal); transform: translateY(-3px); }
.footer-heading { font-size: 1.1rem; font-family: var(--font-secondary); margin-bottom: 1.5rem; color: white; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--color-silver-dark); font-size: 0.95rem; transition: var(--transition-smooth); }
.footer-links a:hover { color: var(--color-teal-light); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); color: var(--color-silver-dark); font-size: 0.9rem; }

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 10px 20px 10px 10px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-smooth);
}
.floating-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}
.whatsapp-icon-bg {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.whatsapp-text {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Auth Modal Styles */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.otp-section {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}
