/* ==========================================================================
   RAMMULTIMEDIA - MODERN GLOWING DARK STYLE SYSTEM
   ========================================================================== */

:root {
    --bg-dark: #08080c;
    --bg-card: rgba(16, 17, 24, 0.7);
    --bg-card-hover: rgba(22, 23, 34, 0.85);
    
    --color-text-main: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-text-dark: #4b5563;
    
    --accent-cyan: #00f2fe;
    --accent-purple: #9b51e0;
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #9b51e0 100%);
    --accent-gradient-glow: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(155, 81, 224, 0.15) 100%);
    
    --border-color: rgba(255, 255, 255, 0.07);
    --border-color-active: rgba(0, 242, 254, 0.4);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   1. Reset & Global Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto; /* Obsługiwane przez Lenis */
    overflow-x: hidden;
    background-color: var(--bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 16px;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Canvas Background */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   2. Typography & Common Elements
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

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

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    padding-left: 30px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 1px;
    background: var(--accent-cyan);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-bounce);
    border: none;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #9b51e0 0%, #00f2fe 100%);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(155, 81, 224, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.1);
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   3. Custom Cursor
   ========================================================================== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    will-change: transform;
}

.custom-cursor.active {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 242, 254, 0.07);
    border-color: var(--accent-cyan);
}

.custom-cursor.active-purple {
    width: 60px;
    height: 60px;
    background-color: rgba(155, 81, 224, 0.07);
    border-color: var(--accent-purple);
}

@media (max-width: 991px) {
    .custom-cursor, .custom-cursor-dot {
        display: none;
    }
}

/* ==========================================================================
   4. Header Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(8, 8, 12, 0.35); /* zmniejszono krycie, aby uwypuklić efekt rozmycia szkła (glass blur) */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

.logo-text {
    display: flex;
    align-items: center;
    line-height: 1;
}

.logo-text span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 2px;
}

.logo-suffix {
    font-size: 0.5rem;
    font-family: var(--font-body);
    color: var(--color-text-muted);
    text-transform: none;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 1px;
    line-height: 1;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: #fff;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: var(--transition-smooth);
}

@media (max-width: 991px) {
    .nav {
        display: none;
    }
    
    .header-actions .btn {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(8, 8, 12, 0.95);
    backdrop-filter: blur(25px);
    border-left: 1px solid var(--border-color);
    z-index: 999;
    padding: 8rem 2rem 2rem 2rem;
    transition: var(--transition-smooth);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.mobile-nav-link:hover {
    color: var(--accent-cyan);
}

.mobile-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Active Hamburger Anim */
.mobile-nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.mobile-nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -7px);
}


/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem 2rem;
    overflow: hidden;
    background-image: linear-gradient(180deg, rgba(8, 8, 12, 0.4) 0%, rgba(8, 8, 12, 0.9) 100%), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-glow {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, rgba(155, 81, 224, 0.08) 50%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

.hero-container {
    max-width: 1200px;
    text-align: center;
    z-index: 2;
}

.hero-h1 {
    font-size: clamp(2.5rem, 7vw, 6.5rem);
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
    perspective: 800px;
}

.hero-h1 span.block {
    display: block;
    opacity: 0;
    transform: translateY(60px) rotateX(-20deg);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    color: var(--color-text-muted);
    max-width: 750px;
    margin: 0 auto 3rem auto;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

.mouse-icon {
    width: 22px;
    height: 36px;
    border: 2px solid var(--color-text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse-icon::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 2px;
    animation: scrollMouse 1.5s infinite ease-in-out;
}

@keyframes scrollMouse {
    0% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 6px); opacity: 0.3; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}


/* ==========================================================================
   6. About Section (O nas)
   ========================================================================== */
.about {
    padding: 8rem 2rem;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

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

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-globe-wrapper {
        height: 480px;
    }
}

.about-content {
    position: relative;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.about-text-reveal {
    color: var(--color-text-main);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.about-text-reveal span {
    opacity: 0.15;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.about-text-reveal span.revealed {
    opacity: 1;
    color: #fff;
}

/* Globe Wrapper (replaces stat grid) */
.about-globe-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 620px;
}

.globe-scene-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#globe-canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
}

/* Thumbnail items overlaid on the globe via JS positioning */
.globe-thumbnails-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.globe-thumb {
    position: absolute;
    width: 128px;
    height: 128px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.6);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    will-change: transform, left, top, opacity;
    background: #111;
}

.globe-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
}

.globe-thumb:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
    z-index: 100;
}

.globe-thumb.video-thumb::after {
    content: '\f144';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    color: #fff;
    text-shadow: 0 0 16px rgba(0,0,0,0.9);
    pointer-events: none;
}

.globe-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    opacity: 0.7;
    pointer-events: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.globe-hint i {
    color: var(--accent-cyan);
    margin-right: 0.4rem;
    animation: spin 3s linear infinite;
}

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

/* ==========================================================================
   Globe Gallery Modal
   ========================================================================== */
