/* ===================================================
   DARK MODE PREMIUM — Heathcare Daily Technology
   =================================================== */

:root {
  --bg-0: #06070d;
  --bg-1: #0b0d18;
  --bg-2: #11141f;
  --surface: rgba(20, 24, 38, 0.6);
  --surface-strong: rgba(28, 33, 52, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text-1: #f4f6fb;
  --text-2: #b5bdd1;
  --text-3: #7a829a;
  --accent-1: #7c5cff;   /* premium violet */
  --accent-2: #22d3ee;   /* cyan */
  --accent-3: #f9c349;   /* gold */
  --gradient: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --gradient-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.18) 0%, rgba(34, 211, 238, 0.18) 100%);
  --glow: 0 10px 40px rgba(124, 92, 255, 0.35);
  --radius: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-1);
  background: var(--bg-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background aura */
.bg-aura {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 500px at 10% -10%, rgba(124, 92, 255, 0.25), transparent 60%),
    radial-gradient(700px 500px at 90% 10%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(249, 195, 73, 0.12), transparent 60%),
    var(--bg-0);
  pointer-events: none;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  color: var(--text-1);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  backdrop-filter: blur(10px);
}

.eyebrow i {
  color: var(--accent-2);
}

/* ===================== HEADER ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  background: rgba(11, 13, 24, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-dot {
  color: var(--accent-2);
  font-size: 28px;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 10px 18px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.nav-link:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--text-1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

.nav-cta {
  margin-left: 8px;
  padding: 10px 22px;
  color: var(--text-1);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  background: var(--gradient);
  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.55);
}

/* ===================== INTRO / HERO ===================== */
.intro {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 88vh;
  padding: 80px 24px;
  background:
    linear-gradient(180deg, rgba(6, 7, 13, 0.55) 0%, rgba(6, 7, 13, 0.92) 100%),
    url("./image_top.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.intro-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 30% 40%, rgba(124, 92, 255, 0.25), transparent 70%),
    radial-gradient(500px 400px at 70% 60%, rgba(34, 211, 238, 0.22), transparent 70%);
  pointer-events: none;
}

.intro-content {
  position: relative;
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.intro-content h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 0;
  color: var(--text-1);
  text-shadow: 0 4px 60px rgba(124, 92, 255, 0.35);
}

.intro-content p {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--text-2);
  margin: 0;
  max-width: 620px;
}

.intro-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: var(--glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(124, 92, 255, 0.55);
}

.btn-ghost {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

/* ===================== ACHIEVEMENTS ===================== */
.achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 90px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.work {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.work::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.work:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), var(--glow);
}

.work:hover::before {
  opacity: 1;
}

.work-icon {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--gradient);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.45);
}

.work-heading {
  position: relative;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
  letter-spacing: -0.4px;
}

.work-text {
  position: relative;
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
}

/* ===================== ABOUT ===================== */
.about-me {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 80px 120px;
  max-width: 1280px;
  margin: 0 auto;
}

.about-me-text h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--text-1);
  margin: 14px 0 20px;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.about-me-text p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-2);
  margin: 12px 0;
  line-height: 1.7;
}

.about-me-text p i {
  color: var(--accent-2);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.about-me-text .btn {
  margin-top: 28px;
}

.about-me-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.image-glow {
  position: absolute;
  inset: -20px;
  background: var(--gradient);
  filter: blur(60px);
  opacity: 0.45;
  border-radius: 50%;
  z-index: 0;
}

.about-me-image img {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* ===================== FOOTER ===================== */
.footer {
  background: linear-gradient(180deg, transparent 0%, rgba(11, 13, 24, 0.95) 30%, #06070d 100%);
  border-top: 1px solid var(--border);
  padding: 64px 24px 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 14px;
}

.copy {
  color: var(--text-3);
  font-size: 13px;
  margin: 0;
}

.bottom-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.links a:hover {
  color: var(--accent-2);
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.social-icon:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

/* ===================== LEGAL PAGE (EULA/Policy) ===================== */
.legal {
  padding: 60px 24px 100px;
}

.legal-container {
  max-width: 920px;
  margin: 0 auto;
}

.legal-card {
  padding: 56px 56px 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.legal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.legal-hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-hero .eyebrow {
  align-self: flex-start;
}

.legal-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 0;
  color: var(--text-1);
}

.legal-meta {
  font-size: 16px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.7;
}

.legal-meta strong {
  color: var(--text-1);
}

.legal-body p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.8;
  margin: 14px 0;
}

.legal-body strong {
  color: var(--text-1);
  font-weight: 600;
}

.legal-body h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  margin: 44px 0 18px;
  letter-spacing: -0.5px;
}

.legal-body h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.4);
}

.legal-list {
  margin: 14px 0 18px;
  padding-left: 22px;
}

.legal-list li {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.75;
  margin: 10px 0;
  padding-left: 6px;
}

.legal-list li::marker {
  color: var(--accent-2);
}

.legal-body a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-body a:hover {
  color: var(--accent-1);
  border-bottom-color: var(--accent-1);
}

.accept-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.legal-note {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 0;
  padding: 18px 22px;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 12px;
  color: var(--text-2);
  font-size: 14px;
}

.legal-note i {
  color: var(--accent-2);
}

.legal-note a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.legal-note a:hover {
  color: var(--accent-1);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .header {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-items {
    gap: 2px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 13px;
  }

  .nav-cta {
    padding: 8px 16px;
    margin-left: 0;
  }

  .intro {
    background-attachment: scroll;
    min-height: 70vh;
    padding: 60px 20px;
  }

  .achievements {
    padding: 60px 20px;
  }

  .about-me {
    grid-template-columns: 1fr;
    padding: 40px 20px 80px;
    gap: 40px;
  }

  .about-me-image {
    order: -1;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .bottom-links {
    gap: 40px;
  }

  .legal {
    padding: 32px 16px 60px;
  }

  .legal-card {
    padding: 32px 24px;
  }

  .legal-body h2 {
    font-size: 19px;
    margin: 32px 0 14px;
  }

  .legal-body h2 .num {
    min-width: 38px;
    height: 38px;
    font-size: 13px;
  }
}
