/* ============================================
   Inspectlet Engineering — Shared Base Styles
   Used by: all engineering pages (via eng-header.html)
   Contains: variables, reset, header, footer, animations
   ============================================ */

/* Custom Properties
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
    --eng-bg: #0c0f1e;
    --eng-surface: rgba(255, 255, 255, 0.025);
    --eng-surface-hover: rgba(255, 255, 255, 0.045);
    --eng-surface-raised: rgba(255, 255, 255, 0.05);
    --eng-border: rgba(255, 255, 255, 0.06);
    --eng-border-strong: rgba(255, 255, 255, 0.10);
    --eng-text: #e2e8f0;
    --eng-text-secondary: #8b95a8;
    --eng-text-muted: #4a5568;
    --eng-blue: #3b82f6;
    --eng-blue-dim: rgba(59, 130, 246, 0.7);
    --eng-blue-glow: rgba(59, 130, 246, 0.12);
    --eng-blue-subtle: rgba(59, 130, 246, 0.08);
    --eng-green: #10b981;
    --eng-green-dim: rgba(16, 185, 129, 0.8);
    --eng-green-glow: rgba(16, 185, 129, 0.10);
    --eng-green-subtle: rgba(16, 185, 129, 0.08);
    --eng-purple: #8b5cf6;
    --eng-purple-glow: rgba(139, 92, 246, 0.10);
    --eng-cyan: #06b6d4;
    --eng-amber: #f59e0b;
    --eng-red: #ef4444;
    --eng-radius: 12px;
    --eng-radius-sm: 8px;
    --eng-radius-xs: 6px;
    --eng-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Menlo', 'Monaco', 'Consolas', monospace;
}

/* Reset & Base
–––––––––––––––––––––––––––––––––––––––––––––––––– */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--eng-text);
    background: linear-gradient(160deg, #0e1225 0%, #13102b 30%, #170f30 55%, #120e28 80%, #0e1022 100%);
    background-attachment: fixed;
    background-color: var(--eng-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ambient glow — top center */
body::before {
    content: '';
    position: fixed;
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.09) 0%, rgba(59, 130, 246, 0.05) 35%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Ambient glow — lower right */
body::after {
    content: '';
    position: fixed;
    bottom: -200px;
    right: -150px;
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.06) 0%, rgba(99, 70, 206, 0.03) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--eng-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #60a5fa;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.eng-header {
    background: rgba(12, 15, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--eng-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.eng-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.eng-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.eng-logo:hover {
    text-decoration: none;
}

.eng-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    background: linear-gradient(285deg, #69acfd, #c585ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.eng-logo-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--eng-text);
    letter-spacing: -0.3px;
}

.eng-logo-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(59, 130, 246, 0.85);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: var(--eng-blue-subtle);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.12);
}

.eng-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.eng-nav-link {
    color: var(--eng-text-secondary);
    font-size: 13px;
    font-weight: 450;
    padding: 6px 14px;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.eng-nav-link:hover {
    color: var(--eng-text);
    background: rgba(255, 255, 255, 0.05);
}

.eng-nav-cta {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 7px 20px;
    font-size: 13px;
    font-weight: 550;
    letter-spacing: -0.1px;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #7c5bf6 100%);
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 4px 16px rgba(59, 130, 246, 0.2);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.eng-nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    border-radius: 8px;
    pointer-events: none;
}

.eng-nav-cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 8px 24px rgba(59, 130, 246, 0.35);
    filter: brightness(1.08);
}

.eng-nav-cta:active {
    transform: translateY(0) scale(0.98);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 2px 8px rgba(59, 130, 246, 0.15);
}

/* Main Content
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.eng-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 28px 96px;
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
}

/* Footer
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.eng-footer {
    background: transparent;
    border-top: 1px solid var(--eng-border);
    color: var(--eng-text-muted);
    padding: 24px 28px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.eng-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eng-footer p {
    margin: 0;
    font-size: 12px;
}

.eng-footer-links {
    display: flex;
    gap: 16px;
}

.eng-footer-links a {
    font-size: 12px;
    color: var(--eng-text-muted);
    transition: color 0.15s ease;
}

.eng-footer-links a:hover {
    color: var(--eng-text-secondary);
}

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

.eng-animate-in {
    animation: eng-fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.eng-delay-1 { animation-delay: 0.05s; }
.eng-delay-2 { animation-delay: 0.1s; }
.eng-delay-3 { animation-delay: 0.15s; }
.eng-delay-4 { animation-delay: 0.2s; }
.eng-delay-5 { animation-delay: 0.3s; }
.eng-delay-6 { animation-delay: 0.4s; }
.eng-delay-7 { animation-delay: 0.5s; }

/* Shared Responsive
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media (max-width: 768px) {
    .eng-main {
        padding: 36px 20px 64px;
    }

    .eng-header-inner {
        padding: 0 16px;
    }

    .eng-nav {
        gap: 2px;
    }

    .eng-nav-link {
        font-size: 12px;
        padding: 5px 10px;
    }

    .eng-footer-inner {
        flex-direction: column;
        gap: 12px;
    }

    body::before {
        width: 400px;
    }
}
