/* ============================================
           HOMEPAGE ENHANCEMENTS
           (Matching Blog, About, Contact Pages)
        ============================================ */

/* ----- Hero Section Enhancement ----- */
#hero {
    position: relative;
    overflow: hidden;
    background-image: url("img/hero4.png");
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 80px;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.3) 0%,
            transparent 60%);
    z-index: 0;
}

#hero h4,
#hero h2,
#hero h1,
#hero p,
#hero a {
    position: relative;
    z-index: 1;
    animation: fadeUp 0.8s ease forwards;
}

#hero h4 {
    animation-delay: 0.1s;
    opacity: 0;
}

#hero h2 {
    animation-delay: 0.2s;
    opacity: 0;
}

#hero h1 {
    animation-delay: 0.3s;
    opacity: 0;
}

#hero p {
    animation-delay: 0.4s;
    opacity: 0;
}

#hero a {
    animation-delay: 0.5s;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero .shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #4169E1, #5c7cff);
    color: #fff;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(65, 105, 225, 0.35);
    transition: all 0.3s ease;
}

#hero .shop-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(65, 105, 225, 0.45);
}

#hero .shop-btn i {
    transition: transform 0.3s ease;
}

#hero .shop-btn:hover i {
    transform: translateX(6px);
}

/* ----- Feature Section Enhancement ----- */
#feature .fe-box {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

#feature .fe-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4169E1, transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

#feature .fe-box:hover::after {
    transform: scaleX(1);
}

#feature .fe-box:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 15px 40px rgba(65, 105, 225, 0.10);
}

/* ----- Product Section Enhancement ----- */
#product1 .pro-container,
#new-arrivals .pro-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

#product1 .pro,
#new-arrivals .pro {
    transition: all 0.4s ease;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

#product1 .pro:hover,
#new-arrivals .pro:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(65, 105, 225, 0.10);
    border-color: rgba(65, 105, 225, 0.15);
}

#product1 .pro img,
#new-arrivals .pro img {
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

#product1 .pro:hover img,
#new-arrivals .pro:hover img {
    transform: scale(1.05);
}

/* Product Overlay Enhancement */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
}

.pro:hover .product-overlay {
    opacity: 1;
    visibility: visible;
}

.product-overlay a {
    padding: 10px 24px;
    background: #fff;
    color: #0f172a;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-overlay a:hover {
    background: #4169E1;
    color: #fff;
    transform: translateY(-3px);
}

/* ----- Banner Section Enhancement ----- */
#banner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin: 40px 80px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

#banner img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

#banner:hover img {
    transform: scale(1.03);
}

#banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.6) 0%,
            rgba(15, 23, 42, 0.2) 100%);
}

#banner h4,
#banner h2,
#banner button {
    position: absolute;
    z-index: 2;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
}

#banner h4 {
    top: 25%;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#banner h2 {
    top: 40%;
    font-size: 36px;
    font-weight: 800;
    width: 80%;
}

#banner h2 span {
    color: #ffd700;
}

#banner button {
    top: 65%;
    padding: 14px 36px;
    background: #fff;
    color: #0f172a;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#banner button:hover {
    background: #4169E1;
    color: #fff;
    transform: translateX(-50%) scale(1.05);
}

/* ----- Section Titles ----- */
#product1 h2,
#new-arrivals h2 {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
}

#product1>p,
#new-arrivals>p {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
}

/* ----- Responsive Fixes ----- */
@media (max-width: 991px) {
    #hero {
        padding: 0 40px;
        height: 70vh;
    }

    #hero h1 {
        font-size: 38px;
        line-height: 46px;
    }

    #hero h2 {
        font-size: 30px;
    }

    #banner {
        margin: 40px;
    }

    #banner h2 {
        font-size: 28px;
        width: 90%;
    }

    #banner img {
        height: 40vh;
    }

    #product1 .pro-container,
    #new-arrivals .pro-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    #hero {
        padding: 0 25px;
        height: 60vh;
        background-position: 65% center;
    }

    #hero h1 {
        font-size: 30px;
        line-height: 38px;
    }

    #hero h2 {
        font-size: 24px;
    }

    #hero h4 {
        font-size: 14px;
    }

    #hero p {
        font-size: 14px;
    }

    #hero .shop-btn {
        padding: 14px 30px;
        font-size: 14px;
    }

    #banner {
        margin: 25px 20px;
        border-radius: 16px;
    }

    #banner img {
        height: 35vh;
    }

    #banner h2 {
        font-size: 22px;
        top: 35%;
    }

    #banner h4 {
        font-size: 14px;
        top: 20%;
    }

    #banner button {
        padding: 12px 28px;
        font-size: 14px;
        top: 68%;
    }

    #product1 .pro-container,
    #new-arrivals .pro-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    #product1 .pro img,
    #new-arrivals .pro img {
        height: 220px;
    }

    #product1 h2,
    #new-arrivals h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    #hero {
        padding: 0 18px;
        height: 55vh;
    }

    #hero h1 {
        font-size: 24px;
        line-height: 32px;
    }

    #hero h2 {
        font-size: 20px;
    }

    #hero .shop-btn {
        padding: 12px 24px;
        font-size: 13px;
    }

    #banner {
        margin: 20px 12px;
        border-radius: 14px;
    }

    #banner img {
        height: 30vh;
    }

    #banner h2 {
        font-size: 18px;
        width: 95%;
        top: 32%;
    }

    #banner h4 {
        font-size: 12px;
        top: 18%;
    }

    #banner button {
        padding: 10px 22px;
        font-size: 13px;
        top: 70%;
    }

    #product1 .pro-container,
    #new-arrivals .pro-container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    #product1 .pro img,
    #new-arrivals .pro img {
        height: 180px;
    }

    #product1 h2,
    #new-arrivals h2 {
        font-size: 24px;
    }

    #product1>p,
    #new-arrivals>p {
        font-size: 14px;
    }

    .product-overlay a {
        padding: 6px 14px;
        font-size: 11px;
    }

    .product-overlay {
        gap: 6px;
    }

    /* Feature Section Mobile */
    #feature {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 20px 12px;
    }

    #feature .fe-box {
        padding: 16px 10px;
        margin: 0;
    }

    #feature .fe-box img {
        width: 50px;
    }

    #feature .fe-box h6 {
        font-size: 10px;
    }
}