@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,700&display=swap');

:root {
  --navy: #0a192f;
  --navy-dark: #071626;
  --gold: #D4AF37;
  --text-white: #F8F9FA;
  --text-muted: rgba(248, 249, 250, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--text-white); color: #333; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: var(--transition); padding: 20px 0; background: transparent; }
.navbar.scrolled, .navbar.solid { background: rgba(10, 25, 47, 0.95); backdrop-filter: blur(15px); padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: #0A1628; transition: var(--transition); }
.navbar.scrolled .logo, .navbar.solid .logo { color: white; }
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; color: #1A1A2E; transition: var(--transition); }
.navbar.scrolled .nav-links a, .navbar.solid .nav-links a { color: white; }
.nav-links a:hover { color: var(--gold) !important; }
.btn-primary { background: var(--gold) !important; color: var(--navy-dark) !important; padding: 10px 22px; border-radius: 8px; font-weight: 700; }
.menu-toggle { display: none; cursor: pointer; color: #1A1A2E; font-size: 24px; transition: var(--transition); }
.navbar.scrolled .menu-toggle, .navbar.solid .menu-toggle { color: white; }

/* Selection Hero */
.selection-hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding-top: 80px; padding-bottom: 40px; background: white; text-align: center; box-sizing: border-box; }
.hero-headers { flex-shrink: 0; margin-top: auto; }
.hero-headers h1 { font-family: var(--font-heading); font-size: clamp(32px, 4vw, 42px); color: var(--navy); margin-bottom: 5px; }
.hero-headers h1 span { color: var(--gold); font-style: italic; }
.hero-headers p { font-size: 16px; color: #555; max-width: 600px; margin: 0 auto 20px; line-height: 1.4; }
.doctor-selector { display: flex; flex-direction: row; justify-content: center; gap: 40px; flex-wrap: wrap; flex-shrink: 0; margin-bottom: auto; }
.doc-card { background: white; border: 1px solid #eee; border-radius: 12px; width: 350px; flex-shrink: 0; max-width: 45%; cursor: pointer; transition: var(--transition); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.doc-card:hover, .doc-card.active { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 15px 30px rgba(212,175,55,0.15); }
.doc-img-wrapper { height: 350px; width: 100%; overflow: hidden; border-top-left-radius: 12px; border-top-right-radius: 12px; }
.doc-img-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: var(--transition); }
.doc-card:hover img { transform: scale(1.05); }
.doc-info { padding: 15px 20px; text-align: left; position: relative; }
.doc-badge { position: absolute; top: -12px; left: 20px; background: var(--navy); color: white; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 4px; letter-spacing: 1px; text-transform: uppercase; }
.doc-info h3 { font-family: var(--font-heading); font-size: 20px; color: var(--navy); margin-bottom: 2px; white-space: nowrap; letter-spacing: -0.5px; }
.view-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; font-size: 13px; margin-top: 2px; }

/* Profiles Container */
.profiles-container { background: var(--navy); color: var(--text-white); }
.detailed-profile { display: none; animation: fadeIn 0.6s ease; }
.detailed-profile.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Shared Premium Hero inside Profiles */
.premium-hero { min-height: 100vh; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); position: relative; display: flex; align-items: center; padding: 90px 0 50px; }
.premium-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 50px 50px; }
.hero-grid { display: grid; grid-template-columns: 1fr 380px 1fr; gap: 40px; position: relative; z-index: 2; align-items: center; width: 100%; }
.hero-profile-img { width: 380px; height: 480px; margin: 0 auto; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.3); border: 4px solid rgba(212,175,55,0.2); background: rgba(255,255,255,0.05); position: relative; }
.hero-profile-img img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }

.hero-name { font-family: var(--font-heading); font-size: clamp(48px, 6vw, 64px); font-weight: 500; line-height: 1.1; margin-bottom: 20px; color: white; }
.hero-name span { color: var(--gold); font-style: italic; }
.hero-title { font-size: 20px; margin-bottom: 8px; color: rgba(255,255,255,0.9); }
.hero-hospital { font-size: 16px; color: var(--gold); font-weight: 500; margin-bottom: 40px; }
.hero-quote { font-family: var(--font-heading); font-size: 26px; font-style: italic; color: var(--text-muted); line-height: 1.5; margin-bottom: 40px; padding-left: 20px; border-left: 3px solid var(--gold); }
.cred-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.pill { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); font-size: 12px; font-weight: 600; padding: 8px 16px; border-radius: 6px; color: white; }

