@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Nunito:wght@400;600;700&display=swap');

:root {
    --bg-dark: #0a111b; /* Deep cold blue */
    --bg-surface: rgba(32, 53, 79, 0.4); 
    --text-main: #e6f0fa;
    --text-muted: #a3c2dd;
    --custom-blue: #94c4e9;
    --custom-blue-glow: rgba(148, 196, 233, 0.6);
    --blue-accent: #6eb5ea;
    --purple-accent: #7fa1d6;
    --glass-bg: rgba(22, 40, 65, 0.4);
    --glass-border: rgba(148, 196, 233, 0.3);
    --glass-border-light: rgba(255, 255, 255, 0.5);
    --panel-glow: 0 0 25px rgba(148, 196, 233, 0.2);
    --panel-inset: inset 0 0 15px rgba(255, 255, 255, 0.1);
}

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

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

/* Background animated stars / snow (Optimized) */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(135deg, #09131e 0%, #0f2438 50%, #071526 100%);
    pointer-events: none;
    will-change: transform;
}
/* Removed the heavy pseudo-element radial gradient animation for better performance */

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff, 0 0 12px var(--custom-blue);
    /* Simplified animation and removed floatUp to save CPU cycles */
    animation: twinkle infinite alternate;
    opacity: 0.6;
    will-change: transform, opacity;
}

@keyframes twinkle {
    0% { transform: scale(0.9); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.8; }
}

/* Typography */
h1, h2, h3 { 
    font-family: 'Cinzel', serif; 
    line-height: 1.2; 
    font-weight: 700; 
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    font-family: 'Cinzel', serif; 
    text-transform: uppercase;
}

.highlight { color: var(--custom-blue); }
.highlight-gold { 
    color: #fff; 
    text-shadow: 0 0 15px var(--custom-blue-glow);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none; 
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 10px var(--custom-blue-glow);
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: 'Nunito', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    text-shadow: 0 0 10px var(--custom-blue);
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
    z-index: 1001; /* Above nav links */
}

.cta-nav {
    background: rgba(148, 196, 233, 0.1) !important;
    border: 1px solid var(--glass-border-light) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    color: #fff !important;
    box-shadow: var(--panel-inset);
}

.cta-nav:hover {
    background: rgba(148, 196, 233, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--custom-blue-glow), var(--panel-inset);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: rgba(148, 196, 233, 0.85);
    color: #071526;
    border: 1px solid var(--custom-blue);
    box-shadow: 0 4px 15px var(--custom-blue-glow);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.5);
    background: #fff;
}

.btn-outline {
    background: rgba(22, 40, 65, 0.4);
    color: #fff;
    border: 1px solid var(--glass-border-light);
    backdrop-filter: blur(5px);
    box-shadow: var(--panel-inset);
}
.btn-outline:hover {
    background: rgba(148, 196, 233, 0.15);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--custom-blue-glow), var(--panel-inset);
}

/* Layout */
.page-content {
    min-height: calc(100vh - 150px);
    padding-top: 6rem;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    position: relative;
    z-index: 10;
}

.testimonial-hero {
    padding-top: 4rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: #c9dff2;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

/* Card 3D Effects Genshin UI Theme */
.card-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    overflow: visible;
}

.hero-card {
    background: var(--bg-surface);
    border: 2px solid var(--glass-border-light);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--panel-glow), var(--panel-inset), 0 20px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    padding: 10px;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(148,196,233,0.1), rgba(255,255,255,0.4));
    border-radius: 22px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(2px);
    transition: opacity 0.3s;
}

.hero-card:hover::before {
    opacity: 0.8;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pricelist Section */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-title p {
    color: var(--text-main);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.gallery-grid {
    column-count: 1;
    column-gap: 2rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        column-count: 3;
    }
}

.gallery-item {
    cursor: pointer;
    border-radius: 16px;
    position: relative;
    background: var(--bg-surface);
    border: 2px solid var(--glass-border-light);
    box-shadow: var(--panel-glow), 0 10px 30px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    break-inside: avoid;
    margin-bottom: 2rem;
    display: block;
    padding: 8px; /* Frame margin */
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 10px;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    background: rgba(10, 20, 35, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 10px;
    pointer-events: none;
}

.gallery-item:hover img {
    transform: scale(1.02);
}
.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item::after {
    content: 'Pilih Layanan Ini';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -10%);
    background: rgba(255, 255, 255, 0.95);
    color: #05101a;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(148, 196, 233, 0.8);
    border: 2px solid var(--custom-blue);
}
.testimonial-hero .gallery-item::after {
    content: 'Lihat testi';
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 10, 20, 0.9);
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
}
.lightbox.show {
    display: flex;
    animation: fadeIn 0.3s forwards;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    border: 2px solid var(--glass-border-light);
    box-shadow: 0 0 50px var(--custom-blue-glow);
    animation: zoomIn 0.3s forwards;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--custom-blue);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
    text-shadow: 0 0 10px rgba(148, 196, 233, 0.5);
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #fff;
    text-decoration: none;
}

