html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Poppins', 'Roboto', sans-serif;
}

body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  line-height: 1.6;
}

body::before {
  content: '';
  display: block;
  height: 70px;
}

nav {
  background: rgba(0, 0, 0, 0.6); /* lighter background */
  backdrop-filter: blur(15px);
  padding: 1.2em 2em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
}
nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #000; /* black text for light nav */
  font-weight: 600;
  position: relative;
  padding: 0.3em 0;
  transition: color 0.3s ease;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background-color: #ffffff; /* underline in black */
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease-in-out;
}

nav ul li a:hover {
  color: #444;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  transform: scaleX(1);
}

.nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1920px;
  margin: auto;
  width: 100%;
}

.logo {
  font-size: 1.6em;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 10px #25ff30;
}

.hamburger {
  display: none;
  font-size: 1.6em;
  color: white;
  cursor: pointer;
  z-index: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: #ff0055;
  text-shadow: 0 0 8px #ff0055;
  transform: scale(1.05);
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: url('img/Navy Blue Geometric Technology LinkedIn Banner.png');
  background-repeat: repeat-x;
  background-size: cover;
  height: 28vh;
  border-bottom: 2px solid #00ffaa;
}

header h1 {
  font-size: 3em;
  margin-bottom: 0.2em;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

header p {
  font-size: 1.3em;
  color: #e0e0e0;
}

section {
  padding: 4em 1em;
  text-align: center;
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  font-size: 2.2em;
  margin-bottom: 1em;
  color: #00ffaa;
  text-shadow: 0 0 10px #00ffaa88;
}

.card_list ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  padding: 0;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  padding: 1.2em;
  width: 240px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, #00ffaa22, #1e1e1e);
  box-shadow: 0 0 25px #00ffaa88;
  cursor: pointer;
}

.note {
  display: none;
  opacity: 0;
  color: red;
  transition: opacity 0.5s ease;
  margin-top: 10px;
}

.note.show {
  display: block;
  opacity: 1;
}

.img-box {
  height: 120px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 10px;
  margin-bottom: 1em;
}

.html-img { background-image: url('https://cdn-icons-png.flaticon.com/512/732/732212.png'); }
.css-img { background-image: url('https://cdn-icons-png.flaticon.com/512/732/732190.png'); }
.js-img { background-image: url('https://cdn-icons-png.flaticon.com/512/5968/5968292.png'); }
.android-img { background-image: url('img/Muaaz.png'); }
.Portfolio-img { background-image: url('Portfolio/img/me.jpg'); }

.btn {
  margin-top: 0.8em;
  background: #00ffaa;
  border: none;
  padding: 0.7em 1.4em;
  font-weight: bold;
  color: #000;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,255,170,0.4);
}

.btn:hover {
  background: #00dd99;
  transform: scale(1.05);
  box-shadow: 0 0 20px #00ffaa;
}

.social {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
  margin-top: 2.5em;
}

.social div {
  text-align: center;
}

.social a {
  color: #00ffaa;
  text-decoration: none;
  font-size: 1.2em;
  transition: color 0.3s ease;
}

.social a:hover {
  color: #ff0088;
  text-shadow: 0 0 10px #ff0088aa;
}

footer {
  background: #111;
  text-align: center;
  padding: 2.5em 1em;
  margin-top: 4em;
  color: #bbb;
  font-size: 0.9em;
  border-top: 1px solid #333;
}

@media screen and (max-width: 1200px) {
  .hamburger {
    display: block;
  }
  .logo{
    font-size: 1.2em;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000000e7;
    flex-direction: column;
    align-items: center;
    display: none;
    /* padding: 1em 0; */
    gap: 20px;
    margin-bottom: 10px;
  }

#userProfile{
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 20px;
} 
  .nav-links.active {
    display: flex;
  }

  .card {
    width: 100%;
  }

  .card_list ul {
    flex-direction: column;
  }

  header h1 {
    font-size: 2em;
  }

  header p {
    font-size: 1em;
  }
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1920px;
  margin: auto;
  width: 100%;
}
}
@media screen and (max-width: 480px) {
  header {
    height: 22vh;
  }
.logo{
    font-size: 1em;
  }
  header h1 {
    font-size: 1.5em;
  }

  header p {
    font-size: 0.9em;
  }
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1920px;
  margin: auto;
  width: 100%;
}
}




