
/* =========================================
   RAFIF COPY CENTER - MODE GELAP PERMANEN
   ========================================= */

:root {
    /* Warna utama */
    --primary-color: #ff765c;
    --secondary-color: #38bdf8;
    --accent-color: #7dd3fc;

    /* Background */
    --bg-color: #0f172a;
    --card-bg: #1e293b;

    /* Warna teks */
    --text-color: #f1f5f9;
    --text-muted: #cbd5e1;
    --heading-color: #ffffff;

    /* Warna tambahan */
    --dark-color: #f8fafc;
    --light-color: #1e293b;
    --border-color: #475569;

    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s ease;

    /* Warna background animasi */
    --animation-bg: linear-gradient(
        -45deg,
        #020617,
        #0b1b32,
        #10243a,
        #10112d
    );
}

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

html {
    scroll-behavior: smooth;
    background: #020617;
}

/* Tampilan utama */
body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: transparent;
    position: relative;
    overflow-x: hidden;
    isolation: isolate;
}

/* =========================================
   BACKGROUND ANIMASI AURORA
   ========================================= */

.global-animation-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;

    background: var(--animation-bg);
    background-size: 400% 400%;
    animation: auroraGradient 18s ease infinite;
}

/* Cahaya pertama */
.global-animation-bg::before,
.global-animation-bg::after {
    content: "";
    position: absolute;
    width: min(65vw, 750px);
    height: min(65vw, 750px);
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.35;
    will-change: transform;
}

.global-animation-bg::before {
    top: -28%;
    left: -15%;

    background: radial-gradient(
        circle,
        #0891b2 0%,
        #1d4ed8 38%,
        transparent 72%
    );

    animation: auroraFloatOne 20s ease-in-out infinite alternate;
}

/* Cahaya kedua */
.global-animation-bg::after {
    right: -18%;
    bottom: -35%;

    background: radial-gradient(
        circle,
        #7c3aed 0%,
        #0e7490 38%,
        transparent 72%
    );

    animation: auroraFloatTwo 24s ease-in-out infinite alternate;
}

/* Canvas partikel */
#constellationCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

/* =========================================
   ANIMASI BACKGROUND
   ========================================= */

@keyframes auroraGradient {
    0% {
        background-position: 0% 50%;
    }

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

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

@keyframes auroraFloatOne {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(28vw, 18vh, 0) scale(1.2);
    }
}

@keyframes auroraFloatTwo {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(-25vw, -20vh, 0) scale(1.25);
    }
}

/* Menghormati pengaturan reduced motion */
@media (prefers-reduced-motion: reduce) {
    .global-animation-bg,
    .global-animation-bg::before,
    .global-animation-bg::after {
        animation: none !important;
    }
}







/* MODE GELAP */
body.dark-mode {
    --animation-bg: linear-gradient(
        -45deg,
        #020617,
        #0f172a,
        #172554,
        #0c4a6e
    );
}



/* GERAKAN GRADASI */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

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

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

#constellationCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

body.dark-mode .global-animation-bg {
    background: linear-gradient(135deg, #020812, #071321, #020812);
}







a {
    text-decoration: none;
    color: var(--text-color);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section Title --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    display: block;
    margin: 8px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--dark-color);
}

.btn-block {
    width: 100%;
}

/* --- Header & Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo span span {
    color: var(--text-color);
}

.nav-menu ul {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* --- Hero Section Responsif (Desktop & HP) --- */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    padding-top: 70px;
    z-index: 1;
    overflow: hidden;
}

/* Lapisan Foto Latar Belakang Hero Terpisah */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('canon.jpg') center center / cover no-repeat;
    z-index: -2;
}

/* Lapisan Overlay Transparan Gelap di Atas Hero */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 42, 75, 0.9);
    /* Atur transparansi overlay di sini */
    z-index: -1;
}

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

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px var(--text-muted);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(241, 234, 234, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* --- About Section --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    object-fit: cover;
}

.badge {
    background-color: rgba(238, 77, 45, 0.2);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.about-text h2 {
    font-size: 2rem;
    margin: 15px 0;
    color: var(--text-color);
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-color);
    transition: var(--transition);
}




