/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #fffbf7;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #fff;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #ff4d4d;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

nav ul li a.active {
    color: #ff4d4d;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    background: #ff4d4d;
    height: 3px;
    width: 25px;
    margin: 4px 0;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 60px;
    flex-wrap: wrap;
    gap: 40px;
    min-height: 100vh;
    background: linear-gradient(135deg, #fffbf7 0%, #fff5f5 100%);
}

.hero-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.hero-text h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    margin-bottom: 30px;
    color: #666;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero-buttons {
    margin-top: 20px;
}

.hero-buttons .btn {
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    margin-right: 10px;
    font-weight: 600;
}

.hero-buttons .buy {
    background-color: #ff4d4d;
    color: #fff;
}

.hero-buttons .how {
    background-color: #fff;
    border: 2px solid #ff4d4d;
    color: #ff4d4d;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 80px 5%;
    background-color: #fff;
}

.feature {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature img {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 20%;
}

.feature h3 {
    color: #ff4d4d;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* Categories */
.categories {
    padding: 50px;
    text-align: center;
}

.category-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.category {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: 0.3s;
}

.category:hover {
    transform: translateY(-5px);
}

.category img {
    width: 170px;
}

.category h3 {
    margin: 10px 0;
    color: #ff4d4d;
}

.order-btn {
    text-decoration: none;
    background-color: #ff4d4d;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 5% 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #ff4d4d;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff4d4d;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .category-container {
        gap: 20px;
    }
}

/* Auth Container */
.auth-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.auth-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.auth-container h2 {
    margin-bottom: 20px;
    color: #ff4d4d;
    text-align: center;
    font-size: 24px;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 10px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 16px;
    border-radius: 5px 5px 0 0;
}

.tab-button:hover {
    background-color: #e63939;
    transform: scale(1.05);
}

.tab-button.active {
    background-color: #e63939;
    border-bottom: 2px solid rgb(182, 168, 168);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 0 0 10px 10px;
    background-color: #f9f9f9;
}

.tab-content.active {
    display: block;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
}

form input {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}

form input:focus {
    border-color: #ff4d4d;
    outline: none;
}

form button {
    padding: 12px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 16px;
}

form button:hover {
    background-color: #e63939;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-container {
        width: 90%;
        padding: 15px;
    }

    .tab-button {
        font-size: 14px;
    }

    form input {
        padding: 10px;
    }

    form button {
        padding: 10px;
        font-size: 14px;
    }
}

/* Back Button */
.back-button {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #ccc;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 16px;
    text-align: center;
}

.back-button:hover {
    background-color: #bbb;
    transform: scale(1.05);
}
