/* RESET DAN VARIABEL */
        html {
            scroll-behavior: smooth;
        }

        section {
            scroll-margin-top: 80px;
        }

        :root {
            --primary: #2c3e50;
            --secondary: #e74c3c;
            --accent: #f39c12;
            --light: #ecf0f1;
            --dark: #1a252f;
            --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            --transition: all 0.3s ease;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }
        
        body {
            background-color: var(--dark);
            color: var(--light);
            line-height: 1.6;
        }
        
        /* NAVBAR */
        .navbar {
            background-color: rgba(26, 37, 47, 0.9);
            padding: 1rem 5%;
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 100;
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--light);
            text-decoration: none;
        }
        
        .logo span {
            color: var(--secondary);
        }
        
        .nav-links {
            display: flex;
            list-style: none;
        }
        
        .nav-links li {
            margin-left: 2rem;
        }
        
        .nav-links a {
            color: var(--light);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
        }
        
        .nav-links a:hover {
            color: var(--secondary);
        }
        
        .search-bar {
            margin-left: 2rem;
            position: relative;
            width: 300px;
        }
        
        .search-bar input {
            width: 100%;
            padding: 0.7rem 1rem 0.7rem 2.5rem;
            border-radius: 50px;
            border: none;
            background-color: rgba(255, 255, 255, 0.1);
            color: var(--light);
            transition: var(--transition);
        }
        
        .search-bar input:focus {
            outline: none;
            background-color: rgba(255, 255, 255, 0.2);
        }
        
        .search-bar i {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--light);
            opacity: 0.8;
        }
        
        /* HERO SECTION */
        .hero {
            height: 80vh;
            background: linear-gradient(rgba(26, 37, 47, 0.7), rgba(26, 37, 47, 0.9)), url('/api/placeholder/1800/800') no-repeat center center/cover;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding-top: 80px;
        }
        
        .hero-content {
            max-width: 800px;
            padding: 0 2rem;
        }
        
        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            line-height: 1.2;
        }
        
        .hero p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }
        
        .btn {
            display: inline-block;
            padding: 0.8rem 2rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .btn-primary {
            background-color: var(--secondary);
            color: var(--light);
        }
        
        .btn-primary:hover {
            background-color: #c0392b;
            transform: translateY(-3px);
            box-shadow: var(--shadow);
        }
        
        .btn-secondary {
            background-color: transparent;
            color: var(--light);
            border: 2px solid var(--light);
            margin-left: 1rem;
        }
        
        .btn-secondary:hover {
            background-color: var(--light);
            color: var(--dark);
            transform: translateY(-3px);
            box-shadow: var(--shadow);
        }
        
        /* KATEGORI */
        .categories {
            padding: 5rem 5%;
            text-align: center;
        }
        
        .section-title {
            font-size: 2.5rem;
            margin-bottom: 3rem;
            position: relative;
            display: inline-block;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 4px;
            background-color: var(--secondary);
        }
        
        .category-items {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2rem;
        }
        
        .category-item {
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 1.5rem;
            width: 200px;
            text-align: center;
            transition: var(--transition);
            cursor: pointer;
        }
        
        .category-item:hover {
            background-color: var(--secondary);
            transform: translateY(-5px);
        }
        
        .category-item i {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }
        
        .category-item h3 {
            font-size: 1.2rem;
        }
        
        /* FEATURED BOOKS */
        .featured-books {
            padding: 5rem 5%;
            background-color: var(--primary);
        }

        .featured-books .books-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 1.5rem;
        overflow-x: auto;
        padding: 1rem 0;
        scroll-snap-type: x mandatory;
        }

        /* Sembunyikan semua .book-card setelah ke-6 (jika ada tambahan) */
        .featured-books .books-grid .book-card:nth-child(n+7) {
        display: none;
        }

        .featured-books .books-grid::-webkit-scrollbar {
        height: 8px;                     
        }
        .featured-books .books-grid::-webkit-scrollbar-track {
        background: transparent;
        }
        .featured-books .books-grid::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 4px;
        }

        .featured-books .book-card {
        flex: 0 0 auto;                 
        min-width: 220px;               
        scroll-snap-align: start;       
        }

        /* (opsional) tambahkan sedikit efek hover untuk memperjelas scroll */
        .featured-books .book-card:hover {
        transform: translateY(-5px);
        transition: transform 0.2s ease;
        }
        
        .books-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 2.5rem;
        }
        
        .book-card {
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            cursor: pointer;
        }
        
        .book-card:hover {
            transform: translateY(-10px);
        }
        
        .book-card:hover .book-details {
            opacity: 1;
        }
        
        .book-poster {
            height: 320px;
            width: 100%;
            object-fit: cover;
            vertical-align: middle;
        }
        
        .book-details {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
            padding: 1.5rem;
            opacity: 0.8;
            transition: var(--transition);
        }
        
        .book-title {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        }
        
        .book-author {
            font-size: 0.9rem;
            opacity: 0.8;
            margin-bottom: 0.5rem;
        }
        
        .book-rating {
            color: var(--accent);
            margin-bottom: 0.5rem;
        }
        
        .book-tag {
            display: inline-block;
            background-color: var(--secondary);
            color: var(--light);
            font-size: 0.8rem;
            padding: 0.3rem 0.8rem;
            border-radius: 50px;
        }
        
        /* NEW RELEASES */
        .new-releases {
            padding: 5rem 5%;
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .view-all {
            color: var(--secondary);
            text-decoration: none;
            font-weight: 600;
            display: flex;
            align-items: center;
        }
        
        .view-all i {
            margin-left: 0.5rem;
        }
        
        .books-carousel {
            display: flex;
            gap: 2rem;
            overflow-x: auto;
            padding: 1rem 0.5rem;
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        
        .books-carousel::-webkit-scrollbar {
            display: none;
        }
        
        .carousel-item {
            min-width: 200px;
        }
        
        /* TOP AUTHORS */
        .top-authors {
            padding: 5rem 5%;
            background-color: var(--primary);
        }
        
        .authors-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 2rem;
            text-align: center;
        }
        
        .author-card {
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 2rem 1rem;
            transition: var(--transition);
        }
        
        .author-card:hover {
            transform: translateY(-5px);
            background-color: rgba(255, 255, 255, 0.15);
        }
        
        .author-img {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            margin: 0 auto 1rem;
        }
        
        .author-name {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
        }
        
        .book-count {
            color: var(--accent);
            font-size: 0.9rem;
        }
        
        /* TESTIMONIALS */
        .testimonials {
            padding: 5rem 5%;
            text-align: center;
        }
        
        .testimonial-items {
            display: flex;
            gap: 2rem;
            margin-top: 3rem;
            overflow-x: auto;
            padding: 1rem 0.5rem;
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        
        .testimonial-items::-webkit-scrollbar {
            display: none;
        }
        
        .testimonial-item {
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 2rem;
            min-width: 300px;
            text-align: left;
        }
        
        .testimonial-content {
            font-style: italic;
            margin-bottom: 1.5rem;
        }
        
        .testimonial-user {
            display: flex;
            align-items: center;
        }
        
        .user-img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            margin-right: 1rem;
        }
        
        .user-info {
            flex: 1;
        }
        
        .user-name {
            font-weight: 600;
        }
        
        .user-role {
            font-size: 0.9rem;
            opacity: 0.8;
        }
        
        /* NEWSLETTER */
        .newsletter {
            padding: 5rem 5%;
            background-color: var(--secondary);
            text-align: center;
        }
        
        .newsletter h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }
        
        .newsletter p {
            max-width: 600px;
            margin: 0 auto 2rem;
            opacity: 0.9;
        }
        
        .newsletter-form {
            display: flex;
            max-width: 500px;
            margin: 0 auto;
        }
        
        .newsletter-input {
            flex: 1;
            padding: 1rem 1.5rem;
            border: none;
            border-radius: 50px 0 0 50px;
            font-size: 1rem;
        }
        
        .newsletter-input:focus {
            outline: none;
        }
        
        .newsletter-btn {
            padding: 1rem 2rem;
            background-color: var(--dark);
            color: var(--light);
            border: none;
            border-radius: 0 50px 50px 0;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .newsletter-btn:hover {
            background-color: var(--primary);
        }
        
        /* FOOTER */
        .footer {
            background-color: var(--dark);
            padding: 5rem 5% 2rem;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
        }
        
        .footer-logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--light);
            margin-bottom: 1rem;
            display: inline-block;
        }
        
        .footer-logo span {
            color: var(--secondary);
        }
        
        .footer-about p {
            margin-bottom: 1.5rem;
            opacity: 0.8;
        }
        
        .social-links {
            display: flex;
            gap: 1rem;
        }
        
        .social-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: var(--light);
            transition: var(--transition);
        }
        
        .social-link:hover {
            background-color: var(--secondary);
            transform: translateY(-3px);
        }
        
        .footer-heading {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
            position: relative;
        }
        
        .footer-heading::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 30px;
            height: 3px;
            background-color: var(--secondary);
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 1rem;
        }
        
        .footer-links a {
            color: var(--light);
            text-decoration: none;
            opacity: 0.8;
            transition: var(--transition);
        }
        
        .footer-links a:hover {
            opacity: 1;
            color: var(--secondary);
            padding-left: 5px;
        }
        
        .contact-info {
            list-style: none;
        }
        
        .contact-info li {
            display: flex;
            margin-bottom: 1rem;
        }
        
        .contact-info i {
            margin-right: 1rem;
            color: var(--secondary);
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .footer-bottom p {
            opacity: 0.8;
        }
        
        /* RESPONSIF */
        @media (max-width: 991px) {
            .hero h1 {
                font-size: 2.8rem;
            }
            
            .books-grid {
                grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            }
        }
        
        @media (max-width: 768px) {
            .navbar {
                padding: 1rem 2%;
            }
            
            .search-bar {
                display: none;
            }
            
            .hero {
                height: 70vh;
            }
            
            .hero h1 {
                font-size: 2.3rem;
            }
            
            .hero p {
                font-size: 1rem;
            }
            
            .books-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
                gap: 1.5rem;
            }
            
            .category-item {
                width: 150px;
            }
            
            .section-title {
                font-size: 2rem;
            }
        }
        
        @media (max-width: 576px) {
            .navbar {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .nav-links {
                margin-top: 1rem;
                flex-wrap: wrap;
            }
            
            .nav-links li {
                margin-left: 0;
                margin-right: 1rem;
                margin-bottom: 0.5rem;
            }
            
            .hero {
                height: 60vh;
            }
            
            .hero h1 {
                font-size: 2rem;
            }
            
            .btn {
                display: block;
                width: 100%;
                margin-bottom: 1rem;
            }
            
            .btn-secondary {
                margin-left: 0;
            }
            
            .books-grid {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
                gap: 1rem;
            }
            
            .footer-content {
                gap: 2rem;
            }
        }