@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bg-dark: #030712;
    --bg-card: rgba(8, 14, 28, 0.6);
    --bg-card-hover: rgba(12, 22, 44, 0.85);
    --primary: #f59e0b; /* Cyber Cyan */
    --primary-glow: rgba(245, 158, 11, 0.4);
    --secondary: #06b6d4; /* Purple Glow */
    --secondary-glow: rgba(6, 182, 212, 0.4);
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(245, 158, 11, 0.25);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Custom Interactive Cursor (hidden on touch devices) */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.custom-cursor-dot {
    width: 4px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 5px var(--secondary);
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background-color: rgba(245, 158, 11, 0.1);
    border-color: var(--secondary);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 1002;
    box-shadow: 0 0 10px var(--primary);
}

/* Glassmorphism card system with dynamic mouse glow support */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

/* Glowing border effect tracking the mouse */
.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        350px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(245, 158, 11, 0.08),
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.glass:hover::before {
    opacity: 1;
}

.glass:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 40px 0 rgba(245, 158, 11, 0.04);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 40px;
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 14px 40px;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: 2px;
}

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

.logo-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdown Styles */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(4, 8, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 0;
    min-width: 240px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    text-align: left;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.02);
    padding-left: 28px;
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .nav-item-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: all;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 10px 0 0 0;
        min-width: auto;
        display: none;
        text-align: center;
    }
}

.nav-cta {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #000;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
    text-decoration: none;
    font-size: 0.85rem;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4), 0 0 10px rgba(6, 182, 212, 0.3);
    color: #000;
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Page Banner/Hero standard */
.page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    background: radial-gradient(circle at 50% 30%, rgba(0, 242, 254, 0.05), transparent 60%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--bg-dark));
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 30%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 12px;
    display: inline-block;
    background: rgba(245, 158, 11, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 254, 0.15);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Footer styling */
