:root {
    --primary-color: #00ffcc;
    --secondary-color: #0088ff;
    --accent-color-1: #ff00aa;
    --accent-color-2: #aa00ff;
    --accent-color-3: #ffcc00;
    --accent-color-4: #ff3300;
    --accent-color-5: #00eeff;
    --accent-blue: #3366ff;
    --accent-purple: #9933ff;
    --accent-pink: #ff66cc;
    --accent-teal: #00ccaa;
    --accent-green: #33ff99;
    --accent-yellow: #ffcc33;
    --text-color: #f8fafc;
    --background-color: #000000;
    --card-color: rgba(10, 30, 30, 0.5);
    --border-color: #00aa99;
    --highlight-color: #00ffaa;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glow-color: rgba(0, 255, 204, 0.5);
    --transition-speed: 0.3s;
    --font-primary: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Menlo', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    font-feature-settings: "ss01", "ss02", "ss03", "cv01", "cv02", "cv03";
    line-height: 1.3;
    background: linear-gradient(135deg, #080808, #0a1525 70%, #0a1a28);
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 204, 0.08), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Main container settings - increase fluid responsiveness */
.home-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100%;
    overflow: hidden;
    background-color: transparent;
    z-index: 1;
    padding: 0;
    padding-top: 50px;
}

.home-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Hero area - use fixed spacing and more compact layout */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    width: 100%;
    max-width: min(1200px, 95%);
    padding: 0 clamp(0.3rem, 2vw, 1rem);
    position: relative;
    z-index: 5;
    gap: 10px;
    height: auto;
    margin: 0 auto;
}

/* Title container - fixed padding */
.title-container {
    position: relative;
    padding: 10px 0 0;
    /* Fixed top padding */
    text-align: center;
    z-index: 5;
    overflow: visible;
    margin-bottom: 0;
    width: 100%;
}

/* Title connector - fixed spacing */
.title-connector {
    position: relative;
    width: 200px;
    height: 20px;
    margin: 0 auto 2px;
    /* Fixed small margin */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    z-index: 10;
}

/* Add connection line between eyes */
.title-connector::before {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(50% - 30px);
    right: calc(50% - 30px);
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 255, 204, 0.3),
            rgba(0, 255, 204, 0.7),
            rgba(0, 255, 204, 0.3),
            transparent);
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
    z-index: 1;
}

/* Add red box container - increase fluid responsiveness */
.hero-box {
    position: relative;
    padding: clamp(8px, 2vh, 15px) clamp(10px, 3vw, 20px);
    /* Reduce padding */
    border-radius: 12px;
    max-width: 92%;
    width: min(650px, 95vw);
    /* Fluid width */
    margin: 0 auto;
    /* Remove bottom margin */
    background: rgba(0, 12, 20, 0.75);
    box-shadow:
        0 0 0 1px rgba(0, 238, 255, 0.15),
        0 0 30px rgba(0, 255, 204, 0.25),
        0 0 60px rgba(0, 238, 255, 0.15),
        inset 0 0 30px rgba(0, 128, 255, 0.05);
    border: 1px solid rgba(0, 255, 204, 0.2);
    overflow: hidden;
    backdrop-filter: blur(8px);
    opacity: 1;
    z-index: 5;
}

/* Hover effect */
.hero-box:hover {
    box-shadow:
        0 0 0 1px rgba(0, 238, 255, 0.2),
        0 0 40px rgba(0, 255, 204, 0.35),
        0 0 80px rgba(0, 238, 255, 0.2),
        inset 0 0 50px rgba(0, 128, 255, 0.1);
}

/* Add light border effect - static version */
.hero-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(-45deg,
            rgba(0, 255, 204, 0) 0%,
            rgba(0, 255, 204, 0.1) 30%,
            rgba(0, 255, 204, 0.3) 50%,
            rgba(0, 255, 204, 0.1) 70%,
            rgba(0, 255, 204, 0) 100%);
    z-index: -1;
    border-radius: 14px;
}

