/* 
   Premium Industrial Tech Design System
   Theme: Dark / Glassmorphism
*/

:root {
    /* Color Palette */
    --bg-primary: #0f1012;
    /* Deep Graphite Darker */
    --bg-secondary: #1a1d21;
    /* Deep Graphite */
    --accent-orange: #ec6e46;
    --accent-glow: #FBC984;
    --accent-blue: #2d4b9a;
    --accent-blue-glow: #BED7FF;
    --accent-green: #7f9428;
    --accent-green-glow: #E8F0A8;

    --text-main: #ffffff;
    --text-muted: #94a3b8;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Spacing */
    --section-padding: 80px 20px;
    --container-width: 1200px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Prevent horizontal overflow for all media */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent {
    color: var(--accent-orange);
}

/* Glassmorphism Card */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    padding: 6px 0;
    transition: 0.3s;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #7f9428 33.33%, #ec6e46 33.33%, #ec6e46 66.66%, #2d4b9a 66.66%);
}

header.scrolled {
    background: rgba(15, 16, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 4px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 65px;
    max-width: 220px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-orange);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 16, 18, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1100;
    padding: 15px 0 10px 0;
    border-radius: 8px;
    margin-top: 0;
    transition: all 0.3s ease;
    transition-delay: 0.1s;
    /* Stable hover */
}

/* Invisible bridge to maintain hover */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    pointer-events: none;
}

/* Dropdown Arrow */
.dropdown>.nav-link::after {
    content: ' ▾';
    font-size: 10px;
    vertical-align: middle;
    opacity: 0.5;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    display: flex !important;
    flex-direction: column;
    transition-delay: 0s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: var(--text-muted);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(236, 110, 70, 0.1);
    color: var(--accent-orange);
    padding-left: 25px;
}

.dropdown-item.active {
    color: var(--accent-orange);
    background: rgba(236, 110, 70, 0.05);
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    /* Header height */
    overflow: hidden;
}

/* Abstract Background Elements */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(236, 110, 70, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 0 1 500px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--accent-blue);
    border-radius: 50px;
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    background: rgba(59, 130, 246, 0.1);
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    letter-spacing: 0.5px;
    text-transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #d65a32 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(236, 110, 70, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(236, 110, 70, 0.45);
    background: linear-gradient(135deg, #ff7e5a 0%, var(--accent-orange) 100%);
}

.video-widget {
    position: relative;
    width: 450px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Products Grid */
.products {
    padding: var(--section-padding);
    position: relative;
    background: var(--bg-primary);
}

.section-head {
    text-align: center;
    margin-bottom: 60px;
}

.section-head h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.full-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    text-indent: -9999px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(236, 110, 70, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 24px;
    margin-bottom: 16px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
}

.product-card h3 {
    font-size: clamp(13px, 1.3vw, 16px);
    margin-bottom: 8px;
    line-height: 1.3;
    overflow-wrap: break-word;
    hyphens: auto;
}

.product-card p {
    font-size: 13px;
    color: var(--text-muted);
    flex-grow: 1;
}

.card-link {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 5;
}

.card-link svg {
    transition: transform 0.2s ease;
}

.product-card:hover .card-link svg {
    transform: translateX(4px);
}

/* Footer (Simplified) */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.footer-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(236, 110, 70, 0.3);
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 600px) {
    .footer-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .footer-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

/* Screenshot Slider */
.slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar for cleaner look */
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    min-width: 100%;
    scroll-snap-align: center;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 16, 18, 0.8);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.slider-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(236, 110, 70, 0.4);
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

