* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body{
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: black;
  background-color: #f8fafc;
}

h1{
  font-family: ui-serf, Georgia, Cambria, "Times New Roman", Times, serif;
}

h2{
  font-size: 2rem;
  margin-bottom: 1rem;
  color: black;
  font-weight: 700;
}

h3{
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: #2563eb;
  font-size: 1.5rem;
}

p{
  font-size: 1.15rem;
  line-height: 1.6;
  color: black;
}

.project-container {
  position: relative;
}

.project-container::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(circle at 20% 8%, rgba(37, 99, 235, 0.05) 0 60px, transparent 61px),
    radial-gradient(circle at 82% 13%, rgba(37, 99, 235, 0.05) 0 55px, transparent 56px),
    radial-gradient(circle at 10% 27%, rgba(37, 99, 235, 0.05) 0 48px, transparent 49px),
    radial-gradient(circle at 30% 33%, rgba(37, 99, 235, 0.05) 0 65px, transparent 66px),
    radial-gradient(circle at 80% 47%, rgba(37, 99, 235, 0.05) 0 70px, transparent 71px),
    radial-gradient(circle at 36% 59%, rgba(37, 99, 235, 0.05) 0 45px, transparent 46px),
    radial-gradient(circle at 72% 65%, rgba(37, 99, 235, 0.05) 0 60px, transparent 61px),
    radial-gradient(circle at 25% 75%, rgba(37, 99, 235, 0.05) 0 52px, transparent 53px);
  z-index: -1;
}

.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-section[data-delay="1"] { transition-delay: 0.15s; }
.fade-section[data-delay="2"] { transition-delay: 0.3s; }

/* ================= NAVBAR ================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);

  border-bottom: 1px solid #e2e8f0;
  z-index: 1000;

  transition: box-shadow 0.25s ease;
}

.name {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: #0f172a;

  transition: color 0.2s ease;
}

.name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;

  background-color: #2563eb;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.name:hover {
  color: #2563eb;
}

.name:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.35rem;
}

nav a {
  position: relative;
  margin-left: 1.5rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 500;

  transition: color 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;

  background-color: #2563eb;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

nav a:hover {
  color: #2563eb;
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background-color: #0f172a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ================= title ================= */

.project-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.project-header h1{
  text-align: center;
  color: #2563eb;
}

.project-title {
  font-size: 5rem;
  font-weight: 800;
  color: black;
  letter-spacing: -1px;
}

.project-subtitle {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  color: black;
}

/* ================= OVERVIEW ================= */

.overview-buttons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  align-items: flex-start;
  margin: 0 auto;
  padding-top: 3rem;
}

.overview-buttons p{
  margin-top: 0;
}

.overview-text {
  flex: 2;
  min-width: 300px;
}

.overview-buttons {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn {
  padding: 1rem 1.25rem;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1.5rem;

  transition:
  background-color 0.25s ease,
  color 0.25s ease,
  transform 0.25s ease,
  box-shadow 0.25s ease;
}

.overview {
  border: 1px solid #2563eb;
  color: #2563eb;
}

.btn:hover {
  background-color: #2563eb;
  color: white;

  transform: translateY(-4px) scale(1.05);

  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.overview-buttons {
  margin: 3rem auto 0;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);

  padding: 2rem;
  border-radius: 12px;

  background: rgba(37, 99, 235, 0.08);

  border: 1px solid rgba(37, 99, 235, 0.15);
  text-align: center;
  font-size: 1.15rem;
}

/* ================= FEATURES ================= */

.features-section{
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 3rem;
}

/* Right Features Grid */
.features-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}

/* Individual Feature Card */
.feature-card {
  background: white;
  text-align: center;
  padding: 1.25rem;
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: 0.25s ease;
}

/* Hover Styling */
.feature-card:hover {
  transform: translateY(-6px);
  border-color: #2563eb;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
}


/* ================= TECH STACK ================= */

.tech-stack {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 3rem;
}

/* Rows and alternating layout */
.skills-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-top: 2rem;
}

#row1{
  margin-top: 0px;
}

/* Skill cards */
.skills-list {
  display: grid;
  align-items: center;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  position: relative;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fafc 100%
  );
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 14px;
  padding: 0.75rem 0.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 6px 16px rgba(37, 99, 235, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.skill-card span {
  font-size: 1rem;
  font-weight: 600;
  color: black;
}

.skill-card img {
  width: 65px;
  height: 65px;
  filter: drop-shadow(0 4px 6px rgba(37, 99, 235, 0.25));
  transition: transform 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-6px) scale(1.05);
  border-color: #2563eb;
  box-shadow:
    0 12px 24px rgba(37, 99, 235, 0.25),
    0 6px 12px rgba(0, 0, 0, 0.06);
}

