/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FDB714;
    --secondary-color: #FF8C00;
    --dark-color: #1a1a1a;
    --light-color: #ffffff;
    --gray-color: #333333;
    --bg-gradient: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2d2d2d 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    color: var(--light-color);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ===== Background Animation ===== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Animated Crane in Background */
.crane-container {
    position: absolute;
    top: 10%;
    right: 5%;
    opacity: 0.1;
    animation: craneFloat 8s ease-in-out infinite;
}

.crane {
    width: 200px;
    height: 200px;
    position: relative;
}

.crane-arm {
    width: 180px;
    height: 8px;
    background: var(--primary-color);
    position: absolute;
    top: 20px;
    left: 10px;
    transform-origin: left center;
    animation: craneArmRotate 6s ease-in-out infinite;
}

.crane-cable {
    width: 2px;
    height: 60px;
    background: var(--light-color);
    position: absolute;
    top: 20px;
    right: 20px;
    animation: cableSwing 3s ease-in-out infinite;
}

.crane-hook {
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 80px;
    right: 13px;
    animation: hookBounce 3s ease-in-out infinite;
}

/* Particles Effect */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow:
        100px 200px 0 rgba(253, 183, 20, 0.3),
        200px 300px 0 rgba(253, 183, 20, 0.2),
        300px 100px 0 rgba(253, 183, 20, 0.4),
        400px 400px 0 rgba(253, 183, 20, 0.3),
        500px 250px 0 rgba(253, 183, 20, 0.2),
        150px 450px 0 rgba(253, 183, 20, 0.3),
        350px 350px 0 rgba(253, 183, 20, 0.2),
        250px 150px 0 rgba(253, 183, 20, 0.4),
        450px 200px 0 rgba(253, 183, 20, 0.3),
        550px 450px 0 rgba(253, 183, 20, 0.2);
    animation: particlesFloat 20s linear infinite;
}

.particles::after {
    animation-delay: -10s;
}

/* ===== Main Container ===== */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ===== Logo Section ===== */
.logo-section {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.crane-icon {
    width: 80px;
    height: 80px;
    animation: craneIconRotate 20s linear infinite;
}

/* Styling for emoji fallback logo */
.crane-emoji {
    display: inline-block;
    width: auto; /* let font-size control size */
    height: auto;
    font-size: 80px; /* matches previous svg size */
    line-height: 1;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.crane-svg {
    animation: craneLift 3s ease-in-out infinite;
}

.company-name {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(253, 183, 20, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

/* ===== Main Message ===== */
.main-message {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.title .word {
    display: inline-block;
    animation: wordFloat 3s ease-in-out infinite;
    margin: 0 10px;
}

.title .word:nth-child(1) { animation-delay: 0s; color: var(--light-color); }
.title .word:nth-child(2) { animation-delay: 0.3s; color: var(--primary-color); }
.title .word:nth-child(3) { animation-delay: 0.6s; color: var(--light-color); }
.title .word:nth-child(4) { animation-delay: 0.9s; color: var(--primary-color); }

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== Progress Bar ===== */
.progress-section {
    width: 100%;
    max-width: 600px;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(253, 183, 20, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
    box-shadow: 0 0 20px rgba(253, 183, 20, 0.6);
    animation: progressPulse 2s ease-in-out infinite;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s linear infinite;
}

.progress-crane {
    position: absolute;
    top: -16px;
    left: 0;
    transition: left 0.5s ease;
    animation: craneVibrate 0.5s ease-in-out infinite;
    z-index: 10;
}

.progress-text {
    text-align: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

#progress-percentage {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

/* ===== Contact Section ===== */
.contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(253, 183, 20, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(253, 183, 20, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.contact-card:hover::before {
    transform: scale(1);
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(253, 183, 20, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--dark-color);
    position: relative;
    z-index: 1;
    animation: iconPulse 2s ease-in-out infinite;
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.contact-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.phone-link {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.phone-link:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out 1.2s both;
}

.domain {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* ===== Animations ===== */
@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);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(253, 183, 20, 0.3);
    }
    to {
        text-shadow: 0 0 40px rgba(253, 183, 20, 0.6);
    }
}

@keyframes wordFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes progressPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(253, 183, 20, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(253, 183, 20, 0.9);
    }
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

@keyframes craneVibrate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(253, 183, 20, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(253, 183, 20, 0);
    }
}

@keyframes craneIconRotate {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes craneLift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes craneFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-20px) translateX(10px); }
    66% { transform: translateY(-10px) translateX(-10px); }
}

@keyframes craneArmRotate {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

@keyframes cableSwing {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@keyframes hookBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes particlesFloat {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-1000px) rotate(360deg); }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .company-name {
        font-size: 2.5rem;
    }

    .logo-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .crane-icon {
        width: 60px;
        height: 60px;
    }

    .crane-emoji {
        font-size: 60px;
    }

    .title {
        font-size: 2rem;
    }

    .title .word {
        margin: 0 5px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .crane-container {
        opacity: 0.05;
        right: -50px;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 2rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .title .word {
        display: inline;
        margin: 0;
    }

    .contact-card {
        padding: 20px;
    }
}

/* ===== Loading Animation ===== */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.container {
    animation: pageLoad 0.8s ease-out;
}
