/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
  --primary-blue: #0f172a;
  --medical-cyan: #06b6d4;
  --cta-red: #f43f5e;
  --accent-gold: #F4A261;
  --accent-orange: #E76F51;
  --surface-light: #f8fafc;
  --section-soft: #f1f5f9;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #FFFFFF;
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 20px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 25px 35px -5px rgba(15, 23, 42, 0.1), 0 10px 15px -5px rgba(15, 23, 42, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--surface-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-bg {
  background: var(--section-soft);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--medical-cyan);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 4rem;
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #083c7a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-cta {
  background-color: var(--cta-red);
  color: var(--white);
}

.btn-cta:hover {
  background-color: #c92a36;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary-blue);
}

.btn-white:hover {
  background-color: var(--surface-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }

  20% {
    transform: scale(25, 25);
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--glass-border);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  color: var(--medical-cyan);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--medical-cyan);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-blue);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-blue);
}

.hero {
  padding: 8rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('../images/dr_nithesh_Graduation.jpeg');
  background-size: cover;
  background-position: center;
}

.ecg-bg {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 300px;
  transform: translateY(-50%);
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,50 L200,50 L230,20 L260,80 L290,50 L500,50 L530,30 L560,70 L590,50 L1000,50" stroke="%2300A8CC" stroke-width="2" fill="none"/></svg>');
  background-size: 1000px 100%;
  animation: ecgSlide 10s linear infinite;
}

@keyframes ecgSlide {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: relative;
}

.hero-carousel {
  position: relative;
  width: 100%;
  max-height: 70vh;
  border-radius: 20px;
  overflow: hidden;
  z-index: 2;
  aspect-ratio: 1 / 1;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 20px;
  filter: drop-shadow(0 25px 35px rgba(15, 23, 42, 0.1));
}

.carousel-slide.active {
  opacity: 1;
}

.floating-icon {
  position: absolute;
  background: var(--white);
  padding: 1rem;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  color: var(--medical-cyan);
  font-size: 1.5rem;
  animation: float 4s ease-in-out infinite;
  z-index: 3;
}

.icon-1 {
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.icon-2 {
  bottom: 20%;
  right: -5%;
  animation-delay: 1s;
}

.icon-3 {
  top: 40%;
  right: 10%;
  animation-delay: 2s;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
  opacity: 0.7;
}

.mouse {
  width: 24px;
  height: 36px;
  border: 2px solid var(--text-light);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--text-light);
  border-radius: 2px;
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    top: 4px;
    opacity: 1;
  }

  100% {
    top: 16px;
    opacity: 0;
  }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text ul li {
  align-items: left
}

;

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.about-text ul {
  list-style: none;
  margin-top: 1.5rem;
}

.about-text ul li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-text ul li i {
  color: var(--medical-cyan);
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  flex: 1;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--medical-cyan);
  opacity: 0.3;
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: var(--primary-blue);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-content {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.timeline-date {
  color: var(--medical-cyan);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

/* Horizontal Timeline (Conferences) */
.h-timeline-container {
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: none;
}

.h-timeline-container::-webkit-scrollbar {
  display: none;
}

.h-timeline {
  display: flex;
  gap: 2rem;
  min-width: 1200px;
  padding-bottom: 1rem;
}

.h-timeline-card {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  min-width: 280px;
  flex: 1;
  border-top: 4px solid var(--primary-blue);
  transition: var(--transition);
}

.h-timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.h-timeline-card h4 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.h-timeline-card .highlight {
  font-size: 0.9rem;
  color: var(--cta-red);
  font-weight: 600;
  display: block;
  margin-top: 1rem;
}

/* Expertise / Services */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.expertise-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--medical-cyan);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.expertise-card:hover::before {
  transform: scaleX(1);
}

.expertise-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(0, 168, 204, 0.1);
  color: var(--medical-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.expertise-icon svg {
  width: 40px;
  height: 40px;
}

.expertise-card:hover .expertise-icon {
  background-color: var(--medical-cyan);
  color: var(--white);
}

.expertise-card h3 {
  color: var(--primary-blue);
}

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.achievement-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: var(--transition);
}

.achievement-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.achievement-icon {
  font-size: 2rem;
  color: #FFD700;
  background: rgba(255, 215, 0, 0.1);
  padding: 1rem;
  border-radius: 12px;
}

/* Publications */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pub-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  border-left: 4px solid var(--primary-blue);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pub-card:hover {
  box-shadow: var(--shadow-md);
}

.pub-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pub-journal {
  color: var(--medical-cyan);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Why Choose */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* Hospital Section */
.hospital-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.hospital-image img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

/* Appointment CTA */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-blue), var(--medical-cyan));
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
  border-radius: 30px;
  margin: 4rem auto;
  max-width: 1200px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  animation: pulse 10s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.cta-banner h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.btn-white {
  background-color: var(--white);
  color: var(--primary-blue);
}

.btn-white:hover {
  background-color: #f0f0f0;
}

/* Footer */
footer {
  background-color: #05264F;
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--medical-cyan);
}

.footer-col p {
  color: #c1d2e8;
  margin-bottom: 1rem;
}

.footer-col p i {
  margin-right: 0.5rem;
  color: var(--medical-cyan);
}

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

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

.footer-links a {
  color: #c1d2e8;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--medical-cyan);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--medical-cyan);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #c1d2e8;
  font-size: 0.9rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .hero .container,
  .about-grid,
  .hospital-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .timeline::before {
    left: 40px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 80px !important;
    padding-right: 0 !important;
    text-align: left !important;
    left: 0 !important;
  }

  .timeline-dot {
    left: 30px !important;
    right: auto !important;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
  }
}