@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Fira+Code:wght@300..700&family=GFS+Didot&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Meow+Script&family=Pacifico&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");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

:root {
  /* #001b2e
#1d3f58
#537692
#b3cde4
#eef3f9 */

  --bg-primary: #f9f8f6;
  --bg-secondary: #000;
  --text-primary: #000;
  --text-secondary: #f9f8f6;
  --accent: #000;
  --accent-secondary: #888;
  --bg-100: #f9f8f6; /* rgb(249, 248, 246) */
  --bg-200: #888; /* rgb(136, 136, 136) */
  --bg-500: #555; /* rgb(85, 85, 85)    */
  --bg-600: #222; /* rgb(34, 34, 34)    */
  --bg-700: #000; /* rgb(0, 0, 0)       */

  --ff-title: "Poppins", sans-serif;
  --ff-curl: "Meow Script", cursive;
  --ff-role: "Pacifico", cursive;
  --ff-text: "Poppins", sans-serif;

  /* Base font sizes - responsive but closer to your original big look */
  --fs-regular: clamp(1.1rem, 1.2vw, 1.375rem);
  --fs-title: 18rem;
  --fs-h1: clamp(3rem, 5vw, 5.5rem);

  --fw-title: 700;
  --fw-semibold: 600;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  margin-block-end: 0;
  line-height: 1;
  text-wrap: balance;
}

body {
  font-family: var(--ff-text);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none;
}

/* Highlight Color */
::selection {
  background: #e6e6e6;
  color: #111;
}

/* Custom Cursor */
/* .cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.2s ease;
}

.cursor-follower {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
} */

/* small dot */
/* The blobby cursor */
/* The blobby cursor */
.cursor-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
  /* Filtering the full viewport forced expensive repaints, so we keep it simple */
  isolation: isolate;
}

.cursor-blob {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
  opacity: 0.9;
  will-change: transform;
  transition:
    width 0.25s ease,
    height 0.25s ease,
    opacity 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .cursor-container {
    display: none;
  }
}

/* Stretch effect on hover */
h1:hover ~ .cursor-blob,
p:hover ~ .cursor-blob {
  width: 60px;
  height: 60px;
}

/* Role font family transitions animation */
#role {
  display: inline-block;
  transition: opacity 0.35s ease;
  will-change: opacity;
}

/* ================== Navigation ================== */
nav {
  /* position: sticky; */
  /* top: 0; */
  /* width: 100%; */
  /* backdrop-filter: blur(10px); */
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.navigation {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 1000;
  padding-right: 2rem;
}

@media (max-width: 768px) {
  .navigation {
    display: none;
  }
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  /* position: relative; */
  font-family: var(--ff-text);
  font-size: 1.375rem;
  text-transform: uppercase;
  color: var(--bg-500);
  mix-blend-mode: exclusion;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  display: block;
  /* padding: 1rem 2rem; */
  font-size: 1rem;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  background-color: currentColor;
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease-in-out;
}

.nav-links li a:hover {
  color: var(--bg-100);
  transform: scale(1.2);
  /* translate: 10px 0px; */
}

.nav-links li a:hover::after {
  width: 100%;
  background-color: var(--bg-100);
}

/* ================== Scrolling Stacks Animation ================== */
.hero {
  z-index: 1;
}

.projects {
  z-index: 2;
}

.skills {
  z-index: 3;
  background: linear-gradient(to bottom, #1a1a1a 0%, #0f0f0f 100%);
}

.contact {
  z-index: 4;
  /* background: linear-gradient(to bottom, #1a1a1a 0%, #0f0f0f 100%); */
}

/* Border radius top of each section */
section:not(.hero) {
  /* border-radius: 20px 20px 0 0; */
  overflow: hidden;
}

/* Smooth wrapper for proper stacking */
/* #smooth-wrapper {
  overflow: hidden;
} */

/* ================== Sections & Hero ================== */
section:first-of-type {
  padding: 0;
}
section {
  position: relative;
  background: var(--bg-700);
  /* Fixed, modern vertical rhythm between sections */
  padding: 3rem 0;
  min-height: 100vh;
  z-index: 1;
}

@media (max-width: 768px) {
  section {
    padding: 2rem 0;
    min-height: auto;
  }
}

.hero-display {
  position: relative;
  min-height: 600px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero-display {
    min-height: auto;
    margin-top: 0;
    padding: 0 1rem;
  }
}

.hero-display h1 {
  line-height: normal;
}

#aspire-role {
  /* position: absolute; */
  font-family: var(--ff-curl);
  font-size: 35px;
  top: 150px;
  right: 10px;
  color: var(--bg-100);
}

#aspire-role span {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: red;
  text-decoration-thickness: 2px; /* or 'from-font', 'auto' */
  text-underline-offset: 8px;
}

