/* ═══════════════════════════════════════════════════════
   SECTIONS — Hero, About, Skills, Projects, Contact
   ═══════════════════════════════════════════════════════ */

/* ══════════════ LOADER ══════════════ */

.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.loader-counter {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: var(--fw-extrabold);
  color: var(--color-text);
  line-height: 1;
}

.loader-text {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  letter-spacing: var(--ls-ultra);
  text-transform: uppercase;
  color: var(--color-accent);
  height: 1.6em;
  overflow: hidden;
  position: relative;
}

.loader-text span {
  display: block;
  text-align: center;
}

.loader-bar {
  width: min(60vw, 320px);
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-top: var(--space-md);
  position: relative;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--color-accent));
  border-radius: var(--radius-full);
  position: relative;
  box-shadow: 0 0 15px var(--color-accent-glow);
}

.loader-bar-fill::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 12px 4px var(--color-accent);
}

/* ══════════════ HERO ══════════════ */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-xl);
  width: 100%;
}

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

.hero-right {
  text-align: right;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text-muted);
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-xs);
}

.hero-name {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
}

.hero-role {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
}

.hero-role .strikethrough {
  color: var(--color-accent);
  opacity: 0.4;
  text-decoration: line-through;
  display: block;
}

.hero-role .current {
  display: block;
}

.hero-profile {
  position: relative;
  width: clamp(260px, 22vw, 360px);
  height: clamp(260px, 22vw, 360px);
}

.hero-profile-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from { opacity: 0.4; transform: scale(0.95); }
  to   { opacity: 0.7; transform: scale(1.05); }
}

.hero-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  border: 2px solid var(--color-accent-dim);
}

/* ══════════════ ABOUT ══════════════ */

#about {
  padding-top: var(--space-xl);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about-text {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: var(--lh-snug);
  color: var(--color-text);
  font-weight: var(--fw-regular);
}

.about-text .highlight {
  color: var(--color-accent);
  font-weight: var(--fw-semibold);
}

/* ══════════════ SKILLS BENTO ══════════════ */

#skills {
  padding-top: var(--space-xl);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: var(--space-md);
}

.bento-grid .span-2 {
  grid-column: span 2;
}

.bento-grid .span-2-row {
  grid-row: span 2;
}

/* ══════════════ PROJECTS ══════════════ */

#projects {
  overflow: visible;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* ══════════════ CONTACT ══════════════ */

#contact {
  padding-bottom: var(--space-xl);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-info-block h4 {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.contact-socials {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ══════════════ FOOTER ══════════════ */

.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-credit {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.footer-credit a {
  color: var(--color-accent);
  transition: opacity var(--duration-fast);
}

.footer-credit a:hover {
  opacity: 0.8;
}

.footer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

.footer-copy {
  font-size: var(--fs-small);
  color: var(--color-text-dim);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-lg);
  }

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

  .hero-profile {
    margin: 0 auto;
    width: clamp(200px, 35vw, 300px);
    height: clamp(200px, 35vw, 300px);
    order: -1;
  }

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

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  section {
    padding: var(--space-2xl) 0;
  }

  .nav-links {
    display: none;
  }

  .nav-email {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

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

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

  .bento-grid .span-2 {
    grid-column: span 1;
  }

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

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

  .modal-content {
    padding: var(--space-lg);
  }
}
