/* Hero Section */
.hero {
    min-height: 100%;
    background: linear-gradient(135deg, #1a5f7a, #88c7dc);
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
    padding: 100px 20px 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.1; }
    50% { opacity: 0.15; }
    100% { opacity: 0.1; }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.3s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.6s forwards;
}

.hero-btn {
    padding: 8px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
}

.hero-btn-primary {
    background: #ff6b6b;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.hero-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-image {
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    animation: fadeLeft 1s ease 0.9s forwards;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        justify-content: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 60px 15px 20px;
        min-height: auto;
    }

    .hero-container {
        gap: 30px;
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        margin-top: 1.5rem;
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    .hero-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

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

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-btn {
        max-width: 200px;
        padding: 10px;
        font-size: 1rem;
    }

    .hero-buttons{
        flex-direction: column;
    }
}

/* Products Section */
.products {
    margin: 1rem;
    padding: 0.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--primary, #2563eb);
    margin-bottom: 0.75rem;
}

.section-title p {
    color: var(--text, #4b5563);
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.product-image {
    width: 100%;
    height: 220px; /* Reduced height for mobile */
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-details {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.product-title {
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.product-details p {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.4;
    flex-grow: 1;
}

.read-more-btn {
    display: block;
    width: max-content;
    margin: 1.5rem auto 0;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #2563eb;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.read-more-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
}
@media (max-width:1300px){
    .hero-image img{
        height: 350px;
    }
}

/* Extreme Small Mobile Devices */
@media (max-width: 350px) {
    .products {
        margin: 0.5rem;
        padding: 0.25rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-title p {
        font-size: 0.875rem;
    }

    .product-image {
        height: 180px;
    }

    .product-details {
        padding: 0.75rem;
    }
}

/* Small Mobile Devices */
@media (min-width: 321px) and (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .product-image {
        height: 220px;
    }
}

/* Tablet and Large Mobile Devices */
@media (min-width: 481px) and (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.25rem;
    }
}

/* Hover and Active States for Touch Devices */
@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .product-card:hover .product-image img {
        transform: scale(1.05);
    }
}

/* Accessibility and Performance Enhancements */
.product-card:focus-within {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.product-card img {
    will-change: transform;
}
/* Features Section */
.features {
    background: #f8fafc;
    color: #4b5563;
    padding: 1rem ;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.feature-card {
    background: #caebf652;
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);

}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
