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

:root {
    --text-color: white;
    --bg-overlay: rgba(0, 0, 0, 0.6);
    --nav-bg: rgba(26, 26, 26, 0.9);
    --nav-scrolled-bg: rgba(20, 20, 20, 0.95);
    --nav-text: white;
    --card-bg: rgba(0, 0, 0, 0.5);
    --card-border: rgba(255, 255, 255, 0.2);
    --footer-text: rgba(255, 255, 255, 0.7);
    --filter-btn-border: #fff;
    --filter-btn-color: #fff;
    --logo-color: #fff;
}

body.light-mode {
    --text-color: #333;
    --bg-overlay: rgba(255, 255, 255, 0.85);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-scrolled-bg: rgba(240, 240, 240, 0.95);
    --nav-text: #333;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(0, 0, 0, 0.1);
    --footer-text: rgba(0, 0, 0, 0.7);
    --filter-btn-border: #333;
    --filter-btn-color: #333;
    --logo-color: #f44336;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background: #1a1a1a url('https://images.unsplash.com/photo-1497294815431-9365093b7331?q=60&w=1920&auto=format&fit=crop') no-repeat center center;
    background-size: contain; /* Ubah ke 'contain' agar gambar utuh, atau gunakan persentase (misal: 80%) */
    text-align: center;
    overflow-y: auto;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-overlay);
    z-index: 1;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #f44336;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.container {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    z-index: 100;
    box-shadow: none;
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    transition: padding 0.3s ease;
}

.nav-logo {
    color: var(--logo-color);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    transition: font-size 0.3s ease, color 0.3s ease;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: #f44336;
}

/* Gaya Navigasi Saat di-scroll */
.main-nav.scrolled {
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.main-nav.scrolled .container {
    padding-top: 5px;
    padding-bottom: 5px;
}
.main-nav.scrolled .nav-logo {
    font-size: 1.3rem;
}

/* Hamburger Menu Style */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--nav-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

/* Tombol Toggle Tema */
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 20px;
    transition: transform 0.3s ease;
    padding: 0;
}

/* Animasi Rotasi Tombol Tema */
.rotate-theme {
    animation: rotateTheme 0.5s ease-in-out;
}

@keyframes rotateTheme {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Efek Ripple Transisi Tema */
.theme-ripple {
    position: fixed;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998; /* Di atas segalanya kecuali preloader */
    width: 0;
    height: 0;
    transition: width 0.6s ease-in, height 0.6s ease-in, opacity 0.3s ease-out;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Cursor untuk efek mengetik */
header h1.typing::after {
    content: '|';
    display: inline-block;
    margin-left: 0.2rem;
    color: #f44336;
    animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
	from, to { opacity: 1 }
	50% { opacity: 0 }
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

header {
    position: relative; /* Diperlukan untuk positioning #particles-js */
    overflow: hidden; /* Mencegah partikel meluap */
    padding-top: 120px; /* Space for fixed nav + extra */
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header h1, header p {
    position: relative;
    z-index: 2; /* Memastikan teks berada di atas partikel */
}

header p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

section {
    padding: 60px 0;
    scroll-margin-top: 70px; /* Height of the nav bar */
}

/* Gaya Judul Bagian yang Elegan & Konsisten */
section h2 {
    font-size: 2.2rem;
    margin-bottom: 45px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #f44336;
    border-radius: 2px;
}

.service-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f44336, #ff9800);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(244, 67, 54, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: #ffffff;
    transition: transform 0.3s ease;
}
/* Dukungan untuk Logo Gambar (PNG/SVG) */
.service-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Membuat logo hitam menjadi putih */
}
.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    width: 250px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delays for Service Cards */
/* Format: opacity, transform, box-shadow, border-color (0s agar hover tetap responsif) */
.service-card:nth-child(1) { transition-delay: 0.1s, 0.1s, 0s, 0s; }
.service-card:nth-child(2) { transition-delay: 0.2s, 0.2s, 0s, 0s; }
.service-card:nth-child(3) { transition-delay: 0.3s, 0.3s, 0s, 0s; }
.service-card:nth-child(4) { transition-delay: 0.4s, 0.4s, 0s, 0s; }

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(244, 67, 54, 0.2);
    border-color: transparent;
}

/* Gradient Border Effect */
.service-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 10px;
    padding: 1px; /* Ketebalan border gradasi */
    background: linear-gradient(45deg, #f44336, #ff9800);
    -webkit-mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.service-card:hover .service-icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(244, 67, 54, 0.5);
    animation: bounceIcon 1s infinite;
}

@keyframes bounceIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}


.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
    transition: color 0.3s ease;
}
.service-card:hover h3 {
    color: #f44336;
}
.service-card p {
    font-size: 1rem;
    line-height: 1.6;
}

.portfolio-filters {
    margin-bottom: 30px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--filter-btn-border);
    color: var(--filter-btn-color);
    padding: 10px 25px;
    margin: 5px;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn.active, .filter-btn:hover {
    background: #f44336;
    border-color: #f44336;
    color: #fff;
}

.portfolio-item.hide {
    display: none;
}

.portfolio-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative; /* Diperlukan untuk overlay */
    border-radius: 10px;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: #2c2c2c; /* Fallback background */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
    

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.portfolio-item:hover .portfolio-info {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.portfolio-item:hover img {
    filter: brightness(0.9);
}

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: filter 0.4s ease;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
    box-sizing: border-box;
    text-align: left;
    padding: 15px;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin: 0 0 5px 0;
    color: #f44336;
}

