@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');

:root {
  --bg: #050505;
  --bg-rgb: 5, 5, 5;
  --panel: rgba(20, 20, 20, 0.85);
  --panel-strong: #1a160d;
  --ink: #e8dcc4;
  --muted: #a39575;
  --accent: #cda434;
  --accent-dark: #f0c341;
  --accent-2: #8b7355;
  --line: #6b5831;
  --font-body: "Cormorant Garamond", serif;
  --font-head: "Cinzel", serif;
}

/* Removed .dark theme support for permanent Elden Ring theme */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

html {
  scroll-behavior: smooth;
}

@keyframes mesh-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(0,0,0,0.7), rgba(5,5,5,0.9)), url('bg.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--ink);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  min-height: 100vh;
}

/* CUSTOM CURSOR */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}
.cursor-dot {
  width: 32px; height: 32px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transform: translate(-50%, -50%);
  box-shadow: none;
  filter: drop-shadow(0 0 5px rgba(205,164,52,0.8));
}
.cursor-dot::after {
  content: '🐉';
}
.cursor-outline {
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  box-shadow: 0 0 15px rgba(205, 164, 52, 0.3);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.cursor-outline.hover {
  width: 50px; height: 50px;
  background-color: rgba(205, 164, 52, 0.15);
  border-color: var(--accent-dark);
  box-shadow: 0 0 20px rgba(205, 164, 52, 0.6);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 83%, transparent);
  backdrop-filter: blur(18px);
}

.brand,
nav,
.hero-actions,
.quick-stats,
.skill-cloud,
.skill-list {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.32);
}

nav {
  justify-content: center;
  gap: 8px;
}

nav a,
.theme-toggle,
.lang-toggle,
.menu-toggle,
.button,
.ghost-button,
.close-dialog {
  border-radius: 8px;
}

nav a {
  padding: 8px 11px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

nav a:hover,
nav a.active {
  background: rgba(14, 165, 233, 0.13);
  color: var(--ink);
}

.theme-toggle,
.lang-toggle,
.menu-toggle {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

main,
footer {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  gap: clamp(34px, 7vw, 82px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 56px 0;
}

.hero-copy,
.section-heading,
.page-hero {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
h4 {
  margin-top: 0;
  font-family: var(--font-head);
  letter-spacing: -0.02em;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 6.4vw, 6.4rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.14rem;
}

.hero p,
.page-hero p,
.section-heading p,
article p,
.task-item small,
footer,
.profile-card p,
.contact-card a {
  color: var(--muted);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  font-weight: 400;
  border-radius: 2px;
  transition: all 0.3s ease;
  border: 1px solid var(--accent);
  font-family: var(--font-head);
  letter-spacing: 0.1em;
}

.button:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button.secondary:hover {
  background: var(--line);
  color: var(--ink);
  border-color: var(--line);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  padding: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, transform 0.1s linear, text-shadow 0.2s;
  background: none;
  border: none;
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.ghost-button:hover {
  color: var(--accent-dark);
  text-shadow: 0 0 8px rgba(205, 164, 52, 0.6);
}

.quick-stats {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quick-stats > span {
  min-width: 128px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

.quick-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.32rem;
}

.profile-card,
article,
.dashboard-panel,
form,
.contact-card,
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(20px);
}

.profile-card {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 32px);
}

.avatar {
  display: grid;
  width: min(100%, 280px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(99, 102, 241, 0.96)),
    var(--accent);
  color: #ffffff;
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: 950;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -40px 90px rgba(15, 23, 42, 0.22);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 800;
}

.status-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16);
}

.skill-cloud,
.skill-list {
  flex-wrap: wrap;
  gap: 10px;
}

.skill-cloud span,
.skill-list span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 78%, transparent);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.page-hero {
  padding: 72px 0 48px;
}

.feature-grid,
.project-grid,
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-grid {
  margin-top: 28px;
}

article {
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

article:hover {
  transform: translateY(-4px);
}

.feature-icon,
.project-card > span,
.timeline article span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--accent-dark);
  font-weight: 900;
}

.builder,
.contact-layout {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 34px;
  align-items: start;
}

.dashboard-panel,
form,
.contact-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.meter {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 82%, transparent);
}

.meter strong {
  display: block;
  font-size: 2.6rem;
  line-height: 1;
}

.meter span {
  color: var(--muted);
}

.progress-bar {
  height: 12px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-strong);
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #22c55e);
  transition: width 180ms ease;
}

.task-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 82%, transparent);
  cursor: pointer;
}

.task-item input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.task-item strong,
.task-item small {
  display: block;
}

.timeline article {
  min-height: 220px;
}

.skill-list {
  background: var(--panel);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.project-card {
  display: grid;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(205, 164, 52, 0.15);
}

.project-art {
  min-height: 180px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.project-art.one {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.88), rgba(34, 197, 94, 0.7)),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 255, 255, 0.18) 26px 27px);
}

.project-art.two {
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.55), transparent 5rem),
    linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(14, 165, 233, 0.65));
}

.project-art.three {
  background:
    linear-gradient(45deg, rgba(14, 165, 233, 0.18) 25%, transparent 25% 50%, rgba(14, 165, 233, 0.18) 50% 75%, transparent 75%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(99, 102, 241, 0.8));
  background-size: 34px 34px, auto;
}

.contact-card a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input[type="text"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: color-mix(in srgb, var(--panel-strong) 88%, transparent);
  color: var(--ink);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 850;
}

dialog {
  width: min(560px, calc(100% - 32px));
  color: var(--ink);
  padding: 24px;
}

dialog::backdrop {
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(8px);
}

.close-dialog {
  float: right;
  min-height: 38px;
}

/* --- MARQUEE --- */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  background: rgba(15,15,15,0.9);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  padding: 16px 0;
  margin-top: 60px;
  transform: rotate(-1deg) scale(1.05);
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}
.marquee-track {
  display: inline-flex;
  gap: 32px;
  animation: marquee 20s linear infinite;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- DRAGON SIDEBAR --- */
.dragon-sidebar {
  position: fixed;
  top: 0;
  right: -50px;
  height: 100vh;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: screen;
  z-index: 0;
  filter: drop-shadow(0 0 10px rgba(205,164,52,0.8));
  display: flex;
  align-items: center;
}
.dragon-sidebar img {
  height: 85vh;
  width: auto;
  object-fit: contain;
}

/* --- REVEALS --- */
.reveal {
  opacity: 0;
  transform: translateY(40px) rotateX(15deg);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

footer {
  padding: 28px 0 42px;
}

.clock-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 40%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.clock-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; box-shadow: 0 0 8px var(--accent); }
  100% { transform: scale(0.9); opacity: 1; }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  nav.open {
    display: flex;
  }

  .hero,
  .builder,
  .contact-layout,
  .feature-grid,
  .project-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.75rem;
  }

  main,
  footer {
    width: min(100% - 28px, 1160px);
  }
}
