/* --- ZMIENNE I RESET --- */
:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --primary: #00f2ff;
    --secondary: #7000ff;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: auto; /* Systemowy kursor domyślnie */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    cursor: default;
}

/* --- CUSTOM CURSOR REMOVED --- */
.cursor {
    display: none;
}

/* Hide system cursor only in Hero */
header {
    cursor: default;
}

/* --- UTILS --- */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* --- NAWIGACJA --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-sizing: border-box;
}

.logo {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
    max-width: 200px;
    display: block;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

/* --- HERO SECTION --- */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Compensate for fixed nav */
}

/* For subpages, header can be smaller */
.subpage-header {
    height: 60vh;
    min-height: 400px;
}

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

.subpage-canvas {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.4; /* Nieco przyciemnione */
}

h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.5s;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards 0.8s;
}

.btn {
    padding: 1rem 2.5rem;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s forwards 1.2s;
    text-decoration: none;
    display: inline-block;
    cursor: none;
}

/* --- FORMULARZ KONTAKTOWY --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.form-input, .form-textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
    width: 100%;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
}

.form-checkbox input {
    margin-top: 0.2rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.btn-submit:hover {
    background: var(--primary);
    color: #000;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transition: transform 0.4s;
    z-index: -1;
}

.btn:hover {
    color: #000;
}

.btn:hover::before {
    transform: translateX(100%);
}

/* --- SEKCJA OGÓLNA --- */
.section {
    padding: 8rem 5%;
    position: relative;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
    color: #fff;
}

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

/* --- CARDS --- */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 16px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
    opacity: 0; /* Dla JS observera */
    transform: translateY(50px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 242, 255, 0.2);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    display: inline-block;
}

