/* Homeセクションの動画サイズ調整 */
#home #bg-video {
    width: 100vw;
    height: 100vh;
    max-width: 1920px;
    max-height: 900px;
    object-fit: cover;
}

@media (max-width: 768px) {
    #home #bg-video {
        width: 100vw;
        height: 60vh;
        max-height: 420px;
    }
}

@media (max-width: 430px) {
    #home #bg-video {
        height: 38vh;
        max-height: 220px;
    }
}

.songs-profile-card.songs-ryuya-card {
    min-height: 340px;
    max-width: 400px;
    padding: 1.2rem 0.7rem;
}

@media (max-width: 600px) {
    .songs-profile-card.songs-ryuya-card {
        min-height: 200px;
        max-width: 98vw;
        padding: 0.5rem 0.1rem;
    }
}

/* --- SONGS カード専用調整 --- */
.songs-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .songs-card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.songs-profile-card {
    min-height: 480px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1.2rem;
    box-sizing: border-box;
}

.songs-profile-card .spotify-embed-album {
    margin-bottom: 1.2rem;
}

.songs-profile-card iframe[data-testid="embed-iframe"] {
    width: 100% !important;
    min-height: 120px;
    max-height: 352px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(124, 77, 255, 0.10);
}

@media (max-width: 600px) {
    .songs-profile-card {
        min-height: 320px;
        padding: 1.2rem 0.3rem;
    }

    .songs-profile-card iframe[data-testid="embed-iframe"] {
        min-height: 100px;
        max-height: 220px;
    }
}

:root {
    --bg-color: #05050a;
    --primary-color: #7c4dff;
    --accent-color: #00e0ff;
    --header-height: 70px;
    --text-color: #e0e0e0;
    --card-bg: rgba(15, 15, 30, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-start: #8a2be2;
    --gradient-end: #00bfff;
    --bg-art1: linear-gradient(120deg, #23243a 0%, #3a2c4d 40%, #1a1a2e 100%);
    --bg-art2: radial-gradient(circle at 60% 40%, rgba(124, 77, 255, 0.18) 0%, transparent 60%);
    --card-glow: 0 0 40px rgba(124, 77, 255, 0.18);
    --card-blur: blur(12px);
    --card-gradient: linear-gradient(120deg, #23243a 0%, #7c4dff 100%);
    --card-border: 1.5px solid rgba(255, 255, 255, 0.08);
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;

    /* Responsive font sizes (アップ調整) */
    --font-xs: clamp(0.85rem, 2vw, 1rem);
    --font-sm: clamp(1rem, 2.5vw, 1.125rem);
    --font-base: clamp(1.125rem, 3vw, 1.25rem);
    --font-lg: clamp(1.25rem, 3.5vw, 1.375rem);
    --font-xl: clamp(1.5rem, 4vw, 1.75rem);
    --font-2xl: clamp(1.75rem, 5vw, 2.25rem);
    --font-3xl: clamp(2.25rem, 6vw, 3.25rem);
    --font-4xl: clamp(2.75rem, 7vw, 4.5rem);
    --font-5xl: clamp(3.5rem, 8vw, 5.5rem);
}

/* Responsive breakpoints */
@media (min-width: 1920px) {
    :root {
        --header-height: 88px;
    }
}

/* Global styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* iPhone 14 Pro Max, 15 Pro Max, 16 Pro Max, 17 Pro Max (430px width) */
@media (max-width: 430px) {
    html {
        font-size: 15px;
    }
}

/* Standard smartphones */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

/* Tablets and iPad */
@media (min-width: 769px) and (max-width: 1024px) {
    html {
        font-size: 16px;
    }
}

/* Large screens and 4K displays */
@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }
}

/* Ultra-wide and 5K+ displays */
@media (min-width: 2560px) {
    html {
        font-size: 20px;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.7;
    font-size: 1em;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.1), 0 0 2px rgba(255, 255, 255, 0.05);
    background-image:
        radial-gradient(circle at 12% 25%, rgba(124, 77, 255, 0.12), transparent 40%),
        radial-gradient(circle at 88% 70%, rgba(0, 224, 255, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(5, 5, 10, 1) 0%, rgba(8, 8, 16, 1) 100%);
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.55), transparent 45%),
        radial-gradient(circle at 70% 50%, rgba(0, 0, 0, 0.6), transparent 50%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.96) 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0.85;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: clamp(6px, 1vw, 10px);
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* --- Header --- */
header {
    background-color: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    padding: clamp(0.75rem, 2vw, 1.5rem) clamp(1rem, 3vw, 3rem);
}

header.scrolled {
    background-color: rgba(10, 10, 20, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.site-logo {
    font-size: clamp(1.3rem, 4.5vw, 1.8rem) !important;
    font-weight: 700;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease, box-shadow 0.3s ease;
    font-size: clamp(0.9rem, 2.7vw, 1rem) !important;
    padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
    .nav-link {
        font-size: var(--font-lg);
        padding: 0.75rem 1rem;
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(-50%);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-link.active,
.nav-link:hover {
    color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
}

/* --- Section Styles --- */
.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 6vw, 3.6rem) !important;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 8px 30px rgba(124, 77, 255, 0.12));
    letter-spacing: clamp(0.05em, 0.5vw, 0.1em);
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.8rem, 5.2vw, 2.6rem) !important;
    }
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    }

    5% {
        opacity: 0.95;
        text-shadow: 0 0 18px var(--primary-color), 0 0 38px var(--primary-color);
    }

    10% {
        opacity: 1;
        text-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    }

    15% {
        opacity: 0.97;
        text-shadow: 0 0 19px var(--primary-color), 0 0 39px var(--primary-color);
    }

    20% {
        opacity: 1;
        text-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    }

    25% {
        opacity: 0.96;
        text-shadow: 0 0 18px var(--primary-color), 0 0 38px var(--primary-color);
    }

    30% {
        opacity: 1;
        text-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    }

    35% {
        opacity: 0.98;
        text-shadow: 0 0 19px var(--primary-color), 0 0 39px var(--primary-color);
    }

    40% {
        opacity: 1;
        text-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    }

    45% {
        opacity: 0.95;
        text-shadow: 0 0 18px var(--primary-color), 0 0 38px var(--primary-color);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    }

    55% {
        opacity: 0.97;
        text-shadow: 0 0 19px var(--primary-color), 0 0 39px var(--primary-color);
    }

    60% {
        opacity: 1;
        text-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    }

    65% {
        opacity: 0.96;
        text-shadow: 0 0 18px var(--primary-color), 0 0 38px var(--primary-color);
    }

    70% {
        opacity: 1;
        text-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    }

    75% {
        opacity: 0.98;
        text-shadow: 0 0 19px var(--primary-color), 0 0 39px var(--primary-color);
    }

    80% {
        opacity: 1;
        text-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    }

    85% {
        opacity: 0.95;
        text-shadow: 0 0 18px var(--primary-color), 0 0 38px var(--primary-color);
    }

    90% {
        opacity: 1;
        text-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
    }

    95% {
        opacity: 0.97;
        text-shadow: 0 0 19px var(--primary-color), 0 0 39px var(--primary-color);
    }
}

