/* ======== RESET & GLOBAL STYLES ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ======== ANIMASI FADE-IN ======== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======== JUDUL SECTION UMUM ======== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #212529;
}
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 50px;
}

/* ======== HEADER / NAVBAR (FIXED - HILANG-MUNCUL) ======== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease, transform 0.4s ease;
    
    background-color: transparent;
    transform: translateY(0);
    padding: 20px 0;
}
#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#main-header .logo img,
#main-header .nav-links a {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
#main-header .logo img { 
    height: 50px; 
}
.nav-links ul { list-style: none; display: flex; }
.nav-links li { margin-left: 30px; }
.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}
#main-header.scrolled .logo img,
#main-header.scrolled .nav-links a {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#main-header.scrolled .nav-links a:hover,
#main-header.scrolled .nav-links a.active {
    color: #0d6efd;
}

/* ======== HERO SECTION ======== */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1510915228340-29c85a43dcfe?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}
.hero-content { max-width: 800px; }
.badge {
    background-color: rgba(0, 234, 255, 0.15);
    color: #00eaff;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #00eaff;
}
.hero h1 { font-size: 4.5rem; font-weight: 700; margin-top: 20px; letter-spacing: 1px; }
.hero h2 { font-size: 2.5rem; font-weight: 500; color: #00eaff; margin-bottom: 15px; }
.hero p { font-size: 1.1rem; font-weight: 300; margin-bottom: 30px; }
.cta-buttons .btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.btn-primary { background-color: #25D366; color: #ffffff; }
.btn-primary:hover {
    background-color: #1EAE56;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-secondary { background-color: transparent; color: #ffffff; border: 2px solid #ffffff; }
.btn-secondary:hover { background-color: #ffffff; color: #333; transform: translateY(-3px); }
.btn i { margin-right: 8px; }
.social-proof {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #eee;
    font-weight: 500;
    flex-wrap: wrap;
}
.social-proof span { display: flex; align-items: center; gap: 8px; }

/* ======== LAYANAN KAMI (DESIGN MEWAH) ======== */
.layanan {
    padding: 100px 0;
    background-color: #1a1a1a;
}
.layanan .section-title { color: #ffffff; }
.layanan .section-subtitle { color: #aaa; }

.layanan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.layanan-card {
    background: #2a2a2a;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.layanan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
}
.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px auto;
    border-radius: 50%;
    background: #0d6efd;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}
.icon-wrapper i {
    font-size: 36px;
    color: #ffffff;
}
.layanan-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}
.layanan-card p {
    color: #aaa;
    font-size: 0.95rem;
}

/* ======== PROYEK KAMI ======== */
.proyek {
    padding: 100px 0;
    background-color: #f8f9fa;
}
.proyek-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.proyek-card {
    text-decoration: none;
    color: #333;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.proyek-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.proyek-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #eee;
}
.proyek-title {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 20px;
    text-align: center;
}

/* ======== GAME LABS ======== */
.game {
    padding: 100px 0;
    background-color: #ffffff;
}
.game-container {
    max-width: 400px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
.game-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.game-cell {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background: #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.game-cell:hover { background-color: #dee2e6; }
.game-cell.x::before, .game-cell.o::before {
    position: absolute; content: ''; top: 50%; left: 50%;
    transform: translate(-50%, -50%); font-size: 4rem; font-weight: bold;
}
.game-cell.x::before { content: 'X'; color: #e74c3c; }
.game-cell.o::before { content: 'O'; color: #3498db; }
.game-status {
    text-align: center; font-size: 1.5rem; font-weight: 600;
    margin-top: 20px; margin-bottom: 20px;
}
.btn-game-restart {
    display: block; width: 100%; padding: 12px 30px; border-radius: 50px;
    text-decoration: none; font-weight: 600; font-size: 1rem;
    transition: all 0.3s ease; border: none; background-color: #0d6efd;
    color: #ffffff; cursor: pointer;
}
.btn-game-restart:hover { background-color: #0b5ed7; }

/* ======== KONTAK & MASUKAN ======== */
.kontak {
    padding: 100px 0;
    background-color: #ffffff;
}
.kontak-form { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 10px;
    font-family: 'Poppins', sans-serif; font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none; border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}
.form-group input[type="file"] {
    width: 100%; padding: 10px; border: 1px solid #ddd;
    border-radius: 10px; font-size: 0.9rem;
}
.btn-submit {
    display: block; width: 100%; padding: 15px 30px; border-radius: 50px;
    text-decoration: none; font-weight: 600; font-size: 1rem;
    transition: all 0.3s ease; border: none; background-color: #1a1a1a;
    color: #ffffff; cursor: pointer;
}
.btn-submit:hover { background-color: #333; }
.btn-submit:disabled { background-color: #aaa; cursor: not-allowed; }

#form-notification {
    text-align: center; margin-top: 20px; padding: 15px;
    border-radius: 10px; display: none; font-weight: 500;
}
#form-notification.success { display: block; background-color: #d4edda; color: #155724; }
#form-notification.error { display: block; background-color: #f8d7da; color: #721c24; }

/* ======== FOOTER SECTION ======== */
.footer {
    background-color: #1a1a1a;
    color: #aaa;
    padding: 40px 0;
    text-align: center;
}
.footer .container {
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.footer-social-links { display: flex; gap: 25px; }
.footer-social-links a {
    color: #aaa; text-decoration: none; font-size: 1rem; transition: color 0.3s ease;
}
.footer-social-links a:hover { color: #00eaff; }
.footer-social-links i { margin-right: 8px; font-size: 1.2rem; }
.footer .fa-heart { color: #e74c3c; }

/* ======== RESPONSIVE (MOBILE FIX) ======== */
@media (max-width: 992px) {
    .layanan-grid { grid-template-columns: 1fr; }
    .proyek-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    
    #main-header { padding: 0; }
    #main-header .container {
        flex-direction: column;
        padding: 15px 20px;
    }
    .logo img { height: 40px; margin-bottom: 10px; }
    .nav-links ul { justify-content: center; flex-wrap: wrap; gap: 10px; }
    .nav-links li { margin: 0 10px; }
    #main-header.scrolled .container {
        padding: 10px 20px;
    }
    #main-header:not(.scrolled) .logo img,
    #main-header:not(.scrolled) .nav-links a {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .hero h1 { font-size: 2.8rem; }
    .hero h2 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    
    .cta-buttons { display: flex; flex-direction: column; }
    
    .social-proof { 
        flex-direction: column; 
        gap: 15px; 
        align-items: center;
    }
    
    .section-title { font-size: 2rem; }

    .layanan, .proyek, .game, .kontak {
        padding: 60px 0;
    }

    .layanan-card {
        padding: 30px 20px;
    }
    
    .proyek-card img {
        height: 200px;
    }
}

/* ======== IFRAME TERSEMBUNYI (PENTING!) ======== */
#send_frame {
    display: none;
    width: 0;
    height: 0;
}