* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;
  }


  .container1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
  }
  

  .navbar {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  
  .flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .logo {
    font-size: 2rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #1E3D59;
  }
  
  .nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
  }
  
  .nav-links a {
    color: #4A4A4A;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .nav-links a:hover {
    color: #1E3D59;
  }
  
  .nav-button {
    background-color: #1E3D59;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid black;
    color: #f4f4f4;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .btn-link {
    color: white;
    text-decoration: none;
  }
  
  .nav-button:hover {
    box-shadow: 1px 2px 2px 3px #9e9898;
  }
 
  .hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
  }
  
  .bar {
    height: 3px;
    width: 100%;
    background-color: #1E3D59;
    border-radius: 10px;
  }

  .main {
    background: linear-gradient(rgba(21, 21, 21, 0.722), rgba(9, 9, 10, 0.596)), url(What_Is_UX_and_UI_Design.avif);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    color: white;
    font-size: 1.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
    padding: 0px 20px;
  }
  
  .main h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }
 
  .filter-container {
    margin: 20px 0 40px;
    overflow-x: auto;
  }
  
  .top-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px 0px;
  }
  
  .top-butt {
    min-width: 100px;
    height: 35px;
    background-color: rgb(43, 137, 226);
    border-radius: 15px;
    border: 1px solid black;
    color: white;
    box-shadow: 3px 2px 2px rgba(0, 0, 0, 0.611);
    transition: all 0.3s ease;
    font-weight: bold;
    cursor: pointer;
    padding: 0 15px;
  }
  
  .top-butt:hover, .top-butt.active {
    background-color: rgb(4, 73, 147);
    transform: translateY(-3px);
  }
  
  .scroll-section {
    padding: 60px 20px;
    background-color: #e2e2e2;
  }
  
  .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
 
  .image-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    transform-style: preserve-3d;
    aspect-ratio: 4/3;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeIn 1s forwards;
  }
  
  .image-card:hover {
    transform: rotateY(5deg) scale(1.05);
  }
  
  .image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
  }
  
  .image-card:hover img {
    transform: scale(1.1);
  }
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .image-card:hover .overlay {
    opacity: 1;
  }
  
  .text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease-in-out;
    padding-right: 20px;
  }
  
  .image-card:hover .text {
    transform: translateY(-5px);
  }
  
  @keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
  }
  

  
footer {
  background-color: #1A1A1A;
  color: white;
  padding: 40px 0px;
}


.footer-content {
  display: flex;
  justify-content: space-around;
  padding: 0px 20px;
  gap: 30px;
}

.footer-links, .footer-contact, .king {
  flex: 1;
  min-width: 300px;
  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) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        padding: 80px 20px 30px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .top-container {
        gap: 10px;
        justify-content: flex-start;
    }
    
    .filter-container {
        padding-bottom: 10px;
    }
    .footer-content{
      flex-wrap: wrap; 
    }
    
  }
  
  @media (max-width: 576px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .main {
        height: 40vh;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .top-butt {
        min-width: 80px;
        font-size: 0.9rem;
    }
    
    .nav-links {
        width: 80%;
    }
  }