/* Benefits Cards Specifics (Match Inputs) */
.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* --- LISTS & DETAILS --- */
.service-block {
    margin-bottom: 4rem;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: var(--card-bg);
}
.service-block h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}
.service-block ul {
    list-style: none;
    margin: 1.5rem 0;
}
.service-block ul li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}
.service-block ul li::before {
    content: '✔';
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* --- FOOTER --- */
footer {
    padding: 2rem 15%;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.8rem;
    position: relative;
    z-index: 10;
    background: rgba(5, 5, 5, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.footer-center {
    text-align: center;
    flex: 1;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
    justify-content: flex-end;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-link-circle {
    width: 40px;
    height: 40px;
    max-width: 40px; /* Ensure it doesn't grow */
    max-height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.social-link-circle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.social-link-circle svg {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

/* --- LOGO --- */
.logo-img {
    height: 32px;
    width: auto;
    max-width: 200px;
    display: block;
}

.logo-gray {
    height: 32px;
    width: auto;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.3s ease;
    display: inline-block;
}

.logo-gray:hover {
    filter: grayscale(0%) opacity(1);
}

/* --- SUCCESS ANIMATION OVERLAY --- */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: rgba(0, 0, 0, 0.85); /* Dark backdrop */
    backdrop-filter: blur(8px);
}

.success-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.success-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.1);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 90%;
    width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.success-overlay.visible .success-card {
    transform: scale(1);
    opacity: 1;
}

.success-msg {
    margin-top: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.success-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .logo-img {
        height: 24px;
        max-width: 150px;
    }

    .nav-links {
        display: none; /* Mobile menu logic needed if not present */
    }
    .success-msg {
        font-size: 1.2rem;
    }
}

/* --- LOGO ANIMATION --- */
.logo-anim-svg {
    width: 600px;
    max-width: 90vw;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 242, 255, 0.2));
}

.anim-dot {
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    fill: #00f2ff;
}

.anim-line {
    stroke-dasharray: 150; /* Enough to cover longest segment */
    stroke-dashoffset: 150;
    opacity: 0.6;
}

.anim-text {
    opacity: 0;
    transform: translateY(10px);
}

/* Classes triggered by JS for timing */
.dot-visible {
    animation: dotPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.line-visible {
    animation: lineDraw 0.8s ease-out forwards;
}

.text-visible {
    animation: textFadeUp 1s ease-out forwards;
}

@keyframes dotPop {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes lineDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes textFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- ANIMACJE KLUCZOWE --- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* --- PROCESS TIMELINE --- */
.process-container {
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow-x: auto; /* Allow horizontal scroll if needed */
}

.process-line {
    position: absolute;
    top: 3.5rem; /* Aligned with dots */
    left: 3rem;
    right: 3rem;
    height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: 0;
    min-width: 600px; /* Ensure minimum width for scroll */
}

.process-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transition: width 0.5s ease;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    min-width: 600px; /* Match line width */
}

.process-step {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-dot {
    width: 16px;
    height: 16px;
    background: #050505;
    border: 2px solid #fff;
    border-radius: 50%;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.3s;
    z-index: 2;
}

.step-dot.active {
    border-color: var(--primary);
    background: #050505;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

.process-step h4 {
    font-size: 0.9rem;
    color: #fff;
}

@media (max-width: 768px) {
    .process-container {
        padding: 2rem 1rem;
    }
    /* Keep horizontal layout on mobile */
}

/* --- RESPONSYWNOŚĆ --- */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.grid-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    /* Hide hero canvas animation on mobile */
    header #canvas-bg {
        display: none !important;
    }

    /* Remove black background from hero on mobile to show background animation */
    header {
        background-color: transparent !important;
        backdrop-filter: none !important;
    }

    /* Navigation — handled by hamburger CSS block below */

    /* Typography */
    h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Layouts */
    .section {
        padding: 4rem 5%;
    }

    .grid-2-cols {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .grid-split {
        gap: 3rem;
    }

    .benefit-scroll-container {
        gap: 1rem;
    }

    .benefit-card {
        min-width: 260px; /* Smaller cards on mobile */
    }

    /* Portfolio & Features */
    .portfolio-item, .portfolio-item:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 5rem;
    }
    
    .portfolio-visual {
        width: 100%;
        height: 250px;
    }
    
    .portfolio-title {
        font-size: 2rem;
    }
    
    /* Forms */
    .form-group label {
        font-size: 0.85rem;
    }
    
    footer {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 3rem 5%;
    }
    
    .footer-left {
        order: 1;
        justify-content: center;
        width: 100%;
    }

    .footer-right {
        order: 2;
        justify-content: center;
        width: 100%;
    }
    
    .footer-center {
        order: 3;
        width: 100%;
    }

    .social-links {
        justify-content: center;
        gap: 1.5rem;
    }
}

/* --- CONTENT CONTAINERS --- */
.article-container, .case-study-container {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    padding: 3rem !important;
}

.blog-card {
    cursor: pointer;
}

/* Ensure standard cursors for interactive elements */
a, button, .btn, .hover-trigger, .nav-links a, .logo {
    cursor: pointer;
}

/* Fix text selection cursor */
p, h1, h2, h3, h4, span, li {
    cursor: default;
}

/* Override for text inputs */
input, textarea {
    cursor: text;
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        gap: 0.8rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
}

/* ============================================================
   PREMIUM LANDING — ENHANCED STYLES
   ============================================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* --- NAV CTA BUTTON --- */
.nav-cta {
    padding: 0.45rem 1.1rem !important;
    border: 1px solid rgba(0, 242, 255, 0.35) !important;
    border-radius: 4px !important;
    background: rgba(0, 242, 255, 0.04) !important;
    transition: background 0.3s, border-color 0.3s, color 0.3s !important;
}
.nav-cta:hover {
    background: rgba(0, 242, 255, 0.12) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* --- CARD — PREMIUM UPGRADE --- */
/* Top shimmer line that appears on hover */
.card {
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.card:hover::before {
    opacity: 1;
}

/* Subtle inner glow on hover */
.card:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    box-shadow: 0 12px 40px rgba(0, 242, 255, 0.12), 0 0 0 1px rgba(0, 242, 255, 0.15);
}

/* --- SERVICE CARDS — ICON GLOW --- */
/* The icon wrapper divs use inline style, target them via card hover */
.card:hover [style*="background: rgba(0, 255, 85"] {
    background: rgba(0, 242, 255, 0.15) !important;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    transition: all 0.3s ease;
}

/* --- PORTFOLIO CARDS --- */
.portfolio-card {
    cursor: default;
}
.portfolio-card:hover {
    transform: translateY(-8px) !important;
}

.portfolio-tag {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    transition: background 0.3s, border-color 0.3s;
}

.portfolio-card:hover .portfolio-tag {
    background: rgba(0, 242, 255, 0.15);
    border-color: var(--primary);
}

/* --- SECTION TITLE — ACCENT LINE --- */
.section-title {
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 2.5rem;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    margin: 0.9rem auto 0;
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Section with left-aligned title still gets underline */
.section-alt .section-title::after {
    margin-left: 0;
}

/* --- SECTION GLOW BACKGROUNDS --- */
.section-glow {
    position: relative;
}
.section-glow::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.04;
    top: 0; right: -15%;
    pointer-events: none;
}

/* --- CONTACT CARD --- */
.contact-card {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.06) 0%, rgba(112, 0, 255, 0.04) 100%) !important;
    border: 1px solid rgba(0, 242, 255, 0.2) !important;
    box-shadow: 0 0 80px rgba(0, 242, 255, 0.06), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}
.contact-card::before {
    background: linear-gradient(90deg, var(--secondary), var(--primary), var(--secondary)) !important;
    opacity: 1 !important;
}

/* --- TRUST SECTION LOGOS --- */
#realizacje + section h3,
.section h3[style*="color: #fff"] {
    letter-spacing: 2px;
    transition: color 0.3s, text-shadow 0.3s;
}
.section[style*="text-align: center"] > div h3:hover {
    color: var(--primary) !important;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* --- ADVANTAGE LIST — styled hover --- */
.section-alt ul li {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: border-color 0.3s;
}
.section-alt ul li:hover {
    border-color: rgba(0, 242, 255, 0.2);
}
.section-alt ul li:last-child {
    border-bottom: none;
}

/* --- SCROLL REVEAL for new elements --- */
.portfolio-card {
    opacity: 0;
    transform: translateY(40px);
}
.portfolio-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Staggered delay for grid items */
.grid-2-cols .card:nth-child(2) { transition-delay: 0.1s; }
.grid-2-cols .card:nth-child(3) { transition-delay: 0.2s; }
.grid-2-cols .card:nth-child(4) { transition-delay: 0.3s; }

/* --- CODE CARD (sticky side) premium border --- */
.card[style*="'Courier New'"] {
    position: relative;
}
.card[style*="'Courier New'"]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: 0 0 60px rgba(0, 242, 255, 0.05);
    pointer-events: none;
}

/* --- BIGGER LOGO + HOVER ZOOM --- */
.logo-img {
    height: 44px !important;
    max-width: 220px !important;
    -webkit-transition: -webkit-transform 0.35s ease;
    transition: transform 0.35s ease;
    display: block;
}

.logo:hover .logo-img {
    -webkit-transform: scale(1.08);
    transform: scale(1.08);
}

/* --- HAMBURGER BUTTON --- */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    cursor: pointer;
    padding: 10px 12px;
    z-index: 101;
    transition: border-color 0.3s;
}
.nav-hamburger:hover {
    border-color: var(--primary);
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--primary); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--primary); }

