/* ==================== */
/* GLOBAL STYLES & UTILITIES */
/* ==================== */
:root {
    --primary: #004F44;
    --accent: #FF9900;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #f5f5f5;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--light);
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Section Header for various sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 0rem;
    color: #333;
    font-size: 2.5rem;
}

.section-title-paragraph {
    text-align: center;
}

.see-all {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.see-all:hover {
    color: #e68a00;
}

/* Responsive Adjustments for general sections */
@media (max-width: 768px) {
    .section-header {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-header {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .see-all {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* ==================== */
/* HERO SECTION */
/* ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--light);
    padding: 80px 0;
    position: relative;
    /* Default background for desktop */
    background: linear-gradient(rgba(0, 79, 68, 0.7), rgba(255, 152, 49, 0.3)),
                url('../../../img/only-axis-bg.jpg') center/cover no-repeat;
}

.hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    margin-top: 50px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.button-container {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    margin-left: 10rem;
}

.btn-secondary {
    background: var(--accent);
    color: var(--light);
    text-decoration: none;
    padding: 15px 12px;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
    transform-origin: center;
    margin-top: -20px;
    margin-left: 30px;
}

.btn-secondary:hover {
    background: var(--light);
    color: var(--dark);
    transform: translateY(-2px);
}

.image-container {
    width: 100px;
    height: 70px;
    overflow: hidden;
    border-radius: 5px;
    margin-top: 0px;
}

.button-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(0.7);
    transform-origin: top center;
    position: relative;
    left: 1rem;
}

.transparent-gif {
    background: transparent !important;
    mix-blend-mode: multiply;
    margin-top: 0;
}

/* Responsive Styles for Hero */
@media (max-width: 992px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .button-container {
        justify-content: center;
        margin-left: 0;
    }

    .btn-secondary {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    #home {
        position: relative;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .hero {
        min-height: 80vh;
        height: 80vh;
        padding: 40px 0;
        background: linear-gradient(rgba(0, 79, 68, 0.7), rgba(255, 152, 49, 0.3)),
                    url('../../../img/only-axis-bg.jpg') no-repeat center center/cover !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .hero-flex {
        height: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .hero-content {
        flex: 1;
        max-width: 100%;
        z-index: 2;
        margin-top: 15rem;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.3;
        text-align: center;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
        max-width: 90%;
    }

    .button-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 1rem;
        margin-left: 0;
    }

    .btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
        margin-top: 0;
        margin-left: 0;
    }
    
    .image-container {
        width: 60px;
        height: 60px;
        margin-top: 0;
        margin-left: 10px;
    }
    
    .button-image {
        width: 80%;
        height: 80%;
        object-fit: cover;
        transform: scale(0.7);
        transform-origin: top center;
        position: relative;
        left: 0.4rem;
        bottom: 0.7rem;
    }
    
    /* Adjust promo banner positioning */
    .promo-banner {
        max-width: 90%;
        margin: 20px auto 0;
        order: 2; /* Move promo banner below hero content */
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 85vh;
        height: 85vh;
        padding: 30px 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }
    
    .btn-secondary {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .image-container {
        width: 80px;
        height: 60px;
    }
}

/* ==================== */
/* PRODUCT GRID & CARD */
/* ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

.product-card {
    background: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.image-container { /* Reused for product card image */
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.product-image:hover {
    opacity: 0.9;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.wishlist-form {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    padding: 0;
    z-index: 2;
}

.wishlist-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: #666;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wishlist-btn:hover {
    background: white;
    color: #ff4444;
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: #ff4444;
}

.wishlist-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    color: var(--primary);
    font-weight: 500;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    border-left: 5px solid #FF9900;
}

.product-info {
    padding: 0.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--primary);
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

/* .product-brand (already defined in product details modal, but needed here) */
.product-brand {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0.5rem 0;
}

.original-price { /* Reused for product card */
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.discount {
    font-size: 0.85rem;
    color: #ff4444;
    margin-left: 0.5rem;
    font-weight: 600;
}

.rating {
    color: #FF9900;
    margin: 0.5rem 0;
    font-size: 0.85rem;
}

.rating span {
    color: #666;
}

.product-actions { /* Reused for product card */
    display: flex;
    gap: 0.5rem;
    margin-top: 0.1rem;
}

.action-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.add-to-cart {
    background: var(--primary);
    color: var(--light);
}

.add-to-cart:hover {
    background: #00382f;
}

.view-details {
    background: var(--accent);
    color: var(--light);
    text-decoration: none;
}

.view-details:hover {
    background: #e68a00;
}

/* Responsive Adjustments for Product Grid */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== */
/* FEATURED SECTION (Generic for product grids) */
/* ==================== */
.featured-section {
    margin: 3rem 0;
}

/* ==================== */
/* PRODUCT DETAILS MODAL */
/* ==================== */
#productModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
    box-sizing: border-box;
}

#productModal.show {
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.modal-content-product {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px; /* Control max size here */
    max-height: 90vh;
    margin: 2rem auto;
    position: relative;
    transform: translateY(-20px) scale(0.98);
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

#productModal.show .modal-content-product { /* Corrected selector */
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: none;
}

.close-modal:hover {
    color: #ff4444;
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 1);
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    max-height: calc(90vh - 40px);
}

/* Product Details Layout */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-image-container {
    padding: 2rem;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
}

.product-image-large {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.product-image-large.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.product-info-details {
    padding: 2rem 2rem 2rem 0;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.product-brand { /* This is the more specific definition */
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.product-price-container {
    margin: 1.5rem 0;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.original-price { /* This is the more specific definition */
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

.discount-badge {
    display: inline-block;
    background: #ff4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.product-rating {
    margin: 1rem 0;
    display: flex;
    align-items: center;
}

.stock-status {
    margin: 1rem 0;
    font-weight: 500;
}

.in-stock {
    color: #00c853;
}

.low-stock {
    color: #ffab00;
}

.out-of-stock {
    color: #ff4444;
}

.product-description {
    margin: 1.5rem 0;
    line-height: 1.6;
    color: #555;
}

.product-actions { /* Reused for product details */
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 0.5rem;
}

.add-to-cart-btn, .buy-now-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn {
    background: var(--primary);
    color: white;
}

.add-to-cart-btn:hover {
    background: #00382f;
}

.buy-now-btn {
    background: var(--accent);
    color: white;
}

.buy-now-btn:hover {
    background: #e68a00;
}

.product-meta {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Loading and Error States (can be general but related to product modal/data) */
.loading-spinner {
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.loading-spinner i {
    font-size: 2.5rem;
    color: var(--primary);
    animation: spin 1s linear infinite;
}

.error-message {
    padding: 3rem;
    text-align: center;
    color: #ff4444;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.error-message i {
    font-size: 2.5rem;
}

/* Responsive Adjustments for Product Details Modal */
@media (max-width: 992px) {
    .product-details {
        grid-template-columns: 1fr;
    }
    
    .product-image-container {
        min-height: 300px;
        padding: 1.5rem;
    }
    
    .product-info-details {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .modal-content-product {
        width: 95%;
        max-width: 100%;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    
    .add-to-cart-btn, .buy-now-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #productModal {
        padding: 1rem;
    }
    
    .modal-content-product {
        margin: 1rem auto;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
}

/* ==================== */
/* PROMO BANNER */
/* ==================== */
.promo-banner {
    background: linear-gradient(135deg, #004F44, #002E26);
    color: white;
    border-radius: 12px;
    margin: 2rem 0; /* Or 1.5rem auto as in original, clarify usage */
    position: relative;
    overflow: hidden;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 300px;
    margin: 1.5rem auto; /* Using this as it was more specific in your code */
    animation: glow 3s infinite; /* Moved animation property here */
}

.promo-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.promo-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.promo-banner p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    font-family: 'Poppins', sans-serif;
}

.timer-unit {
    background: rgba(0,0,0,0.2);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    min-width: 80px;
}

.timer span {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    color: var(--accent);
}

.timer small {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 0.2rem;
}

.timer-separator {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    margin: 0 0.2rem;
    position: relative;
    top: -5px;
}

.promo-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.promo-btn:hover {
    background: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

.promo-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #ff4444;
    color: white;
    width: 0px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: rotate(15deg);
    animation: badgePulse 2s infinite;
}

/* Responsive Adjustments for Promo Banner */
@media (max-width: 768px) {
    .promo-banner {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .promo-banner {
        max-width: 90%;
        margin: 0 auto 20px;
        padding: 1rem;
    }

    .promo-banner h3 {
        font-size: 1.3rem;
    }

    .promo-banner p {
        font-size: 0.9rem;
    }

    .promo-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .promo-badge {
        width: 80px;
        height: 80px;
        font-size: 1rem;
        padding-bottom: 1.5rem;
    }
}

/* ==================== */
/* STOCK ALERTS */
/* ==================== */
.stock-alerts-container {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
    max-width: 250px;
}

.stock-alert-mini {
    background: rgba(255, 68, 68, 0.3);
    border-left: 2px solid #ff4444;
    padding: 5px 8px;
    margin-bottom: 6px;
    border-radius: 3px;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(3px);
    animation: slideIn 0.2s ease-out;
}

.stock-alert-text {
    color: #222;
    font-weight: 500;
    line-height: 1.2;
    flex: 1;
}

.stock-alert-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 11.5px;
}

.stock-alert-text a:hover {
    text-decoration: underline;
}

.close-alert-mini {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
    margin-left: 6px;
    padding: 0;
}

.close-alert-mini:hover {
    color: #ff4444;
}

/* ==================== */
/* TESTIMONIALS SECTION */
/* ==================== */
.testimonials-section {
    margin: 3rem 0;
    padding: 2rem 0;
    background: var(--gray);
}

.testimonial-container {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.testimonial-card {
    min-width: 300px;
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    scroll-snap-align: start;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author {
    font-weight: bold;
}

.testimonial-location {
    font-size: 0.8rem;
    color: #666;
}

.testimonial-rating {
    color: var(--accent);
    margin: 0.5rem 0;
}

.testimonial-text {
    font-style: italic;
    color: #555;
}

.testimonial-product {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.testimonial-product img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
}

.testimonial-product-name {
    font-size: 0.9rem;
}

/* ==================== */
/* NEWS SECTION (Carousel) */
/* ==================== */
.news-section {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.news-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.news-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.news-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.news-image {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.news-image:hover {
    transform: scale(1.03);
}

.carousel-dots {
    text-align: center;
    margin-top: 2rem;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--primary);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
}

/* Responsive Adjustments for News Section */
@media (min-width: 768px) {
    .news-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .news-card {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
}

/* ==================== */
/* DYNAMIC BANNER */
/* ==================== */
.dynamic-banner {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
}

.banner-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../../img/soft.jpg');
    background-size: cover;
    background-position: center;
    filter: contrast(1) brightness(1);
    animation: smoothReveal 8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.banner-text-group {
    position: relative;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    max-width: 800px;
    padding: 2rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.banner-headline {
    font-size: clamp(2rem, 2vw, 2rem);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: textGlide 1.2s ease-out forwards;
    animation-delay: 0.6s;
}

.banner-supporting-text {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: textGlide 1.2s ease-out forwards;
    animation-delay: 1.1s;
}

.banner-cta {
    display: inline-block;
    padding: 1em 2em;
    font-size: 1.1rem;
    background: var(--primary);
    backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 1.6s;
    transition: all 0.3s ease;
}

.banner-cta:hover {
    background: var(--light);
    color: var(--dark);
    transform: translateY(-2px);
}

.hover-ripple { /* This class likely applies to the banner-cta for a ripple effect */
    position: relative;
    overflow: hidden;
}

.ripple-wave {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
    animation: ripple 0.6s linear;
}

/* Responsive Adjustments for Dynamic Banner */
@media (max-width: 480px) {
    .banner-backdrop {
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                    url('../../img/soft.jpg');
        background-size: cover;
        background-position: center;
    }
}

/* ==================== */
/* CONTACT SECTION */
/* ==================== */
.contact-section {
    display: flex;
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 280px;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-group {
    margin-bottom: 1.2rem;
    width: 100%;
    max-width: 280px;
}

.info-group h3 {
    color: #1f2937;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.info-group p,
.info-group a {
    color: var(--dark);
    text-align: center;
    display: block;
    margin: 0.4rem 0;
    text-decoration: none;
    font-weight: 500;
}

.form-container {
    flex: 1;
    min-width: 280px;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    position: relative;
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: #004F44;
    box-shadow: 0 0 0 3px rgba(0, 79, 68, 0.1);
}

.label {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    padding: 0 0.3rem;
    color: #6b7280;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

textarea + .label {
    top: 1rem;
    transform: none;
}

input:focus + .label,
input:not(:placeholder-shown) + .label,
textarea:focus + .label,
textarea:not(:placeholder-shown) + .label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: #004F44;
}

button {
    background-color: #004F44;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-info, .form-container {
        width: 100%;
        padding: 1.2rem;
    }
}

/* ==================== */
/* TRUST INDICATORS */
/* ==================== */
.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
}

.trust-icon {
    font-size: 2rem;
    color: var(--primary);
}

.trust-text {
    font-size: 0.9rem;
    text-align: center;
    color: #555;
}

/* ==================== */
/* NEWSLETTER SECTION */
/* ==================== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary), #00382f);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    border-radius: 10px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('<?php echo $base_url; ?>user/img/pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.newsletter-subtitle {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: #e68a00;
    transform: translateY(-2px);
}

.newsletter-disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 1rem;
}

.newsletter-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(10px);
    max-width: 400px;
}

.newsletter-message.success {
    background-color: #e6ffed;
    color: #1a7f37;
    border: 1px solid #b5efc4;
}

.newsletter-message.error {
    background-color: #ffe6e6;
    color: #d60000;
    border: 1px solid #f5a3a3;
}

.newsletter-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==================== */
/* SOCIAL PROOF */
/* ==================== */
.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--gray);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    animation: fadeIn 1s ease-out;
}

.social-proof-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.social-proof-text {
    font-size: 0.9rem;
}

.social-proof-name {
    font-weight: bold;
}

.social-proof-location {
    color: #666;
    font-size: 0.8rem;
}

/* ==================== */
/* INSTAGRAM FEED */
/* ==================== */
.instagram-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.instagram-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.instagram-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-item:hover .instagram-image {
    transform: scale(1.05);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-likes {
    color: white;
    font-weight: bold;
}

/* ==================== */
/* TRUSTED CLIENTS / LOGO SCROLL */
/* ==================== */
.section { /* This appears to be a general section animation, possibly for this and other sections */
    margin-bottom: 6rem;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.4s; }
.section:nth-child(4) { animation-delay: 0.6s; }
.section:nth-child(5) { animation-delay: 0.8s; }

.clients-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 2rem 0;
    padding: 1rem 0;
}

.clients-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

/* Pause animation on hover */
.clients-container:hover .clients-track {
    animation-play-state: paused;
}

.clients-grid {
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
}

.client-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 79, 68, 0.1);
    min-width: 200px;
    flex-shrink: 0;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.client-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 10px;
    transition: all 0.3s ease;
}

.client-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.client-card:hover .client-logo img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.client-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Gradient fade effect at edges */
.clients-container::before,
.clients-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.clients-container::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.clients-container::after {
    right: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}

/* ==================== */
/* GLOBAL ANIMATIONS */
/* ==================== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.5); }
}

@keyframes zoomOut {
    from { transform: scale(1.5); }
    to { transform: scale(1); }
}

@keyframes badgePulse {
    0% { transform: rotate(15deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.05); }
    100% { transform: rotate(15deg) scale(1); }
}

@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(0, 79, 68, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 79, 68, 0.8); }
    100% { box-shadow: 0 0 10px rgba(0, 79, 68, 0.5); }
}

@keyframes smoothReveal {
    0% { transform: scale(1.4) rotate(-2deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes textGlide {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes ripple {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 400px; height: 400px; opacity: 0; }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from { transform: translateX(-10px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes heartbeat {
    0%, 100% {
      transform: scale(1);
    }
    25% {
      transform: scale(1.05);
    }
    50% {
      transform: scale(0.95);
    }
    75% {
      transform: scale(1.02);
    }
}