/* Service Areas */
.service-areas { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 10px; align-items: center; margin-bottom: 40px; padding-bottom: 5px; -ms-overflow-style: none; scrollbar-width: none; }
.service-areas::-webkit-scrollbar { display: none; }
.area-label { color: var(--gold); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-right: 5px; flex-shrink: 0; }
.loc-tag { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.8); font-size: 11px; font-weight: 600; padding: 6px 14px; border-radius: 100px; display: inline-flex; align-items: center; gap: 6px; transition: all 0.3s; flex-shrink: 0; white-space: nowrap; }
.loc-tag i { color: var(--gold); font-size: 10px; }
.loc-tag:hover { background: rgba(212, 175, 55, 0.1); border-color: rgba(212, 175, 55, 0.3); color: white; transform: translateY(-2px); }

/* At A Glance Card */
.glance-card { background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 20px; padding: 40px; backdrop-filter: blur(20px); }
.glance-title { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 25px; font-weight: 700; }
.stat-item { display: flex; align-items: center; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 20px; }
.stat-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.stat-icon { width: 34px; height: 34px; background: rgba(212,175,55,0.15); color: var(--gold); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.stat-num { font-size: 20px; font-weight: 700; line-height: 1; margin-bottom: 4px; color: white; }
.stat-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.6); }

/* Multi-Colored Stat Icons for Dr. Kalyan */
#kalyan-profile .stat-item:nth-child(1) .stat-icon { background: rgba(220, 20, 60, 0.15); color: #dc143c; } 
#kalyan-profile .stat-item:nth-child(2) .stat-icon { background: rgba(201, 151, 42, 0.15); color: #c9972a; } 
#kalyan-profile .stat-item:nth-child(3) .stat-icon { background: rgba(142, 68, 173, 0.15); color: #8e44ad; } 
#kalyan-profile .stat-item:nth-child(4) .stat-icon { background: rgba(52, 152, 219, 0.15); color: #3498db; } 

/* Multi-Colored Stat Icons for Dr. Swarajyam */
#rajyam-profile .stat-item:nth-child(1) .stat-icon { background: rgba(232, 67, 147, 0.15); color: #e84393; } 
#rajyam-profile .stat-item:nth-child(2) .stat-icon { background: rgba(9, 132, 227, 0.15); color: #0984e3; } 
#rajyam-profile .stat-item:nth-child(3) .stat-icon { background: rgba(108, 92, 231, 0.15); color: #6c5ce7; } 
#rajyam-profile .stat-item:nth-child(4) .stat-icon { background: rgba(0, 184, 148, 0.15); color: #00b894; } 