/* General Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 10, 20, 0.85);
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    position: relative;
    background: var(--bg-surface);
    padding: 3rem 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border-radius: 20px;
    border: 2px solid var(--glass-border-light);
    box-shadow: var(--panel-glow), var(--panel-inset), 0 20px 50px rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
}

.modal-icon {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px var(--custom-blue-glow);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--custom-blue);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #fff;
}

/* Auth Modal Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 20, 35, 0.6);
    border: 2px solid var(--glass-border-light);
    border-radius: 8px;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: var(--custom-blue);
    box-shadow: 0 0 10px var(--custom-blue-glow);
}

/* Contact Section & Panels */
.contact-section {
    padding-bottom: 6rem;
}
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    border: 2px solid var(--glass-border-light);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--panel-glow), var(--panel-inset), 0 20px 50px rgba(0,0,0,0.5);
}

.glass-panel h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.glass-panel p {
    color: var(--text-main);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.social-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem auto 0;
    flex-wrap: wrap;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    padding: 0;
    color: white !important;
    font-size: 1.8rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-x { background: #000; box-shadow: 0 4px 15px rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.btn-x:hover { background: #1a1a1a; box-shadow: 0 8px 25px rgba(255,255,255,0.3); border-color: #fff; transform: translateY(-3px); }

.btn-telegram { background: #0088cc; box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4); }
.btn-telegram:hover { background: #00aaff; box-shadow: 0 8px 25px rgba(0, 170, 255, 0.6); border-color: #fff; transform: translateY(-3px); }

.btn-discord { background: #5865F2; box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4); }
.btn-discord:hover { background: #7289da; box-shadow: 0 8px 25px rgba(114, 137, 218, 0.6); border-color: #fff; transform: translateY(-3px); }

.btn-youtube { background: #FF0000; box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4); }
.btn-youtube:hover { background: #ff3333; box-shadow: 0 8px 25px rgba(255, 0, 0, 0.6); border-color: #fff; transform: translateY(-3px); }

.btn-facebook { background: #1877F2; box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4); }
.btn-facebook:hover { background: #3b8ef5; box-shadow: 0 8px 25px rgba(24, 119, 242, 0.6); border-color: #fff; transform: translateY(-3px); }

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(5, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

footer p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.9rem;
    font-size: 0.9rem;
}

/* Premium Form Elements: Select Dropdown & File Input */
select, input[type="file"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(10, 20, 35, 0.6);
    border: 2px solid var(--glass-border-light);
    color: var(--text-main);
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

select:focus, input[type="file"]:focus {
    border-color: var(--custom-blue);
    box-shadow: 0 0 15px var(--custom-blue-glow), inset 0 0 10px rgba(0,0,0,0.5);
    background: rgba(20, 35, 60, 0.8);
}

select option {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

/* Customizing the File Upload Button text implicitly */
input[type="file"]::file-selector-button {
    background: linear-gradient(135deg, var(--custom-blue) 0%, var(--purple-accent) 100%);
    color: #000;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: 0 0 10px var(--custom-blue-glow);
}

input[type="file"]::file-selector-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--custom-blue-glow);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Character Showcase */
.characters-section {
    padding-top: 2rem;
}

.character-showcase {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    background: var(--bg-surface);
    border: 2px solid var(--glass-border-light);
    padding: 10px; /* Frame margin */
    box-shadow: var(--panel-glow), var(--panel-inset), 0 20px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
}

.chara-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
    }
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    
    /* Mobile Navigation Adjustments */
    .hamburger {
        display: block;
    }
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(5, 12, 22, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        border-left: 1px solid var(--glass-border-light);
        z-index: 999;
    }
    .nav-links.nav-active {
        right: 0;
    }
}
