html {
  font-size: 14px;
  min-height: 100%;
  position: relative;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
  --game-bg: #050506;
  --game-panel: #111113;
  --game-panel-strong: #19150f;
  --game-yellow: #ffd447;
  --game-yellow-soft: rgba(255, 212, 71, 0.14);
  --game-red: #ff2d2d;
  --game-red-soft: rgba(255, 45, 45, 0.16);
  --game-orange: #ff8a1f;
  --game-text: #f4efe3;
  --game-muted: #b9ad93;
  --game-border: rgba(255, 212, 71, 0.22);
}

body {
  margin-bottom: 60px;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.96), rgba(12, 8, 8, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 212, 71, 0.035) 0 1px, transparent 1px 74px);
  color: var(--game-text);
}

a {
  color: var(--game-yellow);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #050506, 0 0 0 0.25rem rgba(255, 212, 71, 0.55);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-section {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 92px);
  overflow: hidden;
  padding: 6rem 2rem 5rem;
  position: relative;
}

.hero-background {
  inset: 0;
  position: absolute;
  z-index: 0;
}

.hero-grid {
  background:
    linear-gradient(115deg, rgba(255, 45, 45, 0.22), transparent 36%),
    linear-gradient(295deg, rgba(255, 212, 71, 0.18), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255, 212, 71, 0.08) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(255, 45, 45, 0.06) 0 1px, transparent 1px 42px);
  inset: 0;
  opacity: 0.56;
  position: absolute;
}

.hero-gradient {
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.94) 0%, rgba(5, 5, 6, 0.74) 48%, rgba(5, 5, 6, 0.9) 100%),
    linear-gradient(180deg, transparent 0%, var(--game-bg) 100%);
  inset: 0;
  position: absolute;
}

.hero-wrapper {
  position: relative;
  width: 100%;
  z-index: 1;
}

.container-hero {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 2rem;
}

