/* Home Hero Section */
.home-hero {
    padding: 200px 20px 60px 20px;
    background-color: black;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 480px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-bg-1 {
    background-image: url('assets/home/HomeHero1.jpg');
    opacity: 1;
}

.hero-bg-2 {
    background-image: url('assets/home/HomeHero2.jpg');
    opacity: 0;
}

.home-hero .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    text-align: left;
    padding-left: 20px;
}

.home-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;    
}

.home-hero p {
    font-size: 20px;
    /* color: #666; */
}

/* Mobile styles */
@media (max-width: 716px) {
    .home-hero {
        padding: 100px 20px 40px 20px;
        min-height: 400px;
    }

    .home-hero .container {
        padding: 0 10px;
    }

    .home-hero h3 {
        font-size: 1.3rem;
    }

    .home-hero p {
        font-size: 1rem;
    }
}

/* About Section */
.about-section {
    padding: 80px 20px;
    /* background-color: #1f1f1f; */
}

.about-section .container {
    max-width: 1200px;
    /* margin: 0 auto; */
}

.about-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #cdcdcd;
    margin-bottom: 40px;
    /* text-align: center; */
}

.about-content {
    /* max-width: 900px; */
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.about-content .text {
    flex: 1;
}

.about-content .image {
    flex: 0 0 300px;
    max-width: 300px;
}

.about-content .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-content p {
    font-size: 1.3rem;
    color: #cdcdcd;
    margin-bottom: 24px;
    text-align: justify;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Mobile styles for About Section */
@media (max-width: 716px) {
    .about-section {
        padding: 60px 20px;
    }

    .about-section h2 {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-content .image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .about-content .image img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }

    .about-content p {
        font-size: 1.25rem;
        line-height: 1.7;
        text-align: left;
    }
}

/* Explore Section */
.explore-section {
    /* padding: 80px 20px; */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #1a1a1a;
}

.explore-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.explore-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #cdcdcd;
    margin-bottom: 50px;
    text-align: center;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #3a3a3a;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4a9eff, #00d4ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 1;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: #4a9eff;
}

.card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #a0a0a0;
    margin-bottom: 20px;
    flex: 1;
}

.product-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    flex: 1;
}

.product-list li {
    font-size: 0.9rem;
    color: #a0a0a0;
    padding-left: 20px;
    position: relative;
}

.product-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #4a9eff;
    font-size: 0.9rem;
}

.card-arrow {
    font-size: 1.5rem;
    color: #4a9eff;
    transition: transform 0.3s ease;
    display: inline-block;
}

.card:hover .card-arrow {
    transform: translateX(8px);
}

/* Mobile styles for Explore Section */
@media (max-width: 768px) {
    .explore-section {
        padding: 60px 20px;
    }

    .explore-section h2 {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-content {
        padding: 25px;
    }

    .card h3 {
        font-size: 1.3rem;
    }

    .product-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* KSA Banner Section */
.ksa-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 250px;
    background-image: url('assets/home/ActeAluNowInKsa.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ksa-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.ksa-banner h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Mobile styles for KSA Banner */
@media (max-width: 768px) {
    .ksa-banner {
        height: 200px;
    }

    .ksa-banner h2 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
}

/* QR Code Section */
.qrcode-section {
    padding: 100px 20px;
    background-color: #0f0f0f;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.qrcode-section .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qrcode-content {
    text-align: center;
}

.qrcode-content img {
    width: 250px;
    height: 250px;
    border-radius: 12px;
    border: 2px solid #2a2a2a;
    padding: 15px;
    background-color: #fff;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.qrcode-content img:hover {
    transform: scale(1.05);
    border-color: #4a9eff;
    box-shadow: 0 8px 30px rgba(74, 158, 255, 0.3);
}

.qrcode-content p {
    font-size: 1.1rem;
    color: #888;
}

/* Mobile styles for QR Code Section */
@media (max-width: 768px) {
    .qrcode-section {
        padding: 60px 20px;
    }

    .qrcode-content img {
        width: 200px;
        height: 200px;
    }

    .qrcode-content p {
        font-size: 1rem;
    }
}
