* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #4f46e5;
    --secondary: #6366f1;
    --dark: #1e293b;
    --light: #f8fafc;
    --success: #10b981;
    --danger: #ef4444;
}

body {
    background-color: #f1f5f9;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header, Logo, Nav */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.logo i { color: #fbbf24; }
.logo-link { color: white; text-decoration: none; }

/* Hero Section */
.hero { background: linear-gradient(rgba(79, 70, 229, 0.9), rgba(99, 102, 241, 0.9)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3') center/cover; color: white; padding: 5rem 0; text-align: center; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; }
.btn { display: inline-block; background: var(--success); color: white; padding: 0.8rem 2rem; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; }
.btn:hover { background: #059669; transform: translateY(-3px); }

/* General Section Title */
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.5rem; color: var(--primary); }
.section-title p { color: #64748b; }

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
    background-color: white;
}
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.step-card {
    text-align: center;
    padding: 2rem;
}
.step-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(79, 70, 229, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}
.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}
.step-card p {
    color: #64748b;
}

/* Features Section */
.features { background: #f1f5f9; padding: 4rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature-card { text-align: center; padding: 2rem; }
.feature-icon { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; }
.feature-title { font-size: 1.3rem; margin-bottom: 0.5rem; }

/* Call to Action (CTA) Section */
.cta-section {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 4rem 1rem;
}
.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
}
.cta-section .btn {
    background-color: var(--primary);
}
.cta-section .btn:hover {
    background-color: var(--secondary);
}

/* Header Actions, Profile Dropdown & Mobile Drawer */
.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.desktop-nav { display: block; }
.desktop-nav ul { display: flex; list-style: none; gap: 2rem; margin: 0; padding: 0; }
.desktop-nav a { color: white; text-decoration: none; font-weight: 500; }
.mobile-nav-toggle { display: none; }
.desktop-profile { display: block; }
.auth-button { color: white; text-decoration: none; font-weight: 500; padding: 0.5rem 1rem; border: 1px solid white; border-radius: 5px; transition: all 0.3s ease; }
.auth-button.register { background-color: white; color: var(--primary); }
.auth-button:hover { background-color: rgba(255,255,255,0.2); }
.auth-button.register:hover { background-color: #f0f0f0; }

.profile-section { position: relative; }
.profile-btn { background: none; border: none; color: white; font-size: 1rem; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 0; }
.profile-btn i.fa-user-circle { font-size: 1.8rem; }
.profile-btn i.fa-chevron-down { font-size: 0.8rem; transition: transform 0.3s ease; }
.profile-dropdown .dropdown-content { opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; position: absolute; right: 0; background-color: white; min-width: 180px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 10; border-radius: 5px; overflow: hidden; }
.profile-dropdown:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }
.profile-dropdown:hover .profile-btn i.fa-chevron-down { transform: rotate(180deg); }
.dropdown-content a { color: black; padding: 12px 16px; text-decoration: none; display: block; }
.dropdown-content a:hover { background-color: #f1f1f1; }

.cart-icon { position: relative; cursor: pointer; font-size: 1.5rem; color: white; }
.cart-count { position: absolute; top: -8px; right: -8px; background: var(--danger); color: white; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.mobile-drawer { position: fixed; top: 0; right: -300px; width: 280px; height: 100%; background-color: white; z-index: 1001; box-shadow: -5px 0 15px rgba(0,0,0,0.2); transition: right 0.3s ease-in-out; }
.mobile-drawer.open { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid #e2e8f0; }
.drawer-header h3 { color: var(--primary); }
.close-drawer { background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--dark); }
.mobile-nav-links ul { list-style: none; padding: 1rem 0; margin: 0; }
.mobile-nav-links a { display: block; padding: 1rem 1.5rem; color: var(--dark); text-decoration: none; font-weight: 500; }
.mobile-nav-links a:hover { background-color: #f1f5f9; }
.drawer-profile-section { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; border-top: 1px solid #e2e8f0; }
.drawer-profile-section .auth-button { text-align: center; color: var(--primary); border-color: var(--primary); }
.drawer-profile-section .auth-button.register { background-color: var(--primary); color: white; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; }
.overlay.open { opacity: 1; visibility: visible; }

/* Footer Styles */
footer { background: var(--dark); color: white; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.footer-col h3 { margin-bottom: 1.5rem; font-size: 1.2rem; color: #f8fafc; position: relative; padding-bottom: 0.5rem; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-col p { color: #cbd5e1; line-height: 1.8; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col a { color: #cbd5e1; text-decoration: none; transition: color 0.3s ease, padding-left 0.3s ease; }
.footer-col a:hover { color: white; padding-left: 5px; }
.copyright { text-align: center; padding-top: 2rem; border-top: 1px solid #334155; color: #94a3b8; font-size: 0.9rem; }

/* Responsive Media Query */
@media (max-width: 992px) {
    .desktop-nav, .desktop-profile {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }
}