/* ========================================
   Variables & Reset
   ======================================== */
:root {
  --bg-dark: #0F1115;
  --bg-card: #1A1D24;
  --bg-card-alt: #232730;
  --accent-orange: #FF6B1A;
  --accent-orange-light: #FFA64D;
  --text-primary: #F5F5F5;
  --text-muted: #9AA0A6;
  --border-color: #2E333D;

  --font-title: 'Anton', Impact, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

autress {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  text-align: center;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}

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

strong {
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--accent-orange);
  letter-spacing: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: var(--space-sm);
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  transition: color 0.3s, background 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-orange);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

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

/* ========================================
   Container
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ========================================
   Section common
   ======================================== */
.section {
  padding: var(--space-xl) 0;
}

.section-header {
  margin-bottom: var(--space-lg);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.label-square {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent-orange);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--text-primary);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-xl) 0;
  overflow: hidden;
}

.hero-accent-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--accent-orange);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  padding-left: calc(var(--space-md) + 20px);
  width: 100%;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.95;
  color: var(--text-primary);
  margin: var(--space-sm) 0;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--accent-orange-light);
  margin-bottom: var(--space-md);
}

.hero-line {
  width: 80px;
  height: 4px;
  background: var(--accent-orange);
  margin-bottom: var(--space-lg);
}

.hero-stats {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

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

.hero-stat-value {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--text-primary);
}

.hero-stat-value.accent {
  color: var(--accent-orange);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-stat-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ========================================
   Cards
   ======================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--space-md);
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.card-accent {
  border-left: 5px solid var(--accent-orange);
}

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

.card-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-quote {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--accent-orange);
  background: var(--bg-card-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--accent-orange-light);
  font-style: italic;
}

.card-divider {
  width: 40px;
  height: 2px;
  background: var(--accent-orange);
  margin: var(--space-sm) 0;
}

/* ========================================
   About (Section 2)
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-md);
  align-items: start;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table tr {
  border-bottom: 1px solid var(--border-color);
}

.profile-table tr:last-child {
  border-bottom: none;
}

.profile-table td {
  padding: 12px 0;
}

.profile-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 40%;
}

.profile-value {
  font-weight: 600;
  text-align: right;
}

/* ========================================
   Stats (Section 3)
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.stat-card-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-orange);
}

.stat-number {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(4rem, 8vw, 7rem);
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.stat-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stats-quote {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.stats-quote strong {
  color: var(--text-primary);
}

/* ========================================
   Experience (Section 4)
   ======================================== */
.experience-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-md);
  align-items: start;
}

.grade-title {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--accent-orange);
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.grade-subtitle {
  color: var(--accent-orange-light);
  font-size: 1rem;
}

/* ========================================
   Skills (Section 5)
   ======================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-sm);
}

.skill-name {
  font-family: var(--font-title);
  font-size: 1.3rem;
}

.skill-level {
  color: var(--accent-orange-light);
  font-size: 0.9rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-card-alt);
  border-radius: 3px;
  overflow: hidden;
  margin-top: var(--space-sm);
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent-orange);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   Motivation (Section 6)
   ======================================== */
.motivation-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.motivation-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.motivation-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.motivation-number {
  font-family: var(--font-title);
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--accent-orange);
  line-height: 1;
  flex-shrink: 0;
}

.motivation-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  margin-bottom: var(--space-xs);
}

.motivation-content p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   Footer Hero
   ======================================== */
.footer-hero {
  min-height: 80vh;
}

.footer-hero .hero-title {
  font-size: clamp(4rem, 12vw, 10rem);
}

/* ========================================
   Footer Bar
   ======================================== */
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ========================================
   Reveal animations
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Mobile menu
   ======================================== */
.nav-links.open {
  display: flex;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .about-grid,
  .experience-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .motivation-card {
    padding: var(--space-md);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    padding-left: calc(var(--space-md) + 14px);
  }

  .hero-stats {
    gap: var(--space-md);
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .motivation-card {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .footer-bar {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}