/* --- Profile Cards --- */
.profile-card {
    background: var(--card-gradient);
    border: var(--card-border);
    box-shadow: var(--card-glow);
    backdrop-filter: var(--card-blur);
    transition: transform 0.4s cubic-bezier(.4, 2, .3, 1), box-shadow 0.4s cubic-bezier(.4, 2, .3, 1);
    position: relative;
    overflow: hidden;
    border-radius: clamp(0.75rem, 2vw, 1.5rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.profile-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.5);
}

.profile-card .glow {
    position: absolute;
    width: clamp(100px, 20vw, 150px);
    height: clamp(100px, 20vw, 150px);
    background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, rgba(138, 43, 226, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

.profile-card:hover .glow {
    opacity: 1;
}

.profile-photo {
    border: 2px solid var(--primary-color);
}

.profile-card h3 {
    font-size: var(--font-xl);
    margin-bottom: 0.5rem;
}

.profile-card p {
    font-size: var(--font-xs);
    line-height: 1.6;
}

/* --- SNS Cards (general) --- */
.sns-card {
    background: var(--card-gradient);
    border: var(--card-border);
    box-shadow: var(--card-glow);
    backdrop-filter: var(--card-blur);
    transition: transform 0.36s cubic-bezier(.4, 2, .3, 1), box-shadow 0.36s cubic-bezier(.4, 2, .3, 1), background-color 0.3s ease;
    padding: 2.2rem 1.6rem;
    border-radius: 1.2rem;
}

.sns-card h3 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
}

.sns-card p {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0.9rem;
}

.sns-card .hero-cta {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
}

.sns-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Platform handle under icon */
.platform-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.platform-icon i,
.platform-icon .app-badge {
    margin-bottom: 0.4rem;
}

.platform-handle {
    display: inline-block;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.platform-handle:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

/* --- App Icon (for official app icons like note / TALES) --- */
.app-badge {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem auto;
    border-radius: 12px;
    /* rounded rectangle like app icons */
    background: #ffffff;
    /* white background per request */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #000000;
}

.app-badge--note {
    color: #2CB696;
    font-size: 36px;
}

.app-badge--tales {
    color: #8677E9;
    font-size: 14px;
    letter-spacing: 1px;
}


/* --- Spotify Embed --- */
.spotify-embed {
    /* border: 1px solid var(--border-color); */
    /* Removed border */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.spotify-embed:hover {
    transform: scale(1.02);
    /* Reduced scale from 1.05 */
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.5);
}

/* --- Note Card --- */
.note-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.note-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* --- TALES Card --- */
.tales-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.tales-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* --- Animation --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    /* Added subtle scale */
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Transition to scale 1 */

/* Hero styles */
.hero-cta {
    display: inline-block;
    padding: clamp(0.6rem, 2vw, 1rem) clamp(1rem, 3vw, 2rem);
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(124, 77, 255, 0.12);
    letter-spacing: 0.5px;
    font-family: var(--font-sans);
    font-size: var(--font-base);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.hero-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(124, 77, 255, 0.25);
}

@media (max-width: 768px) {
    .hero-cta {
        font-size: var(--font-sm);
        padding: 0.7rem 1.5rem;
    }
}

/* Page transition overlay for cut/slice effect */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
    background: transparent;
    display: none;
}

.page-transition-overlay.active {
    display: block;
}

header a {
    transition: color 0.2s ease, transform 0.18s ease;
}

header a:hover {
    transform: translateY(-2px);
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
    color: var(--text-color);
    /* Adjust as needed */
    /* overflow: hidden; */
    /* Removed overflow hidden */
}

.glitch.glitch-active::before,
.glitch.glitch-active::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: var(--bg-color); */
    /* Removed background */
    /* overflow: hidden; */
    /* Removed overflow hidden */
    /* clip: rect(0, 900px, 0, 0); */
    /* Removed clip */
    opacity: 0.8;
    /* Subtle opacity change */
}

