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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    overflow: hidden;
}

/* Animated background particles */
.background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    max-width: 600px;
    width: 90%;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.logo-container {
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.building-animation {
    display: inline-block;
    margin-top: 20px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.building-container {
    position: relative;
    width: 120px;
    height: 80px;
    margin: 0 auto;
}

.building-blocks {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.block-row {
    display: flex;
    gap: 5px;
    animation: buildUp 3s ease-in-out infinite;
}

.block {
    width: 25px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.block::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.block::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.block-row:nth-child(1) {
    animation-delay: 0s;
}

.block-row:nth-child(2) {
    animation-delay: 0.5s;
}

.block-row:nth-child(3) {
    animation-delay: 1s;
}

@keyframes buildUp {
    0%, 20% {
        opacity: 0;
        transform: translateY(20px);
    }
    40%, 60% {
        opacity: 1;
        transform: translateY(0);
    }
    80%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.crane {
    position: absolute;
    top: -10px;
    right: 10px;
    width: 60px;
    height: 50px;
}

.crane-arm {
    position: absolute;
    top: 10px;
    right: 0;
    width: 50px;
    height: 3px;
    background: #ff9800;
    transform-origin: right center;
    animation: craneSwing 4s ease-in-out infinite;
}

.crane-cable {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 2px;
    height: 30px;
    background: #666;
    animation: cableMove 4s ease-in-out infinite;
}

.crane-hook {
    position: absolute;
    top: 40px;
    left: 9px;
    width: 4px;
    height: 8px;
    background: #888;
    border-radius: 2px;
    animation: cableMove 4s ease-in-out infinite;
}

.crane-base {
    position: absolute;
    top: 10px;
    right: 0;
    width: 6px;
    height: 40px;
    background: #ff9800;
}

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

@keyframes cableMove {
    0%, 100% {
        transform: translateX(20px);
    }
    50% {
        transform: translateX(-20px);
    }
}

.building-text {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #ff9a56;
    font-weight: 500;
}

.dots {
    display: inline-block;
}

.dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

.contact-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    animation: fadeInUp 1s ease-out 1s both;
}

.contact-info a {
    color: #ff9a56;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #ff6a88;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 30px 20px;
        width: 95%;
        border-radius: 15px;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .logo {
        width: 120px;
        height: 120px;
    }

    .logo-container {
        margin-bottom: 20px;
    }

    .message {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .building-container {
        width: 100px;
        height: 70px;
        transform: scale(0.9);
    }

    .contact-info {
        font-size: 0.85rem;
        margin-top: 30px;
        padding-top: 20px;
    }

    .building-text {
        font-size: 0.85rem;
    }

    /* Reduce particle count and size on mobile */
    .particle {
        width: 15px;
        height: 15px;
    }

    /* Optimize animations for mobile performance */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 25px 15px;
        width: 98%;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .message {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .building-container {
        transform: scale(0.8);
    }

    .contact-info {
        font-size: 0.8rem;
        word-break: break-word;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        align-items: flex-start;
        padding-top: 20px;
    }

    .container {
        margin: 20px auto;
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    .logo-container {
        margin-bottom: 15px;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .message {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .building-animation {
        margin-top: 10px;
    }

    .contact-info {
        margin-top: 20px;
        padding-top: 15px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .contact-info a {
        padding: 5px;
        display: inline-block;
        min-height: 44px;
        line-height: 44px;
    }
}
