/* ============================================
   PROFESSIONAL HEADER STYLES
   ============================================ */

/* Variables */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #6c8cff;
    --secondary-color: #2c3e50;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --gray-dark: #4b5563;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --gray-lighter: #e5e7eb;
    --light-color: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    font-size: 0.8125rem;
    padding: 0.5rem 0;
    position: relative;
    z-index: 101;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-left i {
    font-size: 0.875rem;
    color: var(--accent-color);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-bar-right a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.top-bar-right a:hover {
    color: var(--accent-color);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   MAIN HEADER
   ============================================ */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.main-header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.logo-icon i {
    font-size: 1.25rem;
    color: var(--white);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark-color);
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 0.625rem;
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.nav-link i {
    font-size: 1rem;
    transition: var(--transition-fast);
}

.nav-link span {
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.1);
}

.nav-link.active i {
    color: var(--primary-color);
}

/* Dropdown */
.dropdown-toggle {
    position: relative;
    padding-right: 2rem;
}

.dropdown-icon {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.dropdown-menu li a i {
    width: 1.25rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.dropdown-menu li a:hover {
    background-color: rgba(67, 97, 238, 0.05);
    color: var(--primary-color);
}

.dropdown-menu li a:hover i {
    color: var(--primary-color);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Search Toggle */
.search-toggle-wrapper {
    position: relative;
}

.search-toggle {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--gray-dark);
    font-size: 1.125rem;
}

.search-toggle:hover {
    background-color: rgba(67, 97, 238, 0.05);
    color: var(--primary-color);
}
/* ============================================
   HOMEPAGE - PROJECTS ONLY STYLES
   ============================================ */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.05) 1%, transparent 1%);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(67, 97, 238, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-badge i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.hero-badge span {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.hero-visual {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
}

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

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    animation: floatCard 4s ease-in-out infinite;
}

.floating-card i {
    color: var(--primary-color);
    font-size: 1rem;
}

.card-1 {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    right: -20px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 30%;
    left: -30px;
    animation-delay: 2s;
}

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

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Section */
.featured-section {
    padding: 5rem 0;
    background: var(--white);
}

/* Latest Section */
.latest-section {
    padding: 5rem 0;
    background: var(--light-color);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Project Card */
.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.featured-badge {
    background: var(--accent-color);
    color: var(--white);
}

.project-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #f5f7fa, #eef2f7);
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder i {
    font-size: 3.5rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.project-overlay .btn-primary {
    background: var(--primary-color);
    color: white;
}

.project-overlay .btn-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.project-overlay .btn-outline:hover {
    background: white;
    color: var(--dark-color);
}

.project-info {
    padding: 1.25rem;
}

.project-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.project-info h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.2s;
}

.project-info h3 a:hover {
    color: var(--primary-color);
}

.project-description {
    font-size: 0.8125rem;
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

.project-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-count {
    font-size: 0.75rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.difficulty-badge {
    padding: 0.1875rem 0.5rem;
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.difficulty-badge.beginner {
    background: #10b981;
    color: white;
}

.difficulty-badge.intermediate {
    background: #f59e0b;
    color: white;
}

.difficulty-badge.advanced {
    background: #ef4444;
    color: white;
}

.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .floating-card {
        display: none;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .featured-section,
    .latest-section {
        padding: 3rem 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image {
        height: 200px;
    }
}

/* Cart Button */
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--gray-dark);
    text-decoration: none;
    transition: var(--transition-fast);
}

.cart-btn i {
    font-size: 1.125rem;
}

.cart-btn:hover {
    background-color: rgba(67, 97, 238, 0.05);
    color: var(--primary-color);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-login,
.btn-register {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login {
    background: transparent;
    color: var(--gray-dark);
    border: 1px solid var(--gray-lighter);
}

.btn-login:hover {
    background: rgba(67, 97, 238, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-register {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
}

.btn-register:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 40px;
    cursor: pointer;
    transition: var(--transition-fast);
    background-color: rgba(67, 97, 238, 0.05);
}

.user-menu-toggle:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.user-avatar-mini {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-dark);
}

.user-menu-toggle i {
    font-size: 0.75rem;
    color: var(--gray);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 280px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.user-menu-wrapper:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--gray-lighter);
}

.user-dropdown-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.125rem;
}

.user-dropdown-info {
    flex: 1;
}

.user-dropdown-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.125rem;
}

.user-dropdown-email {
    font-size: 0.75rem;
    color: var(--gray);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--gray-lighter);
    margin: 0.5rem 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.user-dropdown-item i {
    width: 1.25rem;
    font-size: 1rem;
    color: var(--gray);
}

.user-dropdown-item:hover {
    background-color: rgba(67, 97, 238, 0.05);
    color: var(--primary-color);
}

.user-dropdown-item:hover i {
    color: var(--primary-color);
}

.user-dropdown-item.logout {
    color: var(--danger-color);
}

.user-dropdown-item.logout i {
    color: var(--danger-color);
}

.user-dropdown-item.logout:hover {
    background-color: rgba(239, 68, 68, 0.05);
    color: var(--danger-color);
}

/* Search Bar */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-lighter);
    border-bottom: 1px solid var(--gray-lighter);
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.search-bar.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-bar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-form {
    flex: 1;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--gray);
    font-size: 1rem;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid var(--gray-lighter);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-fast);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.search-submit {
    position: absolute;
    right: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-submit:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-1px);
}

.search-close {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--gray);
}

