/* ============================================
   UNDER CONSTRUCTION - Kinetic Industrial Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Mono:wght@400;700&display=swap');

/* CSS Variables */
:root {
    --color-concrete: #2a2a2a;
    --color-concrete-light: #3d3d3d;
    --color-steel: #1a1a1a;
    --color-rust: #c45c26;
    --color-rust-glow: #ff6b35;
    --color-warning: #ffc107;
    --color-caution-stripe: repeating-linear-gradient(
        -45deg,
        #1a1a1a,
        #1a1a1a 20px,
        #ffc107 20px,
        #ffc107 40px
    );
    --font-display: 'Bebas Neue', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
}

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

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

body {
    min-height: 100vh;
    background-color: var(--color-steel);
    font-family: var(--font-mono);
    color: #e0e0e0;
    overflow-x: hidden;
    position: relative;
}

/* Grain Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--grain);
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

/* ============================================
   LAYOUT STRUCTURE
   ============================================ */

.site-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    position: relative;
}

/* Caution Stripe Header */
.caution-header {
    height: 12px;
    background: var(--color-caution-stripe);
    animation: stripe-scroll 20s linear infinite;
}

@keyframes stripe-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 56.57px 0; }
}

/* Main Content Area */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
}

/* ============================================
   LEFT PANEL - Typography Zone
   ============================================ */

.text-panel {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background:
        linear-gradient(135deg, var(--color-concrete) 0%, var(--color-steel) 100%);
    overflow: hidden;
}

.text-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--color-rust) 20%,
        var(--color-rust) 80%,
        transparent
    );
}

/* Section Number */
.section-marker {
    font-family: var(--font-display);
    font-size: clamp(8rem, 20vw, 16rem);
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -2rem;
    left: -1rem;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* Main Headline */
.headline {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.headline-word {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 7rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    color: #ffffff;
    opacity: 0;
    transform: translateX(-40px);
    animation: slide-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.headline-word:nth-child(1) { animation-delay: 0.2s; }
.headline-word:nth-child(2) {
    animation-delay: 0.35s;
    color: var(--color-rust-glow);
    text-shadow: 0 0 60px rgba(255, 107, 53, 0.4);
}

@keyframes slide-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Description Text */
.description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #888;
    max-width: 400px;
    opacity: 0;
    animation: fade-up 0.6s ease forwards 0.6s;
    position: relative;
    z-index: 2;
}

.description strong {
    color: #e0e0e0;
    font-weight: 700;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(196, 92, 38, 0.1);
    border: 1px solid var(--color-rust);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0;
    animation: fade-up 0.6s ease forwards 0.8s;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-rust-glow);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 107, 53, 0);
    }
}

/* ============================================
   RIGHT PANEL - Visual Zone
   ============================================ */

.visual-panel {
    position: relative;
    background: var(--color-steel);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
}

/* Scaffolding Grid Background */
.scaffolding {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Animated Construction Elements */
.crane-arm {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 200px;
    height: 4px;
    background: var(--color-concrete-light);
    transform-origin: right center;
    animation: crane-swing 8s ease-in-out infinite;
}

.crane-arm::before {
    content: '';
    position: absolute;
    right: -8px;
    top: -20px;
    width: 8px;
    height: 44px;
    background: var(--color-concrete-light);
}

.crane-arm::after {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, var(--color-rust), transparent);
    animation: cable-swing 8s ease-in-out infinite;
}

@keyframes crane-swing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(15deg); }
}

@keyframes cable-swing {
    0%, 100% { transform: rotate(5deg); }
    50% { transform: rotate(-10deg); }
}

/* Central Construction Icon */
.construction-emblem {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.emblem-ring {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: ring-pulse 4s ease-in-out infinite;
}

.emblem-ring:nth-child(1) {
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.emblem-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    animation-delay: 0.5s;
}

.emblem-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    border-color: var(--color-rust);
    animation-delay: 1s;
}

@keyframes ring-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.6;
    }
}

.emblem-icon {
    font-size: 4rem;
    position: relative;
    z-index: 2;
    animation: icon-float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.3));
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

/* Floating Particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-rust);
    opacity: 0.6;
    animation: float-up 10s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-delay: 2s; width: 3px; height: 3px; }
.particle:nth-child(3) { left: 40%; animation-delay: 4s; }
.particle:nth-child(4) { left: 60%; animation-delay: 1s; width: 5px; height: 5px; }
.particle:nth-child(5) { left: 75%; animation-delay: 3s; }
.particle:nth-child(6) { left: 90%; animation-delay: 5s; width: 3px; height: 3px; }

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Progress Section */
.progress-section {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    right: 3rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #666;
}

.progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-rust), var(--color-rust-glow));
    animation: progress-fill 2s cubic-bezier(0.16, 1, 0.3, 1) forwards 1s;
}

@keyframes progress-fill {
    to { width: 67%; }
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 3px;
    height: 11px;
    background: var(--color-rust-glow);
    box-shadow: 0 0 10px var(--color-rust-glow);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    padding: 1.5rem 3rem;
    background: var(--color-steel);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #555;
}

.footer-coords {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #444;
    display: flex;
    gap: 2rem;
}

.coord-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coord-label {
    color: var(--color-rust);
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */

/* Corner Brackets */
.corner-bracket {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 100;
}

.corner-bracket--tl {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.corner-bracket--tr {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.corner-bracket--bl {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.corner-bracket--br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* Vertical Text */
.vertical-text {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #333;
    white-space: nowrap;
    z-index: 100;
}

@media (max-width: 900px) {
    .vertical-text {
        display: none;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 900px) {
    .text-panel {
        padding: 3rem 2rem;
        text-align: center;
    }

    .text-panel::before {
        width: 100%;
        height: 4px;
        right: 0;
        bottom: 0;
        top: auto;
        background: linear-gradient(
            to right,
            transparent,
            var(--color-rust) 20%,
            var(--color-rust) 80%,
            transparent
        );
    }

    .section-marker {
        font-size: 10rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .description {
        max-width: 100%;
    }

    .status-badge {
        justify-content: center;
    }

    .visual-panel {
        min-height: 400px;
    }

    .progress-section {
        left: 2rem;
        right: 2rem;
        bottom: 2rem;
    }

    .site-footer {
        padding: 1.5rem 2rem;
        justify-content: center;
        text-align: center;
    }

    .footer-coords {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .corner-bracket {
        width: 25px;
        height: 25px;
    }

    .corner-bracket--tl,
    .corner-bracket--tr {
        top: 10px;
    }

    .corner-bracket--bl,
    .corner-bracket--br {
        bottom: 10px;
    }

    .corner-bracket--tl,
    .corner-bracket--bl {
        left: 10px;
    }

    .corner-bracket--tr,
    .corner-bracket--br {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .headline-word {
        font-size: 3rem;
    }

    .construction-emblem {
        width: 160px;
        height: 160px;
    }

    .emblem-icon {
        font-size: 3rem;
    }

    .crane-arm {
        display: none;
    }
}

/* ============================================
   SPECIAL EFFECTS
   ============================================ */

/* Scanline Effect */
.scanlines {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 999;
}

/* Glitch Effect on Hover */
.headline-word:hover {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}
