/* Background :) ✨*/
.bg {
  position: relative;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;

  background: 
    linear-gradient(
        to bottom,
        rgba(199, 193, 193, 0) 0%, 
        rgba(13, 13, 13, 0.2) 30%,
        rgba(54, 52, 52, 0.4) 80%, 
        rgba(13, 13, 13, 1) 100% 
    ),
    url('imgs/gray.gif') left / cover no-repeat;

  pointer-events: none;
  z-index: 0;
}

.bg > * {
  position: relative;
  z-index: 1;
}

/* Value statement */
.value-text {
  margin-top: 10px;
  font-size: 1.05rem;
  color: #e5e5e5;
  max-width: 600px;
}

/* Tone-down supporting text */
.index-text {
  font-size: 0.95rem;
  color: #bfbfbf;
  margin-top: 6px;
}

/* Hero buttons */
.hero-buttons {
  margin-top: 22px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  background: white;
  color: black;
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: #f2f2f2;
}

.btn-outline {
  border: 1px solid white;
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: white;
  color: black;
  transform: translateY(-2px);
}

.index-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #dbd6d6;
}

/*Project Section 🌟*/
.projects-section {
  padding: 80px 5vw 40px;
  text-align: center;
  margin-top: -130px; /* pulls it upward into hero */
  padding-top: 100px; /* keeps internal spacing nice */
  position: relative;
  z-index: 2;
}

.projects-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.project-card {
  padding: 22px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
}

.project-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 14px;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
  transition: filter 0.6s ease, transform 0.8s ease;
}

.project-card:hover .project-image img {
  filter: grayscale(40%) brightness(0.95);
  transform: scale(1.08);
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.project-tech {
  font-size: 0.75rem;
  opacity: 0.7;
  letter-spacing: 1px;
}

/*Skills List! 🌟*/
.skills-section {
  padding: 60px 5vw;
  text-align: center;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 25px;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.skills-list span {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.skills-list span:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08);
}

/* About Me Paragraph Styling */
.index-text p{
  margin-bottom: 1.2em; /* Space between paragraphs */
  line-height: 1.8; /* Easier reading */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); /* Drop shadow */
}

.about-preview {
  padding: 60px 5vw;
  text-align: center;
}

.about-preview-text {
  max-width: 600px;
  margin: 0 auto 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-preview-text.secondary {
  opacity: 0.8;
  font-size: 0.9rem;
}

.about-preview-text:last-of-type {
  margin-bottom: 28px;
}

/*Media Queries for Responsiveness 🌟*/
@media (min-width: 768px) {
     .about-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 140px 10% 120px;
        gap: 60px;
        text-align: left;
    }
}

@media (min-width:480px) and (max-width: 768px) {
    .about-section {
        flex-direction: column;
        align-items: center;
        padding: 60px 5% 120vh;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .name-title,
    .about-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}