/* ==========================================
   styles.css — Layout, components, responsive
   ========================================== */

/* ------------------------------------------
   CSS VARIABLES
   ------------------------------------------ */

:root {
  /* Backgrounds */
  --bg-primary: #121212;
  --bg-secondary: #1c1c1c;
  --bg-elevated: #242424;

  /* Text */
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;

  /* Accent */
  --accent: #81B0FE;
  --accent-hover: #9dc3ff;
  --accent-glow: rgba(129, 176, 254, 0.15);

  /* Utility */
  --border-subtle: rgba(129, 176, 254, 0.08);
  --success: #4ade80;
  --warning: #fbbf24;

  /* Spacing */
  --section-padding: 100px;
  --container-width: 1100px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------
   RESET & BASE
   ------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ------------------------------------------
   LAYOUT
   ------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}

/* ------------------------------------------
   TYPOGRAPHY
   ------------------------------------------ */

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
}

/* ------------------------------------------
   SECTION HEADER
   ------------------------------------------ */

.section-header {
  margin-bottom: 48px;
}

.section-number {
  font-family: "Fira Code", monospace;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 1.05rem;
}

/* ------------------------------------------
   NAVBAR
   ------------------------------------------ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: background-color 0.3s, padding 0.3s;
}

.navbar.scrolled {
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 40px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  font-family: "Fira Code", monospace;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.nav-logo:hover {
  color: var(--accent);
}

/* Desktop nav links (inside navbar) */
.nav-links-desktop {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links-desktop a:hover,
.nav-links-desktop a.active {
  color: var(--text-primary);
}

.nav-links-desktop a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-number {
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  color: var(--accent);
  margin-right: 4px;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* -----------------------------------------------
   MOBILE MENU OVERLAY — fully independent element
   ----------------------------------------------- */

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-menu-links a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.mobile-menu-links a:hover {
  color: var(--text-primary);
}

.menu-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle .bar:nth-child(2) {
  transition: transform 0.15s ease, opacity 0.15s ease;
  -webkit-transform: translateZ(0);
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  visibility: hidden;
  transform: scaleX(0);
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ------------------------------------------
   HERO
   ------------------------------------------ */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-greeting {
  font-family: "Fira Code", monospace;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-button:hover {
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(129, 176, 254, 0.4);
}

.hero-avatar {
  display: flex;
  justify-content: center;
}

.avatar-wrapper {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-subtle);
  box-shadow: 0 0 60px var(--accent-glow);
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------
   VALUE CARDS (Why Choose Me)
   ------------------------------------------ */

.value-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
  will-change: transform;
}

.value-card:hover {
  box-shadow: 0 12px 40px rgba(129, 176, 254, 0.1);
}

.value-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--accent);
}

.value-card h3 {
  margin-bottom: 12px;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ------------------------------------------
   STRENGTHS & WEAKNESSES
   ------------------------------------------ */

.sw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.sw-column {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
  will-change: transform;
}

.sw-column:hover {
  box-shadow: 0 12px 40px rgba(129, 176, 254, 0.1);
}

.sw-title {
  font-size: 1.3rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.strengths-title {
  color: var(--success);
}

.weaknesses-title {
  color: var(--warning);
}

.sw-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sw-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.sw-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.strength-icon {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
}

.weakness-icon {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

/* ------------------------------------------
   TECHNICAL EXPERTISE
   ------------------------------------------ */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.expertise-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
  will-change: transform;
}

.expertise-card:hover {
  box-shadow: 0 12px 40px rgba(129, 176, 254, 0.1);
}

.expertise-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 12px;
  color: var(--accent);
}

.expertise-info h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.expertise-level {
  display: inline-block;
  font-family: "Fira Code", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.level-master {
  background: rgba(129, 176, 254, 0.15);
  color: var(--accent);
}

.level-professional {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
}

.level-intermediate {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

.level-beginner {
  background: rgba(160, 160, 160, 0.15);
  color: var(--text-secondary);
}

.expertise-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ------------------------------------------
   GAMES GRID
   ------------------------------------------ */

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.game-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
  will-change: transform;
}

.game-card:hover {
  box-shadow: 0 16px 48px rgba(129, 176, 254, 0.12);
}

.game-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card-image img {
  transform: scale(1.05);
}

.game-card-body {
  padding: 24px;
}

.game-title {
  margin-bottom: 16px;
}

.game-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-family: "Fira Code", monospace;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.game-play-btn:hover {
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(129, 176, 254, 0.35);
}

/* ------------------------------------------
   VIDEO SHOWCASES
   ------------------------------------------ */

.videos-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.video-entry {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.video-entry.reverse {
  grid-template-columns: 1fr 1.2fr;
}

.video-entry.reverse .video-wrapper {
  order: 2;
}

.video-entry.reverse .video-info {
  order: 1;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info h3 {
  margin-bottom: 12px;
}

.video-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ------------------------------------------
   CONTACT
   ------------------------------------------ */

.contact-container {
  text-align: center;
  max-width: 600px;
}

.contact-title {
  margin-top: 12px;
  margin-bottom: 16px;
}

.contact-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-fast), border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.contact-btn:hover {
  color: var(--text-primary);
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(129, 176, 254, 0.15);
}

/* ------------------------------------------
   FOOTER
   ------------------------------------------ */

.footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

/* ------------------------------------------
   RESPONSIVE — Tablet
   ------------------------------------------ */

@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  /* Switch to hamburger menu at tablet */
  .menu-toggle {
    display: flex;
  }

  .nav-links-desktop {
    display: none;
  }

  .navbar {
    padding: 16px 20px;
  }

  .navbar.scrolled {
    padding: 12px 20px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-avatar {
    order: -1;
  }

  .avatar-wrapper {
    width: 220px;
    height: 220px;
  }

  .value-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .expertise-grid {
    grid-template-columns: 1fr 1fr;
  }

  .video-entry,
  .video-entry.reverse {
    grid-template-columns: 1fr;
  }

  .video-entry.reverse .video-wrapper,
  .video-entry.reverse .video-info {
    order: unset;
  }
}

/* ------------------------------------------
   RESPONSIVE — Mobile
   ------------------------------------------ */

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .hero-section {
    padding-top: 100px;
    min-height: auto;
  }

  .avatar-wrapper {
    width: 180px;
    height: 180px;
  }

  .value-cards-grid {
    grid-template-columns: 1fr;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .sw-grid {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .game-stats {
    gap: 16px;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

}
