@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    /* Colors */
    --bg-color: #f0f2f5;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --text-color: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Accents */
    --accent-primary: #b87333;
    /* Copper */
    --accent-primary-hover: #c9843a;
    --accent-secondary: #475569;
    --accent-success: #22c55e;
    --accent-error: #ef4444;

    /* Slate Palette */
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-800: #1e293b;


    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(30, 41, 59, 0.82);
    --glass-border: rgba(203, 213, 225, 0.5);
    --glass-border-light: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;
    --font-heading: 'Space Grotesk', sans-serif;

    /* Spacing & Layout */
    --nav-height: 80px;
    /* Aligned to 20px grid */
    --container-max: 1280px;
    --grid-major: 100px;
    --grid-minor: 20px;
    --section-padding: 100px 0;
    /* Optimized vertical rhythm */
    --border-radius: 12px;
    --border-radius-lg: 32px;

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-standard: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Technical Grid Background */
.background-gradients {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #f0f2f5 0%, #dcdfe4 100%);
    background-image:
        linear-gradient(rgba(100, 116, 139, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 116, 139, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(100, 116, 139, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 116, 139, 0.06) 1px, transparent 1px);
    background-size:
        var(--grid-minor) var(--grid-minor),
        var(--grid-minor) var(--grid-minor),
        var(--grid-major) var(--grid-major),
        var(--grid-major) var(--grid-major);
    background-position: top center;
    /* Precise vertical anchor */
}

.blob,
.blob-1,
.blob-2 {
    display: none;
}

/* Header & Nav */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass-bg-dark);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border-light);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-standard);
}

.glass-header.scrolled {
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 2px solid var(--accent-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

nav {
    width: 90%;
    max-width: var(--container-max);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
}

.logo-container {
    position: relative;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    /* Bright light background specifically for the logo */
    backdrop-filter: blur(4px);
    border-radius: 12px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover .logo-container {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Floor Shadow Animation */
.logo-container::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 20px;
    height: 4px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    filter: blur(2px);
    animation: shadowPulse 3s ease-in-out infinite;
}

@keyframes shadowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(0.7);
        opacity: 0.1;
    }
}

.floating-hexagon {
    animation: floatingHex 3s ease-in-out infinite;
}

.orbiting-shard {
    animation: orbit 6s linear infinite;
    transform-origin: center;
}

.shard-delayed {
    animation-delay: -3s;
}

.wireframe-line {
    opacity: 0.3;
    stroke-dasharray: 4, 2;
    animation: dashAnim 15s linear infinite;
}

@keyframes floatingHex {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(10px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(10px) rotate(-360deg);
    }
}

@keyframes dashAnim {
    to {
        stroke-dashoffset: 100;
    }
}

.neon-orange {
    filter: drop-shadow(0 0 3px var(--accent-primary));
}

.logo-text {
    background: linear-gradient(135deg, #f1f5f9, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.05em;
}

.logo-accent {
    font-weight: 300;
    color: var(--accent-primary);
    -webkit-text-fill-color: var(--accent-primary);
    margin-left: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: var(--transition-fast);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Language Switcher Styling */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 2rem;
    background: rgba(15, 23, 42, 0.2);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.lang-btn.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(184, 115, 51, 0.3);
}

.lang-btn:not(.active):hover {
    color: var(--text-color);
    background: rgba(100, 116, 139, 0.1);
}

.lang-divider {
    display: none;
    /* Hide using gap instead */
}

/* Mobile Menu Button - Initial State Hidden */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
}

/* Hero Section */
.hero-section {
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: calc(var(--nav-height) + 40px) 20px 100px;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 0;
    align-items: center;
    width: 95%;
    max-width: 1800px;
    margin: 0 auto;
}

.hero-img-side.left {
    transform: translateX(180px);
    /* Deep center overlap */
    z-index: 1;
}

.hero-img-side.right {
    transform: translateX(-180px);
    /* Deep center overlap */
    /* Pull toward center line */
    z-index: 1;
}

.hero-img-side {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.95;
    height: calc(100vh - var(--nav-height) - 60px);
    /* Dynamically adjust height to fill space below header */
    max-height: 800px;
    /* Limit max height for very large screens */
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure images fill the same-sized containers */
    transition: transform 0.5s ease;
    animation: panning 15s linear infinite;
}

@keyframes panning {
    0% {
        object-position: 0% 50%;
    }

    50% {
        object-position: 100% 50%;
    }

    100% {
        object-position: 0% 50%;
    }
}

.hero-img-side.left .side-img {
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(to left, transparent 0%, black 50%);
    mask-image: linear-gradient(to left, transparent 0%, black 50%);
}

.hero-img-side.right .side-img {
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 50%);
    mask-image: linear-gradient(to right, transparent 0%, black 50%);
}

.side-img:hover {
    transform: scale(1.05);
}