.glitch.glitch-active::before {
    left: -1px;
    /* Subtle shift */
    text-shadow: 1px 0 0 var(--primary-color);
    animation: glitch-anim-subtle-1 0.3s linear infinite alternate-reverse;
    /* New animation */
}

.glitch.glitch-active::after {
    left: 1px;
    /* Subtle shift */
    text-shadow: -1px 0 0 var(--accent-color);
    animation: glitch-anim-subtle-2 0.3s linear infinite alternate-reverse;
    /* New animation */
}

@keyframes glitch-anim-subtle-1 {
    0% {
        transform: translateX(0.5px) translateY(0.5px);
        opacity: 0.8;
    }

    50% {
        transform: translateX(-0.5px) translateY(-0.5px);
        opacity: 0.7;
    }

    100% {
        transform: translateX(0.5px) translateY(0.5px);
        opacity: 0.8;
    }
}

@keyframes glitch-anim-subtle-2 {
    0% {
        transform: translateX(-0.5px) translateY(-0.5px);
        opacity: 0.8;
    }

    50% {
        transform: translateX(0.5px) translateY(0.5px);
        opacity: 0.7;
    }

    100% {
        transform: translateX(-0.5px) translateY(-0.5px);
        opacity: 0.8;
    }
}

/* Glitch on hover for interactive elements */
.glitch-on-hover:hover {
    animation: none;
    /* Disable original glitch animation */
}

.glitch-on-hover:hover::before {
    animation: glitch-anim-subtle-1 0.3s infinite linear alternate-reverse;
}

/* Glitch on hover for interactive elements */
.glitch-on-hover:hover {
    animation: none;
    /* Disable original glitch animation */
}

.glitch-on-hover:hover::before {
    animation: glitch-anim-subtle-1 0.3s infinite linear alternate-reverse;
}

.glitch-on-hover:hover::after {
    animation: glitch-anim-subtle-2 0.3s infinite linear alternate-reverse;
}

.glitch-on-hover:hover::after {
    animation: glitch-anim-subtle-2 0.3s infinite linear alternate-reverse;
}

/* Initial Glitch for Ryuya on Load */
.glitch-initial {
    position: relative;
    display: inline-block;
    color: var(--text-color);
    overflow: hidden;
    /* Keep overflow hidden for clipping */
}

.glitch-initial::before,
.glitch-initial::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    /* Cover original text */
    overflow: hidden;
}

.glitch-initial::before {
    left: -2px;
    text-shadow: 1px 0 0 var(--primary-color);
    animation: glitch-initial-anim-1 0.8s linear infinite alternate-reverse;
}

.glitch-initial::after {
    left: 2px;
    text-shadow: -1px 0 0 var(--accent-color);
    animation: glitch-initial-anim-2 0.8s linear infinite alternate-reverse;
}

