:root {
    --bg-color: #08080a; /* Deep matte black */
    --text-color: #f4f4f5;
    --primary: #d90429; /* Premium Crimson Red */
    --secondary: #8d99ae; /* Sleek Silver/Slate */
    --glass-bg: rgba(20, 20, 25, 0.6); /* Darker, richer glass */
    --glass-border: rgba(255, 255, 255, 0.06);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Ambient Lighting */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #111116 0%, #08080a 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px); /* Heavy blur for soft, premium light */
    opacity: 0.4;
    animation: float 15s infinite alternate ease-in-out;
}

.blob-1 { top: -10%; left: -10%; width: 600px; height: 600px; background: #3a0008; } /* Deep dark red */
.blob-2 { bottom: -10%; right: -10%; width: 700px; height: 700px; background: #14141c; animation-delay: -5s; } /* Slate shadow */
.blob-3 { top: 30%; left: 40%; width: 400px; height: 400px; background: #4a0515; animation-duration: 20s; }

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 60px); }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(8, 8, 10, 0.85);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.dot { color: var(--primary); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active { 
    color: #fff; 
}

.btn-login {
    padding: 10px 28px;
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--text-color);
    border-radius: 6px; /* Sharper, more executive corners */
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 1px;
}

.btn-login:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    height: 100vh;
}

.hero-content { max-width: 600px; }

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -1px;
}

.gradient-text {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--secondary);
    margin-bottom: 45px;
    line-height: 1.6;
    font-weight: 300;
}

.btn-primary {
    padding: 16px 38px;
    background: var(--primary);
    border: 1px solid var(--primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #b8001f; /* Darker crimson on hover */
    border-color: #b8001f;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(217, 4, 41, 0.25);
}

.btn-secondary {
    padding: 16px 38px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover { 
    background: rgba(255,255,255,0.05); 
    border-color: rgba(255,255,255,0.2); 
}

/* Glass Cards (Hero Visual) */
.hero-visual { position: relative; width: 450px; height: 450px; display: none; }
@media(min-width: 1024px) { .hero-visual { display: block; } }

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 25px;
    border-radius: 12px;
    position: absolute;
    width: 300px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.float-anim { top: 15%; right: 0; animation: float 7s infinite ease-in-out; }
.float-anim-delayed { bottom: 10%; left: -30px; animation: float 9s infinite ease-in-out 1s; }

.card-header { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 0.85rem; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px;}
.icon-glow { color: var(--text-color); }

.glass-card h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 10px; }

.progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
}

.fill { height: 100%; background: var(--primary); }

/* Features Section */
.features { padding: 120px 10%; }
.section-title { font-size: 2.8rem; margin-bottom: 60px; text-align: center; font-weight: 300; letter-spacing: -0.5px; }

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

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 45px 35px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.icon-box {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 25px;
    opacity: 0.9;
}

.feature-card h3 { margin-bottom: 15px; font-size: 1.5rem; font-weight: 500; }
.feature-card p { color: var(--secondary); line-height: 1.7; font-size: 0.95rem; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding-top: 150px; height: auto; padding-bottom: 100px; }
    .hero-title { font-size: 3rem; }
    .nav-links { display: none; } 
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

/* The Glass Box */
.modal-glass {
    background: #111116; /* Solid dark background for forms readability */
    border: 1px solid var(--glass-border);
    padding: 45px;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    transform: translateY(30px) scale(0.95);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    position: relative;
}

.modal-overlay.active .modal-glass { transform: translateY(0) scale(1); }

/* Form Styling */
.modal-glass h2 { text-align: center; margin-bottom: 30px; color: var(--text-color); font-weight: 500; font-size: 1.8rem; }

.input-group { margin-bottom: 22px; }
.input-group label { display: block; margin-bottom: 10px; font-size: 0.85rem; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; }

.input-group input, .input-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus, .input-group select:focus { 
    border-color: var(--primary); 
    background: rgba(255,255,255,0.05);
}
.input-group option { background-color: #111116; color: white; }

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}
.close-btn:hover { color: var(--primary); transform: rotate(90deg); }

.full-width { width: 100%; margin-top: 15px; }

/* Notification Toast */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #111116;
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary);
    color: var(--text-color);
    padding: 16px 35px;
    border-radius: 6px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    z-index: 3000;
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* Catalog Section */
.catalog-hidden {
    max-height: 0;
    overflow: hidden;
    padding: 0 10%;
    transition: max-height 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55), padding 0.5s;
}

.catalog-hidden.open {
    max-height: 1200px;
    padding-bottom: 100px;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    margin-top: 30px;
}

.filter-tabs span {
    margin-left: 20px;
    color: var(--secondary);
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.filter-tabs span.active, .filter-tabs span:hover { color: var(--text-color); border-bottom: 2px solid var(--primary); padding-bottom: 5px; }

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.inventory-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.inventory-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--text-color);
    margin: 20px 0;
    opacity: 0.85;
}

.inventory-card h4 { margin-bottom: 8px; font-weight: 500; font-size: 1.1rem; }
.inventory-card p { color: var(--secondary); font-size: 0.85rem; margin-bottom: 20px; }

.btn-mini {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
}
.btn-mini:not(.disabled):hover { background: var(--text-color); color: var(--bg-color); }
.btn-mini.disabled { opacity: 0.5; cursor: not-allowed; }

/* Status Badges */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Updated Badge Colors for the Classy Theme */
.available { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.busy { background: rgba(217, 4, 41, 0.15); color: var(--primary); border: 1px solid rgba(217, 4, 41, 0.3); }
