* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== SHADER BACKGROUND ==================== */
#shader-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

#shader-background canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hero.hidden {
    opacity: 0;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    opacity: 0;
    transform: translateY(120px);
    animation: heroEntrance 2.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero.hidden .hero-content {
    opacity: 0 !important;
    transform: translateY(-40px);
    animation: none;
}

.hero-name {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(42px, 7vw, 96px);
    font-weight: 200;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 0 60px rgba(0, 0, 0, 0.85);
}

.hero-tagline {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(11px, 1.4vw, 18px);
    font-weight: 300;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    line-height: 1.8;
    margin: 20px 0 0 0;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.85);
}

@keyframes heroEntrance {
    0% {
        opacity: 0;
        transform: translateY(120px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== GLOBE SECTION ==================== */
.globe-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.globe-section.visible {
    opacity: 1;
    pointer-events: auto;
}

.globe-container {
    width: 100%;
    height: 100%;
}

/* ==================== BOTTOM NAVIGATION ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 24px 30px;
    z-index: 100;
    pointer-events: auto;
}

.nav-item {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(11px, 1.4vw, 18px);
    font-weight: 300;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.3s ease;
    pointer-events: auto;
}

.nav-item:hover {
    color: #bbbbbb;
}

.nav-item.active {
    color: #ffffff;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    position: relative;
    z-index: 1;
    padding: 40px 30px;
    min-height: 100vh;
}

/* ==================== PARTICLE CONTAINER ==================== */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.particle-container.visible {
    opacity: 1;
    visibility: visible;
}

.particle-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* ==================== INTELLECTUAL PROPERTY SECTION ==================== */
.ip-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 80px 40px 120px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ip-section.visible {
    opacity: 1;
    visibility: visible;
}

/* Staggered entrance: all IP elements start hidden and translated down */
.ip-section .ip-title,
.ip-section .ip-section-hint,
.ip-section .patent-carousel,
.ip-section .carousel-nav-container,
.ip-section .patent-count-container {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* When IP section has animate-in class, elements slide up */
.ip-section.animate-in .ip-title {
    opacity: 1;
    transform: translateY(0);
}

.ip-section.animate-in .ip-section-hint {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.ip-section.animate-in .patent-carousel {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.ip-section.animate-in .carousel-nav-container {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.ip-section.animate-in .patent-count-container {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* When IP section is visible but NOT yet animating in, keep everything hidden */
.ip-section.visible:not(.animate-in) .ip-title,
.ip-section.visible:not(.animate-in) .ip-section-hint,
.ip-section.visible:not(.animate-in) .patent-carousel,
.ip-section.visible:not(.animate-in) .carousel-nav-container,
.ip-section.visible:not(.animate-in) .patent-count-container {
    opacity: 0;
    transform: translateY(60px);
}

.ip-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ip-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 200;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: 8px;
    text-align: center;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.ip-section-hint {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
}

/* ==================== PATENT CAROUSEL ==================== */
.patent-carousel {
    position: relative;
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    min-height: 520px;
    overflow: visible;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: max-content;
    min-width: 100%;
    gap: 20px;
    position: relative;
    will-change: transform;
}

/* Carousel nav container - below carousel */
.carousel-nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.carousel-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    flex-shrink: 0;
}

.carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.carousel-nav-btn:active {
    transform: scale(0.95);
}

.carousel-nav-btn svg {
    pointer-events: none;
}

/* Pause button */
.carousel-pause-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    flex-shrink: 0;
    padding: 0;
}

.carousel-pause-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.carousel-pause-btn:active {
    transform: scale(0.95);
}

.carousel-pause-btn svg {
    pointer-events: none;
}

.patent-card {
    flex: 0 0 400px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(10, 12, 20, 0.85);
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-radius: 12px;
    backdrop-filter: none;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    opacity: 0.2;
    transform: scale(0.8);
    filter: blur(4px);
    pointer-events: auto;
    flex-shrink: 0;
}

.patent-card.center {
    opacity: 1 !important;
    transform: scale(1) !important;
    filter: blur(0px) !important;
    border-color: rgba(136, 204, 255, 0.4);
    box-shadow: 0 0 40px rgba(52, 152, 219, 0.2), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.patent-card.side-left,
.patent-card.side-right {
    opacity: 0.45 !important;
    transform: scale(0.88) !important;
    filter: blur(1.5px) !important;
    pointer-events: auto !important;
}

.patent-card.far-left,
.patent-card.far-right {
    opacity: 0.1 !important;
    transform: scale(0.72) !important;
    filter: blur(3px) !important;
    pointer-events: none !important;
}

.patent-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.patent-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
    filter: brightness(0.85) saturate(0.9) grayscale(0.3);
}

.patent-card.center .patent-card-image,
.patent-card:hover .patent-card-image {
    transform: scale(1.05);
    filter: brightness(1) saturate(1) grayscale(0);
}

.patent-card-hover-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.patent-card.center .patent-card-hover-title,
.patent-card:hover .patent-card-hover-title {
    opacity: 1;
    transform: translateY(0);
}

/* Persistent title bar below image */
.patent-card-title-bar {
    padding: 10px 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    font-weight: 400;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Patent card node icon */
.patent-card-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    transition: all 0.4s ease;
}

.patent-card.center .patent-card-icon,
.patent-card:hover .patent-card-icon {
    background: rgba(156, 69, 255, 0.3);
    border-color: rgba(156, 69, 255, 0.5);
}

.patent-card-icon svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.patent-card.center .patent-card-icon svg,
.patent-card:hover .patent-card-icon svg {
    color: #ffffff;
}

/* Progress bar and dots */
.carousel-progress-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.carousel-progress-bar-wrapper {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.carousel-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #9c45ff, #6a0dad, #3498db, #88ccff);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 10px rgba(156, 69, 255, 0.5);
}

.carousel-progress-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.progress-dot:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.2);
}

.progress-dot.active {
    background: #9c45ff;
    box-shadow: 0 0 8px rgba(156, 69, 255, 0.6);
    transform: scale(1.3);
}

/* Hide progress dots */
.carousel-progress-dots {
    display: none;
}

/* Patent count line */
.patent-count-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: nowrap;
}

.patent-count-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
}

.patent-count-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 18px;
    background: rgba(52, 152, 219, 0.25);
    border: 1px solid rgba(52, 152, 219, 0.4);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #88ccff;
    letter-spacing: 0.05em;
}

.patent-count-separator {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.2em;
    user-select: none;
}

/* ==================== PATENT DETAIL OVERLAY ==================== */
.patent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s ease;
    cursor: pointer;
}

