* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

:root {
  --font: #27272a;
  --font-hover: #a1a1aa;
  --dark-mode-btn: #52525b;
  --dark-mode-btn-hover: rgb(0, 0, 0);
  --background-color: #fafafa;
  --logo-color: #fa0f00;
  --about-bg: #fafafa;
  --skill-bg: #fafafa;
  --skill-bg-hover: #f1f1f1;
  --description-bg: #fafafa;
  --featured-bg: #fafafa;
  --cta-primary-bg: #18181b;
  --cta-primary-fg: #fafafa;
  --cta-primary-hover: #2a2a2e;
  --cta-secondary-bg: #f1f1f3;
}
.dark-theme {
  --font: #e4e4e7;
  --font-hover: #52525b;
  --dark-mode-btn: rgba(222, 222, 222, 0.171);
  --dark-mode-btn-hover: rgb(142, 142, 33);

  --background-color: #18181b;
  --logo-color: #fa0f00;
  --about-bg: #19191c;
  --skill-bg: #19191c;
  --skill-bg-hover: #141313;
  --description-bg: #19191c;
  --featured-bg: #19191c;
  --cta-primary-bg: #fafafa;
  --cta-primary-fg: #18181b;
  --cta-primary-hover: #e4e4e7;
  --cta-secondary-bg: #27272a;
}

body {
  transition-duration: 900ms;
  transition-timing-function: ease-out;
}

.body-container {
  padding: 2rem;
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-color);
  color: var(--font);
  display: flex;
  flex-direction: column;
  max-width: 1080px;
  margin: 0 auto;
}

/* HEADER */
.header-list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style-type: none;
  font-size: 1.25rem;
}

.logo {
  margin-right: auto;
  font-weight: 600;
  color: var(--logo-color);
  font-size: 2.4rem;
}

a {
  text-decoration: none;
  color: var(--font);
  font-weight: 600;
  transition-duration: 150ms;
}

a:hover {
  color: var(--font-hover);
}

.light-dark {
  width: 18px;
  height: 18px;
}
.light-dark-btn {
  background: var(--dark-mode-btn);
  padding: 9px 9px 5px 9px;
  border: 0px solid transparent;
  border-radius: 50px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.14);
  transition-duration: 500ms;
}

.light-dark-btn:hover {
  background: var(--dark-mode-btn-hover);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* ALL SECTIONS*/

section {
}

.section-starter {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 40px;
}

.section-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--logo-color);
  margin-bottom: 8px;
}

/* HERO SECTION */

.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 75px 0;
  margin-top: 50px;
  margin-bottom: 150px;
}

.heading {
  flex: 1;
  transform: translate(40px, -24px);
}

.hero-img {
  animation: float 3s infinite ease-in-out;
}

/* ABOUT SECTION */

.about-section {
  margin-bottom: 175px;
}

.section-eyebrow:has(+ .display-heading) {
  margin-bottom: 24px;
}
.display-heading {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--font);
  margin-bottom: 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--font);
  opacity: 0.75;
  margin-bottom: 20px;
}
.about-p:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.stat-card {
  padding: 24px;
  border-radius: 12px;
  background-color: var(--about-bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--logo-color) 10%, transparent);
  color: var(--logo-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon svg {
  width: 20px;
  height: 20px;
}
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--font);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--font);
  opacity: 0.55;
  font-weight: 500;
}

/* SKILLS SECTION */

.skills-section {
  margin-bottom: 175px;
}

.skills-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 18px;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background-color: var(--skill-bg);
  box-shadow: 0 5px 10px 1px rgba(0, 0, 0, 0.07);
}

.skill:hover {
  background-color: var(--skill-bg-hover);
}

.skill img {
  width: 50px;
  height: 50px;
}

.skill span {
  font-size: 0.8rem;
}

.description {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  margin-left: auto;
  max-width: 60%;
  min-height: 50px;
  padding: 23px 15px;
  border-radius: 20px;
  background-color: var(--description-bg);
  box-shadow: 0 5px 5px 1px rgba(0, 0, 0, 0.047);
}

/* PROJECTS CAROUSEL */
.projects-section {
  margin-bottom: 175px;
}

.carousel {
  overflow: hidden;
  padding: 12px 20px 64px;
  margin: -12px -20px -32px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.project-card {
  flex: 0 0 calc(50% - 12px);
  background: var(--about-bg);
  border-radius: 20px;
  box-shadow: 0 20px 12px 1px rgba(0, 0, 0, 0.06);
  border-top: 0.3px solid rgba(128, 128, 128, 0.19);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--font);
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 28px 1px rgba(0, 0, 0, 0.1);
  color: var(--font);
}

