/* ============================================
   Home Page Styles - Anas Plastic Enterprises
   ============================================ */

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B5CB8 50%, #DC2626 100%);
    overflow: hidden;
    padding: 100px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff10" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInDown 1s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
    animation: slideInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1.5s ease;
}

/* Earth Animation Container */
.earth-animation {
    position: absolute;
    right: -15rem;
    bottom: -10rem;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
}

.earth {
    position: relative;
    width: 500px;
    aspect-ratio: 1;
    border-radius: 50%;
    background-image: url('https://i.postimg.cc/9QCCCVsQ/earth.png');
    background-repeat: repeat-x;
    background-size: cover;
    animation: earth 40s linear infinite, pulse 2s linear infinite alternate-reverse;
    box-shadow: 0 -1px 1px 1px white,
        -1px 1px 1px 1px #64BEC8, 
        0 0 80px -20px #64BEC8, 
        inset 0 0 76px -10px #64BEC8,
        inset 0 0 56px -10px #64BEC8;
}

.earth:before,
.earth:after {
    content: '';
    position: absolute;
    left: 70px;
    height: 10px;
    border-radius: 45%;
    filter: blur(12px);
    transform: rotate(0deg);
    animation: rotation 10s linear infinite;
}

.earth:before {
    width: 14%;
    box-shadow: inset 0 0 70px 90px #A47478, 
        0 0 140px 70px #A47478;
}

.earth:after {
    width: 7%;
    height: 10px;
    box-shadow: inset 0 0 70px -50px white, 
        inset 0 0 70px 90px #E5BC77, 
        0 0 130px 50px #E5BC77;
}

@keyframes earth {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -199% 0;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 -1px 1px 1px white,
            -1px 1px 1px 1px #64BEC8, 
            0 0 80px -20px #64BEC8, 
            inset 0 0 76px -10px #64BEC8,
            inset 0 0 56px -10px #64BEC8;
    }
    100% {
        box-shadow: 0 -1px 1px 1px white,
            -1px 1px 1px 1px #64BEC8, 
            0 0 100px -20px #64BEC8, 
            inset 0 0 76px -10px #64BEC8,
            inset 0 0 36px -10px #64BEC8;
    }
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--background);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background: #F8FAFC;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.category-icon i {
    font-size: 2rem;
    color: white;
}

.category-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.category-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.category-link:hover {
    gap: 12px;
    color: var(--secondary-color);
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .earth {
        width: 300px;
    }

    .features-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .earth {
        width: 200px;
    }
}