﻿/* CSS Variables & Reset */
/* CSS Variables & Reset */
:root {
    --primary: #4f46e5;
    --primary-bright: #6366f1;
    --accent: #f472b6;
    --accent-bright: #fb7185;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.75);
    --glass-border: rgba(255, 255, 255, 0.15);

    /* Brighter Gradients */
    --gradient-primary: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    /* Cyan to Blue */
    --gradient-accent: linear-gradient(135deg, #f472b6 0%, #fb923c 100%);
    /* Pink to Orange */
    --gradient-main: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);

    --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
    --glow-primary: 0 0 20px rgba(59, 130, 246, 0.5);
    --glow-accent: 0 0 20px rgba(244, 114, 182, 0.5);

    /* Green Gradient for PPOB */
    --gradient-success: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --glow-success: 0 0 20px rgba(52, 211, 153, 0.5);
}

/* ... (Existing Reset & global styles remain roughly compatible, skipping strict check for now as we focus on specific selectors) ... */

/* UPDATED ICON STYLES */

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Add shimmer effect to icons */
.card-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.accessibility-card:hover .card-icon::after {
    left: 100%;
}

.accessibility-card:hover .card-icon {
    transform: scale(1.1) rotate(3deg);
}

.sales-icon {
    background: var(--gradient-primary);
    box-shadow: var(--glow-primary);
    animation: pulse-blue 3s infinite;
}

.bill-icon {
    background: var(--gradient-accent);
    box-shadow: var(--glow-accent);
    animation: pulse-pink 3s infinite;
}

.ppob-icon {
    background: var(--gradient-success);
    box-shadow: var(--glow-success);
    animation: pulse-green 3s infinite;
}

/* Apply float animation to cards */
.accessibility-card {
    display: flex;
    align-items: center;
    padding: 24px;
    gap: 20px;
    position: relative;
    overflow: hidden;
    animation: float-card 4s infinite alternate ease-in-out;
}

/* Stagger the second card */
.accessibility-card:nth-child(2) {
    animation-delay: 2s;
}

.accessibility-card:nth-child(3) {
    animation-delay: 1s;
}

.accessibility-card:hover {
    transform: translateY(-5px) scale(1.02);
    /* Combined with float, this might need care, but using hover state to pause or enhance */
    animation-play-state: paused;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* ... existing code ... */

.sales-icon {
    background: var(--gradient-primary);
    box-shadow: var(--glow-primary);
    animation: pulse-blue 2s infinite;
    /* Faster pulse */
}

.bill-icon {
    background: var(--gradient-accent);
    box-shadow: var(--glow-accent);
    animation: pulse-pink 2s infinite;
    /* Faster pulse */
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

@keyframes pulse-pink {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(244, 114, 182, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(244, 114, 182, 0);
    }
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Animations */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, #1e1b4b, transparent 40%),
        radial-gradient(circle at bottom right, #312e81, transparent 40%);
    z-index: -1;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: 10%;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: 10%;
    left: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 80px);
    }
}

@keyframes float-card {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo i {
    color: var(--accent);
}

.highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item:hover {
    color: var(--text-main);
}

.btn-nav {
    padding: 10px 24px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.btn-mobile {
    display: none;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* navbar spacing */
    position: relative;
    padding-bottom: 40px;
    /* Added padding bottom to prevent cut-off */
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: slideUp 0.8s ease-out;
}

.badge-new {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #a5b4fc;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Portal Selector */
.hero-form {
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.portal-selector {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}




.card-info {
    flex: 1;
}

.card-info h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.card-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-access {
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-sales {
    background: var(--primary);
    color: white;
}

.btn-sales:hover {
    background: var(--primary-dark);
}

.btn-bill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-bill:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-ppob {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-ppob:hover {
    background: rgba(16, 185, 129, 0.2);
    color: white;
    border-color: #10b981;
}

.trusted-badge {
    text-align: center;
    margin-top: 24px;
}

.trusted-badge p {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
}

@media (max-width: 480px) {
    .accessibility-card {
        padding: 16px;
        /* Reduced from 24px/30px */
        gap: 12px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        border-radius: 14px;
    }

    .card-info h3 {
        font-size: 1.1rem;
    }

    .card-info p {
        font-size: 0.8rem;
    }

    .btn-access {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* Features Grid */
.features {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--dark-surface);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.color-1 {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
}

.color-2 {
    background: rgba(236, 72, 153, 0.1);
    color: #f472b6;
}

.color-3 {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h5 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 20px;
        /* Reduced from 40px */
        gap: 40px;
        /* Reduced from 60px */
        text-align: center;
    }

    .hero-section {
        min-height: auto;
        /* Remove 100vh constraint */
        padding-bottom: 60px;
    }

    .hero-content {
        margin: 0 auto;
        padding: 0 10px;
    }

    .hero-title {
        font-size: 2.2rem;
        /* Reduced from 2.5rem/3.5rem */
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-stats {
        justify-content: center;
        padding-top: 20px;
        gap: 20px;
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .btn-mobile {
        display: inline-block;
        font-size: 0.9rem;
        padding: 8px 20px;
    }

    .hero-form {
        max-width: 100%;
        /* Use full width on mobile */
        padding: 0 10px;
    }

    .stats-item {
        align-items: center;
    }

    .features {
        padding: 50px 0;
        /* Reduced from 100px */
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* =========================================
   PREMIUM MODAL & FORM STYLES
   ========================================= */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Card */
.modal-content {
    width: 90%;
    max-width: 480px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    transform: translateY(40px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    transform: rotate(90deg);
}

/* Header */
.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header h3 {
    font-size: 1.75rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    font-weight: 700;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Premium Form Inputs */
.register-form .input-group {
    margin-bottom: 20px;
}

.register-form label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    margin-left: 4px;
}

.input-wrapper {
    position: relative;
}

.register-form input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px 16px 14px 50px;
    /* Left padding for icon */
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.register-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    /* Default icon color */
    font-size: 1.2rem;
    transition: all 0.3s;
    pointer-events: none;
}

/* Icon Highlight on Focus */
.input-wrapper input:focus+.input-icon,
.input-wrapper input:not(:placeholder-shown)+.input-icon {
    color: var(--primary);
}

/* Location Button */
.location-wrapper input {
    padding-right: 110px;
    /* Space for button */
}

.btn-location {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary-bright);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-location:hover {
    background: var(--primary);
    color: white;
}

.btn-location.success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: #059669;
}

/* Premium Submit Button */
.register-form .btn-primary {
    margin-top: 30px;
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    border-radius: 16px;
    /* Added rounded corners */
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.register-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    z-index: -1;
    animation: btn-shine 3s infinite;
}

.register-form .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

@keyframes btn-shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Billing Modal Options */
.bill-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-bill-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn-bill-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: currentColor;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Week Colors */
.btn-bill-option:nth-child(1):hover {
    color: #f87171;
    text-shadow: 0 0 10px rgba(248, 113, 113, 0.4);
}

/* Red */
.btn-bill-option:nth-child(2):hover {
    color: #facc15;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

/* Yellow */
.btn-bill-option:nth-child(3):hover {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

/* Green */
.btn-bill-option:nth-child(4):hover {
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.4);
}

/* Blue */

.btn-bill-option i {
    color: var(--text-muted);
    transition: color 0.3s;
}

.btn-bill-option:hover i {
    color: currentColor;
}