/* ============================================
   BAZM-E-BME - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --navy: #0a1628;
  --navy-light: #132238;
  --navy-dark: #060d17;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dark: #a88a1f;
  --teal: #2dd4bf;
  --teal-dark: #14b8a6;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gradient-gold: linear-gradient(135deg, #c9a227 0%, #e8c547 50%, #c9a227 100%);
  --gradient-navy: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 16px 48px rgba(10, 22, 40, 0.16);
  --shadow-gold: 0 8px 32px rgba(201, 162, 39, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--gray-50);
  color: var(--navy);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  border-radius: 12px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(201, 162, 39, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-container {
  text-align: center;
  margin-top: 48px;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  background: var(--gradient-navy);
  padding: 120px 80px 100px;
  overflow: hidden;
}

/* DNA Background Animation */
.dna-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.1;
  pointer-events: none;
}

.dna-strand {
  position: absolute;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--gold), var(--teal), var(--gold), transparent);
  animation: dnaMove 8s ease-in-out infinite;
}

.dna-strand:nth-child(1) { left: 10%; animation-delay: 0s; }
.dna-strand:nth-child(2) { left: 25%; animation-delay: 1s; }
.dna-strand:nth-child(3) { left: 40%; animation-delay: 2s; }
.dna-strand:nth-child(4) { left: 55%; animation-delay: 3s; }
.dna-strand:nth-child(5) { left: 70%; animation-delay: 4s; }
.dna-strand:nth-child(6) { left: 85%; animation-delay: 5s; }

@keyframes dnaMove {
  0%, 100% { transform: translateY(-10%) scaleY(1.2); }
  50% { transform: translateY(10%) scaleY(0.8); }
}

/* Floating Medical Icons */
.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-icon {
  position: absolute;
  font-size: 2rem;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.float-icon:nth-child(1) { top: 15%; left: 5%; animation-delay: 0s; }
.float-icon:nth-child(2) { top: 70%; left: 15%; animation-delay: 1s; }
.float-icon:nth-child(3) { top: 25%; right: 10%; animation-delay: 2s; }
.float-icon:nth-child(4) { top: 80%; right: 20%; animation-delay: 3s; }
.float-icon:nth-child(5) { top: 45%; left: 8%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* Heartbeat Line */
.heartbeat-line {
  position: absolute;
  bottom: 20%;
  left: 0;
  width: 100%;
  height: 60px;
  overflow: hidden;
  opacity: 0.5;
  pointer-events: none;
}

.heartbeat-svg {
  width: 200%;
  height: 100%;
  animation: heartbeat 2s linear infinite;
}

@keyframes heartbeat {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-h1 span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-p {
  font-size: 1.1rem;
  color: var(--gray-400);
  margin-bottom: 32px;
  font-weight: 300;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.medical-showcase {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.main-image-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.4);
  z-index: -1;
}

.main-image-container img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.3) 0%, rgba(201, 162, 39, 0.1) 100%);
}

/* Floating Info Cards */
.info-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  animation: cardFloat 4s ease-in-out infinite;
}

.info-card-1 { top: -30px; left: -50px; animation-delay: 0s; }
.info-card-2 { top: -30px; right: -50px; animation-delay: 0.5s; }
.info-card-3 { top: 50%; left: -70px; transform: translateY(-50%); animation-delay: 1s; }
.info-card-4 { top: 50%; right: -70px; transform: translateY(-50%); animation-delay: 1.5s; }
.info-card-5 { bottom: -40px; left: 50%; transform: translateX(-50%); animation-delay: 2s; }

.info-card-3,
.info-card-4 {
  z-index: 1;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.info-card-3 {
  animation: cardFloatLeft 4s ease-in-out infinite;
  animation-delay: 1s;
}

.info-card-4 {
  animation: cardFloatRight 4s ease-in-out infinite;
  animation-delay: 1.5s;
}

.info-card-5 {
  animation: cardFloatBottom 4s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes cardFloatLeft {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 10px)); }
}

@keyframes cardFloatRight {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 10px)); }
}

@keyframes cardFloatBottom {
  0%, 100% { transform: translateX(-50%); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.info-card .icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.info-card h4 {
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
}

.info-card p {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  background: var(--white);
  border-radius: 24px;
  padding: 48px;
  margin: -60px auto 60px;
  max-width: 1200px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
}

.stat-number span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  background: var(--white);
  border-radius: 32px;
  padding: 80px;
  box-shadow: var(--shadow-sm);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 24px;
}

.about-text p {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--gold);
  border-radius: 24px;
  z-index: -1;
}

/* ============================================
   CARDS GRID
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 39, 0.3);
}

.card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gradient-gold);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-body {
  padding: 28px;
}

.card-body h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 600;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.card-body p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.card-link:hover {
  gap: 12px;
  color: var(--navy);
}

.card-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.card-link:hover::after {
  transform: translateX(4px);
}