:root {
    --primary-bg: #1E1E1E; /* Abu-abu sangat gelap */
    --secondary-bg: #2D2D2D; /* Sedikit lebih terang untuk kontras */
    --accent-orange: #F9A826; /* Oranye dari logo */
    --accent-yellow: #FFC107; /* Kuning dari logo */
    --accent-blue: #3A506B; /* Biru dari seragam */
    --text-light: #F5F5F5;
    --text-dark: #333;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px; /* Atur tinggi logo sesuai kebutuhan Anda. Contoh: 40px atau 50px */
    width: auto;  /* Lebar akan menyesuaikan secara otomatis untuk menjaga rasio aspek */
    display: block; /* Menghilangkan spasi ekstra di bawah gambar jika ada */
    /* Jika Anda ingin batas maksimal lebar: */
    /* max-width: 150px; */
}

/* --- Hero Section --- */
.hero-section {
    min-height: 50vh;
    display: flex;
    flex-direction: column; /* Untuk menempatkan nav di atas konten */
    background-color: var(--primary-bg); /* Bisa ditambahkan gradien atau gambar background nanti */
    padding-bottom: 40px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-grow: 1; /* Membuat konten mengisi ruang yang tersedia */
    padding: 20px 0;
}

.hero-text {
    flex-basis: 55%;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-text h1 .highlight {
    color: var(--accent-orange);
}

.hero-text .subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #ccc; /* Sedikit lebih redup dari teks utama */
}

.shorten-form {
    display: flex;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden; /* Agar border-radius berlaku pada input dan button */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.shorten-form input[type="url"] {
    flex-grow: 1;
    padding: 15px;
    border: none;
    font-size: 1rem;
    background-color: #fff;
    color: var(--text-dark);
}

.shorten-form input[type="url"]::placeholder {
    color: #888;
}

.cta-button {
    padding: 15px 30px;
    background-color: var(--accent-orange);
    color: var(--primary-bg);
    border: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-yellow);
}

.hero-text .small-print {
    font-size: 0.9rem;
    color: #aaa;
}

.hero-visual {
    flex-basis: 40%;
    text-align: center; /* Pusatkan gambar jika lebih kecil */
}

.hero-image {
    max-width: 100%;
    border-radius: 50px;
    height: auto;
    /* Anda bisa memberi style lebih lanjut untuk gambar, misal filter atau shadow */
}

/* --- Result Display --- */
.result-display {
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    text-align: left;
    border: 1px solid #444;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.result-display.show {
    opacity: 1;
    transform: translateY(0);
}

.result-display p {
    margin-bottom: 12px;
    font-size: 1rem;
    word-break: break-all;
    line-height: 1.5;
    display: flex; /* Untuk alignment tombol salin */
    justify-content: space-between; /* Untuk alignment tombol salin */
    align-items: center; /* Untuk alignment tombol salin */
}

.result-display p:last-child {
    margin-bottom: 0;
}

.result-display strong {
    font-weight: 600;
    color: var(--text-light); /* Warna label standar */
    margin-right: 8px;
}

.result-display a {
    text-decoration: none;
    transition: color 0.2s ease;
    flex-grow: 1; /* Agar link mengisi ruang sebelum tombol salin */
    margin-right: 10px; /* Jarak antara link dan tombol salin */
}

.result-display a:hover {
    text-decoration: underline;
}

/* Warna spesifik untuk link asli */
.original-url-link {
    color: var(--text-grey-link); /* Warna abu-abu untuk link asli */
}
.original-url-link:hover {
    color: #bbbbbb; /* Warna hover sedikit lebih terang */
}

/* Warna spesifik untuk link pendek */
.shortened-url-link {
    color: var(--accent-yellow); /* Warna kuning untuk link pendek */
    font-weight: bold;
}
.shortened-url-link:hover {
    color: var(--accent-orange); /* Warna hover oranye */
}


/* Styling untuk tombol salin */
.copy-button {
    background-color: var(--accent-blue);
    color: var(--text-light);
    border: none;
    padding: 8px 15px; /* Sedikit lebih besar */
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap; /* Agar teks "Salin" tidak terpotong */
}

