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

:root {
    --primary: #0F172A;
    --accent: #F97316;
    --technical-line: rgba(51, 65, 85, 0.4);
    --grid-size: 40px;
    --subgrid-size: 10px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    color: #F8FAFC;
    overflow-x: hidden;
}

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

/* Technical Blueprint Grid */
.blueprint-grid {
    background-color: var(--primary);
    background-image: 
        linear-gradient(var(--technical-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--technical-line) 1px, transparent 1px),
        linear-gradient(rgba(51, 65, 85, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51, 65, 85, 0.1) 1px, transparent 1px);
    background-size: 
        var(--grid-size) var(--grid-size), 
        var(--grid-size) var(--grid-size),
        var(--subgrid-size) var(--subgrid-size),
        var(--subgrid-size) var(--subgrid-size);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary);
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Glassmorphism */
.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Technical Border Animation */
.tech-border {
    position: relative;
}

.tech-border::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border: 1px solid var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tech-border:hover::before {
    opacity: 0.5;
}

/* Noise Texture */
.noise {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 50;
}

/* Custom Animations */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
}

.line-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

/* CTA Animation */
.btn-tech {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-tech:hover {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

/* Hero Parallax */
#hero-image {
    will-change: transform;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(8px); opacity: 0; }
}

.animate-scroll {
    animation: scroll 2s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
}

/* Floating Drafting Elements */
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -15px) rotate(2deg); }
    66% { transform: translate(-5px, 10px) rotate(-1deg); }
}

.floating-draft {
    animation: float 20s ease-in-out infinite;
}

.floating-draft-delayed {
    animation: float 25s ease-in-out infinite reverse;
    animation-delay: -5s;
}

/* Technical Corner Accents */
.tech-border::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    top: 0;
    left: 0;
    opacity: 0;
    transform: translate(-5px, -5px);
    transition: all 0.3s ease;
}

.tech-border:hover::after {
    opacity: 1;
    transform: translate(0, 0);
}

/* Mobile Menu Transitions */
#mobile-menu.translate-x-full {
    transform: translateX(100%);
}

#mobile-menu:not(.translate-x-full) {
    transform: translateX(0);
}

/* Scanning Line */
.scanning-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.2;
    pointer-events: none;
    z-index: 10;
}

/* Path Drawing Base */
.svg-draw path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    h1 {
        font-size: 2.25rem !important;
        line-height: 1.1 !important;
    }
    
    .glass {
        backdrop-filter: blur(8px);
    }

    #mobile-menu {
        background-color: #0F172A !important;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 100 !important;
    }
}

@media (max-width: 375px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