/* Add grid background - static version */
.hero-box .grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, rgba(0, 255, 204, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 255, 204, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

/* Add top border light effect - static version */
.hero-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 5%,
            rgba(0, 255, 204, 0.3) 20%,
            rgba(0, 255, 204, 0.5) 50%,
            rgba(0, 255, 204, 0.3) 80%,
            transparent 95%);
    z-index: 1;
}

/* Bottom light effect - static version */
.hero-box .bottom-light {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 5%,
            rgba(0, 255, 204, 0.3) 20%,
            rgba(0, 255, 204, 0.5) 50%,
            rgba(0, 255, 204, 0.3) 80%,
            transparent 95%);
    z-index: 1;
}

/* Add four-corner light effect - static version */
.hero-box .corner {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ffcc;
    box-shadow: 0 0 10px #00ffcc, 0 0 20px #00eeff;
    z-index: 2;
    opacity: 0.7;
}

.hero-box .corner-tl {
    top: -3px;
    left: -3px;
}

.hero-box .corner-tr {
    top: -3px;
    right: -3px;
}

.hero-box .corner-bl {
    bottom: -3px;
    left: -3px;
}

.hero-box .corner-br {
    bottom: -3px;
    right: -3px;
}

/* Text content - simplified version */
.hero-content {
    padding: 15px 0;
    max-width: 92%;
    width: min(650px, 95vw);
    margin: 0 auto;
    text-align: center;
    z-index: 5;
}

.powered-text {
    opacity: 0.8;
    font-weight: normal;
}

/* Simplified title style - increase fluid font size */
.title {
    font-size: clamp(2rem, 7vw, 5rem);
    /* Reduce font size */
    font-weight: 900;
    text-align: center;
    letter-spacing: clamp(1px, 0.5vw, 4px);
    /* Fluid letter spacing */
    position: relative;
    color: #00ffcc;
    text-shadow:
        0 0 2px #00ffcc,
        0 0 7px #00ffcc,
        0 0 10px #00ffcc;
    line-height: 1;
    margin-bottom: 0;
    display: block;
    z-index: 10;
    -webkit-text-stroke: clamp(1px, 0.2vw, 2px) rgba(0, 255, 204, 0.8);
    /* Fluid stroke */
    font-family: 'Outfit', sans-serif;
    -webkit-background-clip: text;
    background-clip: text;
}

.title:hover {
    cursor: default;
}

/* Remove all animation-related code */
.title::before,
.title::after,
.title-container::before,
.title-container::after {
    display: none;
}

/* Remove all animation keyframe definitions */
@keyframes title-glow {
    0% {
        color: #00ffcc;
        text-shadow:
            0 0 2px #00ffcc,
            0 0 7px #00ffcc,
            0 0 10px #00ffcc;
    }

    100% {
        color: #00eeff;
        text-shadow:
            0 0 2px #00eeff,
            0 0 7px #00eeff,
            0 0 10px #00eeff;
    }
}

/* Subtitle - fixed outer margin */
.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #00eeff;
    margin-bottom: 8px;
    /* Fixed bottom outer margin */
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 5;
    text-transform: uppercase;
    margin-top: 0;
    text-shadow: 0 0 5px rgba(0, 238, 255, 0.3),
        0 0 15px rgba(0, 238, 255, 0.2);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Description text - increase fluid responsiveness */
.description {
    font-size: clamp(0.8rem, 2vw, 1rem);
    /* Reduce font size */
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 0;
    /* Remove bottom outer margin */
    max-width: min(800px, 95%);
    /* Fluid maximum width */
    font-family: 'Outfit', sans-serif;
    line-height: 1.4;
    /* Reduce line height */
    position: relative;
    z-index: 5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 1;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Text highlight - basic style, pending beautification */
.highlight-1,
.highlight-2,
.highlight-3,
.powered-text {
    color: #fff;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    -webkit-background-clip: text;
    background-clip: text;
}

.highlight-1 {
    color: #33ff99;
    text-shadow: 0 0 8px rgba(51, 255, 153, 0.5);
}

.highlight-2 {
    color: #00bfff;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.5);
}

.highlight-3 {
    color: #ff66cc;
    text-shadow: 0 0 8px rgba(255, 102, 204, 0.5);
}

/* Add AI reasoning's special effect, but remove animation */
.highlight-3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff66cc, transparent);
}

