/* Explain: Base reset and typography defaults with technical grid and animation styles. - */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

/* Blueprint / Tech Grid Background */
.tech-grid {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

/* Smooth Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* SVG Line Drawing */
.draw-line {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 3s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-visible .draw-line {
    stroke-dashoffset: 0;
}

/* Minimal Input Fields */
.input-minimal {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.75rem 0;
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.input-minimal:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.input-minimal::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* Custom Selection */
::selection {
    background: var(--primary-color);
    color: white;
}