/* --- Global Styles & Reset --- */
:root {
    --primary-color: #f7b733;
    --dark-text: #111;
    --medium-text: #333;
    --light-bg: #f8f8f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: var(--light-bg);
    color: var(--dark-text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

section {
    padding: 80px 20px;
    position: relative; /* Needed for child absolute positioning */
}

/* --- Navigation Bar --- */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    width: auto;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    padding: 8px 14px;
    border-radius: 10px;
    color: #222;
    transition: 0.3s ease;
    font-weight: 700;
    font-size: 1rem;
}

nav a.active {
    background: var(--primary-color);
    color: var(--dark-text);
    box-shadow: 0 3px 8px rgba(247, 183, 51, 0.5);
}

nav a:hover:not(.active) {
    background: #eee;
}

/* Hamburger Menu Styles */
.nav-toggle {
    display: none; /* Sembunyikan di desktop */
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 3px;
    background: var(--dark-text);
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: currentColor;
    border-radius: 3px;
    transition: top 0.3s ease, transform 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }


/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0 20px;
}

.logo-swarna-top {
    position: absolute;
    top: 30px;
    left: 40px;
    height: 50px;
    z-index: 20;
}

.hero-text-content {
    position: relative;
    z-index: 10;
    text-align: left;
    max-width: 1100px;
    width: 100%;
    padding-left: 15%;
}

.hero-text-content h2 {
    font-weight: 500;
    font-size: 1.8rem;
    margin-bottom: -15px;
    color: var(--medium-text);
}

.hero-text-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 5px;
}

.hero-text-content p {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--medium-text);
    margin-bottom: 25px;
}

.btn-start {
    background: var(--primary-color);
    color: var(--dark-text);
    font-weight: 700;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(247, 183, 51, 0.4);
    transition: all 0.3s ease;
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(247, 183, 51, 0.5);
}

.hero-object {
    position: absolute;
    animation: float-complex 8s ease-in-out infinite;
    cursor: grab;
    user-select: none;
}

.hero-object.is-dragging {
    animation-play-state: paused;
    cursor: grabbing;
    z-index: 1000;
}

.logo-vscode { top: 20%; left: 10%; width: 80px; z-index: 5; animation-delay: 0s; }
.logo-photoshop { top: 20%; right: 30%; width: 90px; z-index: 5; filter: blur(1.5px); animation-delay: 1s; }
.logo-ig { top: 25%; left: 40%; transform: translateX(-50%); width: 80px; z-index: 5; filter: blur(1px); animation-delay: 2s; }
.logo-figma { bottom: 10%; left: 35%; width: 60px; z-index: 5; animation-delay: 3s; }
.logo-ai { bottom: 30%; right: 30%; width: 90px; z-index: 5; animation-delay: 0.5s; }

.obj-keyboard { bottom: 10%; left: -20%; height: 500px; transform: rotate(-15deg); z-index: 8; animation-delay: 1.5s; }
.obj-camera { top: 0%; right: -9%; height: 300px; z-index: 8; transform: translateY(200px); animation-delay: 2.5s; }
.obj-glasses { bottom: 0%; right: 0%; height: 250px; z-index: 8; transform: rotate(-5deg); animation-delay: 3.5s; }

@keyframes float-complex {
    0% { transform: translateY(0px) rotate(-3deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(-3deg); }
}

/* --- About Section --- */
.about-section {
    background: #f7a600;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    overflow: hidden;
}

.about-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
    flex-wrap: wrap;
}

.about-header .header-text {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: right;
}

.about-header .separator {
    width: 4px;
    height: 100px;
    background: #fff;
    border-radius: 2px;
}

.about-header .sub-header-stack p {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}

.chat-window {
    background-color: #ffd147;
    border-radius: 20px;
    padding: 15px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
}

