* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5f2e;
    --secondary-color: #2d8650;
    --accent-color: #4caf50;
    --text-color: #333;
    --light-bg: #f1f8f4;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    position: relative;
    min-height: 100vh;
}

/* Page Background Images */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
    opacity: 0.6;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: -1;
}

/* Home Page Background */
body.page-home::before {
    background-image: url('../images/bg-home.jpg');
}

/* Products Page Background */
body.page-products::before {
    background-image: url('../images/bg-products.jpg');
}

/* About Page Background */
body.page-about::before {
    background-image: url('../images/bg-about.jpg');
}

/* Sustainability Page Background */
body.page-sustainability::before {
    background-image: url('../images/bg-sustainability.jpg');
}

/* Contact Page Background */
body.page-contact::before {
    background-image: url('../images/bg-contact.jpg');
}

/* Cart Page Background */
body.page-cart::before {
    background-image: url('../images/bg-products.jpg');
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: 100px;
    background-image: url('../../assets/images/logo.png');
    background-size: 120%;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    border-radius: 50%;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--white);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* Cart Link in Navbar */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-icon-nav {
    font-size: 1.3rem;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Navbar Dropdown Menu */
.nav-item-with-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
    margin-top: 0.5rem;
}

.nav-item-with-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: var(--secondary-color);
    padding-left: 2rem;
    color: var(--white);
    border-bottom: none;
}

.dropdown-menu hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Advertisement Banner Section */
.ad-banner-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
    min-height: 400px;
    padding-top: 100px; /* Account for fixed navbar height */
    margin-top: 0;
}

.ad-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.ad-slideshow {
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 500px;
}

.ad-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 500px;
}

.ad-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--slide-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(15px);
    transform: scale(1.1);
    z-index: 0;
    opacity: 0.6;
}

.ad-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(26, 95, 46, 0.4), transparent);
    z-index: 1;
    pointer-events: none;
}

.ad-slide.active {
    opacity: 1;
    position: relative;
}

.ad-slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

/* Fallback content when images are not available */
.ad-slide .ad-fallback {
    background: linear-gradient(135deg, #1a5f2e 0%, #2d8650 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 600px;
    margin: 0 auto;
}

.ad-slide .ad-fallback h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.ad-slide .ad-fallback p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.ad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 4rem 2rem 2.5rem;
    z-index: 3;
}

.ad-overlay h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.ad-nav-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.ad-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.ad-nav-btn:hover {
    background: rgba(26, 95, 46, 0.8);
    border-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(26, 95, 46, 0.4);
}

.ad-nav-btn.prev {
    left: 2rem;
}

.ad-nav-btn.next {
    right: 2rem;
}

.ad-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
    background-color: rgba(241, 248, 244, 0.9);
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Products Page */
.products-page {
    padding: 4rem 1rem;
    padding-top: 6rem;
    min-height: 70vh;
    position: relative;
    z-index: 1;
}

.page-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    padding: 0 1rem;
}

/* Mobile-First Product Grid Layout */
.products-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Tablet - 2 columns */
@media (min-width: 640px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Desktop - 3 columns */
@media (min-width: 1024px) {
    .products-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .page-title {
        font-size: 3rem;
        margin-bottom: 3rem;
    }
    
    .products-page {
        padding: 4rem 0;
    }
}

/* Product Card - Optimized for Mobile */
.product-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    
    /* Use will-change for animation optimization */
    will-change: transform, box-shadow;
    
    /* Smooth animation with GPU acceleration */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    opacity: 1;
    animation: fadeIn 0.5s ease-out forwards;
}
.product-card {
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.5s ease-out forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }
.product-card:nth-child(9) { animation-delay: 0.9s; }
.product-card:nth-child(10) { animation-delay: 1s; }
.product-card:nth-child(n+11) { animation-delay: 1.1s; }

/* Remove old animation classes */
.product-card.animate-left,
.product-card.animate-right {
    animation: fadeIn 0.5s ease-out forwards !important;
}

/* Hover/Focus Effects - Desktop & Touch */
@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }
}

/* Touch device support - Active state */
@media (hover: none) and (pointer: coarse) {
    .product-card:active {
        transform: translateY(-4px) scale(1.01);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    }
}

/* Product Image - Responsive */
.product-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: var(--light-bg);
    cursor: pointer;
    
    /* Optimize for performance */
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Maintain aspect ratio */
    aspect-ratio: 4 / 3;
}

