/* ============================================================
   IDSignage.Tech — Laman Web Utama (Hub)
   Tema: Gelap + aksen biru/ungu (induk), kad aplikasi pelbagai warna
   ============================================================ */

:root {
    --bg: #0f172a;
    --bg-soft: #1e293b;
    --bg-card: #1e293b;
    --bg-alt: #16233b;
    --border: #334155;
    --border-soft: rgba(148, 163, 184, 0.15);
    --text: #e2e8f0;
    --text-strong: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --primary: #3b82f6;
    --primary-soft: rgba(59, 130, 246, 0.15);
    --primary-glow: rgba(59, 130, 246, 0.35);
    --purple: #8b5cf6;
    --red: #e11d48;
    --green: #10b981;
    --amber: #f59e0b;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
    --radius: 18px;
    --radius-sm: 12px;
    --transition: 0.25s ease;
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* --- Light Theme --- */
.theme-light {
    --bg: #f1f5f9;
    --bg-soft: #ffffff;
    --bg-card: #ffffff;
    --bg-alt: #eef2f7;
    --border: #dbe2ea;
    --border-soft: rgba(51, 65, 85, 0.12);
    --text: #1e293b;
    --text-strong: #0f172a;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --primary-soft: rgba(59, 130, 246, 0.08);
    --primary-glow: rgba(59, 130, 246, 0.18);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.15);
}

/* ============ RESET ============ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.muted {
    color: var(--muted);
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.5);
}

.btn-ghost {
    background: var(--primary-soft);
    color: var(--primary);
}
.btn-ghost:hover {
    background: rgba(59, 130, 246, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary-soft);
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: var(--bg);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-soft);
    padding: 10px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-size: 15px;
    color: var(--text-strong);
}

.brand-text strong {
    font-weight: 800;
    font-size: 17px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition: color var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition);
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-strong);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: 150px 0 90px;
    overflow: hidden;
    background: var(--bg);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -150px;
    left: -100px;
}

.glow-2 {
    width: 450px;
    height: 450px;
    background: var(--purple);
    bottom: -150px;
    right: -100px;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-inner {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-logo {
    width: 110px;
    height: auto;
    margin-bottom: 4px;
    filter: drop-shadow(0 8px 24px var(--primary-glow));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 40px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--border-soft);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: var(--text-strong);
    line-height: 1.15;
    max-width: 800px;
}

.hero-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--muted);
    max-width: 640px;
}

.hero-subtitle strong {
    color: var(--text-strong);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 8px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    justify-content: center;
    margin-top: 28px;
}

.hero-stats .stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-strong);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

/* ============ SECTIONS ============ */
.section {
    padding: 90px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--text-strong);
    margin-bottom: 12px;
}

.section-head p {
    color: var(--muted);
    font-size: 16px;
}

/* ============ APPS GRID (MENU UTAMA) ============ */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 28px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
}

.app-card-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.app-card:hover .app-card-glow {
    opacity: 0.28;
}

/* Warna tema setiap aplikasi */
.app-blue {
    --app-color: #3b82f6;
}
.app-purple {
    --app-color: #8b5cf6;
}
.app-red {
    --app-color: #e11d48;
}

.app-card-glow {
    background: var(--app-color);
}

.app-card:hover {
    box-shadow: 0 20px 50px color-mix(in srgb, var(--app-color) 25%, transparent);
    border-color: color-mix(in srgb, var(--app-color) 60%, transparent);
}

.app-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-number {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    color: var(--border);
    transition: color 0.3s ease;
}

.app-card:hover .app-number {
    color: var(--app-color);
}

.app-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 40px;
    background: color-mix(in srgb, var(--app-color) 12%, transparent);
    color: var(--app-color);
}

.app-logo-wrap {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-logo {
    max-height: 90px;
    max-width: 100%;
    width: auto;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
    transition: transform 0.35s ease;
}

.app-card:hover .app-logo {
    transform: scale(1.06);
}

.app-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-strong);
}

.app-desc {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.65;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 2px;
}

.app-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text);
}

.app-features li i {
    width: 20px;
    color: var(--app-color);
    font-size: 14px;
}

.app-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
    font-size: 14px;
    font-weight: 700;
    color: var(--app-color);
    transition: gap 0.3s ease;
}

.app-card:hover .app-open {
    gap: 14px;
}

/* ============ TENTANG ============ */
.about-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.about-brand {
    text-align: center;
    padding-right: 28px;
    border-right: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.about-logo {
    width: 110px;
    height: auto;
}

.about-brand h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-strong);
}

.about-desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.about-desc p {
    color: var(--text);
    font-size: 15.5px;
}

.about-desc blockquote {
    padding: 14px 20px;
    border-left: 4px solid var(--primary);
    background: var(--primary-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-strong);
    font-weight: 500;
}

/* ============ HUBUNGI ============ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

a.contact-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}

.contact-item span {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-strong);
}

/* Kad merentasi lebar penuh (diguna oleh Alamat) */
.contact-item--wide {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .contact-item--wide {
        grid-column: auto;
    }
}

/* ============ FOOTER ============ */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-soft);
    padding: 48px 0 24px;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    height: 44px;
    width: auto;
}

.footer-brand strong {
    font-size: 17px;
    color: var(--text-strong);
}

.footer-brand p {
    font-size: 13.5px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--muted);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copy {
    text-align: right;
}

.footer-copy p {
    font-size: 13.5px;
    color: var(--text);
}

.footer-copy .muted {
    font-size: 12.5px;
    margin-top: 4px;
}

/* ============ RESPONSIF ============ */
@media (max-width: 992px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-card {
        grid-template-columns: 1fr;
    }

    .about-brand {
        padding-right: 0;
        padding-bottom: 28px;
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        padding: 90px 32px 32px;
        gap: 24px;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        align-items: flex-start;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions .btn {
        display: none;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 120px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .footer-copy {
        text-align: left;
    }
}