/* --- MOBILE NAV OVERRIDE --- */
@media (max-width: 768px) {
    nav {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 1rem 5% !important;
        gap: 0 !important;
        position: fixed !important;
        background: rgba(5, 5, 5, 0.92) !important;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        background: rgba(5, 5, 5, 0.98) !important;
        backdrop-filter: blur(24px) !important;
        border-top: 1px solid rgba(0,242,255,0.1) !important;
        border-bottom: 1px solid rgba(0,242,255,0.08) !important;
        padding: 1rem 5% 1.5rem !important;
        gap: 0 !important;
        z-index: 100;
    }

    .nav-links.open {
        display: flex !important;
        animation: navSlideDown 0.3s ease forwards;
    }

    .nav-links a {
        margin: 0 !important;
        padding: 1rem 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.06) !important;
        font-size: 1rem !important;
        letter-spacing: 0.5px;
        opacity: 0;
        transform: translateX(-16px);
    }

    .nav-links.open a {
        opacity: 1 !important;
        transform: translateX(0) !important;
        transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s !important;
    }
    .nav-links.open a:nth-child(1) { transition-delay: 0.04s !important; }
    .nav-links.open a:nth-child(2) { transition-delay: 0.09s !important; }
    .nav-links.open a:nth-child(3) { transition-delay: 0.14s !important; }
    .nav-links.open a:nth-child(4) { transition-delay: 0.19s !important; }

    .nav-links a:last-child {
        border-bottom: none !important;
    }

    .nav-links .nav-cta {
        margin-top: 1rem !important;
        text-align: center !important;
        border-radius: 4px !important;
        padding: 0.9rem 1rem !important;
        justify-content: center !important;
        display: block !important;
    }

    .logo-img {
        height: 36px !important;
    }
}

@keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- TRUST SCROLLING MARQUEE --- */
.trust-track-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.trust-track-wrapper::before,
.trust-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12%;
    z-index: 2;
    pointer-events: none;
}

.trust-track-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #050505 0%, transparent 100%);
}

.trust-track-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #050505 0%, transparent 100%);
}

.trust-track {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    white-space: nowrap;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* marquee pausing on hover handled by JS */

.trust-item {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    white-space: nowrap;
    padding: 0.75rem 2.2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 3px;
    text-transform: uppercase;
    -webkit-transition: color 0.3s, text-shadow 0.3s;
    transition: color 0.3s, text-shadow 0.3s;
    cursor: default;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.trust-item:hover {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.45);
}

.trust-dot {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 0.3rem;
    color: rgba(0, 242, 255, 0.25);
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

@-webkit-keyframes trustScroll {
    from { -webkit-transform: translateX(0); transform: translateX(0); }
    to   { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

@keyframes trustScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --- CONTACT CARD — permanent glow matching service card hover --- */
.contact-card {
    background: rgba(10, 10, 10, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(0, 242, 255, 0.25) !important;
    box-shadow:
        0 0 0 1px rgba(0, 242, 255, 0.12),
        0 8px 40px rgba(0, 242, 255, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.04) !important;
    text-align: left;
}

.contact-card::before {
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%) !important;
    opacity: 1 !important;
}

/* --- COMPANY INFO CARD --- */
.company-info-card {
    background: rgba(10, 10, 10, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    text-align: left !important;
    padding: 2.5rem !important;
    opacity: 1 !important;
    transform: none !important;
    overflow: visible !important;
    display: block !important;
}

.company-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
}

.company-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ci-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.ci-value {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}

.ci-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: text-shadow 0.3s;
}

.ci-link:hover {
    text-shadow: 0 0 12px rgba(0, 242, 255, 0.6);
}

/* --- VIDEO SECTION --- */
.video-section {
    padding-top: 0;
}

.video-layout {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.08);
    background: rgba(0,0,0,0.4);
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* --- MOBILE RESPONSIVE for new classes --- */
@media (max-width: 768px) {
    .portfolio-tag {
        font-size: 0.65rem;
    }
    .section-title::after {
        margin: 0.7rem auto 0;
    }
    .company-info-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .trust-track {
        gap: 2rem;
    }
    .trust-item span {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
}
