/*
Theme Name: BSM Theme (Bultok Sudarmin Management)
Author: Zed for Bos Ara
Description: Custom Premium Theme for BSM. Dark theme, modern, with Sapu Lidi philosophy and Om Busman branding.
Version: 1.5
*/

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --primary-purple: #8A2BE2;
    --primary-orange: #FF8C00;
    --accent-blue: #1E90FF;
    --text-light: #f0f0f0;
    --text-muted: #aaaaaa;
    --weave-color: rgba(255, 140, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.nav-logo {
    background: transparent;
    padding: 0;
    border-radius: 0;
    min-height: 50px;
    max-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.nav-logo a, .nav-logo img, .nav-logo .custom-logo {
    max-width: 150px !important;
    max-height: 50px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}
nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s;
    font-weight: 500;
}
nav ul li a:hover { color: var(--accent-blue); }

/* Running Text */
.running-text {
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-orange));
    color: #000;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: bold;
}
.running-text-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: 
        linear-gradient(45deg, var(--weave-color) 25%, transparent 25%, transparent 75%, var(--weave-color) 75%, var(--weave-color)),
        linear-gradient(45deg, var(--weave-color) 25%, transparent 25%, transparent 75%, var(--weave-color) 75%, var(--weave-color)),
        radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.15) 0%, transparent 60%),
        var(--bg-dark);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
    background-position: 0 0, 20px 20px, 0 0, 0 0;
}
.hero-logo {
    width: auto;
    height: auto;
    background: transparent;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    overflow: hidden;
    padding: 0;
}
.hero-logo a, .hero-logo img, .hero-logo .custom-logo {
    max-width: 250px !important;
    max-height: 150px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}

.hero h2 {
    font-size: 1.8rem; color: var(--accent-blue);
    margin-bottom: 15px; letter-spacing: 2px;
    text-transform: uppercase; font-weight: 600;
}
.hero h1 {
    font-size: 4.5rem;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-orange));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 20px; line-height: 1.1;
}
.hero p {
    max-width: 700px; color: var(--text-muted);
    font-size: 1.2rem; margin-bottom: 30px; line-height: 1.6;
}
.cta-btn {
    padding: 15px 40px; background: var(--primary-orange);
    color: #000; font-weight: bold; text-decoration: none;
    border-radius: 30px; font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}
.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

/* About Section */
.about {
    padding: 80px 50px; background: var(--bg-card);
    border-top: 2px solid var(--primary-purple);
    border-bottom: 2px solid var(--primary-orange);
    position: relative; overflow: hidden;
}
.about-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto; gap: 60px;
}
.about-text { flex: 1; text-align: left; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 30px; color: var(--primary-purple); }
.about-text h2 span { color: var(--primary-orange); }
.about-text p {
    max-width: 600px; margin-bottom: 20px;
    color: var(--text-muted); font-size: 1.1rem; line-height: 1.8;
}

/* Mascot Size Diperbesar 3-4x */
.mascot-box { 
    flex: 0 0 450px; 
    display: flex; 
    justify-content: center; 
    position: relative; 
}
.mascot-circle {
    width: 450px; height: 450px; border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.2) 0%, transparent 70%);
    display: flex; align-items: center; justify-content: center;
    position: relative; animation: float 4s ease-in-out infinite;
}
.mascot-icon { 
    font-size: 200px; 
    filter: drop-shadow(0 0 15px var(--primary-orange)); 
    display: flex; align-items: center; justify-content: center;
}
.mascot-icon img, .mascot-icon .mascot-img {
    max-width: 380px !important;
    max-height: 380px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 50%;
    display: block;
}
.mascot-glow {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    border: 2px solid var(--primary-purple); animation: pulse 3s infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.4); }
    70% { transform: scale(1.1); opacity: 0; box-shadow: 0 0 0 20px rgba(138, 43, 226, 0); }
    100% { transform: scale(0.95); opacity: 0; }
}

/* Business Units */
.services { padding: 80px 50px; }
.services h2 { text-align: center; font-size: 2.5rem; margin-bottom: 20px; }
.services h2 span { color: var(--primary-orange); }

.toggle-container {
    text-align: center; margin-bottom: 40px; color: var(--text-muted);
    display: flex; justify-content: center; align-items: center; gap: 15px;
}
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333; transition: .4s; border-radius: 34px;
}
.slider:before {
    position: absolute; content: ""; height: 26px; width: 26px;
    left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary-purple); }