.globe-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.globe-modal.is-open {
    pointer-events: auto;
    opacity: 1;
}

.globe-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.globe-modal-content {
    position: relative;
    z-index: 1;
    width: 90vw;
    max-width: 860px;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(0, 242, 254, 0.15);
    display: flex;
    flex-direction: column;
    transform: scale(0.85) translateY(30px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.globe-modal.is-open .globe-modal-content {
    transform: scale(1) translateY(0);
}

.globe-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
}

.globe-modal-close:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: rotate(90deg);
}

.globe-modal-media-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
    position: relative;
}

.globe-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.globe-modal-img:hover {
    transform: scale(1.03);
}

.globe-modal-video-wrap {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.globe-modal-video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.globe-modal-info {
    padding: 1.5rem 2rem 2rem;
}

.globe-modal-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.globe-modal-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}



/* ==========================================================================
   7. 360 Showcase Section (Interactive Panorama Viewer)
   ========================================================================== */
.showcase-360 {
    padding: 8rem 2rem;
    background: radial-gradient(50% 50% at 50% 50%, rgba(155, 81, 224, 0.05) 0%, rgba(8, 8, 12, 0) 100%);
    position: relative;
    overflow: hidden;
}

.showcase-360-container {
    max-width: 1300px;
    margin: 0 auto;
}

.showcase-360-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
}

/* VR Viewer Container Mockup */
.vr-viewer-mockup {
    width: 100%;
    height: 550px;
    border-radius: 24px;
    position: relative;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

.vr-viewer-viewport {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.vr-viewer-viewport:active {
    cursor: grabbing;
}

/* Sferyczny obrazek tła */
.panorama-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 3200px; /* Szeroki obrazek pozwalający na obracanie */
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* Overlay instruujący użytkownika */
.vr-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.5s ease;
    pointer-events: none;
    text-align: center;
    padding: 2rem;
}

.vr-viewer-overlay.hidden {
    opacity: 0;
}

.vr-overlay-icon {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(0,242,254,0.4)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 15px rgba(0,242,254,0.8)); }
}

.vr-viewer-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.vr-viewer-overlay p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Hotspoty */
.vr-hotspot {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.3);
    border: 2px solid var(--accent-cyan);
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    transition: var(--transition-bounce);
}

.vr-hotspot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    animation: pulseHotspot 2s infinite;
    top: -2px;
    left: -2px;
    pointer-events: none;
}

@keyframes pulseHotspot {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.vr-hotspot:hover {
    background: var(--accent-cyan);
    color: #000;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Modale / Tooltipy Hotspotów */
.vr-tooltip {
    position: absolute;
    background: rgba(16, 17, 24, 0.9);
    border: 1px solid var(--border-color-active);
    backdrop-filter: blur(15px);
    width: 280px;
    padding: 1.25rem;
    border-radius: 12px;
    z-index: 20;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -120%) scale(0.9);
    transition: var(--transition-bounce);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.vr-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -120%) scale(1);
}

.vr-tooltip h4 {
    color: var(--accent-cyan);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vr-tooltip p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.vr-tooltip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.75rem;
}

.vr-tooltip-close:hover {
    color: #fff;
}

/* Przycisk kontrolny (Nawigacja panoramy w rogu) */
.vr-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 15;
}

.vr-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(8, 8, 12, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.vr-control-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
}

@media (max-width: 768px) {
    .vr-viewer-mockup {
        height: 380px;
    }
}


/* ==========================================================================
   8. Horizontal Scroll Section (Usługi - GSAP)
   ========================================================================== */
.services-section-pin {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #08080c;
}

.services-pin-container {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5vw;
}

.services-intro-slide {
    flex-shrink: 0;
    width: 450px;
    margin-right: 4rem;
}

.horizontal-scroll-container {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    will-change: transform;
}

.service-card {
    flex-shrink: 0;
    width: 420px;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-end;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.15);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 8, 12, 0.95) 0%, rgba(8, 8, 12, 0.4) 60%, rgba(8, 8, 12, 0.1) 100%);
    z-index: 1;
}

.service-card-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    width: 100%;
}

.service-card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.service-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
}

.service-card-link i {
    transition: transform 0.3s;
}

.service-card:hover .service-card-link i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .services-pin-container {
        height: auto;
        flex-direction: column;
        padding: 5rem 1.5rem;
    }
    
    .services-intro-slide {
        width: 100%;
        margin-right: 0;
        margin-bottom: 3rem;
    }
    
    .horizontal-scroll-container {
        flex-direction: column;
        width: 100%;
        gap: 2rem;
    }
    
    .service-card {
        width: 100%;
        height: 450px;
    }
}


/* ==========================================================================
   9. Specialization (Branże - Dynamic Image Accordion)
   ========================================================================== */

/* Wireframe Wawel SVG / canvas – full bleed background */
.city-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.industries {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
    background: #03030a;
    min-height: 100vh;
}

