/* --- Variables --- */
:root {
  --bg: #0d0f12;
  --bg-card: #161a20;
  --bg-card-hover: #1c2129;
  --text: #e6e9ef;
  --text-muted: #8b92a0;
  --accent: #e8b84a;
  --accent-dim: #c49b3a;
  --border: #2a3038;
  --radius: 12px;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-dim);
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 18, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* --- Hero --- */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
}

.hero-greeting {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero-name {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.hero-role {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-decoration {
  margin-top: 2rem;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.5rem;
}

.cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(232, 184, 74, 0.35);
  color: var(--bg);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

.btn-youtube {
  margin-top: 2rem;
  background: #ff0000;
  color: #fff;
}
.btn-youtube:hover {
  color: #fff;
  box-shadow: 0 6px 24px rgba(255, 0, 0, 0.35);
}

/* --- Sections --- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-align: center;
}

/* --- About --- */

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-content p {
  max-width: 640px;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-lead {
  font-size: 1.1rem;
  color: var(--text) !important;
  font-weight: 500;
}

/* --- Skills --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  justify-content: center;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.skill-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.skill-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

/* --- Videos --- */
.section.videos {
  text-align: center;
}

.videos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.video-card {
  flex: 0 0 280px;
  max-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  color: inherit;
  text-align: left;
}
.video-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  color: inherit;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--border);
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 2.5rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.video-card:hover .video-play {
  opacity: 1;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 1rem 0;
  margin-bottom: 0.25rem;
}

.video-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0 1rem 1rem;
}

/* --- Contact --- */
.section.contact {
  text-align: center;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.contact-link {
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.contact-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-card);
    padding: 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
  }
  .hero-cta {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}