/* Professional Expertise & Journey Section */
.about-premium { padding: 60px 0; background: var(--text-white); color: #333; position: relative; z-index: 2; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.section-label { color: var(--gold); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.section-title { font-family: var(--font-heading); font-size: 42px; color: var(--navy); margin-bottom: 20px; line-height: 1.2; }
.section-title em { color: var(--gold); font-style: italic; }
.section-divider { width: 60px; height: 3px; background: var(--gold); margin-bottom: 30px; }
.about-text p { font-size: 17px; line-height: 1.8; color: #555; }
.highlight-box { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); padding: 35px; border-radius: 12px; margin-top: 40px; position: relative; overflow: hidden; }
.highlight-box::before { content: '\201C'; position: absolute; top: -10px; left: 20px; font-family: var(--font-heading); font-size: 120px; color: rgba(255,255,255,0.05); line-height: 1; }
.highlight-box p { color: white; font-family: var(--font-heading); font-size: 22px; font-style: italic; line-height: 1.6; position: relative; z-index: 1; }
.highlight-box cite { display: block; color: var(--gold); font-size: 13px; font-weight: 600; font-style: normal; margin-top: 15px; letter-spacing: 1px; text-transform: uppercase; }

/* Expertise Grid Mini */
.expertise-grid-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }
.exp-card-mini { background: white; border: 1px solid #eee; border-radius: 12px; padding: 25px 20px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.02); transition: var(--transition); }
.exp-card-mini:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 10px 25px rgba(212,175,55,0.1); }
.exp-card-mini i { font-size: 28px; margin-bottom: 15px; }
.exp-card-mini h4 { font-family: var(--font-heading); font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.exp-card-mini p { font-size: 13px; color: #666; line-height: 1.5; margin: 0; }

/* Qualifications Timeline */
.qual-timeline { display: flex; flex-direction: column; gap: 0; margin-top: 10px; }
.qual-item { display: flex; gap: 20px; padding-bottom: 28px; position: relative; }
.qual-item:not(:last-child)::after { content: ''; position: absolute; left: 19px; top: 40px; width: 2px; height: calc(100% - 40px); background: linear-gradient(to bottom, var(--gold) 0%, transparent 100%); }
.qual-dot { width: 40px; height: 40px; background: white; border: 2px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--gold); flex-shrink: 0; z-index: 1; }
.qual-year { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 1px; margin-bottom: 2px; }
.qual-degree { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.qual-inst { font-size: 12px; color: #777; }

/* Onco Highlight Box */
.onco-highlight { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; background: linear-gradient(135deg, #0e2a4a 0%, #0e5560 100%); border-radius: 20px; padding: 48px; position: relative; overflow: hidden; box-shadow: 0 15px 40px rgba(14, 42, 74, 0.15); }

/* Expertise Section */
.expertise { background: var(--text-white); padding: 60px 0; }
.expertise-intro { font-size: 17px; line-height: 1.8; color: #555; max-width: 680px; margin-bottom: 56px; }
.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 30px; }
.expertise-card { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 28px 24px; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; position: relative; overflow: hidden; }
.expertise-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.expertise-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,42,74,0.06); border-color: transparent; }
.expertise-card:hover::before { transform: scaleX(1); }
.expertise-icon { font-size: 32px; margin-bottom: 14px; }
.expertise-name { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.expertise-desc { font-size: 13px; color: #666; line-height: 1.6; }

/* Publications */
.publications-section { padding: 60px 0; background: var(--navy-dark); position: relative; z-index: 2; }
.section-hdr { text-align: center; margin-bottom: 50px; }
.hdr-subtitle { color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.hdr-title { font-family: var(--font-heading); font-size: 42px; margin-bottom: 20px; color: white; }
.hdr-title em { color: var(--gold); font-style: italic; }
.big-stat { color: var(--gold); font-family: var(--font-heading); font-size: 48px; font-weight: 700; line-height: 1; }
.big-stat-desc { font-size: 14px; color: var(--text-muted); margin-top: 5px; }

.pub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 24px; }
.pub-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(212,175,55,0.1); border-left: 3px solid var(--gold); padding: 25px; border-radius: 4px; transition: var(--transition); }
.pub-card:hover { background: rgba(212,175,55,0.05); transform: translateX(5px); }
.pub-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; line-height: 1.4; color: white; }
.pub-journal { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* ==============================================
   APPOINTMENT FORM LAYOUT
   ============================================== */
.appointment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.appointment-grid .full-width { grid-column: 1 / -1; }

/* ==============================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ============================================== */

/* Fix for large tablets */
@media (max-width: 1100px) {
  .container { padding: 0 30px; }
  .hero-grid { gap: 40px; }
}

/* Fix for small tablets & orientation changes */
@media (max-width: 991px) {
  .premium-hero { padding: 120px 0 60px; height: auto; min-height: unset; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  
  .hero-text-content { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
  .hero-quote { border-left: none; border-top: 2px solid var(--gold); padding: 20px 0 0; margin: 20px auto 40px; max-width: 500px; }
  .cred-pills { justify-content: center; }
  .service-areas { justify-content: center; }
  
  .about-grid { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .section-divider { margin: 0 auto 30px; }
  .about-premium { padding: 80px 0; }
  
  .onco-highlight { grid-template-columns: 1fr !important; gap: 40px; padding: 40px 30px; text-align: center; }
  .onco-highlight div:last-child { text-align: left; } /* Keep feature list left-aligned for readability */

  /* Selection Hero adjustments for tablet — cards stack here */
  .selection-hero { min-height: auto; padding-top: 90px; }
  .hero-headers { margin-top: 0; }
  .doctor-selector { margin-bottom: 0; gap: 24px; }
  .navbar { background: rgba(10, 25, 47, 0.95); backdrop-filter: blur(15px); padding: 14px 0; }
  .logo { color: white; }
  .nav-links a { color: white !important; }
}

/* Fix for standard Mobile phones */
@media (max-width: 767px) {
  .container { padding: 0 20px; }
  
  /* Navbar adjustments */
  .navbar { padding: 12px 0; background: rgba(10, 25, 47, 0.95); backdrop-filter: blur(15px); }
  .logo { font-size: 18px; color: white; }
  .menu-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    pointer-events: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a { color: white !important; width: 100%; text-align: center; }
  .nav-links a:not(.btn-primary) { font-size: 16px; padding: 10px; }
  .btn-primary { padding: 12px 20px; font-size: 14px; border-radius: 8px; width: 100%; }

  /* Selection Hero - homepage doctor selector */
  .selection-hero { min-height: auto; height: auto; padding-top: 90px; padding-bottom: 40px; justify-content: flex-start; }
  .hero-headers h1 { font-size: 28px; margin-bottom: 8px; }
  .hero-headers p { font-size: 14px; margin-bottom: 24px; line-height: 1.5; padding: 0 10px; }
  .doctor-selector { flex-direction: column; align-items: center; gap: 24px; }
  .doc-card { width: 100%; max-width: 100%; }
  .doc-img-wrapper { height: 320px; }
  .doc-info h3 { font-size: 18px; white-space: normal; }

  /* Hero adjustments for profile pages */
  .hero-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .hero-profile-img { max-width: 280px; margin-bottom: 20px; order: -1; }
  .hero-name { font-size: 36px; text-align: center; line-height: 1.2; }
  .hero-title { font-size: 17px; line-height: 1.4; text-align: center; margin-bottom: 5px; }
  .hero-hospital { margin-bottom: 20px; text-align: center; font-size: 14px; }
  .hero-quote { font-size: 19px; padding-left: 0; border-left: none; border-top: 2px solid var(--gold); padding-top: 15px; margin: 0 auto 30px; max-width: 90%; }
  .cred-pills { justify-content: center; margin-bottom: 25px; }
  .service-areas { justify-content: center; flex-wrap: wrap; }
  .glance-card { padding: 30px 20px; width: 100%; }

  /* About Section adjustments */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-title { font-size: 30px; }
  
  /* Timeline adjustments */
  .qual-timeline { padding-left: 0; }
  .qual-item { gap: 15px; }
  .qual-dot { width: 34px; height: 34px; font-size: 12px; }
  .qual-item:not(:last-child)::after { left: 16px; top: 34px; }
  
  /* Onco Highlight Box */
  .onco-highlight { grid-template-columns: 1fr; padding: 30px 20px; gap: 30px; }
  
  /* Expertise adjustments */
  .expertise-grid { grid-template-columns: 1fr; gap: 20px; }
  .expertise-grid-mini { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr; }
  .pub-card { padding: 20px; }
  
  /* Appointment form */
  .appointment-grid { grid-template-columns: 1fr; gap: 15px; }
  #appointment { padding: 40px 0 !important; }
  
  /* Prevent horizontal scroll globally */
  body, html { overflow-x: hidden; width: 100%; position: relative; }
  .premium-hero { width: 100%; height: auto; min-height: auto; padding-top: 100px; padding-bottom: 40px; }
  
  /* Navbar Overlap Fix */
  section { scroll-margin-top: 80px; }
  .about-premium, .expertise, .publications-section, #appointment { padding-top: 70px !important; }
}

/* Fix for small Mobile phones (iPhone SE, etc.) */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .logo { font-size: 16px; }
  .nav-links { gap: 10px; }
  .nav-links a:not(.btn-primary) { display: inline-block; font-size: 12px; }
  .btn-primary { padding: 10px 16px; font-size: 13px; }
  .nav-wrap { flex-direction: row; justify-content: space-between; }
  .nav-links { top: 60px; }
  
  /* Selection Hero for small phones */
  .selection-hero { padding-top: 80px; padding-bottom: 30px; }
  .hero-headers h1 { font-size: 24px; }
  .hero-headers p { font-size: 13px; }
  .doc-img-wrapper { height: 280px; }
  .doc-info h3 { font-size: 16px; }
  .doc-badge { font-size: 9px; padding: 3px 8px; }
  
  /* Profile page hero */
  .hero-name { font-size: 32px; }
  .hero-quote { font-size: 18px; line-height: 1.4; }
  .section-title { font-size: 28px; }
  
  .glance-card { padding: 20px; }
  .stat-num { font-size: 18px; }
  
  .navbar.scrolled { padding: 10px 0; }
  
  /* Appointment card padding */
  #appointment .container > div { border-radius: 0; box-shadow: none; border: none; }
  #appointment .container > div > div { padding: 24px 16px !important; }
  #appointment .container > div > div:first-child { padding: 30px 16px !important; }
  #appointment .container > div > div:first-child h2 { font-size: 28px !important; }
  #appointment .container > div > div:first-child p { font-size: 13px !important; }
}