footer {
    border-top: 1px solid var(--border-color);
    background-color: #02050d;
    padding: 80px 40px 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-info .logo {
    margin-bottom: 24px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px;
    }
    
    header.scrolled {
        padding: 12px 20px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(85vw, 340px);
        height: 100vh;
        background: rgba(7, 13, 30, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 85px 20px 30px 20px;
        gap: 10px;
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid rgba(245, 158, 11, 0.25);
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.85);
        overflow-y: auto;
        z-index: 1001;
    }
    
    .nav-menu li {
        width: 100%;
        list-style: none;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 12px 16px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #E2E8F0;
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-align: left;
        transition: all 0.2s ease;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: rgba(245, 158, 11, 0.15);
        border-color: #F59E0B;
        color: #F59E0B;
        padding-left: 20px;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        background: rgba(3, 7, 18, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 10px !important;
        padding: 8px !important;
        margin-top: 8px !important;
        box-shadow: none !important;
    }

    .nav-item-dropdown.active-mobile .dropdown-menu {
        display: block !important;
    }

    .dropdown-item {
        padding: 10px 14px !important;
        border-radius: 8px !important;
        font-size: 0.82rem !important;
        color: #94A3B8 !important;
    }

    .dropdown-item:hover {
        background: rgba(245, 158, 11, 0.1) !important;
        color: #F59E0B !important;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-cta {
        display: none;
    }
    
    .page-title {
        font-size: 2.75rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Folding light section styles */
.folding-light-section {
    background-color: #ffffff;
    color: #0f172a;
    position: relative;
    padding: 100px 40px;
    z-index: 10;
    margin: 0;
}

.folding-light-section .section-title,
.folding-light-section .story-title,
.folding-light-section .mission-title {
    color: #0f172a;
}

.folding-light-section .mission-text,
.folding-light-section .story-text,
.folding-light-section .tech-desc {
    color: #334155;
}

.folding-light-section .highlight-title {
    color: #0f172a;
}

.folding-light-section .highlight-desc {
    color: #475569;
}


.folding-light-section .section-tag {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.2);
    color: var(--secondary);
}


.folding-light-section .img-container {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 360px;
    margin: 0 auto;
}

.folding-light-section .showcase-image-wrapper {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Products overrides in light sections */
.folding-light-section .product-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.folding-light-section .product-card:hover {
    background: #ffffff;
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.08);
}

.folding-light-section .product-title {
    color: #0f172a;
}

.folding-light-section .product-desc {
    color: #334155;
}

.folding-light-section .spec-value {
    color: #0f172a;
}

.folding-light-section .spec-label {
    color: #64748b;
}

.folding-light-section .product-btn {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

.folding-light-section .product-btn:hover {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #000;
    border-color: transparent;
}

.folding-light-section .filter-btn {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
    color: #475569;
}

.folding-light-section .filter-btn:hover,
.folding-light-section .filter-btn.active {
    background: rgba(0, 242, 254, 0.06);
    border-color: var(--primary);
    color: #0f172a;
}

/* Tech stack overrides in light sections */
.folding-light-section .tech-row {
    border-color: rgba(0, 0, 0, 0.06);
}

.folding-light-section .tech-visual {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.06);
}

.folding-light-section .tech-tag-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
    color: #334155;
}

/* Contact overrides in light sections */
.folding-light-section .info-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.folding-light-section .info-value {
    color: #0f172a;
}

.folding-light-section .info-label {
    color: var(--secondary);
}

.folding-light-section .map-mockup {
    background: #0f172a;
    border-color: rgba(0, 0, 0, 0.08);
}

.folding-light-section .contact-form-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.folding-light-section .form-title {
    color: #0f172a;
}

.folding-light-section .form-label {
    color: #475569;
}

.folding-light-section .form-control {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

.folding-light-section .form-control:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}


/* Showcase Section Styles */
.scroll-showcase {
    background-color: #ffffff;
    color: #0f172a;
    padding: 100px 40px;
    position: relative;
    z-index: 10;
    margin: 0;
}

.showcase-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.showcase-sticky-visual {
    position: sticky;
    top: 140px;
    width: 45%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #060b18;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.showcase-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s ease-out;
}

.showcase-hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hud-circle {
    width: 120px;
    height: 120px;
    color: var(--primary);
}

.showcase-scroll-content {
    width: 55%;
    padding: 100px 0;
}

.showcase-step {
    margin-bottom: 250px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0.2;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.showcase-step.active {
    opacity: 1;
    transform: translateY(0);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 2px;
}

.showcase-step h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.showcase-step p {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .showcase-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .showcase-sticky-visual {
        position: relative;
        top: 0;
        width: 100%;
        height: 350px;
    }
    
    .showcase-scroll-content {
        width: 100%;
        padding: 0;
    }
    
    .showcase-step {
        margin-bottom: 120px;
        opacity: 1;
        transform: none;
    }
}

/* Robot Head Assembly SVG Styles */
.robot-assembly-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #040814;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.robot-assembly-svg {
    width: 85%;
    height: 85%;
    max-width: 380px;
    filter: drop-shadow(0 10px 25px rgba(245, 158, 11, 0.1));
}

.robot-assembly-svg g {
    transform-origin: center;
    transition: transform 0.05s ease-out, opacity 0.05s ease-out;
}

/* Typewriter blinking cursor */
.typewriter-cursor {
    margin-left: 2px;
    color: var(--primary);
    animation: blink-caret 0.75s step-end infinite;
    font-weight: 300;
}

@keyframes blink-caret {
    from, to { color: transparent }
    50% { color: var(--primary); }
}

/* ==========================================================================
   Shared Page Components & Grid Layouts (Globally accessible across pages)
   ========================================================================== */

/* Buttons */
.btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #000;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(0, 242, 254, 0.03);
    transform: translateY(-3px);
}

/* Image Containers */
.img-container {
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: #060b18;
    position: relative;
    transition: var(--transition-smooth);
}

.img-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.img-container:hover img {
    transform: scale(1.05);
}

/* Story/Mission Section Grid */
.story-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.story-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.story-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
}