.patent-overlay.active {
    opacity: 1;
    visibility: visible;
}

.patent-detail-box {
    background: rgba(10, 10, 15, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 45px 55px;
    max-width: 750px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    transform: scale(0.8) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.patent-overlay.active .patent-detail-box {
    transform: scale(1) translateY(0);
}

.patent-detail-box::-webkit-scrollbar {
    width: 6px;
}

.patent-detail-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.patent-detail-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.patent-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.patent-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: rotate(90deg);
}

.patent-detail-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 200;
    color: #ffffff;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 30px;
    line-height: 1.4;
}

.patent-detail-image {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.patent-detail-abstract {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.9;
    text-align: center;
}

/* ==================== CONNECT SECTION ==================== */
.connect-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.connect-section.visible {
    opacity: 1;
    visibility: visible;
}

.connect-container {
    text-align: center;
    padding: 40px;
    max-width: 600px;
    width: 100%;
}

.connect-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 200;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: 12px;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.connect-subtitle {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #999999;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 50px;
    line-height: 1.6;
}

.connect-links {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.connect-link-item {
    display: inline-block;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 14px 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    cursor: pointer;
}

.connect-link-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .patent-carousel {
        padding: 30px 50px;
        min-height: 460px;
    }

    .patent-card {
        flex: 0 0 280px;
        max-width: 280px;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }

    .patent-detail-box {
        padding: 35px 25px;
    }

    .ip-section {
        padding: 50px 20px 100px 20px;
    }

    .carousel-progress-container {
        max-width: 280px;
    }

    .connect-container {
        padding: 30px 20px;
    }

    .connect-links {
        flex-direction: column;
        gap: 12px;
    }

    .connect-link-item {
        padding: 12px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .patent-carousel {
        padding: 20px 45px;
        min-height: 420px;
    }

    .patent-card {
        flex: 0 0 240px;
        max-width: 240px;
    }

    .carousel-nav-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-nav-left {
        left: -5px;
    }

    .carousel-nav-right {
        right: -5px;
    }

    .connect-title {
        letter-spacing: 0.3em;
    }

    .connect-subtitle {
        font-size: 12px;
        margin-bottom: 40px;
    }

    .connect-link-item {
        padding: 10px 16px;
        font-size: 11px;
    }
}