#title-name {
  font-family: var(--ff-title);
  font-size: var(--fs-title);
  font-weight: var(--fw-title);
}

#first-name {
  /* position: absolute; */
  color: var(--bg-100);
}

#last-name {
  /* position: absolute; */
  color: var(--bg-500);
  /* Define the stroke width and color */
  /* -webkit-text-stroke-width: 8px; */
  /* -webkit-text-stroke-color: black; */
}

.meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  bottom: 110px;
  left: 32px;
  list-style-type: none;
  margin: 0 auto;
}

.social-links {
  text-decoration: none;
  color: var(--bg-200);
  transition: all 0.3s;
}

.social-links a i:hover {
  color: var(--bg-100);
  /* text-shadow: 0 0 12px rgba(255, 255, 255, 0.35); */
  text-shadow:
    0 0 1px #fff,
    0 0 2px #fff,
    0 0 5px #fff;
  /* box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);  */
  /* glow effect */
  /* box-shadow: 0 0 12px rgba(255, 255, 255, 0.35); */
}

.custom-links-color {
  font-size: 72px;
  color: var(--bg-500);
}

.social-links a img:hover {
  color: var(--accent);
}

#role-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 2px dashed var(--bg-100);
  border-radius: 16px;
  padding: 24px 32px;

  /* LOCK THE BOX */
  min-width: 410px; /* adjust once */
  min-height: 110px; /* adjust once */

  box-sizing: border-box;
}

#role-text {
  font-size: 1.65rem;
  color: var(--bg-100);
  line-height: 1; /* IMPORTANT */
  white-space: nowrap;
  transition: opacity 0.35s ease;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  height: auto;
  text-align: center;
  z-index: 2;
}

/* .location {
  position: relative;
  text-decoration: none;
  background-image: linear-gradient(
    to right,
    #ff0000 0%,
    #ff0000 15%,
    #00732f 15%,
    #00732f 43%,
    #ffffff 43%,
    #ffffff 71%,
    #000000 71%,
    #000000 100%
  );
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 6px;
} */

.location {
  text-decoration: underline;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  gap: 23px;
}

.quick-links button,
.quick-links a {
  font-family: var(--ff-text);
  font-size: var(--fs-regular);
  width: 400px;
  height: 80px;
  font-size: clamp(1.2rem, 2vw, 2rem);
  border-radius: 16px;
  cursor: pointer;
  transition:
    color 0.2s ease-in,
    background 0.2s ease-in;
}

.contact-link,
.projects-btn {
  /* border: 8px solid var(--bg-secondary); */
  background: var(--bg-secondary);
  color: var(--bg-primary);
}

.contact-link:hover {
  background-color: var(--bg-200);
}

.projects-btn:hover {
  background-color: var(--bg-500);
  color: var(--bg-100);
}

.cv-btn {
  background: var(--bg-primary);
  color: var(--bg-700);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
  /* margin: 0 auto; */
}

.cv-btn:hover {
  background-color: var(--bg-200);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 2rem);
  margin-bottom: 3rem;
  color: var(--bg-100);
}

