/* Global Styles */
:root {
    --primary: #E2001A; /* IndiHome Red */
    --primary-dark: #C30016;
    --secondary: #FFD100; /* Yellow accent */
    --accent: #007bff; /* A new accent color for highlights, e.g., blue */
    --dark: #333333;
    --light: #FFFFFF;
    --gray: #F5F5F5;
    --dark-gray: #777777;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-strong: rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.7; /* Slightly increased line height for readability */
    overflow-x: hidden;
    background-color: var(--light); /* Ensure body background is light */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700; /* Bolder headings */
    line-height: 1.2;
    color: var(--dark);
    letter-spacing: -0.5px; /* Subtle letter spacing adjustment */
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

.btn {
    display: inline-block;
    padding: 14px 30px; /* Slightly larger padding */
    border-radius: 8px; /* More rounded corners */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 12px var(--shadow-light); /* Initial subtle shadow */
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px); /* More pronounced lift */
    box-shadow: 0 8px 20px rgba(226, 0, 26, 0.4); /* Stronger shadow on hover */
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: #e6c200; /* Slightly darker yellow */
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 209, 0, 0.4);
}

section {
    padding: 100px 0; /* More vertical spacing between sections */
}

/* Header Styles */
header {
    background-color: var(--light);
    box-shadow: 0 2px 15px var(--shadow-light);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 45px; /* Slightly larger logo */
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 35px; /* More space between nav items */
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding-bottom: 5px; /* Space for underline effect */
    position: relative;
    transition: color 0.3s ease, border-color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    outline: none;
}

.hamburger span {
    display: block;
    width: 28px; /* Slightly larger hamburger lines */
    height: 3px;
    background-color: var(--dark);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(226, 0, 26, 0.95), rgba(195, 0, 22, 0.95)), url('https://source.unsplash.com/random/1920x1080/?internet,home') no-repeat center center/cover; /* Added subtle background image */
    background-blend-mode: multiply; /* Blend background image with gradient */
    color: var(--light);
    padding-top: 150px; /* More padding for hero content */
    padding-bottom: 100px;
    min-height: 70vh; /* Minimum height for hero section */
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.hero-content {
    flex: 1;
    padding-right: 60px; /* More padding */
    text-shadow: 1px 1px 4px var(--shadow-light); /* Subtle text shadow */
}

.hero-content h1 {
    font-size: 3.5rem; /* Larger hero heading */
    margin-bottom: 25px;
    color: var(--light);
    letter-spacing: -1px;
}

.hero-content p {
    margin-bottom: 40px;
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 550px; /* Slightly larger image */
    animation: float 4s ease-in-out infinite; /* Slower, smoother animation */
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3)); /* More prominent shadow for image */
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); } /* Larger float distance */
    100% { transform: translateY(0px); }
}

/* Packages Section */
.packages {
    padding: 100px 0;
}

.packages h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--dark);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* More gap between tabs */
    margin-bottom: 40px;
    justify-content: center;
    border-bottom: 1px solid var(--gray); /* Subtle separator */
    padding-bottom: 15px;
}

.tab-btn {
    padding: 12px 25px;
    background-color: var(--light);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
    background-color: rgba(226, 0, 26, 0.08); /* Lighter hover */
    transform: translateY(-2px);
}

.tab-btn.active {
    background-color: var(--primary);
    color: var(--light);
    box-shadow: 0 5px 15px rgba(226, 0, 26, 0.3);
    transform: translateY(-2px);
}

.package-category {
    display: none;
    animation: fadeIn 0.5s ease-out forwards; /* Fade in animation for categories */
}

.package-category.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.package-category h3 {
    margin-bottom: 30px;
    font-size: 1.8rem; /* Slightly larger category title */
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--dark);
    text-align: center;
    justify-content: center;
    padding-top: 20px;
}

.package-category h3 i {
    color: var(--primary);
    font-size: 1.8rem;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Adjusted minmax */
    gap: 30px;
}

.package-card {
    background-color: var(--light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px var(--shadow-medium);
}

.package-header {
    background-color: var(--primary);
    color: var(--light);
    padding: 25px; /* More padding */
    text-align: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.package-header h3 {
    font-size: 1.5rem; /* Larger package name */
    margin-bottom: 8px;
    color: var(--light);
}

.package-header .speed {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
}

.package-body {
    padding: 25px;
    flex-grow: 1; /* Allows body to expand */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-features {
    margin-bottom: 25px;
}

.package-features ul {
    list-style: none;
}

.package-features ul li {
    padding: 10px 0; /* More padding */
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--dark);
    border-bottom: 1px dashed var(--gray); /* Dashed separator */
}

.package-features ul li:last-child {
    border-bottom: none;
}

.package-features ul li i {
    color: var(--primary);
    font-size: 1.1rem;
}

.package-price {
    text-align: center;
    margin-bottom: 25px;
}

.package-price .monthly {
    font-size: 2.2rem; /* Larger price */
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.package-price .install {
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--dark-gray);
    text-decoration: line-through;
}

.package-price .promo {
    margin-top: 12px;
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.package-price .promo-price {
    font-weight: 700;
    color: #28a745; /* Green for promo price */
    font-size: 1.1rem;
}

.package-footer {
    padding: 0 25px 25px;
    text-align: center;
}

/* Floating WA Button */
.float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* WhatsApp green */
    color: var(--light);
    width: 30px; /* Larger WA button */
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem; /* Larger icon */
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Ensure no underline */
}

.float-wa:hover {
    transform: scale(1.15); /* More pronounced scale */
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.4rem; }

    .hero .container {
        flex-direction: column;
        text-align: center;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .hero-image {
        order: -1; /* Move image above content on smaller screens */
        margin-bottom: 30px;
    }

    .hero-image img {
        max-width: 450px;
    }

    .benefits-grid,
    .testimonial-slider {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }

    .footer-links h3::after, .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom p {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .logo img {
        height: 40px;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 75px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: var(--light);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--gray);
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 15px 0;
        text-align: center;
    }

    nav ul li a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hamburger {
        display: flex;
    }

    .package-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        width: 100%;
    }
    
    .package-category h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.2rem; }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .float-wa {
        width: 55px;
        height: 55px;
        font-size: 1.7rem;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        bottom: 90px;
        right: 20px;
    }
}

/* Simulation Section */
.simulation {
    background-color: var(--gray);
    padding: 100px 0;
}

.simulation h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--dark);
}

.simulation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.simulation-form {
    background-color: var(--light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-light);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

#calculate-btn {
    width: 100%;
    margin-top: 10px;
}

.simulation-result {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card {
    background-color: var(--light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-light);
}

.result-card h3 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.result-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    border-top: 2px solid var(--primary);
    margin-top: 10px;
    padding-top: 15px;
}

.result-details {
    background-color: var(--light);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-light);
}

.result-details h4 {
    margin-bottom: 15px;
    color: var(--dark);
}

.result-details p {
    color: var(--dark-gray);
    line-height: 1.7;
}

/* Responsive untuk simulation */
@media (max-width: 768px) {
    .simulation-container {
        grid-template-columns: 1fr;
    }
}