/* =========================================================
   Dr. Portfolio — Futuristic Dark UI
   Custom CSS (Bootstrap 5 used only for grid/layout)
   ========================================================= */

:root {
  --bg-0: #07070d;
  --bg-1: #0d0d18;
  --bg-2: #131326;
  --text: #e8ecff;
  --muted: #8a8fb0;
  --neon-1: #6c4cff;   /* purple */
  --neon-2: #00d4ff;   /* cyan   */
  --neon-3: #ff3df7;   /* magenta accent */
  --grad: linear-gradient(135deg, var(--neon-1) 0%, var(--neon-2) 100%);
  --grad-soft: linear-gradient(135deg, rgba(108,76,255,.25), rgba(0,212,255,.18));
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.10);
  --shadow-neon: 0 10px 40px -10px rgba(108, 76, 255, .55),
                 0 4px 24px -4px rgba(0, 212, 255, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  overflow-x: hidden;
  cursor: none; /* custom cursor */
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section { padding: 7rem 0; position: relative; }
.section-sm { padding: 4rem 0; }

.eyebrow {
  display: inline-block;
  padding: .35rem .75rem;
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--neon-2);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}

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

/* ====== Animated Background Aurora ====== */
.aurora {
  position: fixed; inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(108,76,255,.35), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0,212,255,.28), transparent 55%),
    radial-gradient(ellipse at 50% 90%, rgba(255,61,247,.20), transparent 55%),
    var(--bg-0);
}
.aurora::before, .aurora::after {
  content: '';
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .55;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora::before { background: var(--neon-1); top: -20vmax; left: -20vmax; }
.aurora::after  { background: var(--neon-2); bottom: -25vmax; right: -20vmax; animation-duration: 28s; }

@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(10vmax, 5vmax) scale(1.15); }
}

.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* ====== Custom Cursor ====== */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  transition: transform .12s ease-out;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid #fff; border-radius: 50%;
  transition: transform .2s ease-out, width .2s, height .2s, border-color .2s;
}
.cursor-ring.hover { width: 60px; height: 60px; border-color: var(--neon-2); }

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ====== Navbar ====== */
.nav-glass {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all .35s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav-glass.scrolled {
  background: rgba(7,7,13,.7);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
  padding: .65rem 0;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.25rem;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: var(--shadow-neon);
  color: white; font-weight: 800;
}
.nav-link-x {
  position: relative;
  padding: .5rem .9rem;
  color: var(--muted);
  font-size: .92rem; font-weight: 500;
  transition: color .25s;
}
.nav-link-x:hover, .nav-link-x.active { color: var(--text); }
.nav-link-x::after {
  content: ''; position: absolute; left: 50%; bottom: 4px;
  width: 0; height: 2px; background: var(--grad);
  transition: all .3s; transform: translateX(-50%);
}
.nav-link-x:hover::after, .nav-link-x.active::after { width: 60%; }

/* ====== Buttons ====== */
.btn-neon {
  position: relative;
  padding: .9rem 1.8rem;
  border-radius: 999px;
  border: none;
  color: white;
  font-weight: 600; font-size: .95rem;
  background: var(--grad);
  box-shadow: var(--shadow-neon);
  cursor: none;
  transition: transform .25s, box-shadow .25s;
  display: inline-flex; align-items: center; gap: .6rem;
  overflow: hidden;
  isolation: isolate;
}
.btn-neon::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--neon-2), var(--neon-1));
  opacity: 0; transition: opacity .3s; z-index: -1;
}
.btn-neon:hover { transform: translateY(-3px); box-shadow: 0 16px 50px -10px rgba(0,212,255,.6); }
.btn-neon:hover::before { opacity: 1; }
.btn-neon .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 12px #fff; animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .4; transform: scale(1.4); }
}

.btn-ghost {
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text);
  backdrop-filter: blur(10px);
  font-weight: 500;
  cursor: none;
  transition: all .25s;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-ghost:hover { border-color: var(--neon-2); color: var(--neon-2); transform: translateY(-2px); }

/* ====== Glass Cards ====== */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 40%);
  pointer-events: none;
}

/* ====== Hero ====== */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 8rem 0 5rem; }
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 540px; }
.typed-cursor { color: var(--neon-2); animation: blink 1s infinite; font-weight: 300; }
@keyframes blink { 50% { opacity: 0; } }

