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

:root {
    --primary: #00f2ff; /* Cyber Cyan */
    --primary-rgb: 0, 242, 255;
    --primary-glow: rgba(0, 242, 255, 0.5);
    --secondary: #70ff00; /* Cyber Lime */
    --bg-dark: #030712;
    --bg-card: rgba(15, 23, 42, 0.6);
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --radius-lg: 32px;
    --radius-md: 20px;
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* We will implement a custom magnetic cursor */
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(0, 242, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(112, 255, 0, 0.05) 0%, transparent 40%);
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s ease-out;
}

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

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: var(--transition-bounce);
}

.bento-item:hover {
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 0 30px var(--primary-glow);
}

.bento-1 { grid-column: span 2; grid-row: span 2; }
.bento-2 { grid-column: span 2; }

/* Floating Glass Cards for Grants */
.glass-grant {
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(30px);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    transition: var(--transition-bounce);
}

.glass-grant::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, transparent, var(--primary), transparent);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0;
    transition: 0.3s;
}

.glass-grant:hover::after {
    opacity: 1;
}

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


/* Typography Enhancements */
.text-glow {
    text-shadow: 0 0 20px var(--primary-glow);
}

.gradient-text {
    background: linear-gradient(90deg, #fff, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Navbar Modernized */
nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100vw - 2rem);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 0.75rem 2rem;
    border-radius: 100px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: 0.3s;
}

nav a:hover { opacity: 1; color: var(--primary); }

/* Hamburger Button (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: none;
    padding: 0;
    flex-shrink: 0;
    transition: border-color 0.3s;
}
.nav-hamburger:hover { border-color: var(--primary); }
.nav-hamburger span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
@media (max-width: 860px) {
    nav {
        border-radius: 20px;
        padding: 0.75rem 1.25rem;
        flex-wrap: wrap;
        max-width: calc(100vw - 2rem);
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
        margin-top: 0.5rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        font-size: 1rem;
        opacity: 0.9;
        padding: 0.25rem 0;
    }
}

/* Animation Keyframes */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0px var(--primary-glow); }
    50% { box-shadow: 0 0 20px var(--primary-glow); }
    100% { box-shadow: 0 0 0px var(--primary-glow); }
}

.animate-pulse { animation: pulse-glow 3s infinite; }

/* Generic Bento Hover Classes */
.bento-hover-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-hover-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    transition: opacity 0.5s ease, transform 0.8s ease;
    z-index: 0;
}

.bento-hover-item:hover::before {
    opacity: 0.3;
    transform: scale(1.1);
}

.bento-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bento-main-text {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-hidden-text {
    margin-top: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary);
    font-weight: 500;
}

.bento-hover-item:hover .bento-hidden-text {
    opacity: 1;
    transform: translateY(0);
}

.bento-hover-item:hover .bento-main-text {
    transform: translateY(-10px);
}

/* Hero Visibility Controls */
.hero-content {
    transition: opacity 3s ease, transform 3s ease;
}

.hero-content.hide-me {
    opacity: 0 !important;
    transform: translateY(-20px) !important;
    pointer-events: none !important;
}

.cursor, .cursor-follower {
    transition: opacity 3s ease, transform 0.2s ease, background-color 0.3s ease;
}

/* Bento Grid Keyframes & Slideshow Animations */
@keyframes mechatronics-slideshow {
    0% { background-image: url('_DSC0633.JPG'); }
    20% { background-image: url('_DSC0634.JPG'); }
    40% { background-image: url('_DSC0635.JPG'); }
    60% { background-image: url('_DSC0636.JPG'); }
    80% { background-image: url('_DSC0637.JPG'); }
    100% { background-image: url('_DSC0633.JPG'); }
}

@keyframes rdi-slideshow {
    0% { background-image: url('_DSC0796.JPG'); }
    20% { background-image: url('_DSC0797.JPG'); }
    40% { background-image: url('_DSC0798.JPG'); }
    60% { background-image: url('_DSC0799.JPG'); }
    80% { background-image: url('_DSC0800.JPG'); }
    100% { background-image: url('_DSC0796.JPG'); }
}

@keyframes education-slideshow {
    0% { background-image: url('_DSC0801.JPG'); }
    25% { background-image: url('_DSC0802.JPG'); }
    50% { background-image: url('_DSC0803.JPG'); }
    75% { background-image: url('_DSC0804.JPG'); }
    100% { background-image: url('_DSC0801.JPG'); }
}

@keyframes sustainability-slideshow {
    0% { background-image: url('_DSC0625.JPG'); }
    20% { background-image: url('_DSC0626.JPG'); }
    40% { background-image: url('_DSC0630.JPG'); }
    60% { background-image: url('_DSC0631.JPG'); }
    80% { background-image: url('_DSC0632.JPG'); }
    100% { background-image: url('_DSC0625.JPG'); }
}

