* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #f8fbff, #eef4ff);
  color: #1f2a44;
}

:root {
  --card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(238, 244, 255, 0.72));
  --soft-bg: linear-gradient(135deg, rgba(246, 248, 255, 0.85), rgba(238, 235, 255, 0.75));
}

/* NAVBAR */
.navbar {
  width: 86%;
  margin: 20px auto;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(75, 105, 255, 0.12);
  position: sticky;
  top: 20px;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #141b34;
}

.logo span {
  color: #6c63ff;
}

.nav-links a {
  margin: 0 10px;
  text-decoration: none;
  color: #4e5872;
  font-weight: bold;
  font-size: 15px;
}

.nav-links a:hover {
  color: #6c63ff;
}

.resume-btn {
  text-decoration: none;
  background: linear-gradient(135deg, #4776ff, #7c5cff);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(75, 105, 255, 0.25);
}

/* HERO / ABOUT */
.hero {
  width: 92%;
  max-width: 1600px;
  min-height: 650px;
  margin: 50px auto 95px;
  display: grid;
  grid-template-columns: 600px 680px;
  gap: 115px;
  align-items: center;
  justify-content: center;
}

/* Moves word section a little more to the left */
.hero-text {
  max-width: 600px;
  justify-self: start;
  transform: translateX(-35px);
}

.small-title {
  color: #6c63ff;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 72px;
  line-height: 1;
  color: #141b34;
  margin-bottom: 18px;
}

.hero h1 span {
  color: #6c63ff;
}

.hero h2 {
  font-size: 30px;
  margin-bottom: 22px;
  color: #1f2a44;
}

.hero p {
  color: #64708a;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 14px;
  font-weight: bold;
  transition: 0.3s;
}

.primary-btn {
  background: linear-gradient(135deg, #4776ff, #7c5cff);
  color: white;
  box-shadow: 0 12px 25px rgba(91, 108, 255, 0.3);
}

.secondary-btn {
  background: white;
  color: #4776ff;
  box-shadow: 0 12px 25px rgba(91, 108, 255, 0.12);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-5px);
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.socials a {
  text-decoration: none;
  background: white;
  color: #1f2a44;
  padding: 11px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(75, 105, 255, 0.12);
  font-weight: bold;
}

/* 3 OVERLAPPING FLOATING PICTURES */
.hero-stack {
  position: relative;
  width: 720px;
  height: 580px;
  justify-self: center;
}

.floating-photo {
  position: absolute;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #dfe7ff, #f5eaff);
  box-shadow: 0 20px 55px rgba(75, 105, 255, 0.2);
  transition: all 0.7s ease;
}

.floating-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* left/back photo */
.photo-a {
  width: 320px;
  height: 255px;
  top: 25px;
  left: 35px;
  z-index: 2;
  animation: floatA 5s ease-in-out infinite;
}

/* main front photo */
.photo-b {
  width: 360px;
  height: 420px;
  top: 85px;
  left: 290px;
  z-index: 4;
  animation: floatB 6s ease-in-out infinite;
}

/* bottom photo */
.photo-c {
  width: 330px;
  height: 260px;
  top: 300px;
  left: 145px;
  z-index: 3;
  animation: floatC 5.5s ease-in-out infinite;
}

@keyframes floatA {
  0% {
    transform: translateY(0px) rotate(-4deg);
  }

  50% {
    transform: translateY(-14px) rotate(-1deg);
  }

  100% {
    transform: translateY(0px) rotate(-4deg);
  }
}

@keyframes floatB {
  0% {
    transform: translateY(0px) rotate(3deg);
  }

  50% {
    transform: translateY(-18px) rotate(0deg);
  }

  100% {
    transform: translateY(0px) rotate(3deg);
  }
}

@keyframes floatC {
  0% {
    transform: translateY(0px) rotate(2deg);
  }

  50% {
    transform: translateY(-12px) rotate(-1deg);
  }

  100% {
    transform: translateY(0px) rotate(2deg);
  }
}

/* GENERAL SECTIONS */
.section {
  width: 86%;
  margin: 110px auto;
  position: relative;
  padding-top: 30px;
}

/* Soft divider between sections */
.section::before {
  content: "";
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(108, 99, 255, 0.35),
    transparent
  );
}

/* Small glowing dot in the middle of divider */
.section::after {
  content: "";
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  background: #6c63ff;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(108, 99, 255, 0.5);
}



.section-title {
  text-align: center;
  font-size: 36px;
  color: #141b34;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: #64708a;
  font-size: 17px;
  margin-bottom: 44px;
}

/* EXPERIENCE TIMELINE */
.timeline {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 235px;
  top: 10px;
  width: 3px;
  height: calc(100% - 20px);
  background: linear-gradient(180deg, #6c63ff, #a4d8ff);
  border-radius: 20px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 200px 40px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 34px;
  position: relative;
}

.timeline-date {
  text-align: right;
  color: #6c63ff;
  font-weight: bold;
  padding-top: 8px;
  white-space: nowrap;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  background: white;
  border: 4px solid #6c63ff;
  border-radius: 50%;
  margin-top: 6px;
  z-index: 2;
  box-shadow: 0 0 0 8px rgba(108, 99, 255, 0.12);
}

.timeline-content {
  background: white;
  padding: 26px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(75, 105, 255, 0.1);
  transition: 0.3s;
}

.timeline-content:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(75, 105, 255, 0.16);
}

.timeline-content h3 {
  color: #1f2a44;
  margin-bottom: 10px;
}

.timeline-content p {
  color: #64708a;
  line-height: 1.7;
}

.timeline-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.timeline-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* TAGS */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tags span {
  background: #eef3ff;
  color: #4f67ff;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 20px;
  font-weight: bold;
}

/* PROJECTS */
.project-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(460px, 1fr));
  gap: 36px;
}