.hero-portrait {
  position: relative; aspect-ratio: 4/5; border-radius: 32px;
  overflow: hidden; box-shadow: var(--shadow-neon);
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(circle at 30% 20%, rgba(108,76,255,.4), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(0,212,255,.3), transparent 55%),
    linear-gradient(180deg, #1a1a30, #0a0a18);
  display: grid; place-items: center;
}
.hero-portrait .silhouette {
  font-size: 18rem; opacity: .9;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-portrait .ring {
  position: absolute; inset: -2px; border-radius: 32px;
  background: conic-gradient(from 0deg, var(--neon-1), var(--neon-2), var(--neon-3), var(--neon-1));
  z-index: -1; filter: blur(20px); opacity: .6;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Floating stat cards on hero */
.float-stat {
  position: absolute; padding: 1rem 1.25rem;
  min-width: 160px;
  animation: float 6s ease-in-out infinite;
}
.float-stat .num {
  font-size: 1.75rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.float-stat .lbl { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .15em; }
.float-stat.s1 { top: 8%; left: -12%; animation-delay: 0s; }
.float-stat.s2 { bottom: 18%; right: -10%; animation-delay: -2s; }
.float-stat.s3 { bottom: -4%; left: 10%; animation-delay: -4s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}

/* ====== Specializations (horizontal scroll) ====== */
.h-scroll {
  display: flex; gap: 1.25rem;
  overflow-x: auto; padding: 1rem .5rem 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.h-scroll::-webkit-scrollbar { height: 6px; }
.h-scroll::-webkit-scrollbar-thumb { background: var(--grad); border-radius: 6px; }
.spec-card {
  flex: 0 0 280px; padding: 2rem 1.5rem;
  scroll-snap-align: start;
  transition: transform .35s, border-color .35s;
}
.spec-card:hover { transform: translateY(-8px); border-color: var(--neon-2); }
.spec-card .icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  font-size: 1.4rem; color: var(--neon-2);
  margin-bottom: 1.25rem;
  border: 1px solid var(--glass-border);
}

/* ====== Testimonials slider ====== */
.testi-viewport { overflow: hidden; }
.testi-track {
  display: flex; transition: transform .6s cubic-bezier(.7,0,.3,1);
}
.testi-slide { flex: 0 0 100%; padding: 0 1rem; }
.testi-card { padding: 2.5rem; font-size: 1.1rem; line-height: 1.7; }
.testi-card .quote {
  font-size: 3rem; line-height: 1; color: var(--neon-2);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.testi-author { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.testi-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center;
  font-weight: 700; color: white;
}
.testi-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.testi-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; background: var(--glass-border);
  cursor: none; transition: all .3s;
}
.testi-dots button.active { background: var(--grad); width: 28px; border-radius: 5px; }

/* ====== Counter section ====== */
.counter-num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.counter-lbl { color: var(--muted); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; }

/* ====== Footer ====== */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--glass-border); margin-top: 4rem; }
.social-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  margin-right: .5rem;
  transition: all .3s;
  cursor: none;
}
.social-ico:hover { border-color: var(--neon-2); color: var(--neon-2); transform: translateY(-3px); }

/* ====== Scroll reveal ====== */
.reveal { opacity: 0; transform: translateY(40px); transition: all .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ====== Back to top ====== */
.to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); border: none; color: white;
  box-shadow: var(--shadow-neon);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: all .35s; cursor: none;
  z-index: 999;
}
.to-top.visible { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }

/* =========================================================
   Profile Page
   ========================================================= */
.profile-sticky { position: sticky; top: 110px; }
.profile-card { padding: 2rem; text-align: center; }
.profile-avatar {
  width: 180px; height: 180px; border-radius: 50%;
  margin: 0 auto 1.25rem; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(108,76,255,.5), transparent 60%),
    linear-gradient(135deg, #1a1a30, #0a0a18);
  border: 1px solid var(--glass-border);
  font-size: 5rem;
  background-clip: padding-box;
  position: relative;
}
.profile-avatar::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: var(--grad); z-index: -1; filter: blur(12px); opacity: .7;
}

.tag-pill {
  display: inline-block; padding: .35rem .8rem;
  border-radius: 999px; font-size: .75rem;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--muted); margin: .2rem;
}

.skill-row { margin-bottom: 1.25rem; }
.skill-row .lbl { display: flex; justify-content: space-between; margin-bottom: .5rem; font-size: .9rem; }
.skill-bar {
  height: 8px; border-radius: 4px;
  background: rgba(255,255,255,.06); overflow: hidden;
}
.skill-bar .fill {
  height: 100%; width: 0%;
  background: var(--grad); border-radius: 4px;
  transition: width 1.6s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 0 12px var(--neon-2);
}