.portfolio-info p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.testimonial-slider-container {
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}
.testimonial-items {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    width: 100%; /* Mengisi lebar container */
    text-align: left;
    flex-shrink: 0; /* Mencegah item menyusut */
    box-sizing: border-box; /* Memastikan padding termasuk dalam width 100% */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.testimonial-item p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-item h4 {
    font-size: 1rem;
    font-weight: bold;
    text-align: right;
    color: #f44336;
}

.testimonial-rating {
    text-align: right;
    margin-top: 5px;
}

.testimonial-rating span {
    color: #FFD700;
    font-size: 1.2rem;
    display: inline-block;
    opacity: 0;
    transform: scale(0);
    animation: starPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.testimonial-rating span:nth-child(1) { animation-delay: 0.1s; }
.testimonial-rating span:nth-child(2) { animation-delay: 0.2s; }
.testimonial-rating span:nth-child(3) { animation-delay: 0.3s; }
.testimonial-rating span:nth-child(4) { animation-delay: 0.4s; }
.testimonial-rating span:nth-child(5) { animation-delay: 0.5s; }

@keyframes starPop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.newsletter h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

#subscribe-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-direction: column; /* Ubah menjadi vertikal agar rapi */
    align-items: center;
}

#email {
    padding: 15px 15px 15px 45px;
    border-radius: 10px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat 15px center;
    color: #333;
    font-size: 1rem;
    width: 300px;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

#message {
    padding: 15px;
    border-radius: 10px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 1rem;
    width: 300px;
    max-width: 100%;
    box-sizing: border-box;
    font-family: inherit; /* Agar font sama dengan input lain */
    resize: vertical; /* Izinkan resize vertikal saja */
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Efek Fokus Modern */
#email:focus, #message:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #f44336;
    box-shadow: 0 0 0 4px rgba(244, 67, 54, 0.1);
    transform: translateY(-2px);
}

/* Validasi Real-time: Tanda Centang Hijau */
#email.valid, #message.valid {
    border-color: #4CAF50;
    padding-right: 45px; /* Ruang untuk ikon centang */
}

#email.valid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234CAF50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: 15px center, right 15px center;
    background-repeat: no-repeat;
}

#message.valid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234CAF50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: right 15px top 15px;
    background-repeat: no-repeat;
}

/* Animasi Shake untuk Input Invalid */
.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #f44336 !important; /* Paksa warna merah */
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

#email::placeholder {
    color: #888;
}

button[type="submit"] {
    padding: 15px 30px;
    border-radius: 5px;
    border: none;
    background-color: #f44336;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #d32f2f;
}

#response-message {
    margin-top: 15px;
    font-weight: bold;
}

footer {
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--footer-text);
}

/* Mencegah body scroll saat modal terbuka */
body.modal-open {
    overflow: hidden;
}

/* --- Gaya Modal --- */
.modal {
    display: none; /* Sembunyikan secara default */
    position: fixed; /* Tetap di posisi */
    z-index: 1000; /* Tampil di atas segalanya */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Aktifkan scroll jika gambar besar */
    background-color: rgba(0,0,0,0.9);
    /* Gunakan flexbox untuk memusatkan gambar */
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    /* Animasi zoom */
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* --- Tombol Kembali ke Atas --- */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #f44336;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.5s ease;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: #d32f2f;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    .main-nav .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: block;
    }

    .main-nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        transition: right 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .main-nav ul.active {
        right: 0;
        justify-content: center;
    }

    .main-nav ul li {
        width: 80%;
        border-bottom: 1px solid var(--card-border);
        text-align: center;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    /* Perbaikan Tampilan Item Menu Mobile */
    .main-nav ul li a {
        font-size: 1.5rem; /* Memperbesar ukuran font agar mudah dibaca */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px 0; /* Menambah area sentuh dan jarak border */
    }

    /* Ikon Menu Mobile */
    .main-nav ul li a::before {
        content: '';
        width: 24px;
        height: 24px;
        margin-right: 15px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .main-nav ul li:nth-child(1) a::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f44336' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'%3E%3C/path%3E%3C/svg%3E");
    }
    .main-nav ul li:nth-child(2) a::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f44336' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'%3E%3C/path%3E%3C/svg%3E");
    }
    .main-nav ul li:nth-child(3) a::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f44336' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E");
    }
    .main-nav ul li:nth-child(4) a::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f44336' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
    }

    /* Animasi Fade In untuk Item Menu */
    .main-nav ul.active li {
        opacity: 0;
        animation: navLinkFade 0.5s ease forwards;
    }

    .main-nav ul.active li:nth-child(1) { animation-delay: 0.1s; }
    .main-nav ul.active li:nth-child(2) { animation-delay: 0.2s; }
    .main-nav ul.active li:nth-child(3) { animation-delay: 0.3s; }
    .main-nav ul.active li:nth-child(4) { animation-delay: 0.4s; }
    .main-nav ul.active li:nth-child(5) { animation-delay: 0.5s; }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    header p {
        font-size: 1rem;
    }
    #subscribe-form {
        flex-direction: column;
        align-items: center;
    }
    #email, #message {
        width: 100%;
    }
}

@media (max-width: 360px) {
    header h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    header p {
        font-size: 0.9rem;
    }
}