@keyframes glitch-initial-anim-1 {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
        transform: skew(-0.5deg);
    }

    10% {
        clip: rect(10px, 9999px, 40px, 0);
        transform: skew(0.8deg);
    }

    20% {
        clip: rect(50px, 9999px, 20px, 0);
        transform: skew(-1.2deg);
    }

    30% {
        clip: rect(20px, 9999px, 60px, 0);
        transform: skew(0.3deg);
    }

    40% {
        clip: rect(70px, 9999px, 30px, 0);
        transform: skew(-0.7deg);
    }

    50% {
        clip: rect(40px, 9999px, 80px, 0);
        transform: skew(1.0deg);
    }

    60% {
        clip: rect(90px, 9999px, 50px, 0);
        transform: skew(-0.4deg);
    }

    70% {
        clip: rect(60px, 9999px, 90px, 0);
        transform: skew(0.6deg);
    }

    80% {
        clip: rect(100px, 9999px, 70px, 0);
        transform: skew(-0.9deg);
    }

    90% {
        clip: rect(80px, 9999px, 110px, 0);
        transform: skew(0.2deg);
    }

    100% {
        clip: rect(110px, 9999px, 100px, 0);
        transform: skew(0.3deg);
    }
}

@keyframes glitch-initial-anim-2 {
    0% {
        clip: rect(10px, 9999px, 30px, 0);
        transform: skew(0.7deg);
    }

    10% {
        clip: rect(40px, 9999px, 10px, 0);
        transform: skew(-0.4deg);
    }

    20% {
        clip: rect(20px, 9999px, 50px, 0);
        transform: skew(1.0deg);
    }

    30% {
        clip: rect(60px, 9999px, 20px, 0);
        transform: skew(-0.8deg);
    }

    40% {
        clip: rect(30px, 9999px, 70px, 0);
        transform: skew(0.5deg);
    }

    50% {
        clip: rect(80px, 9999px, 40px, 0);
        transform: skew(-1.1deg);
    }

    60% {
        clip: rect(50px, 9999px, 90px, 0);
        transform: skew(0.9deg);
    }

    70% {
        clip: rect(90px, 9999px, 60px, 0);
        transform: skew(-0.2deg);
    }

    80% {
        clip: rect(70px, 9999px, 100px, 0);
        transform: skew(0.4deg);
    }

    90% {
        clip: rect(110px, 9999px, 80px, 0);
        transform: skew(-0.6deg);
    }

    100% {
        clip: rect(100px, 9999px, 110px, 0);
        transform: skew(0.3deg);
    }
}

/* Ryuya Title Animation */
.ryuya-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(120deg);
    /* Increased values */
    filter: blur(5px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, filter 0.4s ease-out;
    /* Reduced duration */
    transition-delay: calc(var(--char-index) * 0.04s + 0.3s);
    /* Adjusted delay */
    font-family: 'Inter', sans-serif;
    /* 変更 */
}

.ryuya-animate .ryuya-char {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    filter: blur(0);
}

/* グリッチエフェクトと組み合わせる場合 */
.ryuya-animate .ryuya-char.glitch-active::before,
.ryuya-animate .ryuya-char.glitch-active::after {
    /* 既存のグリッチアニメーションを適用 */
    animation: glitch-anim-1 0.3s linear infinite alternate-reverse, glitch-anim-2 0.3s linear infinite alternate-reverse;
}

.ryuya-animate {
    animation: dynamic-text-effect 4s infinite alternate;
    /* Apply the new animation */
}

@keyframes dynamic-text-effect {

    0%,
    100% {
        text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--accent-color);
        transform: translateY(0px);
    }

    25% {
        text-shadow: 0 0 12px var(--primary-color), 0 0 25px var(--accent-color);
        transform: translateY(-1px);
    }

    50% {
        text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--accent-color);
        transform: translateY(0px);
    }

    75% {
        text-shadow: 0 0 8px var(--primary-color), 0 0 15px var(--accent-color);
        transform: translateY(1px);
    }
}

/* Scanline Overlay */
#scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    /* Below cursor, above background */
    background: repeating-linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 2px);
}

#main-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

#main-content.main-content-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure fixed header doesn't overlap content */
main,
#main-content {
    padding-top: var(--header-height);
}