/* ================== Projects Section ================== */
#projects {
  position: relative;
  background: var(--bg-700);
  color: var(--bg-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding-bottom: clamp(8rem, 18vh, 14rem); */
}

/* .projects h1,
.skills h1 {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 6rem;
  color: var(--bg-100);
  padding-left: 10px;
  border-left: 3px solid var(--bg-500);
  letter-spacing: 6px;
} */

section:not(.hero, .contact) h1 {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 6rem;
  color: var(--bg-100);
  padding-left: 10px;
  border-left: 3px solid var(--bg-500);
  letter-spacing: 6px;
}

@media (max-width: 768px) {
  section:not(.hero, .contact) h1 {
    position: static;
    writing-mode: horizontal-tb;
    text-orientation: initial;
    transform: none;
    font-size: 3rem;
    text-align: center;
    padding: 2rem 1rem 1rem;
    border-left: none;
    border-bottom: 3px solid var(--bg-500);
    letter-spacing: 4px;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 530px);
  justify-content: center;
  gap: 4rem;
  /* padding: 4rem 4rem; */
  list-style-type: none;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 500px;
  /* max-height: fit-content; */
  overflow: hidden;
  border-radius: 20px;
  /* padding: 10px 20px; */
  color: var(--bg-100);
  background: var(--bg-400);
  border: 2px solid var(--bg-500);
  transition: all 0.4s;
  cursor: pointer;
}

.project-card:hover {
  /* transform: scale(1.2); */
  /* color: var(--bg-700); */
  /* background: var(--bg-100); */
  /* outline: solid 1px var(--bg-100); */
  transform: scale(1.05);
}

.img-grid-container {
  /* width: 100%; */
  /* height: 60%; */
  /* height: auto; */
  /* height: 100%; */
  overflow: hidden;
}

.project-card img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  overflow: hidden;
  display: block;
}

.card-content {
  /* margin-bottom: 30px; */
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px;
  height: 50%;
  transition: top 0.4s ease-in-out;
  position: absolute;
  top: 441px;
  z-index: 100;
  background: black;
}

.project-card:hover .card-content {
  /* height: 50%; */
  top: 255px;
}

.project-description {
  padding-top: 0.5rem;
}

.project-tag {
  background: var(--bg-500);
  padding: 0.15rem 1rem;
  border-radius: 2rem;
}

.card-content > :last-child {
  margin-top: auto;
}

.card-content a i:hover {
  color: var(--bg-200);
}

/* ================== Skills ================== */
#skills,
#experience,
#education {
  background: var(--bg-700);
  /* text-align: center; */
  color: var(--bg-700);
  display: flex;
}

.skills-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  width: clamp(45%, 50vw, 55%);
  margin: 0px auto;
  padding: 0 2rem;
}

.skill-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 1px solid white;
  margin-block: 3rem;
  gap: 1rem;
  width: 100%;
}

.skill-heading {
  width: 30%;
}

.skill-category h3 {
  font-weight: bold;
  color: var(--bg-200);
  font-size: 2rem;
  transition: all 0.3s;
}

.hover-glow-text {
  color: #fff !important;
  /* background-color: white; */
  text-shadow:
    0 0 5px #fff,
    0 0 0px #fff,
    0 0 0px #fff;
}

/* Used in Experience & Education Section */
.hover-glow-text-sub {
  color: #fff !important;
  /* background-color: white; */
  text-shadow:
    0 0 5px var(--bg-500),
    0 0 0px var(--bg-500),
    0 0 0px var(--bg-500);
}

hr {
  width: 50%;
}

.skill-icons {
  display: flex;
  width: 70%;
  gap: 0.5rem;
  justify-content: flex-start;
}

.skill-icons {
  list-style-type: none;
}

.skill-icons li {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* border: 1px solid var(--bg-100); */
  /* border-radius: 20px; */
  padding: 24px;
  transition: all 0.3s;
  z-index: 3;
  overflow: visible; /* Important! */
}

.skill-icons li i {
  font-size: 72px;
}

