/* AI Life Hub - styles.css */

/* Global Styles */
:root {
    --primary-color: #000000; /* Black */
    --secondary-color: #FFFFFF; /* White */
    --accent-color: #A7FF83; /* Lime Green */
    --text-color: #333333;
    --light-gray: #f4f4f4;
    --medium-gray: #dddddd;
    --dark-gray: #555555;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--secondary-color);
    padding-top: var(--header-height); /* For sticky header */
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: #82cc60; /* Darker accent */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800; /* Extra bold */
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0.5rem auto 0;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #82cc60;
    border-color: #82cc60;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(167, 255, 131, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--dark-gray);
    color: var(--secondary-color);
    border-color: var(--dark-gray);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    border-color: var(--text-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Pulse Animation */
.pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.pulse:hover::before {
    animation: pulse-animation 0.75s ease-out;
}

@keyframes pulse-animation {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

/* Header & Navigation */
.header {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
}

.navbar {
    height: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    margin-right: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
}

.nav-link {
    color: var(--primary-color);
    padding: 0 1rem;
    font-weight: 600;
    position: relative;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

.nav-icons {
    display: flex;
    align-items: center;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    margin-right: 1.5rem;
}

.cart-icon svg {
    stroke: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.hamburger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all var(--transition-speed);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 6rem 0;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content .hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.animated-headline .title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: reveal-line 0.6s forwards;
}

.animated-headline .title-line:nth-child(1) { animation-delay: 0.2s; }
.animated-headline .title-line:nth-child(2) { animation-delay: 0.4s; }
.animated-headline .title-line:nth-child(3) { animation-delay: 0.6s; }

.animated-headline .accent {
    color: var(--accent-color);
}

@keyframes reveal-line {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin-right: 1rem;
}

.hero-buttons .btn-outline {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.hero-buttons .btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Features Section */
.features {
    padding: 4rem 0;
}

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

.feature-card {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.feature-icon svg {
    stroke: var(--accent-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Products Preview Section */
.products-preview {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

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

.category-card {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.category-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.category-content {
    padding: 1.5rem;
}

.category-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-content p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

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

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: 1.1rem;
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    background-color: var(--accent-color);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 4rem 0 2rem;
}

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

.footer-section h4 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo .logo-img {
    height: 30px;
    margin-right: 0.5rem;
}

.footer-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.social-links a {
    margin-right: 1rem;
    color: var(--secondary-color);
    opacity: 0.8;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

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

.footer-links a {
    color: var(--secondary-color);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

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

.footer-info p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Lift Animation */
.hover-lift {
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--secondary-color);
    padding: 1.5rem;
    z-index: 2000;
    display: none; /* Hidden by default, shown by JS */
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}

.cookie-banner.glassmorphism {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-content p {
    margin-right: 2rem;
    font-size: 0.9rem;
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-buttons .btn {
    margin-left: 1rem;
}

/* Modals (Shopping Cart, Product Quick View) */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--secondary-color);
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modal-open 0.5s ease-out;
}

@keyframes modal-open {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.modal-header h3 {
    margin-bottom: 0;
}

.close {
    color: var(--dark-gray);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

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

/* Cart Modal Specifics */
#cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-right: 1rem;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: bold;
}

.cart-item-price {
    color: var(--dark-gray);
}

.cart-item-quantity input {
    width: 40px;
    text-align: center;
    margin: 0 0.5rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    padding: 0.25rem;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-total {
    text-align: right;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.modal-footer .btn {
    margin-left: 1rem;
}

/* Shop Page Styles */
.shop-header {
    background-color: var(--light-gray);
    padding: 3rem 0;
    text-align: center;
}

.shop-filters {
    padding: 2rem 0;
    border-bottom: 1px solid var(--medium-gray);
}

.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex-grow: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.search-box svg {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    stroke: var(--dark-gray);
}

.filter-buttons .filter-btn {
    background: none;
    border: 1px solid var(--medium-gray);
    color: var(--dark-gray);
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.filter-buttons .filter-btn.active,
.filter-buttons .filter-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.sort-dropdown select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: var(--secondary-color);
}

.products-section {
    padding: 3rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Square aspect ratio */
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--light-gray);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
}

.product-badge.sale { background-color: #FF6B6B; color: var(--secondary-color); }
.product-badge.featured { background-color: #4ECDC4; color: var(--secondary-color); }
.product-badge.premium { background-color: gold; color: var(--primary-color); }

.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-actions button {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-actions button:hover {
    background-color: var(--secondary-color);
}

.product-actions button svg {
    stroke: var(--primary-color);
}

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

.product-brand {
    font-size: 0.8rem;
    color: var(--dark-gray);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.product-rating .stars {
    margin-right: 0.5rem;
}

.product-rating .star {
    width: 16px;
    height: 16px;
    fill: var(--medium-gray);
}

.product-rating .star.filled {
    fill: gold;
}

.product-rating .star.half {
    /* Implement half star if needed, e.g., with a clip-path or two SVGs */
    fill: gold;
}

.product-rating .rating-text {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

.product-description {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.4;
    max-height: 4.2em; /* Approx 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    margin-bottom: 1rem;
}

.product-price .current-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.product-price .original-price {
    font-size: 1rem;
    color: var(--dark-gray);
    text-decoration: line-through;
}

.product-status {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-status.in-stock { color: green; }
.product-status.out-of-stock { color: red; }

.add-to-cart-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    margin-top: auto; /* Pushes button to bottom */
}

.add-to-cart-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

/* Product Quick View Modal */
.product-modal-content {
    max-width: 800px;
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-modal-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

.product-modal-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-modal-info .product-brand {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.product-modal-info .product-rating {
    margin-bottom: 1rem;
}

.product-modal-info #modal-product-description {
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.product-modal-info .product-features {
    margin-bottom: 1.5rem;
}

.product-modal-info .product-features h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-modal-info .product-features ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.product-modal-info .product-features li {
    margin-bottom: 0.25rem;
}

.product-modal-info .product-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.product-modal-info .product-actions .btn {
    margin-right: 1rem;
}

/* About Page Styles */
.about-hero.fullscreen-intro {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/ai-devices-collection.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--secondary-color);
}

.about-hero .hero-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.about-hero .hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
}

.scroll-arrow {
    width: 10px;
    height: 10px;
    border-left: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    transform: rotate(-45deg);
    position: absolute;
    left: 50%;
    margin-left: -5px;
    animation: scroll-down 1.5s infinite;
}

@keyframes scroll-down {
    0% { top: 10px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 25px; opacity: 0; }
}

.mission {
    padding: 4rem 0;
}

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

.mission-text .large-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.mission-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--secondary-color);
    border: 4px solid var(--accent-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-year {
    position: absolute;
    top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    background-color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-year {
    right: -70px;
}

.timeline-item:nth-child(even) .timeline-year {
    left: -70px;
}

.timeline-content {
    padding: 1.5rem;
    background-color: var(--secondary-color);
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline-content h3 {
    margin-top: 0;
}

.values {
    padding: 4rem 0;
}

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

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    margin-bottom: 1rem;
}

.value-icon svg {
    stroke: var(--accent-color);
}

.stats-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.animated-stats .stat-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animated-stats.visible .stat-item:nth-child(1) { transition-delay: 0.1s; }
.animated-stats.visible .stat-item:nth-child(2) { transition-delay: 0.2s; }
.animated-stats.visible .stat-item:nth-child(3) { transition-delay: 0.3s; }
.animated-stats.visible .stat-item:nth-child(4) { transition-delay: 0.4s; }
.animated-stats.visible .stat-item:nth-child(5) { transition-delay: 0.5s; }
.animated-stats.visible .stat-item:nth-child(6) { transition-delay: 0.6s; }

.animated-stats.visible .stat-item {
    opacity: 1;
    transform: translateY(0);
}

.stat-description {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.team {
    padding: 4rem 0;
}

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

.team-member {
    text-align: center;
    padding: 1.5rem;
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    background-color: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
}

.member-placeholder svg {
    stroke: var(--medium-gray);
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.member-role {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.certifications {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.cert-item {
    padding: 1.5rem;
}

.cert-icon {
    margin-bottom: 1rem;
}

.cert-icon svg {
    stroke: var(--accent-color);
}

/* Contact Page Styles */
.contact-header {
    background-color: var(--light-gray);
    padding: 3rem 0;
    text-align: center;
}

.contact-section {
    padding: 4rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form-container {
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.contact-form-container h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    margin-right: 0.75rem;
    display: inline-block;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid var(--accent-color);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.btn-loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-message {
    background-color: rgba(167, 255, 131, 0.2); /* Light accent */
    color: #0f5132; /* Dark green for text */
    border: 1px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

.success-icon {
    margin-right: 1rem;
}

.success-icon svg {
    stroke: #0f5132;
}

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

.contact-card {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

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

.contact-icon svg {
    stroke: var(--accent-color);
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-hours {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-top: 0.5rem;
}

.map-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--medium-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: rgba(0,0,0,0.6);
    color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.map-marker svg {
    stroke: var(--accent-color);
    margin-bottom: 0.5rem;
}

.faq-section {
    padding: 4rem 0;
}

.faq-item {
    border-bottom: 1px solid var(--medium-gray);
    margin-bottom: 1rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    transition: transform var(--transition-speed);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust as needed */
    padding-bottom: 1rem;
}

/* Business Model Page Styles */
.business-header {
    background-color: var(--light-gray);
    padding: 3rem 0;
    text-align: center;
}

.business-overview.slide-layout {
    padding: 4rem 0;
}

.slide-container {
    position: relative;
    min-height: 400px; /* Adjust as needed */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.vision-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.point-icon {
    margin-bottom: 1rem;
}

.point-icon svg {
    stroke: var(--accent-color);
}

.business-model-diagram {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.model-section {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
}

.model-arrow {
    font-size: 2rem;
    color: var(--accent-color);
}

.value-chain {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.value-item {
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.revenue-streams {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.revenue-item {
    padding: 1.5rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
}

.revenue-icon {
    margin-bottom: 1rem;
}

.revenue-icon svg {
    stroke: var(--accent-color);
}

.revenue-percentage {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-top: 0.5rem;
}

.sustainability-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.sustainability-section ul {
    list-style: disc;
    padding-left: 1.5rem;
}

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

.slide-navigation {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.slide-btn {
    background: none;
    border: 1px solid var(--medium-gray);
    color: var(--dark-gray);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.slide-btn.active,
.slide-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.collapsible-sections {
    padding: 4rem 0;
}

.collapsible-item {
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--light-gray);
    cursor: pointer;
}

.collapsible-header h3 {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.collapsible-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    transition: transform var(--transition-speed);
}

.collapsible-item.active .collapsible-toggle {
    transform: rotate(45deg);
}

.collapsible-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.collapsible-item.active .collapsible-content {
    max-height: 500px; /* Adjust as needed */
    padding: 1.5rem;
}

/* Legal Pages (Cookie, Terms, Privacy) */
.legal-header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 3rem 0;
    text-align: center;
}

.legal-header .page-title {
    color: var(--secondary-color);
}

.legal-header .page-subtitle {
    color: var(--light-gray);
}

.last-updated {
    font-size: 0.9rem;
    opacity: 0.8;
}

.legal-content {
    padding: 3rem 0;
}

.content-wrapper {
    display: flex;
    gap: 3rem;
}

.content-main {
    flex: 3;
}

.content-sidebar {
    flex: 1;
}

.content-main h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.content-main h2:first-child {
    margin-top: 0;
}

.content-main h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.content-main p,
.content-main ul,
.content-main ol {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-main ul,
.content-main ol {
    padding-left: 1.5rem;
}

.content-main ul li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

.content-main ol li {
    list-style: decimal;
    margin-bottom: 0.5rem;
}

.legal-notice {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    border-left: 5px solid var(--accent-color);
}

/* Cookie Policy Page */
.cookie-settings-panel {
    padding: 3rem 0;
    background-color: var(--light-gray);
}

.settings-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cookie-categories {
    display: grid;
    gap: 1.5rem;
}

.cookie-category {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-info h3 {
    margin-bottom: 0.25rem;
}

.category-info p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--medium-gray);
    transition: .4s;
    border-radius: 26px;
}

.slider {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .switch {
    background-color: var(--accent-color);
}

input:checked + .switch .slider {
    transform: translateX(24px);
}

input:disabled + .switch {
    cursor: not-allowed;
    opacity: 0.7;
}

.category-details {
    font-size: 0.9rem;
    color: var(--dark-gray);
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
    margin-top: 1rem;
}

.category-details p {
    margin-bottom: 0.5rem;
}

.settings-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.third-party-cookies {
    margin-top: 1.5rem;
}

.third-party-item {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

/* Terms & Conditions Page - Tabbed Layout */
.tabbed-layout .content-sidebar.fixed-menu {
    position: sticky;
    top: calc(var(--header-height) + 2rem); /* Header height + padding */
    height: calc(100vh - var(--header-height) - 4rem);
    overflow-y: auto;
}

.terms-navigation h3 {
    margin-bottom: 1rem;
}

.nav-tabs li {
    margin-bottom: 0.5rem;
}

.nav-tabs .nav-tab {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--dark-gray);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.nav-tabs .nav-tab:hover {
    background-color: var(--light-gray);
}

.nav-tabs .nav-tab.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
}

.tab-section {
    display: none;
}

.tab-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Privacy Policy Page - Split Screen */
.split-screen .content-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    height: calc(100vh - var(--header-height) - 4rem);
    overflow-y: auto;
}

.privacy-navigation h3 {
    margin-bottom: 1rem;
}

.privacy-navigation .nav-links li {
    margin-bottom: 0.5rem;
}

.privacy-navigation .nav-links .nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--dark-gray);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.privacy-navigation .nav-links .nav-link:hover {
    background-color: var(--light-gray);
}

.privacy-navigation .nav-links .nav-link.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
}

.privacy-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray);
}

.privacy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.privacy-summary ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.purpose-item,
.legal-basis-item,
.retention-item {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

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

.right-item {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.rights-contact {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image {
        order: -1; /* Move image above text on mobile */
        margin-bottom: 2rem;
    }
    .mission-content {
        grid-template-columns: 1fr;
    }
    .mission-image {
        order: -1;
        margin-bottom: 2rem;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .contact-info {
        margin-top: 2rem;
    }
    .content-wrapper {
        flex-direction: column;
    }
    .content-sidebar {
        position: static !important;
        height: auto !important;
        overflow-y: visible !important;
        margin-bottom: 2rem;
    }
    .business-model-diagram {
        flex-direction: column;
    }
    .model-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    .sustainability-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    body {
        padding-top: var(--header-height);
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-link {
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
    }
    .nav-link::after {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .hero-content .hero-title {
        font-size: 3rem;
    }
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .timeline-container::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 1rem;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 10px;
    }
    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        right: auto;
        left: 50px;
        top: -10px;
        transform: translateX(-50%);
    }
    .product-modal-body {
        grid-template-columns: 1fr;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .cookie-buttons {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    .nav-container {
        padding: 0 1rem;
    }
    .hero-content .hero-title {
        font-size: 2.5rem;
    }
    .page-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    .products-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
}


