* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c0c1e 0%, #1a1a3e 50%, #0d1b2a 100%);
    color: #fff;
    min-height: 100vh;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(12, 12, 30, 0.95);
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo span:first-child {
    font-size: 2rem;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: #64b5f6;
}

section {
    padding: 6rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #64b5f6, #81c784);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.5rem;
    color: #90caf9;
    margin-bottom: 2rem;
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #b0bec5;
    margin-bottom: 3rem;
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(90deg, #64b5f6, #42a5f5);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 181, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #64b5f6;
    color: #64b5f6;
}

.btn-secondary:hover {
    background: #64b5f6;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid #64b5f6;
    color: #64b5f6;
}

.btn-outline:hover {
    background: #64b5f6;
}

a {
    position: relative;
    overflow: visible;
}

a:hover::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    pointer-events: none;
    z-index: 1000;
}

a:hover::before {
    content: '';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(90deg, transparent, rgba(100, 181, 246, 0.3), transparent);
    pointer-events: none;
    z-index: 999;
    animation: tunnelPulse 0.5s ease-in-out infinite;
}

@keyframes tunnelPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.2);
    }
}

.whale-cursor {
    position: fixed;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}

.whale-cursor.active {
    opacity: 1;
}

.nav-whale {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s;
}

nav a:hover .nav-whale {
    opacity: 1;
    right: -20px;
    animation: whaleSwim 0.8s ease-in-out infinite;
}

@keyframes whaleSwim {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg);
    }
    25% {
        transform: translateY(-55%) rotate(-5deg);
    }
    75% {
        transform: translateY(-45%) rotate(5deg);
    }
}

.tunnel-container {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 40px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

a:hover .tunnel-container {
    opacity: 1;
}

.tunnel {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    border-radius: 12px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(100, 181, 246, 0.1) 20%, 
        rgba(100, 181, 246, 0.3) 50%, 
        rgba(100, 181, 246, 0.1) 80%, 
        transparent 100%);
    box-shadow: 
        inset 0 0 10px rgba(100, 181, 246, 0.3),
        0 0 15px rgba(100, 181, 246, 0.2);
    overflow: hidden;
}

.tunnel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.5), 
        transparent);
    animation: tunnelLight 1s ease-in-out infinite;
}

@keyframes tunnelLight {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.tunnel-whale {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    animation: whaleEnterTunnel 2s ease-in-out infinite;
}

@keyframes whaleEnterTunnel {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    80% {
        transform: translateX(-50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(0.3);
        opacity: 0.5;
    }
}

.whale-container {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.whale {
    font-size: 12rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, white, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 370px 60px, white, transparent),
        radial-gradient(2px 2px at 450px 100px, rgba(255,255,255,0.8), transparent);
    background-size: 500px 200px;
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

#philosophy {
    background: rgba(26, 26, 62, 0.5);
}

#philosophy h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(100, 181, 246, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #64b5f6;
}

.card p {
    color: #b0bec5;
    line-height: 1.6;
}

#projects {
    padding: 6rem 2rem;
}

#projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(100, 181, 246, 0.2);
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
}

.project-card p {
    padding: 0 1.5rem 1.5rem;
    color: #b0bec5;
    line-height: 1.6;
}

.project-card .btn {
    margin: 0 1.5rem 1.5rem;
    width: calc(100% - 3rem);
    text-align: center;
}

#about {
    background: rgba(26, 26, 62, 0.5);
}

#about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #b0bec5;
    margin-bottom: 1.5rem;
}

.contact {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(100, 181, 246, 0.1);
    border-radius: 10px;
}

.contact p {
    margin-bottom: 0.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-detail {
    padding-top: 8rem;
    min-height: 100vh;
}

.project-detail h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
}

.project-header img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.project-content h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #64b5f6;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.2);
    border-radius: 15px;
    padding: 2rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.feature p {
    color: #b0bec5;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tech-item {
    padding: 0.8rem 1.5rem;
    background: rgba(100, 181, 246, 0.2);
    border-radius: 25px;
    color: #64b5f6;
}

.use-cases {
    list-style: none;
    padding: 0;
}

.use-cases li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(100, 181, 246, 0.2);
    color: #b0bec5;
}

.use-cases li:last-child {
    border-bottom: none;
}

.back-link {
    margin-top: 3rem;
    text-align: center;
}

footer {
    text-align: center;
    padding: 2rem;
    background: rgba(12, 12, 30, 0.95);
    color: #78909c;
}

footer .beian {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

footer .beian a {
    color: #78909c;
    text-decoration: none;
    transition: color 0.3s;
}

footer .beian a:hover {
    color: #64b5f6;
}

.hyperspace-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #0c0c1e 0%, #1a0a3e 50%, #0d1b2a 100%);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.hyperspace-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.hyperspace-vortex {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, #64b5f6 0%, #42a5f5 20%, #1e88e5 40%, #0d47a1 60%, transparent 80%);
    animation: vortex 1s ease-out forwards;
    box-shadow: 
        0 0 30px rgba(100, 181, 246, 0.5),
        0 0 60px rgba(100, 181, 246, 0.3),
        0 0 100px rgba(100, 181, 246, 0.2);
}

@keyframes vortex {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(3) rotate(360deg);
        opacity: 0;
    }
}

.hyperspace-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hyperspace-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: starZoom 0.8s ease-out forwards;
}

@keyframes starZoom {
    0% {
        transform: scale(1) translateX(0);
        opacity: 1;
    }
    100% {
        transform: scale(0) translateX(-100px);
        opacity: 0;
    }
}

.hidden-link {
    position: absolute;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 50%;
}

.hidden-link:hover {
    opacity: 0.3;
    transform: scale(1.2);
    background: rgba(100, 181, 246, 0.2);
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}

.hidden-link::after {
    content: '✨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
}

.whale-jump {
    animation: whaleJump 2s ease-in-out infinite;
}

@keyframes whaleJump {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-30px) scale(1.1);
    }
    50% {
        transform: translateY(-60px) scale(0.8);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-30px) scale(1.05);
    }
}

.dimension-ripple {
    position: fixed;
    border: 2px solid rgba(100, 181, 246, 0.5);
    border-radius: 50%;
    animation: ripple 1s ease-out forwards;
    pointer-events: none;
    z-index: 10000;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 600px;
        height: 600px;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .whale {
        font-size: 8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .project-header img {
        height: 250px;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hyperspace-vortex {
        width: 200px;
        height: 200px;
    }
}