.circ {
  --p: 0;
  --size: 130px;
  width: var(--size); height: var(--size); border-radius: 50%;
  background:
    conic-gradient(var(--neon-2) calc(var(--p) * 1%), rgba(255,255,255,.06) 0);
  display: grid; place-items: center;
  position: relative; margin: 0 auto 1rem;
  transition: background 1.4s ease;
}
.circ::before {
  content: ''; position: absolute; inset: 8px; border-radius: 50%;
  background: var(--bg-1);
}
.circ span {
  position: relative; font-weight: 700; font-size: 1.4rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px;
  width: 2px; background: linear-gradient(var(--neon-1), var(--neon-2));
}
.tl-item { position: relative; padding-bottom: 2.5rem; }
.tl-item::before {
  content: ''; position: absolute; left: -1.65rem; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-0); border: 2px solid var(--neon-2);
  box-shadow: 0 0 0 4px rgba(0,212,255,.15);
}
.tl-year { color: var(--neon-2); font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; }
.tl-title { font-weight: 600; margin: .25rem 0; }
.tl-desc  { color: var(--muted); font-size: .95rem; }

/* =========================================================
   Contact Page
   ========================================================= */
.form-control-x, .form-select-x {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-border);
  color: var(--text);
  border-radius: 14px;
  padding: .9rem 1.1rem;
  font-size: .95rem;
  outline: none;
  transition: all .25s;
}
.form-control-x:focus, .form-select-x:focus {
  border-color: var(--neon-2);
  box-shadow: 0 0 0 4px rgba(0,212,255,.12);
  background: rgba(255,255,255,.06);
}
.form-control-x::placeholder { color: rgba(232,236,255,.35); }
label.form-lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin-bottom: .5rem; display: block; }

.contact-card { padding: 1.75rem; transition: all .3s; }
.contact-card:hover { transform: translateY(-6px); border-color: var(--neon-2); }
.contact-card .ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.2rem;
  background: var(--grad-soft); border: 1px solid var(--glass-border);
  color: var(--neon-2); margin-bottom: 1rem;
}

.map-wrap {
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--glass-border);
  filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.9);
}
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* FAQ */
.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left;
  padding: 1.25rem 1.5rem;
  background: transparent; border: none; color: var(--text);
  font-weight: 600; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center;
  cursor: none;
}
.faq-q .chev { transition: transform .3s; color: var(--neon-2); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease;
  color: var(--muted);
  padding: 0 1.5rem;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 1.5rem 1.25rem; }

/* Time slot picker */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .6rem; }
.slot {
  padding: .65rem .5rem; text-align: center;
  border: 1px solid var(--glass-border);
  border-radius: 10px; font-size: .85rem;
  background: var(--glass-bg); color: var(--muted);
  cursor: none; transition: all .2s;
}
.slot:hover { color: var(--text); border-color: var(--neon-2); }
.slot.active { background: var(--grad); color: white; border-color: transparent; box-shadow: var(--shadow-neon); }

/* small helpers */
.divider-grad { height: 1px; background: linear-gradient(90deg, transparent, var(--neon-2), transparent); margin: 4rem 0; }
.text-muted-x { color: var(--muted); }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin: 1rem 0 1rem; }
.section-sub   { color: var(--muted); max-width: 620px; margin-bottom: 3rem; }

/* responsive tweaks */
@media (max-width: 991px) {
  .float-stat.s1 { left: 0; top: -4%; }
  .float-stat.s2 { right: 0; bottom: 8%; }
  .float-stat.s3 { left: 30%; bottom: -8%; }
  .hero { padding-top: 7rem; }
  .profile-sticky { position: static; margin-bottom: 2rem; }
}

/* ====== Mobile Hamburger Menu ====== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  cursor: pointer;
  padding: 0;
  align-items: center;
  transition: border-color .25s, background .25s;
  z-index: 1100;
  flex-shrink: 0;
}
.hamburger:hover { border-color: var(--neon-2); background: rgba(0,212,255,.06); }
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .35s cubic-bezier(.7,0,.3,1), opacity .25s, width .25s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 12px; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer — slides down from top */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1050;
  background: rgba(10, 10, 20, 0.92);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  padding: 5.5rem 1.5rem 2rem;
  transform: translateY(-110%);
  transition: transform .45s cubic-bezier(.7,0,.2,1);
  pointer-events: none;
}
.mobile-nav.open {
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav .mobile-links {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: 1.5rem;
}
.mobile-nav .mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 1.1rem;
  color: var(--muted);
  border-radius: 16px;
  border: 1px solid transparent;
  transition: color .25s, background .25s, border-color .25s, transform .25s;
}
.mobile-nav .mobile-link:hover,
.mobile-nav .mobile-link.active {
  color: var(--text);
  background: var(--glass-bg);
  border-color: var(--glass-border);
  transform: translateX(4px);
}
.mobile-nav .mobile-link.active { color: var(--neon-2); }
.mobile-nav .mobile-link i { opacity: .45; font-size: .85rem; }

.mobile-nav .mobile-cta {
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}
.mobile-nav .mobile-cta .btn-neon {
  width: 100%; justify-content: center; cursor: pointer;
}

/* body lock when menu open */
body.menu-open { overflow: hidden; }

@media (max-width: 991px) {
  .hamburger { display: flex; }
}