.hero-content {
  align-items: center;
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.hero-left {
  animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-text-content {
  margin-bottom: 2rem;
}

.hero-text-content h1,
.hero-title {
  color: #ffffff;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.accent-text {
  background: linear-gradient(135deg, var(--game-yellow) 0%, var(--game-orange) 45%, var(--game-red) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle,
.hero-text-content p {
  color: var(--game-muted);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.7;
  max-width: 680px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.cta-button {
  border: 2px solid;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  padding: 0.95rem 1.55rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--game-yellow) 0%, var(--game-orange) 100%);
  border-color: transparent;
  box-shadow: 0 14px 36px rgba(255, 138, 31, 0.22);
  color: #100b04;
}

.cta-button.primary:hover {
  box-shadow: 0 20px 54px rgba(255, 138, 31, 0.34);
  color: #100b04;
  transform: translateY(-3px);
}

.cta-button.secondary {
  background: rgba(255, 45, 45, 0.06);
  border-color: var(--game-red);
  color: var(--game-yellow);
}

.cta-button.secondary:hover {
  background: var(--game-red-soft);
  color: var(--game-yellow);
  transform: translateY(-3px);
}

.hero-right {
  align-items: flex-end;
  animation: slideInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  justify-content: center;
  min-height: 420px;
}

.profile-stage {
  align-items: flex-end;
  display: flex;
  justify-content: center;
  min-height: 420px;
  position: relative;
  width: min(100%, 460px);
}

.profile-stage::before,
.profile-stage::after {
  content: "";
  pointer-events: none;
  position: absolute;
}

.profile-stage::before {
  background: linear-gradient(90deg, transparent, rgba(255, 212, 71, 0.42), transparent);
  bottom: 22px;
  height: 2px;
  left: 2%;
  transform: skewX(-18deg);
  width: 96%;
}

.profile-stage::after {
  background: rgba(255, 45, 45, 0.22);
  bottom: 0;
  filter: blur(18px);
  height: 48px;
  width: 82%;
}

.profile-image {
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 26px rgba(255, 45, 45, 0.22));
  height: auto;
  max-height: 560px;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  width: auto;
  z-index: 1;
}

.profile-placeholder {
  align-items: center;
  border: 1px solid var(--game-border);
  display: flex;
  height: 260px;
  justify-content: center;
  width: 260px;
}

.home-band {
  padding: 5rem 2rem;
  position: relative;
}

.featured-projects {
  background: linear-gradient(180deg, var(--game-bg) 0%, #0d0908 100%);
}

.section-header {
  margin-bottom: 3rem;
  text-align: left;
}

.section-title {
  background: linear-gradient(135deg, var(--game-yellow) 0%, var(--game-orange) 55%, var(--game-red) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.section-subtitle {
  color: var(--game-muted);
  font-size: 1.05rem;
  margin: 0;
}

.featured-project-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.featured-project-card {
  background: linear-gradient(180deg, rgba(25, 21, 15, 0.82), rgba(10, 10, 11, 0.94));
  border: 1px solid var(--game-border);
  border-radius: 8px;
  height: 100%;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.featured-project-card:hover {
  border-color: rgba(255, 45, 45, 0.72);
  box-shadow: 0 18px 46px rgba(255, 45, 45, 0.16);
  transform: translateY(-6px);
}

.featured-project-card a {
  color: inherit;
  display: block;
  height: 100%;
  text-decoration: none;
}

.featured-project-image,
.featured-project-placeholder {
  aspect-ratio: 16 / 9;
  background: #090909;
  border-bottom: 1px solid rgba(255, 212, 71, 0.18);
  display: block;
  object-fit: cover;
  width: 100%;
}

.featured-project-body {
  padding: 1.15rem;
}

.featured-project-body h3 {
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0 0 0.45rem;
}

.featured-project-body p {
  color: var(--game-yellow);
  font-size: 0.92rem;
  margin: 0;
}

.career-section {
  background: linear-gradient(180deg, #0d0908 0%, #070707 100%);
}

.education-section {
  background: linear-gradient(180deg, #070707 0%, #0b0605 100%);
}

.timeline {
  position: relative;
}

.timeline-wide {
  margin: 0 auto;
  max-width: 900px;
}

.career-section .timeline-wide {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1100px;
}

.timeline::before {
  background: linear-gradient(180deg, rgba(255, 212, 71, 0.55), rgba(255, 45, 45, 0.15), transparent);
  bottom: -30px;
  content: "";
  left: 12px;
  position: absolute;
  top: 30px;
  width: 2px;
}

.career-section .timeline::before {
  display: none;
}

.timeline-item-v2 {
  animation: fadeInUp 0.6s ease-out both;
  margin-bottom: 1.4rem;
  opacity: 0;
  padding-left: 42px;
  position: relative;
}

.career-section .timeline-item-v2 {
  margin-bottom: 0;
  padding-left: 0;
}

.career-section .timeline-marker {
  left: 1.25rem;
  top: 1.25rem;
}

.career-section .timeline-content {
  min-height: 100%;
  padding-left: 3.3rem;
}

.timeline-item-v2:nth-child(1) { animation-delay: 0.1s; }
.timeline-item-v2:nth-child(2) { animation-delay: 0.2s; }
.timeline-item-v2:nth-child(3) { animation-delay: 0.3s; }
.timeline-item-v2:nth-child(4) { animation-delay: 0.4s; }
.timeline-item-v2:nth-child(5) { animation-delay: 0.5s; }

.timeline-marker {
  background: var(--game-yellow);
  border: 3px solid #050506;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 212, 71, 0.45);
  height: 24px;
  left: 0;
  position: absolute;
  top: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  width: 24px;
}

.timeline-item-v2:hover .timeline-marker {
  background: var(--game-red);
  box-shadow: 0 0 25px rgba(255, 45, 45, 0.58);
  transform: scale(1.22);
}

.timeline-content {
  background: rgba(17, 17, 19, 0.82);
  border: 1px solid var(--game-border);
  border-radius: 8px;
  padding: 1.35rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.timeline-item-v2:hover .timeline-content {
  background: rgba(25, 21, 15, 0.9);
  border-color: rgba(255, 45, 45, 0.45);
  transform: translateX(8px);
}

.timeline-title {
  color: #ffffff;
  font-size: 1.24rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.timeline-subtitle {
  color: var(--game-yellow);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.timeline-date {
  color: var(--game-orange);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.timeline-description {
  color: var(--game-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.empty-state {
  color: var(--game-muted);
  padding: 2rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .hero-content {
    gap: 2.5rem;
    grid-template-columns: 1fr;
  }

  .hero-left {
    text-align: center;
  }

  .hero-subtitle,
  .hero-text-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .featured-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container-hero {
    padding: 0;
  }

  .hero-section,
  .home-band {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-right,
  .profile-stage {
    min-height: 320px;
  }

  .profile-image {
    max-height: 390px;
  }

  .featured-project-grid {
    grid-template-columns: 1fr;
  }

  .career-section .timeline-wide {
    grid-template-columns: 1fr;
  }

  .section-header {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: auto;
    padding-top: 3.5rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
  }

  .timeline-item-v2 {
    padding-left: 32px;
  }

  .timeline-marker {
    height: 18px;
    width: 18px;
  }
}
.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .cta-button {
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .profile-card {
    max-width: 300px;
    margin: 0 auto;
  }

  .featured-section {
    padding: 4rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-section {
    padding: 4rem 1.5rem;
  }

  .about-grid {
    gap: 2rem;
  }

  .timeline-item-v2 {
    padding-left: 30px;
  }

  .timeline-marker {
    width: 18px;
    height: 18px;
  }

  .timeline-content {
    padding: 1rem;
  }

  .timeline-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: auto;
    padding: 3rem 1rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .projects-grid {
    gap: 1rem;
  }

  .project-info-v2 {
    padding: 1.2rem;
  }

  .project-title-v2 {
    font-size: 1.15rem;
  }

  .about-column .section-header {
    margin-bottom: 1.5rem;
  }

  .timeline-item-v2 {
    margin-bottom: 1.8rem;
  }
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: #808080;
}