/* Custom Styles */
:root { /* This is the default Light Mode */
    --primary-color: #0a58ca;
    --primary-darker: #084a9e;
    --footer-bg: #031d44;
    --footer-bottom-bg: #02142f;
    --footer-link-color: #a9c7f9;
    --footer-text-color: #ffffff;
    --body-bg: #f8f9fa;
    --body-font: 'Inter', sans-serif;
    --content-bg: #ffffff;
    --text-color: #333;
    --navbar-link-color: rgba(0,0,0,0.6);
    --navbar-brand-color: var(--primary-color);
}

body[data-theme="dark"] { /* This is the Dark Mode */
    --primary-color: #4dabf7;
    --primary-darker: #74c0fc;
    --footer-bg: #121212;
    --footer-bottom-bg: #000000;
    --footer-link-color: #a9c7f9;
    --body-bg: #181818;
    --content-bg: #212529;
    --text-color: #ced4da;
    --navbar-link-color: rgba(255,255,255,0.7);
    --navbar-brand-color: var(--primary-color);
}

/* --- Global & Body Styles --- */
body {
    font-family: var(--body-font);
    background-color: var(--body-bg);
    color: var(--text-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

h1,h2,h3,h4,h5,h6,p { 
    color: inherit; 
}

.section-title {
    margin-bottom: 2rem;
    color: var(--primary-darker);
    font-weight: 700;
}

/* --- Language & Theme Logic --- */
body[data-lang="en"] [lang="id"] { display: none; }
body[data-lang="id"] [lang="en"] { display: none; }

body[data-theme="dark"] .bg-light {
    background-color: var(--body-bg) !important;
}

body[data-theme="dark"] .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* --- Navbar --- */
.navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.navbar-brand {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 1rem;
    color: var(--navbar-brand-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand-logo {
    margin-right: 0.5rem;
}

.navbar .nav-link { 
    font-size: 0.9rem;
    color: var(--navbar-link-color) !important;
}

.navbar-transparent {
    background-color: transparent !important;
    box-shadow: none !important;
}

.navbar-transparent .navbar-brand,
.navbar-transparent .nav-link,
.navbar-transparent .dropdown-toggle,
.navbar-transparent #dark-mode-toggle,
.navbar-transparent .lang-switcher a,
.navbar-transparent .lang-switcher span {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5); 
    transition: text-shadow 0.3s ease;
}

body[data-theme="dark"] .navbar-transparent .navbar-brand,
body[data-theme="dark"] .navbar-transparent .nav-link,
body[data-theme="dark"] .navbar-transparent .dropdown-toggle,
body[data-theme="dark"] .navbar-transparent #dark-mode-toggle,
body[data-theme="dark"] .navbar-transparent .lang-switcher a,
body[data-theme="dark"] .navbar-transparent .lang-switcher span {
    text-shadow: 0 0 8px var(--primary-color);
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

body[data-theme="dark"] .navbar-scrolled {
    background-color: rgba(33, 37, 41, 0.8) !important;
}

.navbar-toggler {
    border: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler-icon {
    width: 1.35em;
    height: 1.35em;
}

.navbar-transparent .navbar-toggler-icon,
body[data-theme="dark"] .navbar-scrolled .navbar-toggler-icon {
    filter: invert(1) brightness(2); 
}

.hero-controls .lang-switcher a, .hero-controls .lang-switcher span {
    color: var(--navbar-link-color);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.85rem;
}
.hero-controls .lang-switcher a:hover {
    color: var(--primary-color);
}
.hero-controls .lang-switcher a.active {
    color: var(--navbar-brand-color);
    font-weight: 700;
}

#dark-mode-toggle {
    background: none;
    border: none;
    color: var(--navbar-link-color);
    cursor: pointer;
    padding: 0;
    font-size: 1.05rem;
    transition: color 0.2s;
}
#dark-mode-toggle:hover {
    color: var(--primary-color);
}

@media (min-width: 992px) {
    #navbarNav > .navbar-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    #navbarNav > .hero-controls {
        margin-top: 1.5rem;
        margin-left: 0 !important;
    }
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    width: 100%;
    padding: 0;
    background-image: url('totogallery.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative; 
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1[lang="id"],
.hero-section h2[lang="en"] {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .hero-section h1[lang="id"],
    .hero-section h2[lang="en"] {
        font-size: 2.5rem;
    }
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 1rem auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    color: #f8f9fa;
}

.scroll-down-arrow { 
    position: absolute; 
    bottom: 2rem; 
    left: 50%; 
    transform: translateX(-50%); 
    color: #fff; 
    font-size: 1.5rem; 
    animation: bounce 2s infinite; 
}
@keyframes bounce { 
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); } 
    40% { transform: translateX(-50%) translateY(-20px); } 
    60% { transform: translateX(-50%) translateY(-10px); } 
}

/* --- About Us Section --- */
.about-eyebrow {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.image-collage-container {
    position: relative;
    height: 450px;
}

.collage-img {
    position: absolute;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collage-img:hover {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.collage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collage-img-1 { width: 60%; aspect-ratio: 4 / 3; top: 0; left: 0; z-index: 1; }
.collage-img-2 { width: 55%; aspect-ratio: 3 / 2; top: 50px; right: 0; z-index: 3; }
.collage-img-3 { width: 65%; aspect-ratio: 16 / 9; top: 250px; left: 5%; z-index: 2; }
.collage-img-4 { width: 28%; aspect-ratio: 9 / 16; top: 130px; right: 5%; z-index: 4; }

@media (max-width: 991.98px) {
    .image-collage-container { height: 400px; }
}
@media (max-width: 767.98px) {
    .image-collage-container { height: 350px; }
    .collage-img-1 { width: 55%; }
    .collage-img-2 { width: 60%; }
    .collage-img-3 { top: 200px; }
    .collage-img-4 { top: 100px; width: 30%;}
}

/* --- Features & Commitment Sections --- */
.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(10, 88, 202, 0.3);
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon-container {
    transform: translateY(-10px);
}

.feature-item h5 {
    font-weight: 700;
    color: var(--primary-darker);
    margin-bottom: 0.5rem;
}

.commitment-list {
    list-style: none;
    padding-left: 0;
}
.commitment-list li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.commitment-list .fa-check-circle {
    color: #198754;
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* --- AI Design Assistant --- */
.ai-assistant-card, .contact-card, .content-section {
    background-color: var(--content-bg);
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 2.5rem;
}
.contact-card {
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.ai-result {
    background-color: var(--body-bg); /* Use body background for contrast */
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    white-space: pre-wrap;
    line-height: 1.6;
}

.ai-result h5 {
    font-weight: 700;
}

.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* --- Portfolio / Brands Section --- */
.disclaimer-text {
font-size: 0.7rem; /* Smaller text */
color: var(--bs-gray-600); /* Muted color */
font-style: italic; /* Use italic for emphasis */
margin-top: 0.3rem; /* Add some space above it */
border-top: 1px solid var(--bs-gray-200); /* Separator line */
padding-top: 0.3rem;
}
.brand-showcase-item {
    padding: 4rem 0;
    border-bottom: 1px solid #dee2e6;
}
body[data-theme="dark"] .brand-showcase-item {
    border-bottom-color: #343a40;
}
.brand-showcase-item:last-child {
    border-bottom: none;
}

.brand-showcase-content h3 {
    font-weight: 700;
    color: var(--primary-darker);
    margin-bottom: 1rem;
}

.brand-mini-collage {
    display: flex;
    gap: 0.75rem;
}
.brand-mini-collage .main-image-wrapper {
    flex: 2;
    aspect-ratio: 3 / 4;
}
.brand-mini-collage .thumbnail-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.brand-mini-collage .main-collage-img,
.brand-mini-collage .thumbnail-collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}
.brand-mini-collage .thumbnail-stack .thumbnail-collage-img {
    aspect-ratio: 1 / 1;
}

@media (max-width: 767.98px) {
    .brand-mini-collage {
        flex-direction: column; 
    }
}

.catalog-download-link {
    display: inline-block;
    margin-top: 1rem;
    margin-right: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.catalog-download-link:hover {
    color: var(--primary-darker);
    text-decoration: underline;
}

/* --- Testimonials Section --- */
.testimonial-card {
    background-color: var(--content-bg);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stars-container {
    color: #ffc107; /* A standard gold color for stars */
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    flex-grow: 1; /* Ensures the text area pushes the author to the bottom */
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0;
    color: var(--text-color);
}

.testimonial-role {
    font-size: 0.9rem;
}

.testimonial-slider {
    width: 100%;
    height: auto;
    padding-bottom: 3rem; /* Space for pagination dots */
    overflow: hidden; /* Changed from visible to hidden to remove the cut */
}
.testimonial-slider .swiper-slide {
    height: auto; /* Allow slides to have natural height */
    display: flex;
    justify-content: center;
}
.testimonial-slider .swiper-slide .testimonial-card {
    width: 100%;
}
.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}

/* --- Footer --- */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
    padding-top: 3rem;
    padding-bottom: 1rem;
}
body[data-theme="dark"] .footer {
    color: #ced4da;
}
.footer a {
    color: var(--footer-link-color);
    text-decoration: none;
    transition: color 0.3s;
}
.footer a:hover {
    color: #fff;
}
.footer .contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}
.footer-bottom {
    background-color: var(--footer-bottom-bg);
    color: var(--footer-text-color);
    padding: 1rem 0;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}
body[data-theme="dark"] .footer-bottom {
    color: #ced4da;
}
.map-container {
    border-radius: 0.75rem;
    overflow: hidden;
    height: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
body[data-theme="dark"] .map-container iframe {
    filter: invert(1) hue-rotate(180deg);
}

/* --- Form and Button Dark Mode Fixes --- */
body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select {
    background-color: var(--content-bg);
    color: var(--text-color);
    border-color: #495057;
}

body[data-theme="dark"] .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

body[data-theme="dark"] .btn-primary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body[data-theme="dark"] .btn-primary:hover {
    background-color: var(--primary-color);
    color: #000;
}

body[data-theme="dark"] .btn-success {
    background-color: transparent;
    border-color: #28a745;
    color: #28a745;
}

body[data-theme="dark"] .btn-success:hover {
    background-color: #28a745;
    color: #fff;
}