@import './style.css';

/* =======================
   VARIABLES
======================= */
:root {
    --primary: #0f172a;
    --secondary: #9ca3af;
    --accent: #facc15;

    --text-main: #ffffff;
    --text-muted: #9ca3af;

    --bg-dark: #0b1220;
    --border: rgba(255, 255, 255, 0.08);
}

/* =======================
   GLOBAL
======================= */
body {
    font-family: "Poppins", sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

section {
    position: relative;
}

/* =======================
   UTILITIES
======================= */
.text-primary-color {
    color: var(--primary);
}

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

.text-accent-color {
    color: var(--accent);
}

.font-rajdhani {
    font-family: Rajdhani, sans-serif;
}

.font-orbitron {
    font-family: Orbitron, sans-serif;
}

.bg-primary-color {
    background-color: var(--primary);
    /* atau warna primary kamu */
}

.bg-primary-color a {
    color: var(--accent) !important;
}

.bg-primary-color a:hover {
    opacity: 0.8;
}

.heading{
    font-family: Orbitron; font-weight:700;
    color: var(--accent);
}
.sub-heading {
    letter-spacing: 3px;
    color: var(--secondary);
    font-size: 12px;
    margin-bottom: 40px;
}

/* =======================
   NAVBAR
======================= */
.custom-navbar {
    background: rgba(11, 18, 32, 0.8);
    backdrop-filter: blur(12px);
}

.custom-navbar .nav-link {
    color: var(--text-main);
    font-family: Rajdhani, sans-serif;
    transition: 0.3s;
}

.custom-navbar .nav-link:hover {
    color: var(--accent);
}

.copyright {
    position: relative;
    z-index: 5;
    color: var(--accent);
}

/* =======================
   BUTTON
======================= */
.btn-yellow {
    background: linear-gradient(135deg, #ffcc00, #ffb300);
    color: #111;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 18px;
    border: none;
    transition: 0.3s;
}

.btn-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 204, 0, 0.25);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: 10px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* =======================
   HERO
======================= */
.hero {
    position: relative;
    background: url("/build/img/hero-bg.jpg") center/cover no-repeat;
    min-height: 100vh;
    padding-top: 80px;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(5px);
    transform: scale(1.1);
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 32, 0.6);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.badge-custom {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.15);
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero::before {
        background: rgba(11, 18, 32, 0.85);
    }
}

/* =======================
   BRAND
======================= */
.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0.7;
    transition: 0.3s;
}

.brand-logo {
    width: 120px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

.brand-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-name {
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: #cbd5e1;
    margin: 0;
}

.swiper-slide.brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 576px) {
    #brands {
        padding: 40px 0 !important;
    }

    .brand-logo {
        width: 90px;
        height: 50px;
    }

    .brand-name {
        font-size: 10px;
    }
}

/* =======================
   PRODUCT
======================= */
#products {
    background: var(--bg-dark);
    padding: 60px 0;
}

#products h2 {
    font-size: 28px;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(250, 204, 21, 0.12);
}

.product-image {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    padding: 10px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 10px;
}

.product-name {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 13px;
    color: var(--text-main);
}

.view-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #facc15;
    font-weight: 600;
    font-size: 14px;
    min-height: 140px;
    border: 1px dashed rgba(255, 204, 0, 0.4);
    transition: 0.3s;
}

.view-more-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(250, 204, 21, 0.15);
}

.view-more-card:hover .view-more {
    transform: scale(1.05);
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.view-more-card .product-image {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px dashed rgba(250, 204, 21, 0.4);
}

@media (max-width: 576px) {
    .product-image {
        height: 120px;
    }

    .product-info h6 {
        font-size: 12px;
    }

    .product-info span {
        font-size: 11px;
    }
}

/* =======================
   SEARCH
======================= */
.search-box {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
}

/* =======================
   SHIMMER
======================= */
.shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.12) 37%,
            rgba(255, 255, 255, 0.05) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.2s infinite;
}

.shimmer-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shimmer-img {
    height: 160px;
    border-radius: 10px;
}

.shimmer-text {
    width: 60%;
    height: 10px;
    border-radius: 6px;
}

.shimmer-line {
    height: 12px;
    border-radius: 6px;
}

.shimmer-line.short {
    width: 60%;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* =======================
   GALLERY
======================= */
.gallery-img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    border-radius: 12px;
}

#gallery p {
    font-size: 13px;
    color: #9ca3af;
}

.gallerySwiper {
    touch-action: pan-y;
}

