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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-image: url('anime-background-wallpaper-Anime-Wallpapers-sky-ciel.png'); /* Ganti dengan path ke gambar yang Anda miliki */
    background-size: cover; /* Membuat gambar memenuhi seluruh latar belakang */
    background-position: center; /* Menjaga gambar tetap terpusat */
    background-attachment: fixed; /* Agar gambar tetap pada tempatnya saat halaman di-scroll */
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

.container {
    width: 80%;
    margin: 0 auto;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: #2c3e50;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar .logo {
    font-size: 2rem;
    font-weight: 700;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
}

.navbar .nav-links li {
    margin: 0 20px;
    position: relative; /* Positioning for the pseudo element */
}

/* Hover Effect with Animated Underline */
.navbar .nav-links a {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.navbar .nav-links a:hover {
    color: #f39c12;
}

/* Add the underline using ::after pseudo-element */
.navbar .nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px; /* Adjust the distance from the text */
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f39c12; /* Color of the underline */
    transition: width 0.3s ease; /* Animation for width */
}

.navbar .nav-links a:hover::after {
    width: 100%; /* Full width when hovered */
}

/* Only apply the hover underline effect on desktop (for screen sizes > 768px) */
@media (min-width: 769px) {
    .navbar .nav-links a {
        padding-bottom: 5px; /* Add some space to accommodate the underline */
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        background-color: #2c3e50;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        text-align: center;
    }

    .navbar .nav-links li {
        margin: 0;
        padding: 1rem;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    /* Remove the underline on mobile */
    .navbar .nav-links a::after {
        display: none;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3498dba2, #2ecc70a2);
    color: white;
    padding: 6rem 0;
    text-align: center;
    animation: fadeIn 2s ease-out;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Popup Styles */
.popup {
    display: none;  /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Overlay */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 80%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.popup h3 {
    font-size: 1.8rem;
    color: #2ecc71;
    margin-bottom: 1rem;
}

.popup p {
    font-size: 1.1rem;
    color: #333;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #e74c3c;
}

/* Make popup responsive */
@media (max-width: 768px) {
    .popup-content {
        width: 90%;
    }
}

/* CTA Button */
.cta-button {
    background-color: #f39c12;
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    border-radius: 7px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #e67e22;
}

/* Section */
.section {
    padding: 4rem 0;
}

/* About Section */
.about .about-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.about-item {
    width: 30%;
    text-align: center;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 14px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.about-item:hover {
    transform: translateY(-10px);
}

.about-item i {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 1rem;
}

/* Features Section */
.features .feature-cards {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.feature-card {
    width: 30%;
    text-align: center;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 14px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

/* Container for the Buy Now Popup */
.buy-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark background to highlight popup */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

/* Content of the popup */
.buy-popup .popup-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: popupAnimation 0.4s ease-out;
}

/* Popup heading */
.buy-popup .popup-content h3 {
    text-align: center;
    font-size: 26px;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
}

/* Close icon button at the top-right */
.buy-popup .popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.buy-popup .popup-close:hover {
    color: #e74c3c;
}

/* Form styling inside the popup */
#buy-now-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Input fields styling */
#buy-now-form input {
    padding: 14px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

/* Input field focus state */
#buy-now-form input:focus {
    border-color: #3498db;
    outline: none;
}

/* Adding some spacing below the button */
#buy-now-form button {
    margin-top: 10px;
}

/* Responsiveness: Adjust input and button on smaller screens */
@media (max-width: 600px) {
    .buy-popup .popup-content {
        padding: 20px;
        width: 90%;
    }

    #buy-now-form input {
        padding: 12px;
    }

    .cta-button {
        padding: 12px;
        font-size: 14px;
    }
}

/* Animation for popup appearance */
@keyframes popupAnimation {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing .pricing-cards {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.pricing-card {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 2rem;
    border-radius: 10px;
    width: 30%;
    text-align: center;
    box-shadow: 0 24px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pricing-card p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-card ul li {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact form {
    display: flex;
    flex-direction: column;
}

.contact input, .contact textarea {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact button {
    background-color: #3498db;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact button:hover {
    background-color: #2980b9;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Media Queries for Responsiveness */

/* For Tablet Screens (max-width: 1024px) */
@media (max-width: 1024px) {
    .navbar .logo {
        font-size: 1.6rem;
    }

    .navbar .nav-links {
        display: block;
        text-align: center;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about .about-content, 
    .features .feature-cards {
        flex-direction: column;
        gap: 2rem;
    }

    .about-item, .feature-card, .pricing-card {
        width: 100%;
    }

    .pricing .pricing-cards {
        flex-direction: column;
    }
}

/* For Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {
    .navbar .logo {
        font-size: 1.5rem;
    }

    .navbar .nav-links {
        flex-direction: column;
        display: none;
        width: 100%;
    }

    .navbar .nav-links li {
        margin: 1rem 0;
    }

    .cta-button {
        width: 100%;
        padding: 1rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about .about-content, 
    .features .feature-cards {
        flex-direction: column;
        gap: 2rem;
    }

    .about-item, .feature-card, .pricing-card {
        width: 100%;
    }

    .pricing .pricing-cards {
        flex-direction: column;
    }

    .contact input, .contact textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .contact button {
        font-size: 1rem;
    }
}

/* For Very Small Screens (max-width: 480px) */
@media (max-width: 480px) {
    .navbar .logo {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about .about-content,
    .features .feature-cards,
    .pricing .pricing-cards {
        flex-direction: column;
        gap: 1rem;
    }

    .about-item, .feature-card, .pricing-card {
        width: 100%;
    }
}
