/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO - Under Construction Page
   Blueprint / Architectural Draft aesthetic
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────
   AMBIENT SPLASHES - Purple/blue accent for Portfolio page
   ─────────────────────────────────────────────────────────────── */
.splash--purple-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.splash--purple-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    bottom: 20%;
    right: 10%;
    animation-delay: -8s;
    animation-duration: 30s;
}

.construction {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-xl);
    overflow: hidden;
}

/* Blueprint grid background */
.blueprint-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(167,139,250,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167,139,250,0.06) 1px, transparent 1px),
        linear-gradient(rgba(167,139,250,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167,139,250,0.03) 1px, transparent 1px);
    background-size:
        100px 100px,
        100px 100px,
        20px 20px,
        20px 20px;
    animation: gridShift 30s linear infinite;
}

@keyframes gridShift {
    from { background-position: 0 0, 0 0, 0 0, 0 0; }
    to   { background-position: 100px 100px, 100px 100px, 20px 20px, 20px 20px; }
}

/* Content container */
.construction__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    z-index: 1;
}

/* Construction icon */
.construction__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-lg);
    background: rgba(167,139,250,0.08);
    border: 1px solid rgba(167,139,250,0.15);
    animation: iconSpin 8s linear infinite;
}

.construction__icon i {
    font-size: 36px;
    color: #a78bfa;
}

@keyframes iconSpin {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(5deg); }
    50%  { transform: rotate(0deg); }
    75%  { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

/* Title with staggered letter animation */
.construction__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    line-height: 1.2;
}

.construction__letter {
    display: inline-block;
    animation: letterFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

.construction__space {
    display: inline-block;
    width: 0.3em;
}

@keyframes letterFloat {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%      { transform: translateY(-6px); opacity: 0.8; }
}

/* Blueprint wireframe SVG */
.construction__blueprint {
    width: 100%;
    max-width: 400px;
    margin-bottom: var(--space-xl);
    color: rgba(167,139,250,0.4);
}

.construction__blueprint svg {
    width: 100%;
    height: auto;
}

/* SVG line drawing animation */
.bp-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawLine 2s ease-out forwards;
}

.bp-line--1  { animation-delay: 0.2s; }
.bp-line--2  { animation-delay: 0.5s; }
.bp-line--3  { animation-delay: 0.7s; }
.bp-line--4  { animation-delay: 1.0s; }
.bp-line--5  { animation-delay: 1.2s; }
.bp-line--6  { animation-delay: 1.5s; stroke-dasharray: 300; stroke-dashoffset: 300; }
.bp-line--7  { animation-delay: 1.8s; stroke-dasharray: 200; stroke-dashoffset: 200; }
.bp-line--8  { animation-delay: 2.0s; stroke-dasharray: 200; stroke-dashoffset: 200; }
.bp-line--9  { animation-delay: 2.3s; stroke-dasharray: 100; stroke-dashoffset: 100; }
.bp-line--10 { animation-delay: 2.5s; stroke-dasharray: 100; stroke-dashoffset: 100; }
.bp-line--11 { animation-delay: 2.7s; stroke-dasharray: 100; stroke-dashoffset: 100; }

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Progress bar */
.construction__progress {
    width: 100%;
    max-width: 300px;
    margin-bottom: var(--space-lg);
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(167,139,250,0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-fill {
    width: 35%;
    height: 100%;
    background: linear-gradient(90deg, #a78bfa, #818cf8);
    border-radius: var(--radius-full);
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

.progress-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Subtitle */
.construction__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-secondary);
    max-width: 380px;
}

/* ───────────────────────────────────────────────────────────────
   LIGHT THEME
   ─────────────────────────────────────────────────────────────── */
[data-theme="light"] .blueprint-grid {
    background-image:
        linear-gradient(rgba(100,80,180,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100,80,180,0.08) 1px, transparent 1px),
        linear-gradient(rgba(100,80,180,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100,80,180,0.04) 1px, transparent 1px);
}

[data-theme="light"] .construction__blueprint {
    color: rgba(100,80,180,0.5);
}

/* ───────────────────────────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .construction {
        padding: var(--space-lg);
    }

    .construction__icon {
        width: 64px;
        height: 64px;
    }

    .construction__icon i {
        font-size: 28px;
    }

    .construction__blueprint {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .construction__title {
        letter-spacing: 0.04em;
    }

    .construction__blueprint {
        max-width: 250px;
    }

    .construction__progress {
        max-width: 220px;
    }
}
