/* 
   ========================================
   DinasCustom - CSS Variables & Reset
   ========================================
*/
:root {
    /* Color Palette */
    --primary-color: #1A237E; /* Navy Blue - Otoritas/Kepercayaan */
    --secondary-color: #37474F; /* Dark Grey - Profesional */
    --accent-color: #D4AF37; /* Gold - Elegan/Premium */
    --accent-hover: #b5952f;
    --danger-color: #800000; /* Maroon - Highlight diskon */
    --light-bg: #F5F7FA;
    --white: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    
    /* Typography */
    --font-main: 'Montserrat', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 
   ========================================
   Utility Classes
   ========================================
*/
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.py-section { padding: 80px 0; }
.mt-4 { margin-top: 2rem; }
.bg-light { background-color: var(--light-bg); }
.bg-navy { background-color: var(--primary-color); }
.text-white { color: var(--white); }
.text-light-gray { color: #cfd8dc; }

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.bg-navy .section-title {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* 
   ========================================
   Header / Navbar
   ========================================
*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: #3b82f6;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* 
   ========================================
   Hero Section
   ========================================
*/
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-image: url('../img/hero.png'); /* The generated image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.85) 0%, rgba(55, 71, 79, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: 60px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

/* Event Diskon Berwaktu */
.discount-banner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.discount-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--accent-color);
}

.countdown {
    display: flex;
    align-items: center;
    gap: 15px;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    color: var(--primary-color);
    min-width: 60px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.time-box span {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.time-box small {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 5px;
    text-transform: uppercase;
}

.colon {
    font-size: 1.5rem;
    font-weight: 700;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 
   ========================================
   How It Works
   ========================================
*/
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.step-card:hover .step-icon {
    background: var(--primary-color);
    color: var(--white);
}

.step-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 
   ========================================
   Gallery / Katalog
   ========================================
*/
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border: 2px solid var(--light-bg);
    background: transparent;
    border-radius: 30px;
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: block; /* Default display for filtering */
}

.product-card.hide {
    display: none;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-img-wrap {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--light-bg);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

/* Badges */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.badge-po {
    background-color: var(--primary-color);
}

.badge-discount {
    background-color: var(--danger-color);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.product-info .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-info .price del {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 8px;
}

/* 
   ========================================
   Social Proof
   ========================================
*/
.client-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.logo-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testi-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    color: var(--text-main);
}

.quote {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--light-bg);
    position: absolute;
    top: -20px;
    left: -15px;
    z-index: -1;
    font-family: serif;
}

.author strong {
    display: block;
    color: var(--primary-color);
}

.author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 
   ========================================
   Footer
   ========================================
*/
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

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

.footer-brand p {
    color: #b0bec5;
    max-width: 300px;
}

.footer-links h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 10px;
    color: #b0bec5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    color: #78909c;
    font-size: 0.9rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* 
   ========================================
   Modal Styles
   ========================================
*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-box {
    transform: translateY(0);
}

.modal-icon {
    font-size: 4rem;
    color: #10B981; /* Success Green */
    margin-bottom: 20px;
}

.modal-box h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.modal-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Modal Form Styles */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.15);
}

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin: 1.5rem 0; }

/* 
   ========================================
   Responsive Design
   ========================================
*/
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-btn { display: none; }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        font-weight: 600;
    }

    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions { flex-direction: column; gap: 15px; }
    
    .countdown { gap: 10px; }
    .time-box { min-width: 50px; padding: 8px; }
    .time-box span { font-size: 1.4rem; }
    .colon { font-size: 1.2rem; }
    
    .py-section { padding: 50px 0; }
    .section-title { font-size: 2rem; }
    
    .footer-content { flex-direction: column; text-align: center; gap: 30px; }
    .footer-brand p { margin: 0 auto; }
    .footer-links ul li { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .countdown { flex-wrap: wrap; justify-content: center; }
    .colon { display: none; }
    .discount-banner { width: 100%; text-align: center; }
    .discount-info { justify-content: center; }
}

/* Toast Notifications - Centered Globally */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.toast {
    background: white;
    color: #333;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-top: 4px solid var(--primary-color);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success { border-top-color: #10B981; }
.toast-success i { color: #10B981; }

.toast-error, .toast-danger { border-top-color: #EF4444; }
.toast-error i, .toast-danger i { color: #EF4444; }

.toast-warning { border-top-color: #F59E0B; }
.toast-warning i { color: #F59E0B; }

.toast-info { border-top-color: #3B82F6; }
.toast-info i { color: #3B82F6; }

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

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

/* Custom Alert Overlay Modal */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.custom-alert-overlay.show {
    opacity: 1;
}

.custom-alert-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.custom-alert-overlay.show .custom-alert-box {
    transform: scale(1);
}

.custom-alert-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-alert-icon i.text-success {
    color: #10B981;
}

.custom-alert-icon i.text-danger {
    color: #EF4444;
}

.custom-alert-icon i.text-warning {
    color: #F59E0B;
}

.custom-alert-icon i.text-info {
    color: #3B82F6;
}

.custom-alert-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.custom-alert-message {
    font-size: 0.975rem;
    color: #64748B;
    line-height: 1.5;
    margin-bottom: 24px;
    font-family: 'Montserrat', sans-serif;
}

.custom-alert-btn {
    background-color: var(--primary-color, #1A237E);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(26, 35, 126, 0.2);
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

.custom-alert-btn:hover {
    background-color: var(--secondary-color, #12185C);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(26, 35, 126, 0.3);
}

.custom-alert-btn:active {
    transform: translateY(0);
}