.project-card-media {
  position: relative;
  background: rgba(128, 128, 128, 0.08);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-shot-placeholder {
  font-size: 1rem;
  font-weight: 500;
  color: var(--font);
  opacity: 0.4;
}

.project-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.project-card-blurb {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--font);
  opacity: 0.75;
  margin-bottom: 20px;
}

.project-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 24px;
}
.project-card-tech li {
  background: rgba(128, 128, 128, 0.1);
  color: var(--font);
  opacity: 0.85;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
}

.project-card-divider {
  border-top: 1px solid rgba(128, 128, 128, 0.15);
  margin-bottom: 20px;
}

.project-card-stats {
  display: flex;
  gap: 32px;
  list-style: none;
}
.project-card-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-card-stats .stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--logo-color);
  letter-spacing: -0.02em;
  line-height: 1;
}
.project-card-stats .stat-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--font);
  opacity: 0.55;
}


/* CAROUSEL NAV */
.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}
.carousel-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--about-bg);
  border: 1px solid rgba(128, 128, 128, 0.15);
  color: var(--font);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 200ms, opacity 200ms;
}
.carousel-arrow:hover:not(:disabled) {
  background: var(--skill-bg-hover);
}
.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.carousel-dots {
  display: flex;
  gap: 10px;
  list-style: none;
  align-items: center;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 200ms, transform 200ms, width 200ms;
}
.carousel-dot.active {
  background: var(--logo-color);
  width: 24px;
  border-radius: 4px;
}

/*CONTACT FORM*/
form {
  border-radius: 20px;
  background-color: var(--about-bg);
  box-shadow: 0 20px 12px 1px rgba(0, 0, 0, 0.06);
  border-top: 0.3px solid rgba(128, 128, 128, 0.121);
}
#fs-frm-inputs {
  display: flex;
  flex-direction: column;
  padding: 5rem;
  gap: 22px;
  border: 0px solid transparent;
}

.submitButton {
  width: fit-content;
  padding: 11px 22px;
  border-radius: 999px;
  border: 0;
  background-color: var(--cta-primary-bg);
  color: var(--cta-primary-fg);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background-color 200ms ease-out;
}
.submitButton:hover {
  background-color: var(--cta-primary-hover);
}

label {
  display: flex;
  flex-direction: column;
}

label > * {
  border: 0px solid transparent;
  border-radius: 10px;
  padding: 10px;
  background-color: var(--about-bg);
  box-shadow: 0 10px 5px 1px rgba(0, 0, 0, 0.037);
  border-top: 0.01px solid rgba(128, 128, 128, 0.078);
  font-family: 'Poppins', sans-serif;
}

.hero-section {
  animation-name: fadeIn;
  animation-duration: 600ms;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
  position: relative;
  opacity: 0;
}

/* HERO HEADING */
.hero-heading {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--font);
}
.hero-heading .line {
  display: block;
  font-weight: inherit;
}
.wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave-animation 2.4s ease-in-out infinite;
  margin-left: 6px;
}

/* HERO CTAs — Apple-style pills */
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  word-spacing: normal;
  border-radius: 999px;
  transition: transform 200ms ease-out, background-color 200ms ease-out, color 200ms;
}
.cta-primary {
  background-color: var(--cta-primary-bg);
  color: var(--cta-primary-fg);
}
.cta-primary:hover {
  color: var(--cta-primary-fg);
  background-color: var(--cta-primary-hover);
}
.cta-secondary {
  background-color: transparent;
  color: var(--logo-color);
  padding-left: 4px;
  padding-right: 4px;
}
.cta-secondary:hover {
  color: var(--logo-color);
}
.cta-secondary .cta-arrow {
  transition: transform 200ms ease-out;
}
.cta-secondary:hover .cta-arrow {
  transform: translateX(3px);
}

/* JOURNEY TIMELINE */
.journey-section {
  margin-bottom: 175px;
}
.timeline {
  list-style: none;
  position: relative;
  padding-left: 32px;
  border-left: 2px solid rgba(128, 128, 128, 0.2);
}
.timeline-item {
  position: relative;
  padding: 0 0 40px 24px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--logo-color);
  box-shadow: 0 0 0 4px var(--background-color);
}
.timeline-meta {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}
.timeline-dates {
  font-size: 0.85rem;
  color: var(--font-hover);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.timeline-company {
  font-size: 1rem;
  font-weight: 600;
  color: var(--font);
}
.timeline-role {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.timeline-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--font);
}

/*KEYFRAMES*/
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes wave-animation {
  0%, 60%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}