/* .side-img:hover {
    transform: scale(1.05);
} */


.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-brand {
    font-size: clamp(3.5rem, 8vw, 4.8rem);
    color: var(--slate-700);
    font-style: italic;
    letter-spacing: -0.02em;
    margin-bottom: 0.1rem;
    line-height: 1.1;
    white-space: nowrap;
    /* Horizontal fit - prevent wrap */
}

.brand-orange {
    color: var(--accent-primary);
}


.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    white-space: nowrap;
    /* Prevent wrap during transition */
}

.hero-signature {
    margin: 4rem 0;
}

.hero-by {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-primary);
    background: rgba(184, 115, 51, 0.05);
    padding: 3px 10px;
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1.8rem;
    white-space: nowrap;
    opacity: 1;
}


.hero-name-display {
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--slate-700);
    font-style: italic;
    /* Restored to italic */
    line-height: 1.0;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    white-space: nowrap;
    /* Full horizontal fit */
}

.weight-light {
    font-weight: 300;
}

.weight-bold {
    font-weight: 800;
}

.hero-role-tagline {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 1;
}

.cta-group {
    margin-top: 3.5rem;
    display: flex;
    gap: 2.5rem;
    justify-content: center;
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition-standard);
}

/* â”€â”€ View Work â€“ warm copper gradient fill â”€â”€ */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary-hover) 0%, var(--accent-primary) 50%, #a0622a 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(184, 115, 51, 0.35);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(184, 115, 51, 0.5);
    background: linear-gradient(135deg, #d4904a 0%, var(--accent-primary-hover) 50%, var(--accent-primary) 100%);
}

/* â”€â”€ Get in Touch â€“ ghost with copper accent â”€â”€ */
.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1.5px solid var(--text-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--text-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 41, 59, 0.18);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
    gap: 6px;
}

.contact-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}


/* Sections General */
.section-padding {
    padding: var(--section-padding);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.container {
    width: 95%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.about-text,
.expertise-text {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-slow);
}

.about-text:hover,
.expertise-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(184, 115, 51, 0.3);
}

.about-text p,
.expertise-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    line-height: 1.7;
}

/* --- Responsive Symmetrical Layout --- */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text,
    .expertise-text {
        padding: 2rem;
    }
}

.skills-wrapper h3 {
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.1);
}

.text-highlight {
    display: inline-block;
    position: relative;
    padding: 2px 12px;
    font-weight: 700;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.text-highlight::before,
.text-highlight::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 100%;
    border: 1.5px solid var(--accent-primary);
    top: 0;
    transition: all 0.3s ease;
}

.text-highlight::before {
    left: 0;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.text-highlight::after {
    right: 0;
    border-left: none;
    border-radius: 0 4px 4px 0;
}

.text-highlight:hover {
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.text-highlight:hover::before,
.text-highlight:hover::after {
    width: 50%;
    background: rgba(184, 115, 51, 0.05);
}

/* Methodology Section */
.methodology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

.methodology-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-decoration: none;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    min-height: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.methodology-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184, 115, 51, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.methodology-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    border-color: rgba(184, 115, 51, 0.4);
}

.methodology-card:hover::before {
    opacity: 1;
}

.meth-icon {
    width: 64px;
    height: 64px;
    background: rgba(184, 115, 51, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 2.0rem;
    transition: var(--transition-standard);
    border: 1px solid rgba(184, 115, 51, 0.2);
}

.methodology-card:hover .meth-icon {
    transform: scale(1.1) rotate(8deg);
    background: var(--accent-primary);
    color: #ffffff;
}

.meth-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.meth-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 90%;
}

.meth-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: auto;
    padding-top: 1.5rem;
}

.meth-link svg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.methodology-card:hover .meth-link svg {
    transform: translateX(8px);
}

@media (max-width: 1px) {

    /* @media (max-width: 1px) */
    .methodology-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .methodology-card {
        padding: 2.0rem;
        min-height: auto;
    }
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 2rem;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--glass-border);
}

.projects-grid::-webkit-scrollbar {
    height: 16px;
}

.projects-grid::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    border: 4px solid var(--bg-color);
}

.projects-grid::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
    border: 3px solid var(--bg-color);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.projects-grid::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary-hover);
}

.projects-carousel-wrapper {
    position: relative;
    width: 100%;
}

.carousel-btn {
    position: absolute;
    top: calc(50% - 20px);
    transform: translateY(-50%);
    z-index: 20;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    color: var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    pointer-events: none;
}

.projects-carousel-wrapper:hover .carousel-btn,
.carousel-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.carousel-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev-btn {
    left: -25px;
}

.carousel-btn.next-btn {
    right: -25px;
}

