/* Digstation Labs - Main CSS */

/* CSS Variables for Design System */
:root {
    /* Primary Colors */
    --deep-space-black: #0D1117;
    --starlight-white: #F0F6FC;
    
    /* Secondary Colors */
    --asteroid-grey: #30363D;
    --martian-soil: #E07B39;
    
    /* Accent Colors */
    --plasma-blue: #38BDF8;
    --engine-glow-amber: #F59E0B;
    
    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-base: 0.3s ease-out;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--starlight-white);
    background-color: var(--deep-space-black);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--martian-soil);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    opacity: 0.4;
}

/* Video Overlay for better text contrast */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(13, 17, 23, 0.7) 0%,
        rgba(13, 17, 23, 0.3) 50%,
        rgba(13, 17, 23, 0.8) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    background-color: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--starlight-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-base);
}

.brand a:hover {
    color: var(--plasma-blue);
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links a {
    color: var(--starlight-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--transition-base);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--plasma-blue);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--plasma-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    margin-bottom: var(--spacing-md);
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: var(--spacing-lg);
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--plasma-blue);
    color: var(--starlight-white);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    background-color: #60CBFF;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--plasma-blue);
    border: 2px solid var(--plasma-blue);
}

.btn-secondary:hover {
    background-color: rgba(56, 189, 248, 0.1);
    box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.3);
}

/* Main Content */
main {
    padding-top: 80px; /* Account for fixed header */
}

/* Section Styles */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Cards */
.card {
    background-color: var(--asteroid-grey);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--plasma-blue), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.card:hover {
    border-color: var(--plasma-blue);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2);
    transform: translateY(-4px);
}

.card:hover::before {
    transform: translateX(100%);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.service-card h3 {
    color: var(--plasma-blue);
    margin-bottom: var(--spacing-sm);
}

/* Footer */
footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    background-color: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: var(--spacing-xl);
    border-top: 1px solid rgba(56, 189, 248, 0.2);
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--starlight-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-base);
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--plasma-blue);
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm);
    }
    
    .brand a {
        font-size: 1.25rem;
    }
    
    .nav-links {
        gap: var(--spacing-sm);
    }
    
    .nav-links a {
        font-size: 0.75rem;
    }
    
    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.75rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* AI Partner Section */
.ai-partner-section {
    background: linear-gradient(135deg, 
        rgba(56, 189, 248, 0.05) 0%, 
        rgba(224, 123, 57, 0.05) 100%);
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    border-bottom: 1px solid rgba(224, 123, 57, 0.2);
    padding: var(--spacing-xl) 0;
}

.ai-partner-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ai-partner-content h3 {
    color: var(--plasma-blue);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: var(--spacing-md);
    text-transform: none;
    font-weight: 700;
}

.ai-partner-text {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    color: var(--starlight-white);
    opacity: 0.95;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}