* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style-type: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
  color: #555;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3 {
  color: #333;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
  transition: all 0.3s ease;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
  padding: 8px 0;
  position: relative;
}

nav ul li a:hover {
  color: #2575fc;
}

nav ul li a:hover:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #2575fc;
  bottom: 0;
  left: 0;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(annie-spratt-QckxruozjRg-unsplash.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.header-content {
  max-width: 800px;
}

header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  animation: fadeInDown 1.5s;
  color: #fff;
  margin-bottom: 1rem;
}

header p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  animation: fadeInUp 2s;
  color: #fff;
  opacity: 0.9;
}

section {
  padding: 5rem 1rem;
}

section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #2575fc;
  position: relative;
}

.bg-main {
  background: linear-gradient(rgba(0, 0, 0, 0.37), rgba(40, 40, 112, 0.479)), url(img/web\ bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.bg-main h2 {
  color: #fff;
}

.bg-main h3 {
  color: #eee;
}

.bg-main p {
  color: #ddd;
}

.grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bg-main .card {
  background: rgba(255, 255, 255, 0.1);
}

#web-dev .card {
  background: #fff;
  max-width: 800px;
  margin: 0 auto;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 1rem;
  transition: transform 0.3s;
}

.card:hover img {
  transform: scale(1.1);
}

.card h3 {
  margin: 1rem 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.ui-ux-container {
  max-width: 600px;
  margin: 0 auto;
}

#portfolio {
  background: #f9f9f9;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.portfolio-item {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  width: 100%;
  max-width: 400px;
}

.portfolio-item:hover {
  transform: scale(1.03);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}


footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}


.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  background-color: #1A1A1A;
  color: white;
  padding: 40px 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap; 
  justify-content: space-between;
  padding: 0 20px;
  gap: 30px;
}

.footer-links, .footer-contact, .king {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-links h4 {
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  color: #ccc;
}


@media (max-width: 992px) {
  .section-container {
    padding: 0 15px;
  }
  
  .card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  nav .container {
    padding: 1rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #000;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: all 0.4s ease-out;
  }
  
  nav ul.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  nav ul li {
    margin: 1rem 0;
    width: 100%;
    text-align: center;
  }
  
  nav ul li a {
    display: block;
    padding: 0.5rem 0;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  #web-dev .card {
    margin: 0 15px;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  nav .container {
    padding: 0.8rem;
  }
  
  nav .logo {
    font-size: 1.3rem;
  }
  
  header {
    height: 80vh;
  }
  
  section {
    padding: 3rem 0.8rem;
  }
  
  .card {
    padding: 1.2rem;
  }
  
  .card img {
    width: 50px;
    height: 50px;
  }
  
  .portfolio-grid {
    gap: 1rem;
  }
  
  .portfolio-item {
    max-width: 100%;
  }
}


@media (max-width: 576px) {
 
  
  .footer-content > div {
      flex-basis: 100%;
  }
  
  .king {
      display: block;
      text-align: center;
      margin-bottom: 30px;
  }
}
