:root {
    --bs-primary: #D4AF37;
    --bs-primary-rgb: 212, 175, 55;
    --bs-dark: #121212;
    --bs-dark-rgb: 18, 18, 18;
    --bs-body-bg: #1a1a1a;
    --bs-body-color: #e0e0e0;
    --bs-font-sans-serif: 'Poppins', sans-serif;
    --bs-font-monospace: 'Teko', sans-serif;
    --bs-border-color: rgba(255, 255, 255, 0.1);
    --bs-border-radius: 0.5rem;
    --whatsapp-green: #25D366;
}
[data-bs-theme="dark"] {
    --bs-body-bg: #1a1a1a;
    --bs-body-color: #e0e0e0;
    --bs-tertiary-bg: #2a2a2a;
    --bs-dark-subtle: #222222;
}
body {
    font-family: var(--bs-font-sans-serif);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}
.section-padding { padding: 80px 0; }
.section-title {
    font-family: var(--bs-font-monospace);
    font-size: 2.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}
.section-title-alt { font-family: var(--bs-font-monospace); font-size: 2rem; font-weight: 500; }
.text-primary { color: var(--bs-primary) !important; }
.btn-primary-custom {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: var(--bs-dark);
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--bs-border-radius);
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    background-color: #e7c358;
    border-color: #e7c358;
    color: var(--bs-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--bs-primary-rgb), 0.2);
}
.header .navbar {
    background-color: transparent;
    padding: 1rem 0;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.header .navbar.scrolled {
     background-color: rgba(var(--bs-dark-rgb), 0.95);
     backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
     box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.navbar .nav-link {
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--bs-primary);
    transition: width 0.3s ease;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--bs-primary); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { width: 100%; }
.dropdown-menu {
    background-color: var(--bs-dark-subtle);
    border: 1px solid var(--bs-border-color);
    padding-top: 0;
    padding-bottom: 0;
}
.dropdown-item {
    color: var(--bs-body-color);
    padding: 0.7rem 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.dropdown-menu li:last-child .dropdown-item {
    border-bottom: none;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--bs-primary);
    color: var(--bs-dark);
}
.hero-slider .carousel, .hero-slider .carousel-inner, .hero-slider .carousel-item { height: 100vh; min-height: 700px; }
.hero-slider .carousel-item { background-size: cover; background-position: center center; position: relative; }
.hero-slider .carousel-item::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(18,18,18,1) 0%, rgba(18,18,18,0.3) 100%);
}
.hero-slider .carousel-caption { top: 50%; transform: translateY(-50%); bottom: auto; z-index: 2; }
.hero-slider .carousel-caption h1,
.hero-slider .carousel-caption .display-3 {
    color: #fff;
    font-family: var(--bs-font-monospace);
    font-weight: 700;
}
.hero-slider .carousel-caption p { color: #ffffff; }
.animated-text { animation: fadeInUp 1s ease forwards; opacity: 0; }
@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.page-header {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
}
.page-header::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(var(--bs-dark-rgb), 0.7); }
.page-header .container { position: relative; z-index: 2; }
.page-title { font-family: var(--bs-font-monospace); font-size: 3.2rem; font-weight: 700; text-transform: uppercase; padding-top: 170px;}
.page-subtitle { font-size: 1.2rem; max-width: 800px; margin: 1rem auto 0; }
.cta-section {
    background-size: cover;
    background-position: center;
    position: relative;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.8);
    z-index: 1;
}
.cta-section .container {
    position: relative;
    z-index: 2;
}
.stats-section { background-color: var(--bs-primary); background-image: linear-gradient(45deg, var(--bs-primary), #c09b2e); }
.stat-item h2 { font-family: var(--bs-font-monospace); }
.process-card { background-color: var(--bs-dark-subtle); padding: 30px; border-radius: var(--bs-border-radius); transition: all 0.3s ease; border: 1px solid transparent; position: relative; overflow: hidden; height: 100%; }
.process-card:hover { transform: translateY(-10px); border-color: var(--bs-primary); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.process-icon { font-size: 3rem; color: var(--bs-primary); margin-bottom: 15px; }
.process-step { position: absolute; top: 10px; right: 20px; font-size: 4rem; font-weight: 800; font-family: var(--bs-font-monospace); color: rgba(255,255,255,0.05); line-height: 1; }
.process-title { font-family: var(--bs-font-monospace); font-size: 1.5rem; margin-bottom: 15px; }
.service-card { background-color: var(--bs-dark-subtle); border-radius: var(--bs-border-radius); overflow: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid var(--bs-border-color); height: 100%; display: flex; flex-direction: column; }
.service-card:hover { transform: scale(1.05); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.service-card img { height: 250px; width: 100%; object-fit: cover; }
.service-card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.service-card-body h3 { font-family: var(--bs-font-monospace); font-size: 1.6rem; margin-bottom: 15px; }
.btn-read-more { color: var(--bs-primary); text-decoration: none; font-weight: 600; margin-top: auto; }
.btn-read-more i { transition: transform 0.3s ease; }
.btn-read-more:hover i { transform: translateX(5px); }
.faq-image-wrapper { position: relative; min-height: 400px; }
.faq-image-frame-1, .faq-image-frame-2 { position: absolute; border-radius: var(--bs-border-radius); overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.3); border: 4px solid var(--bs-primary); }
.faq-image-frame-1 { width: 70%; top: 0; left: 0; }
.faq-image-frame-2 { width: 60%; bottom: 0; right: 0; }
.accordion-item { background-color: var(--bs-dark-subtle); border: 1px solid var(--bs-border-color); margin-bottom: 10px; border-radius: var(--bs-border-radius); }
.accordion-button { background-color: transparent; color: #fff; font-weight: 600; }
.accordion-button:not(.collapsed) { background-color: var(--bs-primary); color: var(--bs-dark); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--bs-primary); }
.accordion-button::after { filter: invert(1) grayscale(100%) brightness(200%); }
.footer-section { background-color: var(--bs-dark); padding: 60px 0 30px; }
.footer-title { font-family: var(--bs-font-monospace); font-size: 1.5rem; color: var(--bs-primary); margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a, .footer-contact a { color: var(--bs-body-color); text-decoration: none; transition: all 0.3s ease; }
.footer-links a:hover, .footer-contact a:hover { color: var(--bs-primary); padding-left: 5px; }
.footer-contact li { margin-bottom: 10px; }
.social-icon { display: inline-block; width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 50%; background-color: rgba(255,255,255,0.1); color: #fff; margin-right: 10px; transition: all 0.3s ease; }
.social-icon:hover { background-color: var(--bs-primary); color: var(--bs-dark); }
.footer-credit { font-size: 0.8rem; opacity: 0.7; }
.footer-credit a { color: inherit; text-decoration: none; }
.footer-credit a:hover { color: var(--bs-primary); }
.machine-card { background-color: var(--bs-dark-subtle); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); text-align: center; overflow: hidden; transition: all 0.3s ease; height: 100%; }
.machine-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.machine-card-img { background-color: #fff; padding: 20px; height: 250px; display: flex; align-items: center; justify-content: center; }
.machine-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.machine-card-body { padding: 20px; }
.machine-card-body h3 { font-family: var(--bs-font-monospace); font-size: 1.5rem; }
.contact-info-box { background-color: var(--bs-dark-subtle); padding: 30px; border-radius: var(--bs-border-radius); height: 100%; }
#contactForm .form-control, #callRequestForm .form-control { background-color: #2a2a2a; border-color: #444; color: #fff; }
#contactForm .form-control:focus, #callRequestForm .form-control:focus { background-color: #2a2a2a; border-color: var(--bs-primary); box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25); color: #fff; }
.service-selection { display: flex; gap: 10px; margin-bottom: 1rem; flex-wrap: wrap; }
.service-selection input[type="radio"] { display: none; }
.service-selection label { flex: 1; padding: 10px; border: 2px solid #444; border-radius: var(--bs-border-radius); text-align: center; cursor: pointer; transition: all 0.3s ease; min-width: 120px; }
.service-selection input[type="radio"]:checked + label { background-color: var(--bs-primary); color: var(--bs-dark); font-weight: 600; border-color: var(--bs-primary); }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.fab-container { position: fixed; bottom: 25px; right: 25px; z-index: 1050; }
.fab-main-button { width: 60px; height: 60px; background-color: var(--whatsapp-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); cursor: pointer; transition: transform 0.3s ease, background-color 0.3s ease; animation: fab-pulse 2s infinite; position: relative; }
.fab-main-button .bi-x { display: none; }
.fab-container.active .fab-main-button .bi-whatsapp { display: none; }
.fab-container.active .fab-main-button .bi-x { display: block; }
.fab-container.active .fab-main-button { transform: rotate(45deg); background-color: #f44336; animation: none; }
.fab-menu { position: absolute; bottom: 75px; right: 5px; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; align-items: flex-end; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease; }
.fab-container.active .fab-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.fab-item { display: flex; align-items: center; text-decoration: none; margin-bottom: 15px; transition: transform 0.2s ease; }
.fab-item:hover { transform: scale(1.05); }
.fab-text { background-color: var(--bs-dark-subtle); color: #fff; padding: 8px 15px; border-radius: var(--bs-border-radius); font-weight: 500; font-size: 14px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); margin-right: 15px; white-space: nowrap; }
.fab-item i { width: 48px; height: 48px; background-color: var(--bs-primary); color: var(--bs-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.fab-item:nth-child(1) i { background-color: var(--whatsapp-green); color: #fff; }
.fab-item:nth-child(2) i { background-color: #3B5998; color: #fff; }
.fab-item:nth-child(3) i { background-color: #6c757d; color: #fff; }
@keyframes fab-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (max-width: 991.98px) {
    .section-title { font-size: 2rem; }
    .page-title { font-size: 2.4rem; }
    .faq-image-wrapper { margin-top: 40px; min-height: 300px; }
    .navbar-collapse { background-color: var(--bs-dark-subtle); padding: 1rem; border-radius: var(--bs-border-radius); margin-top: 1rem; }
}
@media (max-width: 767.98px) {
    .hero-slider .carousel-caption .display-3 { font-size: 2.5rem; }
    .footer-section { text-align: center; }
}
@media (min-width: 992px) {
    .subpage .page-header {
        padding-top: 80px;
    }
}
[data-bs-theme=dark] .carousel .carousel-control-next-icon,
[data-bs-theme=dark] .carousel .carousel-control-prev-icon {
    filter: invert(66%) sepia(100%) saturate(650%) hue-rotate(1deg) brightness(94%) contrast(92%) !important;
}
.carousel-indicators button {
    background-color: var(--bs-primary) !important;
}
.carousel-indicators [data-bs-target] {
    opacity: 0.5;
}
.carousel-indicators .active {
    opacity: 1;
}
.modal-content { background-color: var(--bs-dark-subtle); }
.modal-header, .modal-footer { border-color: var(--bs-border-color); }
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
main { padding-top: 160px; }
.error-section { display: flex; align-items: center; min-height: 60vh; }
.error-content { padding: 40px 20px; }
.error-code { font-size: 6rem; font-weight: 800; color: #dc3545; margin: 0 0 10px 0; line-height: 1; }
.error-title { font-size: 2rem; margin-bottom: 10px; }
.error-message { font-size: 1.1rem; margin-bottom: 20px; color: #ccc; }