.gallery-item {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    #gallery {
        padding: 50px 0;
    }

    .gallery-img {
        height: 200px;
        border-radius: 14px;
    }

    .gallerySwiper {
        padding: 0 10px 30px;
    }

    .gallery-item {
        border-radius: 14px;
    }
}

/* =======================
   TESTIMONIAL
======================= */
.testimonials {
    padding: 80px 20px;
    background: url("/build/img/detail-product-bg.jpg") center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.testimonials .overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 32, 0.92);
    z-index: 1;
}

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

.testimonialsSwiper .swiper-wrapper {
    align-items: stretch;
}

.testimonialsSwiper .swiper-slide {
    height: auto;
    display: flex;
}

.testimonial-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 20px;
    min-height: 240px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 204, 0, 0.5);
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
    border: 2px solid #ffcc00;
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.6;
    min-height: 70px;
}

.testimonial-name {
    font-weight: 600;
    margin-top: 12px;
    color: #fff;
}

.testimonial-role {
    font-size: 12px;
    color: #9ca3af;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--accent) !important;
}

/* =======================
   CONTACT
======================= */
#contact {
    background-color: #0b1220;
    padding: 80px 0;
    color: white;
}

.contact-us form {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.contact-us .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
}

.contact-us .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-us .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: none;
}

.contact-us .form-label {
    font-size: 13px;
    margin-bottom: 6px;
    color: #cbd5e1;
}

@media (max-width: 768px) {
    #contact {
        padding: 50px 15px;
    }

    .contact-us .btn-yellow {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
}

/* =======================
   ABOUT
======================= */
.about {
    position: relative;
    background: url("/build/img/detail-product-bg.jpg") center/cover no-repeat fixed;
}

.about .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(11, 18, 32, 0.9), rgba(11, 18, 32, 0.7));
    z-index: 1;
}

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

.about-title {
    color: white;
    font-family: Rajdhani, sans-serif;
}

.about-description {
    text-align: left;
}

.about-content,
.stats-container {
    position: relative;
    z-index: 2;
}

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

.stat-item {
    padding: 14px;
    border-radius: 14px;
    text-align: center;
}

.stat-item {
    backdrop-filter: blur(12px);
}

.icon-box {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    background: rgba(255, 204, 21, 0.12);
    border: 1px solid rgba(255, 204, 21, 0.25);
    color: #ffcc00;
    font-size: 18px;
}

.logo-header {}

.main-logo {
    height: 60px;
    /* Sesuaikan ukuran */
    width: auto;
    max-width: 200px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(255, 193, 7, 0.5));
}

/* Responsive Logo */
@media (max-width: 768px) {
    .logo-header {
        top: 15px;
        padding: 8px 20px;
    }

    .main-logo {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .main-logo {
        height: 40px;
    }
}

/* Pastikan overlay tidak menutupi logo */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Sedikit transparan */
    z-index: 1;
}

@media (max-width: 576px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .about {
        background-attachment: scroll;
    }

    .about-title {
        font-size: 22px;
        text-align: center;
    }

    .about-description {
        font-size: 13px;
        text-align: left !important;
        line-height: 1.6;
    }

    .about-content {
        text-align: center;
    }

    .cta-buttons {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .stat-item p {
        font-size: 12px;
    }

    .counter-wrapper h3 {
        font-size: 20px;
    }

    .icon-box {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .about .row {
        flex-direction: column;
    }

    /* LEFT TEXT */
    .about .col-lg-6:first-child {
        order: 2;
    }

    /* STATS */
    .about .col-lg-6:last-child {
        order: 1;
        margin-bottom: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .cta-buttons a {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 10px;
    }
}

/* =======================
   FOOTER
======================= */

@media (max-width: 768px) {
    .copyright .row {
        flex-direction: column;
        text-align: center;
    }

    .copyright .col-md-6 {
        text-align: center !important;
    }

    .copyright {
        padding: 16px 10px;
    }

    .copyright p {
        font-size: 12px;
        line-height: 1.6;
    }

    .social-icons a {
        display: inline-flex;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: 0.3s;
    }

    .social-icons a:hover {
        background: rgba(255, 255, 255, 0.08);
    }
}

/* =======================
   MOBILE
======================= */
@media (max-width: 576px) {
    #products {
        padding: 40px 0;
    }

    #products h2 {
        font-size: 22px;
    }

    .product-name {
        font-size: 13px;
    }

    .product-price {
        font-size: 12px;
    }

    .gallery-img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
    }
}