:root {
  --bg: #0b0d10;
  --elev-1: #0f1217;
  --elev-2: #161a21;
  --text: #e6e9ef;
  --muted: #9aa4b2;
  --brand: #78c0ff;
  --brand-2: #a78bfa;
  --accent: #00f5d4;
  --ring: #2dd4bf;
  --card-glass: rgba(22, 26, 33, 0.6);
  --border: rgba(255,255,255,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.25);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, #0f172a 0%, transparent 60%),
              radial-gradient(1200px 800px at 120% 10%, #1b283f 0%, transparent 55%),
              linear-gradient(180deg, #0a0c10 0%, #0b0d10 100%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.7" numOctaves="2" stitchTiles="stitch"/></filter><rect width="300" height="300" filter="url(%23n)" opacity="0.04"/></svg>');
  mix-blend-mode: soft-light;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 28px) 56px;
}

header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--card-glass);
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(14px, 3vw, 22px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

header::after {
  content: '';
  position: absolute; inset: -50% -50% auto -50%; height: 140%;
  background: conic-gradient(from 200deg, transparent 0 65%, rgba(157, 78, 221, 0.18), rgba(124, 58, 237, 0.24), rgba(56, 189, 248, 0.2), transparent 95%);
  transform: rotate(8deg);
  filter: blur(40px);
  pointer-events: none;
}

.avatar-wrap { position: relative; width: 84px; height: 84px; }
.avatar { width: 84px; height: 84px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.08); display:block; }
.avatar-ring {
  position: absolute; inset: -4px; border-radius: 9999px;
  background: conic-gradient(var(--ring), transparent 25%, var(--brand) 50%, transparent 75%, var(--brand-2));
  filter: blur(6px); opacity: 0.55; animation: spin 10s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.header-text h1 { margin: 0 0 6px; font-size: clamp(22px, 3.2vw, 34px); letter-spacing: 0.3px; }
.contact-info { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); }
.contact-info a { color: var(--text); text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,0.18); }
.contact-info i { margin-right: 6px; color: var(--brand); }

.dropdown-nav-container { position: relative; }
.modern-dropdown {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: linear-gradient(180deg, var(--elev-1), var(--elev-2));
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 42px 10px 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  cursor: pointer;
}
.dropdown-nav-container::after {
  content: "\f107"; /* chevron-down */
  font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}

.bio {
  margin: 20px 0 14px;
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(14px, 2.2vw, 18px);
  line-height: 1.6;
  color: #dbe3ee;
}
.bio strong { color: var(--text); }

.social-links {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin: 8px 0 22px;
}
.social-link {
  --btn-bg: linear-gradient(180deg, #151a22, #0f131a);
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--btn-bg);
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  color: var(--text); text-decoration: none; font-size: 18px;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.social-link:hover { transform: translateY(-2px); border-color: rgba(120,192,255,0.6); box-shadow: 0 10px 22px rgba(0,0,0,0.45); }

.page-content { display: grid; gap: 16px; }

.welcome-section {
  margin-top: 6px;
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(18px, 3vw, 26px);
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.welcome-section p:first-child {
  font-size: clamp(16px, 2.2vw, 18px);
  margin: 0 0 10px 0;
}

.tagline {
  display: inline-block;
  position: relative;
  font-weight: 600;
}
.tagline::after {
  content: '';
  position: absolute; left: 5%; right: 5%; bottom: -4px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand-2), transparent);
  filter: drop-shadow(0 0 6px rgba(120,192,255,0.8));
}

.footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  header { grid-template-columns: auto 1fr; }
  .header-dropdown { grid-column: 1 / -1; }
  .avatar-wrap, .avatar { width: 68px; height: 68px; }
  .contact-info { gap: 8px 12px; }
}

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.focus-ring { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 10px; }
.text-center { text-align: center; }

/* Styles for project pages */
.project-container {
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(18px, 3vw, 26px);
  margin-top: 20px;
  box-shadow: var(--shadow);
}

.project-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--brand);
}

.project-description {
  font-size: clamp(16px, 2.2vw, 18px);
  text-align: center;
  margin-bottom: 30px;
  color: var(--muted);
}