/* Add description text neon border, only show on large screens */
@media screen and (min-width: 768px) {
    .description {
        padding: 12px 20px;
        border-radius: 8px;
        position: relative;
    }

    .description::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 8px;
        background: linear-gradient(45deg,
                transparent 5%,
                rgba(0, 255, 204, 0.1) 10%,
                transparent 15%,
                rgba(0, 238, 255, 0.1) 20%,
                transparent 25%);
        z-index: -1;
        animation: border-rotate 10s linear infinite;
    }

    @keyframes border-rotate {
        0% {
            background-position: 0% 0%;
        }

        100% {
            background-position: 300% 0%;
        }
    }
}

/* Video container - fixed outer margin */
.manus-video-wrapper {
    width: min(95%, 1200px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 6px auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 238, 255, 0.2),
        0 0 20px rgba(0, 128, 255, 0.5);
    z-index: 10;
    background-color: #00050a;
    display: block;
    line-height: 0;
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.manus-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background-color: transparent;
    margin: 0;
    padding: 0;
}

/* Video controls */
.video-controls {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
}

.manus-video-wrapper:hover .video-controls {
    opacity: 1;
}

.video-control-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-control-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Progress bar */
.video-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 15;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, height 0.2s ease;
}

.manus-video-wrapper:hover .video-progress-container {
    opacity: 1;
    height: 6px;
}

.video-progress-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
}

.video-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-color-1));
    width: 0;
}

.progress-text {
    font-family: var(--font-mono);
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    opacity: 0;
    animation: fade-in 0.4s forwards;
    animation-delay: 0.3s;
}

.loading-message {
    font-family: var(--font-mono);
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--accent-color-5);
    letter-spacing: 1px;
    text-align: center;
    max-width: 80%;
    opacity: 0;
    animation: fade-in 0.4s forwards;
    animation-delay: 0.3s;
}

/* Responsive design */
@media screen and (max-width: 1200px) {
    .title {
        font-size: 5.5rem;
    }

    .manus-video-wrapper {
        max-width: 650px;
    }
}

@media screen and (max-width: 992px) {
    .title {
        font-size: 4.5rem;
    }

    .subtitle {
        font-size: 1.8rem;
    }

    .description {
        font-size: 1.2rem;
    }

    .manus-video-wrapper {
        max-width: 550px;
    }

    .hero-box {
        width: 580px;
    }
}

