:root {
    --bg-dark: #0a0a0f;
    --bg-panel: #111116;
    --primary: #00f3ff;
    /* Cyan */
    --secondary: #bd00ff;
    /* Purple */
    --text-main: #ffffff;
    --text-dim: #8888aa;
    --font-tech: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
}

/* === Dynamic Background & Overlay === */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* Moved further back */
    background: radial-gradient(circle at center, #0f0f13 0%, #000 100%);
    /* Base dark background */
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    z-index: 999;
    pointer-events: none;
    opacity: 0.6;
}

/* === Loader === */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    background-image:
        radial-gradient(circle at 50% 50%, #111116 0%, #000 100%),
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out;
}

#loader::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 40%, #000 90%);
    /* Vignette */
    pointer-events: none;
    z-index: 2;
}

#loader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.loader-content {
    text-align: center;
    position: relative;
    z-index: 3;
}



.logo-svg {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
}

.ring-outer {
    animation: spin 10s linear infinite;
    transform-origin: 50px 50px;
}

.ring-inner {
    animation: spinReverse 6s linear infinite;
    transform-origin: 50px 50px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    100% {
        transform: rotate(-360deg);
    }
}

.loading-bar {
    width: 200px;
    height: 2px;
    background: #222;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
    animation: loadProgress 2.5s ease-in-out forwards;
    box-shadow: 0 0 10px var(--primary);
}

.loading-text {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--primary);
    animation: blink 0.5s infinite alternate;
}

/* === Navigation === */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.nav-logo {
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-tech);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* === Hero Section === */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
    /* Changed from radial-gradient to transparent */
    perspective: 1000px;
    overflow: hidden;
}

/* Cyber Grid Floor */
.hero-grid {
    position: absolute;
    bottom: -30%;
    left: -50%;
    width: 200%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.2) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: rotateX(60deg);
    animation: gridMove 20s linear infinite;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    z-index: 0;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: rotateX(60deg) translateY(0);
    }

    100% {
        transform: rotateX(60deg) translateY(60px);
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
}

/* === Creative "Neon Void" Text Effect === */
h1.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    position: relative;
    color: transparent;
    text-transform: uppercase;
    -webkit-text-stroke: 2px var(--primary);
    text-shadow:
        0 0 10px rgba(0, 243, 255, 0.5),
        0 0 30px rgba(0, 243, 255, 0.3),
        0 0 80px rgba(0, 243, 255, 0.2);
    animation: neonPulse 3s infinite alternate;
}

h1.glitch::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: var(--primary);
    opacity: 0.1;
    overflow: hidden;
    animation: liquidFill 6s infinite linear;
    filter: blur(1px);
}

h1.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    overflow: hidden;
    clip-path: inset(0 80% 0 0);
    animation: scanLight 4s infinite ease-in-out;
    filter: drop-shadow(0 0 10px #fff);
}

@keyframes neonPulse {
    0% {
        text-shadow:
            0 0 10px rgba(0, 243, 255, 0.5),
            0 0 30px rgba(0, 243, 255, 0.3);
        transform: scale(1);
    }

    100% {
        text-shadow:
            0 0 20px rgba(0, 243, 255, 0.8),
            0 0 60px rgba(0, 243, 255, 0.5),
            0 0 100px rgba(189, 0, 255, 0.5);
        transform: scale(1.02);
    }
}

@keyframes scanLight {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    50% {
        clip-path: inset(0 0 0 0);
    }

    100% {
        clip-path: inset(0 0 0 100%);
    }
}

@keyframes liquidFill {
    0% {
        clip-path: polygon(0 45%, 100% 40%, 100% 100%, 0% 100%);
    }

    50% {
        clip-path: polygon(0 35%, 100% 55%, 100% 100%, 0% 100%);
    }

    100% {
        clip-path: polygon(0 45%, 100% 40%, 100% 100%, 0% 100%);
    }
}

@media (max-width: 768px) {
    h1.glitch {
        font-size: 3.5rem;
        -webkit-text-stroke: 1px var(--primary);
    }
}

/* End New Effect - cleaning up old styles below */









.subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

/* === Modal Styles === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #111;
    border: 1px solid var(--primary);
    width: 80%;
    max-width: 900px;
    position: relative;
    clip-path: polygon(20px 0, 100% 0,
            100% calc(100% - 20px), calc(100% - 20px) 100%,
            0 100%, 0 20px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-image-container {
    flex: 1 1 400px;
    position: relative;
    min-height: 300px;
    border-right: 1px solid rgba(0, 243, 255, 0.2);
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 95%, var(--primary) 100%);
    background-size: 100% 20px;
    animation: scanMove 2s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes scanMove {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.modal-info {
    flex: 1 1 300px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    font-family: var(--font-tech);
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.modal-line {
    width: 50px;
    height: 3px;
    background: var(--secondary);
    margin-bottom: 1.5rem;
}

.modal-info p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-action {
    align-self: flex-start;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-tech);
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2), inset 0 0 5px rgba(0, 243, 255, 0.1);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.cta-button:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
}

/* === Sections === */
.section-container {
    padding: 5rem 10%;
    min-height: 80vh;
}

