/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Theme (Default) */
    --bg-primary: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #f1f5f9 50%, #f8fafc 100%);
    --bg-overlay: radial-gradient(circle at 20% 20%, rgba(255, 107, 107, 0.05) 0%, transparent 50%),
                 radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.05) 0%, transparent 50%),
                 radial-gradient(circle at 40% 60%, rgba(102, 126, 234, 0.03) 0%, transparent 50%);
    --text-color: #333;
    --text-secondary: #555;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.2);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --input-bg: rgba(255, 255, 255, 0.95);
    --input-border: 1px solid rgba(0, 0, 0, 0.1);
    --input-focus-border: 1px solid rgba(102, 126, 234, 0.5);
    --btn-primary-bg: #6366f1;
    --btn-primary-color: white;
    --btn-hover-bg: #4f46e5;
    --highlight-color: #6366f1;
    --message-user-bg: #e9ecef;
    --message-bot-bg: #f8f9fa;
}

[data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    --bg-overlay: radial-gradient(circle at 20% 20%, rgba(255, 107, 107, 0.05) 0%, transparent 50%),
                 radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.05) 0%, transparent 50%),
                 radial-gradient(circle at 40% 60%, rgba(102, 126, 234, 0.03) 0%, transparent 50%);
    --text-color: #e2e8f0;
    --text-secondary: #cbd5e1;
    --card-bg: rgba(30, 41, 59, 0.95);
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --nav-bg: rgba(30, 41, 59, 0.95);
    --nav-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    --input-bg: rgba(30, 41, 59, 0.8);
    --input-border: 1px solid rgba(255, 255, 255, 0.1);
    --input-focus-border: 1px solid rgba(102, 126, 234, 0.5);
    --btn-primary-bg: #6366f1;
    --btn-primary-color: white;
    --btn-hover-bg: #4f46e5;
    --highlight-color: #818cf8;
    --message-user-bg: #334155;
    --message-bot-bg: #1e293b;
}