@media screen and (max-width: 768px) {
    .title {
        font-size: 3.5rem;
        margin-bottom: 0.1rem;
    }

    .title::before {
        /* Reduce data flow effect visibility on small screens */
        opacity: 0.6;
    }

    .title-container::before {
        width: 100%;
        height: 100%;
    }

    .particle {
        display: none;
    }

    .particle:nth-child(1),
    .particle:nth-child(3),
    .particle:nth-child(5),
    .particle:nth-child(7) {
        display: block;
    }

    .subtitle {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .description {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }

    .manus-video-wrapper {
        max-width: 90%;
        margin: 0.6rem auto;
    }

    .hero-section {
        padding: 0.5rem;
        gap: 0.2rem;
    }

    .hero-box {
        padding: 20px 25px;
        margin-bottom: 15px;
        width: 90%;
    }

    .eye {
        width: 12px;
        height: 12px;
    }

    .eye::after {
        width: 5px;
        height: 5px;
        top: 2px;
        left: 3px;
    }

    .title-connector {
        margin-bottom: 5px;
    }

    .title-connector:hover .eye {
        width: 14px;
        height: 14px;
    }

    .title-connector::before {
        left: calc(50% - 22px);
        right: calc(50% - 22px);
    }

    /* Adjust main container to small screens */
    .home-container {
        max-height: 100%;
        overflow-y: auto;
        padding: 0;
        padding-top: 50px;
    }

    /* Adjust eye connector */
    .title-connector {
        margin-bottom: 5px;
    }

    /* Reduce light spot size */
    .light-spot {
        width: 200px;
        height: 200px;
    }

    /* Adjust button */
    .cta-button {
        padding: 8px 20px;
        font-size: 0.95rem;
        margin-top: 0.5rem;
    }

    /* Adjust grid and light spot display on different devices */
    .grid-overlay {
        background-size: 30px 30px;
    }

    .tech-circle {
        width: 100vw;
        height: 100vw;
    }

    .glow-circle {
        width: 100vw;
        height: 100vw;
    }

    /* Navbar responsive design */
    .navbar-left {
        gap: 10px;
    }

    .navbar-link {
        padding: 5px;
        font-size: 13px;
    }

    .company-info {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .title {
        font-size: 3rem;
        letter-spacing: 0.2px;
        margin-bottom: 0;
    }

    .particle {
        display: none;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }

    .description {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .manus-video-wrapper {
        max-width: 95%;
        margin: 0.3rem auto;
    }

    .hero-box {
        padding: 15px 20px;
        margin-bottom: 15px;
    }

    .cta-button {
        padding: 6px 16px;
        font-size: 0.8rem;
    }

    /* Reduce star count */
    #matrix-canvas {
        opacity: 0.1;
    }

    /* Reduce wave and light spot */
    .color-wave {
        width: 150vw;
        height: 150vw;
    }

    .light-spot {
        width: 150px;
        height: 150px;
    }

    /* Adjust eye size */
    .eye {
        width: 10px;
        height: 10px;
    }

    .eye::after {
        width: 4px;
        height: 4px;
        top: 2px;
        left: 3px;
    }

    .title-connector {
        gap: 35px;
        height: 20px;
    }

    /* Navbar responsive design */
    .navbar-link:not(:first-child) {
        display: none;
    }

    .navbar-divider {
        display: none;
    }

    .github-button span {
        display: none;
    }

    .github-button {
        padding: 6px;
    }

    .company-info {
        font-size: 15px;
    }

    .notification-button {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* Handle shorter screens */
@media screen and (max-height: 700px) {
    .title {
        font-size: 2.5rem;
        margin-bottom: 0;
    }

    .title-connector {
        height: 20px;
        margin-bottom: 5px;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .manus-video-wrapper {
        max-width: 400px;
        margin: 0.3rem auto;
    }

    .hero-section {
        gap: 0;
    }

    .description {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }

    .hero-box {
        padding: 15px 20px;
        margin-bottom: 10px;
    }

    .cta-button {
        margin-top: 0.2rem;
    }
}

/* Handle very small screens */
@media screen and (max-height: 600px),
(max-width: 350px) {
    .title {
        font-size: 2.2rem;
    }

    .manus-video-wrapper {
        max-width: 90%;
        max-height: 150px;
    }

    .hero-box {
        padding: 10px 15px;
    }

    /* Hide or reduce some effects */
    .tech-circle::before,
    .tech-circle::after {
        display: none;
    }
}

/* Scrollbar style */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 204, 0.5) rgba(0, 0, 0, 0.1);
}

/* Star animation */
.star-icon {
    font-size: clamp(0.7rem, 1.8vw, 0.9rem);
    /* Reduce star icon size */
    display: inline-block;
    color: gold;
    opacity: 1;
    visibility: visible;
    animation: star-twinkle 3s infinite ease-in-out;
    animation-delay: calc(var(--i, 0) * 0.5s);
    transform-origin: center;
    margin: 0 3px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

@keyframes star-twinkle {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
        text-shadow: 0 0 8px rgba(255, 204, 0, 0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) rotate(10deg);
        text-shadow: 0 0 12px rgba(255, 204, 0, 0.9);
    }
}

/* Top navbar */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(0, 12, 20, 0.92);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow:
        0 1px 0 rgba(0, 255, 204, 0.15),
        0 2px 20px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(0, 255, 204, 0.25);
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.navbar-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 10px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.company-info {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
    letter-spacing: 1px;
}

.navbar-divider {
    height: 20px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 204, 0.5), transparent);
}

.navbar-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 5px 8px;
    border-radius: 4px;
}