.section-header {
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.section-header h2 {
    font-family: var(--font-tech);
    font-size: 2rem;
}

.section-header .highlight {
    color: var(--primary);
    font-size: 1rem;
    display: block;
    margin-top: 5px;
    opacity: 0.8;
}

/* === PC Grid === */
.pc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* Use auto-fill to prevent excessive stretching */
    gap: 2rem;
}

.pc-card {
    background: rgba(17, 17, 22, 0.9);
    /* Darker background */
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 0;
    /* Remove padding to let visual touch borders if needed, or keep? */
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.card-visual {
    width: 100%;
    height: 180px;
    /* Fixed height */
    background: #000;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-visual img.card-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the frame */
    transition: transform 0.5s;
}

.pc-card:hover .card-visual img.card-img-placeholder {
    transform: scale(1.1);
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This fixes the border/size issue */
    display: block;
}

.card-info h3 {
    font-family: var(--font-tech);
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.card-info p {
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tech-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-family: var(--font-tech);
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* === Mobile Showcase === */
.mobile-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 243, 255, 0.5) rgba(17, 17, 22, 0.3);
}

/* 美化滚动条 for Webkit browsers */
.mobile-track::-webkit-scrollbar {
    height: 8px;
}

.mobile-track::-webkit-scrollbar-track {
    background: rgba(17, 17, 22, 0.3);
    border-radius: 10px;
}

.mobile-track::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00f3ff, #bd00ff);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.mobile-track::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #bd00ff, #00f3ff);
}

.mobile-card {
    flex-shrink: 0;
    text-align: center;
}

.screen-frame {
    width: 300px;
    height: 560px;
    border: 8px solid #333;
    /* Thicker border for phone look */
    border-radius: 30px;
    /* Larger radius */
    margin: 0 auto 1rem;
    overflow: hidden;
    position: relative;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.screen-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-tech);
}

/* === Animations === */
@keyframes loadProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes pulseLogo {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes blink {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

/* === App Launch Demo === */
.launch-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    perspective: 1000px;
    /* Add 3D perspective */
}

/* Updated Phone Mockup to Match Mobile Cards */
.phone-mockup {
    width: 280px;
    /* Slightly larger than cards for emphasis */
    height: 500px;
    border: 8px solid #333;
    /* Match card border color but thicker */
    border-radius: 30px;
    /* Match card radius style */
    background: #000;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.1);
    overflow: hidden;
    transform: rotateY(15deg);
    /* Subtle 3D tilt */
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotateY(0deg) scale(1.05);
    /* Interactive hover */
    box-shadow: 0 0 70px rgba(189, 0, 255, 0.2);
}

.phone-mockup::before {
    /* Notch */
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: #333;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    position: relative;
    background: #0a0a0f;
    overflow: hidden;
}

/* Splash Screen */
.app-splash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 2;
    animation: splashFade 4s infinite;
}

.app-logo-icon {
    width: 80px;
    height: 80px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-tech);
    color: var(--primary);
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    margin-bottom: 1rem;
    animation: pulseLogo 2s infinite;
}

.app-splash p {
    color: var(--text-dim);
    font-family: var(--font-tech);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Home Screen */
.app-home {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #111, #0a0a0f);
    padding-top: 50px;
    z-index: 1;
}

.app-header {
    text-align: center;
    color: #fff;
    font-family: var(--font-tech);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-grid {
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.app-item {
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* Launch Info */
.launch-info {
    max-width: 400px;
}

.launch-info h3 {
    font-family: var(--font-tech);
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.launch-info p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    background: rgba(0, 243, 255, 0.05);
    padding: 10px 15px;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--primary);
    color: #fff;
    font-family: var(--font-tech);
}

/* === Contact Section === */
.contact-content {
    text-align: center;
    color: #ccc;
}

.contact-btn-container {
    margin-top: 2rem;
}

/* Animations */
@keyframes splashFade {

    0%,
    30% {
        opacity: 1;
        z-index: 2;
    }

    40%,
    90% {
        opacity: 0;
        z-index: 0;
    }

    100% {
        opacity: 1;
        z-index: 2;
    }
}