.project-card {
  background: white;
  padding: 38px;
  min-height: 315px;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(75, 105, 255, 0.1);
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(75, 105, 255, 0.18);
}

.project-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
}

.blue {
  background: #e7edff;
}

.green {
  background: #e4fbf5;
}

.pink {
  background: #ffe8ef;
}

.orange {
  background: #fff2dc;
}

.project-card h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.project-card p {
  color: #64708a;
  line-height: 1.8;
  font-size: 17px;
}

.project-link {
  display: inline-block;
  margin-top: 18px;
  color: #5b6cff;
  text-decoration: none;
  font-weight: bold;
}

/* SKILLS */
.skills-card {
  max-width: 950px;
  margin: 0 auto;
  background: white;
  padding: 36px;
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(75, 105, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.skills-card span {
  background: #f4f7ff;
  color: #3d4660;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(75, 105, 255, 0.08);
}

/* VOLUNTEER + HOBBIES */
.split-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
}

.split-section.reverse {
  grid-template-columns: 420px 1fr;
}

.split-text {
  background: white;
  padding: 42px;
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(75, 105, 255, 0.1);
}

.split-text h2 {
  font-size: 32px;
  color: #141b34;
  margin-bottom: 18px;
}

.split-text p {
  color: #64708a;
  line-height: 1.8;
  margin-bottom: 14px;
}

.split-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #dfe7ff, #f5eaff);
  box-shadow: 0 18px 45px rgba(75, 105, 255, 0.14);
}

.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTACT */
.contact {
  background: white;
  padding: 42px;
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(75, 105, 255, 0.1);
  text-align: center;
  margin-bottom: 80px;
}

