/* ============================================================
   Borneo Ponsel — Premium B2C Phone Store
   Modern light theme with electric blue accents
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #fcfcfc;
    --bg-surface: #f1f3f5;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #868e96;
    --accent: #4f6ef7;
    --accent-light: #6b8aff;
    --accent-glow: rgba(79, 110, 247, 0.25);
    --accent-gradient: linear-gradient(135deg, #4f6ef7 0%, #8b5cf6 100%);
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, .12);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Utility overrides ─────────────────────────────── */
.text-primary {
    color: var(--accent) !important;
}

.btn-primary {
    background: var(--accent-gradient) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* ============================================================
   HERO / BANNER CAROUSEL
   ============================================================ */
.banner-hero-section {
    position: relative;
    margin-top: -76px;
}

.banner-hero-section .carousel-item {
    height: 92vh;
    min-height: 600px;
    position: relative;
}

.banner-image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 8s ease;
    /* Removed brightness filter so image shows fully */
}

.carousel-item.active .banner-image {
    transform: scale(1.08);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Lighter overlay for text readability but still showing the image clearly */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%) !important;
    opacity: 1 !important;
}

.banner-container {
    position: relative;
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-title {
    letter-spacing: -2px;
    line-height: 1.05;
    color: #fff !important;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    animation: heroFadeUp .8s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    line-height: 1.7;
    font-weight: 500;
    color: #f8f9fa !important;
    animation: heroFadeUp .8s ease-out .15s both;
    max-width: 520px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.banner-button-wrapper {
    animation: heroFadeUp .8s ease-out .3s both;
}

.banner-button {
    background: var(--accent-gradient) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 20px var(--accent-glow);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .03em;
    transition: var(--transition);
}

.banner-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px var(--accent-glow) !important;
}

/* Carousel controls */
.carousel-indicators button {
    width: 32px !important;
    height: 4px !important;
    border-radius: var(--radius-pill) !important;
    background-color: rgba(255, 255, 255, .5) !important;
    border: none !important;
    margin: 0 4px !important;
    transition: var(--transition);
}

.carousel-indicators button.active {
    background-color: var(--accent) !important;
    width: 48px !important;
}

.carousel-control-prev,
.carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    border-radius: 50%;
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.carousel-control-prev {
    left: 24px;
}

.carousel-control-next {
    right: 24px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: #ffffff !important;
    border-color: var(--border) !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   FALLBACK HERO
   ============================================================ */
.hero-section {
    background: var(--bg-primary);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 20% 50%, rgba(79, 110, 247, 0.1), transparent);
    pointer-events: none;
}

.hero-section h1 {
    color: var(--text-primary);
    letter-spacing: -2px;
    line-height: 1.1;
    position: relative;
}

.hero-section h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section .lead {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 400;
}

.hero-section .btn-outline-dark {
    border: 1.5px solid var(--border-hover) !important;
    color: var(--text-primary) !important;
    background: transparent !important;
}

.hero-section .btn-outline-dark:hover {
    background: var(--bg-secondary) !important;
    border-color: var(--border) !important;
}

.hero-image-placeholder {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 60px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.hero-image-placeholder i {
    font-size: 10rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: .8;
}

/* ============================================================
   BRAND LOGOS STRIP
   ============================================================ */
.brands-strip-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    padding: 20px 0;
}

.brands-strip-label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.brands-strip-logos {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.brands-strip-logos img {
    height: 28px;
    width: auto;
    object-fit: contain;
    /* Removed inverted filters to show actual logos */
    transition: var(--transition);
}

.brands-strip-logos img:hover {
    transform: scale(1.05);
}

/* ============================================================
   PROMO TILES
   ============================================================ */
.promo-tiles-section {
    background: var(--bg-primary);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.promo-tile {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.8rem;
    transition: var(--transition);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.promo-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.promo-tile-dark {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
}

.promo-tile-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, .25), transparent 60%);
}

.promo-tile-light {
    background: var(--bg-card);
    color: var(--text-primary);
}

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

.promo-tile h5 {
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: .3rem;
}

.promo-tile p {
    font-size: .85rem;
    opacity: .9;
    margin-bottom: .8rem;
}

.promo-tile .btn {
    font-size: .78rem;
    font-weight: 700;
    padding: .45rem 1rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.promo-tile-dark .btn {
    background: #fff;
    color: var(--accent);
    border: none;
}

.promo-tile-dark .btn:hover {
    background: rgba(255, 255, 255, .95);
    transform: translateY(-1px);
}

.promo-tile-light .btn {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
}

.promo-tile-light .btn:hover {
    opacity: .9;
}

/* ============================================================
   SECTION HEADS & PRODUCT CARDS
   ============================================================ */
.section-head {
    border-bottom: 2px solid var(--border);
    padding-bottom: .6rem;
    margin-bottom: 1.8rem;
}

.section-head h3 {
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text-primary);
    margin: 0;
    font-size: 1.5rem;
}

.section-head a {
    font-size: .82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.section-head a:hover {
    color: var(--accent-light);
}

.sort-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.sort-bar span {
    padding: .28rem .75rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.sort-bar span:hover,
.sort-bar span.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform .5s ease;
    /* Removed grayscale filters so images are full color */
}

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

.product-card .img-placeholder {
    height: 220px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .img-placeholder i {
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: .4;
}

.product-card .card-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card .card-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: .15rem;
    letter-spacing: -.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .brand-label {
    font-size: .7rem;
    color: var(--accent);
    margin-bottom: .45rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.product-card .price-final {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.02em;
}

.product-card .price-original {
    font-size: .78rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: .35rem;
}

.product-card .badge-discount {
    display: inline-block;
    font-size: .6rem;
    font-weight: 700;
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
    padding: .2rem .45rem;
    border-radius: var(--radius-sm);
    margin-left: .3rem;
}

.product-card .stars {
    color: var(--warning);
}

.product-card .stars .bi-star {
    color: var(--text-muted);
    opacity: .3;
}

.product-card .stars .bi-star-fill {
    color: var(--warning);
}

.product-card .review-count {
    font-size: .7rem;
    color: var(--text-muted);
}

.product-card .card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.product-card .btn-add-cart {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 700;
    padding: .55rem;
    transition: var(--transition);
}

.product-card .btn-add-cart:hover {
    box-shadow: 0 4px 15px var(--accent-glow);
    transform: translateY(-1px);
}

.product-card .btn-detail {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .78rem;
    font-weight: 600;
    padding: .45rem;
    transition: var(--transition);
}

.product-card .btn-detail:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(79, 110, 247, .05);
}

/* ============================================================
   BRAND SHOWCASE
   ============================================================ */
.brands-showcase-section {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.brands-showcase-eyebrow {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0;
}

.brands-showcase-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text-primary);
    margin: 0;
}

.brands-showcase-lead {
    font-size: .88rem;
    color: var(--text-secondary);
    max-width: 32rem;
}

.brands-showcase-all-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem 1.2rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.brands-showcase-all-link:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(79, 110, 247, 0.15);
    color: var(--accent-light);
    transform: translateY(-2px);
}

.brand-showcase-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    animation: cardFadeIn .6s ease backwards;
    box-shadow: var(--shadow-sm);
}

