/* ---------------------------------------------------------
   Fix Lab Bali - Main Stylesheet
   --------------------------------------------------------- */

:root {
    --color-bg: #0D0D0D;
    --color-primary: #0066CC;
    --color-primary-hover: #0052a3;
    --color-secondary: #333333;
    --color-card-bg: #1A1A1A;
    --color-white: #FFFFFF;
    --color-text-muted: #A3A3A3;
    --color-text-dark: #1F1F1F;
    --color-border: #2A2A2A;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-lg: 16px;
    --radius-md: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-shadow: 0 0 20px rgba(0, 102, 204, 0.35);
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

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

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

/* Layout Utilities (Compatible with basic Bootstrap grid) */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -1rem;
    margin-left: -1rem;
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
}

.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }
.me-2 { margin-right: 0.5rem; }
.ms-2 { margin-left: 0.5rem; }
.me-3 { margin-right: 0.75rem; }
.w-100 { width: 100%; }
.d-none { display: none !important; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted) !important; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.875rem; }

/* Grid Columns for Desktop & Tablet */
@media (min-width: 768px) {
    .d-none-md { display: none !important; }
    .d-md-flex { display: flex !important; }
    .d-md-none { display: none !important; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
}

@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.15rem;
    }
    .logo-image {
        max-height: 36px;
    }
}

/* Colors & Components */
.text-blue {
    color: var(--color-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-blue {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--glow-shadow);
}

.btn-blue:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 102, 204, 0.6);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background-color: rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
}

/* Header & Navigation */
.site-header {
    background-color: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.02em;
    display: inline-block;
    text-transform: none;
}


.logo-image {
    max-height: 48px;
    width: auto;
    display: block;
    transition: var(--transition);
    /* Soft white outer glow contour to make dark text visible on dark background */
    filter: drop-shadow(0px 0px 1px rgba(255, 255, 255, 0.9)) drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.4));
}

.logo-image:hover {
    transform: scale(1.03);
    filter: drop-shadow(0px 0px 1px rgba(255, 255, 255, 1)) drop-shadow(0px 0px 12px rgba(255, 255, 255, 0.6));
}

.nav-link {
    margin-left: 2rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-nav-cta {
    margin-left: 2rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
}

/* Mobile Nav Styles */
.mobile-menu-trigger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-trigger span {
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition);
}

.mobile-menu-trigger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-trigger.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-trigger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    width: 100%;
    height: calc(100vh - 73px);
    background-color: var(--color-bg);
    padding: 2rem;
    flex-direction: column;
    z-index: 999;
    border-top: 1px solid var(--color-border);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--color-white);
    padding-left: 0.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.15) 0%, rgba(13, 13, 13, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(0, 102, 204, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow-back {
    position: absolute;
    width: 80%;
    height: 80%;
    background-color: rgba(0, 102, 204, 0.2);
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
}

.hero-img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: rotate(2deg);
    transition: var(--transition);
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Why Choose Us Section */
.section-title-wrapper {
    margin-bottom: 4rem;
    text-align: center;
}

.section-subtitle {
    text-transform: uppercase;
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.25rem;
}

.usp-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.usp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: var(--transition);
}

.usp-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 102, 204, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.usp-card:hover::before {
    background-color: var(--color-primary);
}

.usp-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.usp-card:hover .usp-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.05);
}

.usp-card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.usp-card-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Diagnostic & Cost Estimator Card */
.diag-section {
    background-color: #080808;
    position: relative;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.diag-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.diag-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.form-select {
    width: 100%;
    background-color: var(--color-bg);
    color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='18px' height='18px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.2);
}

.diag-result-box {
    background-color: rgba(0, 102, 204, 0.05);
    border: 1px dashed rgba(0, 102, 204, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2rem;
    display: none;
    text-align: center;
}

.result-price-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.result-price-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0.25rem 0 1rem 0;
    font-family: var(--font-heading);
}

/* Service Catalog Page */
.service-grid-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.service-grid-card:hover {
    border-color: rgba(0, 102, 204, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.service-card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-icon {
    font-size: 2.25rem;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.service-card-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.service-card-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-meta {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    margin-top: auto;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--color-text-muted);
}

.service-meta i {
    color: var(--color-primary);
    width: 18px;
    text-align: center;
}

.service-meta strong {
    color: var(--color-white);
}

.service-card-footer {
    padding: 1rem 2rem 2rem 2rem;
    background-color: rgba(0, 0, 0, 0.1);
}

/* About Us Page */
.about-img-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.about-map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    height: 380px;
    width: 100%;
    margin-top: 1.5rem;
}

.about-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg) grayscale(40%) contrast(90%); /* Dark map styling! */
}

.value-box {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.value-title {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.value-title i {
    color: var(--color-primary);
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--color-white);
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: var(--transition);
    color: var(--color-primary);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.faq-answer.open {
    padding-bottom: 1.25rem;
    max-height: 200px; /* arbitrary height to trigger transition */
}

/* Testimonial Slider / Grid */
.testi-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
}

.testi-stars {
    color: #FFC107;
    margin-bottom: 1rem;
}

.testi-text {
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--color-white);
    font-family: var(--font-heading);
    border: 1px solid var(--color-primary);
}

.testi-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.testi-status {
    font-size: 0.75rem;
    color: var(--color-primary);
}

/* Site Footer */
.site-footer {
    background-color: #050505;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-heading {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 0.25rem;
}

.hover-white:hover {
    color: var(--color-white) !important;
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.social-links a:hover {
    color: var(--color-white);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--glow-shadow);
    transform: translateY(-2px);
}

/* Sticky WhatsApp Badge */
.whatsapp-sticky-badge {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: var(--color-white);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-sticky-badge i {
    font-size: 1.5rem;
}

.whatsapp-sticky-badge:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background-color: #20ba59;
}

@media (max-width: 767px) {
    .whatsapp-sticky-badge {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.75rem;
        border-radius: 50%;
    }
    
    .whatsapp-sticky-badge .badge-text {
        display: none;
    }
}

/* Testimonial Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
    filter: grayscale(20%) brightness(0.9);
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 102, 204, 0.4);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.25);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1.1);
}

/* Gallery Pagination Controls */
.gallery-pagination {
    margin-top: 3.5rem !important;
}

.btn-pagination {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background-color: var(--color-card-bg);
    color: var(--color-white);
    transition: var(--transition);
}

.btn-pagination:hover:not(:disabled) {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--glow-shadow);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-pagination.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--glow-shadow);
    color: var(--color-white);
    font-weight: 700;
}

.btn-pagination:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background-color: transparent;
    border-color: var(--color-border);
}

/* Fade In Animation */
.gallery-item.fade-in {
    animation: galleryFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


