:root {
  --gray-50:  #faf8f6;
  --gray-100: #f2ede8;
  --gray-200: #e5ddd2;
  --gray-300: #d6c9b9;
  --gray-400: #c3b29a;
  --gray-500: #a9927d;
  --gray-600: #8b7663;
  --gray-700: #6d5c4c;
  --gray-800: #514337;
  --gray-900: #2b241e;

  --accent-green: #8da47e;
  --accent-beige: #d8c4a1;
  --content-bg: #f8f5f0;

  /* Fonts */
  --font-body: "Roboto", sans-serif;
  --font-heading: "Caveat", cursive;

  /* Project Card Theme */
  --project-bg: #93d3e7;
  --project-hover-bg: #93d3e7;
  --project-shadow: rgba(0, 0, 0, 0.1);
  --project-radius: 0.5rem;
  --project-padding: 1rem;

  /* Animation Page Theme */
  --anim-green-light: #8da47e;
  --anim-green-dark: #6d5c4c;
  --anim-beige-light: #d8c4a1;
  --anim-beige-dark: #c3b29a;
  --anim-shadow: rgba(0, 0, 0, 0.15);
  --anim-radius: 1rem;
}

/* GLOBAL */
html {
  box-sizing: border-box;
  font-size: 1rem;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  background-color: var(--gray-50);
  color: var(--gray-800);
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.5;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0;
  color: var(--gray-900);
}
h1 { font-size: 3rem; line-height: 1; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a { color: var(--accent-green); }
a:hover { color: var(--accent-beige); text-decoration: none; }

footer a { color: var(--accent-beige); }
footer a:hover { color: var(--accent-green); }

.btn {
  background-color: var(--accent-green);
  color: var(--gray-50);
  text-transform: uppercase;
  font-size: 1.2rem;
  display: inline-block;
  padding: 0.4rem;
  border-radius: 0.25rem;
  text-decoration: none;
}

.content-wrapper {
  margin: 0 auto;
  padding: 1rem;
  max-inline-size: 56rem;
}

/* =============== NAVIGATION BAR ================= */

.nav-header {
  position: sticky;
  top: 0;
  z-index: 50;
  block-size: 3rem;
  inline-size: 100%;
  background-color: rgb(229, 116, 116);
  border-block-end: 1px solid var(--red);
  box-shadow: 0px 1px 8px rgb(229, 116, 116);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--yellow-900);
  text-decoration: none;
  letter-spacing: 0.03rem;
  transition: transform 0.3s ease;
}
.logo span {
  color: var(--accent-amber, #000a04);
}
.logo:hover {
  transform: scale(1.05);
}

/* NAVIGATION LINKS */

.navbar {
  display: flex;
  gap: 1.5rem;
}

/* Shared hover + underline for nav items */
.navbar a,
.navbar .contact-btn {
  position: relative;
  transition: all 0.3s ease;
}

.navbar a:hover,
.navbar .contact-btn:hover {
  color: var(--accent-beige);
  transform: translateY(-2px);
}

.navbar a::after,
.navbar .contact-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  inline-size: 0;
  block-size: 2px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-beige));
  border-radius: 1rem;
  transition: inline-size 0.3s ease;
}

.navbar a:hover::after,
.navbar .contact-btn:hover::after {
  inline-size: 100%;
}

/* Base nav link styles */
.navbar a {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--yellow-900);
  padding-block: 0.25rem;
  transition: color 0.3s ease;
}

