body {
  margin: 0;
  background-color: #0a0a0f; /* fallback color */
  background-image: url("img/space-grid.png");
  background-repeat: repeat;
  background-size: auto;
  background-position: center top;
  font-family: 'Segoe UI', sans-serif;
}

/* Header */
header {
  background: #222;
  color: white;
  text-align: center;
  padding: 1rem 0;
}
header h1 { margin: 0; letter-spacing: 1px; }
header nav a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
}
header nav a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  header {
    padding: 0.75rem 0;
  }

  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 0.95rem;
  }

  header nav a {
    margin: 0 0.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.5rem 0;
  }

  header h1 {
    font-size: 1.5rem;
  }

  header p {
    font-size: 0.85rem;
  }

  header nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.5rem;
  }

  header nav a {
    display: inline-block;
    font-size: 0.9rem;
  }
}
/* Intro Section */
#welcome {
  padding: 3rem 1rem;
  text-align: center;
}
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.avatar {
  width: 200px;
  border-radius: 12px;
}

/* Skills Grid */
#skills {
  background: #fef5ff;
  padding: 2rem;
  text-align: center;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3,1fr);
  max-width: 900px;
  margin: auto;
}
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: white;
  border-left: 4px solid #e05597;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#connect {
  text-align: center;
  padding: 2rem 0;
  background: none; /* ensures it inherits your site-container background */
}

#connect h2 {
  margin-bottom: 1.2rem;
}

/* Icon row container */
.icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;               /* spacing between icons */
}

/* Link container */
.icons a {
  display: inline-block;
  text-decoration: none;   /* removes underline */
  transition: transform 0.2s ease, filter 0.3s ease;
}

/* Icon images */
.icons img {
  width: 36px;             /* smaller, clean size */
  height: 36px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover glow/tint effect */
.icons a:hover img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(92%) saturate(1863%) hue-rotate(314deg) brightness(99%) contrast(98%);
  transform: scale(1.15);
}

.site-container {
  background: white;           /* white main box */
  max-width: 1000px;           /* narrower box */
  margin: 2rem auto;           /* center it with space around */
  border-radius: 10px;         /* rounded corners */
  box-shadow: 0 0 30px rgba(0,0,0,0.4); /* nice drop shadow */
  overflow: visible;            /* smooth rounded edges */
  position: relative;
  z-index: 2;
}
      
/* Footer */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

/* ---------- DESIGN PORTFOLIO ---------- */
#portfolio {
  text-align: center;
  padding: 2rem 1rem;
  background: #fef5ff;
}

.project-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 2rem 3rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
  max-width: 900px;
  min-height: 600px; 
  margin: 2rem auto;
  overflow: visible; 
}


.project-content h3 {
  margin-top: 0;
  color: #e05597;
}

.media-wrapper {
  margin: 1rem auto;
}

.media-wrapper img, .media-wrapper video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;                    /* ⬆️ larger arrow glyph */
  color: #e05597;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  width: 54px;                          /* ⬆️ bigger circle */
  height: 54px;
  display: flex;
  justify-content: center;
  align-items: center;                  /* ensures perfect vertical centering */
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.arrow.left { left: -70px; }            /* push them slightly outward */
.arrow.right { right: -70px; }

.arrow:hover {
  background: #e05597;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 900px) {
  .arrow {
    width: 46px;
    height: 46px;
    font-size: 1.9rem;
  }
  .arrow.left { left: -50px; }
  .arrow.right { right: -50px; }
}

@media (max-width: 600px) {
  .arrow {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }
  .arrow.left { left: -20px; }
  .arrow.right { right: -20px; }
}


/* description */
#project-description {
  max-width: 700px;
  margin: 1rem auto 0;
  color: #333;
}

/* ---------- Project Dots ---------- */
.dots {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.5rem;
}

.dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: black;
  opacity: 0.5;
  transition: background 0.3s ease, opacity 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.dots .dot.active {
  background: #e05597;
  opacity: 1;
  transform: scale(1.2);
}
.media-wrapper video,
.media-wrapper img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.project-content {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-content.fade-out {
  opacity: 0;
  transform: translateX(-40px);
}

.project-content.fade-in {
  opacity: 0;
  transform: translateX(40px);
}

.project-content.fade-in.active {
  opacity: 1;
  transform: translateX(0);
}



