* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: white;
}

html {
    overflow-x: hidden;
}

/* Animations - SAMA DENGAN ARDUINO.HTML */
@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 zoomIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(45, 90, 160, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(45, 90, 160, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 90, 160, 0); }
}

/* Hero Section */
.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 90, 160, 0.9), rgba(26, 54, 93, 0.9));
    z-index: 0;
}

.hero-content {
    animation: fadeInDown 1s ease-out;
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.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;
    opacity: 0.9;
}

/* Gallery Section */
.gallery-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.gallery-section h2 {
font-size: 3rem;
text-align: center;
margin-bottom: 1rem;
background: linear-gradient(135deg, #2d5aa0, #1a365d, #0077b6);
background-clip: text; 
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;  
font-weight: 900;
letter-spacing: -1px;
}
.gallery-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Disabled Button for Coming Soon */
.filter-btn:disabled {
    background: linear-gradient(135deg, #9e9e9e, #757575);
    cursor: not-allowed;
    opacity: 0.7;
}

.filter-btn:disabled:hover {
    transform: none;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.filter-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid transparent;
    background-clip: padding-box;
    color: #2d5aa0;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(45, 90, 160, 0.1);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(45, 90, 160, 0.3);
    border-color: #2d5aa0;
}

.filter-btn.active {
    background: linear-gradient(135deg, #2d5aa0, #1a365d);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(45, 90, 160, 0.4);
    transform: translateY(-3px) scale(1.05);
}

/* Masonry Grid Layout with Magnifying Effect */
.gallery-grid {
    column-count: 3;
    column-gap: 2rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.gallery-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateY(50px) scale(1);
    animation: galleryItemAppear 0.8s ease-out forwards;
    background: white;
    transform-origin: center center;
}

@keyframes galleryItemAppear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
.gallery-item:nth-child(7) { animation-delay: 0.4s; }
.gallery-item:nth-child(8) { animation-delay: 0.45s; }
.gallery-item:nth-child(9) { animation-delay: 0.5s; }
.gallery-item:nth-child(10) { animation-delay: 0.55s; }
.gallery-item:nth-child(11) { animation-delay: 0.6s; }
.gallery-item:nth-child(12) { animation-delay: 0.65s; }
.gallery-item:nth-child(13) { animation-delay: 0.7s; }
.gallery-item:nth-child(14) { animation-delay: 0.75s; }
.gallery-item:nth-child(15) { animation-delay: 0.8s; }
.gallery-item:nth-child(16) { animation-delay: 0.85s; }
.gallery-item:nth-child(17) { animation-delay: 0.9s; }
.gallery-item:nth-child(18) { animation-delay: 0.95s; }
.gallery-item:nth-child(19) { animation-delay: 1s; }
.gallery-item:nth-child(20) { animation-delay: 1.05s; }
.gallery-item:nth-child(21) { animation-delay: 1.1s; }
.gallery-item:nth-child(22) { animation-delay: 1.15s; }
.gallery-item:nth-child(23) { animation-delay: 1.2s; }
.gallery-item:nth-child(24) { animation-delay: 1.25s; }

/* Magnifying Effect - Foto yang di-hover membesar */
.gallery-item:hover {
    transform: translateY(-20px) scale(1.15);
    box-shadow: 0 40px 80px rgba(45, 90, 160, 0.35);
    z-index: 100;
}

/* Foto-foto lain mengecil saat ada yang di-hover */
.gallery-grid:has(.gallery-item:hover) .gallery-item:not(:hover) {
    transform: scale(0.92);
    opacity: 0.7;
    filter: blur(2px);
}

.gallery-item.hidden {
    display: none;
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    display: block;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.2) rotate(3deg);
}

/* Gradient Overlay */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(45, 90, 160, 0.1) 0%,
        rgba(26, 54, 93, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top, 
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.7) 50%,
        transparent 100%
    );
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    letter-spacing: -0.5px;
}

.gallery-category {
    display: inline-block;
    background: linear-gradient(135deg, #2d5aa0, #1a365d);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(45, 90, 160, 0.4);
}

/* Category specific colors */
.gallery-item[data-category="mozaik"] .gallery-category {
    background: linear-gradient(135deg, #00979d, #00b4d8);
}

.gallery-item[data-category="wedo"] .gallery-category {
    background: linear-gradient(135deg, #0077b6, #00b4d8);
}

.gallery-item[data-category="mechanic"] .gallery-category {
    background: linear-gradient(135deg, #06d6a0, #00979d);
}

.gallery-item[data-category="robot"] .gallery-category {
    background: linear-gradient(135deg, #f77f00, #ff9500);
}

.gallery-item[data-category="arduino"] .gallery-category {
    background: linear-gradient(135deg, #9d4edd, #c77dff);
}

.gallery-item[data-category="scratch"] .gallery-category {
    background: linear-gradient(135deg, #e63946, #f77f00);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.3s ease-out;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease-out;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-info {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
}

/* Responsive - IDENTIK DENGAN ARDUINO.HTML */
@media (max-width: 1090px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .pricing-section h2 {
        font-size: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .social-links {
        justify-content: left;
    }

    .footer-map iframe {
        height: 180px;
    }


    /* Gallery Mobile Responsive */
    .gallery-section h2 {
        font-size: 2rem;
    }

    .gallery-subtitle {
        font-size: 1rem;
    }

    .gallery-grid {
        column-count: 1;
        column-gap: 1rem;
    }

    .gallery-item {
        margin-bottom: 1.5rem;
    }

    .filter-buttons {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .filter-btn i {
        font-size: 0.85rem;
        margin-right: 0.4rem;
}

    .gallery-overlay {
        padding: 1.5rem;
    }

    .gallery-title {
        font-size: 1.1rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-info {
        bottom: -80px;
        font-size: 0.9rem;
        padding: 0 1rem;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .gallery-grid {
        column-count: 2;
    }
}