@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --sidebar-width: 120px;
  --sidebar-bg: #dee6dc;
  --text-color: #14412a;
  --font-family: "Poppins", sans-serif;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--sidebar-bg);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
p {
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
}

a {
  color: #14412a;
  text-decoration: none;
}

/* Container (Bootstrap-like max-widths) */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
  max-width: 1200px;
}

/* Row */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -0.75rem;
}

/* Columns */
.col {
  padding-inline: 0.75rem;
  flex: 1 0 0%;
}

/* Optional fixed 50/50 columns */
.col-left,
.col-right {
  flex: 0 0 50%;
}

.shadow {
  /* box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px,
    rgba(0, 0, 0, 0.04) 0px 10px 10px -5px; */
  box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

.border-radius {
  border-radius: 12px;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .col-left,
  .col-right {
    flex: 0 0 100%;
  }
  .row {
    flex-direction: column;
  }
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: -100%;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  overflow-y: none;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.sidebar-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h2 {
  font-size: 30px;
  font-weight: 500;
}

.resume-download p {
  margin-top: 0px;
  font-size: 16px;
  color: #7d968a;
  font-weight: 600;
}

.nav-icon:hover path,
.nav-icon:active {
  fill: #14412a !important;
  color: #14412a !important;
}

.nav-icon:hover .resume-download p {
  color: var(--text-color);
}

.resume-download:hover p,
.nav-icon:hover path {
  color: var(--text-color);
  fill: #14412a !important;
}

p.nav-icon:hover {
  color: var(--text-color);
}

.sidebar-menu a {
  display: block;
  padding: 1.25rem 1.25rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
}

.button,
button {
  padding: 0.5em 2em;
  border-radius: 20px;
  border: 2px solid var(--text-color);
  font-family: "Poppins", sans-serif;
  margin-top: 2em;
  background-color: transparent;
  cursor: pointer;
}

.button:hover {
  background-color: #b3c1ff;
  border: 2px solid #b3c1ff;
}

/* Main content */
#mainContent {
  margin-left: 0; /* Will adjust if sidebar is persistent on desktop */
  margin-top: 1em;
  margin-bottom: 1em;
  margin-right: 1em;
  background-image: linear-gradient(#f9f8f5, #fffbee);
  height: calc(100vh - 4em);
  padding: 2em 4em 0 4em;
  border-radius: 28px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
  z-index: 1000;
  overflow-y: scroll;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  /* justify-content: space-around; */
}

/* Desktop: show sidebar always */
@media (min-width: 1024px) {
  .sidebar {
    left: 0;
    transform: none;
  }

  #mainContent {
    margin-left: var(--sidebar-width);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 7));
  }
}

.slider {
  background-color: #f9f8f5;
  height: 350px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100% !important;
}
.slider::before,
.slider::after {
  content: "";
  height: 350px;
  position: absolute;
  width: 400px;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(249, 248, 245, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.slider::before {
  left: 0;
  top: 0;
}

.slide-track {
  animation: scroll 40s linear infinite;
  display: flex;
  width: calc(250px * 14);
}

.slide {
  height: 350px;
  width: 400px;
  margin: 0 1em;
  border-radius: 12px;
}
.slide img {
  border-radius: 12px;
  object-fit: cover;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px,
    rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
}

.hero h1 {
  font-size: 50px;
  text-align: center;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -2px;
  line-height: 125.5%;
}

.hero-headshot {
  display: flex;
  justify-content: center;
}

.hero-arrow {
  display: flex;
  justify-content: center;
  padding-left: 20%;
}

/* =========================================================
   Experience Styles
   ========================================================= */

#experience h1 {
  text-align: center;
  color: var(--text-color);
  font-size: 50px;
  font-weight: 600;
  margin-top: 0px;
}

.experience-container h2 {
  font-size: 40px;
  color: var(--text-color);
  font-weight: 700;
}

.experience-container p {
  padding-right: 5%;
}

.experience-container {
  background-color: #f2f5f0;
  padding: 2em;
  border-radius: 13px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px,
    rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
  margin-bottom: 2em;
}

.experience-image {
  display: block;
  width: 100%;
  height: auto; /* 👈 critical */
  max-width: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px,
    rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
}

span.pill {
  background-color: #b3c1ff;
  padding: 0.25rem 1.75rem;
  border-radius: 20px;
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
}

.freelance-container {
  width: 100%;
  min-height: 320px; /* flexible instead of fixed */
  max-height: 600px;
  background-color: #b3c1ff;
  border-radius: 13px;
  margin: 1em;
  padding: 1.5em;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px,
    rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.freelance-container h2 {
  padding-left: 1em;
  font-size: 30px;
  color: var(--text-color);
}

.freelance-image {
  transform: rotate(-15deg);
}

.freelance-container img {
  display: block;
  float: right;
  height: auto;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-radius: 10px;
  margin-top: 5px;
}

.freelance-container:hover .freelance-image {
  transform: scale(1.02) rotate(-8deg);
}

.freelance-icon {
  display: flex;
  align-self: flex-end;
}

/* =========================================================
   About Me Styles
   ========================================================= */

#about-me h1 {
  text-align: center;
  color: var(--text-color);
  font-size: 50px;
  font-weight: 600;
  margin-top: 0px;
}

.about-me-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 2em;
}