.navbar-link:hover {
    color: var(--primary-color);
    background: rgba(0, 255, 204, 0.1);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(20, 30, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-button:hover {
    color: var(--primary-color);
    background: rgba(30, 40, 50, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 204, 0.3);
}

.github-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 30, 40, 0.7);
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.github-button:hover {
    background: rgba(30, 40, 50, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 204, 0.3);
}

.github-button i {
    font-size: 16px;
}

/* Cyberpunk background effect */
.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(135deg, #000000, #050b15, #061221);
}

/* Grid overlay effect */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 204, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    opacity: 0.7;
    animation: grid-fade 8s infinite alternate;
}

@keyframes grid-fade {
    0% {
        opacity: 0.5;
        background-size: 40px 40px;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 0.6;
        background-size: 42px 42px;
    }
}

/* Glow circle */
.glow-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vh;
    height: 90vh;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(0, 255, 204, 0.12) 0%,
            rgba(0, 238, 255, 0.1) 20%,
            rgba(170, 0, 255, 0.08) 40%,
            rgba(255, 0, 170, 0.05) 60%,
            transparent 80%);
    filter: blur(20px);
    opacity: 0.9;
    z-index: 1;
    animation: pulse-glow 15s infinite alternate;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.7;
    }
}

/* Tech circle */
.tech-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tech-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(var(--scale, 1));
    width: 80vh;
    height: 80vh;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 204, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.1);
    opacity: var(--opacity, 0.3);
    z-index: 1;
    animation: rotate-circle var(--speed, 40s) linear infinite;
}

.tech-circle::before,
.tech-circle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(0, 238, 255, 0.15);
    animation: rotate-circle-reverse calc(var(--speed, 40s) * 1.5) linear infinite;
}

.tech-circle::after {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border: 1px dotted rgba(170, 0, 255, 0.2);
}

@keyframes rotate-circle {
    0% {
        transform: translate(-50%, -50%) scale(var(--scale, 1)) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) scale(var(--scale, 1)) rotate(360deg);
    }
}

@keyframes rotate-circle-reverse {
    0% {
        transform: rotate(0deg);
    }

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

/* Light ray effect */
.light-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(217deg, rgba(255, 0, 170, 0.08), transparent 70%),
        linear-gradient(127deg, rgba(0, 255, 204, 0.08), transparent 70%),
        linear-gradient(336deg, rgba(0, 128, 255, 0.08), transparent 70%);
    z-index: 1;
    animation: shift-rays 20s infinite alternate;
}

@keyframes shift-rays {
    0% {
        filter: hue-rotate(0deg);
        opacity: 0.7;
    }

    100% {
        filter: hue-rotate(30deg);
        opacity: 0.9;
    }
}

/* Matrix Canvas */
#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
}

/* Colored star */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: #fff;
    border-radius: 50%;
    opacity: var(--opacity, 0.6);
    animation: star-twinkle-bg var(--duration, 4s) infinite ease-in-out;
    animation-delay: var(--delay, 0s);
    box-shadow: 0 0 var(--glow-size, 3px) var(--color, #00ffcc);
}

@keyframes star-twinkle-bg {

    0%,
    100% {
        opacity: var(--opacity, 0.6);
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Colored wave effect */
.color-waves-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.3;
}

.color-wave {
    position: absolute;
    width: 150vw;
    height: 150vw;
    border-radius: 43%;
    opacity: var(--opacity, 0.05);
    border: 2px solid var(--color, rgba(0, 255, 204, 0.3));
    top: 50%;
    left: 50%;
    transform-origin: center center;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: rotate-wave var(--duration, 60s) linear infinite;
    box-shadow: 0 0 20px var(--glow, rgba(0, 255, 204, 0.2));
}

@keyframes rotate-wave {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Light spot effect */
.light-spot {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color, rgba(0, 255, 204, 0.15)) 0%, transparent 70%);
    filter: blur(40px);
    opacity: var(--opacity, 0.2);
    animation: move-spot var(--duration, 80s) infinite ease-in-out alternate;
    animation-delay: var(--delay, 0s);
}