@media (max-width: 1px) {
    .carousel-btn {
        opacity: 0.95;
        pointer-events: auto;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    }

    .carousel-btn.prev-btn {
        left: -10px;
    }

    .carousel-btn.next-btn {
        right: -10px;
    }
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 300px;
    scroll-snap-align: start;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-image {
    height: 200px;
    width: 100%;
    background-color: #2a2a2a;
    overflow: hidden;
    position: relative;
}

.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card-img {
    transform: scale(1.05);
}

/* Reverse Engineering card starts at scale(1.4) inline â€” boost further on hover */
.project-card:hover .project-card-img[style*="scale(1.4)"] {
    transform: scale(1.5) !important;
}


.placeholder-img {
    width: 100%;
    height: 100%;
}

.color-1 {
    background: linear-gradient(45deg, #FF6B6B, #556270);
}

.color-2 {
    background: linear-gradient(45deg, #4ecdc4, #556270);
}

.color-3 {
    background: linear-gradient(45deg, #a855f7, #6366f1);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.project-tags span {
    font-size: 0.8rem;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.project-links {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.link-arrow {
    flex: 1;
    text-align: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-arrow {
    background: var(--accent-primary);
    color: white !important;
}


.link-arrow:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.link-github:hover {
    background: var(--glass-border);
    color: var(--text-color) !important;
}

/* Contact & Footer */
/* Contact Grid Styling */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-lead {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 600px;
}

.cs-header-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.btn-download-pdf,
.btn-download-step,
.btn-download-drawing {
    flex: 1;
    min-width: 240px;
    max-width: 280px;
    padding: 14px 24px;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.2);
    height: 48px;
    white-space: nowrap;
}

.btn-download-pdf:hover,
.btn-download-step:hover,
.btn-download-drawing:hover {
    background: #a6682e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 115, 51, 0.3);
}

.btn-download-pdf svg,
.btn-download-step svg,
.btn-download-drawing svg {
    transition: transform 0.3s ease;
}

.btn-download-pdf:hover svg,
.btn-download-step:hover svg,
.btn-download-drawing:hover svg {
    transform: translateY(2px);
}

.form-note {
    font-size: 0.9rem;
    color: #475569;
    /* Darker Slate */
    margin-bottom: 1.5rem;
    font-style: italic;
    font-weight: 500;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: stretch;
    margin-top: 2rem;
}

.email-link {
    display: inline-block;
    font-size: 1.4rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-primary);
    margin-bottom: 2rem;
    transition: opacity 0.3s;
    font-weight: 600;
}

.email-link:hover {
    opacity: 0.7;
}



/* Contact Form Styling */
.contact-form {
    width: 100%;
    height: 100%;
    margin: 0;
    text-align: left;
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.required-star {
    color: #ff4757;
    margin-left: 2px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 1.5px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(184, 115, 51, 0.1);
}

.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border: none;
    margin-top: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.submit-btn svg {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.submit-btn:hover {
    background: var(--accent-secondary);
}

.contact-right {
    text-align: left;
}

.contact-info-card {
    background: white;
    padding: 1.8rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.02);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-header-info {
    margin-bottom: 1rem;
}

.contact-header-info h3 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.engineer-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-top: 0.2rem;
    background: linear-gradient(135deg, var(--text-color), var(--accent-primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.engineer-degree {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-top: 0;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.7;
    white-space: nowrap;
}

.contact-meta {
    display: grid;
    gap: 1rem;
}

.meta-item strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
}

.meta-item p,
.meta-link {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-link:hover {
    color: var(--accent-primary);
}

.connect-hub {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.connect-hub h3 {
    margin-bottom: 1.5rem;
}

.connect-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.connect-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-color);
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.connect-item:hover {
    background: white;
    border-color: var(--accent-primary);
    transform: translateX(5px);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05);
}

.connect-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.connect-item:hover .connect-icon {
    transform: rotate(-5deg) scale(1.1);
}

.connect-text {
    display: flex;
    flex-direction: column;
}

.connect-text strong {
    font-size: 1rem;
    font-weight: 700;
}

.connect-text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}



@media (max-width: 1px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-section {
        padding: var(--nav-height) 0 0;
    }

    .hero-layout {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: calc(100vh - var(--nav-height));
        width: 100%;
        position: relative;
        overflow: hidden;
        gap: 0;
    }

    .hero-img-side {
        position: absolute;
        top: 0;
        height: 100% !important;
        width: 50% !important;
        opacity: 0.45;
        z-index: 1;
        transform: none !important;
        display: flex !important;
    }

    .hero-img-side.left {
        left: 0;
        mask-image: linear-gradient(to right, black 60%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%);
    }

    .hero-img-side.right {
        right: 0;
        mask-image: linear-gradient(to left, black 60%, transparent 100%);
        -webkit-mask-image: linear-gradient(to left, black 60%, transparent 100%);
    }

    .hero-content {
        position: relative;
        z-index: 10;
        text-align: center !important;
        padding: 2rem;
        max-width: 800px;
        pointer-events: none;
    }

    .hero-content * {
        pointer-events: auto;
    }

    h1.hero-brand {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
        margin-bottom: 1rem;
    }

    .hero-name-display {
        font-size: clamp(2.5rem, 12vw, 4.2rem);
    }

    .hero-tagline {
        font-size: clamp(1rem, 4vw, 1.4rem);
        margin-bottom: 2rem;
        white-space: normal;
    }

    h1.hero-brand,
    .hero-name-display,
    .hero-role-tagline,
    .hero-by {
        white-space: normal;
    }

    .cta-group {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Mobile Site Navigation */
    .mobile-menu-btn {
        display: flex !important;
        z-index: 1001;
    }

    .nav-links {
        display: none !important;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 30px;
        gap: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        transition: transform 0.4s ease;
        transform: translateX(100%);
    }

    .nav-links.active {
        display: flex !important;
        transform: translateX(0);
    }
}

@media (max-width: 1px) {
    .nav-links a {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .contact-info-card,
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 1px) {
    .hero-layout {
        height: auto;
        min-height: calc(100vh - var(--nav-height));
        padding: 4rem 1.5rem;
    }

    .hero-img-side {
        opacity: 0.3;
        /* Even more subtle on small screens */
    }

    .hero-content {
        padding: 1rem;
    }

    .cta-group {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }

    .cta-group .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-img-side.right {
        height: 35vh;
    }

    .hero-tagline {
        font-size: 0.85rem;
    }

    h1.hero-brand {
        font-size: clamp(1.6rem, 9vw, 2.5rem);
    }
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #555;
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Animations using Classes */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

/* â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”
   CASE STUDY LAYOUT (Sub-pages)
   â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€”â€” */

.cs-main {
    padding-top: var(--nav-height);
}

/* â”€â”€ CAD Workstation Implementation (Senior Developer Specs) â”€â”€ */
:root {
    --burnt-orange: #B37037;
    --hud-glass: rgba(255, 255, 255, 0.08);
    /* 8% opacity as per spec */
}

.cad-workstation {
    width: 100%;
    height: 700px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif !important;
}

#main-cad-stage {
    cursor: none;
}

/* Custom 3D Workspace Cursor */
.cad-custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    border: 1.5px solid #ce8b62;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 10000;
    transition: opacity 0.2s ease, transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(206, 139, 98, 0.1);
    mix-blend-mode: normal;
}

.cad-custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #ce8b62;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px rgba(206, 139, 98, 0.6);
}

.cad-custom-cursor.visible {
    opacity: 1;
}

/* UI Overrides to show standard pointer on controls */
.cbp-btn,
.cbp-popup,
#ar-view-btn,
.cbp-btn-wrapper,
.cad-ui-header {
    cursor: pointer !important;
}

/* 10px blueprint grid backdrop */
.cad-grid-bg {
    position: absolute;
    inset: 0;
    background-size: 10px 10px;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 95%);
    mask-image: radial-gradient(circle at center, black 30%, transparent 95%);
}

/* X/Y Axis center lines */
.cad-axis {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cad-axis::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.cad-axis::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.hud-panel {
    position: absolute;
    background: rgba(30, 30, 35, 0.7);
    /* small, semi-transparent dark grey */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    border-radius: 4px;
    /* Sleek, industrial box */
    z-index: 100;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-family: 'JetBrains Mono', monospace !important;
    transition: all 0.3s ease;
    width: 22%;
    min-width: 120px;
    overflow: hidden;
}

/* Sonar Pulse Element */
.sonar-pulse {
    position: absolute;
    inset: -1px;
    border: 1px solid var(--accent-primary);
    border-radius: inherit;
    /* Matches asymmetrical shape */
    pointer-events: none;
    z-index: -1;
    animation: sonarPing 3s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
}

@keyframes sonarPing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    20% {
        transform: scale(1.1);
        opacity: 0;
    }

    /* Fast 0.6s pulse (20% of 3s) */
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.hud-panel:hover .sonar-pulse {
    animation-play-state: paused;
}

@keyframes hudTwitch {

    0%,
    94%,
    100% {
        transform: translateY(0) scale(1);
    }

    95% {
        transform: translateY(-1px) scale(1.005);
        border-color: rgba(184, 115, 51, 0.4);
    }

    96% {
        transform: translate(1px, -1px) scale(1);
    }

    97% {
        transform: translate(-1.5px, 1px) scale(1);
    }

    98% {
        transform: translate(1px, 1.5px) scale(1.005);
    }

    99% {
        transform: translateY(0) scale(1);
    }
}

.wf-toggle-container.hud-panel {
    /* Override for centered panel to maintain position while twitching */
    animation: hudTwitchCenter 3s infinite;
    border-radius: 24px 4px;
    min-width: 180px;
}

@keyframes hudTwitchCenter {

    0%,
    94%,
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    95% {
        transform: translateX(-50%) translateY(-1px) scale(1.005);
        border-color: rgba(184, 115, 51, 0.4);
    }

    96% {
        transform: translateX(calc(-50% + 1px)) translateY(-1px) scale(1);
    }

    97% {
        transform: translateX(calc(-50% - 1.5px)) translateY(1px) scale(1);
    }

    98% {
        transform: translateX(calc(-50% + 1px)) translateY(1.5px) scale(1.005);
    }

    99% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* Corner Accents (Brackets) */
.hud-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--accent-primary);
    opacity: 0.4;
    transition: width 0.3s ease;
}

.hud-panel:hover {
    border-color: rgba(184, 115, 51, 0.5);
    background: rgba(15, 23, 42, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 30px 70px rgba(184, 115, 51, 0.1);
    animation-play-state: paused;
    /* Pause twitch on hover */
}

.hud-panel:hover::before {
    width: 60px;
    opacity: 1;
}

.hud-panel::after {
    display: block;
    content: '[ + ]';
    font-size: 0.55rem;
    color: var(--accent-primary);
    text-align: center;
    margin-top: 4px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.hud-panel:hover::after {
    opacity: 0.2;
}

/* Side Corner Accent */
.hud-panel-edge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--accent-primary);
    border-right: 2px solid var(--accent-primary);
    opacity: 0.3;
}

.panel-tl {
    top: 20px;
    left: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.65rem;
}

.panel-tr {
    top: 20px;
    right: 20px;
    min-width: 200px;
    text-align: left;
}

.panel-bl {
    bottom: 20px;
    left: 20px;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
}

.panel-br {
    bottom: 20px;
    right: 20px;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
}

.panel-header {
    font-weight: 800;
    font-size: 0.72rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
    text-transform: uppercase;
    color: var(--accent-primary) !important;
}

/* Collective Hover to Reveal System */
.hud-panel>*:not(.panel-header) {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.hud-panel:hover>*:not(.panel-header) {
    max-height: 400px;
    opacity: 1;
    margin-top: 12px !important;
    margin-bottom: 4px !important;
}

.hud-panel::after {
    display: block;
    content: '[ + ]';
    font-size: 0.55rem;
    color: var(--accent-primary);
    text-align: center;
    margin-top: 4px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.hud-panel:hover::after {
    opacity: 0.2;
    /* Hide somewhat on hover as info expands */
}

/* Side Corner Accent */
.hud-panel-edge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--accent-primary);
    border-right: 2px solid var(--accent-primary);
    opacity: 0.3;
}

.bom-item {
    font-size: 0.7rem;
    padding: 6px 0;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    opacity: 0.85;
}

.bom-item.active {
    color: var(--accent-primary);
    font-weight: 800;
    opacity: 1;
}

.view-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.view-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 12px;
    font-size: 0.6rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.view-btn:hover {
    background: var(--burnt-orange);
    color: #fff;
    border-color: var(--burnt-orange);
}

.wf-toggle-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.wf-control-row {
    display: flex;
    flex-direction: column;
    /* Vertical pop-up */
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wf-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--burnt-orange);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Main Stage */
#main-cad-stage {
    width: 100%;
    height: 100%;
    background: transparent;
}


/* 3D Axis Triad Overlay */
.axis-triad-container {
    position: absolute;
    bottom: 30px;
    right: 40px;
    /* Right corners */
    width: 80px;
    height: 80px;
    perspective: 800px;
    pointer-events: none;
    z-index: 200;
}

.axis-triad {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: center center;
    transform: rotateX(60deg) rotateY(-30deg);
}

.axis-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    width: 40px;
    height: 2px;
}

.axis-line span {
    position: absolute;
    right: -15px;
    top: -8px;
    font-weight: 700;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

/* X Axis (Red) */
.axis-x {
    background: rgba(239, 68, 68, 0.8);
    transform: translate3d(0, 0, 0) rotateY(0deg);
}

.axis-x span {
    color: #ef4444;
}

/* Y Axis (Green - Base Floor Depth) */
.axis-y {
    background: rgba(34, 197, 94, 0.8);
    transform: translate3d(0, 0, 0) rotateY(-90deg);
}

.axis-y span {
    color: #22c55e;
}

/* Z Axis (Blue - Vertical Height) */
.axis-z {
    background: rgba(59, 130, 246, 0.8);
    transform: translate3d(0, 0, 0) rotateZ(-90deg);
}

.axis-z span {
    color: #3b82f6;
}

/* â”€â”€ Hero Split â”€â”€ */
.cs-hero {
    min-height: 600px;
    height: calc(100vh - var(--nav-height));
    max-height: 850px;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, #fff 0%, #fff 90%, transparent 100%);
    border-bottom: none;
    overflow: visible;
    position: relative;
}

.cs-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Balanced 50/50 split */
    width: 100%;
    height: 100%;
    background: transparent;
}

.cs-hero-content {
    padding: 120px 80px 80px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    z-index: 2;
    position: relative;
    overflow: visible;
    /* Prevent clipping of gradient text */
}

.proj-back {
    position: absolute;
    top: 40px;
    left: 5%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.proj-back:hover {
    color: var(--accent-primary);
    transform: translateX(-5px);
}

.cs-hero-visual {
    position: relative;
    overflow: hidden;
}

.cs-hero-skills {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 80px 80px 40px;
    z-index: 2;
    position: relative;
}

.skills-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    max-width: 500px;
    width: 100%;
}

.skills-card-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent-primary);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skills-card-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(184, 115, 51, 0.2), transparent);
}

.skills-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.skill-tag {
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    transition: var(--transition-standard);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.skill-tag:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent-primary);
    background: #ffffff;
    color: var(--accent-primary);
    box-shadow: 0 12px 24px rgba(184, 115, 51, 0.12);
}

