/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f5f5f5;
}

/* Header */
header {
    background: #0056b3;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

header h1 {
    margin-left: 20px;
}

nav ul {
    list-style: none;
    margin-right: 20px;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

nav ul li a {
    color: white;
    text-decoration: none;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: url('hero-bg.jpg') no-repeat center center/cover;
    padding: 60px;
    color: white;
    text-shadow: 2px 2px 5px black;
    animation: fadeIn 1s ease-in;
}

.hero input {
    padding: 10px;
    width: 60%;
    margin: 10px;
    border-radius: 5px;
    border: 1px solid gray;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    outline: none;
}

.hero button {
    padding: 10px 20px;
    background: #ff6b6b;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero button:hover {
    transform: translateY(-3px);
    background: #ff5252;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero button:active {
    transform: translateY(0);
}

/* Featured Listings */
.featured {
    background: white;
    padding: 30px;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.items {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.item {
    background: #e3e3e3;
    padding: 10px;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: popIn 0.5s ease-out;
    animation-fill-mode: both;
}

.item:nth-child(1) { animation-delay: 0.1s; }
.item:nth-child(2) { animation-delay: 0.2s; }
.item:nth-child(3) { animation-delay: 0.3s; }
.item:nth-child(4) { animation-delay: 0.4s; }

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.item img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.item:hover img {
    transform: scale(1.05);
}

/* Call-to-Action Section */
.cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px;
    animation: fadeIn 1s ease-in-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

.box {
    background: #007bff;
    color: white;
    padding: 20px;
    border-radius: 5px;
    width: 30%;
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.box:hover::before {
    left: 100%;
}

.box:hover {
    transform: scale(1.05);
    background: #0062cc;
}

.box button {
    padding: 10px;
    background: white;
    color: #007bff;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.box button:hover {
    background: #f0f0f0;
    color: #0056b3;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 15px;
    margin-top: 20px;
    animation: fadeIn 0.8s ease-in-out;
}
/* Buy Button */
.buy-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.buy-btn:hover {
    background: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.buy-btn:active {
    transform: translateY(-1px);
}

/* Pulsing animation for important elements */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.highlight {
    animation: pulse 2s infinite;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4c84ff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

.btn:hover {
    background-color: #3a70e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover::after {
    left: 100%;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading animation for form submission */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: rotate 1s linear infinite;
}

/* Form success shake animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.6s;
}

.nav ul {
    list-style: none;
    display: flex;
  }
  .nav ul li {
    margin: 0 10px;
  }
  .nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
  }
  .mobile-menu-icon {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
  }
  /* Media Queries for Mobile */
  @media (max-width: 768px) {
    .header-container {
      flex-direction: column;
      align-items: center;
    }
    .nav {
      display: none;
      width: 100%;
    }
    .nav ul {
      flex-direction: column;
      width: 100%;
    }
    .nav ul li {
      margin: 5px 0;
    }
    .mobile-menu-icon {
      display: block;
    }
    .hero-content h2 {
      font-size: 1.8em;
    }
    .hero-content p {
      font-size: 1em;
    }
    .hero-search {
        display: flex;
        flex-direction: column;
      }
      
      .hero-search input,
      .hero-search button {
        width: 100%;
        border-radius: 5px;
        margin: 5px 0;
      }
      
      .featured-items {
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      .item {
        width: 80%;
      }
      
      .cta {
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      
      .cta-box {
        width: 80%;
      }
      .featured .item{
        width: 100%;
        max-width: 200px;
      }
      .featured .items {
        display: flex;
        flex-wrap: wrap;
      }
    }
    .store-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .store-logo img {
        height: 40px;
        width: auto;
    }
    
    .store-name {
        font-size: 22px;
        font-weight: bold;
    }