/* Base Styles */
:root {
    --primary: #06B6D4;
    --dark: #0C0C10;
    --dark-2: #12121A;
    --text-body: #9394A0;
    --border: rgba(234, 234, 240, 0.07);
}

body {
    background-color: var(--dark);
    color: var(--text-body);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: #EAEAF0;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: #1A1A24;
    border: 1px solid var(--border);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-text {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    font-size: 1.5rem;
    position: relative;
}

.loader-text::after {
    content: '_';
    animation: blink 1s step-end infinite;
}

/* Terminal Cursor */
.cursor-blink {
    display: inline-block;
    width: 10px;
    height: 1em;
    background-color: var(--primary);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
    margin-left: 4px;
}

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

/* Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Terminal Card Hover Effect */
.terminal-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.terminal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terminal-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-5px);
    background-color: var(--dark-2);
}

.terminal-card:hover::before {
    opacity: 1;
}

/* Ticker Animation */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

.ticker {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
}

.ticker__item {
    display: inline-block;
    padding: 0 2rem;
    color: #5C5D6B;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Grid Background Pattern */
.bg-grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(234, 234, 240, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(234, 234, 240, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.glass-nav {
    background: rgba(12, 12, 16, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

/* Utility classes for data aesthetic */
.data-marker {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    margin-right: 8px;
}

.counter-value {
    font-variant-numeric: tabular-nums;
}
