/* =========================================
   0. THEME & RESET
   ========================================= */

:root {
  --bg: #0b1220; /* lighter navy */
  --bg-alt: #111827;
  --card: #0f172a;

  --text: #f1f5f9;        /* brighter white */
  --muted: #cbd5e1;       /* softer light grey */

  --accent: #818cf8;      /* soft purple */
  --accent-2: #38bdf8;    /* cyan */

  --border-subtle: rgba(203, 213, 225, 0.35);

  --radius-lg: 20px;
  --radius-xl: 26px;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
  --nav-height: 64px;
}

/* Light Theme */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --card: #ffffff;

  --text: #0f172a;
  --muted: #475569;

  --accent: #6366f1;
  --accent-2: #22c55e;
  --border-subtle: rgba(148, 163, 184, 0.5);
}

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

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;

  background: radial-gradient(
    circle at top,
    rgba(30, 41, 59, 0.9) 0%,
    rgba(15, 23, 42, 1) 40%,
    #010409 100%
  );

  color: var(--text);
  display: flex;
  flex-direction: column;
}

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

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

@media (min-width: 768px) {
  .page { padding: 0 24px 72px; }
}

.section { margin-top: 64px; }
@media (min-width: 992px) {
  .section { margin-top: 80px; }
}

p { line-height: 1.7; }

/* =========================================
   1. NAVBAR
   ========================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);

  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.98),
    rgba(15, 23, 42, 0.65),
    transparent
  );

  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.25);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--accent-2);
}

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

.nav-link {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;

  color: var(--muted);
  transition: 180ms ease-out;
  position: relative;
}

.nav-link:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top left, var(--accent), transparent 60%);
  opacity: 0;
  transition: 160ms ease-out;
}

.nav-link:hover::before { opacity: 0.18; }

/* Theme Button */
.theme-toggle {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid rgba(203, 213, 225, 0.4);

  background: rgba(15, 23, 42, 0.6);
  color: var(--muted);

  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: 180ms ease-out;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* =========================================
   2. CARD BASE
   ========================================= */

.card {
  background:
    radial-gradient(circle at top left, rgba(203, 213, 225, 0.12), transparent 55%),
    var(--card);

  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);

  padding: 28px 22px;
}

@media (min-width: 768px) {
  .card { padding: 32px 32px; }
}

.section-label {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.section-label span {
  color: var(--accent);
  margin-right: 6px;
}

/* =========================================
   3. HERO SECTION
   ========================================= */

.hero {
  display: grid;
  gap: 32px;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.7fr 1.3fr;
    align-items: center;
  }
}

