* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;                          
    overflow-x: hidden;
}


/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.logo span {
    color: #4CAF50;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4CAF50;
}

.util {
    display: flex;
    align-items: center;
}

.util .wishlist-icon {
    margin-top: 5px;
}

.util .cart-icon {
    margin-top: 5px;
}

.util li {
    position: relative;
    list-style: none;
    margin: 0 10px;
    color: #000000;
}


.util li a {
    margin-top: 50px;
    text-decoration: none;
    color: #000000;
    transition: 0.5s;
    font-weight: 500;
}


.util li a ion-icon {
    font-size: 1.2em;
    font-weight: 500;
}

.util li a:hover {
    color: #4CAF50;
}

.header-actions {
    display: flex;
    gap: 1rem;
}


.mobile-menu-btn {
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: #374151;
    background: none;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mobile-menu-btn button:hover {
    background-color: #f3f4f6;
}

.menu-icon {
    height: 1.5rem;
    width: 1.5rem;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    padding: 0.5rem;
    background-color: white;
}

.mobile-menu.show {
    display: block;
}


@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-menu-links {
    padding: 0.5rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #374151;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.mobile-nav-link:hover {
    color: #4CAF50;
}

/* Cart icon styles */
.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e53e3e;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.cart-count.has-items {
    opacity: 1;
    transform: scale(1);
}

/* Buttons */
.cta-button, .primary-button, .secondary-button {
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button {
    background: #4CAF50;
    color: white;
}

.primary-button {
    background: #4CAF50;
    color: white;
    font-size: 16px;
}

.secondary-button {
    background: transparent;
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.cta-button:hover, .primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.secondary-button:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
}


/* Hero Section */
#hero {
    padding: 160px 20px 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    animation: slideInLeft 1s ease;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: #4CAF50;
}

.hero-text p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    animation: slideInRight 1s ease;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Features Section */
#features {
    padding: 80px 20px;
    background: white;
}

#features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    animation: fadeIn 1s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 40px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* Products Section */
#products {
    padding: 80px 20px;
    background: #f9f9f9;
}

.products-showcase {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.product-text {
    animation: slideInLeft 1s ease;
}

.product-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    margin: 30px 0;
}

.product-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features i {
    color: #4CAF50;
}

.product-image {
    animation: slideInRight 1s ease;
}

.product-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
#stats {
    padding: 60px 20px;
    background: #4CAF50;
    color: white;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    animation: fadeIn 1s ease;
}

.stat-item h3 {
    font-size: 36px;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section h4 span {
    color: #4CAF50;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4CAF50;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #4CAF50;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0; 
    right: 15px;
    bottom: 30px;
    background: var(--primary);
    color: #4CAF50;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.back-to-top ion-icon {
    font-size: 1.5em;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .nav-content {
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .util {
        gap: 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .footer-section {
        padding: 0 1rem;
    }
}
