:root {
  --bg: #020617;
  --bg-2: #0f172a;
  --text: #e5eefb;
  --muted: #94a3b8;
  --glass: rgba(255, 255, 255, 0.075);
  --strong-glass: rgba(15, 23, 42, 0.82);
  --border: rgba(255, 255, 255, 0.14);
  --primary: #818cf8;
  --primary-soft: rgba(129, 140, 248, 0.34);
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.30);
  --accent-border: rgba(34, 211, 238, 0.70);
  --hot: #f472b6;
  --hot-soft: rgba(244, 114, 182, 0.24);
  --shadow: rgba(0, 0, 0, 0.55);
  --cursor: #ffffff;
  --cursor-border: rgba(255, 255, 255, 0.72);
  --font-body: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  --font-display: "Urbanist", Inter, ui-sans-serif, system-ui, sans-serif;
}

[data-theme="light"] {
  --bg: #f7f9ff;
  --bg-2: #eef4ff;
  --text: #111827;
  --muted: #586174;
  --glass: rgba(255, 255, 255, 0.68);
  --strong-glass: rgba(255, 255, 255, 0.88);
  --border: rgba(17, 24, 39, 0.11);
  --primary: #4f46e5;
  --primary-soft: rgba(79, 70, 229, 0.16);
  --accent: #0f766e;
  --accent-soft: rgba(15, 118, 110, 0.13);
  --accent-border: rgba(15, 118, 110, 0.48);
  --hot: #be185d;
  --hot-soft: rgba(190, 24, 93, 0.11);
  --shadow: rgba(31, 41, 55, 0.14);
  --cursor: #111827;
  --cursor-border: rgba(17, 24, 39, 0.48);
}

[data-theme="royal"] {
  --bg: #070514;
  --bg-2: #15102b;
  --text: #fff7ed;
  --muted: #d8c8ee;
  --glass: rgba(255, 255, 255, 0.08);
  --strong-glass: rgba(21, 16, 43, 0.86);
  --border: rgba(255, 255, 255, 0.16);
  --primary: #c084fc;
  --primary-soft: rgba(192, 132, 252, 0.34);
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.28);
  --accent-border: rgba(245, 158, 11, 0.72);
  --hot: #fb7185;
  --hot-soft: rgba(251, 113, 133, 0.24);
  --shadow: rgba(0, 0, 0, 0.62);
  --cursor: #ffe7b8;
  --cursor-border: rgba(255, 231, 184, 0.72);
}

[data-theme="pink"] {
  --bg: #180713;
  --bg-2: #3a1029;
  --text: #fff4f8;
  --muted: #efbfd2;
  --glass: rgba(255, 255, 255, 0.10);
  --strong-glass: rgba(43, 10, 30, 0.88);
  --border: rgba(255, 205, 229, 0.24);
  --primary: #ff4fa3;
  --primary-soft: rgba(255, 79, 163, 0.36);
  --accent: #ffd166;
  --accent-soft: rgba(255, 209, 102, 0.22);
  --accent-border: rgba(255, 209, 102, 0.70);
  --hot: #d946ef;
  --hot-soft: rgba(217, 70, 239, 0.24);
  --shadow: rgba(52, 7, 32, 0.62);
  --cursor: #ffd6e8;
  --cursor-border: rgba(255, 214, 232, 0.76);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

a,
button,
.card {
  cursor: none;
}

.cinematic-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 14%, var(--primary-soft), transparent 32%),
    radial-gradient(circle at 84% 20%, var(--accent-soft), transparent 30%),
    radial-gradient(circle at 52% 88%, var(--hot-soft), transparent 34%),
    linear-gradient(145deg, var(--bg), var(--bg-2));
}

.beam {
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 999px;
  filter: blur(78px);
  opacity: 0.34;
  animation: floatBeam 12s ease-in-out infinite alternate;
}

.beam-1 {
  left: -16vw;
  top: 8vh;
  background: var(--primary);
}

.beam-2 {
  right: -18vw;
  top: 20vh;
  background: var(--accent);
  animation-delay: -4s;
}

.beam-3 {
  left: 30vw;
  bottom: -28vw;
  background: var(--hot);
  animation-delay: -7s;
}

.grid-glow {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 86%);
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

@keyframes floatBeam {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(7vw, -5vh, 0) scale(1.17);
  }
}

