/* 
   timmmm - Ultra-Premium Authority Theme (v3.0)
   Concept: "The Black Box" - Technical, Precise, Future-Proof.
   Font: Space Grotesk (Headings), Inter (Body)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-main: #030305;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.2);

    --accent-primary: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.6);
    --accent-purple: #8b5cf6;

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-dim: #52525b;

    /* Metrics */
    --header-height: 80px;
    --container-width: 1400px;
    --grid-gap: 24px;
    --card-radius: 4px;
    /* Sharper corners for technical feel */
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none;
    /* Custom cursor everywhere for premium feel */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* subtle grid background */
    background-image:
        linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 100px 100px;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h1 {
    font-size: 5rem;
    text-transform: uppercase;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    max-width: 60ch;
}


/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 140px 0;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

/* Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--border-highlight);
    background: transparent;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1);
    z-index: -1;
}

.btn:hover {
    color: black;
    border-color: white;
}

.btn:hover::before {
    transform: translateX(0);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    background: rgba(3, 3, 5, 0.8);
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 20px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: white;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-label {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 24px;
    display: block;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
}

/* Marquee (Tech Stack) */
.marquee-section {
    padding: 40px 0;
    background: #000;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.marquee-content {
    display: flex;
    gap: 80px;
    animation: scroll 20s linear infinite;
    width: max-content;
}

.tech-item {
    font-family: 'Space Grotesk';
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-item i {
    font-size: 1.2rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Methodology / Process (The Blueprint) */
.process-step {
    border-top: 1px solid var(--border-light);
    padding: 40px 0;
    display: grid;
    grid-template-columns: 0.5fr 1fr 2fr;
    align-items: start;
    transition: background 0.3s;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.02);
}

.step-number {
    font-family: 'Space Grotesk';
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
}

/* Cards (Services) */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 40px;
    height: 100%;
    position: relative;
    transition: transform 0.3s;
}

.service-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.service-card h3 {
    margin-bottom: 16px;
}

/* Pricing */


/* Footer */
footer {
    padding: 80px 0 40px;
    background: black;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 40px;
}

.footer-cta h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    button,
    .btn,
    a,
    input,
    select {
        min-height: 48px;
        min-width: 48px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for now */
    .process-step {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
}

/* Portfolio / Projects */
.project-card {
    display: block;
    /* Required for anchor tag */
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 40px;
    position: relative;
    transition: 0.3s;
}

.project-card:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.01);
}

.project-status {
    font-family: 'Space Grotesk';
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}

.tech-tag-list {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.tech-tag-list span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    padding: 6px 16px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Dashboard Specific Styles --- */

.dashboard-header {
    margin-top: calc(var(--header-height) + 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.mode-toggle {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 4px;
    border-radius: 4px;
}

.toggle-btn {
    padding: 8px 16px;
    font-family: 'Space Grotesk';
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-dim);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toggle-btn.active {
    background: var(--accent-primary);
    color: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--grid-gap);
    margin-bottom: 60px;
}

/* Feature Cards */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    border-color: var(--border-highlight);
    background: rgba(255, 255, 255, 0.04);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.feature-meta {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.feature-value {
    font-family: 'Space Grotesk';
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Animated Health Gauge Mockup */
.health-gauge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid var(--border-light);
    border-top-color: var(--accent-primary);
    animation: spin 2s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mode Transition Visibility */
[data-mode] {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mode-hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(10px);
}

/* Gantt Chart Mockup */
.roadmap-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 24px;
    margin-top: 24px;
}

.roadmap-bar {
    height: 12px;
    background: var(--border-light);
    border-radius: 100px;
    margin: 12px 0;
    position: relative;
    overflow: hidden;
}

.roadmap-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-primary);
    width: 0%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}