/* =========================================
   DASHBOARD.CSS - UmaThink Customer Dashboard
   ========================================= */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #f5b000;
    --primary-dark: #d99e00;
    --primary-light: #ffd54f;
    --primary-glow: rgba(245, 176, 0, 0.3);
    --secondary: #1a1a2e;
    --secondary-light: #16213e;
    --accent: #ff6b35;
    --text-dark: #1a1a2e;
    --text-medium: #555;
    --text-light: #888;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #fff9e6 0%, #ffffff 50%, #fff3cc 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 4px 30px rgba(245, 176, 0, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Variabel khusus STATS SECTION (mode terang = cream) */
    --stats-bg-from: #ffffff;
    --stats-bg-to: #ffffff;
    --stats-card-bg: rgba(26, 26, 46, 0.04);
    --stats-card-border: rgba(26, 26, 46, 0.08);
    --stats-card-hover-bg: rgba(26, 26, 46, 0.07);
    --stats-text: var(--text-dark);
    --stats-text-sub: var(--text-medium);
    --stats-glow: rgba(245, 176, 0, 0.08);
}

/* Dark Mode Overrides */
body.dark-mode {
    --bg-light: #0f0f1a;
    --bg-white: #1a1a2e;
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    --secondary: #0a0a14;
    --secondary-light: #0d0d1a;
    --text-dark: #f8f9fa;
    --text-medium: #d1d1e0;
    --text-light: #a0a0b8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);

    /* Variabel khusus STATS SECTION (mode gelap = hitam navy) */
    --stats-bg-from: #1a1a2e;
    --stats-bg-to: #16213e;
    --stats-card-bg: rgba(255, 255, 255, 0.06);
    --stats-card-border: rgba(255, 255, 255, 0.08);
    --stats-card-hover-bg: rgba(255, 255, 255, 0.1);
    --stats-text: #ffffff;
    --stats-text-sub: rgba(255, 255, 255, 0.6);
    --stats-glow: rgba(245, 176, 0, 0.1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- HERO SECTION ---------- */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--bg-gradient);
    overflow: hidden;
    padding: 100px 0 60px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -50px;
    left: -80px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 176, 0, 0.12);
    color: var(--primary-dark);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(245, 176, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge i {
    color: var(--primary);
    animation: pulse-star 2s ease-in-out infinite;
}

@keyframes pulse-star {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.button-wrapper {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(245, 176, 0, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text-dark);
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: rgba(245, 176, 0, 0.05);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Hero Image */
.hero-image {
    flex: 0 0 auto;
    position: relative;
    animation: fadeInRight 1s ease-out 0.4s both;
}

.hero-image img {
    width: 400px;
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    animation: hero-bounce 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.hero-image-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 0;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes hero-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.desktop-only {
    display: none;
}

/* ---------- FEATURES SECTION ---------- */
.features-section {
    padding: 100px 0;
    background: var(--bg-white);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(245, 176, 0, 0.1);
    color: var(--primary-dark);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-medium);
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid #f0f0f0;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(245, 176, 0, 0.12), rgba(245, 176, 0, 0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transform: scale(1.1);
}

.feature-card:hover .feature-icon i {
    color: #fff;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ---------- NEWS SLIDER SECTION ---------- */
.news-section {
    padding: 80px 0 20px;
    background: var(--bg-white);
}

.news-slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-header .section-badge {
    margin-bottom: 12px;
    background: rgba(245, 176, 0, 0.2);
    color: var(--primary);
}

.news-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.news-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding-bottom: 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(128, 128, 128, 0.1);
}

.news-slider::-webkit-scrollbar {
    height: 8px;
}

.news-slider::-webkit-scrollbar-track {
    background: rgba(128, 128, 128, 0.1);
    border-radius: 10px;
}

.news-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.news-card {
    flex: 0 0 calc(100% - 20px);
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: #000;
    aspect-ratio: 16/9;
}

@media (min-width: 768px) {
    .news-card {
        flex: 0 0 calc(80%);
    }
}

@media (min-width: 1024px) {
    .news-card {
        flex: 0 0 calc(60%);
        aspect-ratio: 21/9;
    }
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- STATS SECTION ---------- */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--stats-bg-from) 0%, var(--stats-bg-to) 100%);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stats-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--stats-glow) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--stats-card-bg);
    border: 1px solid var(--stats-card-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    background: var(--stats-card-hover-bg);
    transform: translateY(-5px);
    border-color: rgba(245, 176, 0, 0.3);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.stat-icon i {
    font-size: 1.4rem;
    color: #fff;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--stats-text);
    margin-bottom: 4px;
    transition: var(--transition);
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--stats-text-sub);
    font-weight: 500;
    transition: var(--transition);
}

/* ---------- CTA SECTION ---------- */
.cta-section {
    padding: 100px 0;
    background: var(--bg-gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 176, 0, 0.08) 0%, transparent 70%);
    bottom: -300px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--secondary);
    color: #fff;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    background: var(--primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #fff;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---------- RESPONSIVE ---------- */

/* Desktop large */
@media (min-width: 1024px) {
    .desktop-only {
        display: inline;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.6rem;
    }

    .hero-image img {
        width: 320px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 50px;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-image {
        display: none;
    }

    .hero-text {
        max-width: 100%;
    }

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

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .button-wrapper {
        justify-content: center;
    }

    .hero-image img {
        width: 280px;
        margin: 0 auto;
    }

    .hero-image-glow {
        width: 250px;
        height: 250px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 14px 32px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.7rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .button-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}