.skill-card:hover img {
  transform: scale(1.15);
}

/* ================= IMAGE CAROUSEL ================= */
.carousel {
  max-width: 1100px;
  margin-top: 3rem;
}

.slideshow-container {
  position: relative;
  border-radius: 1rem;
  background: #f8fafc;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
  overflow: hidden;
  touch-action: pan-y;
}

/* Slide images */
.mySlides img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
  max-height: 550px;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Caption outside the image */
.caption {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;    
  font-size: 1.15rem;
  color: #2563eb;
  font-weight: 500;
  border-radius: 0;
  padding: 0;
}

/* Number text */
.numbertext {
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255,255,255,0.85);
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 43%;
  width: 40px;
  height: 40px;
  background-color: rgba(37, 99, 235, 0.8);
  color: white;
  font-weight: bold;
  font-size: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  z-index: 10;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.next { right: 1rem; }
.prev { left: 1rem; }

.prev:hover, .next:hover {
  transform: scale(1.15);
  background: rgba(37, 99, 235, 1);
}

/* Dots */
.dots-container {
  text-align: center;
  margin-top: 1rem;
}

.dot {
  cursor: pointer;
  height: 14px;
  width: 14px;
  margin: 0 3px;
  background-color: #e2e8f0;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active, .dot:hover {
  background-color: #2563eb;
  transform: scale(1.2);
}

/* Fade animation */
.fade {
  animation-name: fade;
  animation-duration: 1s;
}

@keyframes fade {
  from {opacity: 0.4;}
  to {opacity: 1;}
}

/* ================= FOOTER ================= */
.site-footer {
  background-color: #1e3a8a;
  color: #f0f4f8;
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-container p{
  color: #f0f4f8;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-links a {
  color: #60a5fa;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #93c5fd;
}

.footer-links span {
  font-weight: 500;
  color: #f0f4f8;
}


/* ================= RESPONSIVENESS ================= */

/* ----------- 900px ----------- */
@media (max-width: 900px) {
  .skill-card img {
    width: 50px;
    height: 50px;
  }

  .overview-buttons-container {
    flex-direction: column;
  }

  .overview-buttons{
    width: 100%;
  }

  .overview{
    align-self: center;
    width: 70%;
  }
}

/* ----------- 800px ----------- */
@media (max-width: 800px) {
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  p  { font-size: 1.15rem; }

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

  .skill-card img {
    width: 50px;
    height: 50px;
  }

  .btn {
    padding: .75rem 1rem;
    border-radius: 4px;
    font-size: 1.4rem;
  }

  .tech-stack {
    padding-top: 2rem;
  }
}

/* ----------- 700px ----------- */
@media (max-width: 700px) {

  .skills-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .skills-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  .skill-card{
    padding: 1rem 0.75rem;
  }

  .overview-buttons {
    width: 100%;
    font-size: 1.1rem;
  }

  .btn {
    padding: .75rem 1rem;
    border-radius: 4px;
    font-size: 1.3rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem; 
  }

  .feature-card h3{
    font-size: 1.4rem;
  }

  .feature-card p{
    font-size: 1.1rem;
  }

  .caption {
    font-size: 1.1rem;
  }

  .nav-container {
    font-size: 1.2rem;
  }
  .name {
    font-size: 1.2rem;
  }
}

/* ----------- 600px: MOBILE NAV ----------- */
@media (max-width: 600px) {
  nav.nav-links {
    position: absolute;
    top: 62.72px;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  nav.nav-links a {
    margin: 0.75rem 0;
    font-size: 1.25rem;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -5px);
  }

  nav.nav-links.active {
    display: flex;
  }
}

/* ----------- 500px ----------- */
@media (max-width: 500px) {

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

  h2 { font-size:2rem; }
  h3 { font-size: 1.4rem; }
  p  { font-size: 1.05rem; }

  .feature-card h3{
    font-size: 1.4rem;
  }

  .feature-card p{
    font-size: 1.05rem;
  }

  .btn {
    font-size: 1.25rem;
    padding: .75rem 1rem;
  }

  .numbertext {
  font-size: 0.8rem;
  }

  /* Arrows */
  .prev, .next {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .dot {
    height: 12px;
    width: 12px;
  }

  .caption {
    font-size: 1.05rem;
  }

  .overview{
    align-self: center;
    width: 90%;
  }

}

/* ----------- 400px ----------- */
@media (max-width: 400px) {

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

  h2 { font-size:1.75rem; }

  .skill-card {
    padding: .75rem .50rem;
  }

  .skill-card img {
    width: 40px;
    height: 40px;
  }

  .overview{
    align-self: center;
    width: 90%;
  }
}