/* 
   CPX STORE - Premium Glassmorphism Theme
   Author: AI Assistant (Custom Coded, Non-AI aesthetic)
*/

:root {
    /* Color Palette */
    --bg-dark: #050507;
    --bg-darker: #020203;
    --text-main: #f0f0f0;
    --text-muted: #9ba1a6;
    
    /* Accents */
    --accent-blue: #00f3ff;
    --accent-purple: #bc13fe;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Glows */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.glow-1 {
    top: -100px;
    left: -200px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.glow-2 {
    bottom: 20%;
    right: -200px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}

/* Typography Utility */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
}

/* Layout Utility */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    box-shadow: 0 4px 15px rgba(188, 19, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(188, 19, 254, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}
.btn-whatsapp:hover { background-color: #20bd5a; transform: translateY(-2px); }

.btn-discord {
    background-color: #5865F2;
    color: #fff;
}
.btn-discord:hover { background-color: #4752C4; transform: translateY(-2px); }

/* Glass Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    /* Efek ini membalikkan logo hitam di background putih menjadi putih transparan */
    filter: invert(1) brightness(200%);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-menu-glow, .mobile-socials {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 243, 255, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Hero Visual Composition */
.visual-composition {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(40px);
    opacity: 0.3;
    animation: blob-bounce 10s infinite alternate ease-in-out;
    z-index: 0;
}

@keyframes blob-bounce {
    0% { transform: scale(1) translate(0, 0); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { transform: scale(1.1) translate(20px, -20px); border-radius: 50% 50% 30% 70% / 70% 30% 70% 30%; }
    100% { transform: scale(0.9) translate(-20px, 20px); border-radius: 70% 30% 50% 50% / 30% 70% 30% 70%; }
}

.comp-card {
    position: absolute;
    width: 260px;
    z-index: 1;
    animation: float 6s infinite ease-in-out;
    padding: 0;
    overflow: hidden;
}

.comp-card .card-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.comp-card .dots {
    display: flex;
    gap: 6px;
}

.comp-card .dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #444;
}
.comp-card .dots span:nth-child(1) { background: #ff5f56; }
.comp-card .dots span:nth-child(2) { background: #ffbd2e; }
.comp-card .dots span:nth-child(3) { background: #27c93f; }

.comp-card .card-body {
    padding: 2rem;
    text-align: left;
}

.comp-card h3 {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.card-1 {
    top: 20px;
    left: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20px;
    right: -20px;
    animation-delay: 3s;
    background: rgba(20, 20, 25, 0.6); /* Slightly darker to add depth */
    backdrop-filter: blur(20px);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.float-badge {
    position: absolute;
    bottom: 60px;
    left: -30px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    color: var(--text-main);
    z-index: 2;
    animation: float 5s infinite ease-in-out;
    animation-delay: 1.5s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
}

.float-badge i {
    color: #27c93f;
    font-size: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    border-radius: 10px;
}

.code-lines {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.code-lines .line {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.w-100 { width: 100%; background: linear-gradient(90deg, var(--accent-purple), transparent); }
.w-75 { width: 75%; background: linear-gradient(90deg, var(--accent-blue), transparent); }
.w-50 { width: 50%; background: rgba(255,255,255,0.2); }

.code-icon {
    font-size: 2.5rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--glass-border);
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.stat-item span {
    color: var(--accent-purple);
    font-size: 0.9rem;
    font-weight: 500;
}

.image-wrapper {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.abstract-shape {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    animation: morph 8s ease-in-out infinite;
    opacity: 0.2;
    filter: blur(20px);
}

.about-icon {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-icon {
    font-size: 1.8rem;
    color: var(--accent-blue);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.service-features li i {
    color: var(--accent-purple);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-link {
    transform: translateY(0);
}

.portfolio-link:hover {
    transform: translateY(0) scale(1.1) !important;
}

.portfolio-yt {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ff0000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-yt {
    transform: translateY(0);
}

.portfolio-yt:hover {
    background: #cc0000;
    transform: translateY(0) scale(1.1) !important;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info .category {
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.portfolio-info h3 {
    font-size: 1.3rem;
}

.portfolio-features {
    list-style: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-features li i {
    color: var(--accent-blue);
    font-size: 1.1rem;
}

/* Contact Section */
.contact-panel {
    padding: 5rem 3rem;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-content p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    background: var(--bg-darker);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--text-main);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-left { transform: translateX(30px); }
.fade-right { transform: translateX(-30px); }

.reveal.fade-left.active,
.reveal.fade-right.active {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-container, .about-content { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual { order: -1; margin-bottom: 1rem; }
    .visual-composition { transform: scale(0.9); height: 400px; }
    .stats { flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .mobile-menu-glow {
        display: block;
        position: absolute;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
        top: 15%;
        right: -100px;
        filter: blur(80px);
        z-index: -1;
        opacity: 0.6;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 8, 0.85);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-left: 0;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        border-left: none;
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }

    .nav-links a:not(.btn) {
        font-size: 2rem;
        font-family: var(--font-main);
        font-weight: 500;
        letter-spacing: 1px;
        color: rgba(255,255,255,0.7);
        margin-bottom: 2rem;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
        position: relative;
        text-align: center;
    }

    .nav-links a:not(.btn):hover, .nav-links a:not(.btn):active {
        color: #fff;
    }

    .nav-links.active a:not(.btn) {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active a:not(.btn):nth-child(2) { transition-delay: 0.1s; }
    .nav-links.active a:not(.btn):nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active a:not(.btn):nth-child(4) { transition-delay: 0.3s; }
    .nav-links.active a:not(.btn):nth-child(5) { transition-delay: 0.4s; }

    .nav-links .btn {
        margin-top: 2rem;
        font-size: 1.2rem;
        padding: 1rem 3.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
        background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
        color: #fff;
        border: none;
        border-radius: 50px;
    }

    .nav-links.active .btn {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.5s;
    }
    
    .mobile-socials {
        display: flex;
        margin-top: 4rem;
        gap: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
        transition-delay: 0.6s;
    }

    .nav-links.active .mobile-socials {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-socials a {
        font-size: 2rem;
        color: #fff;
        text-decoration: none;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
        position: relative;
        font-size: 2.2rem;
    }
    
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .contact-buttons { flex-direction: column; }
    .visual-composition { transform: scale(0.8); height: 350px; }
    .portfolio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .visual-composition { transform: scale(0.65); height: 300px; }
    .hero-container { gap: 1.5rem; }
    .hero-title { font-size: 2.2rem; }
}

/* Modal / Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 2rem;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 243, 255, 0.1);
    width: 100%;
    max-width: 1000px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

#modalCaption {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 0;
    font-weight: 700;
}

.close-modal {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ff5f56;
    border-color: rgba(255, 95, 86, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.modal-content {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.portfolio-overlay {
    cursor: pointer;
}