@keyframes move-spot {
    0% {
        transform: translate(var(--start-x, -30%), var(--start-y, -30%));
    }

    100% {
        transform: translate(var(--end-x, 30%), var(--end-y, 30%));
    }
}

/* Button style - fixed outer margin */
.cta-button,
.start-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(5px, 1.2vh, 7px) clamp(10px, 2.5vw, 16px);
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    font-weight: 600;
    color: white;
    background: linear-gradient(45deg, var(--accent-teal), var(--accent-color-2));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(170, 0, 255, 0.4);
    position: relative;
    overflow: hidden;
    margin-top: 6px;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    min-width: clamp(100px, 20vw, 130px);
}

.cta-button:hover,
.start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(170, 0, 255, 0.5);
    background: linear-gradient(45deg, var(--accent-color-5), var(--accent-purple));
}

/* Loading screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    background: linear-gradient(135deg, #000000, #050b15, #061221);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    position: relative;
    width: 280px;
    max-width: 80%;
}

/* Loading screen title container */
.loading-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.loading-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    letter-spacing: 2px;
    font-family: var(--font-mono);
    color: transparent;
    display: flex;
    justify-content: center;
}

/* Loading text style */
.loading-text {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 0.3rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fade-in 0.5s forwards;
    animation-delay: 0.1s;
}

/* Loading point animation */
.loading-dots {
    display: inline-block;
    margin-left: 2px;
}

.loading-dots .dot {
    opacity: 0;
    display: inline-block;
    animation: dot-fade 1.4s infinite;
}

.loading-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-fade {

    0%,
    60%,
    100% {
        opacity: 0;
    }

    10%,
    50% {
        opacity: 1;
    }
}

/* Character reveal animation */
.loading-title .char {
    display: inline-block;
    opacity: 0;
    color: var(--primary-color);
    text-shadow:
        0 0 2px var(--primary-color),
        0 0 8px var(--primary-color),
        0 0 12px var(--primary-color);
    animation: char-reveal 0.3s forwards;
    transform: translateY(5px);
}

/* Adjust each character delay - restore progressive display effect */
.loading-title .char:nth-child(1) {
    animation-delay: 0.1s;
}

.loading-title .char:nth-child(2) {
    animation-delay: 0.15s;
}

.loading-title .char:nth-child(3) {
    animation-delay: 0.2s;
}

.loading-title .char:nth-child(4) {
    animation-delay: 0.25s;
}

.loading-title .char:nth-child(5) {
    animation-delay: 0.3s;
}

.loading-title .char:nth-child(6) {
    animation-delay: 0.35s;
}

.loading-title .char:nth-child(7) {
    animation-delay: 0.4s;
}

.loading-title .char:nth-child(8) {
    animation-delay: 0.45s;
}

.loading-title .char:nth-child(9) {
    animation-delay: 0.5s;
}

@keyframes char-reveal {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Gradient underline effect */
.loading-line {
    width: 180px;
    height: 3px;
    margin: 0 auto 20px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    position: relative;
    transform: scaleX(0);
    opacity: 0;
    animation: line-reveal 0.6s ease-in-out forwards;
    animation-delay: 0.2s;
}

@keyframes line-reveal {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }

    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(10, 30, 30, 0.5);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    opacity: 0;
    animation: fade-in 0.4s forwards;
    animation-delay: 0.3s;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color-5), var(--primary-color));
    position: relative;
    border-radius: 3px;
    transition: width 0.05s ease-out;
}

/* Eye basic style */
.eye {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 30% 30%, #00ffcc, #00dcc7);
    border-radius: 50%;
    position: relative;
    box-shadow:
        0 0 5px #00ffcc,
        0 0 10px #00ffcc,
        0 0 15px rgba(0, 255, 204, 0.5);
    animation: blink 4s infinite;
    transition: all 0.2s ease;
    z-index: 2;
}

/* Eye hover effect */
.title-connector:hover .eye {
    width: 16px;
    height: 16px;
    box-shadow:
        0 0 8px #00ffcc,
        0 0 15px #00ffcc,
        0 0 20px rgba(0, 255, 204, 0.7);
}

