:root {
    --bg-color: #07070b;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --iris-300: #d8b4fe;
    --iris-400: #c084fc;
    --iris-500: #a855f7;
    --iris-600: #9333ea;
    
    --mint-300: #6ee7b7;
    --mint-400: #34d399;
    --mint-500: #10b981;
    
    --amber-400: #fbbf24;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.orb-1 {
    top: -20%;
    left: 20%;
    width: 40rem;
    height: 40rem;
    background-color: rgba(147, 51, 234, 0.15); /* iris-600 */
}

.orb-2 {
    top: 10%;
    right: -10%;
    width: 30rem;
    height: 30rem;
    background-color: rgba(52, 211, 153, 0.1); /* mint-400 */
}

.orb-3 {
    bottom: -10%;
    left: -10%;
    width: 30rem;
    height: 30rem;
    background-color: rgba(168, 85, 247, 0.12); /* iris-500 */
}

/* Typography Helpers */
.text-gradient-iris {
    background: linear-gradient(to right, #c084fc, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-amber { color: var(--amber-400); }
.text-iris { color: var(--iris-300); }

/* App Styles Additions */

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-field:focus {
    border-color: var(--iris-500);
}

/* Cart Badge */
.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444; /* red-500 */
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 9999px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(25%, -25%);
}

/* SPA View Classes */
.view-section {
    display: none;
}
.view-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Cart Sliding Drawer */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cart-drawer-overlay.active {
    display: block;
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden initially */
    width: 400px;
    height: 100vh;
    max-width: 100vw;
    background: var(--bg-color);
    border-left: 1px solid var(--border-color);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    overflow-y: auto;
}
.cart-drawer.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.cart-body {
    flex: 1 0 auto;
    overflow-y: visible;
    padding: 1.5rem;
}
.cart-footer {
    flex-shrink: 0;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}
.cart-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.cart-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.nav-links {
    display: none;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        gap: 0.5rem;
    }
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

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

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.icon-btn i {
    width: 18px;
    height: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--iris-600);
    color: white;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    border: none;
    box-shadow: 0 4px 20px -5px rgba(168, 85, 247, 0.5);
}

.btn-primary:hover {
    background: var(--iris-500);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 8rem;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
    margin-bottom: 1.5rem;
}

.badge-icon {
    width: 14px;
    height: 14px;
    color: var(--mint-300);
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title { font-size: 4rem; }
}
@media (min-width: 1024px) {
    .hero-title { font-size: 4.5rem; }
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 32rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        width: auto;
    }
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.metric {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.metric i {
    width: 16px;
    height: 16px;
}

/* 3D Visual Cards Grid */
.hero-visual {
    position: relative;
    height: 100%;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-backdrop {
    position: absolute;
    inset: 10%;
    background: rgba(147, 51, 234, 0.2);
    border-radius: 3rem;
    filter: blur(90px);
    z-index: 0;
}

.card-grid-3d {
    display: flex;
    gap: 1rem;
    transform-style: preserve-3d;
    transform: perspective(1500px) rotateY(-24deg) rotateX(8deg) rotateZ(3deg);
    z-index: 1;
    
    /* Fading out the edges */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%), linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%), linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%);
    mask-composite: intersect;
}

.card-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 200px;
}

.col-1 {
    transform: translateY(-20px);
}

.col-2 {
    transform: translateY(20px);
}

.product-card {
    background: rgba(20, 20, 24, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    color: rgba(255,255,255,0.8);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
}

.card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.25rem 0.25rem;
}

.card-title {
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-price {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--iris-300);
}
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    margin-bottom: 1rem;
}
.cart-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.cart-img {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
}

/* Sidebar filter active state */
.sidebar-filters div > div.filter-active {
    color: var(--iris-400) !important;
    background: rgba(168, 85, 247, 0.1) !important;
    font-weight: 700;
}
