/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

body {
    background-color: #f4f6f8;
    color: #333;
    line-height: 1.7;
}

/* ================= LINKS ================= */
a {
    text-decoration: none;
    color: inherit;
}

/* ================= HEADER / NAVBAR ================= */
header {
    background-color: #111;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #f39c12;
    font-size: 28px;
    font-weight: bold;
}

.menu {
    list-style: none;
    display: flex;
}

.menu li {
    margin-left: 25px;
}

.menu li a {
    color: #ffffff;
    font-size: 16px;
    transition: 0.3s;
}

.menu li a:hover,
.menu li a.active {
    color: #f39c12;
}

/* ================= HERO ================= */
.hero {
    height: 90vh;
    background: url("https://images.pexels.com/photos/3184298/pexels-photo-3184298.jpeg") center/cover no-repeat;
    position: relative;
}
.hero-content {
    text-align: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.65);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    color: #fff;
    text-align: center;
    max-width: 700px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 30px;
}

.btn-main {
    background: #f39c12;
    padding: 12px 25px;
    color: #fff;
    border-radius: 6px;
    font-size: 16px;
    transition: 0.3s;
}

.btn-main:hover {
    background: #d68910;
}

.animated-text {
    animation: fadeInOut 6s ease-in-out infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}


/* ================= FEATURES ================= */
.features .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px 20px;
}

.feature-box {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-box img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.feature-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-box p {
    font-size: 16px;
    color: #555;
}


/* ================= BEST PRODUCTS ================= */
.best-products {
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
}

.best-products h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #111;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 180px; /* Set image height */
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    margin-bottom: 8px;
    font-size: 16px;
}

.price {
    color: #f39c12;
    font-weight: bold;
    display: block;
    margin: 8px 0;
}

.product-info button {
    width: 100%;
    padding: 10px;
    background: #111;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.product-info button:hover {
    background: #333;
}

/* ================= NEWSLETTER ================= */
.newsletter {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 50px 20px;
}

.newsletter h2 {
    margin-bottom: 15px;
    font-size: 24px;
}

.newsletter p {
    margin-bottom: 20px;
}

.newsletter form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter input[type="email"] {
    padding: 10px;
    width: 220px;
    border: none;
    border-radius: 5px;
}

.newsletter button {
    padding: 10px 20px;
    background: #f39c12;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter button:hover {
    background: #d68910;
}

/* ================= FOOTER ================= */
footer {
  background-color: #1e1e1e;
  color: #fff;
  padding: 40px 20px 20px 20px;
}

footer .footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

footer .footer-box {
  margin-bottom: 20px;
}

footer .footer-box h3 {
  margin-bottom: 15px;
}

footer .footer-box ul {
  list-style: none;
  padding: 0;
}

footer .footer-box ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

footer .footer-box ul li a:hover {
  color: #f39c12;
}

footer .copy {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #aaa;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .menu {
        flex-direction: column;
        margin-top: 10px;
    }
    .menu li {
        margin: 8px 0;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .features .container {
        grid-template-columns: 1fr;
    }
}

/* ================= MODAL ================= */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* On top of all elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

.modal-content {
    background-color: #fff;
    margin: 10% auto; /* Center it roughly in the page */
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 15px;
}

.modal-content p {
    color: #555;
    line-height: 1.6;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content .close:hover {
    color: #000;
}