html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
   background: linear-gradient(to bottom, #0f172a, #020617);
  color: #e5e7eb;
}

/* NAVBAR */
.navbar {
  background: rgb(15, 23, 42);
  background: rgba(15, 23, 42, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  color: #e5e7eb;
  transition: 0.3s;
}

.navbar-brand:hover {
  color: #38bdf8;
}

.navbar-brand:focus,
.navbar-brand:active {
  color: #38bdf8;
}

.nav-link {
  color: #e5e7eb;
  transition: 0.3s;
}

.nav-link:hover {
  color: #38bdf8;
}

.btn-outline-light {
  border: 1px solid #38bdf8;
  color: #38bdf8;
  background: transparent;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.btn-outline-light:hover {
  background-color: #38bdf8;
  color: #0b1220;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

@keyframes hoverPulse {
  0% {
    box-shadow: 0 0 0 rgba(56, 189, 248, 0.4);
  }
  50% {
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
  }
  100% {
    box-shadow: 0 0 0 rgba(56, 189, 248, 0.4);
  }
}

/* HERO */
.hero {
  min-height: 42vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  padding-bottom: 40px;
}

.hero-subtext {
  max-width: 700px;
  margin: 15px auto 0;
  color: #e2e8f0;
}

.hero h1 {
  font-size: 3rem;
}

#about .container,
#projects .container,
#resume .container {
  max-width: 1100px;
}

#about p {
  max-width: 950px;
}

@media (max-width: 768px) {
  #about .hover-card {
    height: 120px;
    min-height: 120px;
  }

  #about .hover-card.active {
    height: auto;
    min-height: 520px;
  }

  #about .hover-card.active .card-details {
    max-height: none;
    overflow: visible;
  }
}

/* SECTIONS */
.section {
  padding: 80px 0;
}

.section.dark {
   background: transparent;
}

/* CARDS */
.project-card {
  padding: 20px;
  border-radius: 12px;
  background: #1e293b;
  border: 1px solid rgb(56, 189, 248);
  border: 1px solid rgba(56, 189, 248, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.project-card h5 {
  color: #f8fafc;
  font-weight: 600;
}

.project-card p {
  color: #cbd5f5;
}

.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 10px;
  text-align: center;
}

.project-card .btn-primary {
  padding: 8px 16px;
  font-weight: 500;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgb(56, 189, 248);
  border: 1px solid rgba(56, 189, 248, 0.6);
}

/* HOVER CARD */

#about .hover-card:hover,
#about .hover-card.active {
  height: auto;
  min-height: 520px;
}

#about .hover-card:hover .card-details,
#about .hover-card.active .card-details {
  max-height: none;
  overflow: visible;
}

.hover-card:hover {
  transform: scale(1.03);
  z-index: 2;
}

.hover-card .card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 120px;
}

.hover-card .card-front h5 {
  margin: 0;
  text-align: center;
}

.hover-card {
  position: relative;
  min-height: 120px;
  height: 120px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: height 0.35s ease, transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.hover-card .card-front,
.hover-card .card-details {
  padding: 24px;
}

.hover-card .card-front {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
}

.hover-card .card-front h5,
.hover-card .card-front h2 {
  margin: 0;
  text-align: center;
  color: #f8fafc;
}

.hover-card .card-details {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.35s ease;
  padding-top: 0;
}

.hover-card:hover,
.hover-card.active {
  height: auto;
  min-height: 260px;
}

.hover-card:hover .card-details,
.hover-card.active .card-details {
  opacity: 1;
  max-height: 500px;
  transform: translateY(0);
  padding-top: 0;
}

.hover-card:hover .card-front,
.hover-card.active .card-front {
  align-items: flex-start;
  padding-top: 20px;
  height: auto;
}

/* BUTTONS */
.project-card .btn {
  min-width: 130px;
  text-align: center;
  border-radius: 8px;
  font-weight: 500;
  padding: 8px 16px;
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn-primary {
  background-color: #38bdf8;
  border: none;
}

.btn-primary:hover {
  background-color: #0ea5e9;
}

.btn-outline-light {
  border: 1px solid #38bdf8;
  color: #38bdf8;
  background: transparent;
}

.btn-outline-light:hover {
  background-color: #38bdf8;
  color: #0b1220;
}

@media (max-width: 768px) {
  .hover-card.active {
    height: auto;
    min-height: 300px;
  }

  .hover-card.active .card-details {
    opacity: 1;
    max-height: none;
    overflow: visible;
    transform: translateY(0);
  }
}

/* FOOTER */
.footer {
  padding: 20px;
  background-color: #020617;
}