:root {
    --bg-color: #f4f5f7;
    --text-primary: #1a1a24;
    --text-secondary: #5e6376;
    --primary-color: #f15a29;
    --primary-hover: #df4d1e;
    
    --card-bg: #ffffff;
    --card-border: #eaedf3;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Offset for the sticky header */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    --bg-color: #121212;
    --text-primary: #f8f9fa;
    --text-secondary: #a0a0a0;
    --card-bg: #1e1e1e;
    --card-border: rgba(255,255,255,0.05);
    --card-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(241, 90, 41, 0.2);
    z-index: -1;
    transform: rotate(-1deg);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-fluid {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

.btn-pill {
    border-radius: 50px;
}

.btn-primary {
    background-color: var(--text-primary);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(241, 90, 41, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid #d1d5db;
    border-radius: 50px;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: rgba(0,0,0,0.03);
}

/* Button outline specifically for dark header */
.header .btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.header .btn-outline:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
    padding: 1.5rem 0;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: #ffffff;
}

.logo img {
    height: 35px;
    filter: brightness(0) invert(1); /* Force logo to white on dark header */
}

/* Hero Main Section */
.hero-main {
    padding: 60px 0 90px 0;
    position: relative;
    z-index: 2;
}

.text-left-hero {
    max-width: 620px;
    margin: 0;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 1.5rem 0 2.5rem 0;
    line-height: 1.6;
    max-width: 580px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    background-color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary:hover {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--primary-color) !important;
}

.hero-btn-catalog {
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.hero-btn-catalog:hover {
    background: #ffffff !important;
    color: var(--text-primary) !important;
}

/* Bento Showcase Section (White background) */
.bento-section {
    background-color: #ffffff;
    padding: 4.5rem 0;
    position: relative;
    z-index: 5;
}

body.dark-mode .bento-section {
    background-color: var(--bg-color);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 500px;
    gap: 1.5rem;
}

.bento-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: #ddd; /* fallback */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--card-shadow);
}

.bento-main {
    grid-column: span 3;
    padding: 3rem;
}

.hero-slider-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.hero-slider-bg img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider-bg img.active {
    opacity: 1;
}

.bento-small {
    grid-column: span 1;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.bento-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.bento-card:hover .bento-video,
.bento-card:hover .hero-slider-bg {
    transform: scale(1.05);
}

.bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    background-color: rgba(0,0,0,0.25);
    transition: background-color 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.bento-card:hover .bento-overlay {
    background-color: rgba(0,0,0,0.0);
}

.bento-content {
    position: relative;
    z-index: 3;
    color: #fff;
}

.bento-main .bento-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 400px;
    margin-bottom: 2rem;
}

.bento-main h2 {
    color: #fff;
}

.bento-badges {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 1.5rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.badge-text {
    width: auto;
    padding: 0 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.bento-content-vertical {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.bento-content-vertical h3 {
    color: #fff;
    margin: 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    opacity: 0.95;
}

/* Benefits */
.benefits {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.benefit-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

.icon-wrapper {
    width: 55px;
    height: 55px;
    background: rgba(241, 90, 41, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Infrastructure Stats */
@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.infrastructure {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(135deg, rgba(241, 90, 41, 0.02), rgba(255, 255, 255, 0), rgba(241, 90, 41, 0.06));
    background-size: 200% 200%;
    animation: gradient-move 8s ease infinite;
    overflow: hidden;
}

.infrastructure::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300" preserveAspectRatio="none"><path d="M0,300 C200,280 300,200 500,150 C700,100 800,80 1000,0 L1000,300 Z" fill="rgba(241, 90, 41, 0.05)"/></svg>') no-repeat bottom center;
    background-size: cover;
    z-index: 0;
    filter: blur(6px);
}

.infrastructure .container {
    position: relative;
    z-index: 1;
}

.infrastructure-header-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.infrastructure-header-text {
    flex: 1;
    max-width: 650px;
}
.infrastructure-header-text h2 {
    text-align: left;
    margin-bottom: 1rem;
}
.infrastructure-header-text p {
    text-align: left;
}

.infrastructure-header-media {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    max-width: 350px;
    aspect-ratio: 1 / 1;
}
.infrastructure-header-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.infra-features-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    width: 100%;
}

.infra-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    background: #fff;
    padding: 2rem 1.2rem;
    border-radius: var(--radius-md, 16px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.04);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.infra-feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.infra-feature-icon {
    font-size: 2.8rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin: 0;
}

.infra-feature-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.infra-feature-content p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

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

/* Header Dark Mode */
.header-dark-mode {
    background: rgba(13, 13, 13, 0.98) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
.header-dark-mode .nav-link {
    color: #fff !important;
}
.header-dark-mode .logo img {
    filter: brightness(0) invert(1) !important;
}
.header-dark-mode .btn-outline {
    border-color: var(--primary-color) !important;
    color: #fff !important;
    background: var(--primary-color) !important;
}
.header-dark-mode .btn-outline:hover {
    background: transparent !important;
    color: var(--primary-color) !important;
}

/* 0. HEADER & NAVBAR */
/* Dark Card */
.stat-dark {
    background: linear-gradient(135deg, #1f2029 0%, #3a3b47 100%);
    color: #fff;
}
.stat-dark h3, .stat-dark h4 {
    color: #fff;
}
.stat-dark p {
    color: rgba(255, 255, 255, 0.8);
}

/* Light Pastel Card */
.stat-light {
    background: #fff0ea; /* very light pastel orange */
    color: var(--text-primary);
}
.stat-light h3 {
    color: var(--primary-color);
}
.stat-light p {
    color: var(--text-secondary);
}

/* Primary Color Card */
.stat-primary {
    background: var(--primary-color);
    color: #fff;
}
.stat-primary h3, .stat-primary h4 {
    color: #fff;
}
.stat-primary p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-center {
    text-align: center;
    margin-top: 2rem;
}

/* Floating Pop-up CTA */
#floating-popup {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    z-index: 1000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

#floating-popup.show {
    bottom: 2rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#floating-popup:hover {
    transform: scale(1.05);
}

/* Floating Socials Popup */
#floating-socials {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    z-index: 1000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background-color: var(--text-primary); /* Matches the same dark background of the first popup */
    color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-radius: 50px;
}

#floating-socials.show {
    bottom: 2rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#floating-socials:hover {
    transform: scale(1.05);
}

.floating-socials a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-bottom: none;
}

.floating-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.floating-socials .social-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.floating-socials .social-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
}

.floating-socials .email-btn {
    font-size: 1rem;
    font-weight: 600;
    gap: 0.5rem;
}

/* Products Grid Section */
.products-grid-section {
    padding: 6rem 0;
    position: relative;
    background-color: #f8f9fa;
}

.pg-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 4rem;
}

.pg-header-left {
    flex: 1;
    max-width: 500px;
}

.pg-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.pg-header-left h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.pg-header-left p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}

.pg-header-right {
    flex: 1.5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pg-feature {
    text-align: center;
}

.pg-feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pg-feature h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pg-feature p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.pg-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.pg-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pg-card-img-wrapper {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px; /* Slightly taller to accommodate full cover */
    width: 100%;
}

.pg-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pg-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.pg-card-title i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.pg-card-title h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.pg-card-content p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    flex: 1;
}

.pg-card-link {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.pg-card-link:hover {
    color: #d84518;
}

.pg-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.pg-cta-link {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.pg-cta-link:hover {
    color: var(--primary-color);
}

/* Logistics Section */
.logistica-section {
    position: relative;
    padding: 3rem 0 4rem; /* Reduced padding */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
    color: var(--text-primary);
    overflow: hidden;
}

.logistica-container {
    position: relative;
    z-index: 2;
}

.logistica-header {
    position: relative;
    z-index: 10;
    margin-bottom: -150px; /* Pull truck up */
    padding-top: 50px; /* Push text down */
    pointer-events: none; /* So it doesn't block interactions if any */
}

.logistica-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 500;
    line-height: 1.1;
    color: #333;
    text-align: left;
}

.logistica-center-img {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: -10px;
}

.logistica-camion {
    width: 100%;
    max-width: 950px;
    height: auto;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.3));
}

