/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px; /* Menyesuaikan tinggi header */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
    padding: 5px 0; /* Mengurangi padding untuk memberi ruang lebih pada logo */
}

.logo-img {
    height: 50px; /* Mengurangi tinggi logo */
    width: auto;
    max-width: 250px; /* Mengurangi lebar maksimum */
    transition: transform 0.3s ease;
    object-fit: contain;
    object-position: left center;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-name i {
    color: #FF0080;
}

.btn-login,
.btn-logout {
    background-color: #FF0080;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-login:hover,
.btn-logout:hover {
    background-color: #e00070;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-logout {
    background-color: #6c757d;
}

.btn-logout:hover {
    background-color: #5a6268;
}

@media (max-width: 768px) {
    .header-actions {
        gap: 0.5rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
    
    .user-name {
        font-size: 0.85rem;
    }
    
    .btn-login,
    .btn-logout {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #FF0080 0%, #fad0c4 100%);
    min-height: 50vh; /* Dikurangi dari 70vh menjadi 50vh */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem; /* Dikurangi dari 2rem */
    padding-top: calc(70px + 1.5rem);
    position: relative;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-image {
    max-width: 60%;
    height: auto;
    max-height: 30vh;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.video-section {
    background: #fff;
    padding: 3rem 5% 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glitch-box {
    position: relative;
    max-width: 1100px;
    width: 100%;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.6), rgba(250, 208, 196, 0.5));
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.glitch-box::before,
.glitch-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(255, 0, 128, 0.35), rgba(250, 208, 196, 0.35));
    mix-blend-mode: screen;
    opacity: 0.35;
    animation: glitch-shift 5s infinite ease-in-out alternate;
    pointer-events: none;
}

.glitch-box::after {
    filter: blur(12px);
    opacity: 0.25;
    animation-direction: alternate-reverse;
}

.glitch-video {
    width: 100%;
    display: block;
    border-radius: 12px;
    background: #000;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@keyframes glitch-shift {
    0% { transform: translate3d(0, 0, 0); }
    35% { transform: translate3d(6px, -4px, 0); }
    60% { transform: translate3d(-6px, 5px, 0); }
    100% { transform: translate3d(4px, 3px, 0); }
}

/* Menggunakan !important untuk mengatasi spesifisitas CSS */
.btn.btn-hero {
    background: #ffffff !important;
    color: #FF0080 !important;
    padding: 0.8rem 2.2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.btn.btn-hero:hover {
    background-color: #f0f0f0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Tentang Kami Section */
.about-section {
    padding: 5rem 5%;
    background-color: #fff;
}

.about-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-section h2 {
    text-align: center;
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FF0080, #fad0c4);
    border-radius: 2px;
}

.about-content {
    text-align: justify;
    line-height: 1.8;
    color: #555;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    background-color: #ff6b9d;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #ff4785;
    transform: translateY(-2px);
}

/* Footer */
.footer-top {
    background-color: #2c3e50;
    padding: 4rem 0 2rem;
    color: #ecf0f1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo {
    display: flex;
    justify-content: center; /* Pusatkan logo */
    margin-bottom: 1.5rem; /* Tambahkan margin bawah */
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
    margin: 0 auto; /* Pusatkan gambar */
}

.footer-social h3, 
.footer-contact h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
}

.footer-social h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: #ff6b9d;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #ff6b9d;
    transform: translateY(-3px);
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: #ff6b9d;
    width: 20px;
    text-align: center;
}

/* Form Container */
.form-container {
    max-width: 900px;
    margin: 100px auto 50px;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.form-container h1 {
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #FF0080;
}

.form-instruction {
    text-align: center;
    color: #666;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Question Styling */
.question-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.question-item {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.question-text {
    font-weight: 500;
    margin-bottom: 1rem;
    color: #444;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Radio Button Styling */
.scale-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.scale-container label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #555;
    min-width: 70px;
    text-align: center;
}

.scale-container label:hover {
    background-color: #f0f0f0;
}

.scale-container input[type="radio"] {
    display: none;
}

.scale-container input[type="radio"]:checked + label,
.scale-container label.selected {
    background-color: #FF69B4;
    color: white;
    border-color: #FF69B4;
    font-weight: 500;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.btn {
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background-color: #f1f1f1;
    color: #555;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
}

.btn-submit {
    background-color: #FF0080;
    color: white;
}

.btn-submit:hover {
    background-color: #e00070;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        margin: 80px 15px 30px;
        padding: 1.5rem;
    }
    
    .scale-container {
        gap: 0.5rem;
    }
    
    .scale-container label {
        padding: 0.5rem 0.7rem;
        font-size: 0.9rem;
        min-width: 50px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}

.footer-bottom {
    background-color: #1a252f;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #95a5a6;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 45vh;
        padding: 1rem;
    }
    
    .hero-image {
        max-height: 40vh;
        margin-bottom: 1.5rem;
    }
    
    .btn-hero {
        padding: 0.9rem 2.5rem;
        font-size: 1rem;
    }
    
    /* Perbaikan alignment footer di mobile */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo,
    .footer-social,
    .footer-contact {
        text-align: center;
    }
    
    .footer-social h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .footer-social h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        margin-bottom: 2rem;
    }
}
