* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #160000; /* warna fallback (sama dengan backgroundColor Vanta) */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #f0f0f0;
    position: relative;
}

/* Elemen latar belakang Vanta */
#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none; /* agar tidak mengganggu klik pada konten */
}

/* Header - merah solid */
header {
    background-color: #8b0005;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #b71c1c;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffcccc;
}

/* Konten Utama */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 5%;
}

.hero {
    max-width: 2000px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    background: rgba(30, 30, 30, 0.3); /* semi-transparan agar latar Vanta terlihat samar */
    border-radius: 40px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    backdrop-filter: blur(2px); /* mengaburkan konten di belakang elemen */
    -webkit-backdrop-filter: blur(2px); /* dukungan Safari */
}

.hero-text {
    flex: 1 1 650px;
}

.hero-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-text h1 span {
    color: #ff4d4d;
    border-bottom: 4px solid #ff4d4d;
    display: inline-block;
    padding-bottom: 0.2rem;
}

.hero-text p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: #ffffff;
    max-width: 1700px;
    text-align: justify;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: #ff4d4d;
    color: #000;
    border-color: #ff4d4d;
}

.btn-primary:hover {
    background: #cc0000;
    border-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: #ff4d4d;
    border-color: #ff4d4d;
}

.btn-outline:hover {
    background: #ff4d4d;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

.hero-image {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image i {
    font-size: 20rem;
    color: #ffffff;
    transition: transform 0.3s;
}

.hero-image i:hover {
    transform: scale(1.05) rotate(5deg);
}

/* Footer */
.footer-managed {
    text-align: center;
    margin: 1rem 0 1.5rem;
    padding: 1rem;
    background: #000000;
    color: #ffffff;
    border-radius: 60px 60px 20px 20px;
    font-size: 1rem;
}

.footer-managed i {
    color: #ffffff;
    margin: 0 5px;
}

/* Responsif */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    nav ul {
        gap: 1rem;
        justify-content: center;
    }

    .hero {
        padding: 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 1.4rem;
    }

    .button-group {
        justify-content: center;
    }

    .hero-image i {
        font-size: 10rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.2rem;
    }
    .btn {
        width: 100%;
    }
}

/* ===== GAYA TAMBAHAN UNTUK FILOSOFI LOGO ===== */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    color: #fff;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: #ff4d4d;
    margin-top: 0.5rem;
    border-radius: 2px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid #8b0005;
    border-radius: 28px;
    padding: 2rem 1.8rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(255, 77, 77, 0.3);
    border-color: #ff4d4d;
}

.card-icon {
    font-size: 2.6rem;
    color: #ff4d4d;
    margin-bottom: 1.5rem;
    background: rgba(255, 77, 77, 0.1);
    width: fit-content;
    padding: 0.8rem;
    border-radius: 20px;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.card p {
    color: #ddd;
    line-height: 1.6;
}

.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
    justify-content: center;
}

.color-item {
    flex: 1 1 200px;
    border-radius: 32px;
    padding: 2rem 1.5rem 1.8rem;
    text-align: center;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.color-item:hover {
    transform: scale(1.05) translateY(-8px);
}

.color-item .color-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.color-item .color-name {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.color-item .color-hex {
    font-family: monospace;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 1rem;
    border-radius: 30px;
    display: inline-block;
}

.color-deep { background: #0a2a44; } /* deep blue versi gelap */
.color-red { background: #8b0005; }
.color-white { background: #2a2a2a; color: #fff; border: 1px solid #ff4d4d; }
.color-white .color-hex { background: rgba(255,255,255,0.1); }

.message-block {
    background: linear-gradient(145deg, #1a0101, #2d0404);
    border-radius: 48px;
    padding: 3.5rem 3rem;
    margin: 4rem 0;
    color: white;
    text-align: center;
    box-shadow: 0 25px 35px -10px rgba(139, 0, 5, 0.6);
    border: 1px solid #8b0005;
    position: relative;
    overflow: hidden;
}

.message-block i {
    font-size: 4rem;
    color: rgba(255, 77, 77, 0.2);
    position: absolute;
    right: 2rem;
    bottom: 1rem;
}

.message-block h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.brand-message {
    font-size: 1.9rem;
    font-weight: 500;
    background: rgba(255, 77, 77, 0.15);
    display: inline-block;
    padding: 0.5rem 2rem;
    border-radius: 60px;
    backdrop-filter: blur(4px);
    border: 1px solid #ff4d4d;
    margin-bottom: 1rem;
}

.typography-demo {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 32px;
    padding: 2.5rem;
    border: 1px solid #8b0005;
    margin: 3rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.demo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1rem;
}

.demo-text span {
    color: #ff4d4d;
}

.demo-sub {
    color: #ccc;
    font-size: 1.1rem;
}

/* animasi fade-up (opsional) */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* canvas logo */
.canvas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#logoCanvas {
    width: 100%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 32px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.7);
    border: 2px solid #8b0005;
    transition: transform 0.3s;
}

#logoCanvas:hover {
    transform: scale(1.02);
    border-color: #ff4d4d;
}