.cs-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 12s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.cs-hero-visual::after {
    display: none;
}

.cs-hero-visual.empty-visual::after {
    display: none;
}

.cs-hero:hover .cs-hero-img {
    transform: scale(1.05);
}

/* â”€â”€ Hero Project Selector â”€â”€ */
.cs-project-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
    max-width: 480px;
}

.cs-selector-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-standard);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.cs-selector-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-primary);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.cs-selector-btn.active {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(184, 115, 51, 0.1);
    background: rgba(184, 115, 51, 0.02);
}

.cs-selector-btn.active::before {
    transform: scaleY(1);
}

.cs-selector-btn:hover:not(.active) {
    border-color: var(--text-secondary);
    transform: translateX(10px);
}

.cs-sel-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(184, 115, 51, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cs-sel-text {
    flex: 1;
}

.cs-sel-title {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 4px;
}

.cs-sel-tagline {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cs-sel-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
    color: var(--accent-primary);
}

.cs-selector-btn.active .cs-sel-arrow {
    opacity: 1;
    transform: translateX(0);
}

.cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    padding: 6px 14px;
    background: rgba(184, 115, 51, 0.08);
    border-radius: 100px;
    width: fit-content;
}

.cs-title {
    font-family: var(--font-main);
    font-style: italic;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--text-secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 2rem;
    /* Safety margin for gradient/italics */
    display: block;
    width: 100%;
}