/* Hover effect for images - Desktop only */
@media (hover: hover) {
    .product-image:hover {
        transform: scale(1.08);
    }
}

/* Product Name */
.product-name {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

@media (min-width: 1024px) {
    .product-name {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Product Description */
.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* Product Description List (Bullet Points) */
.product-description-list {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.95rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.product-description-list li {
    margin-bottom: 0.5rem;
}

.product-description-list li:last-child {
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .product-description {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 1.8;
    }
    
    .product-description-list {
        font-size: 1rem;
        line-height: 2;
        padding-left: 2rem;
    }
}

/* Product Price Display - Removed */

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 95, 46, 0.3);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn .cart-icon {
    font-size: 1.2rem;
}

/* Optimized Animations */
@keyframes fadeIn {
    from {
        opacity: 1;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* About Page */
.about-page {
    padding: 4rem 0;
    padding-top: 6rem;
    position: relative;
    z-index: 1;
}

.founder-video-section {
    margin-bottom: 4rem;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.founder-info-section {
    margin-bottom: 4rem;
    margin-top: 2rem;
    position: relative;
}

/* Two-column layout using CSS Grid */
.founder-content {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 3rem;
    align-items: start;
    min-height: auto;
}

/* Left Column - Image (40%) - Completely Static */
.founder-image-wrapper {
    grid-column: 1;
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    will-change: auto;
    transform: none;
    transition: none;
    overflow: hidden;
}

.founder-image {
    width: 100%;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    will-change: auto;
    transform: none;
    transition: none;
}

.founder-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: block;
    will-change: auto;
    transform: none;
    transition: none;
    position: relative;
    z-index: 1;
}

/* Right Column - Content (60%) */
.founder-text-wrapper {
    grid-column: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: start;
}

.founder-text-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Heading centered ONLY within right column - Top aligned with image */
.founder-section-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    color: #1a5f2e;
    width: 100%;
    padding-top: 0;
}

.founder-subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
    width: 100%;
}

.founder-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
}

/* Text Animation - Word by Word */
.animated-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
    font-size: 1.1rem;
}

.animated-text.animate {
    opacity: 1;
    transform: translateY(0);
}

.animated-text.animate-delay-1 {
    transition-delay: 0.1s;
}

.animated-text.animate-delay-2 {
    transition-delay: 0.2s;
}

.animated-text.animate-delay-3 {
    transition-delay: 0.3s;
}

.animated-text.animate-delay-4 {
    transition-delay: 0.4s;
}

.animated-text.animate-delay-5 {
    transition-delay: 0.5s;
}

.animated-text.animate-delay-6 {
    transition-delay: 0.6s;
}

.animated-text.animate-delay-7 {
    transition-delay: 0.7s;
}

.animated-text.animate-delay-8 {
    transition-delay: 0.8s;
}

.founder-section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: #1a5f2e;
}

.highlight-underline {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: color 0.3s ease;
}

.highlight-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #2c2c2c;
    transition: width 0.4s ease;
}

/* Active state - underline animates from left to right */
.highlight-underline:active::after,
.highlight-underline.active::after {
    animation: slideUnderline 0.6s ease-out forwards;
}

@keyframes slideUnderline {
    0% {
        width: 0;
        left: 0;
    }
    100% {
        width: 100%;
        left: 0;
    }
}

.founder-subtitle-centered {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.founder-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.trademarks-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(26, 95, 46, 0.2);
}

.trademarks-section h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.trademarks-section p {
    margin-bottom: 0;
}

/* Centered Founder Layout */
.founder-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 2rem;
}

.founder-image-centered {
    max-width: 500px;
    width: 100%;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.founder-image-centered img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.founder-text-centered {
    max-width: 800px;
    margin-top: 2rem;
}

/* Word-by-word Animation */
.animated-title,
.animated-paragraph {
    overflow: hidden;
}

.animated-title {
    animation: titleWords 1.5s ease-out forwards;
}

.animated-paragraph {
    animation: paragraphWords 2s ease-out forwards;
}

@keyframes titleWords {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes paragraphWords {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Industry Section */
.industry-section {
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(26, 95, 46, 0.1) 0%, rgba(144, 238, 144, 0.1) 100%);
    border-radius: 10px;
}

.industry-content p {
    margin-bottom: 1.5rem;
}

.industry-content p:last-child {
    margin-bottom: 0;
}

/* Sustainability Section */
.sustainability-section {
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(26, 95, 46, 0.08) 0%, rgba(144, 238, 144, 0.08) 100%);
    border-radius: 10px;
}

.sustainability-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.sustainability-content p:last-child {
    margin-bottom: 0;
}

.industry-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #1a5f2e;
}

