:root[data-theme="dark"] {
    --bg-color: #0b1121;
    --bg-secondary: #151e32;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --gradient-text: linear-gradient(90deg, #3b82f6, #8b5cf6);
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] {
    --bg-color: #f8fafc;
    --bg-secondary: #e2e8f0;
    --text-color: #0f172a;
    --text-muted: #475569;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --gradient-text: linear-gradient(90deg, #2563eb, #7c3aed);
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body.no-scroll { overflow: hidden; }

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

/* --- STREAMING_CHUNK:Styling Splash Screen dan Orbs Latar Belakang --- */
#splash-screen {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    background-color: var(--bg-color); z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.splash-content { text-align: center; }
.splash-logo {
    font-size: 3.5rem; color: var(--text-color); font-weight: 800;
    margin-bottom: 20px; animation: pulseLogo 1.5s infinite alternate;
}
.splash-logo span { color: var(--primary-color); }
.splash-loader {
    width: 200px; height: 4px; background: var(--bg-secondary);
    border-radius: 10px; overflow: hidden; position: relative; margin: 0 auto;
}
.splash-loader::after {
    content: ''; position: absolute; left: -50%; top: 0; height: 100%; width: 50%;
    background: var(--primary-color); border-radius: 10px;
    animation: slideLoader 1.5s infinite ease-in-out;
}

@keyframes pulseLogo { 0% { transform: scale(0.95); opacity: 0.8; } 100% { transform: scale(1.05); opacity: 1; } }
@keyframes slideLoader { 100% { left: 100%; } }
.hide-splash { opacity: 0; visibility: hidden; }

.glow-orb {
    position: fixed; border-radius: 50%; filter: blur(80px);
    z-index: -1; opacity: 0.5; animation: floatOrb 10s infinite alternate ease-in-out;
}
.orb-1 { width: 300px; height: 300px; background: rgba(59, 130, 246, 0.4); top: -10%; left: -10%; }
.orb-2 { width: 400px; height: 400px; background: rgba(139, 92, 246, 0.3); bottom: -10%; right: -10%; animation-delay: 2s; }

@keyframes floatOrb { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 50px) scale(1.2); } }
.gradient-text { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }

/* --- STREAMING_CHUNK:Styling Header dan Navbar --- */
.header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 20px 8%;
    background: rgba(var(--bg-color), 0.8); backdrop-filter: blur(15px);
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100; border-bottom: 1px solid var(--border-color);
}
.logo { font-size: 25px; color: var(--text-color); text-decoration: none; font-weight: 800; }
.logo span { color: var(--primary-color); }
.navbar { display: flex; align-items: center; gap: 35px; }
.navbar a { font-size: 16px; color: var(--text-color); text-decoration: none; font-weight: 500; transition: 0.3s; }
.navbar a:hover { color: var(--primary-color); }
.controls { display: flex; align-items: center; gap: 15px; }
.controls button {
    background: none; border: none; color: var(--text-color);
    font-size: 18px; cursor: pointer; transition: 0.3s; font-weight: 700;
}
.controls button:hover { color: var(--primary-color); }
#menu-icon { font-size: 24px; display: none; cursor: pointer; }

section { min-height: 100vh; padding: 100px 8% 60px; position: relative; }
section:not(:last-of-type)::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 70%; height: 2px; background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.6; box-shadow: 0 0 15px var(--primary-color); border-radius: 50%;
}

/* --- STREAMING_CHUNK:Styling Home Section --- */
.home { display: flex; align-items: center; justify-content: center; gap: 50px; position: relative; }
.home-content { flex: 1; }
.home-content h3 { font-size: 32px; font-weight: 700; }
.home-content h1 { font-size: 56px; font-weight: 800; line-height: 1.2; margin: 10px 0; }
.home-content p { font-size: 16px; color: var(--text-muted); margin: 20px 0 30px; line-height: 1.6; }
.btn {
    display: inline-block; padding: 12px 28px; background: var(--primary-color);
    border-radius: 40px; font-size: 16px; color: #fff; text-decoration: none;
    font-weight: 600; box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); transition: 0.3s ease; border: none; cursor: pointer;
}
.btn:hover { background: var(--primary-hover); transform: scale(1.05); box-shadow: 0 0 25px rgba(59, 130, 246, 0.6); }