.logistica-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: -140px; /* Overlap truck heavily from bottom */
    margin-bottom: 3rem;
    position: relative;
    z-index: 3;
}

.logistica-card {
    background: #fff;
    border-radius: 40px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logistica-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

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

.logistica-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Social Proof */
.social-proof {
    padding: 6rem 0;
    background-color: #fff;
    border-radius: 40px;
    margin: 0 1rem;
}

.marquee-container {
    padding: 2rem 0;
    margin-bottom: 4rem;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.marquee {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.marquee img {
    height: 40px;
    margin: 0 3rem;
    filter: grayscale(100%) opacity(0.5);
    transition: var(--transition);
    vertical-align: middle;
}

.marquee img:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.use-cases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.light-card {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 3rem;
}

.stars {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    display: flex;
    gap: 0.3rem;
}

/* Closing CTA */
.closing {
    padding: 8rem 0;
}

.closing-panel {
    background: var(--text-primary);
    border-radius: var(--radius-lg);
    padding: 5rem 2rem;
    color: #fff;
    position: relative;
    /* overflow: visible instead of hidden so the manager's head can pop out */
    display: flex;
    align-items: center;
}

.closing-content-left {
    flex: 1;
    max-width: 55%;
    margin-left: 5%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.closing-manager-img {
    position: absolute;
    bottom: 0;
    right: 8%;
    height: 120%; /* pops out the top by 20% */
    width: auto;
    z-index: 10;
    pointer-events: none;
}

.closing-panel h2 {
    color: #fff;
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
}

.closing-panel p {
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

.closing-panel .btn-primary {
    background-color: var(--primary-color);
}

.closing-panel .btn-primary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
}

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

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}
.pulse:hover {
    animation: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .hero-cta-area {
        flex: none;
        width: 100%;
    }
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 400px;
    }
    .bento-main {
        grid-column: 1;
    }
    .bento-small {
        grid-column: 1;
    }
    .bento-content-vertical h3 {
        transform: none;
        position: static;
        translate: 0;
        margin-top: auto;
    }
    .header-right {
        display: none;
    }
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .infra-features-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .infrastructure-header-layout {
        flex-direction: column;
        gap: 2rem;
    }
    .infrastructure-header-media {
        max-width: 100%;
    }
    
    .pg-header {
        flex-direction: column;
        gap: 2rem;
    }
    
    .pg-header-right {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    width: 50px;
    height: 160px;
    border-radius: 50px;
    background: transparent;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

body.dark-mode .theme-toggle {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.dark-mode .theme-toggle:hover {
    box-shadow: 0 10px 20px rgba(241, 90, 41, 0.2);
}

.theme-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
}

.theme-icon {
    font-size: 1.5rem;
}

/* Header Scrolled State */
.header.scrolled {
    padding: 1rem 0;
    background-color: rgba(13, 13, 13, 0.85); /* Dark opacity */
    backdrop-filter: blur(12px); /* Glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Dark Mode Bug Fixes */
body.dark-mode .header.scrolled {
    background: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .stat-light {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

body.dark-mode .social-proof {
    background-color: var(--bg-color); /* To blend with the dark page */
}

body.dark-mode .marquee img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

body.dark-mode .light-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
}

body.dark-mode .light-card h3 {
    color: var(--text-primary);
}

/* Primary buttons in dark mode / slider (WhatsApp / CTA) */
body.dark-mode .btn-primary,
.products-slider-section .btn-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

body.dark-mode .btn-primary:hover,
.products-slider-section .btn-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Marquee Shadows */
body.dark-mode .marquee-container::before {
    background: linear-gradient(to right, var(--bg-color), transparent);
}
body.dark-mode .marquee-container::after {
    background: linear-gradient(to left, var(--bg-color), transparent);
}

/* Closing Panel */
body.dark-mode .closing-panel {
    background: var(--card-bg);
}

/* Hero Wrapper & Smooth Zoom Background */
.hero-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

@keyframes heroSmoothZoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.hero-bg-zoom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroSmoothZoom 22s ease-in-out infinite;
    transform-origin: center center;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    /* Left-side shadow gradient to make text readable while keeping right-side products fully exposed */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.25) 65%, transparent 100%),
                linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 25%);
    z-index: 1;
    pointer-events: none;
}

.hero-wrapper .header,
.hero-wrapper .hero-main {
    position: relative;
    z-index: 2;
}

/* Force white text on header regardless of scroll since background is always dark/transparent-dark */
.hero-wrapper .header .nav-link,
.hero-wrapper h1,
.hero-wrapper p,
.hero-wrapper .eyebrow {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-wrapper .header .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}
.hero-wrapper .header .btn-outline:hover {
    background: #fff;
    color: var(--primary-color);
}
.hero-wrapper .header .logo img {
    filter: brightness(0) invert(1);
}

.nav-phone {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.nav-phone i {
    font-size: 1.2rem;
    color: #25D366; /* WhatsApp Green */
}

/* Testimonials & Portfolio Mosaic Section */
.testimonials-section {
    padding: 6rem 0;
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
}

.portfolio-marquee-wrapper {
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Break out of container to span full viewport */
    position: relative;
    padding: 20px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.portfolio-mosaic {
    display: flex;
    width: max-content;
    gap: 20px;
    margin-bottom: 7rem;
}

.mosaic-group {
    display: flex;
    gap: 20px;
}

.mosaic-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease;
}

.mosaic-col img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mosaic-col img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Lightbox Styles */
.cg-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cg-lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.cg-lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cg-lightbox-close:hover {
    transform: scale(1.1);
}

.cg-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 90vw;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.cg-lightbox.show .cg-lightbox-content {
    transform: scale(1);
}

.cg-lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    object-fit: contain;
}

.mt-3 {
    margin-top: 1rem;
}

/* Offsets for the staggered arch effect */
.col-1, .col-7 {
    transform: translateY(80px);
}

.col-2, .col-6 {
    transform: translateY(40px);
}

.col-3, .col-5 {
    transform: translateY(10px);
}

.col-4 {
    transform: translateY(-20px);
}

/* Specific heights matching the columns */
.col-1 img, .col-7 img {
    height: 180px;
}

.col-2 img:nth-child(1), 
.col-2 img:nth-child(3), 
.col-6 img:nth-child(1), 
.col-6 img:nth-child(3) {
    height: 120px;
}

.col-2 img:nth-child(2), 
.col-6 img:nth-child(2) {
    height: 200px;
}

.col-3 img, .col-5 img {
    height: 380px;
}

.col-4 img {
    height: 480px;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonial-tag {
    display: inline-block;
    border: 1px solid var(--card-border);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    background-color: rgba(0, 0, 0, 0.02);
}

body.dark-mode .testimonial-tag {
    background-color: rgba(255, 255, 255, 0.02);
}

.testimonials-header h2 {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    line-height: 1.2;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.testimonial-stars {
    color: #ffb800; /* Gold */
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 2px;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-style: italic;
}

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

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.avatar-vc {
    background-color: #ffebe3;
    color: var(--primary-color);
}

.avatar-es {
    background-color: #e3f2fd;
    color: #1e88e5;
}

.avatar-b {
    background-color: #e8f5e9;
    color: #43a047;
}

.testimonial-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
}

.testimonial-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .portfolio-mosaic {
        gap: 10px;
        padding: 0 10px;
        margin-bottom: 5rem;
    }
    .mosaic-col {
        gap: 10px;
    }
    .mosaic-group {
        gap: 10px;
    }
    /* Adjust offsets for the remaining 5 columns */
    .col-2, .col-6 {
        transform: translateY(30px);
    }
    .col-3, .col-5 {
        transform: translateY(10px);
    }
    .col-4 {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .mosaic-group {
        gap: 10px;
    }
    
    .portfolio-mosaic {
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 3rem;
    }
    
    /* Remove vertical offsets completely on mobile to align columns */
    .col-3, .col-4, .col-5 {
        transform: none;
    }
    
    /* Adjust heights for mobile view */
    .col-3 img, .col-5 img {
        height: 260px;
    }
    .col-4 img {
        height: 320px;
    }
    
    /* Mobile Carousels for Benefits & Infrastructure */
    .benefits-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0.5rem 0.5rem 1.5rem 0.5rem;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }
    .benefits-grid::-webkit-scrollbar {
        display: none;
    }
    .benefit-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        box-sizing: border-box;
    }

    .infra-features-list {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0.5rem 0.5rem 1.5rem 0.5rem;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }
    .infra-features-list::-webkit-scrollbar {
        display: none;
    }
    .infra-feature-item {
        flex: 0 0 82%;
        scroll-snap-align: center;
        box-sizing: border-box;
    }

    /* Mobile Carousel for Soluções Emborrachadas Header Features */
    .pg-header-right {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0.5rem 0.5rem 1.5rem 0.5rem;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        width: 100%;
        box-sizing: border-box;
    }
    .pg-header-right::-webkit-scrollbar {
        display: none;
    }
    .pg-feature {
        flex: 0 0 82%;
        scroll-snap-align: center;
        box-sizing: border-box;
        background: #ffffff;
        padding: 1.5rem 1.2rem;
        border-radius: 16px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
        border: 1px solid var(--card-border, #eaedf3);
    }
    
    .pg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .pg-card-img-wrapper {
        height: 110px;
    }

    .pg-card-content {
        padding: 0.8rem;
    }

    .pg-card-title {
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }

    .pg-card-title h4 {
        font-size: 0.9rem;
    }

    .pg-card-title i {
        font-size: 1rem;
    }

    .pg-card-content p {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pg-card-link {
        font-size: 0.85rem;
    }

    /* Mobile Logistics Section Adjustments */
    .logistica-header {
        margin-bottom: 0;
        padding-top: 0;
    }
    
    .logistica-header h2 {
        text-align: center;
    }
    
    .logistica-grid {
        margin-top: -30px; /* Slight overlap instead of huge negative margin */
        gap: 1.5rem;
    }
    
    .logistica-card {
        padding: 2rem 1.5rem;
    }

    .closing-panel {
        flex-direction: column;
        padding: 3rem 1.5rem 0 1.5rem;
    }

    .closing-content-left {
        max-width: 100%;
        margin-left: 0;
        margin-bottom: 2rem;
    }

    .closing-manager-img {
        position: relative;
        right: auto;
        height: 250px;
        margin: 0 auto;
    }
}


/* ============================================================
   LINHA VERTICAL – O Processo ColorGift
   Sticky-Scroll with smooth video transitions
============================================================ */

.lv-section {
    background: #ffffff;
    color: var(--text-primary);
    position: relative;
}

/* ── Sticky Track & Container ── */
.lv-scroll-track {
    position: relative;
    height: 220vh; /* Smooth scroll height for 4 steps */
}

.lv-sticky-container {
    position: sticky;
    top: 75px;
    height: calc(100vh - 85px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    z-index: 10;
}

/* ── Header inside Sticky ── */
.lv-header {
    text-align: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.lv-title {
    font-size: clamp(1.4rem, 2.2vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0.3rem;
    color: var(--text-primary);
}

.lv-intro {
    max-width: 720px;
    margin: 0.5rem auto 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── Content Grid ── */
.lv-content-grid {
    display: flex;
    align-items: center;
    gap: 48px;
    width: 100%;
}

/* ── LEFT – Steps list ── */
.lv-steps-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lv-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.4s ease;
    position: relative;
}

.lv-step:first-child {
    border-top: 1px solid rgba(0,0,0,0.06);
}

.lv-step.active {
    opacity: 1;
}

.lv-step-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    min-width: 44px;
    letter-spacing: -1px;
    transition: color 0.3s ease;
}

.lv-step:not(.active) .lv-step-number {
    color: rgba(0,0,0,0.2);
}

.lv-step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.lv-step:not(.active) .lv-step-title {
    color: rgba(0,0,0,0.6);
}

.lv-step-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.lv-step.active .lv-step-desc {
    max-height: 120px;
    opacity: 1;
}

/* Active accent bar */
.lv-step::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--primary-color);
    border-radius: 2px;
    transition: height 0.4s ease;
}

.lv-step.active::before {
    height: 100%;
}

/* ── RIGHT – Sticky Video Panel (ENLARGED) ── */
.lv-video-panel {
    width: 560px;
    flex-shrink: 0;
    height: fit-content;
}

.lv-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a24;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
}

/* All videos stacked, transitions via opacity */
.lv-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.lv-video.lv-video-active {
    opacity: 1;
}

/* Dots */
.lv-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.lv-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lv-dot.active {
    background: var(--primary-color);
    width: 20px;
    border-radius: 4px;
}

/* Step label */
.lv-video-label {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.15);
}

/* ── Mobile ── */
@media (max-width: 900px) {
    .lv-scroll-track {
        height: auto;
    }
    .lv-sticky-container {
        position: relative;
        top: auto;
        height: auto;
        padding: 40px 20px;
    }
    .lv-content-grid {
        flex-direction: column;
        gap: 24px;
    }
    .lv-steps-panel {
        order: 2;
    }
    .lv-video-panel {
        width: 100%;
        order: 1;
    }
}


/* ============================================================
   PRODUCT DETAILS MODAL (POPUP)
============================================================ */

.pg-card {
    cursor: pointer;
    position: relative;
}

.product-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}