.contact h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.contact p {
  color: #64708a;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.contact-links a {
  text-decoration: none;
  background: linear-gradient(135deg, #4776ff, #7c5cff);
  color: white;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: bold;
  transition: 0.3s;
}

.contact-links a:hover {
  transform: translateY(-5px);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }

  .hero {
    width: 90%;
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
    gap: 50px;
  }

  .hero-text {
    max-width: 700px;
    margin: 0 auto;
    transform: none;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons,
  .socials {
    justify-content: center;
  }

  .hero-stack {
    width: 520px;
    height: 440px;
    margin: 0 auto;
  }

  .photo-a {
    width: 230px;
    height: 180px;
    top: 25px;
    left: 45px;
  }

  .photo-b {
    width: 260px;
    height: 310px;
    top: 70px;
    left: 220px;
  }

  .photo-c {
    width: 240px;
    height: 185px;
    top: 230px;
    left: 110px;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-row {
    grid-template-columns: 40px 1fr;
  }

  .timeline-date {
    grid-column: 2;
    text-align: left;
    padding-top: 0;
  }

  .timeline-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .timeline-content {
    grid-column: 2;
  }

  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
  }

  .split-section.reverse .split-photo {
    order: 1;
  }

  .split-section.reverse .split-text {
    order: 2;
  }

  .split-photo {
    max-width: 420px;
    justify-self: center;
  }
}

@media (max-width: 650px) {
  .navbar {
    width: 92%;
    padding: 14px 18px;
  }

  .hero,
  .section {
    width: 90%;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero h2 {
    font-size: 26px;
  }

  .hero-stack {
    width: 330px;
    height: 330px;
  }

  .photo-a {
    width: 160px;
    height: 125px;
    top: 15px;
    left: 15px;
  }

  .photo-b {
    width: 180px;
    height: 220px;
    top: 55px;
    left: 135px;
  }

  .photo-c {
    width: 170px;
    height: 130px;
    top: 185px;
    left: 55px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .timeline-row {
    gap: 12px;
  }

  .split-text {
    padding: 30px;
  }

  .split-photo {
    max-width: 330px;
  }
}

/* FORCE FULL PAGE BACKGROUND TO IVORY */
html,
body {
  background: #EDEEE9 !important;
  background-color: #EDEEE9 !important;
  background-image: none !important;
}

/* Make section backgrounds ivory too */
#experience,
#projects,
#skills,
#volunteer,
#hobbies,
#contact {
  background: #EDEEE9 !important;
}

/* Make cards warm ivory instead of plain white */
.navbar,
.timeline-content,
.project-card,
.skills-card,
.split-text,
.contact,
.socials a,
.secondary-btn {
  background: #EDEEE9 !important;
}

/* Keep photo placeholder background soft ivory/purple */
.floating-photo,
.split-photo {
  background: linear-gradient(135deg, #EDEEE9, #eee7d9) !important;
}

/* CHANGE KEYWORD TAG COLORS */
.tags span {
  background: #fffaf5 !important;
  color: #8C8875 !important;
  border: 1px solid #000000;
}

/* CHANGE BLUE/PURPLE WORD COLORS */
.small-title,
.hero h1 span,
.logo span,
.nav-links a:hover,
.timeline-date,
.project-link,
.tags span,
.section-title,
.resume-btn,
.primary-btn {
  color: #000000 !important;
}

/* CHANGE TIMELINE DATES + KEYWORD TEXT COLOR */
.timeline-date,
.tags span {
  color: #7A2E2E !important;
}

/* CHANGE TIMELINE LINE + DOT COLOR */
.timeline::before {
  background: linear-gradient(180deg, #8C8875, #e6ccb2) !important;
}

.timeline-dot {
  border-color: #8C8875 !important;
  box-shadow: 0 0 0 8px rgba(176, 137, 104, 0.18) !important;
}

/* CHANGE BUTTON COLOR */
.primary-btn,
.resume-btn,
.contact-links a {
  background: linear-gradient(135deg, #b08968, #7f5539) !important;
  color: white !important;
}

.secondary-btn,
.project-link,
.socials a {
  color: #7f5539 !important;
}

/* CHANGE SECTION DIVIDER LINE + DOT COLOR */
.section::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(176, 137, 104, 0.45),
    transparent
  ) !important;
}

.section::after {
  background: #b08968 !important;
  box-shadow: 0 0 18px rgba(176, 137, 104, 0.45) !important;
}