/* fantou.art - VAPORWAVE NEON STYLES */
:root {
    --bg-deep: #0a0016;
    --bg-primary: #12002e;
    --bg-secondary: #1a0042;
    --bg-card: rgba(18, 0, 62, 0.7);
    --neon-pink: #ff2975;
    --neon-pink-light: #ff6eb4;
    --neon-cyan: #00f5ff;
    --neon-cyan-light: #7effff;
    --neon-purple: #bf00ff;
    --neon-purple-light: #e040fb;
    --neon-magenta: #ff00ff;
    --neon-blue: #4d6dff;
    --neon-yellow: #ffe600;
    --neon-orange: #ff6b35;
    --neon-green: #39ff14;
    --sunset-1: #ff2975;
    --sunset-2: #ff73b4;
    --sunset-3: #f8b500;
    --sunset-4: #ff6b35;
    --text-primary: #f0e6ff;
    --text-secondary: #b8a0d6;
    --text-dim: #7a6899;
    --font-title: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-pixel: 'Press Start 2P', cursive;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s ease;
    --transition-slow: 0.6s ease;
    --header-height: 64px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    min-height: 100vh;
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(191, 0, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 245, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 41, 117, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-primary) 40%, var(--bg-secondary) 100%);
    pointer-events: none;
    z-index: 0;
    animation: bgShift 12s ease-in-out infinite alternate;
}
@keyframes bgShift {
    0% { opacity: 1; }
    50% { opacity: 0.85; }
    100% { opacity: 1; }
}
.retro-sun {
    position: fixed;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--sunset-1) 0%, var(--sunset-2) 25%, var(--sunset-3) 50%, var(--sunset-4) 100%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.2;
    filter: blur(3px);
}
.retro-sun::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: repeating-linear-gradient(0deg, transparent 0px, transparent 8px, rgba(10, 0, 22, 0.45) 8px, rgba(10, 0, 22, 0.45) 10px);
    clip-path: inset(50% 0 0 0);
}
.synthwave-grid {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%; height: 55%;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(0deg, rgba(191, 0, 255, 0.15) 0%, transparent 60%),
        repeating-linear-gradient(90deg, rgba(191, 0, 255, 0.12) 0px, rgba(191, 0, 255, 0.12) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(0deg, rgba(0, 245, 255, 0.08) 0px, rgba(0, 245, 255, 0.08) 1px, transparent 1px, transparent 60px);
    transform: perspective(500px) rotateX(50deg);
    transform-origin: bottom center;
    animation: gridScroll 3s linear infinite;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 80%);
}
@keyframes gridScroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 60px; }
}
.scanlines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 0, 0, 0.06) 3px, rgba(0, 0, 0, 0.06) 6px);
}
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    animation: floatUp linear infinite;
    opacity: 0.6;
}
@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.7; }
    80% { opacity: 0.5; }
    100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: rgba(10, 0, 22, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(191, 0, 255, 0.2);
    box-shadow: 0 0 15px rgba(191, 0, 255, 0.1), 0 2px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}