input:checked + .slider:before { transform: translateX(26px); }

.grid-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; max-width: 1200px; margin: 0 auto;
}
.card-flip {
    background-color: transparent; width: 100%; height: 380px;
    perspective: 1000px; cursor: pointer;
}
.card-inner {
    position: relative; width: 100%; height: 100%; text-align: center;
    transition: transform 0.8s; transform-style: preserve-3d;
}
.card-flip.flipped .card-inner { transform: rotateY(180deg); }
.card-front, .card-back {
    position: absolute; width: 100%; height: 100%;
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    border-radius: 15px; border: 1px solid #333; padding: 30px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: border-color 0.3s;
}
.card-front { background: var(--bg-card); }
.card-flip:hover .card-front { border-color: var(--primary-purple); }
.card-back {
    background: linear-gradient(135deg, var(--primary-purple), var(--bg-card));
    transform: rotateY(180deg);
}
.icon {
    font-size: 50px; margin-bottom: 20px; display: inline-block;
    padding: 15px; background: rgba(255, 255, 255, 0.05); border-radius: 50%;
}
.card-front h3 { margin-bottom: 15px; font-size: 1.5rem; }
.card-front p { color: var(--text-muted); line-height: 1.6; min-height: 60px; }
.card-back h3 { color: #fff; margin-bottom: 20px; font-size: 1.4rem; }
.card-back .logo-mitra-placeholder { 
    width: 80px; height: 80px; background: #fff; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 2rem; margin-bottom: 15px; overflow: hidden;
}
.card-back p { color: #e0e0e0; }
.typing-cursor::after { content: '|'; animation: blink 1s infinite; color: var(--accent-blue); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Mitra Carousel */
.partners { padding: 80px 50px; background: var(--bg-card); overflow: hidden; }
.partners h2 { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }
.partners h2 span { color: var(--accent-blue); }
.logo-carousel { display: flex; overflow: hidden; position: relative; }
.logo-track { display: flex; gap: 50px; animation: slide 25s linear infinite; }
.logo-item {
    background: #fff; color: #000; padding: 20px 30px; border-radius: 10px;
    font-weight: bold; font-size: 1.1rem; white-space: nowrap;
    display: flex; align-items: center; justify-content: center;
    min-width: 280px; text-align: center; overflow: hidden;
}
.logo-item img {
    max-height: 50px; width: auto; object-fit: contain;
}
@keyframes slide { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Footer */
footer {
    background: #050505; text-align: center; padding: 40px 20px;
    border-top: 1px solid #222; color: var(--text-muted);
}
.footer-logo {
    width: auto; height: auto; background: transparent; margin: 0 auto 20px auto;
    display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0;
}
.footer-logo a, .footer-logo img, .footer-logo .custom-logo {
    max-width: 150px !important; max-height: 70px !important; width: auto !important;
    height: auto !important; object-fit: contain !important; display: block;
}
footer h3 { color: var(--text-light); margin-bottom: 15px; }
footer p { line-height: 1.6; }

/* Floating WA */
.floating-wa {
    position: fixed; bottom: 20px; right: 20px; background: #25D366; color: #000;
    width: 60px; height: 60px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 30px;
    text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.5); z-index: 999;
}

/* Responsive (Tablet & HP) */
@media (max-width: 1024px) {
    .mascot-box { flex: 0 0 350px; }
    .mascot-circle { width: 350px; height: 350px; }
    .mascot-icon img, .mascot-icon .mascot-img { max-width: 280px !important; max-height: 280px !important; }
}

@media (max-width: 768px) {
    nav ul { display: none; }
    .hero h1 { font-size: 2.8rem; }
    .hero h2 { font-size: 1.4rem; }
    .about-container { flex-direction: column; text-align: center; gap: 40px; }
    .about-text { text-align: center; }
    .mascot-box { flex: 0 0 100%; width: 100%; }
    .mascot-circle { width: 300px; height: 300px; max-width: 90vw; max-height: 90vw; }
    .mascot-icon img, .mascot-icon .mascot-img { max-width: 250px !important; max-height: 250px !important; }
    .services, .partners { padding: 50px 20px; }
}