/* Hover connection line effect enhancement */
.title-connector:hover::before {
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 255, 204, 0.4),
            rgba(0, 255, 204, 0.9),
            rgba(0, 255, 204, 0.4),
            transparent);
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.7);
}

/* Pupil style */
.eye::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    top: 3px;
    left: 4px;
    animation: look-around 5s infinite;
    transition: all 0.2s ease;
}

/* Left eye and right eye independent animation */
.eye:first-child::after {
    animation: look-around 5s infinite;
    animation-delay: 0.5s;
}

.eye:last-child::after {
    animation: look-around 5s infinite;
    animation-delay: 0s;
}

/* Eye blink animation */
@keyframes blink {

    0%,
    48%,
    52%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.1);
    }
}

/* Pupil rotation animation */
@keyframes look-around {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(2px, -2px);
    }

    25% {
        transform: translate(1px, 2px);
    }

    40% {
        transform: translate(-2px, 1px);
    }

    60% {
        transform: translate(-1px, -2px);
    }

    75% {
        transform: translate(2px, 0);
    }

    90% {
        transform: translate(0, -1px);
    }
}

/* High screen media query - keep elements compact */
@media (min-height: 900px) {
    .hero-section {
        gap: 8px;
        justify-content: flex-start;
    }

    .title-container {
        padding-top: 8px;
    }

    .subtitle {
        margin-bottom: 6px;
    }

    .manus-video-wrapper {
        margin: 6px auto;
    }

    .cta-button,
    .start-button {
        margin-top: 6px;
        margin-bottom: 6px;
    }
}

/* High screen media query - further control spacing */
@media (min-height: 1080px) {
    .home-container {
        justify-content: center;
    }

    .hero-section {
        max-height: 900px;
        gap: 8px;
        justify-content: flex-start;
    }
}

/* Delete old media query, keep only landscape mode media query */
@media (max-height: 500px) and (orientation: landscape) {
    .home-container {
        height: 100vh;
    }

    .hero-section {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.3rem;
        gap: 0.3rem;
    }

    .title-container {
        width: 100%;
        margin-bottom: 0;
        padding-top: 0.2rem;
    }

    .title {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

    .hero-box {
        width: min(48%, 350px);
        margin: 0;
        padding: 8px 12px;
    }

    .manus-video-wrapper {
        width: min(48%, 350px);
        margin: 0;
    }

    .subtitle {
        font-size: clamp(0.8rem, 2.5vw, 1.2rem);
        margin-bottom: 0.1rem;
    }

    .description {
        font-size: clamp(0.7rem, 1.8vw, 0.9rem);
        line-height: 1.2;
    }

    .cta-button,
    .start-button {
        padding: 4px 10px;
        font-size: clamp(0.7rem, 1.5vw, 0.8rem);
        margin: 0.2rem 0;
    }
}

/* Super small screen adaptation */
@media (max-height: 400px) or (max-width: 340px) {
    .title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .title-connector {
        gap: 40px;
    }

    .hero-box {
        padding: 5px 10px;
    }

    .subtitle {
        font-size: clamp(0.8rem, 2.5vw, 1rem);
        margin-bottom: 0;
    }

    .description {
        font-size: clamp(0.65rem, 1.6vw, 0.8rem);
        line-height: 1.2;
    }

    .manus-video-wrapper {
        margin: 0.1rem auto;
    }

    .cta-button,
    .start-button {
        padding: 3px 8px;
        font-size: clamp(0.65rem, 1.5vw, 0.75rem);
        min-width: 80px;
    }
}

/* ---------- Particle effect ---------- */
/* Particle container */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

/* Particle style */
.particle {
    position: absolute;
    width: max(2px, 0.3vw);
    height: max(2px, 0.3vw);
    background-color: var(--accent-color-5);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-blue);
    opacity: 0.6;
    animation: particle-float 5s linear forwards;
    will-change: transform;
}

@keyframes particle-float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        opacity: 0.9;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0.1;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

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