:root {
    --background: #ffffff;
    --foreground: #0f172a;
    --primary: #3b82f6;
    --primary-foreground: #ffffff;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --border: #e2e8f0;
    --radius: 0.5rem;
    --header-height: 4rem;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--foreground);
    line-height: 1.5;
    background: var(--background);
}

/* Desktop Header Styles */
.desktop-header {
    display: none;
}

@media (min-width: 769px) {
    .desktop-header {
        display: block;
        position: sticky;
        top: 0;
        z-index: 50;
        height: var(--header-height);
        border-bottom: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(8px);
    }

    .desktop-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
    }
}

/* Mobile Header Styles */
.mobile-header {
    display: none;
}

@media (max-width: 768px) {
    .mobile-header {
        display: block;
        position: sticky;
        top: 0;
        z-index: 50;
        background: var(--background);
        border-bottom: 1px solid var(--border);
    }

    .mobile-header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(8px);
    }

    /* Mobile Menu Toggle Button */
    .menu-toggle {
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--foreground);
        transition: transform 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Search Toggle Button */
    .search-toggle {
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        color: var(--foreground);
    }

    /* Mobile Search */
    .mobile-search {
        display: none;
        padding: 1rem;
        background: var(--background);
        border-bottom: 1px solid var(--border);
    }

    .mobile-search.active {
        display: block;
    }

    .mobile-search .search-input {
        width: 100%;
        padding: 0.75rem;
    }

    /* Mobile Navigation */
    .mobile-nav {
        display: none;
        background: var(--background);
        padding: 1rem 0;
    }

    .mobile-nav.active {
        display: block;
    }

    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav li {
        border-bottom: 1px solid var(--border);
    }

    .mobile-nav li:last-child {
        border-bottom: none;
    }

    .mobile-nav a {
        display: block;
        padding: 1rem;
        color: var(--foreground);
        text-decoration: none;
    }

    /* Mobile Dropdown */
    .mobile-dropdown {
        position: relative;
    }

    .mobile-dropdown-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        background: none;
        border: none;
        font-size: inherit;
        color: var(--foreground);
        cursor: pointer;
    }

    .mobile-dropdown-arrow {
        font-size: 0.75rem;
        transition: transform 0.3s ease;
    }

    .mobile-dropdown.active .mobile-dropdown-arrow {
        transform: rotate(180deg);
    }

    .mobile-dropdown-menu {
        display: none;
        background: var(--muted);
        padding-left: 1rem;
    }

    .mobile-dropdown.active .mobile-dropdown-menu {
        display: block;
    }

    /* Mobile Auth Buttons */
    .mobile-auth-buttons {
        padding: 1rem;
        display: flex;
        gap: 0.5rem;
    }

    .mobile-auth-buttons .btn {
        flex: 1;
        text-align: center;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.slide-down {
    animation: slideDown 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.dropdown-menu li {
    margin: 0 !important;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--foreground);
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--muted);
    color: var(--primary);
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Responsive Dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        display: none;
        padding-left: 1rem;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
}


/*dropdown end*/

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    color: inherit;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--primary) 90%, black);
}

.btn-ghost {
    background: transparent;
    color: var(--foreground);
}

.btn-ghost:hover {
    background: var(--muted);
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, color-mix(in srgb, var(--primary) 10%, transparent), color-mix(in srgb, var(--primary) 5%, transparent));
    opacity: 0.1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--muted-foreground);
    font-size: 1.125rem;
}

/* Search Styles */
.search-input,
.search-input-large {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus,
.search-input-large:focus {
    border-color: var(--primary);
}

.search-box {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-input-large {
    height: 3rem;
    font-size: 1rem;
}

/* Items Section */
.items-section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.section-description {
    color: var(--muted-foreground);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Item Card */
.item-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    transition: transform 0.2s;
}

.item-card:hover {
    transform: translateY(-4px);
}

.item-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.item-card:hover .item-image img {
    transform: scale(1.05);
}

.item-content {
    padding: 1rem;
}

.item-content h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.item-content p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.item-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.hidden-notice {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.hidden-notice a {
    color: var(--primary);
    text-decoration: none;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--muted);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.copyright {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-nav-section h4 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-nav-section ul {
    list-style: none;
}

.footer-nav-section a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-nav-section a:hover {
    color: var(--foreground);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--foreground);
    transition: 0.3s;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .search-container {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .section-header {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-nav {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero > * {
    animation: fadeIn 0.6s ease-out;
}

.item-card {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.items-grid .item-card:nth-child(1) { animation-delay: 0.1s; }
.items-grid .item-card:nth-child(2) { animation-delay: 0.2s; }
.items-grid .item-card:nth-child(3) { animation-delay: 0.3s; }