@media (max-width: 1100px) {
    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.slider-dot.active {
    background: var(--accent-orange);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(236, 110, 70, 0.4);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Video Gallery */
.video-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.video-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.video-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.video-info p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Internal Product Navigation */
.product-nav {
    background: rgba(236, 110, 70, 0.85); /* Premium Glassy Orange */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    position: sticky;
    top: 76px;
    z-index: 100;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .product-nav {
        top: 65px;
    }
}

.product-nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.product-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.product-nav-list li {
    margin: 0;
}

.product-nav-link {
    display: block;
    padding: 6px 15px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.product-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.product-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: white;
}

/* Mobile Overrides for Compact Navigation */
@media (max-width: 600px) {
    .product-nav-container {
        padding: 0 5px !important;
    }

    .product-nav-list {
        gap: 2px !important;
        padding: 2px 0 !important;
    }

    .product-nav-link {
        padding: 2px 6px !important;
        font-size: 11px !important;
        /* Reduced for extra compactness */
        letter-spacing: 0px !important;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Scroll To Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 36px;
    right: 36px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #d65a32 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    box-shadow: 0 4px 20px rgba(236, 110, 70, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.3s ease;
    pointer-events: none;
}

#scrollTopBtn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(236, 110, 70, 0.5);
}

/* Premium Telegram CTA */
.tg-cta-wrapper {
    padding: 80px 20px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.tg-cta-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 60px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.tg-cta-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(77, 201, 255, 0.1), transparent 40%),
                radial-gradient(circle at bottom left, rgba(159, 29, 225, 0.05), transparent 40%);
    pointer-events: none;
}

.tg-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(77, 201, 255, 0.3) 0%, rgba(159, 29, 225, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.tg-cta-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.tg-cta-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.tg-cta-icon svg {
    filter: drop-shadow(0 0 10px rgba(77, 201, 255, 0.5));
}

.tg-cta-text h2 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 800;
}

.tg-cta-text p {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.6;
    max-width: 500px;
}

.tg-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.tg-cta-btn {
    padding: 18px 42px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 14px;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.tg-cta-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #24A1DE 100%);
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.3);
}

.tg-cta-btn.max {
    background: linear-gradient(135deg, #4DC9FF 0%, #9F1DE1 100%);
    box-shadow: 0 10px 25px rgba(159, 29, 225, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tg-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.tg-cta-btn.telegram:hover {
    box-shadow: 0 0 25px rgba(36, 161, 222, 0.5);
}

.tg-cta-btn.max:hover {
    box-shadow: 0 0 25px rgba(159, 29, 225, 0.5);
}

@media (max-width: 1000px) {
    .tg-cta-wrapper {
        padding: 60px 15px;
    }

    .tg-cta-card {
        grid-template-columns: 1fr;
        padding: 40px 25px;
        text-align: center;
        gap: 30px;
        border-radius: 24px;
    }

    .tg-cta-card::before {
        border-radius: 26px;
    }

    .tg-cta-content {
        flex-direction: column;
        gap: 20px;
    }

    .tg-cta-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
        margin: 0 auto;
    }

    .tg-cta-text h2 {
        font-size: 28px;
    }

    .tg-cta-text p {
        font-size: 16px;
        margin: 0 auto;
    }

    .tg-cta-buttons {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .tg-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 18px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .tg-cta-card {
        padding: 30px 20px;
    }

    .tg-cta-text h2 {
        font-size: 24px;
    }

    .tg-cta-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        border-radius: 16px;
    }
}

#scrollTopBtn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

#scrollTopBtn:hover {
    box-shadow: 0 6px 28px rgba(236, 110, 70, 0.65);
    transform: translateY(-3px);
}

#scrollTopBtn svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 600px) {
    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* Breadcrumbs Bar — fixed, above header, top-left */
.breadcrumbs-bar {
    position: fixed;
    top: 78px;
    left: 0;
    z-index: 1005;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.breadcrumbs-bar.bc-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-8px);
}

.breadcrumbs {
    display: inline-block;
    padding: 6px 16px 6px 30px;
    background: rgba(15, 16, 18, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0 0 10px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 6px;
    color: rgba(255, 255, 255, 0.25);
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--accent-orange);
}

.breadcrumbs span {
    color: var(--text-main);
    opacity: 0.8;
}

@media (max-width: 600px) {
    .breadcrumbs {
        padding: 5px 12px 5px 15px;
        font-size: 12px;
    }

    /* Pull breadcrumbs up tight to the mobile header (logo is 60px tall, no padding) */
    .breadcrumbs-bar {
        top: 62px;
    }
}

/* Mobile Adaptation */

