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

html {
  scroll-behavior: smooth;
  font-size: 130%;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ===== DESIGN TOKENS ===== */
:root {
  --bg-main: #fff7ee;
  --text-main: #222;
  --accent: #fa8000;
  --accent-secondary: #3f91f9;
  --surface: #fff;
  --muted: #666;
  --shadow: #222;
  --border-radius: 8px;
  --shadow-brutal: 4px 4px 0 var(--shadow);
  --shadow-brutal-sm: 2px 2px 0 var(--shadow);
  --shadow-brutal-lg: 8px 8px 0 var(--shadow);
  --transition-fast: 150ms ease;
  --transition-med: 300ms ease;
  --transition-slow: 600ms ease-out;
  --max-width: 1200px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--text-main);
}

.section-heading {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-heading-underline {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 2rem;
}

/* ===== UTILITY ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid var(--shadow);
  box-shadow: var(--shadow-brutal);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-brutal-sm);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--surface);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
}

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border: 2px solid var(--shadow);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-brutal);
  padding: 24px;
}

/* ===== SKILL TAGS ===== */
.tag {
  display: inline-block;
  padding: 4px 14px;
  border: 2px solid var(--shadow);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-brutal-sm);
  background: var(--surface);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  box-shadow: var(--shadow-brutal);
}

.contact__input:focus-visible {
  outline: none;
  border-color: var(--accent);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 247, 238, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--shadow);
  transition: background var(--transition-med);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav__logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition-med);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-med);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-main);
}

