* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Robot Animations */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes robot-scan {
    0%, 100% { 
        transform: translateX(-5px);
        opacity: 0.6;
    }
    50% { 
        transform: translateX(5px);
        opacity: 1;
    }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
    }
    50% { 
        box-shadow: 0 0 20px rgba(239, 68, 68, 1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

@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);
    }
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* 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;
}

.robot-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 Robot Decorations */
.floating-robots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-robot {
    position: absolute;
    font-size: 2rem;
    animation: float-gentle 6s ease-in-out infinite;
    opacity: 0.15;
    color: #ef4444;
}

.floating-robot:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; }
.floating-robot:nth-child(2) { top: 35%; right: 12%; animation-delay: 1s; }
.floating-robot:nth-child(3) { top: 65%; left: 15%; animation-delay: 2s; }
.floating-robot:nth-child(4) { top: 85%; right: 20%; animation-delay: 3s; }
.floating-robot:nth-child(5) { top: 25%; left: 5%; animation-delay: 4s; }
.floating-robot: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(239, 68, 68, 0.1) 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); }
    50% { transform: translateY(-10px); }
}

/* 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(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    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;
}

/* Robot Showcase in Hero */
.robot-showcase {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.showcase-item {
    font-size: 2.5rem;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    color: #fbbf24;
}

.showcase-item:hover {
    transform: scale(1.3) translateY(-10px);
    color: #ef4444;
}

.showcase-item:nth-child(1) { animation-delay: 0s; }
.showcase-item:nth-child(2) { animation-delay: 0.2s; }
.showcase-item:nth-child(3) { animation-delay: 0.4s; }
.showcase-item:nth-child(4) { animation-delay: 0.6s; }

/* 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;
}

/* Robot Visual Elements */
.robot-visual {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.robot-visual.revealed {
    opacity: 1;
    transform: scale(1);
}

.mini-icon {
    font-size: 1.5rem;
    animation: robot-scan 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ef4444;
}

.mini-icon:hover {
    transform: scale(1.3) rotate(10deg);
    color: #dc2626;
}

.mini-icon:nth-child(1) { animation-delay: 0s; }
.mini-icon:nth-child(2) { animation-delay: 0.5s; }
.mini-icon:nth-child(3) { animation-delay: 1s; }
.mini-icon:nth-child(4) { animation-delay: 1.5s; }

.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:nth-child(7).revealed { transition-delay: 0.7s; }

.list li:last-child {
    border-bottom: none;
}

.list li i {
    color: #2d5aa0;
    width: 20px;
    text-align: center;
}

/* Robot Animation */
.robot-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
    height: 100px;
}

.robot-icon {
    font-size: 4rem;
    color: #ef4444;
    animation: robot-scan 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.robot-icon:hover {
    transform: scale(1.2);
    animation-duration: 1s;
}

.robot-icon:nth-child(2) {
    animation-delay: 0.5s;
    color: #fbbf24;
}

.robot-icon:nth-child(3) {
    animation-delay: 1s;
    color: #3b82f6;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    position: relative; /* PENTING */
    overflow: hidden;   /* BIAR ::before TIDAK KELUAR */
    
    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; /*  INI PENTING */
}

.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); /* Merah */
}
.card:nth-child(2):hover { 
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4); /* Biru */
}
.card:nth-child(3):hover { 
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.4); /* Hijau */
}
.card:nth-child(4):hover { 
    box-shadow: 0 20px 40px rgba(234, 179, 8, 0.4); /* Kuning */
}
.card:nth-child(5):hover { 
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.4); /* Orange */
}
.card:nth-child(6):hover { 
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.4); /* Ungu */
}

.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 EV3 Colors */
.card:nth-child(1) { border-top: 4px solid #ef4444; }
.card:nth-child(2) { border-top: 4px solid #fbbf24; }
.card:nth-child(3) { border-top: 4px solid #3b82f6; }
.card:nth-child(4) { border-top: 4px solid #10b981; }
.card:nth-child(5) { border-top: 4px solid #8b5cf6; }
.card:nth-child(6) { border-top: 4px solid #ec4899; }

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: white;
    border-radius: 15px;
    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);
}

.tool-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.tool-card:nth-child(1).revealed { animation: fadeInUp 0.6s ease-out 0.1s both; }
.tool-card:nth-child(2).revealed { animation: fadeInUp 0.6s ease-out 0.2s both; }
.tool-card:nth-child(3).revealed { animation: fadeInUp 0.6s ease-out 0.3s both; }
.tool-card:nth-child(4).revealed { animation: fadeInUp 0.6s ease-out 0.4s both; }
.tool-card:nth-child(5).revealed { animation: fadeInUp 0.6s ease-out 0.5s both; }
.tool-card:nth-child(6).revealed { animation: fadeInUp 0.6s ease-out 0.6s both; }

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.tool-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    padding: 2rem;
    font-size: 3rem;
    color: white;
    text-align: center;
}

.tool-content {
    padding: 1.5rem;
    text-align: center;
}

.tool-content h4 {
    color: #2d5aa0;
    margin-bottom: 0.5rem;
}

.tool-content p {
    color: #666;
    font-size: 0.9rem;
}

/* 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 */
@media (max-width: 1090px) {
            .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 {
                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;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 0.5rem !important;
                text-align: center !important;
                width: 100%;
            }

            .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%;
            }

            .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;
            }

            .nav-container {
                padding: 0 1rem;
            }

            .footer {
                padding: 2rem 0 1rem;
                margin-top: 2rem;
            }

            .footer-content {
                grid-template-columns: 1fr;
                text-align: left;
                gap: 2rem;
                padding: 0 1rem;
            }

            .footer-section {
                width: 100%;
                max-width: 100%;
            }

            .footer-section h3 {
                font-size: 1.2rem;
                margin-bottom: 1rem;
            }

            .footer-section p,
            .footer-section a {
                font-size: 0.9rem;
            }

            .social-links {
                justify-content: flex-start;
                flex-wrap: wrap;
            }

            .footer-map {
                width: 100%;
                margin-top: 1rem;
            }

            .footer-map iframe {
                width: 100%;
                height: 200px;
                max-width: 100%;
            }

            .footer-bottom {
                padding: 1.5rem 1rem 1rem;
                font-size: 0.85rem;
            }

            .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.4rem;
                flex-wrap: wrap;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 0.5rem !important;
                text-align: center !important;
                width: 100%;
            }

            .card h3 {
                font-size: 1.1rem;
            }

            .footer-section h3 {
                font-size: 1.1rem;
            }
        }