/* ========================================
   AMX TECH - Main Stylesheet
   ======================================== */

/* Floating Inquiry Button */
.floating-inquiry {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.floating-inquiry-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498DB, #2980B9);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}
.floating-inquiry-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #5DADE2, #3498DB);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.floating-inquiry-btn:hover::before {
    opacity: 1;
}
.floating-inquiry-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(52, 152, 219, 0.5);
}
.floating-inquiry-btn:active {
    transform: scale(0.95);
}
.floating-inquiry-btn i,
.floating-inquiry-btn svg {
    position: relative;
    z-index: 1;
}
.floating-inquiry-label {
    background: #0A1628;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.3s ease;
    pointer-events: none;
}
.floating-inquiry:hover .floating-inquiry-label {
    opacity: 1;
    transform: translateX(0);
}
@keyframes floating-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(52, 152, 219, 0.6), 0 0 0 8px rgba(52, 152, 219, 0.08); }
}
.floating-inquiry-btn {
    animation: floating-pulse 3s ease-in-out infinite;
}
.floating-inquiry-btn:hover {
    animation: none;
}
@media (max-width: 640px) {
    .floating-inquiry {
        right: 16px;
        bottom: 20px;
    }
    .floating-inquiry-btn {
        width: 50px;
        height: 50px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #3498DB; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2980B9; }

/* Hero carousel transitions */
.carousel-slide {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    position: absolute;
    inset: 0;
}
.carousel-slide.active {
    opacity: 1;
}

/* Counter animation */
.counter-value {
    transition: all 0.3s ease;
}

/* Card hover effects */
.service-card {
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 160, 210, 0.15);
}
.service-card:hover .card-icon {
    background: #3498DB;
    color: white;
}

/* Feature card hover */
.feature-card {
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Blog card hover */
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.blog-card:hover .blog-img {
    transform: scale(1.05);
}

/* Step connector line */
.step-connector {
    position: relative;
}
.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3498DB, #e5e7eb);
}
.step-connector:last-child::after {
    display: none;
}

/* Mobile menu animation - fixed overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 101;
    width: 300px;
    max-width: 85vw;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}
.mobile-menu-panel.open {
    transform: translateX(0);
}

/* Manufacturer logo hover */
.mfg-logo {
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.5;
}
.mfg-logo:hover {
    filter: grayscale(60%);
    opacity: 0.75;
    transform: translateY(-2px);
}
.mfg-logo.active {
    filter: grayscale(0%);
    opacity: 1;
    border-color: #3498DB !important;
    box-shadow: 0 0 0 2px rgba(0,160,210,0.15);
}
.brand-detail {
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Smooth reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Nav scroll effect */
.nav-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Product card hover */
.product-card {
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.product-filter {
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
}
.product-filter:hover {
    border-color: #3498DB;
    color: #3498DB;
}
.product-filter.active {
    background: #3498DB;
    color: white;
    border-color: #3498DB;
}
.product-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-item:hover {
    transform: translateY(-5px);
}
.product-item h3 {
    transition: color 0.3s ease;
}
.product-item:hover h3 {
    color: #3498DB;
}
.product-item.hidden-card {
    opacity: 0;
    transform: scale(0.95);
    position: absolute;
    pointer-events: none;
}
.product-cta {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(8px) rotate(-45deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.group:hover .product-cta {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}
.product-cta:hover {
    background: #3498DB;
    box-shadow: 0 6px 20px rgba(0,160,210,0.4);
}
.product-cta:hover svg {
    stroke: white;
}
.product-cta svg {
    transition: stroke 0.3s ease;
}

/* Language toggle */
.lang-toggle {
    transition: all 0.3s ease;
}
.lang-toggle:hover {
    background-color: #3498DB;
    color: white;
}
.lang-toggle:hover span {
    color: white !important;
    font-weight: 600;
}

/* ========================================
   Subpage Styles
   ======================================== */

/* FAQ Accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}
.faq-answer.open {
    max-height: 500px;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-icon.rotated {
    transform: rotate(45deg);
}

/* Inquiry Modal */
#inquiry-modal .bg-black\/50 {
    position: fixed;
    inset: 0;
}
.inquiry-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    max-width: 32rem;
    margin: 0 1rem;
}
.inquiry-modal-content.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Page Banner */
.page-banner {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}
@media (min-width: 1024px) {
    .page-banner {
        min-height: 600px;
    }
}
.page-banner .banner-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.page-banner .banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-banner .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.6) 50%, rgba(10, 22, 40, 0.75) 100%);
    z-index: 1;
}
.page-banner .banner-content {
    position: relative;
    z-index: 2;
}

/* Product detail thumbnail */
.product-thumb {
    cursor: pointer;
    transition: all 0.3s ease;
}
.product-thumb.active {
    border-color: #3498DB !important;
    opacity: 1 !important;
}

/* Form focus styles */
.form-input {
    transition: border-color 0.3s ease;
}
.form-input:focus {
    border-color: #3498DB;
    outline: none;
}