/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card-service {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.card-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img {
    height: 180px;
    background-color: #ddd;
    overflow: hidden;
}

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

.card-body {
    padding: 25px 20px;
    position: relative;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Warna teks deskripsi pada kartu layanan */
.card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

/* --- Shopee Testimonials Section --- */
.shopee-summary {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
}

.rating-big {
    text-align: center;
    border-right: 1px solid var(--border-color);
    padding-right: 40px;
}

.rating-big .score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-big .out-of {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.rating-big .stars {
    color: #ffc107;
    margin-top: 5px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-btn {
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tag-btn.active,
.tag-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shopee-review-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 10px;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.user-meta h4 {
    font-size: 1rem;
    color: var(--text-color);
}

.stars-sm {
    color: #ffc107;
    font-size: 0.85rem;
}

.review-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.review-body p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-photos {
    display: flex;
    gap: 10px;
}

.photo-item {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Form Ulasan & Form Kontak --- */
.review-form-wrapper,
.contact-wrapper {
    max-width: 800px;
    margin: 50px auto 0;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.review-form-wrapper h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
}

.error-text {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

.alert-message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
    font-size: 0.9rem;
    text-align: center;
}

.alert-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

/* --- Footer & Direct Buttons --- */
.footer {
    background-color: rgba(11, 19, 41, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding-top: 60px;
    position: relative;
    z-index: 2;
}

.grid-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-info h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-info p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-contact h4,
.footer-social h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-contact p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-contact i {
    width: 20px;
    color: var(--primary-color);
}

.footer-desc {
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.direct-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-app {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    transition: var(--transition);
}

.btn-app i {
    font-size: 1.1rem;
}

.btn-phone {
    background-color: #2b2d42;
}

.btn-phone:hover {
    opacity: 0.9;
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-whatsapp:hover {
    opacity: 0.9;
}

.btn-email {
    background-color: #ea4335;
}

.btn-email:hover {
    opacity: 0.9;
}

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

.btn-maps:hover {
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

.map-container {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Responsive Styles (HP & Mobile) --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--card-bg);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .grid-2,
    .form-row,
    .shopee-summary {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .rating-big {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 20px;
    }

    .hero-bg-img {
        background-size: cover;
        background-position: center;
    }

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

/* =========================================
   WARNA JUDUL DAN TEKS WEBSITE
   ========================================= */

/* Semua judul */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    transition: var(--transition);
}

/* Teks paragraf umum */
p {
    color: var(--text-color);
    transition: var(--transition);
}

/* Teks keterangan */
.text-muted {
    color: var(--text-muted);
}

/* Garis pembatas */
hr {
    border-color: var(--border-color);
}

/* =========================================
   BACKGROUND RAFIF COPY CENTER
   AURORA + CYBER CIRCUIT + HEXAGON
   ========================================= */

/* Background aurora */
.global-animation-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;

    background: linear-gradient(
        125deg,
        #020617,
        #071a35,
        #101044,
        #042b3a,
        #020617
    );

    background-size: 500% 500%;
    animation: techAuroraShift 22s ease-in-out infinite;
}

/* Circuit teknologi */
.tech-circuit-layer {
    position: absolute;
    inset: -15%;
    z-index: 0;

    opacity: 0.24;

    background-image:
        radial-gradient(
            circle,
            rgba(34, 211, 238, 0.95) 1.2px,
            transparent 2.5px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0 78px,
            rgba(34, 211, 238, 0.18) 79px 80px,
            transparent 81px 158px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0 58px,
            rgba(99, 102, 241, 0.16) 59px 60px,
            transparent 61px 118px
        );

    background-size:
        160px 120px,
        160px 120px,
        160px 120px;

    mask-image: linear-gradient(
        135deg,
        #000 0%,
        transparent 85%
    );

    animation: circuitDrift 30s linear infinite;
}

/* Hexagon hologram */


/* Canvas partikel berada di atas pola */
#constellationCanvas {
    position: absolute;
    inset: 0;
    z-index: 2;

    width: 100%;
    height: 100%;

    pointer-events: none;
}

/* Gerakan aurora */
@keyframes techAuroraShift {
    0%, 100% {
        background-position: 0% 50%;
    }

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

/* Gerakan sirkuit */
@keyframes circuitDrift {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(80px, 60px, 0);
    }
}

/* Gerakan hexagon */
@keyframes hexHologram {
    from {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    to {
        transform: translate3d(-48px, 42px, 0) rotate(2deg);
    }
}

/* Pengaturan layar HP */
@media (max-width: 768px) {
    .tech-circuit-layer {
        opacity: 0.80;
    }

    .tech-hex-layer {
        opacity: 0.02;
    }
}

/* Pengaturan untuk mengurangi gerakan */
@media (prefers-reduced-motion: reduce) {
    .global-animation-bg,
    .tech-circuit-layer,
    .tech-hex-layer {
        animation: none !important;
    }
}
