/* Custom CSS for Q-Booth */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-bg: #f8fafc;
    --dark-bg: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    scroll-behavior: smooth;
}

/* Utility Classes */
.font-inter {
    font-family: 'Inter', sans-serif;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    background: #000; /* Tambahkan background hitam */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* Navigation Styles */
nav {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
.floating {
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

/* Hero background styling */
#home {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
}

/* Enhanced text contrast */
#home h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#home p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(1px);
}

/* Button enhancements for overlay */
.btn-primary, .btn-secondary {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    #home {
        min-height: 100vh;
    }
    
    #home .floating {
        animation: float 6s ease-in-out infinite;
    }
}

/* Stats Animation */
.stats-number {
    counter-reset: num var(--num, 0);
}

.stats-number::after {
    content: counter(num);
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.icon-container {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    transition: all 0.3s ease;
}

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

.feature-card:hover .icon-container i {
    color: white !important;
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* Mobile Menu */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Form Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
    border-color: transparent;
}

/* Loading Animation */
.loading {
    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);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

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

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

/* Background Patterns */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(37, 99, 235, 0.1) 1px, transparent 0);
    background-size: 20px 20px;
}

/* Text Effects */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

/* Strategy Report Styles */
:root {
    --bg: #0b1220;
    --card: #121a2b;
    --muted: #1a243a;
    --text: #e9eefc;
    --sub: #aab6d6;
    --accent: #2d6cdf;
    --accent-2: #7aa2ff;
    --link: #8cc2ff;
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --chip: #1b2741;
    --chip-text: #ccdafb;
    --yes: #1fa97a;
    --no: #d9534f;
    --limited: #ffb020;
}

body.light {
    --bg: #f7f9fd;
    --card: #ffffff;
    --muted: #e9eef7;
    --text: #0c1633;
    --sub: #4b587a;
    --accent: #2153b8;
    --accent-2: #3f82ff;
    --link: #2153b8;
    --shadow: 0 10px 30px rgba(18,32,80,.10);
    --chip: #eef3ff;
    --chip-text: #2a3763;
    --yes: #0f7a5d;
    --no: #b12a21;
    --limited: #c88400;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.title {
    font-weight: 900;
    font-size: clamp(26px, 4.6vw, 42px);
    line-height: 1.08;
    margin: .3rem 0;
}

.subtitle {
    color: var(--sub);
    margin: .2rem 0 .4rem;
}

.toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow);
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.secondary {
    background: var(--muted);
    color: var(--text);
}

.card {
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin: 18px 0;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.06);
}

h2 {
    margin: 0 0 8px 0;
    font-size: clamp(20px, 3.6vw, 28px);
}

h3 {
    margin: 18px 0 8px 0;
    font-size: clamp(18px, 3vw, 22px);
}

p {
    margin: .55rem 0;
}

ul {
    margin: .3rem 0 .6rem 1.1rem;
}

.toc a {
    display: block;
    color: var(--link);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
}

.toc a:hover {
    background: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 720px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.chip {
    display: inline-block;
    background: var(--chip);
    color: var(--chip-text);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    margin: 2px 6px 2px 0;
}

.insight {
    background: var(--muted);
    border-left: 6px solid var(--accent-2);
    padding: 12px 14px;
    border-radius: 12px;
    margin-top: 10px;
}

.table-scroller {
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.07);
}

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 760px;
    background: var(--card);
}

thead th {
    position: sticky;
    top: 0;
    background: var(--muted);
    color: var(--text);
    text-align: left;
    padding: 12px 14px;
    font-weight: 800;
}

tbody td {
    padding: 10px 14px;
    border-top: 1px solid rgba(255,255,255,.06);
}

tr:hover td {
    background: rgba(255,255,255,.03);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
}

.yes {
    background: color-mix(in oklab, var(--yes) 22%, transparent);
    color: var(--yes);
    border: 1px solid color-mix(in oklab, var(--yes) 60%, transparent);
}

.no {
    background: color-mix(in oklab, var(--no) 15%, transparent);
    color: var(--no);
    border: 1px solid color-mix(in oklab, var(--no) 55%, transparent);
}

.limited {
    background: color-mix(in oklab, var(--limited) 18%, transparent);
    color: var(--limited);
    border: 1px solid color-mix(in oklab, var(--limited) 55%, transparent);
}

.pricing {
    white-space: nowrap;
}

.label {
    font-weight: 800;
    color: var(--sub);
}

footer {
    color: var(--sub);
    text-align: center;
    margin: 28px 0 10px;
}

.spacer {
    height: 6px;
}