/* -- 1. VARIABLES & GLOBAL STYLES -- */
:root {
    --deep-space-blue: #0a192f;
    --slate-silver: #8892b0;
    --bright-white: #e6f1ff;
    --neon-cyan: #64ffda;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--deep-space-blue);
    color: var(--slate-silver);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--bright-white);
    line-height: 1.2;
}

section {
    padding: 100px 10%;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

/* -- 2. HEADER & NAVIGATION -- */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 6px 10% 2px 10%;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

#main-header.scrolled {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-decoration: none;
    margin-top: 7px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    color: var(--bright-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--neon-cyan);
}

.cta-button {
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 2px 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* -- 3. HERO SECTION -- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.main-cta {
    background-color: var(--neon-cyan);
    color: var(--deep-space-blue);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.main-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.8);
}

/* -- Tambahan CSS untuk gambar profile -- */
.profile-image-container {
    margin-top: 10px; /* Jarak dari tombol di atasnya */
    width: 100%;
    max-width: 350px; /* Sesuaikan ukuran maksimum */
}

.profile-image {
    width: 100%;
    height: auto;
    display: block;
}

/* -- 4. SERVICES SECTION -- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: rgba(136, 146, 176, 0.05);
    padding: 40px;
    border-radius: 5px;
    border: 1px solid rgba(136, 146, 176, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
}

.service-icon {
    color: var(--neon-cyan);
    margin-bottom: 20px;
}
.service-icon svg {
    width: 48px;
    height: 48px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* -- 5. PORTFOLIO SECTION -- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.2) 0%, rgba(10, 25, 47, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.portfolio-text {
    width: 100%;
}

.portfolio-text span,
.portfolio-text h3 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    color: var(--bright-white);
}

.portfolio-text span {
    display: block;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--neon-cyan);
    margin-bottom: 5px;
    transition-delay: 0.1s;
    transform: translateY(-20px);
}

.portfolio-text h3 {
    font-size: 1.5rem;
    line-height: 1.2;
    transition-delay: 0.2s;
}

/* -- EFEK HOVER -- */
.portfolio-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.6);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-text span,
.portfolio-item:hover .portfolio-text h3 {
    opacity: 1;
    transform: translateY(0);
}

/* -- 6. TESTIMONIALS SECTION (REVISED) -- */
#testimonials {
    overflow: hidden;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.testimonial-slide.prev {
    transform: translateX(100%);
}

.testimonial-slide.next {
    transform: translateX(-100%);
}

blockquote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--bright-white);
    margin-bottom: 20px;
    border-left: 3px solid var(--neon-cyan);
    padding-left: 20px;
}

cite {
    font-weight: 600;
}

/* -- 7. FINAL CTA SECTION -- */
#final-cta {
    text-align: center;
    background-color: rgba(136, 146, 176, 0.05);
}

#final-cta h2 {
    font-size: 2.2rem;
}

#final-cta p {
    margin-bottom: 30px;
}

.pulse {
    animation: pulse 2s infinite;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 50px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(100, 255, 218, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
    }
}


/* -- 8. FOOTER -- */
footer {
    padding: 40px 10%;
    border-top: 1px solid rgba(136, 146, 176, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    margin-top: 10px;
    font-size: 0.9rem;
}

.footer-right a {
    color: var(--slate-silver);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: var(--neon-cyan);
}


/* -- 9. RESPONSIVE DESIGN -- */
@media (max-width: 768px) {
    section {
        padding: 80px 5%;
    }
    
    #main-header {
        padding: 20px 5%;
    }

    .nav-links, .cta-button {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-image-container {
        max-width: 300px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        margin-top: 20px;
    }
    .footer-right a {
        margin: 0 10px;
    }
}

/* -- 10. LANGUAGE POPUP & SWITCHER [BARU] -- */
#lang-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.lang-popup-box {
    background-color: var(--deep-space-blue);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(136, 146, 176, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.lang-popup-box h3 {
    margin-bottom: 30px;
    color: var(--bright-white);
}

.lang-options button {
    background: none;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 12px 25px;
    margin: 0 10px;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.lang-options button:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}

#lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slate-silver);
    cursor: pointer;
    transition: color 0.3s ease;
}

#lang-switcher:hover {
    color: var(--neon-cyan);
}

#lang-switcher span {
    font-family: var(--font-heading);
    font-weight: 600;
}

.hidden {
    display: none !important;
}