:root {
    /* Colors */
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --primary-neon: #00f3ff;
    --primary-neon-glow: rgba(0, 243, 255, 0.4);
    --secondary-neon: #e0e0e0;
    --accent-warm: #ffe600;
    --text-main: #ffffff;
    --text-muted: #cccccc;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-padding: 2rem;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    /* Page Transition Base */
    opacity: 0;
    /* Start invisible for fade-in */
    animation: pageFadeIn 0.5s ease-out forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body.page-exiting {
    animation: pageFadeOut 0.4s ease-in forwards;
    pointer-events: none;
    /* Prevent double clicks */
}

@keyframes pageFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Ensure main content slides up on load */
main {
    animation: pageSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Global Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.neon-text {
    color: var(--primary-neon);
    text-shadow: 0 0 10px var(--primary-neon-glow);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: transparent;
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
    box-shadow: 0 0 5px var(--primary-neon-glow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-neon-glow);
}

.btn-primary:hover {
    background-color: var(--primary-neon);
    color: var(--bg-dark);
}

/* Button Variants */
.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    background: var(--primary-neon);
    color: var(--bg-dark);
    border: none;
    cursor: pointer;
}

/* Navbar Scaffolding */
.navbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-neon);
    text-shadow: 0 0 8px var(--primary-neon-glow);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        gap: 3rem;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
    }

    .nav-links.nav-active {
        transform: translateX(0);
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height));
    background: #000;
}

.carousel-container {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide .hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.5s;
    /* Delay content reveal */
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--primary-neon);
    color: var(--bg-dark);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Why LED Section */
.why-led {
    padding: 6rem 0;
    background: var(--bg-dark);
    position: relative;
}

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

.benefit-item {
    padding: 1rem;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition-medium);
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.neon-blue {
    color: var(--primary-neon);
    border: 1px solid var(--primary-neon);
}

.neon-green {
    color: #00ff88;
    border: 1px solid #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.neon-purple {
    color: #d600ff;
    border: 1px solid #d600ff;
    box-shadow: 0 0 10px rgba(214, 0, 255, 0.2);
}

.neon-yellow {
    color: var(--accent-warm);
    border: 1px solid var(--accent-warm);
    box-shadow: 0 0 10px rgba(255, 230, 0, 0.2);
}

.benefit-item h3 {
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Impact Section */
.impact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-dark));
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.comparison-visual {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comp-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    align-items: center;
}

.comp-row:last-child {
    border-bottom: none;
}

.comp-row.header {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.comp-row span.highlight {
    color: var(--primary-neon);
    font-weight: 700;
    text-shadow: 0 0 5px var(--primary-neon-glow);
}

@media (max-width: 768px) {
    .comparison-container {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        display: none;
    }

    /* Swipe support would be better, but hiding buttons for clean UI */
}

/* Animations (Reusable) */

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: url('../assets/images/hero-bg.png') no-repeat center center/cover;
    margin-top: calc(-1 * var(--header-height));
    /* Pull behind navbar */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.6), var(--bg-dark));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-label {
    display: inline-block;
    color: var(--accent-warm);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--accent-warm);
    padding-bottom: 5px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}


/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 1.5s ease-out 1s backwards;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-neon);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* Applications Section */
.applications {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-card));
}

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

.app-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    background: rgba(0, 243, 255, 0.05);
    border-color: var(--primary-neon);
    transform: translateY(-5px);
}

.app-icon {
    background: rgba(0, 243, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-neon);
    transition: var(--transition-fast);
}

.app-card:hover .app-icon {
    background: var(--primary-neon);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--primary-neon-glow);
}

.app-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.app-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--bg-card);
    /* Slight contrast */
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-medium);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-neon);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-neon);
    margin-bottom: 1.5rem;
}

/* Product Preview Section */
.products-preview {
    padding: 5rem 0;
}

.view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 1rem;
    color: var(--primary-neon);
    font-weight: 600;
}

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

.product-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card:hover {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
    border-color: var(--primary-neon);
}

.card-image {
    height: 300px;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.product-card:hover .card-overlay {
    opacity: 1;
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(rgba(0, 243, 255, 0.1), transparent);
    border-top: 1px solid rgba(0, 243, 255, 0.2);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* --- Chatbot Styles --- */
.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 35px;
    outline: none;
    border: none;
    height: 50px;
    width: 50px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-neon);
    box-shadow: 0 0 20px var(--primary-neon-glow);
    transition: all 0.2s ease;
    z-index: 1000;
}

body.show-chatbot .chatbot-toggler {
    transform: rotate(90deg);
}

.chatbot-toggler span {
    color: var(--bg-dark);
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child {
    opacity: 0;
}

body.show-chatbot .chatbot-toggler span:last-child {
    opacity: 1;
}

.chatbot-sidebar {
    position: fixed;
    right: 35px;
    bottom: 90px;
    width: 420px;
    max-height: 80vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    transform-origin: bottom right;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: all 0.1s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

body.show-chatbot .chatbot-sidebar {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.chatbot-sidebar header {
    padding: 16px 0;
    position: relative;
    text-align: center;
    color: var(--text-main);
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.chatbot-sidebar header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.chatbot-sidebar header .close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    display: none;
    cursor: pointer;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-main);
}

.chatbox {
    overflow-y: auto;
    height: 100%;
    padding: 30px 20px 70px;
    flex-grow: 1;
    scroll-behavior: smooth;
}

.chatbox .chat {
    display: flex;
    list-style: none;
    margin-bottom: 20px;
}

.chatbox .outgoing {
    justify-content: flex-end;
}

.chatbox .chat p {
    white-space: pre-wrap;
    padding: 12px 16px;
    border-radius: 10px 10px 0 10px;
    max-width: 75%;
    font-size: 0.95rem;
}

.chatbox .outgoing p {
    background: var(--primary-neon);
    color: var(--bg-dark);
    box-shadow: 0 0 10px var(--primary-neon-glow);
}

.chatbox .incoming p {
    border-radius: 10px 10px 10px 0;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbox .incoming .chat-icon {
    width: 32px;
    height: 32px;
    align-self: flex-end;
    background: var(--primary-neon);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin: 0 10px 7px 0;
    flex-shrink: 0;
}

.chat-input {
    display: flex;
    gap: 5px;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: var(--bg-card);
    padding: 3px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input textarea {
    height: 55px;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    max-height: 180px;
    padding: 15px 15px 15px 0;
    font-size: 0.95rem;
    background: transparent;
    color: var(--text-main);
}

.chat-input button {
    align-self: flex-end;
    color: var(--primary-neon);
    cursor: pointer;
    height: 55px;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    transition: all 0.2s ease;
}

.chat-input button:hover {
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--primary-neon-glow);
}

/* Typing Animation */
.typing-animation {
    display: inline-flex;
    gap: 5px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    opacity: 0.6;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@media (max-width: 490px) {
    .chatbot-sidebar {
        right: 0;
        bottom: 0;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        width: 100%;
        z-index: 2000;
    }

    .chatbot-sidebar header .close-btn {
        display: block;
    }
}

.product-modal.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.product-modal.open .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}