.product-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.product-modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg, 24px);
    width: 100%;
    max-width: 820px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-modal-overlay.active .product-modal-card {
    transform: scale(1) translateY(0);
}

body.dark-mode .product-modal-card {
    background: var(--card-bg, #1a1a24);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    font-size: 1.4rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.product-modal-close:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: rotate(90deg);
}

body.dark-mode .product-modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

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

.product-modal-media {
    background: #f4f5f8;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 380px;
}

body.dark-mode .product-modal-media {
    background: rgba(255, 255, 255, 0.03);
}

.product-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.4s ease;
}

.product-modal-media img:hover {
    transform: scale(1.05);
}

.product-modal-info {
    padding: 2.5rem 2rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(241, 90, 41, 0.1);
    padding: 5px 12px;
    border-radius: 50px;
    width: fit-content;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-modal-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

body.dark-mode .product-modal-info h3 {
    color: #ffffff;
}

.product-modal-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.product-modal-tags {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
}

.product-modal-tags span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

body.dark-mode .product-modal-tags span {
    color: rgba(255, 255, 255, 0.85);
}

.product-modal-tags i {
    color: #2e7d32;
    font-size: 1.1rem;
}

.product-modal-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

@media (max-width: 768px) {
    .product-modal-body {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
    }
    .product-modal-media {
        padding: 0;
        height: 240px;
        min-height: auto;
    }
    .product-modal-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .product-modal-info {
        padding: 1.5rem;
    }
    .product-modal-info h3 {
        font-size: 1.4rem;
    }
}


