/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0b0c10;
  color: #c5c6c7;
  scroll-behavior: smooth;
  line-height: 1.6;
}

a {
  color: #66fcf1;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #45a29e;
}

/* HEADER */
header {
  background-color: #1f2833;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 0 transparent;
}

header.sticky-active {
  background-color: #10151b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #66fcf1;
}

/* NAV */
nav a {
  margin-left: 1.2rem;
  font-weight: bold;
  color: #66fcf1;
}

nav a:hover {
  color: #45a29e;
}

/* HERO SECTION */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(to right, #0b0c10, #1f2833);
  color: #c5c6c7;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #66fcf1;
}

.hero-text h2 {
  font-size: 1.5rem;
  color: #45a29e;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #c5c6c7;
}

.btn {
  display: inline-block;
  background-color: #66fcf1;
  color: #0b0c10;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #45a29e;
  transform: scale(1.05);
}

/* INFO CARDS SECTION */
.info-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 2rem;
  background-color: #0b0c10;
}

.card {
  background-color: #1f2833;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(102, 252, 241, 0.1);
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #c5c6c7;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(102, 252, 241, 0.3);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #66fcf1;
}

.card p {
  font-size: 1rem;
  color: #c5c6c7;
}

.projects-section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
  color: #c5c6c7;
  font-family: 'JetBrains Mono', monospace, sans-serif;
}

.section-title {
  font-size: 2.5rem;
  color: #66fcf1;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px #45a29e;
  letter-spacing: 0.1em;
}

.project-card {
  background: #0b0c10;
  border: 2px solid #45a29e;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 12px #45a29e44;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px #66fcf1;
}

.project-summary {
  padding: 0 1rem;
  text-align: center;
}

.project-summary h3 {
  margin-bottom: 0.3rem;
  font-weight: 700;
  color: #45a29e;
  text-shadow: 0 0 8px #45a29eaa;
}

.project-summary p {
  font-size: 1.05rem;
  color: #a0a6aa;
  line-height: 1.4;
}

/* Image styling */
.project-card img {
  margin-top: 1rem;
  width: 100%;
  border-radius: 6px;
  filter: drop-shadow(0 0 4px #45a29e99);
  max-width: 320px;
}

/* Tiny glitch effect on hover — subtle enough to not annoy */
.project-card:hover::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 98%;
  height: 96%;
  border: 1px solid #66fcf1aa;
  animation: glitch 0.3s infinite alternate;
  pointer-events: none;
  border-radius: 10px;
}

@keyframes glitch {
  0% {
    clip-path: inset(0 0 20% 0);
    transform: translate(0);
  }
  50% {
    clip-path: inset(20% 0 0 0);
    transform: translate(1px, -1px);
  }
  100% {
    clip-path: inset(0 0 20% 0);
    transform: translate(0);
  }
}

/* Responsive */
@media (min-width: 600px) {
  .project-card {
    flex-direction: row;
    justify-content: space-between;
    padding: 1.5rem;
  }
  .project-summary {
    flex: 1 1 60%;
    padding-right: 1rem;
    text-align: left;
  }
  .project-card img {
    flex: 1 1 35%;
    max-width: none;
  }
}


/* FOOTER */
footer {
  background-color: #1f2833;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #c5c6c7;
  border-top: 1px solid #45a29e22;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  .info-cards {
    flex-direction: column;
    align-items: center;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  nav a {
    margin-left: 0;
  }
}
