:root {
  color-scheme: dark;
  --bg: #050104;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f7e9ee;
  --muted: #c9a6b2;
  --accent: #ff2a55;
  --accent-2: #ff7c7c;
  --glow: rgba(255, 62, 92, 0.35);
  font-size: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(circle at top, #25040d 0%, transparent 55%),
    radial-gradient(circle at 70% 10%, #4b0c19 0%, transparent 50%),
    linear-gradient(180deg, #020001 0%, #0b0205 45%, #140308 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.loaded {
  overflow-x: hidden;
}

/* Particle Canvas */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0b0205 0%, #25040d 50%, #140308 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader-ring:nth-child(2) {
  width: 80%;
  height: 80%;
  border-top-color: var(--accent-2);
  animation-delay: 0.1s;
  animation-duration: 1.8s;
}

.loader-ring:nth-child(3) {
  width: 60%;
  height: 60%;
  border-top-color: #ff9999;
  animation-delay: 0.2s;
  animation-duration: 2.1s;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loader-text {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Fade In Animations */
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-left {
  opacity: 0;
  animation: fadeInLeft 0.8s ease forwards;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-right {
  opacity: 0;
  animation: fadeInRight 0.8s ease forwards;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.scale-in {
  opacity: 0;
  animation: scaleIn 0.6s ease forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: transparent;
}

.starfield::before,
.starfield::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.4;
  animation: twinkle 12s linear infinite;
}

.starfield::after {
  background-size: 180px 180px;
  opacity: 0.6;
  animation-duration: 18s;
}

@keyframes twinkle {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-120px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(4, 1, 3, 0.8);
  border-bottom: 1px solid var(--surface-strong);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  width: 100%;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.hero {
  display: grid;
  gap: 2rem;
  justify-items: center;
  text-align: center;
}

.hero-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.profile-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  background: url("./rdr2i.png") center/cover no-repeat, #2b0a13;
  box-shadow: 0 0 20px rgba(255, 62, 92, 0.35), 0 0 40px rgba(255, 62, 92, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 62, 92, 0.5), 0 0 60px rgba(255, 62, 92, 0.3);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.profile-text h1 {
  font-size: 2rem;
}

.profile-text p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn.primary {
  background: linear-gradient(135deg, #ff325c, #ff7b7b);
  color: #1a0409;
  box-shadow: 0 12px 24px rgba(255, 62, 92, 0.4);
}

.btn.primary:hover {
  box-shadow: 0 16px 32px rgba(255, 62, 92, 0.6), 0 0 20px rgba(255, 62, 92, 0.4);
}

.btn.ghost {
  border-color: var(--surface-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 62, 92, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
}

.floating-cards {
  display: grid;
  gap: 1rem;
  justify-items: center;
  width: min(520px, 100%);
}

.mini-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface-strong);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  text-align: left;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mini-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 62, 92, 0.2);
  border-color: rgba(255, 62, 92, 0.3);
}

.mini-head {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.mini-body {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.album {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: url("assets/back-in-the-saddle.jpg") center/cover no-repeat;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.mini-card h3 {
  font-size: 1rem;
}

.mini-card p {
  color: var(--muted);
  font-size: 0.85rem;
}

.audio-player {
  margin-top: 0.4rem;
  width: 220px;
  height: 28px;
  background: transparent;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  accent-color: #ff2a55;
}

.audio-player.needs-play {
  outline: 2px solid rgba(255, 122, 122, 0.7);
  border-radius: 999px;
}

.discord-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.discord .join {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--surface-strong);
}

.section-header {
  margin-bottom: 1.5rem;
}

.section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.section p {
  color: var(--muted);
}

.portfolio-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.portfolio-scroll::-webkit-scrollbar {
  height: 8px;
}

.portfolio-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.portfolio-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.portfolio-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.portfolio-item {
  flex: 0 0 auto;
  width: min(420px, 85vw);
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--surface-strong);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  position: relative;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 42, 85, 0.15), rgba(255, 123, 123, 0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.portfolio-item:hover::before {
  opacity: 1;
}

.portfolio-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 62, 92, 0.3);
  border-color: rgba(255, 62, 92, 0.4);
}

.portfolio-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.reviews-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.review-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.reviews-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.reviews-scroll::-webkit-scrollbar {
  height: 8px;
}

.reviews-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.reviews-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.reviews-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.review-card {
  flex: 0 0 auto;
  width: min(380px, 85vw);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--surface-strong);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.review-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865f2, #7289da);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.review-avatar::before {
  content: "";
  width: 28px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 127.14 96.36'%3E%3Cpath fill='%23fff' d='M107.7 8.07A105.15 105.15 0 0 0 81.47 0a72.06 72.06 0 0 0-3.36 6.83 97.68 97.68 0 0 0-29.11 0A72.37 72.37 0 0 0 45.64 0a105.89 105.89 0 0 0-26.25 8.09C2.79 32.65-1.71 56.6.54 80.21a105.73 105.73 0 0 0 32.17 16.15 77.7 77.7 0 0 0 6.89-11.11 68.42 68.42 0 0 1-10.85-5.18c.91-.66 1.8-1.34 2.66-2a75.57 75.57 0 0 0 64.32 0c.87.71 1.76 1.39 2.66 2a68.68 68.68 0 0 1-10.87 5.19 77 77 0 0 0 6.89 11.1 105.25 105.25 0 0 0 32.19-16.14c2.64-27.38-4.51-51.11-18.9-72.15zM42.45 65.69C36.18 65.69 31 60 31 53s5-12.74 11.43-12.74S54 46 53.89 53s-5.05 12.69-11.44 12.69zm42.24 0C78.41 65.69 73.25 60 73.25 53s5-12.74 11.44-12.74S96.23 46 96.12 53s-5.04 12.69-11.43 12.69z'/%3E%3C/svg%3E") center/cover no-repeat;
}

.review-card h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.stars {
  display: flex;
  gap: 0.15rem;
  color: #fbbf24;
  font-size: 0.95rem;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0.5rem 0;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.verified {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

.review-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-form {
  width: min(480px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-strong);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 62, 92, 0.15), 0 8px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  margin-top: 0.5rem;
  width: 100%;
  font-size: 1rem;
  padding: 1rem;
  cursor: pointer;
  border: none;
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    gap: 0.7rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-banner {
    height: 240px;
  }

  .hero-profile {
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
  }

  .audio-player {
    width: 160px;
  }
}
