/* ==========================================================================
   ODYSSEY HARDWARE SUITE - MASTER STYLESHEET
   ========================================================================== */

/* --- 1. CSS Variables & Theming --- */
:root {
    /* Color Palette */
    --bg-base: #0a0710;
    --bg-surface: #140e1d;
    --bg-surface-elevated: #1e152c;

    --primary: #7e57c2;
    --primary-hover: #9575cd;
    --primary-glow: rgba(126, 87, 194, 0.4);

    --accent-pink: #ff4081;
    --accent-cyan: #00e5ff;
    --accent-gold: #ffab00;

    --text-main: #f8f9fa;
    --text-muted: #a09eb0;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', "Courier New", Courier, monospace;

    /* Spacing & Layout */
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Animation Curves */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* --- 2. CSS Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

::selection {
    background: var(--primary);
    color: #fff;
}

/* --- 3. Background Effects (Canvas & Ambient) --- */
.background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
    animation: float 20s infinite alternate ease-in-out;
}

.glow-1 {
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.glow-2 {
    background: var(--accent-cyan);
    bottom: -200px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, 50px) scale(1.2); }
    100% { transform: translate(-50px, 100px) scale(0.9); }
}

/* --- 4. Navigation Bar --- */
.top-nav {
    width: 100%;
    background: rgba(10, 7, 16, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.nav-logo svg {
    color: var(--primary);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* --- 5. Hero Section --- */
.hero-section {
    padding: 6rem 2rem 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 50px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 229, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a09eb0 100%);
  -webkit-background-clip: text;
  background-clip: text; /* Add this line */
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* --- 6. Main Grid & Cards --- */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    flex: 1;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    perspective: 1000px;
}

/* Glassmorphic 3D Card Base */
.test-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-decoration: none;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    transition: transform 0.1s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* The hover glow effect that tracks mouse (handled via JS) */
.card-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.test-card:hover {
    border-color: var(--card-theme);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
                0 0 20px calc(var(--card-theme) - 80%);
}

.test-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateZ(30px); /* Pushes content towards viewer during tilt */
}

.icon-box {
    width: 64px;
    height: 64px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--card-theme);
    transition: var(--transition-smooth);
}

.test-card:hover .icon-box {
    background: var(--card-theme);
    color: #fff;
    box-shadow: 0 0 15px var(--card-theme);
    transform: scale(1.05);
}

.card-text {
    flex-grow: 1;
}

.card-text h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.card-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* --- 7. Info Section --- */
.info-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.info-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.info-block h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-block h4::before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 3px;
}

.info-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- 8. Footer --- */
.site-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
}

/* --- 9. Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 1rem 2rem;
    }
    .test-grid {
        grid-template-columns: 1fr;
    }
    .ambient-glow {
        display: none; /* Improve mobile performance */
    }
}
