/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: #6C63FF;
}

.badge {
    display: inline-block;
    background: rgba(108, 99, 255, 0.1);
    color: #6C63FF;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #6C63FF;
    color: #fff;
}

.btn-primary:hover {
    background: #5a52d5;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #6C63FF;
    border: 2px solid #6C63FF;
}

.btn-secondary:hover {
    background: #6C63FF;
    color: #fff;
    transform: translateY(-3px);
}

.btn-wa {
    background: #25D366;
    color: #fff;
}

.btn-wa:hover {
    background: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    transition: all 0.3s ease;
}

/* Saat navbar di-scroll */
.navbar.scrolled .logo-img {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6C63FF;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #6C63FF;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .number {
    font-size: 32px;
    font-weight: 700;
    color: #6C63FF;
}

.stat .label {
    color: #666;
    font-size: 14px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ======================================== */
/* ANIMASI LOGO KEREN - SEMUA EFEK BERJALAN */
/* ======================================== */

.image-placeholder {
    width: 100%;
    max-width: 500px;
    height: 400px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #6C63FF, #a29bfe);
}

/* 1. BORDER BERPUTAR DI SEKELILING PLACEHOLDER */
.image-placeholder::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    background: conic-gradient(
        from 0deg,
        #6C63FF,
        #a29bfe,
        #6C63FF,
        #a29bfe,
        #6C63FF,
        #a29bfe,
        #6C63FF
    );
    z-index: 0;
    animation: spinBorder 4s linear infinite;
}

/* 2. BACKGROUND UTAMA (di atas border) */
.image-placeholder .bg-inner {
    position: absolute;
    inset: 4px;
    border-radius: 18px;
    background: linear-gradient(135deg, #6C63FF, #a29bfe);
    z-index: 1;
}

/* 3. CAHAYA BACKGROUND BERPUTAR SEPERTI GALAXY */
.image-placeholder .bg-inner::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: rotateGlow 6s linear infinite;
    top: -50%;
    left: -50%;
}

/* 4. BINTANG BERKEDIP DI BACKGROUND */
.image-placeholder .bg-inner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 15% 25%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 35% 75%, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 55% 15%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 75% 85%, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 90% 35%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 5% 65%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 45% 45%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 65% 55%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 85% 65%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 25% 85%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 95% 15%, rgba(255,255,255,0.6), transparent);
    background-size: 200px 200px;
    animation: twinkle 3s ease-in-out infinite alternate;
}

@keyframes spinBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes twinkle {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* 5. LOGO DI ATAS SEMUA EFEK */
.hero-logo {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 30px rgba(108, 99, 255, 0.3));
    transition: all 0.3s ease;
}

/* 6. DENYUT JANTUNG (PULSE) + MELAYANG (FLOAT) + GLOW */
.pulse-heart {
    animation: 
        pulseHeart 2s ease-in-out infinite,
        floatLogo 4s ease-in-out infinite,
        logoGlow 3s ease-in-out infinite;
}

/* Denyut Jantung */
@keyframes pulseHeart {
    0% { transform: scale(1); }
    15% { transform: scale(1.05); }
    30% { transform: scale(1); }
    45% { transform: scale(1.05); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Melayang Naik-Turun */
@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Bercahaya Berubah-Ubah */
@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 10px 30px rgba(108, 99, 255, 0.3)) brightness(1);
    }
    50% {
        filter: drop-shadow(0 10px 50px rgba(108, 99, 255, 0.6)) brightness(1.1);
    }
    100% {
        filter: drop-shadow(0 10px 30px rgba(108, 99, 255, 0.3)) brightness(1);
    }
}

/* HOVER - SEMUA ANIMASI LEBIH CEPAT */
.pulse-heart:hover {
    animation: 
        pulseHeart 0.8s ease-in-out infinite,
        floatLogo 2s ease-in-out infinite,
        logoGlow 1.5s ease-in-out infinite;
    cursor: pointer;
    transform: scale(1.03) rotate(2deg);
}

/* ======================================== */

/* Typing Effect */
.typing-container {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
}

.typing-text {
    color: #6C63FF;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 30px;
    background: #6C63FF;
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    font-size: 16px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: #f8f9ff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #6C63FF;
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.1);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.icon-wrapper i {
    font-size: 30px;
    color: #6C63FF;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.service-link {
    color: #6C63FF;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: #5a52d5;
}

/* Products Section */
.products {
    padding: 100px 0;
    background: #f8f9ff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6C63FF, #a29bfe);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.product-icon i {
    font-size: 35px;
    color: #fff;
}

.product-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.product-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
    text-align: left;
}

.product-features span {
    font-size: 14px;
    color: #555;
}

.product-features i {
    color: #6C63FF;
    margin-right: 10px;
}

.product-card .btn {
    font-size: 14px;
    padding: 12px 30px;
}

/* Consultation Section */
.consultation {
    padding: 100px 0;
    background: #fff;
}

.consultation-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.consultation-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px;
    background: #f8f9ff;
    border-radius: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6C63FF;
    font-size: 20px;
}

.info-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
}

.consultation-form {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.consultation-form h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6C63FF;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.consultation-form .btn-wa {
    width: 100%;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #6C63FF, #a29bfe);
    color: #fff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-text h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.contact-text .highlight {
    color: #fff;
    text-decoration: underline;
}

.contact-text p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-text .btn-wa {
    background: #fff;
    color: #25D366;
}

.contact-text .btn-wa:hover {
    background: #25D366;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-social h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #fff;
    color: #6C63FF;
    transform: translateY(-5px);
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-about p {
    color: #aaa;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #6C63FF;
}

.footer-contact p {
    color: #aaa;
    margin-bottom: 10px;
}

.footer-contact i {
    color: #6C63FF;
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulseWA 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

@keyframes pulseWA {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .consultation-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-logo {
        max-width: 280px;
    }
    
    .image-placeholder {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.5s ease;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .logo-img {
        height: 40px;
        max-width: 150px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .typing-container {
        font-size: 18px;
        min-height: 40px;
    }

    .typing-cursor {
        height: 24px;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .consultation-form {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .info-item {
        justify-content: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .hero-stats {
        gap: 30px;
        flex-wrap: wrap;
    }

    .stat .number {
        font-size: 24px;
    }

    .hero-logo {
        max-width: 220px;
    }
    
    .image-placeholder {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .logo-img {
        height: 35px;
        max-width: 120px;
    }

    .typing-container {
        font-size: 16px;
        min-height: 35px;
    }

    .typing-cursor {
        height: 20px;
    }

    .hero-logo {
        max-width: 180px;
    }
    
    .image-placeholder {
        height: 250px;
    }
}