:root {
  --mouse-x: 0px;
  --mouse-y: 0px;
}
.font-sans {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
  font-feature-settings: "ss03", "cv02", "cv11";
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Poppins", sans-serif;
  background-color: #0f172a;
  color: #e1e8f0;
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  display: flex;
  overflow: hidden;

  /* align-items: flex-start; */
  min-height: 100vh;
  /* padding: 80px 120px; */
  background-image: radial-gradient(
    /* 1. Size of the circle */ 600px circle at var(--mouse-x) var(--mouse-y),
    /* 2. Color Stop 1: The center of the spotlight */ rgba(29, 78, 216, 0.19)
      0%,

    /* 3. Color Stop 2: The edge of the spotlight */ rgba(29, 78, 216, 0) 100%
  );
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 100vh;
  padding: 90px 80px;
  box-sizing: border-box;
  overflow-y: auto;
  background: transparent;
}
.sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.sidebar {
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */
}
.sidebar h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
}

.sidebar h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0;
}

.sidebar h2 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 10px;
}
.sidebar p {
  font-size: 0.95rem;
  margin-top: 20px;
  color: #94a3b8;
}

ul {
  list-style-type: none;
  padding-left: 5px;
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
ul li {
  /* display: inline-flex; */
  flex-direction: row;
}
.sidebar svg,
.sidebar i {
  margin-top: 30px;
  /* margin-right: 10px; */
  transition: transform 0.22s ease, filter 0.22s ease;
}
.sidebar svg:hover,
.sidebar i:hover {
  /* fill: aqua; */
  transform: translateY(-0.4px);
  filter: drop-shadow(0 0 3px #77d8c1);
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-link {
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #e1e8f0;
}
.nav-link::before {
  content: "";
  display: inline-block;
  /* vertical-align: middle;  already using align-items center*/

  height: 1px;
  width: 25px;
  background-color: #94a3b8;
  margin-right: 0;
  transform: scaleX(1);

  transition: transform 0.28s ease, background-color 0.28s ease;
}

.nav-link.active,
.nav-link:hover {
  color: #e1e8f0;
  /* filter: drop-shadow(0 0 6px #64ffda); */
}

.nav-link.active::before,
.nav-link:hover::before {
  transform: scaleX(2.2);
  background-color: #64ffda;
}

.main {
  margin-left: 400px;
  padding: 35px 120px;
  flex: 1;
  max-width: 900px;
  overflow-x: hidden;
  scroll-margin-top: 35px;
}
.main p {
  color: #94a3b8;
  margin-bottom: 20px;
}
.main a {
  text-decoration: none;
  color: #e1e8f0;
}
.main a:hover {
  color: aqua;
}

section {
  margin-top: 60px;
  scroll-margin-top: 80px;
}
.card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* padding-top: 55px; */
  display: flex;
  align-items: flex-start;
}
.card header {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;

  width: 120px;
  flex-shrink: 0;
  text-align: left;

  top: auto;
  left: auto;
}

.card-content-wrapper {
  flex-grow: 1;
}

/* 4. Fix Content Margins */
.card-content-wrapper h4 {
  color: #e6f1ff;
  margin-top: 0; /* IMPORTANT: Removes default margin to align with date */
  margin-bottom: 15px;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.1);
}

.card p {
  color: #94a3b8;
  font-size: 1.05rem;
}

.tags {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags a {
  color: #64ffda;
}
.tags :hover {
  transform: translateY(-0.7px);
}

.tag {
  background: rgba(100, 255, 218, 0.1);
  color: #64ffda;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(100, 255, 218, 0.05);
}

.arrow a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.arrow a:hover {
  color: #64ffda;
}

.arrow a {
  animation: floatArrow 2s ease-in-out infinite;
  transition: transform 0.3s ease;
}
.arrow a:hover .arrow {
  transform: translateY(-4px) scale(1.05);
}
.project-link {
  text-decoration: none;
  display: block;
}

/* --- Fade-in Scroll Animation --- */

/* 1. Start hidden */
.fade-in {
  opacity: 0;
  transform: translateY(20px); /* Start 20px lower */
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* 2. The visible state */
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0); /* Move back to original position */
}
@keyframes floatArrow {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 1000px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 60px 30px;
  }

  .main {
    margin-left: 0;
    padding: 30px 30px;
  }
  .container {
    display: block;
  }
}
