/* ===== KILLSWXTCH STORE - PREMIUM DESIGN SYSTEM ===== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    /* Duvet Theme - Green & Blue Palette */
    --primary: #10b981;
    /* Emerald Green */
    --primary-dark: #059669;
    /* Deep Green */
    --primary-light: #6ee7b7;
    /* Light Mint Glow */
    --primary-glow: rgba(16, 185, 129, 0.5);
    /* Green Glow */

    --accent: #3b82f6;
    /* Vibrant Blue */
    --accent-glow: rgba(59, 130, 246, 0.5);

    --secondary: #14b8a6;
    /* Teal */

    /* Backgrounds - Deep Ocean */
    --bg-primary: #020617;
    /* Deep Navy Black */
    --bg-secondary: #0f172a;
    /* Dark Slate */
    --bg-tertiary: #1e293b;
    /* Deep Slate Panel */

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    /* Crisp Light Grey */
    --text-tertiary: #94a3b8;
    /* Muted Blue-Grey */

    /* Status Colors */
    --success: #10b981;
    /* Emerald Green */
    --danger: #f43f5e;
    /* Rose Red */
    --warning: #f59e0b;
    /* Amber */

    /* Glassmorphism */
    --bg-glass: rgba(15, 23, 42, 0.6);
    /* Translucent Blue-Black */
    --bg-glass-hover: rgba(30, 41, 59, 0.7);

    /* Borders */
    --border-color: rgba(16, 185, 129, 0.3);
    /* Subtle Green Border */
    --border-color-hover: rgba(59, 130, 246, 0.5);
    /* Blue Hover Border */

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 40px -10px rgba(16, 185, 129, 0.3);
    /* Green Glow Shadow */
    --shadow-neon: 0 0 15px var(--primary), 0 0 30px var(--accent);

    /* Spacing & Radius (Kept same) */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-primary: 'Inter', system-ui, sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(20, 184, 166, 0.2) 0%, transparent 50%);
    animation: backgroundPulse 10s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.1rem;
}

p {
    font-size: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.7);
    /* Darker glass */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    /* Subtle neon border */
    transition: all var(--transition-base);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--accent);
    /* Stronger glow when scrolled */
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

/* ... (navbar-brand is fine, keeping it) ... */

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(to right, #10b981, #3b82f6, #14b8a6, #10b981);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holographicFlow 5s linear infinite;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4));
    letter-spacing: 0.1em;
    transition: transform var(--transition-fast);
}

@keyframes holographicFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-menu {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    align-items: center;
}

.navbar-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    /* Neon gradient underline */
    box-shadow: 0 0 10px var(--primary);
    transition: width var(--transition-base);
}

.navbar-link:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 80%;
}

.navbar-link.active {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6), 0 0 10px var(--accent);
    border-color: var(--accent);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-color-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), hsl(140, 70%, 40%));
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), hsl(0, 80%, 50%));
    color: white;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.card-body {
    margin-bottom: var(--spacing-md);
}

.card-footer {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

/* ===== GRID ===== */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-online {
    background: hsla(140, 70%, 50%, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.badge-offline {
    background: hsla(0, 80%, 60%, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.badge-updating {
    background: hsla(40, 100%, 60%, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.badge-primary {
    background: hsla(280, 100%, 60%, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gap-1 {
    gap: var(--spacing-xs);
}

.gap-2 {
    gap: var(--spacing-sm);
}

.gap-3 {
    gap: var(--spacing-md);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-in {
    animation: slideIn 0.6s ease forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        padding: var(--spacing-md);
        transform: translateY(-100%);
        opacity: 0;
        transition: all var(--transition-base);
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .menu-toggle {
        display: flex;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ===== LOADING SPINNER ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

/* ===== CUSTOM CURSOR ===== */
/* Hide default cursor on non-touch devices (based on screen width as safe fallback) */
@media (min-width: 768px) {

    body,
    a,
    button,
    input,
    textarea,
    select,
    .btn,
    .card,
    .navbar-brand,
    .navbar-link {
        cursor: none !important;
    }
}

.cursor-dot,
.cursor-dot-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.cursor-dot-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary);
    opacity: 0.5;
    transition: width 0.15s, height 0.15s, background-color 0.15s;
}

body.hovering .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
}

body.hovering .cursor-dot-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 229, 255, 0.1);
    border-color: var(--accent);
    opacity: 0.8;
}

/* Discord Button */
.btn-discord {
    background: #5865F2;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.6);
}
/* ===== HERO OWNERS ===== */
.hero-owners {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.owner-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.owner-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.owner-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.owner-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.owner-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.2;
}

.owner-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 2px;
}


/* ===== KILLSWXTCH UNIQUE EFFECTS ===== */

/* Neon Border Pulse on Cards */
.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--accent), var(--secondary), var(--primary));
    background-size: 400%;
    border-radius: var(--radius-lg);
    opacity: 0;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 0.7;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 3D Tilt Effect on Product Cards */
.product-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(5deg) translateY(-8px);
}

/* Typing Cursor Effect */
.text-gradient::after {
    content: '|';
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Liquid Button Effect */
.btn {
    overflow: hidden;
    position: relative;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

/* Hexagon Pattern Overlay */
.hero-background::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='rgba(16,185,129,0.05)' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.3;
}

/* Matrix Text Effect on Hover */
.navbar-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--primary);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.navbar-link:hover::before {
    opacity: 1;
    animation: glitchText 0.3s ease;
}

@keyframes glitchText {
    0%, 100% { transform: translate(0); }
    25% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, -2px); }
    75% { transform: translate(-2px, -2px); }
}

/* ===== MAGMA OVERLAY EFFECT ===== */

/* Navbar Magma Overlay */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.7);
    pointer-events: none;
    z-index: -1;
}

/* Enhanced Body Background with Magma */
body::before {
    background:
        radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(20, 184, 166, 0.2) 0%, transparent 50%);
    animation: backgroundPulse 10s ease-in-out infinite alternate, magmaShift 20s ease infinite;
}

@keyframes magmaShift {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Magma Glow on Cards */
.card:hover {
    box-shadow: 
        var(--shadow-lg),
        0 0 30px rgba(16, 185, 129, 0.3),
        inset 0 0 20px rgba(16, 185, 129, 0.1);
}

/* Magma Pulse on Buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(16, 185, 129, 0.3) 50%,
        transparent 70%
    );
    animation: magmaPulse 3s linear infinite;
}

@keyframes magmaPulse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
