/* ==========================================================================
    HOME PAGE STYLES 
   ========================================================================== */

/* Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px; /* Account for fixed header */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.8), rgba(76, 175, 80, 0.6));
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
    z-index: 1;
}

.hero-title {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: var(--line-height-tight);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: var(--line-height-relaxed);
    text-shadow: 1px 1px 2px rgb(238, 238, 238);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 1.2rem 2.5rem;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

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

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

/* About Preview Section
   ========================================================================== */
.about-preview {
    padding: 5rem 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: var(--font-size-3xl);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-bold);
}

.about-text p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin-bottom: 2rem;
    color: var(--text-light);
}

.about-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: var(--font-size-lg);
    color: var(--text-dark);
    padding: 0.5rem 0;
}

.about-features i {
    color: var(--secondary-color);
    font-size: var(--font-size-xl);
    width: 24px;
    text-align: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(46, 125, 50, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image:hover::after {
    opacity: 1;
}

/* Products Preview Section
   ========================================================================== */
.products-preview {
    padding: 5rem 0;
    background: var(--white);
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.featured-product-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.featured-product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.featured-product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.featured-product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow);
}

.featured-product-info {
    padding: 1.5rem;
}

.featured-product-title {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
}

.featured-product-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
}

.featured-product-price {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-product-price::before {
    content: "💰";
    font-size: var(--font-size-lg);
}

.section-footer {
    text-align: center;
}

.section-footer .btn {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
    border-radius: var(--border-radius-lg);
}

/* Services Preview Section
   ========================================================================== */
.services-preview {
    padding: 5rem 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.service-icon i {
    font-size: var(--font-size-3xl);
    color: var(--white);
}

.service-card h3 {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-bold);
}

.service-card p {
    color: var(--text-light);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
}

/* Contact Preview Section
   ========================================================================== */
.contact-preview {
    padding: 5rem 0;
    background: var(--white);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.contact-icon i {
    color: var(--white);
    font-size: var(--font-size-xl);
}

.contact-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
}

.contact-details p {
    color: var(--text-light);
    line-height: var(--line-height-relaxed);
    margin: 0;
    direction: ltr;
}

/* Header Controls (Home Page Specific)
   ========================================================================== */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-toggle {
    display: flex;
    background: var(--bg-light);
    border-radius: 20px;
    padding: 2px;
    border: 2px solid var(--primary-color);
    margin-right: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    min-width: 35px;
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.lang-btn:hover:not(.active) {
    background: rgba(46, 125, 50, 0.1);
}

.profile-section {
    position: relative;
    margin-right: 0.5rem;
}

.profile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: var(--z-dropdown);
    border: 1px solid #e0e0e0;
}

.profile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-full);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.user-avatar i {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    font-size: var(--font-size-base);
}

.user-email {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.dropdown-content {
    padding: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: var(--primary-color);
}

.icon-btn {
    background: var(--bg-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    margin-left: 0.25rem;
    color: var(--text-dark);
}

.icon-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.icon-btn .count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: var(--text-dark);
    border-radius: var(--border-radius-full);
    width: 18px;
    height: 18px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--bg-light);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .featured-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-list {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        border-radius: var(--border-radius);
        margin-top: 1rem;
        padding: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: var(--z-dropdown);
        /* font-size: 5rem;
        line-height: 1.4; */
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid #E2E8F0;
        text-align: center;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .header-controls {
        order: -1;
        gap: 0.25rem;
    }
    
    .profile-dropdown-menu {
        right: -50px;
        min-width: 250px;
    }
    
    .hero {
        height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-image {
        order: -1;
    }
    
    .featured-products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .hero-buttons .btn {
        padding: 1rem 1.5rem;
        font-size: var(--font-size-base);
    }
    
    .language-toggle {
        padding: 1px;
        margin-right: 0.25rem;
    }
    
    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: var(--font-size-xs);
        min-width: 30px;
    }
    
    .icon-btn {
        width: 35px;
        height: 35px;
        font-size: var(--font-size-base);
    }
    
    .icon-btn .count {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    .featured-product-card {
        margin: 0 auto;
        max-width: 350px;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: var(--font-size-2xl);
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: var(--font-size-lg);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-content {
        animation: none;
    }
    
    .featured-product-card,
    .service-card,
    .contact-item {
        transition: none;
    }
    
    .featured-product-card:hover,
    .service-card:hover,
    .contact-item:hover {
        transform: none;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here in the future */
}