/* Site logo styling */
.site-logo {
    font-family: 'Noto Serif JP', serif;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: var(--font-xl);
    letter-spacing: 0.6px;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-logo:hover {
    transform: translateY(-3px);
    opacity: 0.95;
}

/* Mobile nav tweaks */
.mobile-nav-link {
    color: var(--text-color);
    transition: color 0.18s ease, transform 0.18s ease;
    font-size: var(--font-xl);
    padding: 1rem 0;
}

.mobile-nav-link:hover {
    color: var(--accent-color);
    transform: translateX(6px);
}

/* Container responsive padding */
.container {
    max-width: 100vw;
    padding-left: clamp(0.5rem, 4vw, 2.5rem);
    padding-right: clamp(0.5rem, 4vw, 2.5rem);
    box-sizing: border-box;
}

/* Section responsive spacing */
section {
    padding-top: clamp(2rem, 6vw, 4rem);
    padding-bottom: clamp(2rem, 6vw, 4rem);
}

/* Responsive breakpoints */
@media (max-width: 640px) {

    main,
    #main-content {
        padding-top: 60px;
    }

    .site-logo {
        font-size: var(--font-xl);
    }

    .profile-card {
        padding: 1.1rem;
        max-width: 99vw;
    }

    .songs-profile-card {
        padding: 1rem 0.5rem;
        max-width: 99vw;
    }

    .hero-cta {
        padding: 0.85rem 1.2rem;
        font-size: 1.1rem;
    }

    h1,
    .section-title {
        font-size: clamp(2rem, 8vw, 2.5rem) !important;
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }

    h3 {
        font-size: clamp(1.2rem, 5vw, 1.5rem) !important;
    }

    p,
    li,
    .text-base,
    .text-sm,
    .text-xs {
        font-size: clamp(1.05rem, 4vw, 1.15rem) !important;
    }
}

/* iPhone SE and smaller devices */
@media (max-width: 390px) {
    .site-logo {
        font-size: 1.1rem;
    }

    .profile-card {
        padding: 1.25rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .sns-card {
        padding: clamp(1rem, 2vw, 1.2rem);
    }

    .sns-card h3 {
        font-size: var(--font-xl);
    }

    section {
        padding-top: clamp(1.5rem, 4vw, 3rem);
        padding-bottom: clamp(1.5rem, 4vw, 3rem);
    }

    .profile-card {
        padding: 1.2rem;
        max-width: 98vw;
    }

    .songs-profile-card {
        padding: 1.1rem 0.7rem;
        max-width: 98vw;
    }

    h1,
    .section-title {
        font-size: clamp(2.2rem, 7vw, 2.8rem) !important;
    }

    h2 {
        font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
    }

    h3 {
        font-size: clamp(1.3rem, 4vw, 1.7rem) !important;
    }

    p,
    li,
    .text-base,
    .text-sm,
    .text-xs {
        font-size: clamp(1.1rem, 3vw, 1.2rem) !important;
    }
}

/* iPad and tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        font-size: 17px;
    }

    .flex.flex-col {
        gap: 1.1rem;
    }

    .container {
        max-width: 97vw;
        padding-left: clamp(1rem, 4vw, 2.5rem);
        padding-right: clamp(1rem, 4vw, 2.5rem);
    }

    .profile-card {
        padding: 1.5rem;
        max-width: 97vw;
    }

    .songs-profile-card {
        padding: 1.3rem 1rem;
        max-width: 97vw;
    }

    h1,
    .section-title {
        font-size: clamp(2.5rem, 6vw, 3.2rem) !important;
    }

    h2 {
        font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
    }

    h3 {
        font-size: clamp(1.5rem, 3vw, 2rem) !important;
    }

    p,
    li,
    .text-base,
    .text-sm,
    .text-xs {
        font-size: clamp(1.15rem, 2vw, 1.25rem) !important;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1100px;
        max-width: 1200px;
    }

    .max-w-6xl {
        max-width: 1280px;
    }

    .sns-card {
        padding: clamp(1.5rem, 3vw, 2rem);
    }

    .sns-card h3 {
        font-size: var(--font-2xl);
    }

    .sns-card:hover {
        transform: translateY(-14px) scale(1.02);
    }
}

/* ===== Loading Screen Styles ===== */
#loading-screen {
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border: 4px solid rgba(124, 77, 255, 0.2);
    border-top: 4px solid #7c4dff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

/* ===== Scroll Progress Bar ===== */
#scroll-progress {
    box-shadow: 0 0 10px rgba(124, 77, 255, 0.5);
}

/* ===== Back to Top Button ===== */
#back-to-top {
    backdrop-filter: blur(10px);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(124, 77, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(124, 77, 255, 0.8);
    }
}

#back-to-top:hover {
    box-shadow: 0 0 30px rgba(124, 77, 255, 1);
}

/* ===== Enhanced Card Hover Effects ===== */
.profile-card,
.sns-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-card:hover,
.sns-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(124, 77, 255, 0.3), 0 0 80px rgba(124, 77, 255, 0.2);
}

