/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 25%, #fecfef 50%, #a8edea 75%, #fed6e3 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: bounceIn 1s ease-out;
}

.logo {
    max-height: 120px;
    max-width: 300px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 3px solid #fff;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 8s linear infinite;
    pointer-events: none;
}

/* Construction Scene */
.construction-scene {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 200px;
    margin-bottom: 40px;
    position: relative;
}

/* Worker Character */
.worker {
    position: relative;
    animation: bounce 2s ease-in-out infinite;
}

.worker-body {
    width: 40px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 20px;
    position: relative;
}

.worker-head {
    width: 30px;
    height: 30px;
    background: #ffb8b8;
    border-radius: 50%;
    position: absolute;
    top: -25px;
    left: 5px;
    border: 2px solid #fff;
}

.worker-hat {
    width: 35px;
    height: 20px;
    background: #f39c12;
    border-radius: 15px 15px 0 0;
    position: absolute;
    top: -40px;
    left: 2.5px;
    border: 2px solid #fff;
}

.worker-arms {
    width: 15px;
    height: 40px;
    background: #ffb8b8;
    border-radius: 10px;
    position: absolute;
    top: 10px;
    left: -10px;
    animation: swing 1.5s ease-in-out infinite;
}

/* Tools */
.tools {
    position: absolute;
    right: 20%;
    bottom: 0;
}

.hammer, .drill, .screwdriver {
    width: 25px;
    height: 60px;
    position: absolute;
    animation: toolFloat 3s ease-in-out infinite;
}

.hammer {
    background: linear-gradient(45deg, #8b4513, #daa520);
    border-radius: 5px;
    left: 0;
    animation-delay: 0s;
}

.drill {
    background: linear-gradient(45deg, #4169e1, #87ceeb);
    border-radius: 5px;
    left: 30px;
    animation-delay: 1s;
}

.screwdriver {
    background: linear-gradient(45deg, #dc143c, #ff69b4);
    border-radius: 5px;
    left: 60px;
    animation-delay: 2s;
}

/* Building Blocks */
.blocks {
    position: absolute;
    left: 20%;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    width: 120px;
}

.block {
    width: 25px;
    height: 25px;
    margin: 2px;
    border-radius: 5px;
    border: 2px solid #fff;
    animation: blockPulse 2s ease-in-out infinite;
}

.block-red {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    animation-delay: 0s;
}

.block-blue {
    background: linear-gradient(45deg, #4ecdc4, #45b7b8);
    animation-delay: 0.5s;
}

.block-yellow {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    animation-delay: 1s;
}

.block-green {
    background: linear-gradient(45deg, #48dbfb, #0abde3);
    animation-delay: 1.5s;
}

/* Message Section */
.message-section {
    text-align: center;
    position: relative;
    z-index: 2;
}

.main-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0px #fff, 6px 6px 0px rgba(0, 0, 0, 0.1);
    animation: titleGlow 3s ease-in-out infinite;
}

.sub-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #4ecdc4;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px #fff;
}

.description {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Progress Bar */
.progress-container {
    margin: 40px 0;
}

.progress-label {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.progress-bar {
    width: 300px;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #feca57, #48dbfb);
    background-size: 200% 100%;
    border-radius: 15px;
    animation: progressFlow 3s ease-in-out infinite;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Features */
.features {
    margin: 50px 0;
}

.features h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: #ff6b6b;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
    border: 3px solid #fff;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-item:nth-child(even) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.feature-item:nth-child(3n) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.feature-icon-image {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    font-size: inherit;
    display: block;
    margin: 0 auto 10px auto;
}

.feature-text {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Contact Section */
.contact-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 20px;
    border: 3px solid #fff;
}

.contact-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

.contact-text a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 700;
}

.contact-text a:hover {
    text-decoration: underline;
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.balloon, .star, .cloud {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.balloon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    color: #ff6b6b;
}

.balloon-2 {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
    color: #4ecdc4;
}

.balloon-3 {
    bottom: 30%;
    left: 5%;
    animation-delay: 4s;
    color: #feca57;
}

.star-1 {
    top: 15%;
    left: 80%;
    animation-delay: 1s;
    color: #ff9ff3;
}

.star-2 {
    bottom: 40%;
    right: 20%;
    animation-delay: 3s;
    color: #48dbfb;
}

.star-3 {
    top: 60%;
    left: 15%;
    animation-delay: 5s;
    color: #feca57;
}

.cloud-1 {
    top: 5%;
    left: 40%;
    animation-delay: 2.5s;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.cloud-2 {
    bottom: 60%;
    right: 10%;
    animation-delay: 4.5s;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

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

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

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 3px 3px 0px #fff, 6px 6px 0px rgba(0, 0, 0, 0.1);
    }
    50% {
        text-shadow: 3px 3px 0px #fff, 6px 6px 0px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 107, 107, 0.5);
    }
}

@keyframes progressFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .sub-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .description {
        font-size: 1.1rem;
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        padding: 0 10px;
    }
    
    .feature-item {
        padding: 15px;
        border-radius: 15px;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .construction-scene {
        height: 150px;
        margin-bottom: 30px;
    }
    
    .worker-body {
        width: 30px;
        height: 45px;
    }
    
    .worker-head {
        width: 25px;
        height: 25px;
        top: -20px;
        left: 2.5px;
    }
    
    .worker-hat {
        width: 30px;
        height: 15px;
        top: -32px;
        left: 0;
    }
    
    .main-content {
        padding: 25px 20px;
        border-radius: 20px;
        margin: 20px 0;
    }
    
    .progress-bar {
        width: 250px;
        height: 25px;
    }
    
    .balloon, .star, .cloud {
        font-size: 1.5rem;
    }
    
    .contact-section {
        padding: 20px;
        margin: 30px 0;
    }
    
    .logo {
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .main-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .sub-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 25px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 5px;
    }
    
    .feature-item {
        padding: 12px;
        border-radius: 12px;
    }
    
    .feature-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .feature-text {
        font-size: 1rem;
    }
    
    .progress-bar {
        width: 200px;
        height: 20px;
    }
    
    .progress-percentage {
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 20px 15px;
        border-radius: 15px;
        margin: 15px 0;
    }
    
    .construction-scene {
        height: 120px;
        margin-bottom: 25px;
    }
    
    .contact-section {
        padding: 15px;
        margin: 25px 0;
        border-radius: 15px;
    }
    
    .contact-text {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .logo {
        max-height: 60px;
    }
    
    .header {
        margin-bottom: 25px;
    }
    
    .features h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .progress-label {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .balloon, .star, .cloud {
        font-size: 1.2rem;
    }
    
    /* Touch-friendly improvements */
    .feature-item, .block, .worker, .logo {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Reduce animations on mobile for better performance */
    .floating-elements {
        display: none;
    }
}

@media (max-width: 360px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .sub-title {
        font-size: 1.2rem;
    }
    
    .progress-bar {
        width: 180px;
    }
    
    .container {
        padding: 8px;
    }
    
    .main-content {
        padding: 15px 12px;
    }
}