/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.no-js .animated {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #e6e6ff;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    line-height: 1.6;
    scroll-behavior: smooth;
    transition: background 0.5s ease;
}

/* Colors for dark gradient theme */
:root {
    --primary: #3b82f6;
    --secondary: #22c55e;
    --text: #e6e6ff;
    --light-text: #a5b4fc;
    --bg-start: #0f172a;
    --bg-end: #1e293b;
    --card-bg: #1f2a44;
    --border: #475569;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes navSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Links and buttons */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: #60a5fa;
    opacity: 0.85;
    transform: translateY(-1px);
}

.btn {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}
/* Transition overlay for page changes */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}
.transition-overlay.active {
    opacity: 1;
    visibility: visible;
}
body.transitioning {
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::after {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Fix for Secondary Button Light Effect */
.btn.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
    padding: 8px 16px; /* Adjusted for consistency with job-card usage */
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.btn.secondary::after {
    content: none; /* Remove the gradient overlay for secondary buttons */
}

.btn.secondary:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
/* Adjust spacing for "View Careers" button in showcase */
.showcase-item .showcase-content .btn.secondary {
    margin-top: 16px; /* Add space above the button */
    display: inline-block; /* Ensure it behaves as a block-level element with margin */
}

/* Ensure Job Card Buttons Align with Fix */
.job-card .btn.secondary {
    display: inline-block; /* Ensure proper inline behavior */
    text-align: center;
    width: auto; /* Prevent unwanted stretching */
}

.badge {
    background: #ef4444;
    color: #fff;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* Header */
header {
    background: linear-gradient(180deg, #0f172a, #1e293b);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: background 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    transition: padding 0.3s ease;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-links li {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-links li.in-view {
    animation: slideInLeft 0.5s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

.nav-links li a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links li a:hover {
    color: var(--light-text);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s ease;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    animation: navSlideIn 0.3s forwards;
}

/* Hero */
.hero {
    position: relative;
    text-align: center;
    padding: 120px 24px;
    overflow: hidden;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    isolation: isolate;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(15, 23, 42, 0.9));
}

.hero.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.hero-image.in-view {
    animation: scaleIn 0.8s ease 0.2s forwards;
}

.hero-image:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 24px;
    background: rgba(31, 41, 55, 0.75);
    border-radius: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    z-index: 2;
    width: 90%;
    max-width: 700px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-content.in-view {
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-content:hover {
    transform: translate(-50%, -52%);
}

.hero-content h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.hero-content p {
    font-size: 18px;
    color: var(--light-text);
    font-weight: 400;
    transition: color 0.3s ease;
}

/* Product Hero */
.product-hero {
    position: relative;
    text-align: center;
    padding: 120px 24px;
    overflow: hidden;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    isolation: isolate;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(15, 23, 42, 0.9));
}

.product-hero.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.product-hero-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 1;
}

.product-hero-image {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Careers Section */
.career-hero {
    padding: 120px 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(31, 41, 55, 0.95));
    border-bottom: 1px solid rgba(71, 85, 105, 0.2);
}

.career-hero .hero-content {
    background: rgba(31, 41, 55, 0.8);
    padding: 32px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.career-hero .hero-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.career-hero .hero-content h1 {
    font-size: 42px;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.career-hero .hero-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

#careers {
    padding: 64px 24px;
    background: rgba(31, 41, 55, 0.9);
    border-radius: 16px;
    margin: 48px auto;
    max-width: 1280px;
}

.job-listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.job-card {
    text-align: center;
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.career-container {
    text-align: center;
}

.job-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.job-card p {
    font-size: 16px;
    color: var(--light-text);
    margin-bottom: 16px;
}

.job-card .btn.secondary {
    padding: 8px 16px;
    font-size: 14px;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.application-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease;
}

.application-form:hover {
    transform: translateY(-5px);
}

.application-form label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
    display: block;
}

.application-form input,
.application-form select,
.application-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: rgba(31, 41, 55, 0.9);
    color: var(--text);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    outline: none;
}

.application-form .btn {
    margin-top: 16px;
    padding: 12px 24px;
}

.form-note {
    font-size: 14px;
    color: var(--light-text);
    text-align: center;
    margin-top: 12px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .career-hero {
        padding: 80px 16px;
    }

    .career-hero .hero-content h1 {
        font-size: 32px;
    }

    .job-listings {
        grid-template-columns: 1fr;
    }

    .application-form {
        padding: 16px;
    }
}

.product-hero-image.in-view {
    animation: scaleIn 0.8s ease 0.2s forwards;
}

.product-hero-image:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.product-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 24px;
    background: rgba(31, 41, 55, 0.75);
    border-radius: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    z-index: 2;
    width: 90%;
    max-width: 700px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-hero-content.in-view {
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.product-hero-content:hover {
    transform: translate(-50%, -52%);
}

.product-hero-content h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.product-hero-content p {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.price {
    font-size: 26px;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.product-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Product Features */
.product-features {
    max-width: 1280px;
    margin: 48px auto;
    padding: 24px;
    background: rgba(31, 41, 55, 0.85);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.product-features.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.product-features h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    text-align: center;
    transition: color 0.3s ease;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-item {
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.feature-item.in-view {
    animation: slideInLeft 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: rgba(31, 41, 55, 0.9);
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.7;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
    object-fit: contain; /* Ensure icons fit without stretching */
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

/* Product Colors */
.product-colors {
    max-width: 1280px;
    margin: 48px auto;
    padding: 24px;
    background: rgba(31, 41, 55, 0.85);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.product-colors.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.product-colors h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    text-align: center;
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    justify-items: center;
}

.color-option {
    text-align: center;
    transition: transform 0.3s ease;
}

.color-option.in-view {
    animation: scaleIn 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

.color-option:hover {
    transform: scale(1.05);
}

.color-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color-option:hover .color-image {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.color-option p {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 8px;
}

/* Product Gallery */
.product-gallery {
    max-width: 1280px;
    margin: 48px auto;
    padding: 24px;
    background: rgba(31, 41, 55, 0.85);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.product-gallery.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.product-gallery h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.gallery-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, opacity 0.4s ease;
    max-width: 100%; /* Prevent overflow */
}

.gallery-image.in-view {
    animation: scaleIn 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

.gallery-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Social Proof */
.social-proof {
    max-width: 1280px;
    margin: 48px auto;
    padding: 24px;
    background: rgba(31, 41, 55, 0.85);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.social-proof.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.social-proof h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    text-align: center;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial {
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial.in-view {
    animation: slideInRight 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
}

.rating {
    color: #facc15;
    font-size: 14px;
    transition: color 0.3s ease;
}

/* Showcase */
.showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 64px 24px;
    max-width: 1280px;
    margin: 0 auto;
    background: rgba(31, 41, 55, 0.85);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.showcase.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.showcase-item {
    flex: 1;
    min-width: 300px;
    text-align: center;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-item.in-view {
    animation: scaleIn 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

.showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.showcase-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    transition: transform 0.4s ease;
}

.showcase-item:hover .showcase-image {
    transform: scale(1.03);
}

.showcase-content {
    padding: 24px;
}

.showcase-content h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.showcase-content p {
    font-size: 16px;
    color: var(--light-text);
    margin-bottom: 20px;
}

.showcase-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Products */
#products {
    padding: 64px 24px;
    background: rgba(31, 41, 55, 0.85);
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-width: 1280px;
    margin: 48px auto;
}

#products.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

#products h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 48px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.filter-btn {
    background: var(--card-bg);
    border: 2px solid var(--border);
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 12px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card.in-view {
    animation: scaleIn 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-gallery {
    position: relative;
    overflow: hidden;
    flex: 1 0 auto;
}

.product-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--border);
    transition: opacity 0.3s ease, transform 0.4s ease;
    max-width: 100%; /* Prevent overflow */
}

.product-image.hidden {
    display: none;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.zoom-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 260px;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
    transition: opacity 0.3s ease;
}

.zoom-image {
    width: 150%;
    height: 150%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: zoom-in;
    transition: transform 0.4s ease;
}

.product-card:hover .zoom-container {
    display: block;
    opacity: 1;
}

.product-card h3 {
    font-size: 22px;
    font-weight: 600;
    padding: 14px 18px;
    color: var(--text);
    transition: color 0.3s ease;
    flex: 0 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card p {
    color: var(--secondary);
    font-weight: 600;
    padding: 0 18px 14px;
    flex: 0 0 auto;
}

.product-actions {
    display: flex;
    gap: 12px;
    padding: 18px;
    background: rgba(31, 41, 55, 0.9);
    border-top: 2px solid var(--border);
    transition: background 0.3s ease;
    justify-content: center;
    flex: 0 0 auto;
}

/* Customizer */
#customizer {
    padding: 64px 24px;
    background: rgba(31, 41, 55, 0.85);
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-width: 1280px;
    margin: 48px auto;
}

#customizer.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 48px;
    font-size: 16px;
    color: var(--text);
}

.step {
    opacity: 0.5;
    cursor: default;
    padding-bottom: 8px;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.step.active {
    opacity: 1;
    font-weight: 600;
    border-bottom: 3px solid var(--primary);
}

.customizer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.preview {
    text-align: center;
}

.preview-image {
    width: 50%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 100%; /* Prevent overflow */
}

.preview-image.in-view {
    animation: scaleIn 0.6s ease forwards;
}

.preview-image:hover {
    transform: scale(1.03);
}

.preview p {
    margin-top: 18px;
    font-size: 16px;
    color: var(--text);
    font-weight: 500;
}

.options label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin: 18px 0 10px;
    color: var(--text);
}

.options select, .options input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    background: var(--card-bg);
    color: var(--text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.options select:focus, .options input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    outline: none;
    background: rgba(31, 41, 55, 0.9);
}

fieldset {
    border: none;
    margin: 28px 0;
    padding: 14px;
    background: rgba(31, 41, 55, 0.9);
    border-radius: 10px;
    transition: background 0.3s ease;
}

fieldset legend {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text);
}

.options label input {
    margin-right: 10px;
}

.total {
    font-size: 1.2em; /* Optional: enhances readability */
    margin-bottom: 20px; /* Space before button */
}

#total-price {
    color: var(--secondary);
    font-weight: 700;
}
#proceed {
    padding: 10px 20px; /* Optional: improves button appearance */
}
/* Cart */
#cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px; /* Optional: limits the width for better centering */
    margin: 0 auto; /* Centers the section horizontally */
    padding: 20px; /* Optional: adds some padding */
}
#cart h2 {
    margin-bottom: 20px; /* Space between title and items */
}
#cart.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

#cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.cart-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart-item.in-view {
    animation: slideInRight 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

.cart-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.cart-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    max-width: 100%; /* Prevent overflow */
}

.cart-item:hover img {
    transform: scale(1.05);
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    font-size: 20px;
    color: var(--text);
    font-weight: 600;
}

.cart-item-details p {
    font-size: 15px;
    color: var(--light-text);
    margin: 10px 0;
}

.cart-item input {
    width: 70px;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    background: var(--card-bg);
    color: var(--text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cart-item input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.cart-item .remove {
    background: transparent;
    color: #ef4444;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.cart-item .remove:hover {
    color: #dc2626;
    transform: translateY(-1px);
}

#subtotal, #shipping, #tax, #total {
    color: var(--secondary);
    font-weight: 700;
    transition: color 0.3s ease;
}

/* About Us */
#about-us {
    text-align: center;
    padding: 64px 24px;
    background: rgba(31, 41, 55, 0.85);
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-width: 1280px;
    margin: 48px auto;
}

#about-us.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-content p.in-view {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

/* Footer */
footer {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    color: var(--light-text);
    text-align: center;
    padding: 48px 224px;
    font-size: 15px;
    border-top: 2px solid rgba(71, 85, 105, 0.2);
}

footer.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto 24px;
}

.footer-links a,
.footer-sitemap a,
.footer-social a {
    display: block;
    margin: 10px 0;
    color: var(--light-text);
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-sitemap a:hover,
.footer-social a:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.footer-contact p {
    margin: 10px 0;
    font-size: 15px;
}

.footer-social a {
    margin: 0 14px;
}

.footer-sitemap {
    display: none;
}

/* Pricing Hero (for pricing.html) */
.pricing-hero {
    text-align: center;
    padding: 80px 24px;
    background: rgba(31, 41, 55, 0.85);
    border-radius: 16px;
    margin: 48px auto;
    max-width: 1280px;
    box-shadow: var(--shadow);
}

.pricing-hero.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.pricing-hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 18px;
}

/* Pricing Tiers (for pricing.html) */
.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1280px;
    margin: 48px auto;
    padding: 24px;
}

.tier {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tier.in-view {
    animation: scaleIn 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

.tier.recommended {
    border: 3px solid var(--primary);
    transform: scale(1.05);
}

.tier:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.tier h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.tier .price {
    font-size: 30px;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 18px;
}

.tier ul {
    list-style: none;
    margin-bottom: 24px;
}

.tier ul li {
    font-size: 16px;
    color: var(--light-text);
    margin: 10px 0;
}

/* Features Section (for product.html) */
.features {
    max-width: 1280px;
    margin: 48px auto;
    padding: 24px;
    background: rgba(31, 41, 55, 0.85);
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.features.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.features .feature-item {
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-align: center; /* Center-align content */
}

.features .feature-item.in-view {
    animation: slideInLeft 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

.features .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: rgba(31, 41, 55, 0.9);
}

.features .feature-item h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.features .feature-item p {
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.7;
}

/* Gallery (for product.html) */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1280px;
    margin: 48px auto;
}

.gallery.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.gallery img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, opacity 0.4s ease;
    max-width: 100%; /* Prevent overflow */
}

.gallery img.in-view {
    animation: scaleIn 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

.gallery img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Specs (for product.html) */
.specs {
    max-width: 1280px;
    margin: 48px auto;
    padding: 24px;
    background: rgba(31, 41, 55, 0.85);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.specs.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.specs h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    text-align: center;
}

.specs ul {
    list-style: none;
}

.specs ul li {
    font-size: 16px;
    color: var(--light-text);
    margin: 10px 0;
    padding: 10px;
    background: var(--card-bg);
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.specs ul li.in-view {
    animation: slideInLeft 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

.sale-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.sale-content {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    text-align: center;
    max-width: 500px;
    width: 90%;
    color: var(--text);
    border: 2px solid var(--primary);
    animation: scaleIn 0.5s ease forwards;
}

.sale-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sale-content p {
    font-size: 16px;
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.timer-item {
    background: rgba(31, 41, 55, 0.9);
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.timer-item span {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 4px;
}

.timer-item:hover {
    transform: translateY(-3px);
}

.sale-content .btn {
    margin: 0 8px 12px;
    padding: 12px 32px;
}

.specs ul li:hover {
    background: rgba(31, 41, 55, 0.9);
    transform: translateX(5px);
}

/* Shipping Info and Return Policy (for pricing.html) */
.shipping-info, .return-policy {
    max-width: 1280px;
    margin: 48px auto;
    padding: 24px;
    background: rgba(31, 41, 55, 0.85);
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

.shipping-info.in-view, .return-policy.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.shipping-info p, .return-policy p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
}

/* FAQ, Manuals, Contact Form (for support.html) */
.faq, .manuals, .contact-form {
    max-width: 1280px;
    margin: 48px auto;
    padding: 24px;
    background: rgba(31, 41, 55, 0.85);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.faq.in-view, .manuals.in-view, .contact-form.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.faq h2, .manuals h2, .contact-form h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    text-align: center;
}

details {
    margin: 14px 0;
    padding: 14px;
    background: var(--card-bg);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

details.in-view {
    animation: slideInRight 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

details[open] {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

summary {
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: color 0.3s ease;
}

summary:hover {
    color: var(--primary);
}

details p {
    font-size: 15px;
    color: var(--light-text);
    margin-top: 10px;
}

.manuals a {
    color: var(--primary);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
}

.manuals a:hover {
    color: #60a5fa;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    outline: none;
}

/* Legal Section (for legal.html) */
.legal {
    max-width: 1280px;
    margin: 48px auto;
    padding: 24px;
    background: rgba(31, 41, 55, 0.85);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.legal.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.legal h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0 12px;
}

.legal p {
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 24px;
}

.legal p.in-view {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

/* About Section (for about.html) */
.about {
    max-width: 1280px;
    margin: 48px auto;
    padding: 24px;
    background: rgba(31, 41, 55, 0.85);
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

.about.in-view {
    animation: fadeInUp 0.8s ease forwards;
}

.about-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin: 24px 0 12px;
}

/* Newsletter (for footer in some pages) */
.newsletter {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.newsletter input {
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 24px;
    background: var(--card-bg);
    color: var(--text);
    width: 220px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    outline: none;
}

/* Login Container (for login.html) */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 24px;
    background: linear-gradient(145deg, #0f172a, #1e293b);
}

.login-box {
    text-align: center;
    background: var(--card-bg);
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-width: 450px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-box.in-view {
    animation: scaleIn 0.8s ease forwards;
}

.login-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.auth-form input {
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 16px;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    outline: none;
}

.login-status, #register-status {
    font-size: 15px;
    color: var(--secondary);
    text-align: center;
    transition: opacity 0.3s ease;
}

#form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    text-align: center;
}

.switch-form {
    text-align: center;
    margin-top: 24px;
    font-size: 15px;
    color: var(--light-text);
    transition: color 0.3s ease;
}

.switch-form:hover {
    color: var(--primary);
}

/* Error Message */
#error-message {
    font-size: 15px;
    color: #ef4444;
    text-align: center;
    margin-top: 10px;
    transition: opacity 0.3s ease;
}

#error-message[style*="display: block"] {
    opacity: 1;
}

/* Video Link (left for legacy, can be removed if no longer used) */
.video-link {
    display: block;
    text-align: center;
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
    margin-top: 10px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.video-link:hover {
    color: #60a5fa;
    transform: translateY(-1px);
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.active {
        display: flex;
    }

    .hero, .product-hero {
        padding: 80px 16px;
    }

    .hero-image, .product-hero-image {
        height: 350px;
    }

    .hero-content, .product-hero-content {
        padding: 16px;
        max-width: 90%;
    }

    .hero-content h1, .product-hero-content h1 {
        font-size: 32px;
    }

    .showcase {
        flex-direction: column;
    }

    .customizer-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
        padding: 0 8px;
    }

    .product-image, .gallery-image {
        height: 200px; /* Reduced height for mobile */
    }

    .preview-image {
        height: 220px;
    }

    .login-box {
        padding: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .newsletter {
        flex-direction: column;
        align-items: center;
    }

    .newsletter input {
        width: 100%;
        max-width: 280px;
    }

    .pricing-tiers {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery img {
        height: 240px; /* Adjusted for mobile */
    }

    .feature-icon {
        width: 50px; /* Reduced icon size for mobile */
        height: 50px;
    }

    /* Reduce animation intensity on mobile */
    .hero.in-view, .product-hero.in-view, #products.in-view, #customizer.in-view, #cart.in-view, .pricing-hero.in-view, .features.in-view, .gallery.in-view, .specs.in-view, .shipping-info.in-view, .return-policy.in-view, .faq.in-view, .manuals.in-view, .contact-form.in-view, .legal.in-view, .about.in-view, footer.in-view, .login-box.in-view {
        animation-duration: 0.6s;
    }

    .feature-item.in-view, .color-option.in-view, .gallery-image.in-view, .testimonial.in-view, .showcase-item.in-view, .product-card.in-view, .cart-item.in-view, .tier.in-view, .specs ul li.in-view, details.in-view, .about-content p.in-view, .legal p.in-view {
        animation-duration: 0.5s;
        animation-delay: calc(var(--index) * 0.05s);
    }
}

@media (min-width: 1024px) {
    .customizer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-image, .product-hero-image {
        height: 650px;
    }

    .footer-sitemap {
        display: block;
    }

    .product-image, .gallery-image {
        height: 300px; /* Increased height for larger screens */
    }
}