.social-icons { margin-top: 30px; display: flex; gap: 15px; }
.social-icons a {
    display: inline-flex; justify-content: center; align-items: center;
    width: 45px; height: 45px; background: transparent; border: 2px solid var(--primary-color);
    border-radius: 50%; font-size: 20px; color: var(--primary-color); text-decoration: none; transition: 0.3s;
}
.social-icons a:hover {
    background: var(--primary-color); color: #fff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); transform: translateY(-3px);
}

.home-img { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; }
.home-img img {
    width: 80%; max-width: 400px; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3); animation: floatImage 4s ease-in-out infinite; z-index: 2;
}
@keyframes floatImage { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* --- STREAMING_CHUNK:Styling Marquee Animasi --- */
.marquee-wrapper {
    background: rgba(var(--bg-secondary), 0.5); padding: 30px 0; overflow: hidden;
    display: flex; position: relative; border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color); backdrop-filter: blur(5px);
}
.marquee-track { display: flex; width: max-content; animation: scrollMarquee 30s linear infinite; }
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 80px; padding-right: 80px; }
.marquee-group i, .marquee-group span.text-icon {
    font-size: 60px; color: var(--text-muted); transition: all 0.3s ease; cursor: pointer; margin: 0;
}
.marquee-group span.text-icon { font-weight: 800; }
.marquee-group i:hover, .marquee-group span.text-icon:hover {
    color: var(--primary-color); transform: scale(1.3); text-shadow: 0 0 25px var(--primary-color);
}
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- STREAMING_CHUNK:Styling About, Services, Portfolio --- */
.heading { text-align: center; font-size: 45px; margin-bottom: 50px; }
.heading span { color: var(--primary-color); }
.about { display: flex; align-items: center; gap: 50px; }
.about-img { flex: 1; }
.about-img img { width: 100%; border-radius: 20px; }
.about-content { flex: 1; }
.about-content h2 { text-align: left; margin-bottom: 20px; }
.about-content p { font-size: 16px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }

.services-container, .portfolio-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.box {
    background: var(--card-bg); padding: 40px 30px; border-radius: 20px; text-align: center;
    border: 1px solid var(--border-color); transition: 0.4s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.box:hover { transform: translateY(-10px); border-color: var(--primary-color); box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2); }
.box i { font-size: 50px; color: var(--primary-color); margin-bottom: 20px; }
.box h3 { font-size: 24px; margin-bottom: 15px; color: var(--text-color); }
.box p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

.portfolio-card { text-decoration: none; display: block; cursor: pointer; }
.portfolio-card:active { transform: scale(0.92); box-shadow: 0 2px 10px rgba(59, 130, 246, 0.6); border-color: var(--primary-color); }
.portfolio-img { width: 100%; height: 200px; border-radius: 10px; background: var(--bg-secondary); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease; }
.portfolio-card:hover .portfolio-img img { transform: scale(1.1); }
.portfolio-card h3 { transition: 0.3s; margin-top: 10px; }
.portfolio-card:hover h3 { color: var(--primary-color); }

/* --- STREAMING_CHUNK:Styling Contact dan Footer --- */
.contact form { max-width: 700px; margin: 0 auto; text-align: center; }
.input-box { display: flex; justify-content: space-between; flex-wrap: wrap; margin-bottom: 15px; }
.input-box input { width: 48%; padding: 15px; font-size: 16px; color: var(--text-color); background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px; outline: none; transition: 0.3s; }
.contact form textarea { width: 100%; padding: 15px; font-size: 16px; color: var(--text-color); background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px; margin-bottom: 15px; outline: none; transition: 0.3s; resize: none; height: 200px; }
.input-box input:focus, .contact form textarea:focus { border-color: var(--primary-color); }
.contact form .btn { cursor: pointer; border: none; margin-top: 10px; }

.footer { text-align: center; padding: 60px 8% 30px; background: linear-gradient(to bottom, transparent, rgba(var(--bg-color), 0.9) 30%); backdrop-filter: blur(10px); position: relative; z-index: 10; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 40px; }
.footer-content .logo { font-size: 35px; }
.footer-tagline { color: var(--text-muted); font-size: 16px; max-width: 500px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(148, 163, 184, 0.1); padding-top: 25px; color: var(--text-muted); font-size: 15px; }
.footer-bottom span { color: var(--primary-color); font-weight: 600; }

