/* Reset & Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}

:root {
    --bg-color: #0f0f0f;
    --text-color: #ffffff;
    --accent-color: #6c5ce7; /* Warna ungu modern */
    --secondary-accent: #00cec9; /* Warna cyan */
    --grey: #2d3436;
    --light-grey: #b2bec3;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--text-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor2 {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999;
    transition: all 0.15s ease;
    transform: translate(-50%, -50%);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 3rem;
}

/* Music Button */
.music-control {
    margin-left: 2rem;
    display: flex;
    align-items: center;
}

.music-btn {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.music-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    z-index: 2;
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.headline {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.outline-text {
    -webkit-text-stroke: 2px var(--text-color);
    color: transparent;
}

.highlight {
    color: var(--accent-color);
}

.sub-headline {
    font-size: 1.2rem;
    color: var(--light-grey);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    padding: 1rem 2.5rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.3s ease, background 0.3s;
    display: inline-block;
    border: 2px solid var(--text-color);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid var(--text-color);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-5px);
}

.hero-visual {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 450px;
    height: 450px; /* Sedikit diperbesar */
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle {
    position: absolute; /* Pastikan posisi absolute agar di belakang gambar */
    width: 350px;
    height: 350px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-accent));
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
    z-index: -1; /* Di belakang gambar */
}

.image-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Bentuk organik (blob shape) */
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    animation: morph 8s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-wrapper:hover .profile-img {
    transform: scale(1.1);
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40%/50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; }
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
    100% { transform: translateY(0px) scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Marquee Section */
.marquee-container {
    background: var(--accent-color);
    color: var(--text-color);
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    transform: rotate(-2deg) scale(1.05); /* Skew slightly */
    margin: 4rem 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.marquee-content span {
    margin: 0 2rem;
}

.dot {
    color: var(--bg-color);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Services Section */
.services {
    padding: 8rem 10%;
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.service-card {
    background: rgba(45, 52, 54, 0.4);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    cursor: default;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px -10px rgba(108, 92, 231, 0.3);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--light-grey);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 8rem 10%;
    background-color: #141414;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--light-grey);
    margin-bottom: 2rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--grey);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.skill-tag:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent-color);
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--light-grey);
}

/* Portfolio Section */
.portfolio {
    padding: 8rem 10%;
}

.filter-buttons {
    margin-bottom: 3rem;
    display: flex;
    gap: 2rem;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--light-grey);
    font-size: 1.1rem;
    cursor: pointer;
    padding-bottom: 0.5rem;
    transition: color 0.3s;
    font-family: 'Space Grotesk', sans-serif;
}

.filter-btn.active, .filter-btn:hover {
    color: var(--text-color);
    border-bottom: 2px solid var(--accent-color);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    transition: transform 0.5s ease;
}

.gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-2 { background: linear-gradient(135deg, #2af598 0%, #009efd 100%); }
.gradient-3 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); }
.gradient-4 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }

.gallery-item:hover .image-placeholder {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    transition: bottom 0.3s ease;
}

.gallery-item:hover .overlay {
    bottom: 0;
}

.overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.overlay p {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials {
    padding: 8rem 10%;
    background-color: #141414;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #0f0f0f;
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
    position: relative;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--light-grey);
}

.testimonial-card p::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
}

.client-info h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.client-info span {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 8rem 10%;
    background-color: #141414;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-top: 3rem;
}

.detail {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.detail i {
    color: var(--accent-color);
    margin-right: 1.5rem;
    font-size: 1.2rem;
}

.socials {
    margin-top: 3rem;
}

.socials a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-right: 1.5rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--accent-color);
}

.contact-form {
    background: #0f0f0f;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid #333;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

.input-group input, .input-group textarea, .input-group select {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--text-color);
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    outline: none;
    transition: border-bottom-color 0.3s;
}

.input-group select {
    cursor: pointer;
    appearance: none;
}

.input-group select option {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 10px;
}

.select-icon {
    position: absolute;
    right: 0;
    top: 10px;
    pointer-events: none;
    color: var(--light-grey);
}

.input-group textarea {
    height: 100px;
    resize: none;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--light-grey);
    pointer-events: none;
    transition: 0.3s ease all;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.input-group input:focus, .input-group textarea:focus {
    border-bottom-color: var(--accent-color);
}

footer {
    padding: 2rem;
    text-align: center;
    background-color: var(--bg-color);
    border-top: 1px solid #222;
    color: var(--light-grey);
}

/* Responsive */
@media (max-width: 900px) {
    .headline { font-size: 3rem; }
    
    .hero { 
        flex-direction: column-reverse; /* Foto di atas, teks di bawah */
        justify-content: center; 
        text-align: center;
        padding-top: 8rem; /* Ruang untuk navbar */
        height: auto; /* Biarkan tinggi menyesuaikan konten */
        min-height: 100vh;
        gap: 2rem;
    }

    .hero-visual { 
        display: flex; /* Tampilkan kembali */
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 280px;
        height: 280px;
        margin: 0 auto; /* Tengah secara horizontal */
    }

    .image-wrapper, .circle {
        width: 100%;
        height: 100%;
    }

    .about-content, .contact-wrapper { grid-template-columns: 1fr; }
    
    .music-control {
        margin-left: auto;
        margin-right: 1.5rem;
    }

    /* Mobile Navigation */
    .burger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        transition: transform 0.5s ease-in-out;
        z-index: 999; /* Below burger layer */
    }

    .nav-links.nav-active {
        transform: translateY(0%);
    }

    .nav-links li {
        margin: 2rem 0;
        opacity: 0;
    }

    /* Burger Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--accent-color);
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: var(--light-grey);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-hero {
    width: 100%;
    height: 300px; /* Adjust height */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #2d3436 0%, #000000 100%); /* Placeholder bg */
}

/* Dynamic Gradients for Modal Placeholder to match grid */
.gradient-1.modal-hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-2.modal-hero { background: linear-gradient(135deg, #2af598 0%, #009efd 100%); }
.gradient-3.modal-hero { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%); }
.gradient-4.modal-hero { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }

.modal-tags {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid var(--accent-color);
    padding: 0.2rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.modal-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
}

.modal-body p {
    color: var(--light-grey);
    line-height: 1.8;
}

.modal-btn {
    margin-top: 3rem;
    width: 100%;
    text-align: center;
}