.chat-header .left-controls { display: flex; align-items: center; gap: 15px; }
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 12px; height: 12px; border-radius: 50%; }
.window-dots span:nth-child(1) { background: #ff5f56; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #27c93f; }

.user-info { display: flex; align-items: center; gap: 8px; color: #333; font-weight: 700; }
.user-info .avatar { width: 32px; height: 32px; border-radius: 50%; }

.chat-header .right-controls { display: flex; gap: 15px; }
.right-controls svg { width: 24px; height: 24px; color: #333; opacity: 0.8; }

.chat-body {
    padding: 20px 5px;
    display: flex;
    flex-direction: column;
    gap: 100px;
    font-family: 'Poppins', sans-serif;
}

.message-container { display: flex; max-width: 80%; position: relative; }
.message-container.swarna { align-self: flex-start; }
.message-container.user { align-self: flex-end; }

.message-bubble {
    padding: 15px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-text);
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.message-container.swarna .message-bubble { border-bottom-left-radius: 5px; }
.message-container.user .message-bubble { border-bottom-right-radius: 5px; }

.bubble-reaction {
    position: absolute;
    bottom: -15px;
    font-size: 1.2rem;
    background: #ffbd2e;
    padding: 2px 8px;
    border-radius: 20px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    user-select: none;
}
.message-container.swarna .bubble-reaction { left: 15px; }
.message-container.user .bubble-reaction { right: 15px; }

.about-section::before,
.about-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.15);
    z-index: 0;
}
.about-section::before { width: 500px; height: 500px; top: -150px; left: -150px; }
.about-section::after { width: 350px; height: 350px; bottom: -100px; right: -100px; }

/* --- Services Section (Glassmorphism) --- */
#services-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(236, 178, 17) 100%, rgba(255, 255, 255, 0.908) 50%);
    filter: blur(20px);
}
.circle-1 { width: 25vw; height: 25vw; top: -15vh; left: -12vw; opacity: 0.8; }
.circle-2 { width: 35vw; height: 35vw; top: -20vh; right: -18vw; opacity: 0.6; }
.circle-3 { width: 22vw; height: 22vw; top: 60vh; right: 2vw; opacity: 0.9; }
.circle-4 { width: 24vw; height: 24vw; bottom: -15vh; left: 5vw; }
.circle-5 { width: 20vw; height: 20vw; bottom: -2vh; left: 40vw; opacity: 0.7; }
.circle-6 { width: 18vw; height: 18vw; bottom: 15vh; right: 25vw; opacity: 0.5; }

section.services-section {
    padding: 40px 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--light-bg);
}

.bg-text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(4rem, 14vw, 12rem);
    color: rgba(247, 178, 25, 1); 
    font-weight: 0;
    user-select: none;
    position: absolute;
    top: 5%; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 1; 
    white-space: nowrap;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2; 
    position: relative;
    flex-wrap: wrap;
    padding-top: 200px; 
}

