:root {
  --bg: #07070d;
  --bg-2: #0e0e18;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5fa;
  --text-2: #a8a8c0;
  --accent: #6366f1;
  --accent-2: #ec4899;
  --gold: #d4af37;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  animation: slowZoom 30s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(7, 7, 13, 0.15) 0%, rgba(7, 7, 13, 0.35) 70%, rgba(7, 7, 13, 0.6) 100%),
    linear-gradient(180deg, rgba(7, 7, 13, 0.1) 0%, rgba(7, 7, 13, 0.5) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 720px;
  position: relative;
  padding: 50px 36px;
  background: radial-gradient(ellipse at center, rgba(7, 7, 13, 0.55) 0%, rgba(7, 7, 13, 0.25) 60%, transparent 100%);
  border-radius: 32px;
}

.avatar {
  width: 160px;
  height: 160px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent-2), var(--accent));
  padding: 4px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(212, 175, 55, 0.3),
    0 0 80px rgba(99, 102, 241, 0.25);
  animation: floatY 4s ease-in-out infinite;
}

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

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-2);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 0%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero-content .title {
  color: var(--text-2);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 32px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.socials a {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--text);
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

.socials a svg { width: 18px; height: 18px; }

.socials a:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.hero-content .subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ============ PROJECTS ============ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
}

.projects h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.35s ease;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(212, 175, 55, 0.2);
}

.card-image {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    radial-gradient(ellipse at center, rgba(99, 102, 241, 0.18), transparent 70%),
    linear-gradient(135deg, #14141f, #0a0a12);
  overflow: hidden;
}

.card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.06), transparent 50%);
  pointer-events: none;
}

.card-image img {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.card:hover .card-image img {
  transform: scale(1.08) rotate(-3deg);
}

.card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card-body p {
  color: var(--text-2);
  font-size: 0.92rem;
  margin-bottom: 18px;
  flex: 1;
}

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

.play-btn {
  display: inline-block;
  transition: all 0.25s ease;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.play-btn img {
  display: block;
  height: 50px;
  width: auto;
}

.play-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.apple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 16px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.apple-btn svg { width: 20px; height: 20px; }

.apple-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.web-btn {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 18px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.web-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ============ FOOTER ============ */
footer {
  text-align: center;
  padding: 36px 24px;
  color: var(--text-2);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .hero { min-height: 90vh; padding: 60px 20px 40px; }
  .avatar { width: 130px; height: 130px; }
  .grid { grid-template-columns: 1fr; }
  .socials a { width: 42px; height: 42px; }
  .socials a svg { width: 16px; height: 16px; }
  main { padding: 60px 20px; }
}