.custom-skills-white {
  color: var(--bg-200);
}

.custom-skills-bg {
  background-color: var(--bg-700);
}

.skill-icons li:hover {
  transform: translateY(-6px);
  color: var(--bg-100);
}

.skill-icons img {
  width: 100%;
  position: relative;
  z-index: 2; /* Keep image on top */
}

.tooltip {
  position: absolute;
  bottom: 99%; /* Align at bottom of li */
  left: 50%;
  transform: translateX(-50%) translateY(20px); /* Start hidden below */
  color: var(--bg-200);
  font-size: 1.2rem;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  z-index: 1; /* Behind the image */
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.skill-icons li:hover .tooltip {
  transform: translateX(-50%) translateY(-20px); /* Slide up */
  opacity: 0.7;
}

/* ================= Experience & Education ================= */

.experience-wrapper,
.education-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(65%, 70vw, 75%);
  margin: 0px auto;
  gap: 2rem;
  padding: 0 1rem;
}

.experience-left,
.education-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100%;
  margin-bottom: 2rem;
  gap: 2rem;
}

.experience-details,
.education-details {
  margin-top: 1.5rem;
}

.experience-right,
.education-right {
  font-size: 4rem;
  color: gray;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  width: 50%;
  margin-bottom: 2rem;
  gap: 12rem;
}

.yoe-title {
  color: var(--bg-500);
  transition: all 0.3s;
}

.yoe span {
  color: var(--bg-500);
  transition: all 0.3s;
}

.experience-box,
.education-box {
  display: flex;
  /* flex-direction: column; */
  width: 100%;
  justify-content: space-between;
  /* height: 200px; */
  /* align-items: center; */
  gap: 0.75rem;
}

.card-rect {
  position: relative;
  width: 65%;
  background-color: transparent;
  height: max-content;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  /* align-items: center; */
  padding: 4rem;
  border-radius: 20px;

  /* glass effect */
  /* background: rgba(255, 255, 255, 0.05); */
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);

  text-align: left;
}

.experience-title,
.education-title {
  color: var(--bg-200);
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.experience-subtitle,
.education-subtitle {
  font-family: var(--ff-text);
  font-size: var(--fs-regular);
  color: var(--bg-500);
  font-style: oblique;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.experience-duration {
  font-size: 3rem;
  font-weight: 200;
}

.education-duration {
  font-size: 3.5rem;
  font-weight: 200;
}

@media (max-width: 768px) {
  .experience-duration {
    font-size: 1rem;
    font-weight: 400;
  }

  .education-duration {
    font-size: 1rem;
    font-weight: 400;
  }
}

/* ================= Contact ================= */
.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--bg-700);
}

.contact-title {
  width: 50%;
  font-family: var(--ff-title);
  font-size: var(--fs-title);
  color: var(--bg-200);
  padding-left: 50px;
}

.contact-form {
  position: relative;
  width: 650px;
  background-color: transparent;
  height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  border-radius: 20px;

  /* glass effect */
  /* background: rgba(255, 255, 255, 0.05); */
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.contact-box {
  position: relative;
  width: 100%;
  height: 70px;
  display: flex;
  flex-direction: column;
  margin-bottom: 26px;
}

/* .contact-label {
  display: none;
} */

.contact-input,
.contact-btn {
  font-family: var(--ff-text);
  font-size: var(--fs-regular);
  outline: none;
  border: none;
}

.contact-input {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 2rem 2rem;
  border-radius: 12px;
  font-size: var(--fs-regular);
  border: 4px solid var(--bg-500);
  color: var(--bg-100);
  caret-color: var(--bg-100);
  background: var(--bg-700);
  caret-color: white;
  transition: all 0.3s;
}

.contact-input:focus {
  border: 4px solid var(--bg-100);
}

.contact-input:focus::placeholder {
  opacity: 0;
}

.contact-input:-webkit-autofill {
  transition:
    background-color 6000s,
    color 6000s;
}

.contact-input::placeholder {
  color: var(--bg-500);
  transition: opacity 0.3s;
}

.contact-label {
  position: absolute;
  top: 0px;
  left: 27px;
  color: white;
  color: var(--bg-500);
  z-index: 2;
  font-size: var(--fs-regular);
  padding: 0.05rem 0.5rem;
  background: var(--bg-700);
  pointer-events: none;
  transition:
    top 0.3s,
    opacity 0.3s;
  opacity: 0;
}

.contact-area {
  height: 200px;
}

.contact-area textarea {
  resize: none;
}

.contact-input:focus + .contact-label {
  opacity: 1;
  top: -19px;
  color: var(--bg-100);
}

.contact-btn {
  /* background-color: var(--bg-100); */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--bg-700);
  width: 100%;
  cursor: pointer;
  border-radius: 8px;
  height: 50px;
}

