@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
@import url('all.min.css');

:root {
    --primary-color: #052659;
    --secondary-color: #021024;
    --accent-color: #5483B3;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --success-color: #4bb543;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --premium-color: #ff9f1c;
}

/* 🔹 Basic Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--dark-color);
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #7DA0C4 100%);
    min-height: 100vh;
}

/* 🔹 Header & Navigation */
header {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeInDown 0.8s ease-out;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--accent-color);
}

h1 {
    margin: 0;
    font-size: 1.8rem;
    animation: bounce 2s infinite;
    display: inline-block;
    background: linear-gradient(90deg, var(--light-color) 0%, var(--light-color) 50%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px 0;
    border-radius: 2px;
}

.menu-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    color: var(--accent-color);
}

nav {
    display: flex;
    gap: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
    background-color: rgba(67, 97, 238, 0.1);
    border: 1px solid rgba(67, 97, 238, 0.3);
}

nav a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.2);
}

/* 🔹 Animasi Bounce (Naik Turun) */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 🔹 Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    animation: fadeIn 1s ease-out;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 201, 240, 0.1) 0%, transparent 70%);
    animation: pulse 8s infinite alternate;
}

.hero h2 {
    margin: 0;
    font-size: 2.5rem;
    background: linear-gradient(90deg, white 0%, var(--light-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.hero p {
    margin: 1rem 0 0;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* 🔹 Hosting Types Section */
.hosting-types {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.hosting-types h2 {
    color: var(--dark-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.hosting-types h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto;
    border-radius: 2px;
}

.hosting-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hosting-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    margin: 10px;
}

.hosting-box.premium {
    border-top-color: var(--premium-color);
}

.hosting-box h3 {
    color: var(--dark-color);
    margin-top: 0;
    position: relative;
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dashed #eee;
}

.hosting-box.premium h3 {
    color: var(--premium-color);
}

/* Package List Styles */
.package-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.package-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hosting-box.premium .package-item {
    border-left-color: var(--premium-color);
}

.package-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    background: #f8f9fa;
}

.package-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.package-item p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
    color: var(--gray-color);
}

/* Additional styles for package items */
.package-item.selected {
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
    border-left: 4px solid var(--success-color);
    transform: scale(1.02);
}

.package-item h4 {
    font-weight: 600;
    color: var(--dark-color);
}

.package-item p {
    font-weight: 500;
}

.package-item p:last-child {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.hosting-box.premium .package-item p:last-child {
    color: var(--premium-color);
}

/* Price highlight */
.price-highlight {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.hosting-box.premium .price-highlight {
    color: var(--premium-color);
}

/* Premium badge */
.premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--premium-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(5deg);
}

/* Blinking animation for premium packages */
@keyframes blink {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(255, 159, 28, 0); 
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(255, 159, 28, 0.3); 
    }
}

.premium-blink {
    animation: blink 2s infinite;
    position: relative;
}

/* 🔹 Order Form */
.order-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
    animation-delay: 0.3s;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.order-form::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 0;
}

.order-form h2 {
    margin-top: 0;
    color: var(--dark-color);
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    position: relative;
    z-index: 1;
}

label {
    display: block;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    z-index: 1;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background-color: var(--light-color);
    position: relative;
    z-index: 1;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    outline: none;
    background-color: white;
}

.package-details {
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    animation: fadeIn 0.5s ease-out;
    border-left: 4px solid var(--primary-color);
    position: relative;
    z-index: 1;
}

.package-details h3 {
    margin-top: 0;
    color: var(--dark-color);
    border-bottom: 1px solid #adb5bd;
    padding-bottom: 0.5rem;
}

.package-details p {
    margin: 0.8rem 0;
    font-size: 1rem;
}

button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    margin-top: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

button:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

button:active {
    transform: translateY(0);
}

/* Style untuk tombol di hero section */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-decoration: none;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Style untuk promo section */
.promo {
    background: linear-gradient(135deg, #fff8e6 0%, #ffecb3 100%);
    padding: 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 2px dashed var(--warning-color);
    position: relative;
    overflow: hidden;
}

.promo::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.3;
}

.promo h2 {
    color: var(--warning-color);
    margin-top: 0;
    position: relative;
}

.promo p {
    color: var(--dark-color);
    font-size: 1.1rem;
    position: relative;
}

/* FAQ Styles */
.faq {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    text-align: left;
    background-color: var(--light-color);
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #e9f0f8;
    color: var(--primary-color);
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: bold;
    color: var(--light-color);
    transition: var(--transition);
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    background-color: white;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-answer.show {
    max-height: 500px;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.faq-answer p {
    margin: 0;
    color: var(--gray-color);
    line-height: 1.6;
    font-size: 16px;
}

/*  Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    animation: fadeIn 0.8s ease-out;
    border-top: 3px solid var(--accent-color);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 L0,100 Z" /></svg>');
    background-size: cover;
    z-index: 0;
}

footer a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-brand span {
    color: var(--accent-color);
}

.footer-content {
    margin: 1rem 0;
    line-height: 1.6;
}

.footer-bottom {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 1.5rem;
    position: relative;
    padding-top: 1rem;
    z-index: 1;
}

.footer-bottom::before {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    margin: 0 auto 1rem;
}

.footer-copyright {
    display: block;
}

.footer-copyright::before {
    content: "@";
    margin-right: 0.3rem;
}

/* Section divider */
.section-divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    margin: 2rem auto;
}

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

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.1; }
    50% { opacity: 0.2; }
    100% { transform: scale(1.2); opacity: 0.1; }
}

/* Floating action button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    z-index: 100;
}

.fab:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px) scale(1.1);
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    animation: modalOpen 0.3s forwards;
}

@keyframes modalOpen {
    to { transform: translateY(0); }
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 10px;
}

.modal-buttons button {
    width: 48%;
}

/* Error message styling */
.error {
    color: var(--danger-color);
    font-size: 14px;
    margin-top: 8px;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Success message styling */
.success {
    color: var(--success-color);
    font-size: 14px;
    margin-top: 8px;
    animation: fadeIn 0.5s;
}

/* 🔹 Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
        padding: 1rem;
        animation: fadeIn 0.3s ease-out;
        box-shadow: var(--shadow);
        border-top: 2px solid var(--accent-color);
    }

    nav.show {
        display: flex;
    }

    nav a {
        margin: 0.3rem 0;
        text-align: center;
    }

    .order-form {
        padding: 1.5rem;
        margin: 1.5rem;
    }

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

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

    /* Responsive untuk elemen baru */
    .hosting-box {
        min-width: 100%;
    }

    .footer-section {
        min-width: 100%;
        text-align: center;
    }
}