.hero-eyebrow {
  font-size: 0.8rem;
  color: var(--accent-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-title {
  font-family: "Poppins", sans-serif;
  color: var(--text) !important;
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 38rem;
  opacity: 0.95;
  margin-bottom: 16px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;

  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(203, 213, 225, 0.45);
  color: var(--text);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  padding: 10px 18px;
  border-radius: 999px;

  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;

  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  cursor: pointer;
  color: #f8fafc;
  box-shadow: 0 18px 45px rgba(79, 70, 229, 0.7);

  transition: 180ms ease-out;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-ghost {
  border: 1px solid rgba(203, 213, 225, 0.55);
  background: rgba(15, 23, 42, 0.6);
  padding: 9px 16px;

  border-radius: 999px;
  cursor: pointer;
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  transition: 180ms ease-out;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #fff;
}

/* =========================================
   TERMINAL BOX
   ========================================= */

.terminal {
  margin-top: 24px;

  background: #0a0f1e;
  border-radius: 16px;
  overflow: hidden;

  border: 1px solid rgba(203, 213, 225, 0.4);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;

  border-bottom: 1px solid rgba(203, 213, 225, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 4px;
}

.dot-red   { background: #ff6b6b; }
.dot-amber { background: #facc15; }
.dot-green { background: #4ade80; }

.terminal-body { padding: 12px 16px; }
.term-line     { margin-bottom: 2px; }

.term-prompt { color: #22c55e; margin-right: 6px; }
.term-cmd    { color: #f8fafc !important; }
.term-output { color: #cbd5e1 !important; margin-left: 18px; }

/* =========================================
   AVATAR
   ========================================= */

.hero-avatar-wrap {
  display: flex;
  justify-content: center;
}

.hero-avatar-orbit {
  position: relative;
  padding: 10px;

  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(129, 140, 248, 0.6), transparent 70%);
}

.hero-avatar-inner {
  border-radius: 999px;
  overflow: hidden;

  border: 1px solid rgba(203, 213, 225, 0.4);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.9);
}

.hero-avatar-inner img {
  width: 210px;
  height: 210px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: -6px;
  right: 0;

  background: rgba(15, 23, 42, 0.98);
  border-radius: 999px;
  padding: 6px 10px;

  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 0.72rem;
  color: var(--muted);

  border: 1px solid rgba(203, 213, 225, 0.4);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

/* =========================================
   ABOUT
   ========================================= */

.about-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1.6fr 1.2fr;
  }
}

.about-text p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.bio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
}

.bio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.bio-label i {
  width: 18px;
  text-align: center;
}

.bio-value {
  color: var(--muted);
}

/* =========================================
   CONTACT
   ========================================= */

.contact-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.4fr 1.2fr;
  }
}

.contact-text {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.96rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 0.9rem;
  margin-bottom: 10px;
}

.contact-item i {
  width: 28px;
  height: 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.5);
  border-radius: 999px;
  color: var(--accent-2);
}

/* Form */
.contact-form {
  display: grid;
  gap: 14px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.field input,
.field textarea {
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.5);
  background: rgba(15, 23, 42, 0.9);

  padding: 10px 12px;
  font-size: 0.92rem;
  color: var(--text);
}

[data-theme="light"] input,
[data-theme="light"] textarea {
  background: #f1f5f9;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

/* =========================================
   FOOTER 
   ========================================= */

footer {
  padding: 18px;
  text-align: center;

  color: var(--muted);
  font-size: 0.82rem;

  border-top: 1px solid rgba(203, 213, 225, 0.2);
  background: #020617;
}

footer strong {
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* =========================================
   LIGHT MODE POLISH
   ========================================= */

/* Softer light background */
[data-theme="light"] body {
  background: radial-gradient(
    circle at top,
    #e5f0ff 0%,
    #f7fafc 55%,
    #e2e8f0 100%
  );
  color: var(--text);
}

/* Light nav bar */
[data-theme="light"] .nav {
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 0.98),
    rgba(248, 250, 252, 0.8),
    transparent
  );
  border-bottom-color: rgba(148, 163, 184, 0.35);
}

[data-theme="light"] .brand-sub {
  color: #16a34a;
}

[data-theme="light"] .nav-link {
  color: #64748b;
}

[data-theme="light"] .nav-link:hover {
  color: #0f172a;
}

/* Card = soft white with subtle shadow */
[data-theme="light"] .card {
  background:
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.16), transparent 55%),
    #ffffff;
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.08);
}

/* Hero text / tags */
[data-theme="light"] .hero-title {
  color: #020617;
}

[data-theme="light"] .hero-sub {
  color: #475569;
}

[data-theme="light"] .hero-tag {
  background: #e5edff;
  border-color: transparent;
  color: #1e293b;
}

/* Buttons in light mode */
[data-theme="light"] .btn-ghost {
  background: #f9fafb;
  border-color: rgba(148, 163, 184, 0.7);
  color: #0f172a;
}

[data-theme="light"] .btn-ghost:hover {
  background: #e5e7eb;
}

/* Terminal stays dark for contrast */
[data-theme="light"] .terminal {
  background: #020617;
  border-color: rgba(15, 23, 42, 0.8);
}

[data-theme="light"] .terminal-header {
  background: rgba(15, 23, 42, 0.96);
  border-bottom-color: rgba(15, 23, 42, 0.85);
}

[data-theme="light"] .term-cmd {
  color: #e5e7eb !important;
}

[data-theme="light"] .term-output {
  color: #cbd5e1 !important;
}

/* Theme toggle chip */
[data-theme="light"] .theme-toggle {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.7);
  color: #64748b;
}

