/* style.css */
:root {
    --bg-main: #1C1D1C;
    --text-main: #F9F9F9;
    --bg-secondary: #0F0F0F;
    --accent: #ACC3B6;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --custom-btn: #D4C7B4;
    --neon: #00FFCC;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* custom cursor */
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--accent) var(--bg-main);
    scrollbar-width: thin;
}

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1C1D1C;
}

::-webkit-scrollbar-thumb {
    background: #ACC3B6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5A7465;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo,
.btn {
    font-family: var(--font-heading);
}

.main-hero-logo {
    width: 600px;
    max-width: 90vw;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.hero-logo-container.scrolled-down {
    opacity: 0;
    transform: translate(-50%, -80%);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, transform 0.1s linear;
}

body.hovering #custom-cursor {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    font-weight: 700;
}

/* Top Banner */
.top-banner {
    background-color: #2b2c2b;
    /* Dark gray to fit the theme */
    color: var(--accent);
    /* Accent text */
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1001;
    /* Above header */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Header */
.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(172, 195, 182, 0.85);
    /* #ACC3B6 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
    transition: padding 0.3s;
}

.sticky-header .logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bg-secondary);
    height: 60px;
    /* Increased size as requested */
    width: auto;
    transition: transform 0.3s, height 0.3s;
}

.sticky-header.scrolled .logo {
    height: 45px;
    /* Shrinks slightly on scroll */
}

.sticky-header .logo:hover {
    transform: scale(1.03);
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.mobile-nav-logo,
.mobile-only-link {
    display: none;
}

.main-nav a {
    color: var(--bg-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--bg-secondary);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-block;
    transition: all 0.3s;
}

.btn-high-contrast {
    color: var(--bg-secondary);
}

.btn-custom {
    background-color: var(--custom-btn);
    border: 1px solid var(--custom-btn);
}

.btn-neon {
    background-color: var(--neon);
    border: 1px solid var(--neon);
}

.btn-high-contrast:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-contact {
    border: 1px solid rgba(32, 30, 32, 0.4);
    color: var(--bg-secondary);
    background: transparent;
}

.btn-contact:hover {
    background: var(--bg-secondary);
    color: var(--text-main);
}

/* Gray Outlined Button */
.btn-gray-outline {
    background: transparent;
    border: 1px solid #666;
    /* Gray border */
    color: #ccc;
    /* Gray text */
    padding: 1rem 2rem;
    border-radius: 4px;
    /* Slight rounding */
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-gray-outline:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}

.btn-gray-outline:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* Floating Contact Dropdown */
.floating-contact-wrapper {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1500;
}

.floating-contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--bg-secondary);
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-contact-btn:hover {
    transform: scale(1.1);
}

.floating-contact-btn svg {
    width: 28px;
    height: 28px;
}

.floating-contact-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: rgba(32, 30, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-contact-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
}

.floating-contact-menu a {
    padding: 1rem 1.5rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s, color 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.floating-contact-menu a:hover {
    background: var(--bg-main);
    color: var(--accent);
}

.floating-contact-menu a:last-child {
    border-bottom: none;
}

.mobile-toggle {
    display: none;
}

/* Scroll To Top Button */
.scroll-to-top-wrapper {
    position: fixed;
    bottom: 6.5rem;
    /* Above the contact button */
    right: 2rem;
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-to-top-wrapper.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Contact Dropdown */
.contact-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.contact-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(32, 30, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow: hidden;
}

.contact-dropdown.active {
    display: flex;
    flex-direction: column;
}

.contact-dropdown a {
    padding: 1rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s, color 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-dropdown a:hover {
    background: var(--bg-main);
    color: var(--accent);
}

.contact-dropdown a:last-child {
    border-bottom: none;
}

/* Hero Section Split */
.hero-split {
    display: flex;
    height: calc(100vh - 40px);
    /* Account for top banner */
    overflow: hidden;
}

.hero-side {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
    overflow: hidden;
    /* Ensure bg shapes don't spill */
}

/* Geometric Background in Hero */
.geo-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    opacity: 0.05;
    /* Subtle */
}

.geo-circle {
    width: 600px;
    height: 600px;
    border: 2px solid #fff;
    border-radius: 50%;
    top: -150px;
    left: -200px;
    animation: rotateSlow 60s linear infinite;
    transform-origin: center;
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.05);
}

.geo-line-1 {
    width: 150%;
    height: 1px;
    background: #fff;
    top: 30%;
    left: -25%;
    transform: rotate(35deg);
}

.geo-line-2 {
    width: 150%;
    height: 1px;
    background: #fff;
    bottom: 20%;
    left: -25%;
    transform: rotate(-15deg);
}

.geo-cross {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 20%;
    background-image:
        linear-gradient(to right, transparent 49px, #fff 49px, #fff 51px, transparent 51px),
        linear-gradient(to bottom, transparent 49px, #fff 49px, #fff 51px, transparent 51px);
    opacity: 0.08;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-pc {
    background-color: var(--bg-main);
    transform: translateX(-100%);
    animation: slideInLeft 1s forwards cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-pc-darker {
    background-color: #121312;
    /* Darkened for contrast */
}

.hero-data {
    background-color: var(--bg-secondary);
    transform: translateX(100%);
    animation: slideInRight 1s forwards cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-split:hover .hero-side {
    filter: brightness(0.4);
    flex: 0.7;
}

.hero-split .hero-side:hover {
    filter: brightness(1);
    flex: 1.3;
}

@keyframes slideInLeft {
    to {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-side h1 {
    font-size: 3.0rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-side p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.btn-outline {
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 1rem 2rem;
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-secondary);
}

.sub-headline {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* Tags in Hero */
.hero-tags {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0.9;
}

.tag-link {
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag-link:hover {
    background: rgba(172, 195, 182, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.tag-row-secondary .tag {
    color: var(--accent);
    border-color: rgba(172, 195, 182, 0.3);
}

/* Graphics */
.hero-graphic {
    position: absolute;
    bottom: 15%;
    right: 15%;
    z-index: 2;
    pointer-events: none;
    transition: transform 0.2s ease-out;
}

/* Precision PC / Laptop */
.graphic-pc .precision-elements {
    position: relative;
    width: 300px;
    height: 200px;
    transform: perspective(800px) rotateX(20deg) rotateY(-20deg);
}

.graphic-pc .white-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.graphic-pc .white-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 8px #fff;
    animation: drawLine 3s infinite ease-in-out;
}

@keyframes drawLine {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }

    50% {
        transform: scaleX(1);
        transform-origin: left;
    }

    50.1% {
        transform-origin: right;
    }

    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

@keyframes drawLineY {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.graphic-pc .line-1 {
    top: 20px;
    right: 0;
    width: 150px;
    height: 1px;
}

.graphic-pc .line-2 {
    bottom: 40px;
    left: -40px;
    width: 200px;
    height: 1px;
}

.graphic-pc .line-3 {
    top: 60px;
    left: 60px;
    width: 1px;
    height: 100px;
}

.graphic-pc .line-3::after {
    animation: drawLineY 3s infinite ease-in-out;
}

.graphic-pc .blueprint-laptop {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 160px;
    height: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.graphic-pc .blueprint-laptop .screen {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 160px;
    height: 110px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform-origin: bottom;
    transform: rotateX(15deg);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

/* Cracked screen overlay for laptop */
.graphic-pc .blueprint-laptop .screen::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 80px;
    height: 80px;
    background-image:
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.5) 49%, transparent 51%),
        linear-gradient(-20deg, transparent 48%, rgba(255, 255, 255, 0.4) 49%, transparent 51%),
        linear-gradient(80deg, transparent 48%, rgba(255, 255, 255, 0.3) 49%, transparent 51%),
        linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, 0.4) 49%, transparent 51%);
    opacity: 0.5;
}

.graphic-pc .blueprint-pc {
    position: absolute;
    bottom: 30px;
    right: 20px;
    width: 70px;
    height: 140px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.graphic-pc .blueprint-pc .panel {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

/* Spiderweb overlay for PC */
.graphic-pc .blueprint-pc .panel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, transparent 20%, rgba(255, 255, 255, 0.1) 21%, transparent 22%),
        radial-gradient(circle, transparent 40%, rgba(255, 255, 255, 0.1) 41%, transparent 42%),
        radial-gradient(circle, transparent 60%, rgba(255, 255, 255, 0.1) 61%, transparent 62%),
        linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, 0.2) 50%, transparent 51%),
        linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.2) 50%, transparent 51%),
        linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.2) 50%, transparent 51%),
        linear-gradient(135deg, transparent 49%, rgba(255, 255, 255, 0.2) 50%, transparent 51%);
    opacity: 0.6;
}

/* Blueprint Data Recovery Phone */
.graphic-data .blueprint-phone {
    width: 120px;
    height: 240px;
    border: 1px solid rgba(172, 195, 182, 0.6);
    border-radius: 12px;
    position: relative;
    background: transparent;
    box-shadow: 0 0 20px rgba(172, 195, 182, 0.05);
}

.graphic-data .phone-screen {
    position: absolute;
    top: 10px;
    left: 8px;
    right: 8px;
    bottom: 30px;
    border: 1px dashed rgba(172, 195, 182, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.graphic-data .phone-button {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 4px;
    border-radius: 2px;
    background: rgba(172, 195, 182, 0.4);
}

.extraction-arrow-down {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 24px solid var(--accent);
    animation: extractLoopDown 2s infinite ease-in-out;
    margin-top: 15px;
}

@keyframes extractLoopDown {
    0% {
        transform: translateY(-40px);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        transform: translateY(40px);
        opacity: 0;
    }
}

.data-stream {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: absolute;
    top: 15%;
}

.particle {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0;
    animation: dataFlow 2s infinite linear;
}

.p1 {
    animation-delay: 0s;
}

.p2 {
    animation-delay: 0.4s;
}

.p3 {
    animation-delay: 0.8s;
}

@keyframes dataFlow {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }

    20% {
        opacity: 0.7;
    }

    80% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(50px);
        opacity: 0;
    }
}

/* Sections */
.dark-section {
    background: var(--bg-secondary);
}

.mid-dark-section {
    background: var(--bg-main);
}

.accent-section {
    background: var(--accent);
}

.text-dark {
    color: var(--bg-secondary);
}

/* About / Dlaczego My */
.relative-section {
    position: relative;
    overflow: hidden;
}

.content-above-canvas {
    position: relative;
    z-index: 2;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.animated-border {
    position: relative;
    z-index: 1;
}

.animated-border::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 40%, var(--accent) 80%, transparent 100%);
    z-index: -1;
    animation: rotate-gradient 4s linear infinite;
    opacity: 0.6;
}

.animated-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: #2a2a2a;
    /* match photo-placeholder background */
    z-index: -1;
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.float-anim {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s, background 0.3s !important;
    will-change: transform;
    z-index: 2;
}

.magnetic-btn:hover {
    box-shadow: 0 0 20px rgba(172, 195, 182, 0.4);
    z-index: 10;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.photo-placeholder {
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.user-photo {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 400px;
    border-radius: 50%;
    /* Circle shape as requested */
    margin: 0 auto;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.cert-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 2px solid var(--accent);
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 1rem;
    right: 1rem;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.step-card p {
    font-size: 0.95rem;
    opacity: 0.7;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

/* Laboratory Grid */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.lab-item {
    text-align: left;
}

.lab-photo {
    aspect-ratio: 4 / 3;
    width: 100%;
    margin-bottom: 1.5rem;
}

.lab-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.lab-item p {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.5;
}

/* How We Work Values */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s;
}

.value-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.icon-square {
    width: 60px;
    height: 60px;
    background: var(--bg-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--accent);
}

.value-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.value-card p {
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.8;
    font-size: 1.05rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 400px;
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s;
    filter: grayscale(80%) contrast(1.2);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: grayscale(0%) contrast(1);
}

/* Social */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.btn-social {
    color: var(--bg-secondary);
    border: 1px solid var(--bg-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-social:hover {
    background: var(--bg-secondary);
    color: var(--accent);
}

.btn-social .icon {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

/* Blog */
.blog-preview-card {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: transform 0.4s ease;
}

.blog-preview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.blog-image {
    flex: 1;
    background: #2a2a2a;
    min-height: 400px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%);
}

.blog-content {
    flex: 1;
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.blog-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.blog-content p {
    opacity: 0.7;
    line-height: 1.7;
    font-size: 1.1rem;
}

.margin-top {
    margin-top: 2.5rem;
    align-self: flex-start;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(32, 30, 32, 0.2);
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: rgba(32, 30, 32, 0.8);
}

.faq-answer p {
    padding-bottom: 1.5rem;
    line-height: 1.6;
}

.faq-btn-invert {
    color: #201E20 !important;
    border-color: #201E20 !important;
    transition: all 0.3s ease;
}

.faq-btn-invert:hover {
    background-color: #201E20 !important;
    color: var(--text-main) !important;
}

/* Testimonials */
.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    height: 280px;
    /* Lock height to prevent layout shifts */
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    text-align: center;
    transform: translateX(50px);
}

.testimonial.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
    transform: translateX(0);
}

.quote {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.author {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer & Map */
.map-wrapper {
    height: 450px;
    width: 100%;
    margin-bottom: -5px;
    line-height: 0;
}

.dark-map {
    filter: grayscale(100%) invert(92%) contrast(85%);
    display: block;
}

.footer-info {
    background: #141314;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-col a,
.footer-col p {
    display: block;
    margin-bottom: 0.8rem;
    opacity: 0.6;
    transition: opacity 0.3s;
    font-size: 0.95rem;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--accent);
}

.branding .logo {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    height: 60px;
    width: auto;
    display: block;
}

.tagline {
    opacity: 0.5;
    font-size: 1rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.4;
}

/* Modals */
.modal {
    display: flex;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-secondary);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.close-modal:hover {
    color: #fff;
}

.modal-flex {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.modal-photo {
    flex: 1;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    min-height: 200px;
}

.modal-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--accent);
    opacity: 0.8;
}

.text-content h2 {
    margin-bottom: 1.5rem;
}

.text-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* Responsiveness */
@media (max-width: 1500px) and (min-width: 1200px) {
    .hero-side h1 {
        font-size: 2.2rem;
    }

    .hero-side p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .gallery-grid {
        grid-auto-rows: 300px;
    }
}

@media (max-width: 1200px) {
    .hero-split {
        flex-direction: column;
        height: auto;
    }

    .hero-side {
        min-height: 50vh;
        transform: translateX(0);
        animation: none;
        padding: 6rem 2rem;
    }

    .hero-side h1 {
        font-size: 2.0rem;
    }

    .hero-split:hover .hero-side {
        flex: 1;
        filter: none;
    }

    .hero-split .hero-side:hover {
        flex: 1;
        filter: none;
    }

    .hero-graphic {
        opacity: 0.3;
    }

    .blog-preview-card {
        flex-direction: column;
    }

    .blog-content {
        padding: 3rem 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-steps,
    .lab-grid {
        grid-template-columns: 1fr 1fr;
    }

    .action-buttons {
        display: none !important;
    }

    /* Setup fullscreen nav base state - hidden via clip-path */
    .main-nav {
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(172, 195, 182, 0.98);
        padding: 5vh 2rem 25vh 2rem;
        box-shadow: none;
        z-index: 1001;
        opacity: 0;
        /* Fade in combination with clip path */
        pointer-events: none;
        clip-path: circle(0px at calc(100% - 40px) 40px);
        transition: clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease-out;
    }

    .mobile-nav-logo {
        display: block;
        width: 250px;
        flex-shrink: 0;
    }

    .main-nav a:first-child {
        margin-bottom: 2vh;
        flex-shrink: 0;
        border: none;
    }

    .mobile-only-link {
        display: block;
    }

    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1002;
    }

    .mobile-toggle span {
        width: 30px;
        height: 2px;
        background: var(--bg-secondary);
        transition: 0.3s;
    }

    /* Mobile Nav Overlay Active State */
    .main-nav.mobile-active {
        opacity: 1;
        pointer-events: auto;
        clip-path: circle(150% at calc(100% - 40px) 40px);
    }

    .main-nav.mobile-active a:not(:first-child) {
        color: var(--bg-secondary);
        font-family: var(--font-heading);
        font-size: 1.2rem;
        font-weight: 700;
        padding: 0;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        border-bottom: 1px solid rgba(32, 30, 32, 0.1);
        text-transform: uppercase;
        letter-spacing: 2px;
        text-align: center;
    }

    .main-nav.mobile-active a:not(:first-child):last-child {
        border-bottom: none;
    }

    .modal-content {
        width: 95%;
        padding: 2rem;
    }

    .modal-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-photo img {
        max-height: 250px !important;
        width: auto !important;
    }

    .blog-preview-card {
        transform: scale(0.95);
        margin: 0 auto;
    }

    .blog-image {
        min-height: 200px;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .blog-content .badge {
        margin-bottom: 1rem;
    }

    .blog-content h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .blog-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .testimonial-container {
        padding: 1.5rem;
        height: 350px;
        /* Taller on mobile to account for wrapping text */
    }

    .quote {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {

    .two-column-grid,
    .gallery-grid,
    .process-steps,
    .lab-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-auto-rows: 250px;
    }

    .footer-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .social-links {
        flex-direction: column;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    #custom-cursor {
        display: none;
    }

    /* Disable custom cursor */
    * {
        cursor: auto !important;
    }
}

/* --- Added for tech marquee and text breaks --- */

.mobile-break {
    display: inline;
}

@media (max-width: 768px) {
    .mobile-break {
        display: block;
        margin-top: 0.2rem;
    }
}

.tech-marquee-wrapper {
    background: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
}

.tech-marquee {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
    animation: marquee-scroll 25s linear infinite;
    will-change: transform;
}

.tech-marquee span:not(.marquee-dot) {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    transition: color 0.3s, transform 0.3s;
}

.tech-marquee span:not(.marquee-dot):hover {
    color: var(--accent);
    transform: scale(1.05);
}

.tech-marquee .marquee-dot {
    color: var(--text-main);
    opacity: 0.3;
    font-size: 1.2rem;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* === THEMATIC SERVICES GRID (HOMEPAGE) === */
.services-thematic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media(max-width: 900px) {
    .services-thematic-grid {
        grid-template-columns: 1fr;
    }
}

.thematic-group {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.thematic-group-sidebar {
    display: flex;
    flex-direction: column;
}

.thematic-group-title {
    color: var(--bg-main);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.thematic-link-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: var(--bg-main);
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.thematic-link-card:last-child {
    margin-bottom: 0;
}

.thematic-link-card:hover {
    transform: translateX(10px) translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: var(--bg-main);
    color: #fff;
    border-color: var(--bg-main);
}