@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap');
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-image:
    linear-gradient(rgba(0, 0, 50, 0.65), rgba(0, 0, 50, 0.65)),
    url('images/bg-tech.jpg');
  background-size: cover;
  background-position: center;
  color: white;
}

header {
  background-color: rgba(34, 34, 34, 0.3); /* semi-transparent dark */
  backdrop-filter: blur(8px);            /* adds blur behind header */
  -webkit-backdrop-filter: blur(8px);    /* for Safari support */
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  color: white;
  padding: 0rem 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}


nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
  color: #f4c10f;
}

main {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

#contact {
  color:black;
  padding: 2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}
.container {
  text-align: center;
  background-color: rgba(255,255,255,0.9);
  padding: 2rem;
  border-radius: 15px;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0 4px 9px rgba(0,0,0,0.1);
  color: black;
}

#call {
  color:black;
  background-color:  #d3d3d3;
}

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background-color: #74bcea;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.btn:hover {
  background-color: #054268;
}

section {
  margin-bottom: 3rem;
  scroll-margin-top: 80px;
}

h2 {
  color: #05f82a;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.skills-list li {
  background-color: #efefef;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  color:black;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: white;
  color:black;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.project-links a {
  margin-right: 1rem;
  text-decoration: none;
  color: #007acc;
  font-weight: bold;
}

.project-links a:hover {
  text-decoration: underline;
}

blockquote {
  font-style: italic;
  color: #fb0303fc;
  border-left: 4px solid #ccc;
  padding-left: 1rem;
}

dl {
  margin: 0;
}

dt {
  font-weight: bold;
  margin-top: 1rem;
}

dd {
  margin: 0 0 1rem 1rem;
}

section#contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

footer {
  text-align: center;
  margin-top: 2rem;
  background-color: rgba(34, 34, 34, 0.7); /* semi-transparent dark */
  backdrop-filter: blur(8px);            /* adds blur behind header */
  -webkit-backdrop-filter: blur(8px);    /* for Safari support */
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  color: white;
  padding: 0rem 0;
  font-weight: bold;
  height: 60px;
} 

#scrollToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 1rem 1.25rem;
  font-size: 1.25rem;
  background-color: #005f99;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

#scrollToTop:hover {
  background-color: #ff5c5c;
}
header {
  position: sticky !important;
  top: 0;
  z-index: 10;
}



/* Responsive tweaks */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  #welcome {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
    margin: 1rem;
  }
  .profile-image {
    width: 160px;
    height: 160px;
  }
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  section {
    margin-bottom: 2rem;
  }
  #scrollToTop {
    bottom: 16px;
    right: 16px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
  header {
    position: relative; /* disable fixed on mobile */
  }
  body {
    background-image:
      linear-gradient(rgba(0, 0, 50, 0.65), rgba(0, 0, 50, 0.65)),
      url('images/bg-tech.jpg');
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}
  .profile-image {
    width: 160px;
    height: 160px;
  }
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  section {
    margin-bottom: 2rem;
  }
  #scrollToTop {
    bottom: 16px;
    right: 16px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
  header {
    position: relative; /* disable fixed on mobile */
  }
  body {
  background-attachment: scroll;
  background-size: cover;
  background-position: center;
  }