.cursor-dot,
.cursor-ring,
.cursor-shadow {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 2147483647 !important;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cursor);
  box-shadow:
    0 0 14px var(--cursor),
    0 0 34px var(--accent);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--cursor-border);
  background: var(--accent-soft);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: width 0.22s ease, height 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.cursor-shadow {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 62%);
  filter: blur(18px);
  opacity: 0.62;
  mix-blend-mode: screen;
  z-index: 1000001;
}

.cursor-ring.active {
  width: 62px;
  height: 62px;
  border-color: var(--accent);
}

.theme-btn {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  height: 54px;
  min-width: 142px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--strong-glass), var(--glass));
  color: var(--text);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px var(--shadow);
  z-index: 2147483646 !important;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.theme-btn:hover {
  transform: translate3d(0, -3px, 0);
  border-color: var(--accent-border);
  box-shadow: 0 24px 70px var(--shadow);
}

.theme-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
}

.theme-name {
  font-size: 14px;
  font-weight: 800;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
}

.hero-frame {
  position: relative;
  max-width: 1120px;
  padding: 42px 28px;
  overflow: visible;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 12% 0 4%;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 30%),
    radial-gradient(circle at 56% 58%, var(--hot-soft), transparent 34%);
  filter: blur(34px);
}

.hero-kicker {
  width: fit-content;
  margin: 0 auto 18px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 18px 40px var(--shadow);
}

.title {
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  background: linear-gradient(110deg, #ffffff 0%, var(--accent) 26%, var(--primary) 58%, var(--hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 18px 38px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 28px var(--accent-soft));
  animation: titleRise 0.9s ease both;
}

[data-theme="light"] .title {
  background: linear-gradient(110deg, #111827 0%, #0f766e 30%, #4f46e5 64%, #be185d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 18px 34px rgba(31, 41, 55, 0.14));
}

.subtitle {
  max-width: 760px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.65;
  font-weight: 600;
  animation: fadeUp 1s ease 0.12s both;
}

@keyframes titleRise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-section {
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  margin-bottom: 30px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 900;
}

.grid {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.grid .card {
  min-height: 150px;
  padding: 24px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.16);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.grid .card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg, transparent, var(--accent-soft), transparent, var(--primary-soft), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.grid .card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--strong-glass), var(--bg-2));
  z-index: 0;
}

[data-theme="light"] .grid .card::after {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.86));
}

.grid .card h3 {
  position: relative;
  z-index: 1;
  max-width: 210px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
}

.grid .card:hover {
  transform: translateY(-12px) scale(1.025);
  border-color: var(--accent-border);
  box-shadow: 0 30px 80px var(--shadow);
}

.grid .card:hover::before {
  opacity: 1;
  animation: spinLight 2.6s linear infinite;
}

@keyframes spinLight {
  to {
    transform: rotate(360deg);
  }
}

.contact-section {
  display: flex;
  justify-content: center;
  padding: 80px 20px 110px;
}

.contact-card {
  width: 100%;
  max-width: 560px;
  padding: 34px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--strong-glass);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 70px var(--shadow);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 38px;
  margin-bottom: 18px;
}

.contact-card p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 17px;
  font-weight: 600;
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

.link:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.whatsapp-link,
.resume-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  min-height: 52px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.whatsapp-link {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.28);
}

.whatsapp-link:hover,
.resume-link:hover {
  transform: translateY(-4px);
}

.wa-icon {
  width: 19px;
  height: 19px;
}

.resume-link {
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
}

.resume-link::before {
  content: "📄";
}

.resume-link:hover {
  border-color: var(--primary);
  box-shadow: 0 16px 36px var(--shadow);
}

.job {
  text-align: center;
  margin-top: 22px;
  font-size: 21px;
  font-weight: 800;
}

@media (max-width: 700px) {
  body {
    cursor: auto;
    font-size: 16px;
  }

  a,
  button,
  .card {
    cursor: pointer;
  }

  .cursor-dot,
  .cursor-ring,
  .cursor-shadow {
    display: none;
  }

  .theme-btn {
    position: fixed !important;
    top: 14px !important;
    right: 14px !important;
    min-width: 124px;
    height: 50px;
    padding: 0 12px;
    z-index: 10000000;
  }

  .theme-name {
    font-size: 12px;
  }

  .hero {
    min-height: 72vh;
    padding: 100px 18px 60px;
  }

  .title {
    font-size: clamp(50px, 16vw, 78px);
  }

  .subtitle {
    font-size: 17px;
  }

  .contact-card {
    padding: 24px;
  }
}