@keyframes automation-slideshow {
    0% { background-image: url('_DSC0097.JPG'); }
    14% { background-image: url('_DSC0098.JPG'); }
    28% { background-image: url('_DSC0485.JPG'); }
    42% { background-image: url('_DSC0638.JPG'); }
    56% { background-image: url('_DSC0639.JPG'); }
    70% { background-image: url('_DSC0640.JPG'); }
    84% { background-image: url('_DSC0641.JPG'); }
    98% { background-image: url('_DSC0642.JPG'); }
    100% { background-image: url('_DSC0097.JPG'); }
}

.bento-mechatronics:hover::before {
    animation: mechatronics-slideshow 10s infinite;
    opacity: 0.5 !important;
}

.bento-rdi:hover::before {
    animation: rdi-slideshow 10s infinite;
    opacity: 0.5 !important;
}

.bento-education:hover::before {
    animation: education-slideshow 10s infinite;
    opacity: 0.5 !important;
}

.bento-sustainability:hover::before {
    animation: sustainability-slideshow 10s infinite;
    opacity: 0.5 !important;
}

.bento-automation:hover::before {
    animation: automation-slideshow 16s infinite;
    opacity: 0.5 !important;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card-bg);
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}


.bento-mechatronics::before { background-image: url('_DSC0633.JPG'); }
.bento-rdi::before { background-image: url('_DSC0634.JPG'); }
.bento-education::before { background-image: url('_DSC0635.JPG'); }
.bento-sustainability::before { background-image: url('_DSC0636.JPG'); }
.bento-automation::before { background-image: url('_DSC0637.JPG'); }

/* About Section Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.about-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.15);
}

.about-card:hover::after {
    width: 80%;
}

.about-card .icon-container {
    width: 70px;
    height: 70px;
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.4s ease;
}

.about-card:hover .icon-container {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
    transform: rotate(5deg);
}

.about-card .card-number {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    opacity: 0.5;
}

.about-card .card-badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.about-card:hover .card-badge {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary);
}

.about-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Scroll Reveal Base Animations */
.scroll-reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-left {
    transform: translateX(-80px) scale(0.95);
}

.reveal-bottom {
    transform: translateY(80px) scale(0.95);
}

.reveal-right {
    transform: translateX(80px) scale(0.95);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* 3D Preloader / Intro Overlay */
#preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #020617;
    z-index: 999999; /* Higher than cursor follower dot but cursor can stay above it */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Starting background photo (empty pedestal) */
#preloader-bg-photo {
    position: absolute;
    inset: 0;
    background-image: url('Gemini.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
    transition: opacity 1.2s ease;
}

/* Assembled robot background image for final pixel-perfect crossfade */
#preloader-bg-assembled {
    position: absolute;
    inset: 0;
    background-image: url('névtelen.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

/* Blueprint Grid Background Pattern - disabled to show background image */
#preloader-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

#preloader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

#preloader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#boot-loader {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    font-family: 'Outfit', sans-serif;
    pointer-events: none;
    transition: opacity 0.8s ease;
    background: rgba(15, 23, 42, 0.6);
    padding: 2.5rem 3.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
}

.tech-prompt {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--primary-glow);
    animation: scanline-pulse 1.5s infinite;
}

.progress-bar-container {
    width: 280px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 15px var(--primary);
    transition: width 0.3s ease;
}

#skip-intro-btn {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    z-index: 3;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 0.8rem 2rem;
    border-radius: 100px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    cursor: none; /* Keep custom cursor custom */
    transition: var(--transition-bounce);
}

#skip-intro-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    transform: scale(1.05);
}

@keyframes scanline-pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Cyber-Industrial HUD Styles */
#preloader-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.8s ease;
}

.hud-bracket {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: rgba(0, 242, 255, 0.45);
    border-style: solid;
    transition: all 0.5s ease;
}
.hud-bracket.top-left { top: 40px; left: 40px; border-width: 2px 0 0 2px; }
.hud-bracket.top-right { top: 40px; right: 40px; border-width: 2px 2px 0 0; }
.hud-bracket.bottom-left { bottom: 40px; left: 40px; border-width: 0 0 2px 2px; }
.hud-bracket.bottom-right { bottom: 40px; right: 40px; border-width: 0 2px 2px 0; }

.hud-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to bottom, transparent, rgba(0, 242, 255, 0.4), transparent);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
    animation: scanline-move 9s linear infinite;
}

