* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* LEGO Brick Component Styles */
.lego-brick {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.lego-red { color: #e53e3e; }
.lego-blue { color: #4299e1; }
.lego-green { color: #48bb78; }
.lego-yellow { color: #ecc94b; }
.lego-orange { color: #ed8936; }
.lego-purple { color: #9f7aea; }

/* LEGO Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes building {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Page Load Animations */
.hero-content {
    animation: fadeInDown 1s ease-out;
}

.hero-badge {
    animation: zoomIn 0.8s ease-out 0.3s both;
}

.hero h1 {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero p {
    animation: fadeInUp 1s ease-out 0.7s both;
}

.lego-showcase {
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* Content Grid Page Load Animation */
.content-block:nth-child(1) {
    animation: slideInFromLeft 1s ease-out 1.2s both;
}

.content-block:nth-child(2) {
    animation: slideInFromRight 1s ease-out 1.4s both;
}

/* Floating LEGO Decorations */
.floating-legos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-lego {
    position: absolute;
    width: 35px;
    height: 35px;
    animation: float 6s ease-in-out infinite;
    font-size: 35px;
    opacity: 0.6;
}

.floating-lego:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; }
.floating-lego:nth-child(2) { top: 35%; right: 12%; animation-delay: 1s; }
.floating-lego:nth-child(3) { top: 65%; left: 15%; animation-delay: 2s; }
.floating-lego:nth-child(4) { top: 85%; right: 20%; animation-delay: 3s; }
.floating-lego:nth-child(5) { top: 25%; left: 5%; animation-delay: 4s; }
.floating-lego:nth-child(6) { top: 75%; right: 8%; animation-delay: 5s; }

/* Hero Background with Image */
.hero-bg {
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(45, 90, 160, 0.85), rgba(26, 54, 93, 0.85));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: subtle-float 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes subtle-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* Hero Section */
.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    opacity: 0.9;
}

/* LEGO Showcase in Hero */
.lego-showcase {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.showcase-brick {
    width: 50px;
    height: 35px;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-brick:hover {
    transform: scale(1.2) translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.showcase-brick:nth-child(1) { animation-delay: 0s; }
.showcase-brick:nth-child(2) { animation-delay: 0.2s; }
.showcase-brick:nth-child(3) { animation-delay: 0.4s; }
.showcase-brick:nth-child(4) { animation-delay: 0.6s; }
.showcase-brick:nth-child(5) { animation-delay: 0.8s; }

/* Content Sections */
.section {
    padding: 5rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a365d;
    font-weight: bold;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.content-block {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 5px solid #2d5aa0;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.content-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.content-block h3 {
    color: #2d5aa0;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content-block p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* LEGO Visual Elements in Content */
.lego-visual {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lego-visual.revealed {
    opacity: 1;
    transform: scale(1);
}

.mini-brick {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    animation: pulse 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-brick:hover {
    transform: scale(1.3) rotate(10deg);
}

.mini-brick:nth-child(1) { animation-delay: 0s; }
.mini-brick:nth-child(2) { animation-delay: 0.5s; }
.mini-brick:nth-child(3) { animation-delay: 1s; }
.mini-brick:nth-child(4) { animation-delay: 1.5s; }
.mini-brick:nth-child(5) { animation-delay: 2s; }

.list {
    list-style: none;
    padding: 0;
}

.list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #4a5568;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease-out;
}

.list li.revealed {
    opacity: 1;
    transform: translateX(0);
}

.list li:nth-child(1).revealed { transition-delay: 0.1s; }
.list li:nth-child(2).revealed { transition-delay: 0.2s; }
.list li:nth-child(3).revealed { transition-delay: 0.3s; }
.list li:nth-child(4).revealed { transition-delay: 0.4s; }
.list li:nth-child(5).revealed { transition-delay: 0.5s; }
.list li:nth-child(6).revealed { transition-delay: 0.6s; }

.list li:last-child {
    border-bottom: none;
}

.list li i {
    color: #2d5aa0;
    width: 20px;
    text-align: center;
}

/* Building Animation */
.building-animation {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0.5rem;
    margin: 3rem 0;
    height: 80px;
}

.building-brick {
    width: 35px;
    height: 25px;
    animation: building 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.building-brick:hover {
    transform: translateY(0) scale(1.2) rotate(10deg);
}

.building-brick:nth-child(1) { animation-delay: 0.2s; }
.building-brick:nth-child(2) { animation-delay: 0.4s; }
.building-brick:nth-child(3) { animation-delay: 0.6s; }
.building-brick:nth-child(4) { animation-delay: 0.8s; }
.building-brick:nth-child(5) { animation-delay: 1s; }
.building-brick:nth-child(6) { animation-delay: 1.2s; }
/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    margin: 0 auto;
    width: 100%;
    border-radius: 15px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Box shadow default */
}

.card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.card:nth-child(1).revealed { animation: bounceIn 0.6s ease-out 0.1s both; }
.card:nth-child(2).revealed { animation: bounceIn 0.6s ease-out 0.2s both; }
.card:nth-child(3).revealed { animation: bounceIn 0.6s ease-out 0.3s both; }
.card:nth-child(4).revealed { animation: bounceIn 0.6s ease-out 0.4s both; }
.card:nth-child(5).revealed { animation: bounceIn 0.6s ease-out 0.5s both; }
.card:nth-child(6).revealed { animation: bounceIn 0.6s ease-out 0.6s both; }

/* Box shadow sesuai warna border card */
.card:nth-child(1) { 
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); /* Merah */
}
.card:nth-child(2) { 
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); /* Biru */
}
.card:nth-child(3) { 
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3); /* Hijau */
}
.card:nth-child(4) { 
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3); /* Kuning */
}
.card:nth-child(5) { 
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3); /* Orange */
}
.card:nth-child(6) { 
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3); /* Ungu */
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transition: left 0.5s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Box shadow hover lebih kuat sesuai warna */
.card:nth-child(1):hover { 
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.4);
}
.card:nth-child(2):hover { 
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}
.card:nth-child(3):hover { 
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.4);
}
.card:nth-child(4):hover { 
    box-shadow: 0 20px 40px rgba(234, 179, 8, 0.4);
}
.card:nth-child(5):hover { 
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.4);
}
.card:nth-child(6):hover { 
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.4);
}

.card:hover::before {
    left: 100%;
}

.card-icon {
    font-size: 3rem;
    color: #2d5aa0;
    margin-bottom: 1rem;
    min-height: 4rem;
    transition: transform 0.6s ease;
}

.card:hover .card-icon {
    transform: scale(1.2) rotateY(360deg);
}


.card h3 {
    color: #2d5aa0;
    margin-bottom: 1rem;
}

/* Enhanced Card with LEGO Colors */
.card:nth-child(1) { border-top: 4px solid #e53e3e; }
.card:nth-child(2) { border-top: 4px solid #4299e1; }
.card:nth-child(3) { border-top: 4px solid #48bb78; }
.card:nth-child(4) { border-top: 4px solid #ecc94b; }
.card:nth-child(5) { border-top: 4px solid #ed8936; }
.card:nth-child(6) { border-top: 4px solid #9f7aea; }

/* LEGO Gallery Styles */
.lego-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.gallery-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.gallery-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card:nth-child(1).revealed { animation: fadeInUp 0.6s ease-out 0.1s both; }
.gallery-card:nth-child(2).revealed { animation: fadeInUp 0.6s ease-out 0.2s both; }
.gallery-card:nth-child(3).revealed { animation: fadeInUp 0.6s ease-out 0.3s both; }
.gallery-card:nth-child(4).revealed { animation: fadeInUp 0.6s ease-out 0.4s both; }
.gallery-card:nth-child(5).revealed { animation: fadeInUp 0.6s ease-out 0.5s both; }
.gallery-card:nth-child(6).revealed { animation: fadeInUp 0.6s ease-out 0.6s both; }

.gallery-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.gallery-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: all 0.4s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.1) 100%);
}

.gallery-content {
    padding: 2rem;
    text-align: center;
}

.gallery-content h4 {
    color: #2d5aa0;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.gallery-content p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.gallery-content .lego-brick {
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-card:hover .lego-brick {
    transform: scale(1.3) rotate(15deg);
}

.gallery-card:nth-child(1) { border-top: 5px solid #e53e3e; }
.gallery-card:nth-child(2) { border-top: 5px solid #4299e1; }
.gallery-card:nth-child(3) { border-top: 5px solid #48bb78; }
.gallery-card:nth-child(4) { border-top: 5px solid #ecc94b; }
.gallery-card:nth-child(5) { border-top: 5px solid #ed8936; }
.gallery-card:nth-child(6) { border-top: 5px solid #9f7aea; }

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive - MOZAIK SPECIFIC */
@media (max-width: 1090px) {
        /* Hero */
    .hero {
        height: 50vh;
        min-height: 400px;
        overflow: hidden;
        width: 100%;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
    
    /* Section */
    .section {
        padding: 3rem 0;
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-block {
        padding: 1.5rem;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .content-block h3 {
        font-size: 1.4rem;
        flex-wrap: wrap;
    }

    /* Cards */
    .cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .card {
        padding: 1.5rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    /* Gallery */
    .lego-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .gallery-card {
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .gallery-image {
        height: 200px;
    }

    .gallery-content {
        padding: 1.5rem;
    }

    .gallery-header h2 {
        font-size: 2rem !important;
    }
    
    .gallery-header p {
        font-size: 1rem !important;
    }

    /* Video Grid */
    .video-grid {
        grid-template-columns: 1fr !important;
    }

    /* Showcase */
    .lego-showcase {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .showcase-brick {
        width: 30px;
        height: 22px;
        font-size: 1.2rem;
    }

    .floating-lego {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    .building-animation {
        height: 60px;
        margin: 2rem 0;
        flex-wrap: wrap;
    }

    .building-brick {
        width: 28px;
        height: 20px;
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .list li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .content-block h3 {
        font-size: 1.2rem;
    }

    .card h3 {
        font-size: 1.1rem;
    }
}