.text-accent-green {
    background: none !important;
    -webkit-text-fill-color: #4ade80 !important;
    color: #4ade80 !important;
}

.cs-abstract,
.cs-hero-desc {
    font-size: 1.15rem;
    /* Slightly smaller for more professional look */
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* â”€â”€ Content Layout with Sticky Sidebar â”€â”€ */
.cs-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    padding: 100px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.cs-body {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.cs-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 40px);
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
}

.sb-story-block {
    margin-bottom: 30px;
}

.sb-story-block p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.sb-divider {
    border: 0;
    border-top: 1px solid var(--glass-border);
    margin: 10px 0 20px;
}

.sb-group h4 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.sb-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sb-list li {
    font-weight: 600;
    font-size: 1.05rem;
    color: #000000; /* Matching Metrological Accuracy style */
}

/* â”€â”€ Story Sections (Challenge/Solution) â”€â”€ */
.cs-section-header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}



.cs-section-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    display: block;
}

.cs-section-title {
    font-size: 2.25rem;
    font-weight: 700;
}

.cs-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.cs-card {
    padding: 40px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--glass-border);
}

.cs-card.dark {
    background: var(--text-color);
    color: #fff;
    border: none;
}

.cs-card h5 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.cs-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.cs-card.dark p {
    color: rgba(255, 255, 255, 0.6);
}