[data-theme="night"] {
    --bg-primary: linear-gradient(135deg, #000000 0%, #0f172a 50%, #000000 100%);
    --bg-overlay: radial-gradient(circle at 20% 20%, rgba(147, 51, 234, 0.05) 0%, transparent 50%),
                 radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
                 radial-gradient(circle at 40% 60%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    --text-color: #e2e8f0;
    --text-secondary: #94a3b8;
    --card-bg: rgba(15, 23, 42, 0.95);
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --nav-bg: rgba(15, 23, 42, 0.95);
    --nav-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --input-bg: rgba(15, 23, 42, 0.8);
    --input-border: 1px solid rgba(255, 255, 255, 0.1);
    --input-focus-border: 1px solid rgba(59, 130, 246, 0.5);
    --btn-primary-bg: #3b82f6;
    --btn-primary-color: white;
    --btn-hover-bg: #2563eb;
    --highlight-color: #60a5fa;
    --message-user-bg: #1e293b;
    --message-bot-bg: #0f172a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-primary);
    background-attachment: fixed;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - Enhanced Beautiful Design */
.navbar {
    background: var(--nav-bg, linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 75%, #f5576c 100%));
    box-shadow: var(--nav-shadow, 0 8px 32px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(102, 126, 234, 0.2));
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
    z-index: 1;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    gap: 12px;
    transition: all 0.3s ease;
}

.nav-logo a:hover {
    transform: scale(1.05);
}

.nav-logo .logo-image {
    height: 50px;
    width: 50px;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-logo a:hover .logo-image {
    filter: brightness(1.1);
    transform: rotate(5deg);
}

.nav-logo i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 12px 20px;
    border-radius: 25px;
    overflow: hidden;
}

.nav-link::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.5s ease;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #ffd700;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    z-index: 1001; /* Ensure it's above other nav elements */
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.nav-toggle.active .hamburger {
    background: transparent; /* Hide the middle bar */
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

.nav-auth-mobile {
    display: none; /* Hidden by default */
}


@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
    }

    .nav-toggle {
        display: block; /* Show hamburger on mobile */
    }

    .nav-menu {
        display: none; /* Hide menu by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex; /* Show menu when active */
    }

    .nav-link {
        margin: 10px 0;
        font-size: 1.2rem;
    }

    .nav-right-items {
        display: none; /* Hide desktop items on mobile */
    }

    .nav-auth-mobile {
        display: flex; /* Show mobile auth section */
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }
}

/* Authentication Styles */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons .btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.user-avatar span {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

.user-avatar i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-menu.active .user-avatar i {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 280px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-info {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.user-email {
    font-size: 0.9rem;
    opacity: 0.9;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #667eea;
    transform: translateX(5px);
}

.dropdown-item.logout {
    color: #ef4444;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 8px;
}

.dropdown-item.logout:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
}

/* Main Content - Enhanced Design */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    position: relative;
}

/* Global Section Enhancements */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

section > .container {
    position: relative;
    z-index: 1;
}

/* Hero Section - Stunning Modern Design */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 75%, #ff6b6b 100%);
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.2) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.05)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.3s both;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn::before {
    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.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 50%, #ff9a56 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-white {
    background: white;
    color: #333;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--btn-primary-bg);
    border: 2px solid var(--btn-primary-bg);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.btn-outline:hover {
    background: var(--btn-primary-bg);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* Floating Cards Animation */
.hero-image {
    position: relative;
    height: 400px;
}

.floating-cards {
    position: relative;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: #ffd700;
}

.card1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card2 {
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.card3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    border-radius: 2px;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
}

.category-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: #764ba2;
}

/* Featured Offers Section - Enhanced Background */
.featured-offers-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #f1f5f9 75%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.featured-offers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 107, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

/* Offers Grid - Enhanced for multiple columns */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
    align-items: stretch;
    will-change: transform;
    contain: layout style;
}

@media (min-width: 768px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.offer-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    contain: content;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(102, 126, 234, 0.2);
}

.offer-image {
    position: relative;
    height: 150px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Image loading states */
.offer-image img[src=""],
.offer-image img:not([src]) {
    opacity: 0;
}

.offer-image img[src*="placeholder.jpg"] {
    object-fit: contain;
    padding: 20px;
    opacity: 0.8;
}

/* Image error fallback */
.offer-image::before {
    content: '🖼️';
    position: absolute;
    font-size: 3rem;
    color: #cbd5e0;
    z-index: 1;
    display: none;
}

.offer-image.error::before {
    display: block;
}

.offer-image.error img {
    display: none;
}

/* Loading animation for images */
.offer-image.loading {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Image fade-in animation */
.offer-image img.loaded {
    animation: fadeInImage 0.5s ease-out;
}

@keyframes fadeInImage {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color, #28a745);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    max-width: 350px;
    animation: slideInRight 0.3s ease;
}

.notification.error {
    background: var(--error-color, #dc3545);
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification i {
    font-size: 1.1rem;
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Navigation Styles */
.nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    z-index: 1001; /* Ensure it's above other nav elements */
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.nav-toggle.active .hamburger {
    background: transparent; /* Hide the middle bar */
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

.nav-auth-mobile {
    display: none; /* Hidden by default */
}


@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
    }

    .nav-toggle {
        display: block; /* Show hamburger on mobile */
    }

    .nav-menu {
        display: none; /* Hide menu by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex; /* Show menu when active */
    }

    .nav-link {
        margin: 10px 0;
        font-size: 1.2rem;
    }

    .nav-right-items {
        display: none; /* Hide desktop items on mobile */
    }

    .nav-auth-mobile {
        display: flex; /* Show mobile auth section */
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }
}

/* Authentication Styles */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons .btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.user-avatar span {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

.user-avatar i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-menu.active .user-avatar i {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 280px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-info {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.user-email {
    font-size: 0.9rem;
    opacity: 0.9;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #667eea;
    transform: translateX(5px);
}

.dropdown-item.logout {
    color: #ef4444;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 8px;
}

.dropdown-item.logout:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
}

/* Main Content - Enhanced Design */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    position: relative;
}

/* Global Section Enhancements */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

section > .container {
    position: relative;
    z-index: 1;
}

/* Hero Section - Stunning Modern Design */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 75%, #ff6b6b 100%);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.2) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.05)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.3s both;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn::before {
    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.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 50%, #ff9a56 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-white {
    background: white;
    color: #333;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--btn-primary-bg);
    border: 2px solid var(--btn-primary-bg);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.btn-outline:hover {
    background: var(--btn-primary-bg);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* Floating Cards Animation */
.hero-image {
    position: relative;
    height: 400px;
}

.floating-cards {
    position: relative;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: #ffd700;
}

.card1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card2 {
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.card3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    border-radius: 2px;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
}

.category-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: #764ba2;
}

/* Featured Offers Section - Enhanced Background */
.featured-offers-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #f1f5f9 75%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.featured-offers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 107, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

/* Offers Grid - Enhanced for multiple columns */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
    align-items: stretch;
    will-change: transform;
    contain: layout style;
}

@media (min-width: 768px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.offer-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    contain: content;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(102, 126, 234, 0.2);
}

.offer-image {
    position: relative;
    height: 150px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Image loading states */
.offer-image img[src=""],
.offer-image img:not([src]) {
    opacity: 0;
}

.offer-image img[src*="placeholder.jpg"] {
    object-fit: contain;
    padding: 20px;
    opacity: 0.8;
}

/* Image error fallback */
.offer-image::before {
    content: '🖼️';
    position: absolute;
    font-size: 3rem;
    color: #cbd5e0;
    z-index: 1;
    display: none;
}

.offer-image.error::before {
    display: block;
}

.offer-image.error img {
    display: none;
}

/* Loading animation for images */
.offer-image.loading {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Image fade-in animation */
.offer-image img.loaded {
    animation: fadeInImage 0.5s ease-out;
}

@keyframes fadeInImage {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color, #28a745);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    max-width: 350px;
    animation: slideInRight 0.3s ease;
}

.notification.error {
    background: var(--error-color, #dc3545);
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification i {
    font-size: 1.1rem;
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Navigation Styles */
.nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    z-index: 1001; /* Ensure it's above other nav elements */
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.nav-toggle.active .hamburger {
    background: transparent; /* Hide the middle bar */
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

.nav-auth-mobile {
    display: none; /* Hidden by default */
}


@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
    }

    .nav-toggle {
        display: block; /* Show hamburger on mobile */
    }

    .nav-menu {
        display: none; /* Hide menu by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex; /* Show menu when active */
    }

    .nav-link {
        margin: 10px 0;
        font-size: 1.2rem;
    }

    .nav-right-items {
        display: none; /* Hide desktop items on mobile */
    }

    .nav-auth-mobile {
        display: flex; /* Show mobile auth section */
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }
}

/* Authentication Styles */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons .btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.user-avatar span {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

.user-avatar i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-menu.active .user-avatar i {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 280px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-info {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.user-email {
    font-size: 0.9rem;
    opacity: 0.9;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #667eea;
    transform: translateX(5px);
}

.dropdown-item.logout {
    color: #ef4444;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 8px;
}

.dropdown-item.logout:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
}

/* Main Content - Enhanced Design */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    position: relative;
}

/* Global Section Enhancements */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

section > .container {
    position: relative;
    z-index: 1;
}

/* Hero Section - Stunning Modern Design */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 75%, #ff6b6b 100%);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.2) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.05)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.3s both;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn::before {
    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.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 50%, #ff9a56 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-white {
    background: white;
    color: #333;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--btn-primary-bg);
    border: 2px solid var(--btn-primary-bg);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.btn-outline:hover {
    background: var(--btn-primary-bg);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* Floating Cards Animation */
.hero-image {
    position: relative;
    height: 400px;
}

.floating-cards {
    position: relative;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: #ffd700;
}

.card1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card2 {
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.card3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    border-radius: 2px;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
}

.category-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: #764ba2;
}

/* Featured Offers Section - Enhanced Background */
.featured-offers-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #f1f5f9 75%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.featured-offers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 107, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

/* Offers Grid - Enhanced for multiple columns */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
    align-items: stretch;
    will-change: transform;
    contain: layout style;
}

@media (min-width: 768px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.offer-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    contain: content;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(102, 126, 234, 0.2);
}

.offer-image {
    position: relative;
    height: 150px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Image loading states */
.offer-image img[src=""],
.offer-image img:not([src]) {
    opacity: 0;
}

.offer-image img[src*="placeholder.jpg"] {
    object-fit: contain;
    padding: 20px;
    opacity: 0.8;
}

/* Image error fallback */
.offer-image::before {
    content: '🖼️';
    position: absolute;
    font-size: 3rem;
    color: #cbd5e0;
    z-index: 1;
    display: none;
}

.offer-image.error::before {
    display: block;
}

.offer-image.error img {
    display: none;
}

/* Loading animation for images */
.offer-image.loading {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Image fade-in animation */
.offer-image img.loaded {
    animation: fadeInImage 0.5s ease-out;
}

@keyframes fadeInImage {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color, #28a745);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    max-width: 350px;
    animation: slideInRight 0.3s ease;
}

.notification.error {
    background: var(--error-color, #dc3545);
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification i {
    font-size: 1.1rem;
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Navigation Styles */
.nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    z-index: 1001; /* Ensure it's above other nav elements */
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.nav-toggle.active .hamburger {
    background: transparent; /* Hide the middle bar */
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

.nav-auth-mobile {
    display: none; /* Hidden by default */
}


@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
    }

    .nav-toggle {
        display: block; /* Show hamburger on mobile */
    }

    .nav-menu {
        display: none; /* Hide menu by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex; /* Show menu when active */
    }

    .nav-link {
        margin: 10px 0;
        font-size: 1.2rem;
    }

    .nav-right-items {
        display: none; /* Hide desktop items on mobile */
    }

    .nav-auth-mobile {
        display: flex; /* Show mobile auth section */
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }
}

/* Authentication Styles */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons .btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.user-avatar span {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

.user-avatar i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-menu.active .user-avatar i {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 280px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-info {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.user-email {
    font-size: 0.9rem;
    opacity: 0.9;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #667eea;
    transform: translateX(5px);
}

.dropdown-item.logout {
    color: #ef4444;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 8px;
}

.dropdown-item.logout:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
}

/* Main Content - Enhanced Design */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    position: relative;
}

/* Global Section Enhancements */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

section > .container {
    position: relative;
    z-index: 1;
}

/* Hero Section - Stunning Modern Design */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 75%, #ff6b6b 100%);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.2) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.05)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.3s both;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn::before {
    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.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 50%, #ff9a56 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-white {
    background: white;
    color: #333;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--btn-primary-bg);
    border: 2px solid var(--btn-primary-bg);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.btn-outline:hover {
    background: var(--btn-primary-bg);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* Floating Cards Animation */
.hero-image {
    position: relative;
    height: 400px;
}

.floating-cards {
    position: relative;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: #ffd700;
}

.card1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card2 {
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.card3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    border-radius: 2px;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
}

.category-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: #764ba2;
}

/* Featured Offers Section - Enhanced Background */
.featured-offers-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #f1f5f9 75%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.featured-offers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 107, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

/* Offers Grid - Enhanced for multiple columns */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
    align-items: stretch;
    will-change: transform;
    contain: layout style;
}

@media (min-width: 768px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.offer-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    contain: content;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(102, 126, 234, 0.2);
}

.offer-image {
    position: relative;
    height: 150px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Image loading states */
.offer-image img[src=""],
.offer-image img:not([src]) {
    opacity: 0;
}

.offer-image img[src*="placeholder.jpg"] {
    object-fit: contain;
    padding: 20px;
    opacity: 0.8;
}

/* Image error fallback */
.offer-image::before {
    content: '🖼️';
    position: absolute;
    font-size: 3rem;
    color: #cbd5e0;
    z-index: 1;
    display: none;
}

.offer-image.error::before {
    display: block;
}

.offer-image.error img {
    display: none;
}

/* Loading animation for images */
.offer-image.loading {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Image fade-in animation */
.offer-image img.loaded {
    animation: fadeInImage 0.5s ease-out;
}

@keyframes fadeInImage {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color, #28a745);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    max-width: 350px;
    animation: slideInRight 0.3s ease;
}

.notification.error {
    background: var(--error-color, #dc3545);
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification i {
    font-size: 1.1rem;
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Navigation Styles */
.nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    z-index: 1001; /* Ensure it's above other nav elements */
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.nav-toggle.active .hamburger {
    background: transparent; /* Hide the middle bar */
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

.nav-auth-mobile {
    display: none; /* Hidden by default */
}


@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
    }

    .nav-toggle {
        display: block; /* Show hamburger on mobile */
    }

    .nav-menu {
        display: none; /* Hide menu by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex; /* Show menu when active */
    }

    .nav-link {
        margin: 10px 0;
        font-size: 1.2rem;
    }

    .nav-right-items {
        display: none; /* Hide desktop items on mobile */
    }

    .nav-auth-mobile {
        display: flex; /* Show mobile auth section */
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }
}

/* Authentication Styles */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons .btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.user-avatar span {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

.user-avatar i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-menu.active .user-avatar i {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 280px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-info {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.user-email {
    font-size: 0.9rem;
    opacity: 0.9;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #667eea;
    transform: translateX(5px);
}

.dropdown-item.logout {
    color: #ef4444;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 8px;
}

.dropdown-item.logout:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
}

/* Main Content - Enhanced Design */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    position: relative;
}

/* Global Section Enhancements */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

section > .container {
    position: relative;
    z-index: 1;
}

/* Hero Section - Stunning Modern Design */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 75%, #ff6b6b 100%);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.2) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.05)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.3s both;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn::before {
    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.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 50%, #ff9a56 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-white {
    background: white;
    color: #333;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--btn-primary-bg);
    border: 2px solid var(--btn-primary-bg);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.btn-outline:hover {
    background: var(--btn-primary-bg);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* Floating Cards Animation */
.hero-image {
    position: relative;
    height: 400px;
}

.floating-cards {
    position: relative;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: #ffd700;
}

.card1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card2 {
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.card3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    border-radius: 2px;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
}

.category-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: #764ba2;
}

/* Featured Offers Section - Enhanced Background */
.featured-offers-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #f1f5f9 75%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.featured-offers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 107, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

/* Offers Grid - Enhanced for multiple columns */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
    align-items: stretch;
    will-change: transform;
    contain: layout style;
}

@media (min-width: 768px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.offer-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    contain: content;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(102, 126, 234, 0.2);
}

.offer-image {
    position: relative;
    height: 150px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Image loading states */
.offer-image img[src=""],
.offer-image img:not([src]) {
    opacity: 0;
}

.offer-image img[src*="placeholder.jpg"] {
    object-fit: contain;
    padding: 20px;
    opacity: 0.8;
}

/* Image error fallback */
.offer-image::before {
    content: '🖼️';
    position: absolute;
    font-size: 3rem;
    color: #cbd5e0;
    z-index: 1;
    display: none;
}

.offer-image.error::before {
    display: block;
}

.offer-image.error img {
    display: none;
}

/* Loading animation for images */
.offer-image.loading {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Image fade-in animation */
.offer-image img.loaded {
    animation: fadeInImage 0.5s ease-out;
}

@keyframes fadeInImage {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color, #28a745);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    max-width: 350px;
    animation: slideInRight 0.3s ease;
}

.notification.error {
    background: var(--error-color, #dc3545);
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification i {
    font-size: 1.1rem;
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Navigation Styles */
.nav-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    z-index: 1001; /* Ensure it's above other nav elements */
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.nav-toggle.active .hamburger {
    background: transparent; /* Hide the middle bar */
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

.nav-auth-mobile {
    display: none; /* Hidden by default */
}


@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
    }

    .nav-toggle {
        display: block; /* Show hamburger on mobile */
    }

    .nav-menu {
        display: none; /* Hide menu by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex; /* Show menu when active */
    }

    .nav-link {
        margin: 10px 0;
        font-size: 1.2rem;
    }

    .nav-right-items {
        display: none; /* Hide desktop items on mobile */
    }

    .nav-auth-mobile {
        display: flex; /* Show mobile auth section */
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }
}

/* Authentication Styles */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons .btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-outline {
    background: mediumseagreen;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: seagreen;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* User Menu Styles */
.user-menu {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.user-avatar span {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
}

.user-avatar i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-menu.active .user-avatar i {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 280px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-info {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.user-email {
    font-size: 0.9rem;
    opacity: 0.9;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #667eea;
    transform: translateX(5px);
}

.dropdown-item.logout {
    color: #ef4444;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 8px;
}

.dropdown-item.logout:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
}

/* Main Content - Enhanced Design */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    position: relative;
}

/* Global Section Enhancements */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

section > .container {
    position: relative;
    z-index: 1;
}

/* Hero Section - Stunning Modern Design */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 75%, #ff6b6b 100%);
    color: white;   
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.2) 0%, transparent 50%);
}