.hud-panel {
    position: absolute;
    top: 100px;
    background: rgba(8, 14, 28, 0.7);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    font-family: 'monospace';
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 20px rgba(0, 242, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.5);
    width: 260px;
    transition: all 0.5s ease;
    animation: float-panel 5s ease-in-out infinite;
}
.hud-panel.left-panel { left: 50px; }
.hud-panel.right-panel { right: 50px; display: flex; flex-direction: column; align-items: center; }

.panel-header {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    border-bottom: 1px dashed rgba(0, 242, 255, 0.2);
    padding-bottom: 0.4rem;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(0, 242, 255, 0.4);
}

.panel-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}
.panel-row .label { color: rgba(255, 255, 255, 0.45); }
.panel-row .val { font-weight: bold; }

.panel-divider {
    margin: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-reticle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 242, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.75rem 0;
    position: relative;
}

.reticle-ring-1 {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(0, 242, 255, 0.35);
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: spin-clockwise 8s linear infinite;
}

.reticle-ring-2 {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px dotted var(--secondary);
    animation: spin-counter 5s linear infinite;
}

.reticle-crosshair {
    position: absolute;
    width: 10px;
    height: 10px;
}
.reticle-crosshair::before,
.reticle-crosshair::after {
    content: '';
    position: absolute;
    background: var(--primary);
}
.reticle-crosshair::before { top: 4px; left: -2px; width: 14px; height: 2px; }
.reticle-crosshair::after { top: -2px; left: 4px; width: 2px; height: 14px; }

