:root {
    --bg-color: #0d1117;
    --accent-color: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --font-main: 'Outfit', sans-serif;
    --surface-color: rgba(30, 41, 59, 0.5);
    --border-color: rgba(51, 65, 85, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* --- Animated Background --- */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--bg-color) 80%);
    z-index: 1;
    pointer-events: none;
}

.background-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, var(--accent-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--accent-glow) 0%, transparent 50%);
    filter: blur(80px);
    animation: backgroundMove 15s ease-in-out infinite alternate;
    z-index: 0;
    opacity: 0.5;
}

@keyframes backgroundMove {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(2%, 2%);
    }

    100% {
        transform: scale(1.2) translate(-2%, -2%);
    }
}

/* --- Content Container --- */
.container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    backdrop-filter: blur(10px);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    animation: containerFadeIn 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes containerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* --- Construction Visual (Building SVG) --- */
.construction-visual {
    margin-bottom: 2.5rem;
    perspective: 1000px;
}

#building-svg {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 0 15px var(--accent-color));
}

.building-block {
    fill: var(--accent-color);
    transform-origin: bottom;
    animation: buildUp 3s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.part-1 {
    animation-delay: 0s;
}

.part-2 {
    animation-delay: 0.5s;
    opacity: 0.4;
    transform: scaleY(0);
}

.part-3 {
    animation-delay: 1s;
    opacity: 0.6;
    transform: scaleY(0);
}

.part-4 {
    animation-delay: 1.5s;
    opacity: 0.8;
    transform: scaleY(0);
}

@keyframes buildUp {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    50%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.crane {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawCrane 4s infinite alternate ease-in-out;
}

.crane-hook {
    animation: craneMove 4s infinite alternate ease-in-out;
}

.crane-line {
    animation: craneMove 4s infinite alternate ease-in-out;
}

@keyframes drawCrane {

    0%,
    20% {
        stroke-dashoffset: 200;
    }

    80%,
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes craneMove {

    0%,
    20% {
        transform: translateX(-40px);
        opacity: 0;
    }

    80%,
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- Text Styling & Animations --- */
.company-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 0.05rem;
}

/* --- Progress Bar --- */
.progress-container {
    width: 100%;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    width: 65%;
    background: linear-gradient(90deg, var(--accent-color), #60a5fa);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--accent-color);
    animation: progressAnimate 4s ease-in-out infinite alternate;
    transform-origin: left;
}

@keyframes progressAnimate {
    0% {
        width: 60%;
    }

    100% {
        width: 70%;
    }
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1rem;
    display: inline-block;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* --- Footer Area --- */
.footer-note {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.footer-note p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* --- Responsive Layout --- */
@media (max-width: 640px) {
    .container {
        margin: 1rem;
    }

    h1 {
        font-size: 2rem;
    }
}