/* â”€â”€ Bento Gallery â”€â”€ */
.cs-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 400px);
    gap: 30px;
}

.bento-item {
    border-radius: 24px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    position: relative;
    height: 100%;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

model-viewer {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #cbd5e1;
    --poster-color: transparent;
    transition: opacity 0.5s ease;
}

.viewer-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
}

.viewer-upload-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--accent-primary);
    padding: 10px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.viewer-upload-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 115, 51, 0.2);
}

.btn-text {
    white-space: nowrap;
}

.rev-bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 450px;
    gap: 24px;
}

.rev-bento-grid .bento-1 {
    display: none;
}

.rev-bento-grid .bento-2,
.rev-bento-grid .bento-3 {
    grid-column: auto;
    grid-row: auto;
}

.bento-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-3 {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-4 {
    grid-column: span 1;
    grid-row: span 1;
}

/* Scoped layout for Mold Manufacturing double-split */
.mold-bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 450px;
    gap: 24px;
}

.mold-bento-grid .bento-1 {
    display: none;
}

.mold-bento-grid .bento-2,
.mold-bento-grid .bento-3,
.mold-bento-grid .bento-4 {
    grid-column: auto;
    grid-row: auto;
}

/* â”€â”€ Vertical Process â”€â”€ */
.cs-process-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    padding-left: 60px;
}