/* Real-Time Diagnostic States */
.diagnostic-row {
    transition: all 0.4s ease;
    padding: 2px 6px;
    border-radius: 2px;
}
.diagnostic-row.standby .status { color: rgba(255, 255, 255, 0.25); }
.diagnostic-row.active {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.1);
    border-left: 2px solid var(--primary);
}
.diagnostic-row.active .label { color: #fff; }
.diagnostic-row.active .status {
    color: var(--primary);
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
}
.diagnostic-row.pass {
    background: rgba(112, 255, 0, 0.05);
}
.diagnostic-row.pass .status {
    color: var(--secondary);
    text-shadow: 0 0 5px rgba(112, 255, 0, 0.4);
}

.pulse { animation: pulse-opacity 1.5s infinite; }
.blink { animation: pulse-opacity 0.8s infinite; }
.text-cyan { color: var(--primary) !important; }
.text-lime { color: var(--secondary) !important; }

@keyframes scanline-move {
    0% { top: 0%; }
    100% { top: 100%; }
}
@keyframes float-panel {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes spin-clockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes spin-counter {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}
@keyframes pulse-opacity {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Robotics Section & Custom Elements
   ────────────────────────────────────────────────────────────────────────── */
.robotics-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .robotics-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.robot-card-3d {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.robot-card-3d:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 15px 50px rgba(0, 242, 255, 0.08);
}

.robot-canvas-container {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(3, 7, 18, 0.9) 100%);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#robotics-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.canvas-overlay-tech {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tech-indicator {
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    letter-spacing: 2px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.animate-pulse-fast {
    animation: scanline-pulse 1s infinite;
}

.tech-stats {
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 0.7rem;
    font-family: monospace;
}

.stat-label {
    color: var(--text-muted);
}

.stat-val {
    color: var(--secondary);
    font-weight: bold;
}

.robot-card-desc h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.robot-card-desc p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.robotics-features-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    backdrop-filter: blur(10px);
    transition: var(--transition-bounce);
}

.feature-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(112, 255, 0, 0.1);
    background: rgba(112, 255, 0, 0.02);
}

.feature-icon {
    font-size: 2.2rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 16px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(112, 255, 0, 0.1);
    border-color: var(--secondary);
    transform: scale(1.1) rotate(-5deg);
}

.feature-info h4 {
    font-size: 1.25rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.feature-card:hover .feature-info h4 {
    color: var(--secondary);
}

.feature-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.integration-info-box {
    background: rgba(var(--primary-rgb), 0.03);
    border: 1px dashed rgba(var(--primary-rgb), 0.3);
    padding: 2rem;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.integration-info-box strong {
    color: var(--primary);
}

/* Tool Changer Full-Width Banner */
.tool-changer-banner {
    margin-top: 5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(3, 7, 18, 0.8) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.tool-changer-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 50%, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 900px) {
    .tool-changer-banner {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        gap: 3rem;
    }
}

.banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.banner-tag {
    font-size: 0.8rem;
    color: var(--secondary);
    background: rgba(112, 255, 0, 0.1);
    border: 1px solid rgba(112, 255, 0, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    letter-spacing: 2px;
    font-weight: 800;
}

.tool-changer-banner h2 {
    font-size: 2.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(90deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-changer-banner p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.banner-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.shadow-cyan {
    box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.3);
}

.btn-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.banner-visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weld-glow-effect {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--primary);
    filter: blur(40px);
    border-radius: 50%;
    animation: float-glow 4s infinite ease-in-out;
}

@keyframes float-glow {
    0%, 100% { transform: translate(-30px, -20px) scale(1); opacity: 0.5; }
    50% { transform: translate(40px, 30px) scale(1.3); opacity: 0.8; background: var(--secondary); }
}

.tech-blueprint {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: 
        linear-gradient(rgba(0, 242, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blueprint-circle {
    width: 150px;
    height: 150px;
    border: 2px dashed var(--primary);
    border-radius: 50%;
    animation: rotate-dashed 20s linear infinite;
}

@keyframes rotate-dashed {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.blueprint-line {
    position: absolute;
    width: 250px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    transform: rotate(-30deg);
}

/* ──────────────────────────────────────────────────────────────────────────
   Cinematic Intro Overlays
   ────────────────────────────────────────────────────────────────────────── */
.cinematic-subtext {
    position: absolute;
    top: 78%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 8px;
    text-transform: lowercase;
    font-style: italic;
    opacity: 0;
    filter: blur(15px);
    pointer-events: none;
    z-index: 10000;
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
    transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 2.5s cubic-bezier(0.16, 1, 0.3, 1), filter 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinematic-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.01);
    width: 30px;
    height: 30px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 40px #00f2ff, 0 0 80px #00f2ff, 0 0 120px #70ff00, 0 0 200px #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 10001;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease-out;
}

.cinematic-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 8vw, 4.8rem);
    font-weight: 800;
    letter-spacing: 6px;
    text-align: center;
    width: 90%;
    background: linear-gradient(90deg, #ffffff 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    filter: blur(20px);
    pointer-events: none;
    z-index: 10002;
    filter: drop-shadow(0 0 40px rgba(0, 242, 255, 0.3));
    transition: transform 2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 1.5s ease-out, filter 2s ease-out;
}

/* ──────────────────────────────────────────────────────────────────────────
   RFQ / Ajánlatkérő Szekció Stílusai
   ────────────────────────────────────────────────────────────────────────── */
.rfq-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.rfq-form-glass {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border);
    backdrop-filter: blur(25px);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    transition: var(--transition-bounce);
}

.rfq-form-glass:hover {
    border-color: rgba(var(--primary-rgb), 0.25);
    box-shadow: 0 25px 60px rgba(0, 242, 255, 0.06), inset 0 0 30px rgba(255, 255, 255, 0.02);
}

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

@media (max-width: 768px) {
    .rfq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .rfq-form-glass {
        padding: 2rem 1.5rem;
    }
}

.rfq-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
}

.rfq-group label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-main);
    opacity: 0.9;
}

.rfq-group input,
.rfq-group select,
.rfq-group textarea {
    background: rgba(8, 14, 28, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.rfq-group input:focus,
.rfq-group select:focus,
.rfq-group textarea:focus {
    border-color: var(--primary);
    background: rgba(8, 14, 28, 0.85);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rfq-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
}

.rfq-group select option {
    background: #0b0f19;
    color: #fff;
}

.rfq-form-glass input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(8, 14, 28, 0.6);
    position: relative;
    cursor: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.rfq-form-glass input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.rfq-form-glass input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.rfq-submit-btn {
    position: relative;
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 100px;
    padding: 1.1rem 3.5rem;
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: none;
    overflow: hidden;
    transition: var(--transition-bounce);
    background-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.3);
}

.rfq-submit-btn span {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.rfq-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.6);
}

.rfq-success-glass {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 28, 0.95);
    backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 10;
    animation: fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-content {
    text-align: center;
    animation: scale-up 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.success-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(112, 255, 0, 0.1);
    border: 2px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    color: var(--secondary);
    box-shadow: 0 0 30px rgba(112, 255, 0, 0.2);
}

.success-svg {
    width: 40px;
    height: 40px;
}

.rfq-reset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.8rem 2.2rem;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: none;
    transition: var(--transition-bounce);
}

.rfq-reset-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    transform: scale(1.05);
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scale-up {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Wavy Brand Text Logo */
.wavy-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #00f2ff, #70ff00, #00f2ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: text-wave-gradient 3s linear infinite, text-wave-bob 4s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.45));
    text-transform: uppercase;
    vertical-align: middle;
}

@keyframes text-wave-gradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes text-wave-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ================================================
   HAMBURGER MENU & MOBILE NAV - Extra safety
   ================================================ */
@media (max-width: 480px) {
    nav {
        top: 1rem;
        width: calc(100vw - 2rem);
    }
    .wavy-brand {
        font-size: 0.85rem;
    }
}

