/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #090909;   /* pure black */
  color: #dadada;           /* light grey text */
  line-height: 1.6;
  text-align: center;
  overflow-x: hidden;
}

/* Hero */
#hero { 
    padding: 3rem 1rem; 
    background-color: #000; /* pure black */
}
#hero h1 {
  font-size: 2.5rem;
  color: #00e5ff;
  margin-bottom: 0.5rem;
  animation: glowPulse 3s infinite alternate;
}
.tagline {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1rem;
}

/* Sections */
section { padding: 3rem 1rem; }
h2 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  color: #00e5ff;
}

/* Grids */
.grid {
  display: grid;
  gap: 1.5rem;
  margin: 0 auto;
}

#projects {
  background-color: #090909; /* slightly lighter */
}
#socials {
  background-color: #111; /* near-black */
}
#about {
  background-color: #151515; /* a little lighter still */
}
footer {
  background-color: #1a1a1a;
}

#projects .grid {
  max-width: 1100px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  background-color: #090909; /* slightly lighter */
}
#socials .grid {
  max-width: 800px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  background: #181818; /* brighter tile so it doesn’t vanish into #111 */
}

/* Tile */
.tile {
  background: #111; /* near-black for subtle contrast */
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #dadada;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px; /* fallback for browsers without aspect-ratio */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #000;
}

.tile h3 {
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #dadada;
}

/* Hover Glow */
.tile:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 20px #00e5ff, 0 0 40px rgba(0,229,255,0.6);
}

/* About Section */
.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
   background-color: #151515; /* a little lighter still */
}
.about-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #00e5ff;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0,229,255,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #00e5ff, 0 0 40px rgba(0,229,255,0.8);
}
@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
    text-align: left;
  }
  .about-photo {
    margin-right: 2rem;
  }
}

/* Footer */
footer {
  background: #111;
  background-color: #1a1a1a;
  padding: 1rem;
  font-size: 0.9rem;
  color: #dadada;
}

/* Animations */
@keyframes glowPulse {
  from { text-shadow: 0 0 5px #00e5ff; }
  to { text-shadow: 0 0 20px #00e5ff, 0 0 40px #00e5ff; }
}
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
