/* =============================================
   VARIABLES & RESET
   ============================================= */
:root {
  --bg: #0a0a0a;
  --text: #f0f0f0;
  --text-dim: #888888;
  --accent: #e84c30;
  --card-bg: #141414;
  --card-hover: #1c1c1c;
  --border: #222222;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  height: 500vh;
}

.hero-bg-animated,
.hero-overlay,
.hero-bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

.hero-content {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Animated gradient placeholder — replace with video */
.hero-bg-animated,
.about-bg-animated {
  background: 
    radial-gradient(ellipse at 20% 50%, #1a0a0a 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, #0a1020 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, #0f0a1a 0%, transparent 50%),
    var(--bg);
  background-size: 200% 200%;
  animation: bgShift 12s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-bg-animated {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

.hero-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.about-bg-animated {
  position: absolute;
  inset: 0;
}

@keyframes bgShift {
  0%   { background-position: 0% 0%; }
  25%  { background-position: 50% 30%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 30% 80%; }
  100% { background-position: 0% 100%; }
}

/* If using a video background instead: */
/* .hero-bg-video styles are defined in the .hero section above */

.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* Name sits behind the title, fades to background on scroll */
.hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 15vw, 14rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  position: absolute;
  z-index: 1;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease-out 0.3s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Title overlays the dimmed name */
.hero-title {
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 3;
}

.title-wheel-mask {
  overflow: hidden;
  height: clamp(3.5rem, 8vw, 8rem);
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.title-wheel {
  display: flex;
  flex-direction: column;
}

.wheel-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: #d4622b;
  height: clamp(3.5rem, 8vw, 8rem);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.title-static {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  display: block;
  margin-top: 0.1em;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 60px;
}

.about-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  max-width: 1200px;
  width: 100%;
  align-items: center;
}

.profile-pic-wrapper {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  justify-self: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-pic-wrapper.visible {
  opacity: 1;
  transform: scale(1);
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-right {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.about-right.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.about-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--accent);
}

.about-bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 40px;
}

.about-education {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.edu-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.edu-degree {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.edu-school {
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* =============================================
   PROJECTS — BENTO GRID
   ============================================= */
.projects {
  padding: 120px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 60px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
}

/* Large: 2 cols, 2 rows */
.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

/* Medium: 2 cols, 1 row */
.bento-medium {
  grid-column: span 2;
  grid-row: span 1;
}

/* Small: 1 col, 1 row */
.bento-small {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease,
              box-shadow 0.4s ease;
}

.bento-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.card-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  z-index: 1;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s ease;
}

.bento-card:hover .card-info {
  transform: translateY(0);
  opacity: 1;
}

/* Always show info on large cards */
.bento-large .card-info {
  transform: translateY(0);
  opacity: 1;
}

.card-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.card-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.bento-large .card-info h3 {
  font-size: 1.5rem;
}

.card-info p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* =============================================
   EXPERIENCE
   ============================================= */
.experience {
  padding: 120px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.exp-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.exp-item:first-child {
  border-top: 1px solid var(--border);
}

.exp-period {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.exp-role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.exp-company {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.exp-type {
  color: var(--accent);
  font-weight: 500;
}

.exp-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 560px;
}

/* =============================================
   CONTACT — Big CTA + Marquee
   ============================================= */
.contact {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 60px;
}

/* Scrolling marquee */
.marquee-wrapper {
  width: 100vw;
  overflow: hidden;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 80px;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: marqueeScroll 20s linear infinite;
  width: max-content;
}

.marquee-item a {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

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

.marquee-sep {
  font-size: 1.5rem;
  color: var(--text-dim);
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Big CTA text */
.contact-cta {
  text-align: left;
  width: 100%;
  max-width: 1200px;
}

.contact-cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 14vw, 16rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.cta-indent {
  padding-left: clamp(60px, 12vw, 200px);
}

/* Footer */
.site-footer {
  position: absolute;
  bottom: 30px;
  width: 100%;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* =============================================
   SCROLL-TO-TOP BUTTON
   ============================================= */
/* Keeping this minimal — appears after scrolling */

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }

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

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

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

@media (max-width: 768px) {
  .hero-name {
    font-size: clamp(3.5rem, 18vw, 7rem);
  }

  .about {
    padding: 80px 30px;
  }

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

  .profile-pic-wrapper {
    width: 180px;
    height: 180px;
    justify-self: center;
  }

  .about-right {
    text-align: left;
  }

  .about-headline {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .projects {
    padding: 80px 20px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .bento-large,
  .bento-medium,
  .bento-small {
    grid-column: span 1;
    grid-row: span 1;
  }

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

  .experience {
    padding: 80px 20px;
  }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 32px 0;
  }

  .contact {
    padding: 40px 20px;
  }

  .contact-cta h2 {
    font-size: clamp(3rem, 16vw, 8rem);
  }

  .cta-indent {
    padding-left: clamp(30px, 8vw, 80px);
  }

  .site-footer {
    padding: 0 20px;
  }

  /* Always show card info on mobile */
  .card-info {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .about-headline {
    font-size: 1.6rem;
  }

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