.brand-showcase-card:nth-child(1) {
    animation-delay: 0ms;
}

.brand-showcase-card:nth-child(2) {
    animation-delay: 60ms;
}

.brand-showcase-card:nth-child(3) {
    animation-delay: 120ms;
}

.brand-showcase-card:nth-child(4) {
    animation-delay: 180ms;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.brand-showcase-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.brand-showcase-logo-wrap {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.brand-showcase-logo {
    max-height: 80px;
    max-width: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
    /* Removed inverted filters to show actual logos */
}

.brand-showcase-card:hover .brand-showcase-logo {
    transform: scale(1.08);
}

.brand-showcase-initial {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    background: rgba(79, 110, 247, .1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-showcase-card .card-body {
    padding: 1.1rem;
}

.brand-showcase-card h6 {
    font-weight: 700;
    color: var(--text-primary);
}

.brand-showcase-card .text-muted {
    font-size: .72rem !important;
    color: var(--text-secondary) !important;
}

.brand-showcase-card .btn-outline-dark {
    font-size: .8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: .42rem .8rem;
    border-color: var(--border) !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
}

.brand-showcase-card .btn-outline-dark:hover {
    background: var(--bg-surface) !important;
    border-color: var(--border-hover) !important;
    color: var(--text-primary) !important;
}

.brand-showcase-card .btn-link {
    font-size: .72rem;
    font-weight: 500;
    color: var(--text-muted) !important;
}

.brand-showcase-card .btn-link:hover {
    color: var(--accent) !important;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(79, 110, 247, 0.05), transparent 70%);
    pointer-events: none;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}

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

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(79, 110, 247, .1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.8rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h5 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: .88rem;
    margin: 0;
}

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

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767.98px) {
    .banner-hero-section .carousel-item {
        height: 75vh !important;
        min-height: 480px !important;
    }

    .banner-title {
        font-size: 2.2rem !important;
        letter-spacing: -1px;
    }

    .banner-subtitle {
        font-size: .95rem !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px !important;
        height: 40px !important;
    }

    .carousel-control-prev {
        left: 12px !important;
    }

    .carousel-control-next {
        right: 12px !important;
    }

    .brand-showcase-logo-wrap {
        height: 100px;
        padding: 12px;
    }

    .product-card .card-img-top {
        height: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .brand-showcase-card,
    .product-card,
    .feature-card,
    .promo-tile,
    .banner-image,
    .carousel-item .banner-image {
        transition: none !important;
        animation: none !important;
    }
}

/* ============================================================
   Borneo Ponsel — home-style.css
   Animations & utilities used by home.html (and reusable elsewhere).
   Tailwind via Play CDN handles 95% — this file holds keyframes
   and utility classes that are awkward to inline.
   ============================================================ */

/* Hero Ken Burns auto-zoom on the active slide image */
@keyframes kenburns {
    0% {
        transform: scale(1) translateZ(0);
    }

    100% {
        transform: scale(1.08) translateZ(0);
    }
}

.kenburns-active {
    animation: kenburns 12s ease-out infinite alternate;
}

/* Stagger fade-up for product/brand grids triggered by IntersectionObserver */
@keyframes fadeUpStagger {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

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

.stagger>* {
    opacity: 0;
}

.stagger.in-view>* {
    animation: fadeUpStagger 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger.in-view>*:nth-child(1) {
    animation-delay: 0ms;
}

.stagger.in-view>*:nth-child(2) {
    animation-delay: 80ms;
}

.stagger.in-view>*:nth-child(3) {
    animation-delay: 160ms;
}

.stagger.in-view>*:nth-child(4) {
    animation-delay: 240ms;
}

.stagger.in-view>*:nth-child(5) {
    animation-delay: 320ms;
}

.stagger.in-view>*:nth-child(6) {
    animation-delay: 400ms;
}

.stagger.in-view>*:nth-child(7) {
    animation-delay: 480ms;
}

.stagger.in-view>*:nth-child(8) {
    animation-delay: 560ms;
}

/* Subtle dot pattern overlay for promo tiles */
.dot-pattern {
    background-image: radial-gradient(rgba(26, 29, 41, 0.08) 1px, transparent 1px);
    background-size: 14px 14px;
}

/* Hide scrollbar on the mobile brand strip */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Reduced motion: disable kenburns + stagger */
@media (prefers-reduced-motion: reduce) {
    .kenburns-active {
        animation: none !important;
    }

    .stagger>* {
        opacity: 1 !important;
        animation: none !important;
    }
}