.contact-btn:hover {
  color: var(--bg-100);
  background-color: var(--bg-500);
}

/* ================= Responsive ================= */
footer {
  background: #0e0e0e; /* dark modern background */
  color: #ccc; /* soft grey text */
  text-align: center;
  padding: 25px 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: var(--fs-regular);
}

footer nav {
  width: fit-content;
  padding: 0;
}

/* footer links */
footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer nav ul li {
  display: inline-block;
  margin: 0 12px;
}

footer nav ul li a {
  text-decoration: none;
  color: #aaa;
  transition: 0.25s ease;
}

/* hover effect */
footer nav ul li a:hover {
  color: #fff;
}

/* footer nav ul {
  display: flex;
  justify-content: center;
  align-items: center;

} */

/* ================= Responsive ================= */

/* Hide custom cursor on touch devices */
/* @media (hover: none) and (pointer: coarse) {
  .cursor-container {
    display: none;
  }
  
  body {
    cursor: auto !important;
  }
} */
@media (max-width: 1440px) {
  .hero-display {
    min-height: 500px;
    max-width: 800px;
  }
  #title-name {
    font-size: 13rem;
  }

  #first-name {
    left: 120px;
    bottom: 130px;
  }

  #last-name {
    right: 160px;
    bottom: -10px;
  }

  #aspire-role {
    font-size: 24px;
    right: 200px;
    top: 200px;
  }

  .hero-content {
    max-width: 800px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .custom-links-color {
    font-size: 44px;
  }

  #role {
    font-size: 18px;
  }

  .quick-links button,
  .quick-links a {
    width: 250px;
    height: 50px;
    font-size: 1rem;
    border-radius: 16px;
    cursor: pointer;
    transition:
      color 0.2s ease-in,
      background 0.2s ease-in;
  }

  /* ------------------ Projects ------------------  */
  .projects h1,
  .skills h1 {
    font-size: 3rem;
  }

  .project-card {
    height: 330px;
  }

  .card-content {
    top: 281px;
    width: 100%;
  }

  .project-card:hover .card-content {
    /* height: 50%; */
    top: 170px;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-description,
  .project-tag {
    font-size: 0.65rem;
  }

  .project-tag {
    padding: 0.05rem 0.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(220px, 30%));
    gap: 3rem;
    padding: 2rem 3rem;
  }

  /* ------------------ Skills ------------------  */

  .skills-wrapper {
    width: 55%;
  }

  .skill-category {
    margin-block: 1.25rem;
  }

  .skill-category h3 {
    font-size: 1.5rem;
  }

  .skill-icons li {
    padding: 0;
  }

  .skill-icons li i {
    font-size: 3rem;
  }

  .contact-title {
    font-size: 13rem;
  }

  .contact-form {
    width: 600px;
    height: auto;
  }

  .contact-input,
  .contact-label {
    font-size: 1rem;
  }

  /* -------------------- Education & Experience ------------------- */
  .experience-right,
  .education-right {
    font-size: 3rem;
    color: gray;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    width: 50%;
    margin-bottom: 2rem;
    gap: 12rem;
  }

  .yoe-title {
    color: var(--bg-500);
    transition: all 0.3s;
  }

  .yoe span {
    color: var(--bg-500);
    transition: all 0.3s;
  }

  .experience-box,
  .education-box {
    display: flex;
    /* flex-direction: column; */
    width: 100%;
    justify-content: space-between;
    /* height: 200px; */
    /* align-items: center; */
    gap: 0.75rem;
  }

  .card-rect {
    position: relative;
    width: 65%;
    background-color: transparent;
    height: max-content;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    /* align-items: center; */
    padding: 4rem;
    border-radius: 20px;

    /* glass effect */
    /* background: rgba(255, 255, 255, 0.05); */
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);

    text-align: left;
  }

  .experience-title,
  .education-title {
    color: var(--bg-200);
    margin-bottom: 1rem;
    transition: all 0.3s;
    font-size: 2rem;
  }

  .experience-subtitle,
  .education-subtitle {
    font-family: var(--ff-text);
    font-size: 2rem;
    color: var(--bg-500);
    font-style: oblique;
    margin-bottom: 1rem;
    transition: all 0.3s;
  }

  .experience-duration {
    font-size: 1.5rem;
  }

  .education-duration {
    font-size: 2rem;
  }

  /* --------------------- Contact -------------------- */

  .contact {
    justify-content: flex-start;
  }
  .contact-form {
    position: relative;
    width: 600px;
    background-color: transparent;
    height: 650px;
    padding: 3rem;

    /* glass effect */
    /* background: rgba(255, 255, 255, 0.05); */
  }

  footer {
    font-size: 1rem;
  }

  .contact-title {
    width: 45%;
    font-size: 16ch;
  }
}

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
  #title-name {
    font-size: 15rem;
    text-align: center;
  }

  #first-name {
    position: static;
    left: 10px;
    bottom: 200px;
  }

  #last-name {
    position: static;
    right: 100px;
    bottom: 20px;
  }

  #aspire-role {
    position: static;
    font-size: 18px;
    right: -300px;
  }

  .meta {
    position: static;
  }

  .hero-content {
    margin-top: 3rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(225px, 300px));
    gap: 2rem;
    padding: 2rem;
  }

  .project-card {
    height: auto;
    max-height: 400px;
  }

  .skills-wrapper {
    width: 60%;
  }

  .skill-category {
    display: block;
  }

  /* -------------------- Contact --------------------- */

  .contact-title {
    font-size: 12rem;
  }

  footer {
    font-size: 1rem;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  /* Cursor - already handled above for touch devices */

  /* Hero Section */
  .hero-display {
    min-height: auto;
    margin-top: 0;
    padding: 0 1rem;
  }

  #title-name {
    font-size: clamp(3.5rem, 12vw, 8rem);
  }

  #first-name {
    position: static;
    display: block;
    text-align: center;
    margin-bottom: 1rem;
  }

  #last-name {
    position: static;
    display: block;
    text-align: center;
    margin-bottom: 2rem;
  }

  #aspire-role {
    position: static;
    font-size: 28px;
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .meta {
    display: flex;
    flex-wrap: wrap;
    position: static;
    gap: 1.5rem;
    padding: 0 1rem;
    align-items: center;
  }

  .social-links a i {
    font-size: 48px;
  }

  #role {
    font-size: 20px;
    padding: 16px 24px;
    text-align: center;
  }

  .hero-content {
    height: auto;
    padding: 2rem 1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .quick-links {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .quick-links button,
  .quick-links a {
    width: 100%;
    max-width: 100%;
    height: 60px;
    font-size: 1.1rem;
  }

  /* Projects Section */
  .projects h1,
  .skills h1 {
    position: static;
    writing-mode: horizontal-tb;
    text-orientation: initial;
    font-size: 3rem;
    text-align: center;
    padding: 2rem 1rem 1rem;
    border-left: none;
    border-bottom: 3px solid var(--bg-500);
    letter-spacing: 4px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
    max-width: 100%;
  }

  .project-card {
    max-width: 100%;
    height: auto;
  }

  .card-content {
    position: static;
    top: auto;
    height: auto;
  }

  .project-card:hover .card-content {
    top: auto;
  }

  /* Skills Section */
  #skills {
    flex-direction: column;
    padding: 2rem 0;
  }

  .skills-wrapper {
    width: 100%;
    padding: 0 1rem;
  }

  .skill-category {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-block: 2rem;
  }

  .skill-category h3 {
    font-size: 1.5rem;
    width: 100%;
    text-align: center;
  }

  .skill-icons {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .skill-icons li {
    width: 70px;
    height: 70px;
    padding: 16px;
    margin: 0 auto;
  }

  .skill-icons li i {
    font-size: 48px;
  }

  .tooltip {
    bottom: 110%;
  }

  /* Experience & Education Section */
  .experience-wrapper,
  .education-wrapper {
    width: 100%;
    padding: 0 1rem;
  }

  .experience-box,
  .education-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2rem;
  }

  .card-rect {
    width: 100%;
    padding: 2rem 1.5rem;
  }

  .experience-right,
  .education-right {
    width: 100%;
    gap: 1rem;
  }

  .experience-title,
  .education-title {
    font-size: 1.5rem;
  }

  .experience-subtitle,
  .education-subtitle {
    font-size: 1rem;
  }

  .experience-duration,
  .education-duration {
    font-size: 1rem;
    font-weight: 400;
  }

  .yoe,
  .yoe-title {
    font-size: 1rem;
    text-align: center;
  }

  /* Contact Section */
  .contact {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .contact-title {
    width: 100%;
    font-size: 4rem;
    text-align: center;
    padding: 0 1rem;
  }

  .contact-form {
    width: 100%;
    max-width: 90vw;
    height: auto;
    padding: 2rem 1.5rem;
    background-color: transparent;
  }

  .contact-box {
    height: 60px;
    margin-bottom: 1.5rem;
  }

  .contact-area {
    height: 120px;
  }

  .contact-input {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 3px solid var(--bg-500);
  }

  .contact-btn {
    height: 50px;
    font-size: 1.1rem;
  }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1rem;
    text-align: center;
  }

  footer nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  footer nav ul li {
    margin: 0;
  }
}
/* ================== Breakpoints ================== */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
    min-height: auto;
  }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
  #title-name {
    font-size: clamp(2.5rem, 10vw, 6rem);
  }

  #aspire-role {
    font-size: 20px;
  }

  .projects h1,
  .skills h1 {
    font-size: 2rem;
  }

  .contact-title {
    font-size: 2.5rem;
  }

  .skill-icons li {
    width: 60px;
    height: 60px;
    padding: 12px;
  }

  .skill-icons li i {
    font-size: 40px;
  }

  .social-links a i {
    font-size: 36px;
  }

  #role-box {
    min-width: auto;
    min-height: auto;
    padding: 16px 20px;
    width: 100%;
  }

  #role-text {
    font-size: 1.2rem;
  }

  .meta {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .contact-box {
    height: 50px;
    margin-bottom: 1rem;
  }

  .contact-area {
    height: 100px;
  }

  footer {
    font-size: 0.9rem;
    padding: 1.5rem 0.5rem;
  }
}

/* Add to your body or .hero section */
/* .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent);
  background-size: 200% 200%, 300% 300%, 250% 250%, 280% 280%, 220% 220%, 260% 260%;
  background-position: 0% 0%, 50% 50%, 100% 0%, 0% 100%, 50% 0%, 100% 100%;
  animation: stars 60s linear infinite;
  opacity: 0.6;
  z-index: 0;
} */

@keyframes stars {
  0%,
  100% {
    background-position:
      0% 0%,
      50% 50%,
      100% 0%,
      0% 100%,
      50% 0%,
      100% 100%;
  }
  50% {
    background-position:
      100% 100%,
      0% 0%,
      50% 50%,
      100% 0%,
      0% 100%,
      50% 50%;
  }
}
