/* General reset */
body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, #fffafc, #fce4ec); /* soft pastel gradient */
    margin: 0;
    padding: 0;
}

/* Header with logo */
header {
    background: #ec407a;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

header img.logo {
    display: block;        /* centers when margin auto is used */
    margin: 0 auto;        /* centers horizontally */
    height: 120px;          /* adjust logo size */
    width: auto;           /* keeps proportions */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    background: #f8bbd0;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .tab {
    color: #333;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-weight: 600;
}

.navbar .tab:hover {
    background: linear-gradient(135deg, #f8bbd0, #ec407a);
    color: white;
}

/* Products grid */
.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px;
}

/* Product card */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin: 15px;
    width: 200px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.card {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

.card:nth-child(2) { animation-delay: 0.5s; }
.card:nth-child(3) { animation-delay: 0.7s; }
.card:nth-child(4) { animation-delay: 0.9s; }

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(236,64,122,0.3);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* Product info */
.card h3 {
    margin: 10px 0;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.card p {
    color: #555;
    font-weight: bold;
}

/* Product badge (Sale, New, etc.) */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ec407a;
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

/* Call-to-action button */
.card button {
    background: #ec407a;
    color: white;
    border: none;
    padding: 8px 15px;
    margin: 10px 0;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.card button:hover {
    background: #d81b60;
}

.card .extra-info {
    display: none;
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}
.card:hover .extra-info {
    display: block;
}

/* Footer */
footer {
    background: #ec407a;
    color: white;
    padding: 20px;
    text-align: center;
}
footer .social-icons a {
    color: white;
    margin: 0 10px;
    font-size: 1.4em;
    transition: transform 0.3s ease;
}
footer .social-icons a:hover {
    transform: scale(1.2);
    color: #f8bbd0;
}


/* Hero Banner with Parallax */
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-image: url("../images/hero.png"); /* use your hero image */
    background-size: cover;
    background-position: center top;
    background-attachment: fixed; /* key for parallax */
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    text-align: center;
    color: white;
    margin: 0 auto;
    animation: fadeInUp 1.2s ease forwards;
}

.hero-text {
    animation: fadeInUp 1.2s ease forwards;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hero-text button {
    background: #ec407a;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.hero-text button:hover {
    background: #d81b60;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), rgba(255,255,255,0.2));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        height: 250px; /* smaller banner */
    }
    .hero-text h1 {
        font-size: 2em; /* smaller headline */
    }
    .hero-text p {
        font-size: 1em;
    }
    .hero-text button {
        padding: 8px 18px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 200px; /* even smaller on phones */
    }
    .hero-text h1 {
        font-size: 1.5em;
    }
    .hero-text p {
        font-size: 0.9em;
    }
    .hero-text button {
        padding: 6px 15px;
        font-size: 0.8em;
    }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    display: none;
  }
  .navbar.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
    background: #ec407a;
    color: white;
    padding: 10px;
    cursor: pointer;
    text-align: center;
  }
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