/* --- STREAMING_CHUNK:Styling Pop-up Keamanan CV (Modal) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.4s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-box {
    background: var(--bg-color); border: 1px solid var(--primary-color);
    border-radius: 20px; padding: 40px; width: 90%; max-width: 450px;
    text-align: center; box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    transform: translateY(-50px) scale(0.9); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }

.modal-box::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%; background: conic-gradient(transparent, transparent, transparent, var(--primary-color));
    animation: rotateBorder 4s linear infinite; z-index: 0; opacity: 0.2;
}
@keyframes rotateBorder { 100% { transform: rotate(360deg); } }

.modal-content-wrapper { position: relative; z-index: 1; background: var(--bg-color); padding: 20px; border-radius: 15px; }

.modal-close {
    position: absolute; top: 15px; right: 20px; font-size: 24px;
    color: var(--text-muted); cursor: pointer; transition: 0.3s; z-index: 2;
}
.modal-close:hover { color: #ef4444; transform: rotate(90deg); }

.modal-icon { font-size: 50px; color: var(--primary-color); margin-bottom: 20px; animation: pulseLogo 2s infinite alternate; }
.modal-title { font-size: 24px; font-weight: 700; margin-bottom: 10px; color: var(--text-color); }
.modal-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 25px; line-height: 1.5; }

.pin-input-group { position: relative; margin-bottom: 25px; }
.pin-input {
    width: 100%; padding: 15px; font-size: 20px; letter-spacing: 10px;
    text-align: center; color: var(--text-color); background: var(--bg-secondary);
    border: 2px solid var(--border-color); border-radius: 10px; outline: none; transition: 0.3s;
    font-weight: 700;
}
.pin-input:focus { border-color: var(--primary-color); box-shadow: 0 0 15px rgba(59, 130, 246, 0.3); }

.modal-btn { width: 100%; margin-bottom: 15px; }
.contact-link-btn {
    background: transparent; color: var(--text-muted); border: 1px solid var(--text-muted);
    box-shadow: none; font-size: 14px; padding: 10px 20px; width: 100%;
}
.contact-link-btn:hover { background: var(--bg-secondary); color: var(--text-color); transform: none; box-shadow: none; }

/* Animasi Error (Goncangan) */
.shake-error { animation: shake 0.5s; border-color: #ef4444 !important; color: #ef4444; }
@keyframes shake { 0%, 100% {transform: translateX(0);} 25% {transform: translateX(-10px);} 50% {transform: translateX(10px);} 75% {transform: translateX(-10px);} }

/* --- STREAMING_CHUNK:Styling Responsif HP --- */
@media (max-width: 991px) {
    .header { padding: 20px 5%; }
    section { padding: 140px 5% 50px; overflow-x: hidden; }
    .home { flex-direction: column-reverse; text-align: center; gap: 30px;}
    .home-content h1 { font-size: clamp(32px, 8vw, 40px); }
    .home-content h3 { font-size: clamp(20px, 5vw, 24px); }
    .heading { font-size: clamp(30px, 8vw, 38px); margin-bottom: 30px; }
    .social-icons { justify-content: center; }
    .about { flex-direction: column; }
    .about-content h2 { text-align: center; }
    .services-container, .portfolio-container { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    #menu-icon { display: block; }
    .navbar { 
        position: absolute; top: 100%; left: 0; width: 100%; padding: 10px 0; 
        background: var(--bg-color); border-bottom: 3px solid var(--primary-color); 
        flex-direction: column; gap: 5px; box-shadow: 0 15px 30px rgba(0,0,0,0.3); 
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: all 0.4s ease-in-out; display: flex; 
    }
    .navbar.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .navbar a { display: block; width: 100%; text-align: center; padding: 15px 0; font-size: 18px; transition: 0.3s; }
    .navbar a:hover { background: var(--bg-secondary); color: var(--primary-color); letter-spacing: 2px; }
    .marquee-group { gap: 50px; padding-right: 50px; }
    .marquee-group i, .marquee-group span.text-icon { font-size: 40px; margin: 0; }
    .input-box input { width: 100%; margin-bottom: 15px; }
    .input-box { margin-bottom: 0; }
}

/* Tambahan khusus untuk layar ponsel (1 Kolom) */
@media (max-width: 600px) {
    .services-container, .portfolio-container { grid-template-columns: 1fr; }
}