.nav__link.active::after {
  width: 100%;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: transform var(--transition-med), opacity var(--transition-med);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 260px;
    height: calc(100vh - 70px);
    background: var(--bg-main);
    border-left: 2px solid var(--shadow);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    transition: right var(--transition-med);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__hamburger.open .nav__hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__hamburger.open .nav__hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .nav__hamburger.open .nav__hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ===== HERO ===== */
.hero {
  padding-top: 120px;
  padding-bottom: 40px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero__heading {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero__subheading {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.hero__intro {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 500px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image-wrapper {
  border: 3px solid var(--accent);
  border-radius: 16px;
  box-shadow: var(--shadow-brutal-lg);
  overflow: hidden;
  max-width: 380px;
  margin-left: auto;
}

.hero__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== MARQUEE ===== */
.marquee {
  margin-top: 50px;
}

.marquee__border {
  height: 2px;
  background: var(--shadow);
}

.marquee__track {
  overflow: hidden;
  padding: 16px 0;
}

.marquee__content {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee__content:hover {
  animation-play-state: paused;
}

.marquee__content span {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Hero responsive */
@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__heading {
    font-size: 2.2rem;
  }

  .hero__intro {
    max-width: 100%;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero__image {
    order: -1;
  }
}

/* ===== ABOUT ===== */
.about {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.about .section-heading-underline {
  margin-left: auto;
  margin-right: auto;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about__stat {
  text-align: center;
  padding: 28px 16px;
}

.about__stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.about__stat-plus {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.about__stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 768px) {
  .about__stats {
    grid-template-columns: 1fr;
    max-width: 250px;
    margin: 0 auto;
  }
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  width: 50%;
  padding: 0 40px 40px;
}

.timeline__item--left {
  left: 0;
  text-align: right;
}

.timeline__item--right {
  left: 50%;
}

.timeline__dot {
  position: absolute;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 3px solid var(--bg-main);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent);
}

.timeline__item--left .timeline__dot {
  right: -8px;
}

.timeline__item--right .timeline__dot {
  left: -8px;
}

.timeline__card {
  text-align: left;
}

.timeline__date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline__company {
  font-size: 1.3rem;
  margin: 4px 0 2px;
}

.timeline__role {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.timeline__bullets {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.timeline__bullets li {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.timeline__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Timeline responsive */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline__item {
    width: 100%;
    left: 0 !important;
    padding-left: 50px;
    padding-right: 0;
    text-align: left;
  }

  .timeline__dot {
    left: 12px !important;
    right: auto !important;
  }
}

/* ===== PROJECTS ===== */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.projects__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 400ms ease, transform 400ms ease, box-shadow 400ms ease;
}

/* Hover: dim siblings, lift hovered card */
.projects__grid:hover .projects__card {
  opacity: 0.3;
}

.projects__grid .projects__card:hover {
  opacity: 1;
  transform: translateY(-8px);
  box-shadow: var(--shadow-brutal-lg);
}

.projects__card-icon {
  width: 48px;
  height: 48px;
}

.projects__card-image {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #eee;
}

.projects__card-image img {
  width: 100%;
  height: auto;
}

.projects__card-title {
  font-size: 1.15rem;
}

.projects__card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  flex-grow: 1;
}

.projects__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

@media (max-width: 1024px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== VENTURES ===== */
.ventures-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, #fff0e0 50%, var(--bg-main) 100%);
}

.ventures__intro {
  color: var(--muted);
  max-width: 550px;
  margin-bottom: 40px;
  line-height: 1.7;
  font-size: 1rem;
}

.ventures__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.ventures__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  transition: transform 400ms ease, box-shadow 400ms ease;
  position: relative;
  overflow: hidden;
}

.ventures__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
}

.ventures__card:nth-child(2)::before {
  background: var(--accent-secondary);
}

.ventures__card:nth-child(3)::before {
  background: #9c27b0;
}

.ventures__card:nth-child(4)::before {
  background: #2e7d32;
}

.ventures__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-brutal-lg);
}

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

.ventures__card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ventures__card-icon--orange {
  background: #fff3e0;
  color: var(--accent);
}

.ventures__card-icon--blue {
  background: #e3f2fd;
  color: var(--accent-secondary);
}

.ventures__card-icon--purple {
  background: #f3e5f5;
  color: #9c27b0;
}

.ventures__card-icon--green {
  background: #e8f5e9;
  color: #2e7d32;
}

.ventures__badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #e8f5e9;
  color: #2e7d32;
  border: 2px solid #2e7d32;
}

.ventures__badge--free {
  background: #e3f2fd;
  color: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

.ventures__card-title {
  font-size: 1.3rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.ventures__card-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  font-style: italic;
}

.ventures__card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
}

.ventures__card-stats {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px dashed #ccc;
  border-bottom: 1px dashed #ccc;
}

.ventures__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.ventures__stat-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.ventures__stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ventures__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ventures__card-tags .tag {
  font-size: 0.7rem;
  padding: 3px 10px;
}

.ventures__card-btn {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.85rem;
  padding: 10px 24px;
}

@media (max-width: 768px) {
  .ventures__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SKILLS ===== */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skills__category-title {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.skills__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .skills__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== EDUCATION ===== */
.education__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.education__school {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.education__degree {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.education__minor {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.education__meta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.education__certs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.education__cert {
  padding: 20px;
}

.education__cert-title {
  font-size: 1rem;
  margin-bottom: 4px;
}

.education__cert-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .education__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== LEADERSHIP ===== */
.leadership__card {
  max-width: 700px;
  margin: 0 auto;
}

.leadership__date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leadership__title {
  font-size: 1.3rem;
  margin: 4px 0 2px;
}

.leadership__org {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 16px;
}

.leadership__bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leadership__bullets li {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.leadership__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent-secondary);
  border-radius: 50%;
}

/* ===== CONTACT ===== */
.contact__intro {
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact__link-card:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-brutal-sm);
}

.contact__link-card strong {
  display: block;
  font-size: 0.9rem;
}

.contact__link-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--shadow);
  border-radius: var(--border-radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  background: var(--bg-main);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.contact__input:focus {
  border-color: var(--accent);
}

.contact__textarea {
  resize: vertical;
}

@media (max-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FOOTER ===== */
.footer {
  border-top: 2px solid var(--accent);
  padding: 24px 0;
  margin-top: 0;
}

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

.footer__copy {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__socials a {
  color: var(--muted);
  transition: color var(--transition-fast);
}

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

.footer__top {
  padding: 8px 12px;
  font-size: 0;
}
