@font-face {
    font-family: iconfont;
    src: url(../font/iconfont.ttf) format("truetype")
}

* {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar {
    display: none;
}

body,
html {
    background-color: #000;
    margin: 0
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide scrollbar for Chrome, Safari/* Footer Bubbles */
.footer-bubbles {
    position: absolute;
    inset: 0;
    filter: url(#gooey-blob);
    z-index: 1;
    pointer-events: none;
} */
body::-webkit-scrollbar {
    display: none;
}

body.gate-active {
    overscroll-behavior: none;
    overscroll-behavior-y: none
}

.fluid-stage {
    height: 100vh;
    overflow: hidden;
    position: relative;
    width: 100%
}

canvas {
    display: block;
    height: 100%;
    width: 100%
}

.link {
    display: inline-block
}

.link,
.link img {
    width: 100%
}

.hero-wrapper {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-family: Futura, Trebuchet MS, Arial, sans-serif;
    gap: 2.5rem;
    height: 100%;
    inset: 0;
    justify-content: center;
    pointer-events: none;
    position: absolute;
    width: 100%;
    z-index: 2
}

.hero-visual {
    --background-height: 100vh;
    --site-language-alignment: left;
    --site-language-direction: ltr;
    --site-language-flex-alignment: flex-start;
    --site-language-indent-left: 1;
    --site-language-indent-right: 0;
    --site-language-margin-left: 0;
    --site-language-margin-right: auto;
    --viewport-height: 100vh;
    --neon: hsla(0, 0%, 100%, .85);
    --glow: 0 0 8px hsla(0, 0%, 100%, .3);
    -webkit-text-size-adjust: none;
    word-wrap: break-word;
    --alignment: center;
    --flex-alignment: center;
    --indent-left: 1;
    --indent-right: 1;
    --margin-left: auto;
    --margin-right: auto;
    --border-radius-tl: 0;
    --border-radius-tr: 0;
    --border-radius-br: 0;
    --border-radius-bl: 0;
    text-align: var(--alignment);
    --width: 100vw;
    --padding-horizontal: 0rem;
    --padding-vertical: 8rem;
    --spacing: 3.125rem;
    animation: hero-pop 1.3s cubic-bezier(.19, 1, .22, 1) .8s forwards;
    backdrop-filter: blur(4px) saturate(160%);
    backface-visibility: hidden;
    background-image: url(../images/image01.png);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid #696969;
    border-radius: 100%;
    box-shadow: 0 0 0 1px hsla(0, 0%, 100%, .05), 0 0 30px -5px hsla(0, 0%, 100%, .25), 0 0 60px -10px hsla(0, 0%, 100%, .4);
    box-sizing: border-box;
    display: inline-block;
    font: inherit;
    height: 12rem;
    margin: 0 0 40px;
    max-width: 100%;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
    transform: translate3d(0, 30px, 0) scale(.9);
    transition: none;
    vertical-align: top;
    width: 12rem;
    will-change: transform, opacity;
}

.hero-visual:hover {
    --glow: 0 0 16px hsla(0, 0%, 100%, .6);
    transform: translate3d(0, 0, 30px);
    transition: transform .4s cubic-bezier(.19, 1, .22, 1)
}

.hero-visual img {
    border-radius: 8px;
    filter: saturate(130%) contrast(105%);
    height: 100%;
    mix-blend-mode: screen;
    object-fit: cover;
    width: 100%
}

@keyframes hero-pop {
    0% {
        opacity: 0;
        transform: translate3d(0, 30px, 0) scale(.9) rotate(-6deg)
    }

    55% {
        opacity: 1
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg)
    }
}

/* Fancy 3D Flip Button */
.hero-cta-btn {
    --btn-bg: transparent;
    --btn-border: rgba(255, 255, 255, 0.3);
    --btn-hover-bg: rgba(255, 255, 255, 0.1);
    --btn-text: #fff;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    transition: all .3s cubic-bezier(.19, 1, .22, 1);
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    z-index: 3
}

.hero-cta-btn .fancy-flipper {
    perspective: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform .3s;
    width: 250px;
    height: 60px
}

.hero-cta-btn .fancy-back {
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0
}

.hero-cta-btn .fancy-back svg {
    width: 100%;
    height: 100%
}

.hero-cta-btn:hover .fancy-flipper {
    transform: rotateX(-90deg)
}

.hero-cta-btn:active .fancy-flipper {
    transform: rotateX(-90deg) scale(.95)
}

.hero-cta-btn .button-text {
    letter-spacing: 0.01em;
    font-family: Futura, "Helvetica Neue", Helvetica, sans-serif;
}

.hero-cta-btn .fancy-front {
    transform: rotateX(0deg) translateZ(30px);
}

.hero-cta-btn .fancy-back {
    transform: rotateX(90deg) translateZ(30px);
}

/* Page Transition Styles */
/* Canonical unified loader + transition styles */
.page-transition {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity .6s cubic-bezier(.19, 1, .22, 1);
    z-index: 9999
}

.page-transition.active {
    opacity: 1;
    pointer-events: auto
}

.page-transition .pt-backdrop {
    animation: backdrop-reveal .9s cubic-bezier(.19, 1, .22, 1) forwards;
    backdrop-filter: blur(14px) saturate(180%);
    background: rgba(5, 10, 20, .4);
    inset: 0;
    position: absolute
}

@keyframes backdrop-reveal {
    0% {
        backdrop-filter: blur(0px) saturate(100%);
        background: rgba(5, 10, 20, 0)
    }

    100% {
        backdrop-filter: blur(14px) saturate(180%);
        background: rgba(5, 10, 20, .4)
    }
}

.pt-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 2.4rem; /* slightly more breathing room */
    position: relative;
}

.pt-text {
    color: rgba(255, 255, 255, .8);
    font-family: Futura, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: .05em;
    opacity: 0;
    animation: pt-fade-in .8s cubic-bezier(.19, 1, .22, 1) .4s forwards;
    padding-top: .15rem;
}

.pt-progress {
    background: rgba(0, 0, 0, .4);
    border: 1px solid hsla(0, 0%, 100%, .2);
    border-radius: 3px;
    box-shadow: 0 0 0 1px hsla(0, 0%, 100%, .1), 0 2px 8px rgba(0, 0, 0, .3);
    height: 6px;
    overflow: hidden;
    position: relative;
    width: 180px
}

.pt-progress-bar {
    animation: progress-glow 2s ease-in-out infinite;
    background: linear-gradient(90deg, #0ff, #f0f, #ff0);
    box-shadow: 0 0 12px hsla(0, 0%, 100%, .6), inset 0 0 8px hsla(0, 0%, 100%, .3);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 0
}

@keyframes progress-glow {
    0%,
    100% {
        filter: brightness(1) saturate(1)
    }

    50% {
        filter: brightness(1.4) saturate(1.6)
    }
}

@keyframes pt-fade-in {
    100% {
        opacity: 1
    }
}

/* Twisty Loader */
.twisty-loader {
    align-items: center;
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: .4rem; /* nudge extra space above text */
}

.twisty-container {
    height: 140px;
    position: relative;
    width: 140px
}

.twisty-container .square {
    background: #fff;
    height: 94%;
    left: 50%;
    margin: -47% 0 0 -47%;
    position: absolute;
    top: 50%;
    width: 94%
}

.twisty-container .square.black {
    animation: twisty-rotate 10s linear infinite;
    background: #000
}

@keyframes twisty-rotate {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.page-transition.active .twisty-loader {
    animation: loader-pop .7s cubic-bezier(.19, 1, .22, 1)
}

@keyframes loader-pop {
    0% {
        opacity: 0;
        transform: scale(.8) translateY(8px)
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0)
    }
}

body.transition-lock {
    overflow: hidden
}

@keyframes btn-in {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(.9)
    }

    60% {
        opacity: 1;
        transform: translateY(0) scale(1.02)
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@media (prefers-reduced-motion:reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important
    }

    .hero-visual {
        animation: none;
        opacity: 1;
        transform: none
    }
}

/* Content Section Base Styles */
.content-section {
    min-height: 100vh;
    padding: 4rem 0;
    position: relative;
}

/* Section Theme Variants */
.content-section[data-theme="dark"] {
    background: #000;
    color: #fff;
}

.content-section[data-theme="dim"] {
    background: #111;
    color: #f0f0f0;
}

/* Section Inner Container */
.section-inner {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 2rem;
}

/* Section Headers */
.content-section h2 {
    color: #f9f1e9;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.content-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Placeholder Grid Styling */
.placeholder-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 3rem;
}

.ph-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    height: 200px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ph-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Floating Terminal Windows */
.terminal-container {
    position: relative;
    margin: 8rem 0 4rem;
    min-height: 700px;
}

.terminal-window {
    position: absolute;
    width: 320px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    opacity: 0;
    transform: translate3d(0, 40px, 0) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1),
                transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.terminal-window.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.terminal-window:nth-child(1) {
    top: 0;
    left: 10%;
    animation: float-gentle 8s ease-in-out infinite;
}

.terminal-window:nth-child(2) {
    top: 160px;
    right: 15%;
    animation: float-gentle 8s ease-in-out infinite 2s;
}

.terminal-window:nth-child(3) {
    top: 320px;
    left: 20%;
    animation: float-gentle 8s ease-in-out infinite 4s;
}

.terminal-window:nth-child(4) {
    top: 480px;
    right: 25%;
    animation: float-gentle 8s ease-in-out infinite 6s;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    25% {
        transform: translate3d(4px, -8px, 0);
    }
    50% {
        transform: translate3d(-2px, -12px, 0);
    }
    75% {
        transform: translate3d(-4px, -6px, 0);
    }
}

.terminal-header {
    background: rgba(40, 40, 40, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-controls {
    display: flex;
    gap: 6px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.control.close {
    background: #ff5f57;
}

.control.minimize {
    background: #ffbd2e;
}

.control.maximize {
    background: #28ca42;
}

.terminal-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 500;
}

.terminal-content {
    padding: 12px;
    color: #fff;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.prompt {
    color: #00ff88;
    font-weight: bold;
    margin-right: 4px;
}

.command {
    color: #88c999;
    font-family: inherit;
}

.terminal-output {
    margin-left: 16px;
    margin-top: 4px;
}

.terminal-output p {
    margin: 4px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    opacity: 0;
    animation: typewriter 0.6s ease-out forwards;
}

.terminal-window.visible .terminal-output p:nth-child(1) {
    animation-delay: 0.5s;
}

.terminal-window.visible .terminal-output p:nth-child(2) {
    animation-delay: 0.8s;
}

.terminal-window.visible .terminal-output p:nth-child(3) {
    animation-delay: 1.1s;
}

.terminal-window.visible .terminal-output p:nth-child(4) {
    animation-delay: 1.4s;
}

@keyframes typewriter {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.terminal-window:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .terminal-window {
        width: 280px;
    }
    
    .terminal-window:nth-child(1) {
        left: 5%;
    }
    
    .terminal-window:nth-child(2) {
        right: 5%;
    }
    
    .terminal-window:nth-child(3) {
        left: 8%;
    }
    
    .terminal-window:nth-child(4) {
        right: 8%;
    }
}

@media (max-width: 768px) {
    .terminal-container {
        margin: 4rem 0 2rem;
        min-height: 900px;
    }
    
    .terminal-window {
        width: 260px;
        font-size: 11px;
    }
    
    .terminal-window:nth-child(1) {
        left: 3%;
        top: 0;
    }
    
    .terminal-window:nth-child(2) {
        right: 3%;
        top: 200px;
    }
    
    .terminal-window:nth-child(3) {
        left: 5%;
        top: 400px;
    }
    
    .terminal-window:nth-child(4) {
        right: 5%;
        top: 600px;
    }
}

@media (max-width: 480px) {
    .terminal-container {
        min-height: 1000px;
    }
    
    .terminal-window {
        width: 240px;
        font-size: 10px;
    }
    
    .terminal-window:nth-child(1) {
        left: 2%;
        top: 0;
    }
    
    .terminal-window:nth-child(2) {
        right: 2%;
        top: 220px;
    }
    
    .terminal-window:nth-child(3) {
        left: 3%;
        top: 440px;
    }
    
    .terminal-window:nth-child(4) {
        right: 3%;
        top: 660px;
    }
    
    .terminal-content {
        padding: 10px;
    }
    
    .terminal-output p {
        font-size: 10px;
    }
}

/* ========================================
   Contact Cubes Component
   ======================================== */

:root {
    --neon: rgba(255, 255, 255, 0.85);
    --glow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.contact-cubes-section {
    width: 100%;
    max-width: 700px;
    height: 70vh;
    max-height: 800px;
    min-height: 400px;
    margin: 80px auto 60px;
    display: block;
    padding: 20px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    isolation: isolate;
}

.playful-text {
    width: 100%;
    text-align: center;
    color: var(--neon);
    font-family: "Courier New", Courier, monospace;
    font-size: 1.2rem;
    opacity: 0;
    animation: fadeInText 2s ease forwards;
    animation-delay: 0.5s;
    margin-bottom: 48px;
    position: relative;
    z-index: 10;
}

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

.neon-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    perspective: 1000px;
    background: transparent;
    left: 0;
    top: 40px;
    bottom: 40px;
    box-sizing: border-box;
}

.cube {
    position: absolute;
    width: 60px;
    height: 60px;
    transform-style: preserve-3d;
    transition: all 0.6s ease;
    z-index: 2;
}

.cube-face {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid var(--neon);
    background: transparent;
    box-shadow: var(--glow);
}

.face-front { transform: rotateY(0deg) translateZ(30px); }
.face-back { transform: rotateY(180deg) translateZ(30px); }
.face-right { transform: rotateY(90deg) translateZ(30px); }
.face-left { transform: rotateY(-90deg) translateZ(30px); }
.face-top { transform: rotateX(90deg) translateZ(30px); }
.face-bottom { transform: rotateX(-90deg) translateZ(30px); }

.full-card {
    position: absolute;
    right: 5%;
    top: 30px;
    width: 55%;
    background: transparent;
    color: #fff;
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.full-card.visible {
    opacity: 1;
    pointer-events: auto;
}

.full-card div {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-left: 10px;
    border-left: 2px solid rgba(255,255,255,0.2);
    box-sizing: border-box;
    margin: 0;
}

.full-card a {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 500px) {
    .full-card {
        font-size: 1rem;
        width: 60%;
        right: 2%;
    }
}