/* ===== Smooth Button Animations ===== */
.hero-cta {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-cta:hover::before {
    width: 300px;
    height: 300px;
}

.hero-cta:active {
    transform: scale(0.95);
}

/* ===== Accessibility Improvements ===== */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Performance Optimizations ===== */
img,
iframe {
    content-visibility: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-rendering: optimizeLegibility;
}

p {
    text-rendering: optimizeSpeed;
}

/* ===== PREMIUM QUALITY ENHANCEMENTS ===== */

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-base {
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.glitch-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text:hover .glitch-layer:nth-child(1) {
    animation: glitch1 0.3s infinite;
    color: #ff00ff;
    opacity: 0.8;
}

.glitch-text:hover .glitch-layer:nth-child(2) {
    animation: glitch2 0.3s infinite;
    color: #00ffff;
    opacity: 0.8;
}

@keyframes glitch1 {

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

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

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

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

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

@keyframes glitch2 {

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

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

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

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

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

/* Animated Gradient Text */
.gradient-text-animated {
    background: linear-gradient(90deg, #7c4dff, #00e0ff, #ff00ff, #7c4dff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Text Shadow Glow */
.text-shadow-glow {
    text-shadow: 0 0 20px rgba(124, 77, 255, 0.5),
        0 0 40px rgba(124, 77, 255, 0.3),
        0 0 60px rgba(124, 77, 255, 0.2);
}

/* Pulse Text */
.pulse-text {
    animation: text-pulse 2s ease-in-out infinite;
}

@keyframes text-pulse {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 1;
    }
}

/* Floating Particles */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.8), transparent);
    border-radius: 50%;
    animation: float-particle 10s infinite ease-in-out;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 12s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 3s;
    animation-duration: 11s;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

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

/* Audio Wave Visualization */
.audio-wave-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 60px;
    opacity: 0.6;
}

.audio-bar {
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #7c4dff, #00e0ff);
    border-radius: 2px;
    animation: audio-wave 1.2s ease-in-out infinite;
}

.audio-bar:nth-child(1) {
    animation-delay: 0s;
}

.audio-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.audio-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.audio-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.audio-bar:nth-child(5) {
    animation-delay: 0.2s;
}

.audio-bar:nth-child(6) {
    animation-delay: 0.1s;
}

.audio-bar:nth-child(7) {
    animation-delay: 0s;
}

@keyframes audio-wave {

    0%,
    100% {
        height: 20px;
        opacity: 0.5;
    }

    50% {
        height: 50px;
        opacity: 1;
    }
}

/* Premium Button with Shine Effect */
.premium-btn,
.premium-btn-outline {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-shine {
    position: absolute;
    top: -50%;
    left: -100%;
    width: 30%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s;
}

.premium-btn:hover .btn-shine,
.premium-btn-outline:hover .btn-shine {
    left: 150%;
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* Parallax Effect */
[data-parallax] {
    transition: transform 0.1s ease-out;
}

/* Premium Card Shine */
.profile-card::after,
.sns-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
}

.profile-card:hover::after,
.sns-card:hover::after {
    opacity: 1;
    animation: card-shine 2s ease-in-out infinite;
}

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

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

/* Smooth Page Transitions */
body.page-transition {
    animation: page-fade-in 0.8s ease-out;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Spotify Embed */
.spotify-embed {
    position: relative;
    overflow: visible;
}

.spotify-embed::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #7c4dff, #00e0ff, #ff00ff);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.spotify-embed:hover::before {
    opacity: 0.3;
    animation: border-glow 2s ease-in-out infinite;
}

@keyframes border-glow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.5);
    }
}

/* Refined Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Ultra-smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Premium gradient backgrounds */
.premium-gradient-bg {
    background:
        radial-gradient(circle at 20% 30%, rgba(124, 77, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 224, 255, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #05050a 0%, #0a0a14 100%);
}

/* Micro-interactions */
button,
a,
.interactive {
    transform: translateZ(0);
    backface-visibility: hidden;
}

button:active,
a:active {
    transform: scale(0.98);
}

/* Enhanced focus states */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.2);
}

/* ===== ULTRA PREMIUM ENHANCEMENTS ===== */

/* 3D Card Tilt Effect */
.premium-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.premium-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
}

/* Dynamic Glow on Hover */
.premium-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #7c4dff, #00e0ff, #7c4dff);
    background-size: 400% 400%;
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.6s ease;
    animation: gradient-border 3s ease infinite;
}

.premium-card:hover::before {
    opacity: 0.6;
    filter: blur(15px);
}

@keyframes gradient-border {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Magnetic Button Effect */
.hero-cta,
.premium-btn {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.hero-cta::after,
.premium-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-cta:active::after,
.premium-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Text Reveal Animation */
.text-reveal {
    position: relative;
    overflow: hidden;
}

.text-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 77, 255, 0.5), transparent);
    animation: text-reveal 3s infinite;
}