.search-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--danger-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--dark-color);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 0;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    .nav-link span {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .top-bar {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-xl);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 2rem;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-toggle .dropdown-icon {
        margin-left: auto;
    }
    
    .nav-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .search-toggle-wrapper {
        width: 100%;
    }
    
    .search-toggle {
        width: 100%;
        border-radius: 8px;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    
    .search-toggle i {
        font-size: 1rem;
    }
    
    .cart-btn {
        width: 100%;
        border-radius: 8px;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-login,
    .btn-register {
        justify-content: center;
    }
    
    .user-menu-wrapper {
        width: 100%;
    }
    
    .user-menu-toggle {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }
    
    .user-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0.5rem;
        display: none;
    }
    
    .user-menu-wrapper.active .user-dropdown {
        display: block;
    }
    
    .search-bar-container {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .search-input-wrapper input {
        font-size: 0.875rem;
    }
    
    .search-submit {
        position: static;
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* ============================================
   PROFESSIONAL FOOTER STYLES
   ============================================ */

/* Newsletter Section */
.footer-newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.footer-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1%, transparent 1%);
    background-size: 50px 50px;
    animation: moveBackground 60s linear infinite;
    pointer-events: none;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.newsletter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.newsletter-text h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.newsletter-form {
    flex: 1;
    max-width: 450px;
}

.newsletter-form .form-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    transition: var(--transition-fast);
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.btn-newsletter {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-newsletter:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.newsletter-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Main Footer */
.footer-main {
    background: var(--dark-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon i {
    font-size: 1.25rem;
    color: var(--white);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-main {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.footer-logo-tagline {
    font-size: 0.625rem;
    color: var(--gray-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-description {
    color: var(--gray-light);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    transition: var(--transition-fast);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Footer Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links li a i {
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.footer-links li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-links li a:hover i {
    transform: translateX(3px);
}

/* Contact Info */
.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.footer-contact li i {
    width: 20px;
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 0.25rem;
}

.footer-contact li div {
    flex: 1;
}

.footer-contact li strong {
    display: block;
    color: var(--white);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.footer-contact li a,
.footer-contact li span {
    color: var(--gray-light);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-contact li a:hover {
    color: var(--white);
}

.footer-contact li span {
    display: block;
    line-height: 1.4;
}

/* Trust Badges */
.footer-trust {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-light);
    font-size: 0.875rem;
}

.trust-badge i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Footer Bottom */
.footer-bottom {
    background: var(--dark-color);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    color: var(--gray-light);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--white);
}

.footer-legal .separator {
    color: var(--gray);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: var(--transition-fast);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   RESPONSIVE FOOTER
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .trust-badges {
        justify-content: center;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-newsletter {
        padding: 2rem 0;
    }
    
    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
        max-width: 100%;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .btn-newsletter {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
        text-align: left;
    }
    
    .footer-links li a {
        justify-content: center;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}