.copy-button:hover {
    background-color: #4a6fa5;
}
.copy-button:active {
    transform: translateY(1px);
}

/* Styling untuk pesan error */
.error-message {
    color: #ff6b6b; /* Warna merah untuk error */
    font-weight: bold;
    justify-content: flex-start; /* Agar pesan error tidak ada space-between */
}

/* Placeholder SVG - Ganti dengan SVG/Gambar Anda */
.hero-image, .feature-icon-img, .step-icon-img {
    /* background-color: #444; Warna placeholder */
    /* border-radius: 200px; */
    display: inline-block; /* Agar bisa diberi width dan height */
}
.hero-image { width: 350px; height: 350px; } /* Sesuaikan ukurannya */


/* --- Features Section --- */
.features-section {
    background-color: var(--secondary-bg);
    padding: 60px 0;
    text-align: center;
}

.features-section h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: var(--primary-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.feature-icon-img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    /* background-color: var(--accent-orange);  */
}


.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-yellow);
    margin-bottom: 10px;
}

/* --- How It Works Section --- */
.how-it-works-section {
    padding: 60px 0;
    text-align: center;
}

.how-it-works-section h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    align-items: flex-start;
}

.step-item {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--accent-orange);
    color: var(--primary-bg);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.step-icon-img {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    /* background-color: #555; */
}

.step-item h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--secondary-bg);
    padding: 60px 0;
    text-align: center;
}

.testimonials-section h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background-color: var(--primary-bg);
    padding: 25px;
    border-radius: 8px;
    font-style: italic;
    position: relative; /* For potential quote icon */
}

.testimonial-item p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.testimonial-item h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-style: normal;
    color: var(--accent-yellow);
}

/* --- Final CTA Section --- */
.final-cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--primary-bg); /* Bisa juga warna aksen jika ingin lebih menonjol */
}

.final-cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 30px;
}

/* --- Footer --- */
footer {
    background-color: #111; /* Lebih gelap dari primary-bg */
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

footer a {
    color: var(--accent-yellow);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-orange);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        margin-bottom: 30px;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .shorten-form {
        flex-direction: column;
    }
    .shorten-form input[type="url"] {
        margin-bottom: 10px;
        border-radius: 8px; /* Add radius back since it's separate now */
    }
    .cta-button {
         border-radius: 8px; /* Add radius back */
    }
    .features-grid, .steps-grid, .testimonials-grid {
        grid-template-columns: 1fr; /* Satu kolom di layar kecil */
    }
}

.result-display {
    background-color: var(--secondary-bg); /* Warna latar belakang sedikit berbeda */
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    text-align: left; /* Atau center jika lebih suka */
    border: 1px solid #444; /* Garis batas halus */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0; /* Mulai dengan transparan untuk animasi */
    transform: translateY(10px); /* Mulai sedikit ke bawah untuk animasi */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Tambahkan class 'show' dengan JavaScript untuk memicu animasi */
.result-display.show {
    opacity: 1;
    transform: translateY(0);
}

.result-display p {
    margin-bottom: 12px;
    font-size: 1rem;
    word-break: break-all; /* Agar link panjang tidak merusak layout */
    line-height: 1.5;
}

.result-display p:last-child {
    margin-bottom: 0;
}

.result-display strong {
    font-weight: 600;
    color: var(--accent-yellow); /* Warna aksen untuk label */
}

.result-display a {
    color: var(--accent-orange); /* Warna link */
    text-decoration: none;
    transition: color 0.2s ease;
}

.result-display a:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}

/* Styling untuk tombol salin */
.copy-button {
    background-color: var(--accent-blue); /* Atau warna lain yang kontras */
    color: var(--text-light);
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 10px;
    transition: background-color 0.2s ease;
}

.copy-button:hover {
    background-color: #4a6fa5; /* Warna hover yang sedikit lebih terang/gelap */
}

/* Styling untuk pesan error */
.error-message {
    color: #ff6b6b; /* Warna merah untuk error */
    font-weight: bold;
}