.services-section .service-card {
    background: rgba(228, 170, 70, 0.474); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    width: 100%;
    max-width: 350px;
    flex: 1 1 320px;
    padding: 35px 30px 40px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.services-section .service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.services-section .service-card h2 { color: #2c2c2c; font-size: 26px; font-weight: 700; margin-bottom: 8px; font-family: 'Poppins', sans-serif;}
.services-section .service-card .title-line { color: #F7B219; font-weight: 900; margin-right: 8px; }
.services-section .service-card .description { font-size: 15px; font-weight: 400; margin-bottom: 20px; color: #444; line-height: 1.5; min-height: 45px; }
.services-section .service-card .price-label { color: #333; font-weight: 600; font-size: 14px; }
.services-section .service-card .price { font-size: 38px; font-weight: 900; color: #F7B219; margin-bottom: 25px; }
.features-list { list-style: none; color: #333; font-size: 15px; flex-grow: 1;}
.feature-item { margin-bottom: 15px; display: flex; align-items: center; font-weight: 600; }
.checkmark { background: #F7B219; border-radius: 50%; color: white; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 14px; margin-right: 12px; font-weight: bold; flex-shrink: 0; }

.services-section .contact-btn {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #FFD15B, #F7B219);
    border: none;
    padding: 14px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(247, 178, 25, 0.5);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.services-section .contact-btn:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 8px 25px rgba(247, 178, 25, 0.6);
}

/* --- Combined Gallery and Footer --- */
.gallery-footer-wrapper {
     background: linear-gradient(135deg, #ff9500 0%, #ffb347 50%, #ffa500 100%);
}

/* --- Gallery Section --- */
.gallery-section {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 80px;
}

.gallery-section .title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.gallery-section .title span {
    font-weight: 300;
}

.projects-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    text-align: left;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.project-card.large {
    width: 340px;
}

.project-card.medium {
    width: 300px;
    margin-top: 2rem;
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.project-card.large .project-image {
    height: 300px;
}

.project-card .project-title {
    padding: 1.5rem;
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.project-card.large .project-title {
    font-size: 1.6rem;
    padding: 2rem 1.5rem;
}

/* --- Footer --- */
footer {
    padding: 50px 20px 30px;
    text-align: center;
}

.branding .logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 300;
    color: white;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: #ff9500;
}

footer .copyright {
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}


/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .hero-text-content { padding-left: 5%; }
    .hero-text-content h1 { font-size: 4rem; }
    .hero-text-content h2 { font-size: 1.5rem; }
    .obj-keyboard, .obj-camera, .obj-glasses { display: none; }
    
    .projects-container {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .project-card.medium {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    body {
        /* Tambahkan padding agar konten tidak tertutup navbar */
        padding-top: 60px;
    }

    /* Mobile Navigation Styles */
    nav {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        border-radius: 0;
        padding: 0.5rem 1rem;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        min-height: 60px;
    }

    .nav-toggle {
        display: block;
        position: static;
        transform: none;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; /* Posisi dropdown tepat di bawah navbar */
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        padding: 1em 0;
    }

    nav.nav--open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    
    nav.nav--open .nav-links a {
        width: 100%;
        text-align: center;
        padding: 1em;
        border-radius: 0;
    }
    
    nav.nav--open .hamburger {
        transform: rotate(0.625turn); /* Ubah menjadi 'X' */
    }

    nav.nav--open .hamburger::before {
        top: 0;
        transform: rotate(225deg);
    }

    nav.nav--open .hamburger::after {
        top: 0;
        transform: rotate(-225deg);
    }

    /* -- PERBAIKAN: Services Section Mobile -- */
    .bg-text {
        position: relative; /* Mengubah dari absolute ke relative */
        top: auto;
        left: auto;
        transform: none; /* Menghapus transform */
        font-size: 3rem; /* Menyesuaikan ukuran font */
        text-align: center;
        margin-bottom: 2rem; /* Memberi jarak ke bawah */
        white-space: normal; /* Memungkinkan teks untuk wrap */
        color: rgba(247, 178, 25, 1); 
        z-index: 2; /* Memastikan di atas lingkaran bg */
    }

    .services-container {
        padding-top: 20px; /* Mengurangi padding atas */
    }


    /* Other mobile styles */
    .logo-swarna-top {
        top: 80px; /* Posisikan logo di bawah navbar baru */
        left: 20px;
    }

    .hero { text-align: center; }
    .hero-text-content { padding-left: 0; text-align: center;}
    
    .about-header { flex-direction: column; gap: 20px; }
    .about-header .separator { display: none; }
    .about-header .header-text, .about-header .sub-header-stack p { text-align: center; }
    .about-header .header-text { font-size: 2rem; }
    .about-header .sub-header-stack p { font-size: 1.2rem; }
    .message-container { max-width: 90%; }
    
    .services-section .service-card {
        margin-bottom: 50px;
    }

    .gallery-section .title {
        font-size: 2rem;
    }
    .project-card.large,
    .project-card.medium {
        width: 100%;
        max-width: 350px;
    }
    .branding .logo {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text-content h1 { font-size: 3rem; }
    .hero-text-content h2 { font-size: 1.4rem; }
    .hero-text-content p { font-size: 1.1rem; }
    .message-bubble { font-size: 0.9rem; }
}
