html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  background: linear-gradient(rgba(5, 15, 25, 0.6), rgba(5, 15, 25, 0.6)),
    url("images/IMG_20250530_001017_155.webp") no-repeat top center fixed;
  background-size: cover;
  background-position: 50% 10%;
  background-repeat: no-repeat;
  color: #fff;
}

/* Navbar */
.navbar {
  background: transparent;
  padding: 20px 0;
  text-align: center;
}

.nav-container {
  max-width: 850px;
  margin: 0 auto;
}

.navbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.navbar a {
  color: #90e0ef;
  text-decoration: none;
  font-size: 0.95em;
  cursor: pointer;
  transition: color 0.2s;
}

.navbar a:hover,
.navbar a.active {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 850px;
  margin: 0 auto;
  padding: 40px 20px 20px 20px;
  background: rgba(17, 24, 39, 0.75);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

header {
  text-align: center;
  margin-top: 30px;
}

.profile-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.25);
  margin-bottom: 14px;
  background: #fff;
}

h1 {
  margin: 18px 0 8px 0;
  font-size: 2.2em;
}

h2 {
  color: #90e0ef;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Projects Section */
.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 15px;
}

.project-card {
  background: rgba(144, 224, 239, 0.09);
  border-left: 5px solid #48cae4;
  padding: 16px;
  border-radius: 9px;
  flex: 1 1 380px;
  min-width: 320px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card p {
  margin-bottom: 12px;
}

/* Show Project Button */
.show-project-btn {
  background: #48cae4;
  color: #023e8a;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(0,0,0,0.08);
  transition: background 0.2s, color 0.2s;

  /* ✅ Fixed Size */
  width: 160px; /* change as needed */
  height: 45px; /* change as needed */
}

.show-project-btn:hover {
  background: #0077b6;
  color: #fff;
}

/* Skills Section */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.skills-list span {
  background: #caf0f8;
  color: #053661;
  padding: 7px 18px;
  border-radius: 12px;
  font-size: 0.99em;
  font-weight: 500;
}

/* Contact List */
.contact-list {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.contact-list a img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  vertical-align: middle;
  transition: transform 0.18s, filter 0.18s;
  opacity: 0.92;
}

.contact-list a:hover img,
.contact-list a:focus img {
  transform: scale(1.17);
  filter: drop-shadow(0 1px 9px #adb5bd77);
  opacity: 1;
}

/* CV Button */
.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-top: 18px;
  color: #22223b;
  background: #f7f7ff;
  border-radius: 18px;
  padding: 12px 26px;
  text-decoration: none;
  border: 1.8px solid #ddd;
  box-shadow: 0 1px 14px #dbe4ff30;
  transition: background 0.18s, box-shadow 0.18s;
}

.cv-btn:hover,
.cv-btn:focus {
  background: #e7f5ff;
  box-shadow: 0 2px 20px #228be633;
}

.cv-btn img {
  margin-right: 8px;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  color: #90e0ef;
  font-size: 0.95em;
  margin-top: 40px;
}

footer p::after {
  content: "";
  display: block;
  margin: 10px auto 0;
  width: 60px;
  height: 1px;
  background-color: #48cae4;
  opacity: 0.3;
}

/* Sections */
section {
  display: none;
}

section.active {
  display: block;
}

section p {
  text-align: justify;
}

/* Certificates */
.certificates-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 12px;
}

.certificate-btn {
  background: #48cae4;
  color: #023e8a;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  box-shadow: 0 2px 7px rgba(0,0,0,0.08);
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}

.certificate-btn:hover {
  background: #0077b6;
  color: #fff;
}

/* Skills Falling Animation */
#skills {
  position: relative;
  overflow: hidden;
}

.skills-badge-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.falling-badge {
  position: absolute;
  width: 48px;
  height: 48px;
  top: -60px;
  left: var(--start-left, 50%);
  opacity: 0.9;
  animation: asteroid-fall 5s linear infinite;
}

@keyframes asteroid-fall {
  0%   {
    top: -60px;
    left: var(--start-left);
    opacity: 0;
    transform: rotate(0deg) scale(0.85);
  }
  40% {
    left: calc(var(--start-left) + 60px);
    opacity: 1;
    transform: rotate(170deg) scale(1.1);
  }
  75% {
    left: calc(var(--start-left) - 50px);
    opacity: 1;
    transform: rotate(280deg) scale(1.05);
  }
  100% {
    top: 110%;
    left: calc(var(--start-left) + 20px);
    opacity: 0.4;
    transform: rotate(440deg) scale(0.85);
  }
}

#skills:hover .falling-badge {
  animation-play-state: paused;
}

.skills-list {
  position: relative;
  z-index: 2;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .project-card {
    flex: 1 1 100%;
    min-width: auto;
  }
}

@media (max-width: 600px) {
  .profile-img {
    width: 110px;
    height: 110px;
    margin-top: -60px;
  }
  .projects {
    flex-direction: column;
  }
  .skills-list {
    gap: 9px;
  }
  .contact-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  h1 {
    font-size: 1.55em;
  }
}