/* 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;
        }
        
        /* FEATURED BOOKS */
        .featured-books {
            padding: 5rem 5%;
            background-color: var(--primary);
        }

        .featured-books .books-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 2rem;        /* sesuaikan jarak antar kartu */
            padding: 1rem 0;
        }
        
        .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: 3rem;
        }
        
        .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;
        }
        
        /* 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;
            }

            @media (max-width: 992px) {
                .featured-books .books-grid {
                    grid-template-columns: repeat(3, 1fr);
                }
                }
                @media (max-width: 768px) {
                .featured-books .books-grid {
                    grid-template-columns: repeat(2, 1fr);
                }
                }
                @media (max-width: 576px) {
                .featured-books .books-grid {
                    grid-template-columns: 1fr;
                }
            }

        }