/* Remove all default link styling */
a {
    text-decoration: none !important;
    color: inherit; /* Keeps the text from turning blue/purple after clicking */
}

/* Specific fix for the Logo to ensure no weird blue colors or underlines */
.split-logo, .split-logo:hover, .split-logo:visited {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

/* Ensure Nav buttons don't have underlines */
.nav-links a {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* --- 1. THE ULTIMATE RESET --- */
:root {
    --purple: #9d4edd;
    --dark: #050505;
    --glass: rgba(12, 12, 12, 0.9);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

/* Force-remove dots from all lists */
ul, li {
    list-style: none !important;
    list-style-type: none !important;
    text-decoration: none !important;
}

/* --- 2. GLOBAL PAGE RULES --- */
html, body {
    background-color: var(--dark);
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-y: auto; 
    height: auto;
    min-height: 100vh;
    scrollbar-width: none; /* Firefox */
}

body::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* --- 3. REPAIRED HEADER --- */
header {
    height: 70px;
    position: fixed;
    top: 0; 
    width: 100%;
    z-index: 9999;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    position: relative;
}

.logo-wrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.split-logo {
    display: flex;
    gap: 8px;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.part-krng { color: #fff; }
.part-3d { color: var(--purple); }

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none !important;
}

.nav-links a {
    color: #666;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

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

/* --- 4. CATALOG CONTENT --- */
.catalog-content {
    padding-top: 120px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.catalog-hero {
    text-align: center;
    margin-bottom: 175px;
    padding: 0 20px;
}

.catalog-hero h1 {
    font-size: clamp(2.2rem, 8vw, 4rem);
    font-weight: 900;
    letter-spacing: -2px;
}

.catalog-hero p { color: #666; margin-top: 10px; }

/* --- 5. GRID & CARDS --- */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
    padding: 0 25px 100px;
}

.feature-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 30px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    overflow: hidden;
}

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

.card-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(157, 78, 221, 0.15) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.feature-card:hover .card-glow { opacity: 1; }

.card-num { color: var(--purple); font-weight: 900; font-size: 1.2rem; }
.feature-card h2 { font-size: 1.6rem; margin: 10px 0; }
.feature-card p { color: #888; font-size: 0.9rem; line-height: 1.5; }
.card-cta { color: var(--purple); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; margin-top: 20px; }

/* --- 6. MOBILE OVERRIDES --- */
.menu-btn { display: none; background: none; border: none; cursor: pointer; z-index: 10000; position: absolute; left: 25px; }
.bar { display: block; width: 25px; height: 2px; background: #fff; margin: 6px 0; transition: 0.4s; }

@media (max-width: 900px) {
    .menu-btn { display: block; }
    .nav-links { display: none; } /* Hide the flex links, use nav-menu.active instead */
    
    .nav-menu {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: #000000c4; visibility: hidden; opacity: 0; transition: 1.5s;
        display: flex; align-items: center; justify-content: center; z-index: 9998;
    }
    
    .nav-menu.active { visibility: visible; opacity: 1; }
    .nav-menu .nav-links { display: flex; flex-direction: column; gap: 40px; }
    .nav-menu .nav-links a { font-size: 2.5rem; color: #ff00dd; }

    .model-grid { grid-template-columns: 1fr; }
}