/* =========================
   FADE UP ANIMATION UX
========================= */
/* Enhanced Fade-Up Animation */
.fade-up {
    opacity: 0;
    transform: translateY(25px); /* More subtle than 24px */
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), /* Smoother, faster */
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================
   BUTTONS
===================== */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: 1.5px solid #000;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #000000;
    color: #fff;
}

.btn-detail-global {
    padding: 12px 28px;
    border: 1.5px solid #000;
    border-radius: 20px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-detail-global:hover {
    background: #000;
    color: #fff;
}

.btn-submit {
    margin-top: 12px;
    min-width: 120px;
    padding: 12px 24px;
    background: #fff;
    border: 1.5px solid #000;
    color: #000;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #000;
    color: #fff;
}

.category-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
    border: 1.5px solid #000;
    color: #000;
    background: #fff;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.category-btn:hover {
    background: #000;
    color: #fff;
}

.btn-download {
    background: #fff;
    color: #000;
    border: 1.5px solid #000;
    padding: 10px 20px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-download:hover {
    background: #000;
    color: #fff;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #111;
    transition: all 0.3s ease;
    background: #fff;
}

.nav-btn:hover:not(.disabled) {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-2px);
}

.nav-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
    border-color: #eee;
    color: #999;
    background: #f9f9f9;
}

.nav-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5px;
}

/* FORM */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    color: #333;
}

.form-group input,
.form-group textarea {
    background: #e0e0e0;
    border: none;
    padding: 14px;
    font-size: 14px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: #d8d8d8;
}

/* =========================
   DOWNLOAD MODAL
========================= */
.download-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.download-modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 1000px; /* Reduced from 1200px */
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    padding: 40px;
    position: relative;
    margin: auto; /* Center in flex container */
}

/* More contained for specification image */
.spec-modal-content {
    max-width: 800px;
}

.spec-modal-body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 40px;
}

.spec-modal-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Modal mobile optimizations */
@media (max-width: 768px) {
    .download-modal-content {
        padding: 40px 20px 20px;
        width: 96%;
    }
    .spec-modal-body {
        justify-content: center;
        overflow-x: hidden;
    }
    
    .spec-modal-img {
        min-width: auto; 
        max-width: 100%;
        height: auto;
    }
    
    .modal-close {
        font-size: 28px;
    }
    .modal-logo img {
        height: 24px;
    }
    .modal-category {
        font-size: 14px;
    }
}

/* HEADER */
.download-modal-header {
    background-color: #3B3B3B;
    color: #fff;
    padding: 20px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.modal-logo img {
    height: 32px; 
    filter: brightness(0) invert(1);
}

.modal-category {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    text-transform: capitalize;
}

.modal-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

/* BODY */
.download-modal-body {
    padding: 0;
    flex: 1;
}

.download-modal-body h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000;
}

/* GRID */
.download-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.download-item {
    text-align: left;
}

.download-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    margin-bottom: 12px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.download-img-wrapper:hover {
    opacity: 0.8;
}

.download-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.download-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-icon {
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: scale(0.8);
}

.download-img-wrapper:hover .download-icon {
    opacity: 1;
    transform: scale(1);
}

.download-icon svg {
    width: 24px;
    height: 24px;
}
.download-item-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #000;
}

.download-item-info span {
    font-display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

/* ACTIONS */
.download-actions {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 40px;
    margin-bottom: 40px;
}

.download-actions p {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

/* FOOTER */
.download-modal-footer {
    background-color: #000;
    color: #fff;
    padding: 20px 35px;
    text-align: center;
}

.download-modal-footer p {
    font-size: 12px;
    opacity: 0.7;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .download-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .download-actions {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .download-modal-header {
        padding: 8px 12px;
        margin-bottom: 12px;
    }
    .download-modal-footer {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .download-modal-content {
        padding: 15px 10px 10px;
        width: 98%;
    }
    .download-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .download-modal-header {
        padding: 6px 10px;
        margin-bottom: 10px;
    }
    .download-modal-footer {
        padding: 6px 10px;
    }
    .download-modal-footer p {
        font-size: 10px;
    }
    .download-modal-body {
        padding: 0;
    }
    .spec-modal-body {
        padding-bottom: 15px;
    }
    .modal-close {
        font-size: 18px;
    }
    .modal-logo img {

        height: 16px;
    }
    .modal-category {
        font-size: 12px;
    }
}

/* =========================
   FLOATING WHATSAPP
========================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    height: 60px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0;
    width: auto;
    max-width: 60px; /* Default width for icon only */
    overflow: hidden;
    white-space: nowrap;
}

.floating-whatsapp .whatsapp-icon-box {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-whatsapp svg,
.floating-whatsapp img.wa-icon-img {
    width: 35px;
    height: 35px;
    fill: #ffffff;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.whatsapp-text {
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 600;
    max-width: 0;
    transition: all 0.3s ease;
    padding-left: 0;
}

/* Hover Effects */
.floating-whatsapp:hover {
    max-width: 300px;
    padding-right: 6px; /* Space for text */
    padding-left: 24px;
    border-radius: 50px;
    background-color: #000000;
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

.floating-whatsapp:hover .whatsapp-text {
    opacity: 1;
    visibility: visible;
    max-width: 150px; /* adjust as needed */
    margin-right: 12px;
}

.floating-whatsapp:hover svg,
.floating-whatsapp:hover img.wa-icon-img {
    transform: scale(1.1);
}

/* Pulse Animation */
.floating-whatsapp::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0; 
    right: 0; 
    bottom: 0; 
    border-radius: 50px;
    border: 2px solid #ffffff;
    animation: pulse-border 1.5s linear infinite;
    z-index: -1;
    opacity: 0;
}

.floating-whatsapp:hover::before {
    animation: none;
}

@keyframes pulse-border {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .floating-whatsapp .whatsapp-icon-box {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .floating-whatsapp svg,
    .floating-whatsapp img.wa-icon-img {
        width: 28px;
        height: 28px;
    }

    /* Disable hover expansion on mobile to prevent blocking content */
    .floating-whatsapp:hover {
        max-width: 50px;
        padding: 0;
    }
    .floating-whatsapp:hover .whatsapp-text {
        display: none;
    }
    
    .floating-whatsapp::before {
        display: none; /* simple animation for mobile */
    }
}