/* Burger Menu Button */
.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-icon {
    width: 30px;
    height: 2px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

.burger-icon::before,
.burger-icon::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.burger-icon::before {
    transform: translateY(-8px);
}

.burger-icon::after {
    transform: translateY(8px);
}

/* Active State for Burger */
.burger-menu.active .burger-icon {
    background: transparent;
}

.burger-menu.active .burger-icon::before {
    transform: rotate(45deg);
}

.burger-menu.active .burger-icon::after {
    transform: rotate(-45deg);
}

@media (max-width: 900px) {

    :root {
        --section-padding: 50px 15px;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    /* Layout */
    .hero .container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    /* Product page specific overrides */
    .hero.product-hero[style] {
        min-height: auto !important;
        padding-top: 140px !important;
        padding-bottom: 30px !important;
    }

    .product-nav[style],
    .product-nav {
        margin-top: 20px !important;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
        padding-right: 0;
    }

    .hero h1 {
        font-size: 42px;
        word-wrap: break-word;
    }

    .video-widget {
        width: 100%;
        max-width: 100%;
        height: 300px;
        margin-top: 20px;
    }

    /* Header adjustments */
    header {
        padding: 0 !important;
    }

    header.scrolled {
        padding: 0 !important;
    }

    /* Images and Video */
    img,
    video {
        max-width: 100% !important;
        height: auto !important;
    }

    /* But keep logo sized properly */
    .logo img {
        height: 60px !important;
        max-width: 200px !important;
        width: auto !important;
    }

    iframe {
        max-width: 100%;
    }

    /* Grid layouts */
    .products-grid,
    .video-section-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px;
    }

    /* Navigation */
    .burger-menu {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 16, 18, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        z-index: 1000;
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .nav-link {
        font-size: 24px;
        text-align: center;
        display: block;
        width: 100%;
    }

    /* Mobile Dropdown Integration */
    .dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .dropdown-content {
        display: block !important;
        /* Always block, use max-height/visibility for toggle */
        position: static;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        text-align: center;
        width: 100%;
        border-radius: 12px;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .dropdown.active .dropdown-content {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        margin: 10px 0;
        padding: 10px 0;
    }

    .dropdown-item {
        font-size: 16px;
        padding: 8px 0;
        opacity: 0.8;
    }

    .dropdown>.nav-link::after {
        display: none;
        /* Hide arrow on mobile to keep it clean */
    }

    .nav-container .btn {
        display: none;
    }

    /* Hide breadcrumbs when mobile menu is active */
    body.menu-open .breadcrumbs-bar {
        display: none !important;
    }

    /* Gallery and Slider */
    .gallery-scroll {
        overflow-x: auto;
        gap: 15px;
    }

    .slider-container {
        max-width: 100%;
        overflow: hidden;
    }

    /* Prevent prev/next buttons from causing overflow */
    .prev-btn,
    .next-btn {
        position: absolute;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 10px;
        max-width: 100vw;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .section-head h2 {
        font-size: 28px;
    }

    .product-card {
        padding: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .glass {
        padding: 15px !important;
    }

    /* Video blocks */
    .video-block video {
        width: 100%;
        height: auto;
    }

    /* Ensure all grids are single column */
    div[style*="grid-template-columns"] {
        display: block !important;
    }

    div[style*="grid-template-columns"]>* {
        margin-bottom: 20px;
    }

    /* Platform page specific fixes */
    .hero-content[style] {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .hero h1[style] {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    .lead[style],
    p.lead[style] {
        font-size: 16px !important;
    }

    div[style*="max-width: 1000px"],
    div[style*="max-width: 900px"],
    div[style*="max-width: 800px"] {
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* CTA section text */
    section h2[style*="font-size: 36px"] {
        font-size: 24px !important;
    }

    section p[style*="font-size: 18px"] {
        font-size: 16px !important;
    }

    /* About page intro title fix */
    .intro-block h2 {
        font-size: 24px !important;
        padding-left: 15px !important;
    }
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 16, 18, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid var(--glass-border);
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--accent-orange);
    transform: scale(1.1);
}

.zoomable {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.zoomable:hover {
    transform: scale(1.02);
}

/* --- AI INTERACTIVE DEMO STYLES --- */
.ai-demo-section {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.demo-container {
    max-width: 1000px;
}

.demo-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--glass-shadow);
}

.demo-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(45, 75, 154, 0.1);
}

.upload-zone {
    height: 100%;
    min-height: 250px;
    border: 2px dashed var(--glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.upload-zone:hover {
    border-color: var(--accent);
    background: rgba(45, 75, 154, 0.05);
}

.upload-zone p {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}

.extract-success {
    color: #4ade80 !important;
    font-weight: 600;
}

/* Results Overlay */
.demo-results-overlay {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: none;
}

.processing-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(45, 75, 154, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.scanning-pulse {
    animation: pulseBorder 1.5s infinite;
    background: rgba(45, 75, 154, 0.05) !important;
}

@keyframes pulseBorder {
    0% {
        border-color: var(--glass-border);
    }

    50% {
        border-color: var(--accent);
    }

    100% {
        border-color: var(--glass-border);
    }
}

.steps-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 24px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInStep 0.5s ease forwards;
}

@keyframes fadeInStep {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-number {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--accent);
    font-size: 18px;
    min-width: 45px;
}

.step-text {
    font-size: 16px;
    color: var(--text-main);
}

@media (max-width: 900px) {
    .demo-grid {
        grid-template-columns: 1fr;
    }

    .upload-area {
        order: -1;
    }

    .upload-zone {
        min-height: 180px;
    }
}

/* Adaptive Footer */
.main-footer {
    background: var(--bg-secondary);
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-link {
    color: var(--text-main) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-orange) !important;
}

.footer-link-sub {
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    transition: color 0.3s ease;
}

.footer-link-sub:hover {
    color: var(--accent-orange) !important;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-links {
        justify-content: center;
        gap: 15px 25px;
    }
}

/* SEO Section */
.seo-section {
    padding: 80px 0 40px 0;
    background-color: var(--bg-primary);
}

.seo-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.seo-section h1 {
    font-size: 32px;
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.3;
}

.seo-section h2 {
    font-size: 24px;
    color: var(--text-main);
    margin: 40px 0 20px 0;
}

.seo-section h3 {
    font-size: 20px;
    color: var(--text-main);
    margin: 30px 0 15px 0;
}

.seo-section p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.seo-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.seo-section li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 16px;
}

.seo-section li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
}

@media (max-width: 768px) {
    .seo-section h1 {
        font-size: 24px;
    }
    .seo-section h2 {
        font-size: 20px;
    }
    .seo-section h3 {
        font-size: 18px;
    }
    .seo-section p, .seo-section li {
        font-size: 15px;
    }
}

/* SEO Grid and Card Enhancements */
.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.seo-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.seo-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-orange);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.seo-card h3 {
    margin: 0 0 15px 0 !important;
    font-size: 20px !important;
    color: var(--accent-orange) !important;
    font-weight: 700 !important;
}

.seo-card p {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.seo-highlight-block {
    margin-top: 60px;
    padding: 50px;
    background: linear-gradient(135deg, rgba(127, 148, 40, 0.08), rgba(45, 75, 154, 0.08));
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.seo-highlight-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-orange);
}

.seo-highlight-block h4 {
    margin-top: 0;
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 25px;
}

.seo-footer-text {
    margin-top: 40px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    opacity: 0.9;
}

@media (max-width: 600px) {
    .seo-highlight-block {
        padding: 30px 20px;
    }
    .seo-card {
        padding: 25px;
    }
}

/* Header Social Links */
.header-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.header-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white !important; /* Force icons to be white initially */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

@media (max-width: 600px) {
    .header-social-link {
        width: 32px;
        height: 32px;
    }
}

.header-social-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-orange);
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
    border-radius: 50%;
}

.header-social-link:hover {
    color: white !important;
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(236, 110, 70, 0.4);
}

.header-social-link:hover::before {
    transform: scale(1);
}

.header-social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 600px) {
    .header-social-link svg {
        width: 16px;
        height: 16px;
    }
}

/* Mobile Floating Call Button */
#mobileCallBtn {
    position: fixed;
    bottom: 100px; /* Above the Scroll to Top button */
    right: 36px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #7f9428; /* Brand green */
    color: white;
    display: none; /* Desktop hidden */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 2000;
    box-shadow: 0 4px 20px rgba(127, 148, 40, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#mobileCallBtn:active {
    transform: scale(0.9);
}

#mobileCallBtn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Pulse animation for call button */
@keyframes pulse-call {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(127, 148, 40, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(127, 148, 40, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(127, 148, 40, 0); }
}

#mobileCallBtn {
    animation: pulse-call 2s infinite;
}

@media (max-width: 900px) {
    #mobileCallBtn {
        display: flex;
    }
    
    .header-socials {
        display: flex; /* Show icons in mobile header */
        gap: 8px;
        margin-left: 10px;
    }
}