/* ============================================
   IGEC Premium Home Page Styles
   ============================================ */

/* ============================================
   1. Hero Section
   ============================================ */
.hero-section {
    position: relative;
    padding: 100px 20px 80px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: -76px; /* Offset desktop nav height */
}

@media (max-width: 767px) {
    .hero-section {
        margin-top: 0;
        padding-top: 60px;
        min-height: 80vh;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-color: var(--bg-primary);
    background-image: url('indira gandhi.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 50%),
                radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.08), transparent 50%);
}

/* Animated Background Shapes */
.shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
    z-index: -1;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 40vw;
    height: 40vw;
    background: var(--primary-lighter);
    border-radius: 50%;
}

.shape-2 {
    bottom: 10%;
    left: -10%;
    width: 30vw;
    height: 30vw;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    animation-delay: -5s;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    width: 100%;
}

.hero-badge {
    margin-bottom: 24px;
    padding: 8px 16px;
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.hero-content h1 {
    color: var(--gray-900);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* ============================================
   2. Search Component
   ============================================ */
.search-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 650px;
    margin: 0 auto;
}

.search-container .input-with-icon {
    display: flex;
    gap: 8px;
}

.search-container .input-modern {
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-light);
    border-radius: 0;
    padding-left: 48px;
}

.search-container .input-modern:focus {
    box-shadow: none;
}

.search-container .search-btn {
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    flex-shrink: 0;
}

.quick-filters {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding: 0 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--gray-600);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.chip:hover {
    background: var(--primary-ghost);
    color: var(--primary);
}

/* Mobile Adjustments for Search */
@media (max-width: 600px) {
    .search-container {
        padding: 8px;
    }
    
    .search-container .input-with-icon {
        flex-direction: column;
    }
    
    .search-container .input-modern {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding-top: 16px;
        padding-bottom: 16px;
    }
    
    .search-container .search-btn {
        width: 100%;
        margin-top: 8px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* ============================================
   3. Features Ribbon
   ============================================ */
.features-ribbon {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    z-index: 20;
}

.features-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.features-track:hover {
    animation-play-state: paused;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 40px;
    border-right: 1px solid var(--border-light);
    white-space: nowrap;
}

.feature-box i {
    font-size: 1.25rem;
}

.feature-box span {
    font-size: 0.95rem;
    color: var(--gray-700);
}

/* ============================================
   4. Main Content Area
   ============================================ */
.main-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--duration-fast);
}

.view-all:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* ============================================
   5. Product Grid & Premium Cards
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
}

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-link-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Image Container */
.card-image-container {
    position: relative;
    aspect-ratio: 4/3;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Multiple Images Badge */
.image-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

/* Card Content */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    background: var(--bg-card);
}

@media (max-width: 640px) {
    .card-content {
        padding: 12px;
    }
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
    line-height: 1.4;
    /* Truncate to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .product-title {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.price-block {
    display: flex;
    align-items: flex-start;
    color: var(--primary-dark);
}

.price-block .currency {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 2px;
    margin-right: 2px;
}

.price-block .amount {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

@media (max-width: 640px) {
    .price-block .amount {
        font-size: 1.2rem;
    }
}

/* Hover Action Button */
.view-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal);
}

.product-card:hover .view-btn {
    background: var(--primary);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

/* ============================================
   6. Empty State
   ============================================ */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: var(--gray-50);
    border-radius: var(--radius-2xl);
    border: 2px dashed var(--border-default);
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-ghost);
    color: var(--primary);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}