:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --text-primary: #121212;
    --text-secondary: #5a5a5a;
    --accent-red: #e50914; /* Deep premium red */
    --accent-red-hover: #b20710;
    --border-color: rgba(0, 0, 0, 0.08);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-subtle: 0 4px 20px rgba(0,0,0,0.03);
    --shadow-hover: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 20px rgba(229, 9, 20, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: #fafafc; /* Slightly cooler, premium off-white */
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* Global Ambient Premium Fades */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 15% 50%, rgba(229, 9, 20, 0.02) 0%, transparent 40%),
                radial-gradient(circle at 85% 10%, rgba(0, 0, 0, 0.02) 0%, transparent 40%),
                radial-gradient(circle at 50% 90%, rgba(229, 9, 20, 0.015) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}


/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, #7a7a7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-red {
    background: linear-gradient(135deg, var(--accent-red) 0%, #ff4b4b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-red);
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-red { color: var(--accent-red); }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.py-5 { padding-top: 4rem; padding-bottom: 4rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-red);
    color: #fff;
    box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    color: #fff;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.btn-outline:hover {
    background-color: var(--accent-red);
    color: #fff;
}

/* Header & Nav (LLumar Style) */
.main-header {
    background-color: #ffffff;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

/* Center Nav */
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0 auto;
    height: 100%;
    align-items: center;
}

.nav-links > li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links > li > a {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0;
}

.toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

/* Hover Effects */
.has-mega-menu:hover .toggle-icon {
    transform: rotate(180deg);
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    width: 100%;
}

/* Mega Menu Dropdown */
.mega-menu {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    /* Beautiful subtle red gradient "tone" starting from the right */
    background: linear-gradient(to right, #ffffff 60%, #fff0f0 85%, #ffe6e6 100%);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    border-top: 1px solid #f0f0f0;
    border-bottom: 3px solid var(--accent-red);
    z-index: 999;
}

/* The signature LLumar diagonal cut / overlap */
.mega-menu::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: 5%;
    width: 30px;
    height: 30px;
    background-color: #ffe6e6; /* matches the gradient edge */
    border-bottom: 3px solid var(--accent-red);
    border-right: 3px solid var(--accent-red);
    transform: rotate(45deg);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.04);
    z-index: -1;
}

.mega-menu-container {
    display: flex;
    gap: 4rem;
    padding: 3rem 0;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s; /* Delayed fade in */
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-mega-menu:hover .mega-menu-container {
    opacity: 1;
    transform: translateY(0);
}

.mega-column {
    min-width: 200px;
}

.mega-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-red);
    display: inline-block;
}

.mega-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mega-links a {
    color: #555;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s;
    text-transform: none;
}

.mega-links a:hover {
    color: var(--accent-red);
}

/* Mega Menu Image Column */
.mega-image-col {
    margin-left: auto;
    position: relative;
    width: 300px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
}

.mega-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mega-image-col:hover img {
    transform: scale(1.05);
}

.mega-image-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1.5rem 1rem 1rem;
    color: white;
}

.mega-image-text h4 {
    margin: 0 0 0.2rem 0;
    font-size: 1rem;
}

.mega-image-text p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Utility / CTA */
.nav-utils {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.btn-round {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1001;
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 6s ease-out;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.slide-content h1 {
    color: #fff;
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.slide-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.5rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.slide-content .btn-wrapper {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
}

.slide.active .slide-content h1,
.slide.active .slide-content p,
.slide.active .slide-content .btn-wrapper {
    transform: translateY(0);
    opacity: 1;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 10%;
    z-index: 10;
    display: flex;
    gap: 15px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--accent-red);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--accent-red);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.slider-nav:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.tech-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(229, 9, 20, 0.08);
    border-color: rgba(229, 9, 20, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.tech-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, transparent 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    font-size: 2rem;
    transition: all 0.5s ease;
}

.tech-card:hover .tech-icon-wrapper {
    background: var(--accent-red);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

.tech-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.tech-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.tech-card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.15) 0%, transparent 70%);
    bottom: -50px;
    right: -50px;
    border-radius: 50%;
    transition: all 0.5s ease;
    opacity: 0;
}

.tech-card:hover .tech-card-glow {
    opacity: 1;
    transform: scale(1.5);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-subtle);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(229, 9, 20, 0.3);
}

.product-image-container img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-container img {
    transform: scale(1.08);
}

.product-image-placeholder {
    height: 200px;
    background: linear-gradient(45deg, #e9ecef, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    position: relative;
}

.product-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.95rem;
    flex-grow: 1;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Product Detail Page */
.product-detail-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.product-meta {
    text-transform: uppercase;
    color: var(--accent-red);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: inline-block;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.specs-table th, .specs-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    background-color: rgba(0,0,0,0.02);
    width: 30%;
    color: var(--text-primary);
    font-weight: 500;
}

.specs-table td {
    color: var(--text-secondary);
}

.specs-table tr:last-child th, .specs-table tr:last-child td {
    border-bottom: none;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-card {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--accent-red);
    margin-top: 0.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background-color: rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-red);
    background-color: rgba(0,0,0,0.05);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-red);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Stats Section / Meters */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem 2rem;
    padding: 2rem 0;
    text-align: center;
}

.circle-meter {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
}

.circle-meter svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 10px rgba(229, 9, 20, 0.2));
}

.circle-meter circle {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
}

.circle-bg {
    stroke: rgba(0, 0, 0, 0.05);
}

.circle-progress {
    stroke: var(--accent-red);
    stroke-dasharray: 440; /* 2 * pi * 70 = 440 */
    stroke-dashoffset: 440; /* Start empty */
    transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.circle-meter .meter-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-meter .meter-value small {
    font-size: 1.2rem;
    margin-left: 2px;
}

.stat-item p {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.fade-left { transform: translateX(-40px); }
.reveal.fade-right { transform: translateX(40px); }
.reveal.fade-left.active, .reveal.fade-right.active { transform: translateX(0); }

/* Responsive */
@media (max-width: 992px) {
    .container { padding: 0 1.5rem; }
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    
    /* Hero Slider Tablet */
    .slide-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .py-5 { padding-top: 3rem; padding-bottom: 3rem; }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease-in-out;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .technical-specs-container {
        padding: 0 1rem;
    }
    
    .product-detail-hero {
        padding: 120px 0 50px;
    }
    
    .container[style*="display: flex"] {
        flex-direction: column !important;
        gap: 2rem !important;
        text-align: center;
    }
    
    /* Hero Slider Responsive */
    .slide-content {
        padding: 0 5%;
        text-align: center;
        align-items: center;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .slide-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .slider-controls {
        left: 50%;
        transform: translateX(-50%);
        bottom: 30px;
    }
    
    .slider-nav {
        display: none; /* Hide arrows on small mobile, rely on dots/swipe */
    }
    
    /* Mega Menu Mobile Fixes */
    .nav-links > li {
        width: 100%;
        text-align: center;
        flex-direction: column;
        justify-content: center;
    }
    
    .nav-links > li > a {
        justify-content: center;
    }
    
    .mega-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; /* hidden by default on mobile until toggled or handled by hover */
        border-top: none;
        background-color: transparent;
    }
    
    .has-mega-menu:hover .mega-menu,
    .has-mega-menu:active .mega-menu {
        display: block;
    }
    
    .mega-menu-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
        text-align: center;
    }
    
    .mega-image-col {
        display: none;
    }
    
    .mega-menu::after {
        display: none;
    }
    
    .nav-utils {
        display: none; /* Hide utility button on mobile header to save space */
    }
}