/* Bottom vignette – blends into next section */
.industries::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, #050508);
    pointer-events: none;
    z-index: 2;
}

/* Ensure content sits above the canvas */
.industries-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.industries-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

@media (max-width: 991px) {
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.industry-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.industry-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.industry-item h3 {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 700;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.industry-icon {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    opacity: 0;
    transform: translateX(-15px);
    transition: var(--transition-smooth);
}

/* Aktywne stany */
.industry-item:hover h3, .industry-item.active h3 {
    color: #fff;
    transform: translateX(10px);
}

.industry-item:hover .industry-icon, .industry-item.active .industry-icon {
    opacity: 1;
    color: var(--accent-cyan);
    transform: translateX(0);
}

/* Panel prezentacji graficznej */
.industry-viewer {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.industry-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.industry-bg-image.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.industry-overlay-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 8, 12, 0.8) 0%, rgba(8, 8, 12, 0.1) 100%);
    z-index: 3;
    pointer-events: none;
}


/* ==========================================================================
   10. Technologies & Values (Technologia i Wartość)
   ========================================================================== */
.tech-values {
    padding: 8rem 2rem;
    position: relative;
}

.tech-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.tech-card {
    padding: 3rem 2.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(100px circle at var(--x, 0) var(--y, 0), rgba(0, 242, 254, 0.08) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.tech-icon {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--accent-cyan);
    position: relative;
    z-index: 2;
}

.tech-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.tech-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}


/* ==========================================================================
   11. Contact Section & Working Form (Kontakt)
   ========================================================================== */
.contact {
    padding: 8rem 2rem;
    background-image: linear-gradient(180deg, rgba(8, 8, 12, 0.95) 0%, rgba(8, 8, 12, 0.85) 100%), url('../images/about-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
}

@media (max-width: 991px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
}

.contact-info-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

.contact-item:hover .contact-icon-box {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

.contact-text-box h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

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

/* Form Styles */
.contact-form-panel {
    padding: 3rem;
    position: relative;
}

@media (max-width: 768px) {
    .contact-form-panel {
        padding: 2rem 1.5rem;
    }
}

.form-group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .form-group-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

/* Floating labels */
.form-group input:focus ~ .form-label,
.form-group input:not(:placeholder-shown) ~ .form-label,
.form-group textarea:focus ~ .form-label,
.form-group textarea:not(:placeholder-shown) ~ .form-label {
    top: -12px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

.form-group input:focus, .form-group textarea:focus {
    border-bottom-color: var(--accent-cyan);
}

/* Line animated border under inputs */
.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent-gradient);
    transition: var(--transition-smooth);
}

.form-group:focus-within::after {
    width: 100%;
}

.form-error {
    font-size: 0.75rem;
    color: #ff3366;
    margin-top: 0.25rem;
    display: none;
}

.form-error.active {
    display: block;
}

/* GDPR checkbox */
.form-checkbox {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    cursor: pointer;
}

.form-checkbox input {
    margin-top: 4px;
    accent-color: var(--accent-cyan);
    width: 16px;
    height: 16px;
}

.form-checkbox label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.form-checkbox label a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* Form status messages */
.form-status {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.form-status.error {
    display: block;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid #ff3366;
    color: #ff3366;
}

.form-btn {
    width: 100%;
}


/* ==========================================================================
   12. Footer
   ========================================================================== */
.footer {
    background: #040407;
    border-top: 1px solid var(--border-color);
    padding: 6rem 2rem 2rem 2rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

@media (max-width: 991px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

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

.social-link:hover {
    background: var(--accent-gradient);
    color: #000;
    border-color: transparent;
    transform: translateY(-3px);
}

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

@media (max-width: 600px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    font-weight: 700;
}

.footer-column a {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-column a:hover {
    color: var(--accent-cyan);
    transform: translateX(5px);
}

.footer-info {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.75rem;
}

.footer-info i {
    color: var(--accent-cyan);
    margin-top: 4px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-dark);
}

/* ==========================================================================
   13. Background Watermarks (DSLR Camera, Matterport, 3D Grid)
   ========================================================================== */
.bg-watermark {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.025; /* niezwykle subtelne elementy w ciemnych przestrzeniach */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: screen;
    filter: grayscale(1) brightness(0.7);
    will-change: transform;
}

.watermark-camera {
    right: -5%;
    top: 15%;
    width: clamp(280px, 22vw, 480px);
    height: clamp(280px, 22vw, 480px);
    background-image: url('../images/camera-watermark.jpg');
}

.watermark-matterport {
    left: -5%;
    bottom: 5%;
    width: clamp(280px, 22vw, 480px);
    height: clamp(280px, 22vw, 480px);
    background-image: url('../images/matterport-watermark.jpg');
}

.watermark-3d-grid {
    right: 3%;
    bottom: 5%;
    width: clamp(220px, 18vw, 380px);
    height: clamp(220px, 18vw, 380px);
    opacity: 0.75;
}

.watermark-3d-grid svg {
    width: 100%;
    height: 100%;
}