/* Extra underline style (kept for compatibility) */
.navbar a::after {
  display: block;
  inset-inline-start: 0;
  inset-block-end: 0;
  background: linear-gradient(
    90deg,
    var(--accent-amber, #ffb347),
    var(--accent-olive, #d9c067)
  );
}

.navbar a:hover {
  color: var(--accent-amber, #ff8c00);
}

/* Default link styles */
.nav-link {
  text-decoration: none;
  color: var(--neutral-100);
  padding: 0.25rem;
}

/* Active link styles */
.nav-btn.active {
  position: relative;
  background-color: var(--yellow-900);
  color: var(--yellow-50);
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  box-shadow:
    0 0 10px oklch(from var(--accent-amber) l c h / 0.35),
    inset 0 0 6px oklch(from var(--yellow-700) l c h / 0.35);
  border: 1px solid var(--accent-amber, #ffb347);
}

.nav-btn.active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--accent-amber, #ffb347),
    var(--accent-yellow, #ffd84c)
  );
  opacity: 0.15;
  z-index: -1;
  filter: blur(6px);
}

.nav-btn.active:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 14px oklch(from var(--accent-amber) l c h / 0.5),
    inset 0 0 8px oklch(from var(--yellow-700) l c h / 0.4);
  background-color: var(--accent-amber, #ffb347);
  color: var(--yellow-50);
}

/* ===========================
   MOBILE STYLES
=========================== */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    background: oklch(from var(--yellow-100) l c h / 0.95);
    box-shadow: 0 2px 8px oklch(from var(--yellow-800) l c h / 0.25);
    border-block-start: 1px solid var(--yellow-200);
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-block: 1rem;
    display: none;
    animation: popSlide 0.4s ease forwards;
  }

  #nav-toggle:checked ~ .navbar {
    display: flex;
  }

  @keyframes popSlide {
    0% {
      opacity: 0;
      transform: translateY(-10px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* HOME PAGE */
.home {
  background: url("/Users/harjotkaur/Downloads/WhatsApp Image 2025-10-27 at 09.52.37.jpeg")
    no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
}
.home .content-wrapper {
  flex: 1 0 auto;
  padding: 0.6rem;
}
.content-bg {
  background-color: var(--content-bg);
  padding: 1.2rem;
}

/* RESUME PAGE */
.resume header {
  position: relative;
  padding: 100;
  margin: 200;
}
.resume header::before {
  background: url("/Users/harjotkaur/Downloads/WhatsApp Image 2025-10-27 at 09.52.37.jpeg")
    no-repeat center center;
  background-size: cover;
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  block-size: 8.5rem;
}
.resume header h1 {
margin: 100px
}
.resume header h2 {
  margin: 100px;
}
.resume header .content-wrapper {
  padding-block-start: 15.5rem;
  position: relative;
  z-index: -1;
}

.resume-section {
  margin-block-end: 2rem;
}
.resume-section h2 {
  border-bottom: 2px dashed var(--gray-300);
}

/* WORK EXPERIENCE & EDUCATION */
.work-item {
  margin-block: 1.5rem;
}
.work-details p,
.education-item p {
  margin: 10;
}
.work-item h3 {
  margin-block-end: 0.25rem;
  font-weight: 700;
}
.work-details p {
  font-size: 1rem;
  margin-block-end: 0.25rem;
  color: var(--gray-600);
}
.work-summary ul {
  list-style: square;
  padding-inline-start: 1.2rem;
}
.work-summary li {
  margin-block-end: 0.3rem;
}

/* FOOTER */
footer {
  background-color: var(--gray-900);
  color: var(--gray-300);
  text-align: start;
  padding: 0.6rem;
}
.socials {
  list-style: none;
  padding: 0;
}
.socials li {
  display: inline-block;
  margin-inline-start: 0.6rem;
}
.socials img {
  inline-size: 2rem;
}
.socials img:hover {
  opacity: 0.5;
}

/* MEDIA QUERIES */
@media screen and (min-inline-size: 31rem) {
  h1 { font-size: 4rem; }
  h2 { font-size: 2.6rem; }

  .resume header::before {
    block-size: 23.5rem;
  }
  .resume header .content-wrapper {
    padding-block-start: 23.5rem;
  }
}

@media screen and (min-inline-size: 40rem) {
  .project-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-inline-size: 54rem) {
  .project-item {
    display: flow-root;
  }
  .project-item img {
    inline-size: 19rem;
    float: inline-start;
    margin-inline-end: 1rem;
  }
  .work-item {
    display: grid;
    grid-template-columns: 19rem 1fr;
    column-gap: 1rem;
  }
  footer {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    text-align: unset;
  }
}

/* LAYOUT HELPERS */
html, body {
  height: 100%;
}
.page-container {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0;
}

/* PROJECTS PAGE */

.projects-section {
  margin-block-end: 2rem;
}
.projects-section h2 {
  text-align: center;
  border-bottom: 2px dashed var(--gray-300);
  margin-block-end: 1.5rem;
  font-family: var(--font-heading);
}

/* GRID LAYOUT */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* PROJECT CARD + IMAGE */

.project-card {
  background-color: var(--project-bg);
  border-radius: var(--project-radius);
  padding: var(--project-padding);
  box-shadow: 0 2px 6px var(--project-shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.3s ease;
  overflow: hidden;
  position: relative;
}

.project-card:hover {
  animation: cardLift 0.6s ease forwards;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  background-color: var(--project-hover-bg);
}

.project-img {
  width: 100%;
  height: 200px;          /* all card pics same size */
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* TEXT STYLES */
.project-card h3 {
  font-family: var(--font-heading);
  color: var(--gray-900);
  margin-block-end: 0.3rem;
}
.project-card p {
  color: var(--gray-700);
  line-height: 1.5;
  font-size: 1rem;
}

/* PLACEHOLDER CARDS */
.placeholder {
  opacity: 0.8;
  font-style: italic;
}

/* DESKTOP GRID (3 columns) */
@media screen and (min-width: 54rem) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CONTACT POPOVER */

.contact-popover {
  padding: 2rem;
  border-radius: 1rem;
  background-color: #fdfbf4;
  color: #2e2a12;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  border: 2px solid #c0b97f;
  inline-size: min(90%, 400px);
  text-align: center;
  position: relative;
  animation: popSlide 0.4s ease;
}

::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

.contact-photo {
  inline-size: 120px;
  block-size: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-block-end: 1rem;
  border: 3px solid #b8b368;
}

.bio {
  margin-block-end: 1rem;
  line-height: 1.6;
  color: #4a4420;
  font-size: 0.95rem;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Georgia", serif;
  color: #3e3a1c;
}
.contact-info li {
  margin-block: 0.25rem;
}

.close-btn {
  position: absolute;
  inset-block-start: 5.5rem;
  inset-inline-end: 6.75rem;
  font-size: 1.5rem;
  color: #4a4420;
  cursor: pointer;
  transition: color 0.2s ease;
}
.close-btn:hover {
  color: #b8b368;
}

@keyframes popSlide {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* GLOBAL BUTTON HOVER EFFECT */

button,
.btn,
.contact-btn,
.close-btn {
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover,
.btn:hover,
.contact-btn:hover,
.close-btn:hover {
  background-color: var(--accent-beige);
  color: var(--gray-900);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* LOGO ANIMATION ON PAGE LOAD */

@keyframes logoIntro {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.1) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
.logo {
  display: inline-block;
  animation: logoIntro 1.2s ease-out both;
}

/* Subtle card hover bounce */
@keyframes cardLift {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(-4px); }
}

/* ANIMATION PAGE GRID */

.anim-shape {
  inline-size: 100%;
  block-size: 12rem;
  border-radius: var(--anim-radius);
  overflow: hidden;
  position: relative;
  background: var(--content-bg);
  box-shadow: 0 4px 10px var(--anim-shadow);
}

.animation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 6rem;
  margin-block-end: 13rem; /* space before footer */
}

.animation-card {
  background: var(--project-bg);
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px var(--project-shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px var(--project-shadow);
}

/* Clip-path animation */
.clip-animation::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--anim-green-light),
    var(--anim-beige-light)
  );
  clip-path: polygon(
    20% 10%,
    80% 15%,
    90% 60%,
    70% 85%,
    30% 90%,
    10% 50%
  );
  animation: morphClip 6s ease-in-out infinite alternate;
}

@keyframes morphClip {
  0% {
    clip-path: polygon(
      20% 10%,
      80% 15%,
      90% 60%,
      70% 85%,
      30% 90%,
      10% 50%
    );
  }
  100% {
    clip-path: polygon(
      25% 20%,
      75% 10%,
      95% 55%,
      60% 90%,
      25% 80%,
      5% 45%
    );
  }
}

/* Filter animation */
.filter-animation::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle,
    var(--anim-beige-light),
    var(--anim-beige-dark)
  );
  animation: pulseFilter 4s ease-in-out infinite;
}

@keyframes pulseFilter {
  0% {
    filter: brightness(0.9) blur(0);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.3) blur(0.4rem);
    transform: scale(1.05);
  }
  100% {
    filter: brightness(0.9) blur(0);
    transform: scale(1);
  }
}

/* Blend-mode animation */
.blend-animation {
  background: var(--gray-100);
}
.blend-animation::before {
  content: "";
  position: absolute;
  inline-size: 6rem;
  block-size: 6rem;
  border-radius: 50%;
  background: var(--anim-green-light);
  mix-blend-mode: multiply;
  animation: orbMove 6s linear infinite;
}

@keyframes orbMove {
  0%   { transform: translate(0.5rem, 0.5rem); }
  25%  { transform: translate(8rem, 1rem); }
  50%  { transform: translate(9rem, 4rem); }
  75%  { transform: translate(2rem, 6rem); }
  100% { transform: translate(0.5rem, 0.5rem); }
}

/* Animation page responsive grid */
@media (max-width: 768px) {
  .animation-grid {
    grid-template-columns: 1fr;
  }
}

/* Full-width footer only on animations page */
.animations footer {
  inline-size: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-block: 1.9rem;
  background-color: var(--gray-900);
  color: var(--gray-300);
  text-align: center;
}
/* Page Title */
.pageTitle {
  text-align: center;
  margin-block: 2rem;
  font-family: var(--font-heading);
  color: var(--gray-900);
}

/* SVG wrapper */
.animation-wrapper {
  background: var(--content-bg);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px var(--anim-shadow);
  max-inline-size: 56rem;
  margin-inline: auto;
}

/* SVG base */
.hk-animated-svg {
  width: 100%;
  display: block;
}

/* Background */
.hk-animated-svg .bg {
  fill: var(--gray-100);
}

/* Shared shape styling */
.shape {
  fill: var(--accent-green);
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
  animation-delay: 0.8s; /* Page load delay */
}

/* ============= ANIMATIONS ============= */

/* 1 — Floating circle */
.circle {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

/* 2 — Morphing blob */
.blob {
  fill: var(--accent-beige);
  animation: blobMorph 5s ease-in-out infinite;
}

@keyframes blobMorph {
  0% {
    d: path("M150,80 Q165,50 185,80 T215,80 Q200,115 185,90 T150,80Z");
  }
  50% {
    d: path("M150,80 Q170,70 190,65 T220,90 Q200,125 175,100 T150,80Z");
  }
  100% {
    d: path("M150,80 Q165,50 185,80 T215,80 Q200,115 185,90 T150,80Z");
  }
}

/* 3 — Bouncing square */
.square {
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* 4 — Rotating triangle */
.triangle {
  fill: var(--gray-700);
  transform-origin: 350px 140px;
  animation: rotateTri 6s linear infinite;
}

@keyframes rotateTri {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 5 — Pulsing star */
.star {
  fill: var(--accent-beige);
  animation: pulseStar 2.8s ease-in-out infinite;
}

@keyframes pulseStar {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* 6 — Sweep bar */
.sweep {
  fill: var(--accent-green);
  animation: sweepBar 4s linear infinite;
}

@keyframes sweepBar {
  0% { transform: translateX(0); }
  100% { transform: translateX(330px); }
}
