/* Premium Dark Aesthetic Theme - Mobile Fixed */
:root {
  --bg-main: #0a0a0a;
  --bg-card: #111111;
  --text-head: #ffffff;
  --text-body: #a1a1aa;
  --accent: #ffffff;
  --border: #27272a;
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: var(--font-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  color: var(--text-head);
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* ================= LAYOUT ================= */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  scroll-margin-top: 70px;
}

/* ================= NAVIGATION ================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-head);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.6px;
  color: var(--text-body);
}

.nav-links a:hover {
  color: var(--text-head);
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-head);
  font-size: 1.3rem;
  line-height: 1;
}

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 4rem;
  align-items: center;
}

.hero-img-container {
  display: flex;
  justify-content: flex-end;
}

.hero-img {
  width: 240px;
  height: 240px;
  max-width: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  border: 1px solid var(--border);
  transition: filter 0.5s ease;
}

.hero-img:hover {
  filter: grayscale(0%);
}

.role-badge {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  color: var(--text-head);
}

/* ================= BUTTONS ================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text-head);
  color: var(--bg-main);
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid var(--text-head);
  margin-top: 2rem;
  min-height: 48px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
  background: transparent;
  color: var(--text-head);
  transform: translateY(-2px);
}

/* ================= CARDS ================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 6px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  border-color: var(--text-head);
  transform: translateY(-4px);
}

/* ================= SKILLS ================= */
.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-item {
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.skill-item:hover {
  border-color: var(--text-head);
  color: var(--text-head);
}

/* ================= CONTACT ================= */
.contact-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-btn {
  font-size: 1.4rem;
  color: var(--text-body);
  transition: transform 0.3s ease, color 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-btn:hover {
  transform: translateY(-2px);
  color: var(--text-head);
}

/* ================= FOOTER ================= */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  text-align: center;
  color: #52525b;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {
  /* Nav: show hamburger, hide links by default */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  /* Hero: stack vertically, image first on mobile */
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-img-container {
    justify-content: center;
    order: -1;
  }

  .hero-img {
    width: 180px;
    height: 180px;
  }

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

  /* Sections */
  section {
    padding: 3.5rem 0;
  }

  /* Cards */
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  /* Skills */
  .skill-grid {
    justify-content: flex-start;
  }

  /* Contact */
  .contact-actions {
    gap: 1.25rem;
  }
}

/* ================= ACCESSIBILITY ================= */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}