.story-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Stats Row Section */
.stats-section {
    padding: 80px 40px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(3, 7, 18, 0.5);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Features Stack Section */
.features-section {
    padding: 120px 40px;
    position: relative;
    background: linear-gradient(180deg, var(--bg-dark), #02050c);
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 48px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.feature-link {
    color: var(--primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.feature-link:hover {
    gap: 12px;
    color: var(--text-primary);
}

/* Bottom CTA Callout */
.cta-section {
    padding: 120px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 40px;
    position: relative;
    z-index: 1;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.08), transparent 60%),
                radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.08), transparent 60%),
                rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Media Queries for Shared Components */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .story-container { gap: 40px; }
}

@media (max-width: 768px) {
    .story-container { grid-template-columns: 1fr; gap: 40px; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .cta-title { font-size: 2rem; }
    .cta-desc { font-size: 1rem; }
    .cta-box { padding: 40px 20px; }
    .humanoid-spec-grid,
    .industrial-spec-grid,
    .mobility-spec-grid,
    .defense-spec-grid { grid-template-columns: 1fr !important; }
}

/* === Folding Light Section: Glass Card Dark-to-Light Override === */
/* Glass cards inside white sections need light styling, not the default dark glassmorphism */
.folding-light-section .glass {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.folding-light-section .glass::before {
    /* Disable the dark glow track inside light sections */
    background: radial-gradient(
        350px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(168, 85, 247, 0.05),
        transparent 80%
    );
}

.folding-light-section .glass:hover {
    background: #f8fafc;
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.08);
}

/* Spec grid layout for all sector pages */
.humanoid-spec-grid,
.industrial-spec-grid,
.mobility-spec-grid,
.defense-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

i m g   {   m a x - w i d t h :   1 0 0 % ;   h e i g h t :   a u t o ;   d i s p l a y :   b l o c k ;   }  
 

/* STRAIGHT SECTION BOUNDARIES - ALL ANGULAR SLANTS & CUTS REMOVED */
section, main > section, .folding-light-section, .hero, .mission-section, .stats-section, .features-section, .scroll-showcase, .cta-section {
  clip-path: none !important;
  transform: none !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* FLAT STRAIGHT SECTION BOUNDARIES */
section, main > section, .hero, .mission-section, .folding-light-section, .stats-section, .features-section, .scroll-showcase, .cta-section { clip-path: none !important; -webkit-clip-path: none !important; transform: none !important; border-radius: 0 !important; margin: 0 !important; position: relative !important; z-index: 1 !important; }



/* ==========================================================================
   BOOKLY MASTER ESTIMATOR & SPEC OPTION BUTTON STYLES (DARK GLASS THEME)
   ========================================================================== */
.bookly-section {
    position: relative;
    z-index: 10;
}

.b-service-card {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    padding: 18px !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.b-service-card:hover {
    background: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15) !important;
}

.b-service-card.active {
    background: rgba(245, 158, 11, 0.18) !important;
    border-color: #F59E0B !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.35), inset 0 0 12px rgba(245, 158, 11, 0.1) !important;
}

/* Option Buttons in Step 2 (Charger hardware, panel size, location, etc.) */
.btn-option {
    flex: 1;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #CBD5E1 !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    line-height: 1.3 !important;
    font-family: inherit !important;
}

.btn-option:hover {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #FFF !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2) !important;
}

.btn-option.active {
    background: linear-gradient(135deg, #F59E0B, #D97706) !important;
    color: #000 !important;
    border-color: #F59E0B !important;
    font-weight: 800 !important;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-1px) !important;
}

/* Time Slot Buttons */
.b-time-slot {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    cursor: pointer !important;
    transition: all 0.22s ease !important;
    backdrop-filter: blur(8px) !important;
}

.b-time-slot:hover {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-1px) !important;
}

.b-time-slot.active {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: #10B981 !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.35) !important;
}

/* Custom Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    outline: none;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #F59E0B;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
    border: 2px solid #0B132B;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 18px rgba(245, 158, 11, 1);
}

@media (max-width: 900px) {
    .bookly-layout-grid {
        grid-template-columns: 1fr !important;
    }
    .service-cards-grid {
        grid-template-columns: 1fr !important;
    }
}


/* Quick Service Switcher Tabs in Step 2 */
.quick-service-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(245,158,11,0.3) transparent;
}

.quick-service-tab {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94A3B8;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.quick-service-tab:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #FFF;
    border-color: rgba(245, 158, 11, 0.4);
}

.quick-service-tab.active {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #000 !important;
    border-color: #F59E0B;
    font-weight: 800;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}

/* Distance Quick Presets */
.dist-preset-btn {
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dist-preset-btn:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
    color: #FFF;
}

.dist-preset-btn.active {
    background: #F59E0B;
    color: #000;
    font-weight: 800;
    border-color: #F59E0B;
}

@media (max-width: 768px) {
    .option-grid-2 {
        grid-template-columns: 1fr !important;
    }
    .option-flex-stack {
        flex-direction: column !important;
    }
    .dist-presets-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    input[type="range"]::-webkit-slider-thumb {
        width: 28px !important;
        height: 28px !important;
    }
}
