:root {
    --primary: #FFD700; /* Vibrant Yellow */
    --secondary: #FFFFFF; /* Pure White */
    --dark: #1A1A1A;
    --text-muted: #555555;
    --bg-light: #FAFAFA;
    --accent: #00D1FF; /* Cool Blue for accents */
    --radius: 20px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark);
}

.dot-cloud {
    color: var(--primary);
    background: var(--dark);
    padding: 0 6px;
    border-radius: 4px;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    margin-left: 30px;
    font-size: 15px;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    padding: 12px 28px;
    border-radius: 50px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: radial-gradient(circle at 90% 10%, #FFFBE6 0%, #FFFFFF 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-btns .btn-secondary {
    margin-left: 20px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 5px;
}

/* Drone Illustration */
.drone-wrapper {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.drone-illustration {
    width: 220px;
    height: 180px;
    background: var(--primary);
    border-radius: 40px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    animation: hover 4s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.drone-illustration::after {
    content: 'Q';
    font-size: 80px;
    font-weight: 900;
    color: white;
    opacity: 0.5;
}

@keyframes hover {
    0%, 100% { transform: translateY(0) rotateX(10deg); }
    50% { transform: translateY(-30px) rotateX(0deg); }
}

.propeller {
    width: 100px;
    height: 12px;
    background: #333;
    position: absolute;
    border-radius: 6px;
    animation: spin 0.1s linear infinite;
}

.p1 { top: -20px; left: -20px; }
.p2 { top: -20px; right: -20px; }
.p3 { bottom: -20px; left: -20px; }
.p4 { bottom: -20px; right: -20px; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Programs */
.programs {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.program-card {
    background: white;
    padding: 50px 40px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 2px solid transparent;
}

.program-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.program-card .icon {
    font-size: 50px;
    margin-bottom: 25px;
    display: block;
}

.program-card h3 {
    margin-bottom: 15px;
}

/* Slider Section */
.product-slider-section {
    padding: 60px 0;
    background: #fff;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: #fafafa;
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.slides {
    position: relative;
    height: 350px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.slide-image svg {
    width: 100%;
    height: auto;
    max-height: 250px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.slide-text h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--dark);
}

.slide-text p {
    font-size: 16px;
    color: var(--text-muted);
}

.slider-dots {
    text-align: center;
    margin-top: 30px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #ddd;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary);
    width: 30px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .slide-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .slides {
        height: 500px;
    }
    .slide-image svg {
        max-height: 180px;
    }
}

/* Product Section */
.products {
    padding: 120px 0;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.badge {
    background: #FFF9E6;
    color: #B8860B;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    border: 1px solid var(--primary);
}

.features {
    list-style: none;
    margin-top: 30px;
}

.features li {
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.features li::before {
    content: '✔';
    color: var(--primary);
    margin-right: 10px;
    font-size: 20px;
}

.qubit-kit-dummy {
    width: 100%;
    aspect-ratio: 1;
    background: var(--primary);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 900;
    transform: rotate(3deg);
    box-shadow: 20px 20px 0 rgba(0,0,0,0.05);
}

.box-top { font-size: 60px; }
.box-side { font-size: 20px; opacity: 0.8; }

/* Page Transition Effects */
.page-fade-in {
    animation: fadeInPage 0.6s ease-in-out forwards;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Custom Cursor (Hidden on mobile) */
@media (min-width: 993px) {
    /* * {
        cursor: none; 
    } */
    
    .custom-cursor {
        width: 10px;
        height: 10px;
        background: var(--primary);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.1s ease, background 0.3s ease;
        mix-blend-mode: difference;
    }

    .custom-cursor-follower {
        width: 30px;
        height: 30px;
        border: 2px solid var(--primary);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9998;
        transition: transform 0.2s ease, border-color 0.3s ease;
    }

    /* Cursor states on hover */
    .cursor-hover {
        transform: scale(2.5);
        background: rgba(255, 215, 0, 0.4) !important;
        border-color: transparent !important;
    }
}

/* Object Hover Effects */
.program-card, .btn-primary, .qubit-render, .qubit-kit-dummy {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.program-card:hover {
    transform: scale(1.05) rotate(1deg) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.qubit-render:hover {
    transform: scale(1.1) rotate(-5deg);
}

/* Footer */
footer {
    background: #111;
    color: white;
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

.footer-info .logo {
    color: #FFFFFF;
    margin-bottom: 20px;
}

.footer-info .dot-cloud {
    background: var(--primary);
    color: var(--dark);
}

.footer-info p {
    color: #FFFFFF;
    margin-top: 20px;
    max-width: 300px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 25px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 40px;
    color: #555;
    font-size: 14px;
}

/* Mobile Navigation & Floating Actions */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
    position: relative;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 5px;
    transition: 0.3s;
}

/* Animasi Hamburger ke X */
.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.wa-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    width: 60px;
    height: 60px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: transform 0.3s;
}

.wa-float:hover {
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dark);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1000;
    font-size: 20px;
    font-weight: bold;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex !important; /* Paksa muncul di mobile */
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: #FFFFFF;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1090;
        padding: 40px;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-links.active {
        right: 0 !important;
    }

    .nav-links li {
        margin: 15px 0 !important;
        width: 100% !important;
        text-align: center !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .nav-links li a {
        margin: 0 !important;
        font-size: 18px !important;
        color: #1A1A1A !important; /* Gunakan warna gelap langsung */
        display: block !important;
        padding: 10px !important;
        text-decoration: none !important;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid, .product-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text p { margin: 0 auto 35px; }
    .hero-visual { order: -1; margin-bottom: 50px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