.about-me-text p {
  font-size: 20px;
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 10px;
  width: 100%;
  max-height: 600px;
  float: right;
}

.grid-item-1 {
  grid-area: 1 / 1 / 3 / 2;
}

.grid-item-1 img,
.grid-item-2 img,
.grid-item-3 img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}
.grid-item-2 {
  grid-area: 1 / 2 / 2 / 3;
  object-fit: cover;
}
.grid-item-3 {
  grid-area: 2 / 2 / 3 / 3;
  object-fit: cover;
}

/* =========================================================
   Contact Styles
   ========================================================= */

#contact {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contact h1 {
  text-align: center;
  color: var(--text-color);
  font-size: 50px;
  font-weight: 600;
  margin-top: 0px;
  margin-bottom: 0;
}

#contact p {
  max-width: 800px;
}

.contact-email {
  margin-top: 1em;
  font-size: 35px;
  color: #b3c1ff;
}

.contact-email:hover {
  text-decoration: line-through;
}

.minimal-form {
  padding-top: 2em;
  margin: 2em auto;
  width: 50%;
  color: #0f5132;
}

.form-row {
  display: flex;
  gap: 40px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group.full {
  margin-top: 40px;
}

label {
  font-size: 14px;
  margin-bottom: 8px;
  font-family: var(--font-family);
  font-weight: 600;
}

input,
textarea {
  border: none;
  border-bottom: 2px solid #cfd8ff;
  background: transparent;
  padding: 8px 4px;
  font-size: 14px;
  outline: none;
}

input:focus,
textarea:focus {
  border-bottom-color: #0f5132;
}

textarea {
  resize: none;
}

button {
  align-self: flex-end;
}

/* =========================================================
   Bottom Nav
   ========================================================= */

/* bottom nav container */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: var(--sidebar-bg);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  margin: 0 5px;
  border-radius: 30px 30px 0 0;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 5px 15px 0px;
}

/* nav links */
.bottom-nav .nav-link {
  color: #aaa;
  text-decoration: none;
  font-size: 12px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: color 0.2s ease;
  justify-content: center;
}

.bottom-nav .nav-link .nav-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* active state */
.bottom-nav .nav-link.active {
  color: #fff;
}

/* tap effect */
.bottom-nav .nav-link:active {
  transform: scale(0.95);
}

/* =========================================================
   Media Queries
   ========================================================= */

/* hide on larger screens */
@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

/* Small Screens */
@media (max-width: 768px) {
  #mainContent {
    margin: 0;
    border-radius: 0;
    height: 100vh;
    padding: 1em 0;
  }

  .hero h1 {
    font-size: 32px;
    width: 300px;
    margin: 0 auto;
  }

  #experience h1,
  #about-me h1,
  #contact h1,
  h1 {
    font-size: 32px;
  }

  .experience-container h2 {
    font-size: 28px;
  }

  .hero-headshot {
    margin: 0 auto;
    width: 200px;
  }

  .hero-arrow {
    display: none;
  }

  .slider::before,
  .slider::after {
    content: "";
    height: 350px;
    position: absolute;
    width: 100%;
    z-index: 2;
    background: linear-gradient(
      to right,
      rgba(249, 248, 245, 0.2) 0%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .resume-download p {
    margin-bottom: 5px;
    margin-top: -5px;
    font-size: 14px;
  }

  .experience-container .row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .experience-image {
    margin-top: 1.5em;
  }
  .freelance-image {
    transform: rotate(-8deg);
  }

  .row {
    flex-direction: column;
    margin-inline: 0;
  }

  .freelance-container {
    margin: 1em 0;
    overflow: hidden;
    padding: 0;
  }

  .freelance-container img {
    max-width: 100%;
    margin: 1em auto 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .grid-item-1,
  .grid-item-2,
  .grid-item-3 {
    grid-area: auto;
  }

  .grid-item-1 img,
  .grid-item-2 img,
  .grid-item-3 img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .contact-email {
    display: block;
    font-size: 20px;
  }
  .minimal-form {
    width: 100%;
    padding-bottom: 4em;
  }

  .form-row {
    flex-direction: column;
  }
}