.cs-process-list::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 5px;
    bottom: 5px;
    width: 1px;
    background: var(--glass-border);
}

.cs-process-step {
    position: relative;
}

.cs-process-step::after {
    content: '';
    position: absolute;
    left: -44px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 3px solid #fff;
    z-index: 1;
}

.cs-process-step h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* â”€â”€ Next Project Footer â”€â”€ */
.cs-footer-nav {
    border-top: 1px solid var(--glass-border);
    padding: 100px 5%;
    background: #f8fafc;
}

.next-proj-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 60px;
    border-radius: 32px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: all 0.4s ease;
    max-width: 1200px;
    margin: 0 auto;
}

.next-proj-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.npc-label {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.npc-title {
    font-size: 2.5rem;
    font-weight: 800;
}

.npc-arrow {
    font-size: 3rem;
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 1px) {
    .cs-hero-grid {
        grid-template-columns: 1fr 1fr;
        /* Force 50/50 split even on mobile */
        gap: 15px;
        align-items: center;
        width: 100%;
    }

    .cs-hero-visual {
        height: 50vh;
        min-height: 300px;
    }

    .cs-layout {
        grid-template-columns: 1fr 0.35fr;
        /* Keep sidebar small but side-by-side */
        gap: 20px;
    }

    .cs-sidebar {
        position: sticky;
        top: calc(var(--nav-height) + 10px);
        font-size: 0.85rem;
    }

    .cad-workstation {
        height: 500px !important;
        min-height: auto !important;
    }

    .cad-bottom-panel {
        bottom: 1rem !important;
        height: 52px !important;
        max-width: 95% !important;
    }

    .cbp-btn {
        width: 44px !important;
        height: 44px !important;
        touch-action: manipulation !important;
    }

    .cbp-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    .cbp-project-info {
        padding: 0 12px !important;
    }

    .cbp-value {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 1px) {
    .cs-hero-grid {
        grid-template-columns: 1fr 0.8fr;
        /* Adjust for very narrow screens but keep split */
    }

    .cs-title {
        font-size: 1.5rem;
    }

    .cs-selector-btn {
        padding: 12px;
    }
}

@media (max-width: 1px) {
    .cs-story-grid {
        grid-template-columns: 1fr;
    }

    .cs-bento {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 250px);
    }

    .bento-1,
    .bento-2,
    .bento-3,
    .bento-4,
    .bento-5,
    .bento-6 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .next-proj-card {
        padding: 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
}

/* â”€â”€ Scroll Down Indicator â”€â”€ */
.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.5s ease;
    text-decoration: none;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-indicator-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0.8;
}

.scroll-indicator-ring {
    position: relative;
    width: 26px;
    height: 42px;
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-indicator-ring::before {
    display: none;
    /* Remove old pulse */
}

.scroll-indicator-ring::after {
    display: none;
    /* Remove old inner ring */
}

.scroll-indicator:hover .scroll-indicator-ring {
    background: rgba(184, 115, 51, 0.05);
    border-color: var(--accent-primary-hover);
    transform: translateY(2px);
}

.scroll-chevron {
    width: 2.5px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    margin-top: 8px;
    animation: mouse-wheel-scroll 2s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
}

.scroll-chevron svg {
    display: none;
    /* Hide old chevron */
}

@keyframes mouse-wheel-scroll {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        transform: translateY(12px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

@keyframes chevron-bounce {

    0%,
    100% {
        transform: translateY(-3px);
        opacity: 0.6;
    }

    50% {
        transform: translateY(3px);
        opacity: 1;
    }
}

@keyframes ring-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.25);
        opacity: 0.15;
    }
}

/* --- High-Fidelity CAD Viewer UI (v2) --- */
.cad-ui-header {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #fff;
    letter-spacing: 0.1em;
    z-index: 20;
    pointer-events: none;
}

.cad-bottom-panel {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3347;
    /* Dark solid base */
    border-radius: 12px;
    border: 1.5px solid #e29625;
    /* Copper rim */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(206, 139, 98, 0.15);
    display: flex;
    align-items: center;
    padding: 0;
    z-index: 110;
    font-family: var(--font-mono);
    color: #fff;
    height: 64px;
}

.cbp-project-info {
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.cbp-label {
    font-size: 0.6rem;
    color: #ce8b62;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.cbp-value {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: var(--font-main);
}

.cbp-controls {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 12px;
    gap: 8px;
}

.cbp-btn-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.cbp-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    /* Higher default visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.cbp-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    transition: all 0.3s ease;
}

.cbp-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.cbp-btn.active {
    color: #ce8b62;
    background: rgba(206, 139, 98, 0.15);
    border-color: rgba(206, 139, 98, 0.4);
    box-shadow: 0 0 20px rgba(206, 139, 98, 0.2), inset 0 0 10px rgba(206, 139, 98, 0.1);
    transform: scale(0.92);
}

/* Feature Pulse for Attention */
.cbp-btn-pulse {
    animation: cbp-attention-pulse 2s infinite;
    border-color: rgba(206, 139, 98, 0.6) !important;
    color: #ce8b62 !important;
}

@keyframes cbp-attention-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(206, 139, 98, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(206, 139, 98, 0);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(206, 139, 98, 0);
        transform: scale(1);
    }
}

/* Shimmer Effect for Buttons */
.cbp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: cbp-shimmer 3s infinite;
}

