/* ============================================
   OMUZONE - Gaming News Landing Page
   Orange-Red Gradient Cyberpunk Theme
   (Optimized Version)
   ============================================ */

/* Root Variables */
:root {
    --primary: #ff4500;
    --primary-light: #ff6b35;
    --secondary: #cc0000;
    --background: #0f0f0f;
    --foreground: #ffffff;
    --card-bg: #1a1a2e;
    --border-color: #333344;
    --text-muted: #a0a0b0;
    --accent: #ff6b35;
    --cyan: #00d9ff;
    --transition: 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--foreground);
    text-decoration: none;
    transition: color var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 150px 0;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.75) 0%, rgba(15, 15, 15, 0.5) 50%, rgba(15, 15, 15, 0.85) 100%);
    z-index: 0;
    background-image: url('https://omuzone.com/hero-banner.webp');
    background-repeat: no-repeat;
        background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 69, 0, 0.15);
    border: 1px solid rgba(255, 69, 0, 0.4);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.9), 0 0 60px rgba(255, 69, 0, 0.7);
    color: #ffffff;
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-buttons span {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero {
        padding: 80px 0;
        min-height: auto;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    padding: 0.85rem 1.8rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--foreground);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.6), inset 0 0 20px rgba(255, 69, 0, 0.2);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--secondary);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.9), inset 0 0 20px rgba(255, 69, 0, 0.3);
    transform: translateY(-3px);
    border-color: var(--secondary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--cyan);
    border: 2px solid var(--cyan);
}

.btn-secondary:hover {
    background-color: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    color: #ffffff;
    transform: translateY(-3px);
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.8);
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--foreground);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all var(--transition);
    /* Hapus: animation: fadeInUp 0.6s ease-out forwards; */
}

.news-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
    transform: translateY(-6px);
}

.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition);
}

.news-card:hover .news-image {
    transform: scale(1.08);
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    display: inline-block;
    background-color: var(--primary);
    color: var(--foreground);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-date {
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color var(--transition);
}

.news-card:hover .news-title {
    color: var(--primary);
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hapus Keyframes yang tidak terpakai */
/* @keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} */

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 80px 0;
    background-color: rgba(255, 69, 0, 0.05);
    border-top: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 69, 0, 0.3);
    padding: 2.5rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: all var(--transition);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.2);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(255, 69, 0, 0.4);
    transform: translateY(-6px);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 2rem;
    border-radius: 0.75rem;
    transition: all var(--transition);
}

.testimonial-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
    font-weight: 800;
}

.testimonial-role {
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star {
    color: var(--primary);
    font-size: 1.1rem;
}

.testimonial-text {
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1), rgba(204, 0, 0, 0.1));
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.8);
    font-weight: 900;
}

.cta-section p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

.cta-form {
    display: flex;
    gap: 1rem;
    max-width: 550px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 220px;
    padding: 0.85rem 1.2rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--foreground);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all var(--transition);
}

.email-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
}

.email-input::placeholder {
    color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: rgba(26, 26, 46, 0.5);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4,
.footer-section h5 {
    margin-bottom: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-form {
        flex-direction: column;
    }

    .email-input {
        min-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .nav {
        gap: 1rem;
    }

    .category-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.75rem;
    }

    .news-grid {
        gap: 1rem;
    }

    .feature-card,
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* ============================================
   OPTIMASI: SINKRONISASI DENGAN SCRIPT BARU
   ============================================ */

/* 1. Hapus animasi inline dari JS dan pindahkan ke CSS */
.news-card, .feature-card, .testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

/* 2. Tambahkan kelas untuk memicu animasi saat elemen terlihat (Intersection Observer) */
.news-card.is-visible, .feature-card.is-visible, .testimonial-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