@keyframes text-reveal {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Enhanced Particle Effects */
.particle {
    filter: blur(1px);
    box-shadow: 0 0 10px rgba(124, 77, 255, 0.8),
        0 0 20px rgba(124, 77, 255, 0.6),
        0 0 30px rgba(124, 77, 255, 0.4);
}

/* Holographic Effect */
.holographic {
    background: linear-gradient(45deg,
            #7c4dff 0%,
            #00e0ff 25%,
            #7c4dff 50%,
            #ff00ff 75%,
            #7c4dff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographic 6s ease infinite;
}

@keyframes holographic {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Scanline Effect */
.scanline {
    position: relative;
}

.scanline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(124, 77, 255, 0.5);
    box-shadow: 0 0 10px rgba(124, 77, 255, 0.8);
    animation: scanline 4s linear infinite;
}

@keyframes scanline {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Neon Text Effect */
.neon-text {
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #7c4dff,
        0 0 40px #7c4dff,
        0 0 80px #7c4dff,
        0 0 90px #7c4dff,
        0 0 100px #7c4dff,
        0 0 150px #7c4dff;
    animation: neon-flicker 1.5s infinite alternate;
}

@keyframes neon-flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow:
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 20px #7c4dff,
            0 0 40px #7c4dff,
            0 0 80px #7c4dff,
            0 0 90px #7c4dff,
            0 0 100px #7c4dff,
            0 0 150px #7c4dff;
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

/* Morphing Border */
.morphing-border {
    position: relative;
    border: none;
}

.morphing-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, #7c4dff, #00e0ff, #ff00ff, #7c4dff);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: morphing-border 4s linear infinite;
}

@keyframes morphing-border {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Liquid Background */
.liquid-bg {
    background: linear-gradient(45deg, #7c4dff, #00e0ff);
    background-size: 400% 400%;
    animation: liquid 15s ease infinite;
}

@keyframes liquid {

    0%,
    100% {
        background-position: 0% 50%;
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        background-position: 100% 50%;
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Pulse Ring Effect */
.pulse-ring {
    position: relative;
}

.pulse-ring::before,
.pulse-ring::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid #7c4dff;
    border-radius: inherit;
    opacity: 0;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pulse-ring::after {
    animation-delay: 1s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }

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

/* Crystal Shimmer */
.crystal-shimmer {
    position: relative;
    overflow: hidden;
}

.crystal-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    transform: rotate(45deg);
    animation: crystal-shimmer 3s infinite;
}

@keyframes crystal-shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Depth Shadow */
.depth-shadow {
    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.15),
        0 2px 2px rgba(0, 0, 0, 0.15),
        0 4px 4px rgba(0, 0, 0, 0.15),
        0 8px 8px rgba(0, 0, 0, 0.15),
        0 16px 16px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(124, 77, 255, 0.3);
}

/* Performance optimizations for animations */
@media (prefers-reduced-motion: reduce) {

    .premium-card,
    .hero-cta,
    .premium-btn,
    .particle,
    .holographic,
    .scanline,
    .neon-text,
    .morphing-border,
    .liquid-bg,
    .pulse-ring,
    .crystal-shimmer {
        animation: none !important;
        transition: none !important;
    }
}


/* Animate-in class for scroll animations */
.animate-in {
    animation: slideInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced loading screen with particles */
#loading-screen {
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

/* Responsive adjustments for ultra premium effects */
@media (max-width: 768px) {
    .neon-text {
        text-shadow:
            0 0 3px #fff,
            0 0 5px #fff,
            0 0 10px #7c4dff,
            0 0 20px #7c4dff,
            0 0 40px #7c4dff;
    }

    .premium-card:hover {
        transform: translateY(-5px) rotateX(0) rotateY(0);
    }

    .holographic,
    .scanline,
    .crystal-shimmer {
        animation-duration: 8s;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .holographic,
    .neon-text,
    .text-shadow-glow {
        filter: contrast(1.5);
    }
}

/* Dark mode optimization (already dark, but for future-proofing) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #05050a;
        --card-bg: rgba(15, 15, 30, 0.8);
    }
}

/* Print styles */
@media print {

    .floating-particles,
    .audio-wave,
    .cursor-trail,
    .loading-screen,
    .scroll-progress,
    .back-to-top {
        display: none !important;
    }
}


/* Spotify Embed Compact Mode - New Approach */
.spotify-embed-compact {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.spotify-embed-compact iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 152px !important;
    display: block;
    border: none;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .spotify-embed-compact {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        width: calc(100% + 1rem);
    }

    .spotify-embed-compact iframe {
        height: 152px !important;
    }

    .space-y-3>*+* {
        margin-top: 0.75rem !important;
    }
}

/* iPhone specific (390-430px) */
@media (max-width: 430px) {
    .profile-card {
        padding: 1rem !important;
    }

    .spotify-embed-compact {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        width: calc(100% + 1rem);
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .spotify-embed-compact iframe {
        height: 152px !important;
    }
}

/* ===== ENHANCED HIGH-PERFORMANCE EFFECTS ===== */

/* Advanced Glow Effects */
.enhanced-glow {
    position: relative;
    overflow: visible;
}

.enhanced-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    filter: blur(20px);
}

.enhanced-glow:hover::before {
    opacity: 1;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

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

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* Chromatic Aberration Effect */
.chromatic-text {
    position: relative;
    display: inline-block;
}

.chromatic-text::before,
.chromatic-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
}

.chromatic-text::before {
    color: #ff00ff;
    animation: chromatic-left 3s ease-in-out infinite;
}

.chromatic-text::after {
    color: #00ffff;
    animation: chromatic-right 3s ease-in-out infinite;
}

@keyframes chromatic-left {

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

    50% {
        transform: translateX(-2px);
    }
}

@keyframes chromatic-right {

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

    50% {
        transform: translateX(2px);
    }
}

/* Holographic Shimmer */
.holographic-card {
    position: relative;
    background: linear-gradient(45deg,
            rgba(124, 77, 255, 0.1),
            rgba(0, 224, 255, 0.1),
            rgba(255, 0, 255, 0.1));
    background-size: 200% 200%;
    animation: holographic-shift 5s ease infinite;
}

@keyframes holographic-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Advanced Card Shine */
.advanced-shine {
    position: relative;
    overflow: hidden;
}

.advanced-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.advanced-shine:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Floating Animation Enhanced */
@keyframes float-enhanced {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(1deg);
    }

    50% {
        transform: translateY(-10px) rotate(-1deg);
    }

    75% {
        transform: translateY(-15px) rotate(0.5deg);
    }
}

.float-enhanced {
    animation: float-enhanced 6s ease-in-out infinite;
}

/* Neon Border Effect */
.neon-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
        linear-gradient(45deg, #7c4dff, #00e0ff, #ff00ff, #7c4dff) border-box;
    background-size: 200% 200%;
    animation: neon-border-animate 3s ease infinite;
}

@keyframes neon-border-animate {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Text Glitter Effect */
@keyframes glitter {

    0%,
    100% {
        text-shadow:
            0 0 5px rgba(124, 77, 255, 0.5),
            0 0 10px rgba(124, 77, 255, 0.5),
            0 0 15px rgba(124, 77, 255, 0.5);
    }

    50% {
        text-shadow:
            0 0 10px rgba(0, 224, 255, 0.8),
            0 0 20px rgba(0, 224, 255, 0.8),
            0 0 30px rgba(0, 224, 255, 0.8);
    }
}

.text-glitter {
    animation: glitter 2s ease-in-out infinite;
}

/* Particle Background Layer */
.particle-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Smooth Transitions */
* {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease,
        filter 0.3s ease;
}

/* Performance Optimization */
@media (prefers-reduced-motion: no-preference) {

    .profile-card,
    .sns-card,
    .fade-in-up {
        will-change: transform, opacity;
    }
}

/* GPU Acceleration */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Blur Backdrop for Modern Browsers */
@supports (backdrop-filter: blur(10px)) {
    .modern-blur {
        backdrop-filter: blur(10px) saturate(150%);
        -webkit-backdrop-filter: blur(10px) saturate(150%);
    }
}

/* Enhanced Card Hover Effects */
.profile-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.profile-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(124, 77, 255, 0.3),
        0 0 50px rgba(0, 224, 255, 0.2),
        inset 0 0 30px rgba(124, 77, 255, 0.1);
}

/* Ripple Effect on Click */
@keyframes ripple-effect {
    0% {
        transform: scale(0);
        opacity: 1;
    }

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

.ripple-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.4), transparent);
    animation: ripple-effect 0.6s ease-out;
}

/* 3D Transform Effects */
.transform-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d {
    transition: transform 0.5s ease;
}

.card-3d:hover {
    transform: rotateX(5deg) rotateY(5deg);
}

/* Ambient Light Simulation */
@keyframes ambient-pulse {

    0%,
    100% {
        filter: brightness(1) saturate(1);
    }

    50% {
        filter: brightness(1.2) saturate(1.3);
    }
}

.ambient-light {
    animation: ambient-pulse 4s ease-in-out infinite;
}

/* High FPS Scrolling */
@media (min-width: 1920px) {
    body {
        scroll-behavior: smooth;
        overflow-x: hidden;
    }

    section {
        will-change: transform;
    }
}

/* Optimized for 144Hz+ Monitors */
@media (prefers-reduced-motion: no-preference) and (min-resolution: 144dpi) {
    * {
        animation-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
    }
}