.industry-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.values-section {
    margin-top: 4rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background-color: rgba(241, 248, 244, 0.95);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* Mission & Vision Section */
.mission-vision-section {
    margin: 4rem 0;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mission-card,
.vision-card {
    background: linear-gradient(135deg, rgba(26, 95, 46, 0.1) 0%, rgba(144, 238, 144, 0.1) 100%);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary-color);
}

.mission-card h2,
.vision-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: left;
}

.mission-card p,
.vision-card p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

/* Sustainability Page */
.sustainability-page {
    padding: 4rem 0;
    padding-top: 6rem;
    position: relative;
    z-index: 1;
}

.sustainability-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.sustainability-intro h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.sustainability-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

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

.feature-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

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

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
}

.sustainability-message {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: center;
    padding: 3rem;
    background-color: rgba(241, 248, 244, 0.95);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.sustainability-message h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.sustainability-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Contact Page */
.contact-page {
    padding: 4rem 0;
    padding-top: 6rem;
    min-height: 70vh;
    position: relative;
    z-index: 1;
}

.contact-intro {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 500;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info-card {
    background: linear-gradient(135deg, rgba(241, 248, 244, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(26, 95, 46, 0.2);
    border-color: var(--secondary-color);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-info-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-info-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-form-wrapper {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.contact-form-wrapper h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.required-asterisk {
    color: #d32f2f;
    margin-left: 0.25rem;
}

.char-count {
    font-size: 0.8rem;
    color: #999;
    font-weight: normal;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: #f9f9f9;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0b0b0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(26, 95, 46, 0.1);
}

.form-group input.input-error,
.form-group textarea.input-error {
    border-color: #d32f2f;
    background-color: #fff5f5;
}

.form-group input.input-error:focus,
.form-group textarea.input-error:focus {
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-error {
    display: none;
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

.form-error[role="alert"] {
    margin-top: 0.5rem;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 1rem;
    min-height: 48px;
    touch-action: manipulation;
    will-change: transform, box-shadow;
}

.submit-btn:hover {
    background-color: #1a5f2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 95, 46, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn.loading {
    opacity: 0.85;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    display: none;
    animation: slideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    word-wrap: break-word;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .contact-form-wrapper {
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }

    .contact-form-wrapper h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contact-form {
        gap: 1.25rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 1rem;
    }

    .submit-btn {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
        min-height: 50px;
    }

    .form-message {
        padding: 0.875rem 0.75rem;
        font-size: 0.95rem;
        margin-top: 1rem;
    }

    .form-error {
        font-size: 0.8rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    .submit-btn:active {
        background-color: #1a5f2e;
        transform: scale(0.98);
    }
}

/* Tablet and up */
@media (min-width: 641px) {
    .contact-form-wrapper {
        padding: 3rem;
    }

    .contact-form-wrapper h2 {
        font-size: 2rem;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    /* Mobile dropdown styling */
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        background-color: rgba(45, 134, 80, 0.95);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        margin-top: 1rem;
        box-shadow: none;
    }

    .nav-item-with-dropdown:hover .dropdown-menu,
    .nav-item-with-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 400px;
    }

    .dropdown-menu li a {
        padding: 0.5rem 1rem;
    }

    .dropdown-menu li a:hover {
        padding-left: 1rem;
    }

    .ad-banner-section {
        min-height: 350px;
    }

    .ad-slideshow {
        min-height: 350px;
    }

    .ad-slide {
        min-height: 350px;
    }

    .ad-slide .ad-fallback {
        padding: 2rem 1.5rem;
    }

    .ad-slide .ad-fallback h2 {
        font-size: 2rem;
    }

    .ad-slide .ad-fallback p {
        font-size: 1rem;
    }

    .ad-overlay h2 {
        font-size: 1.5rem;
    }

    .section-title,
    .page-title {
        font-size: 2rem;
    }

    .founder-section-title {
        font-size: 1.8rem;
    }

    .founder-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
    }

    .founder-image-wrapper {
        grid-column: 1;
        margin-bottom: 2rem;
    }

    .founder-image {
        width: 100%;
        max-width: 100%;
    }

    .founder-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 400px;
        object-fit: contain;
    }

    .founder-text-wrapper {
        grid-column: 1;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-card,
    .vision-card {
        padding: 1.5rem;
    }
    
    .mission-card h2,
    .vision-card h2 {
        font-size: 1.5rem;
    }

    .industry-section {
        padding: 2rem 1rem;
    }

    .industry-title {
        font-size: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .products-container {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }

    .ad-banner-section {
        min-height: 300px;
    }

    .ad-slideshow {
        min-height: 300px;
    }

    .ad-slide {
        min-height: 300px;
    }

    .ad-slide .ad-fallback {
        padding: 1.5rem 1rem;
    }

    .ad-slide .ad-fallback h2 {
        font-size: 1.5rem;
    }

    .ad-slide .ad-fallback p {
        font-size: 0.9rem;
    }

    .ad-overlay {
        padding: 2rem 1rem 1rem;
    }

    .ad-overlay h2 {
        font-size: 1.2rem;
    }
}

/* Product Image Modal - Mobile Optimized */
.product-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeInModal 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity;
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal content - Responsive */
.product-modal-content {
    position: relative;
    width: 90%;
    height: auto;
    max-width: 100%;
    max-height: 100vh;
    margin: auto;
    animation: scaleInModal 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .product-modal-content {
        width: 85%;
        max-width: 800px;
    }
}

@media (min-width: 1024px) {
    .product-modal-content {
        width: 80%;
        max-width: 900px;
    }
}

/* Modal image - Performance optimized */
.product-modal-image {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    display: block;
    will-change: transform;
    
    /* Smooth swipe gestures on mobile */
    touch-action: manipulate;
}

/* Close button - Mobile friendly */
.product-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    transition: color 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: color;
    
    /* Better touch target on mobile */
    -webkit-appearance: none;
    appearance: none;
}

@media (hover: hover) {
    .product-modal-close:hover {
        color: #ccc;
    }
}

@media (hover: none) and (pointer: coarse) {
    .product-modal-close {
        top: -55px;
        width: 55px;
        height: 55px;
        font-size: 36px;
    }
    
    .product-modal-close:active {
        color: #ccc;
    }
}

/* Modal animations - GPU accelerated */
@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleInModal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Cart Page Styling */
.cart-page {
    padding: 4rem 0;
    min-height: 70vh;
    position: relative;
    z-index: 1;
}

.cart-page-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-top: 2rem;
}

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#cartItems {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item-card {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    align-items: start;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(26, 95, 46, 0.1);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cart-item-card:hover {
    box-shadow: 0 5px 20px rgba(26, 95, 46, 0.15);
    transform: translateY(-2px);
}

.cart-item-image-wrapper {
    width: 120px;
    height: 120px;
    min-width: 120px;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-name {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.cart-item-description {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f5f5f5;
    border-radius: 6px;
    padding: 0.25rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.quantity-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
}

.cart-item-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.remove-item-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ff4444;
    background-color: transparent;
    color: #ff4444;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item-btn:hover {
    background-color: #ff4444;
    color: white;
}

/* Cart Summary */
.cart-summary-container {
    position: sticky;
    top: 100px;
}

#cartSummary {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(26, 95, 46, 0.15);
    backdrop-filter: blur(10px);
}

.cart-summary-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.2rem;
    text-align: center;
}

.cart-summary-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.cart-summary-body {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.cart-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.summary-label {
    color: #666;
    font-weight: 500;
}

.summary-value {
    color: var(--text-color);
    font-weight: 600;
}

.cart-summary-divider {
    height: 2px;
    background-color: #f0f0f0;
    margin: 1rem 0;
}

.cart-total {
    font-size: 1.15rem !important;
    font-weight: 700;
}

.summary-value-total {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 46, 0.3);
}

.checkout-btn:active {
    transform: translateY(0);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 3rem;
    background-color: rgba(241, 248, 244, 0.95);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    grid-column: 1 / -1;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.empty-cart h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #666;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Cart Feedback Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Cart */
@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary-container {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-item-card {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
    }
    
    .cart-item-image-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .cart-content {
        gap: 1.5rem;
    }
}
/* Authentication Pages */
.page-auth {
    background: linear-gradient(135deg, var(--light-bg), white);
}

.auth-page {
    padding: 6rem 0;
    min-height: 80vh;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(26, 95, 46, 0.15);
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease;
}

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

.auth-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    text-align: center;
}

.auth-header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
}

.auth-header p {
    margin: 0;
    opacity: 0.9;
}

.auth-form {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form label {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-form input,
.auth-form textarea {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.auth-form input:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 95, 46, 0.1);
}

.auth-form .checkbox {
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

.auth-form .checkbox input {
    width: auto;
    cursor: pointer;
}

.auth-form .checkbox label {
    margin: 0;
    cursor: pointer;
}

.auth-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 95, 46, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    display: block;
    animation: slideDown 0.3s ease;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-footer {
    padding: 1.5rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.auth-footer p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Authentication Modal */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-content {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: scaleIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary-color);
}

.auth-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    text-align: center;
}

.auth-modal-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
}

.auth-modal-header p {
    margin: 0;
    opacity: 0.9;
}

.auth-modal-buttons {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-modal-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.auth-modal-btn:hover {
    border-color: var(--primary-color);
    background-color: rgba(26, 95, 46, 0.05);
    transform: translateX(10px);
}

.auth-modal-btn span {
    font-size: 2rem;
    min-width: 50px;
}

.auth-modal-btn strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.auth-modal-btn small {
    color: #666;
    font-size: 0.85rem;
}

.auth-modal-footer {
    padding: 1rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
    color: #666;
    border-top: 1px solid #e0e0e0;
}

.auth-modal-footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* User Profile Menu */
.user-profile-menu {
    position: relative;
}

.user-profile-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.user-profile-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    overflow: hidden;
    z-index: 100;
}

.user-profile-menu:hover .profile-dropdown {
    display: block;
}

.profile-dropdown a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-dropdown a:hover {
    background-color: var(--light-bg);
}

.auth-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.auth-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.auth-link.signin:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.auth-link.signup {
    background-color: rgba(255, 255, 255, 0.3);
}

.auth-link.signup:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Responsive Auth */
@media (max-width: 768px) {
    .auth-container {
        margin: 0 1rem;
    }

    .auth-card {
        border-radius: 10px;
    }

    .auth-header {
        padding: 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.4rem;
    }

    .auth-form {
        padding: 1.5rem;
        gap: 1rem;
    }

    .auth-modal-content {
        width: 95%;
    }

    .auth-modal-buttons {
        padding: 1.5rem;
        gap: 0.8rem;
    }

    .auth-modal-btn {
        padding: 1rem;
        gap: 0.8rem;
    }

    .auth-modal-btn span {
        font-size: 1.5rem;
        min-width: 40px;
    }
}

/* Extra-Small Phones (320px and below) */
@media (max-width: 320px) {
    .container {
        padding: 0 12px;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 1rem;
    }

    /* Reduce navbar padding */
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar .container {
        padding: 0 12px;
    }

    /* Reduce ad banner padding */
    .ad-nav-buttons {
        padding: 1rem 0.5rem;
        gap: 0.5rem;
    }

    /* Fix hero section spacing */
    .hero-section {
        padding: 3rem 1rem;
        margin-top: 80px;
    }

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

    /* Reduce product grid gap */
    .product-grid {
        gap: 0.75rem;
    }

    /* Reduce form field padding */
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 16px;
    }

    /* Compact contact form buttons */
    .submit-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Founder section responsive */
    .founder-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
    }
    
    .founder-image-wrapper {
        grid-column: 1;
        margin-bottom: 2rem;
    }
    
    .founder-image {
        width: 100%;
        max-width: 100%;
    }
    
    .founder-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 400px;
        object-fit: contain;
    }

    .founder-text-wrapper {
        grid-column: 1;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-card,
    .vision-card {
        padding: 1.5rem;
    }
    
    .mission-card h2,
    .vision-card h2 {
        font-size: 1.5rem;
    }

    .founder-bio {
        padding: 1rem;
    }

    /* Compact testimonials */
    .testimonial-item {
        padding: 1rem;
    }

    .testimonial-item h4 {
        font-size: 0.9rem;
    }

    /* Reduce footer font sizes */
    footer {
        padding: 2rem 0;
    }

    footer h3 {
        font-size: 0.95rem;
    }

    footer p, footer a {
        font-size: 0.85rem;
    }

    /* Compact cart item card */
    .cart-item-card {
        grid-template-columns: 80px 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .cart-item-image-wrapper {
        width: 80px;
        height: 80px;
    }

    .cart-item-name {
        font-size: 1rem;
    }

    /* Compact buttons */
    button {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    /* Reduce modal close button */
    .product-modal-close {
        top: -40px;
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
}

/* Very Small Phones (up to 360px) - Additional fixes */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

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

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

    .navbar-menu {
        gap: 1rem;
    }

    /* Ensure no overflow in ad banner */
    .ad-banner-section {
        overflow: hidden;
        min-height: 250px;
    }
}