@keyframes cbp-shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.cbp-btn.active svg {
    filter: drop-shadow(0 0 4px rgba(206, 139, 98, 0.4));
}

/* Glassmorphism Popup */
.cbp-popup {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.8);
    transform-origin: bottom center;
    background: rgba(15, 23, 42, 0.85);
    /* Darker glass for better contrast */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(206, 139, 98, 0.3);
    /* Copper border */
    border-radius: 8px;
    padding: 16px;
    width: max-content;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy pop-out */
    pointer-events: none;
    z-index: 30;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.cbp-btn.active+.cbp-popup,
.cbp-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.cbp-popup-title {
    font-size: 0.70rem;
    color: #ce8b62;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
}

.cbp-bom-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #e2e8f0;
}

.cbp-bom-list li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 8px;
}

.cbp-bom-list li:last-child {
    margin-bottom: 0;
}

/* Specific divider inside controls */
.cbp-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 8px;
}

/* 3D Interaction Hint overlay */
.interaction-hint {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.interaction-hint.visible {
    opacity: 1;
}

.hand-icon {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 8px rgba(206, 139, 98, 0.4));
    animation: handSwipe 2.5s ease-in-out infinite;
}

.hint-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background: rgba(15, 23, 42, 0.4);
    padding: 6px 12px;
    border-radius: 4px;
    backdrop-filter: blur(8px);
}

@keyframes handSwipe {
    0% {
        transform: translateX(-50px) rotate(-15deg);
        opacity: 0.2;
    }

    50% {
        transform: translateX(50px) rotate(15deg);
        opacity: 1;
    }

    100% {
        transform: translateX(-50px) rotate(-15deg);
        opacity: 0.2;
    }
}

/* AR View in Space Button */
#ar-view-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#ar-view-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-primary);
}

#ar-view-btn:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(206, 139, 98, 0.25);
}

#ar-view-btn:active {
    transform: translateY(0);
}

/* Mobile Experience Alert */
.mobile-experience-alert {
    position: fixed;
    bottom: 24px;
    left: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(206, 139, 98, 0.5);
    border-radius: 12px;
    padding: 24px;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-experience-alert.visible {
    transform: translateY(0);
    opacity: 1;
}

.alert-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-title {
    color: #ce8b62;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--font-mono);
}

.alert-message {
    color: #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.alert-action-btn {
    background: #ce8b62;
    color: #0f172a;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert-action-btn:active {
    transform: scale(0.95);
}

.alert-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

/* --- NEXT PROJECT SHOWCASE NAVIGATION (Senior UI/UX Redesign) --- */
/* --- NEXT PROJECT SHOWCASE NAVIGATION (Adaptive Theme) --- */
.next-project-section {
    width: 100%;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    background: transparent; /* Inherit page background */
    border-top: 1px solid var(--glass-border);
}

.next-project-link {
    display: block;
    width: 100%;
    text-decoration: none;
    position: relative;
    padding: 100px 5%;
    overflow: hidden;
}

.next-project-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15; /* More subtle for light themes */
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.8s ease;
    filter: grayscale(1) brightness(1.2);
    z-index: 1;
}

.next-project-link:hover .next-project-bg {
    transform: scale(1.05);
    opacity: 0.25;
    filter: grayscale(0) brightness(1);
}

.next-project-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0) 0%, var(--bg-color) 100%);
    z-index: 2;
    transition: background 0.8s ease;
}

.next-project-link:hover .next-project-overlay {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.next-project-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.next-phase-label {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(184, 115, 51, 0.08);
    border: 1px solid rgba(184, 115, 51, 0.2);
    border-radius: 4px;
    color: #ce8b62;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.next-project-link:hover .next-phase-label {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-5px);
}

.next-project-display-title {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 800;
    color: var(--text-color); /* Match page text color */
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.next-project-link:hover .next-project-display-title {
    transform: scale(1.02);
}

.next-project-cta {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s ease;
}

.next-project-cta svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.next-project-link:hover .next-project-cta {
    color: var(--accent-primary);
    gap: 25px;
}

.next-project-link:hover .next-project-cta svg {
    transform: translateX(10px) scale(1.1);
}

@media (max-width: 768px) {
    .next-project-link {
        padding: 80px 5%;
    }
    .next-project-display-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
}