.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo-icon {
    font-size: 1.6rem;
    animation: iconBounce 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--neon-pink));
}
@keyframes iconBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(-5deg); }
    75% { transform: translateY(-3px) rotate(5deg); }
}
.logo-text {
    font-family: var(--font-title);
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple), var(--neon-cyan));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGradient 4s ease infinite;
}
@keyframes logoGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.language-switcher { display: flex; gap: 0.3rem; z-index: 10; }
.lang-btn {
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--neon-cyan);
    background: transparent;
    color: var(--neon-cyan);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-fast);
}
.lang-btn:hover {
    background: rgba(0, 245, 255, 0.15);
    box-shadow: 0 0 12px rgba(0, 245, 255, 0.4);
}
.lang-btn.active {
    background: var(--neon-cyan);
    color: var(--bg-deep);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
}
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--neon-cyan);
    border-radius: 2px;
    transition: all var(--transition-fast);
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.main-content {
    padding-top: var(--header-height);
    position: relative;
    z-index: 2;
}
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}
.hero-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 6px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple), var(--neon-cyan), var(--neon-pink));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroGradient 6s ease infinite;
    filter: drop-shadow(0 0 20px rgba(191, 0, 255, 0.4));
}
@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    max-width: 600px;
}
.hero-neon-line {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-pink), var(--neon-purple), var(--neon-cyan), transparent);
    margin: 1.5rem auto;
    box-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-purple);
    animation: linePulse 2s ease-in-out infinite;
}
@keyframes linePulse {
    0%, 100% { opacity: 0.7; width: 200px; }
    50% { opacity: 1; width: 250px; }
}
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}
.scroll-arrow {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
.section-title {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5), 0 0 20px rgba(0, 245, 255, 0.3);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple), var(--neon-cyan));
    margin: 1rem auto 0;
    box-shadow: 0 0 8px var(--neon-purple);
}
/* About section */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.about-highlight {
    color: var(--neon-pink);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 41, 117, 0.3);
}
/* Social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--neon-purple);
    background: var(--bg-card);
    color: var(--neon-purple-light);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    backdrop-filter: blur(8px);
}
.social-link:hover {
    background: rgba(191, 0, 255, 0.2);
    box-shadow: 0 0 20px rgba(191, 0, 255, 0.4), inset 0 0 20px rgba(191, 0, 255, 0.1);
    transform: translateY(-3px);
    color: var(--neon-magenta);
}
.social-link .icon { font-size: 1.2rem; }
/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(191, 0, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255, 41, 117, 0.05) 0%, transparent 50%, rgba(0, 245, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-purple);
    box-shadow:
        0 8px 30px rgba(191, 0, 255, 0.2),
        0 0 15px rgba(191, 0, 255, 0.1),
        inset 0 0 15px rgba(191, 0, 255, 0.05);
}
.project-card:hover::before { opacity: 1; }
.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 8px var(--neon-purple));
}
.project-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
}
.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.project-tag {
    padding: 0.2rem 0.6rem;
    background: rgba(191, 0, 255, 0.15);
    border: 1px solid rgba(191, 0, 255, 0.3);
    border-radius: 12px;
    font-size: 0.7rem;
    color: var(--neon-purple-light);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--neon-pink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--neon-pink);
    border-radius: 4px;
    background: transparent;
}
.project-link:hover {
    background: rgba(255, 41, 117, 0.15);
    box-shadow: 0 0 12px rgba(255, 41, 117, 0.4);
    color: var(--neon-pink-light);
}
/* Games section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.game-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}
.game-card::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px;
    right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple), var(--neon-cyan), var(--neon-pink));
    background-size: 400% 400%;
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    animation: borderGlow 4s ease infinite;
    transition: opacity var(--transition-normal);
}
.game-card:hover::after { opacity: 0.5; }
@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--neon-cyan);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.2);
}
.game-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    display: block;
}
.game-card-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}
.game-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.game-play-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 41, 117, 0.3);
}
.game-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 41, 117, 0.5), 0 0 40px rgba(191, 0, 255, 0.3);
}
/* Contact section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.contact-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--neon-cyan);
    background: var(--bg-card);
    color: var(--neon-cyan);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all var(--transition-normal);
    backdrop-filter: blur(8px);
}
.contact-link:hover {
    background: rgba(0, 245, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
    transform: translateY(-3px);
    color: var(--neon-cyan-light);
}
/* Footer */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(191, 0, 255, 0.15);
    color: var(--text-dim);
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}
.footer-text {
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}
.footer-year {
    color: var(--neon-purple);
    font-weight: 700;
}
.footer-tagline {
    font-size: 0.75rem;
    color: var(--text-dim);
    opacity: 0.6;
    letter-spacing: 2px;
    text-transform: uppercase;
}
/* Glitch effect for special text */
.glitch {
    position: relative;
    display: inline-block;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.glitch::before {
    animation: glitch1 2s infinite;
    color: var(--neon-cyan);
    clip-path: inset(0 0 60% 0);
    z-index: 1;
}
.glitch::after {
    animation: glitch2 2s infinite;
    color: var(--neon-pink);
    clip-path: inset(40% 0 0 0);
    z-index: 1;
}
@keyframes glitch1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, -1px); }
}
@keyframes glitch2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(-2px, 2px); }
    60% { transform: translate(1px, -1px); }
    80% { transform: translate(-1px, 1px); }
}
/* Neon text utility */
.neon-text {
    text-shadow:
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 40px currentColor;
}
/* Responsive design */
@media (max-width: 768px) {
    .header { padding: 0 1rem; }
    .logo-text { font-size: 0.9rem; letter-spacing: 2px; }
    .mobile-menu-btn { display: flex; }
    .language-switcher {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(10, 0, 22, 0.95);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid rgba(191, 0, 255, 0.2);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: 999;
    }
    .language-switcher.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .hero-title { font-size: 2rem; letter-spacing: 3px; }
    .hero-subtitle { font-size: 1rem; }
    .section { padding: 3rem 1rem; }
    .section-title { font-size: 1.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .games-grid { grid-template-columns: 1fr; }
    .retro-sun { width: 200px; height: 200px; bottom: 8%; }
    .synthwave-grid { height: 45%; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.5rem; }
    .logo-text { font-size: 0.8rem; }
    .social-links { flex-direction: column; align-items: center; }
    .contact-links { flex-direction: column; align-items: center; }
}
/* Animations on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}
/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-pink), var(--neon-purple));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-pink-light), var(--neon-purple-light));
}
/* Selection color */
::selection {
    background: rgba(191, 0, 255, 0.3);
    color: var(--text-primary);
}
::-moz-selection {
    background: rgba(191, 0, 255, 0.3);
    color: var(--text-primary);
}