/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
}

/* 3D Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 30%, #0f0f23 60%, #0a0a0a 100%);
    mix-blend-mode: screen;
    filter: contrast(1.2) brightness(1.1);
}

/* Enhanced particle effects overlay */
#bg-canvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.1) 0%, transparent 50%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

.logo-sub {
    font-size: 12px;
    color: #888;
    font-weight: 300;
    margin-top: -5px;
}

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

.nav-menu {
    /* display: flex; */ /* 常に非表示にするためコメントアウトまたは削除 */
    display: none; /* 追加 */
    list-style: none;
    gap: 30px;
    /* For responsive hamburger menu */
    position: absolute; /* 追加 */
    top: 80px; /* Navbarの高さに合わせる */ /* 追加 */
    left: 0; /* 追加 */
    width: 100%; /* 追加 */
    background: rgba(10, 10, 10, 0.95); /* 背景色を少し濃く */ /* 追加 */
    backdrop-filter: blur(15px); /* 追加 */
    flex-direction: column; /* 追加 */
    align-items: center; /* 追加 */
    padding: 20px 0; /* 追加 */
    transform: translateY(-150%); /* 初期状態では画面外上に隠す */ /* 追加 */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease; /* 追加 */
    opacity: 0; /* 初期状態では透明 */ /* 追加 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* 追加 */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* 追加 */
}

.nav-menu.active { /* JavaScriptで active クラスを付与したときのスタイル */ /* 追加 */
    display: flex; /* 表示する */ /* 追加 */
    transform: translateY(0); /* 画面内に表示 */ /* 追加 */
    opacity: 1; /* 不透明にする */ /* 追加 */
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #4ecdc4;
}

/* Hamburger Menu */
.hamburger {
    /* display: none; */ /* 常に表示するためコメントアウトまたは削除 */
    display: flex; /* 追加 */
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(78, 205, 196, 0.1);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
    transform-origin: center;
}

.hamburger.active span {
    background: #4ecdc4;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* Tablet responsive */
/* @media (max-width: 1024px) and (min-width: 769px) { ... } */ /* ハンバーガーメニューを常時表示するため、このメディアクエリ内のスタイルは不要になる場合があります。関連するnav-menuのスタイルは上記で集約 */

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.title-main {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

.title-sub {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #cccccc;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #4ecdc4;
}

.btn-secondary:hover {
    background: #4ecdc4;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.3);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 3;
    opacity: 0;
    animation: fadeInUpCentered 1s ease 2s forwards;
    width: 100%;
    text-align: center;
}

.scroll-text {
    color: #cccccc;
    font-size: 0.9rem;
    font-weight: 400;
    text-align: center;
    opacity: 0.8;
    animation: scrollTextPulse 3s ease-in-out infinite;
    width: 100%;
    margin: 0 auto;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.arrow-down {
    width: 20px;
    height: 20px;
    border-right: 2px solid #4ecdc4;
    border-bottom: 2px solid #4ecdc4;
    transform: rotate(45deg);
    animation: arrowBounce 2s ease-in-out infinite;
}

.arrow-down:nth-child(2) {
    animation-delay: 0.2s;
    opacity: 0.7;
}

.arrow-down:nth-child(3) {
    animation-delay: 0.4s;
    opacity: 0.4;
}

.scroll-mouse {
    margin-top: 10px;
    animation: mouseBounce 2s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mouse-body {
    width: 24px;
    height: 40px;
    border: 2px solid #4ecdc4;
    border-radius: 12px;
    position: relative;
    background: rgba(78, 205, 196, 0.1);
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: #4ecdc4;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
        opacity: 1;
    }
    40% {
        transform: rotate(45deg) translateY(8px);
        opacity: 0.7;
    }
    60% {
        transform: rotate(45deg) translateY(4px);
        opacity: 0.9;
    }
}

@keyframes mouseBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

@keyframes wheelScroll {
    0% {
        top: 8px;
        opacity: 1;
    }
    50% {
        top: 16px;
        opacity: 0.5;
    }
    100% {
        top: 24px;
        opacity: 0;
    }
}

@keyframes scrollTextPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpCentered {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About Section */
.about {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.about-card {
    background: rgba(30, 30, 50, 0.8); /* 背景色を変更 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari対応 */
    background-clip: padding-box; /* backdrop-filterのための追加 */
}

.about-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #4ecdc4;
}

/* Members Section */
.members {
    background: rgba(0, 0, 0, 0.3);
}

.members-disclaimer-top {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.1));
    border-radius: 15px;
    border: 2px solid rgba(255, 193, 7, 0.4);
    color: #ffc107;
    font-weight: 500;
    font-size: 16px;
    animation: warningGlow 2s ease-in-out infinite alternate;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.1);
}

.members-disclaimer-top strong {
    color: #ff9800;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

@keyframes warningGlow {
    0% { 
        box-shadow: 0 8px 32px rgba(255, 193, 7, 0.1);
        border-color: rgba(255, 193, 7, 0.4);
    }
    100% { 
        box-shadow: 0 8px 32px rgba(255, 193, 7, 0.2);
        border-color: rgba(255, 193, 7, 0.6);
    }
}

.member-recruitment {
    text-align: center;
    margin-top: 30px;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(255, 107, 107, 0.15));
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 15px;
    color: #4ecdc4;
    font-size: 1.1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(78, 205, 196, 0.1);
    animation: recruitmentGlow 3s ease-in-out infinite;
}

@keyframes recruitmentGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(78, 205, 196, 0.1);
        border-color: rgba(78, 205, 196, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(78, 205, 196, 0.2);
        border-color: rgba(78, 205, 196, 0.5);
    }
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.member-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.member-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.member-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.member-card:hover .member-image img {
    transform: scale(1.1);
}

.member-info {
    padding: 30px;
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #4ecdc4;
}

.member-role {
    color: #ff6b6b;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.member-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.member-social {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(78, 205, 196, 0.2);
    border-color: #4ecdc4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.social-link.x-twitter:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.social-link.bluesky:hover {
    background: rgba(0, 133, 255, 0.2);
    border-color: #0085ff;
    box-shadow: 0 5px 15px rgba(0, 133, 255, 0.3);
}

.social-icon {
    font-size: 1.1em;
}

/* Members Disclaimer */
.members-disclaimer {
    margin-top: 60px;
    padding: 30px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.members-disclaimer p {
    color: #ffc107;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* Resonite Section */
.resonite {
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.resonite::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.resonite-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    margin: 0 auto;
}

.resonite-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(78, 205, 196, 0.5));
    transition: all 0.3s ease;
}

.resonite-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 30px rgba(78, 205, 196, 0.8));
}

.resonite-description {
    text-align: center;
    margin-bottom: 50px;
    color: #e0e0e0;
}

.resonite-description p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto;
}

/* New Gallery Styles */
.new-gallery-container {
    padding: 40px 0;
}

.new-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.new-gallery-item {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.new-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.new-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.new-gallery-item:hover .new-gallery-image {
    transform: scale(1.05);
}

.new-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 15px;
    color: #ffffff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
}

.new-gallery-item:hover .new-gallery-overlay {
    transform: translateY(0);
}

.new-gallery-overlay p {
    margin: 0;
    font-size: 0.9rem;
}

.author-link {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.author-link:hover {
    background: rgba(78, 205, 196, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

/* Responsive Gallery */
@media (max-width: 1024px) {
    .new-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .new-gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .new-gallery-item {
        aspect-ratio: 4 / 3; /* モバイルでは少し縦長に */
    }
    .new-gallery-overlay p {
        font-size: 0.8rem;
    }
    
    .author-link {
        font-size: 0.7rem;
        padding: 3px 8px;
        margin-top: 6px;
    }
}

.resonite-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(255, 107, 107, 0.1));
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 20px;
    padding: 50px 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 50px; /* 画像とのマージンを追加 */
}

.resonite-cta h3 {
    font-size: 2rem;
    color: #4ecdc4;
    margin-bottom: 20px;
    font-weight: 700;
}

.resonite-cta p {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for Resonite Section */
@media (max-width: 1024px) {
    /* .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    } */
}

@media (max-width: 768px) {
    .resonite-header {
        margin-bottom: 30px;
    }
    
    .resonite-logo {
        width: 120px;
        height: 120px;
    }
    
    .resonite-description {
        margin-bottom: 30px;
    }
    
    .resonite-description p {
        font-size: 1.1rem;
    }
    
    /* .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    } */
    
    .resonite-cta {
        margin-top: 40px;
        padding: 30px 20px;
    }
    
    .resonite-cta h3 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* .gallery-grid {
        gap: 15px;
    }
    
    .gallery-overlay {
        padding: 15px;
    }
    
    .gallery-overlay p {
        font-size: 0.8rem;
    } */
}

/* Community Section */
.community {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.community-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.community-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(78, 205, 196, 0.05), rgba(255, 107, 107, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.community-card:hover::before {
    opacity: 1;
}

.community-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(78, 205, 196, 0.3);
}

.community-card .card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.community-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #4ecdc4;
    font-family: 'Orbitron', monospace;
}

.community-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.community-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.community-links .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.community-links .social-icon {
    font-size: 1.2em;
}

/* Schedule Section */
.schedule {
    background: rgba(0, 0, 0, 0.3);
}

.schedule-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.schedule-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.schedule-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #4ecdc4;
}

.time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.time {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timezone {
    font-size: 1rem;
    color: #888;
}

.schedule-days {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.day-card {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.day-card.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.day-card.closed {
    background: rgba(255, 255, 255, 0.1);
    color: #666;
}

.schedule-note {
    color: #888;
    font-style: italic;
}

/* Join Section */
.join {
    background: rgba(0, 0, 0, 0.3);
}

.join-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #4ecdc4;
}

.join-cta {
    text-align: center;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Ensure it's flex for proper alignment if overridden elsewhere */
    }
    
    .nav-menu {
        /* These styles are now part of the default .nav-menu and .nav-menu.active */
        /* position: absolute; */
        /* top: 80px; */ /* Height of navbar */
        /* left: 0; */
        /* background: rgba(10, 10, 10, 0.95); */ /* Slightly darker for better contrast */
        /* backdrop-filter: blur(15px); */
        /* width: 100%; */
        /* flex-direction: column; */
        /* align-items: center; */
        /* padding: 20px 0; */
        /* display: none; */ /* Initially hidden */
        /* transform: translateY(-150%); */ /* Start off-screen */
        /* transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease; */
        /* opacity: 0; */
        /* border-bottom: 1px solid rgba(255, 255, 255, 0.05); */
        /* border-top: 1px solid rgba(255, 255, 255, 0.1); */ /* Add a top border as well */
        /* z-index: 999; */ /* Ensure it's above other content but below navbar */
    }

    .nav-menu.active {
        /* display: flex; */
        /* transform: translateY(0); */ /* Slide in */
        /* opacity: 1; */
    }

    .nav-menu li {
        margin: 15px 0;
        opacity: 0;
        transform: translateX(-30px);
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.35s; }
    .nav-menu.active li:nth-child(7) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(8) { transition-delay: 0.45s; }
    .nav-menu.active li:nth-child(9) { transition-delay: 0.5s; }
    .nav-menu.active li:nth-child(10) { transition-delay: 0.55s; }

    .nav-link {
        font-size: 20px;
        padding: 20px 15px;
        display: block;
        border-radius: 10px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .nav-link:hover {
        background: rgba(78, 205, 196, 0.1);
        transform: translateX(10px);
        color: #4ecdc4;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .nav-link:hover::before {
        transform: scaleY(1);
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .scroll-indicator {
        bottom: 20px;
        gap: 10px;
    }
    
    .scroll-text {
        font-size: 0.8rem;
    }
    
    .arrow-down {
        width: 16px;
        height: 16px;
    }
    
    .mouse-body {
        width: 20px;
        height: 32px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-grid,
    .members-grid,
    .community-grid,
    .join-steps {
        grid-template-columns: 1fr;
    }

    .member-recruitment {
        margin-top: 20px;
        padding: 15px 20px;
        font-size: 1rem;
    }

    .community-grid {
        gap: 30px;
    }

    .community-card {
        padding: 30px 20px;
    }
    
    .schedule-days {
        flex-wrap: wrap;
    }

    /* ノードプログラミングセクションを完全に非表示 */
    .node-programming {
        display: none !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
        height: 70px;
    }

    .navbar {
        height: 70px;
    }

    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
        padding: 30px 15px 15px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-sub {
        font-size: 10px;
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .title-sub {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .container {
        padding: 0 15px;
    }

    .nav-link {
        font-size: 18px;
        padding: 18px 12px;
    }
}


/* Particle Effects */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Glowing Effects */
.glow {
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
}

/* Advanced particle effects */
@keyframes particleGlow {
    0%, 100% { 
        filter: brightness(1) blur(0px);
        transform: scale(1);
    }
    50% { 
        filter: brightness(1.5) blur(1px);
        transform: scale(1.1);
    }
}

@keyframes cosmicPulse {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(78, 205, 196, 0.3),
            0 0 40px rgba(78, 205, 196, 0.2),
            0 0 60px rgba(78, 205, 196, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(255, 107, 107, 0.4),
            0 0 60px rgba(255, 107, 107, 0.3),
            0 0 90px rgba(255, 107, 107, 0.2);
    }
}

@keyframes nebulaDrift {
    0% { 
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% { 
        background-position: 100% 50%;
        filter: hue-rotate(180deg);
    }
    100% { 
        background-position: 0% 50%;
        filter: hue-rotate(360deg);
    }
}

/* Enhanced glow effects for interactive elements */
.enhanced-glow {
    animation: cosmicPulse 3s ease-in-out infinite;
}

/* Particle trail effect */
.particle-trail {
    position: absolute;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: particleGlow 2s ease-in-out infinite;
}

/* Cosmic background enhancement */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(78, 205, 196, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 107, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(69, 183, 209, 0.03) 0%, transparent 50%);
    background-size: 200% 200%;
    z-index: -2;
    pointer-events: none;
    animation: nebulaDrift 15s ease-in-out infinite;
}

/* Enhanced canvas effects */
#bg-canvas {
    animation: cosmicPulse 8s ease-in-out infinite;
}

/* Ripple effect for mouse clicks */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.6) 0%, rgba(255, 107, 107, 0.3) 50%, transparent 100%);
    transform: scale(0);
    animation: rippleExpand 1.5s ease-out;
    pointer-events: none;
    z-index: 9999;
}

@keyframes rippleExpand {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(20);
        opacity: 0;
    }
}


/* Enhanced Mouse Cursor Effects */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.8) 0%, rgba(78, 205, 196, 0.3) 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    mix-blend-mode: screen;
    transition: transform 0.1s ease;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, transparent 40%, rgba(78, 205, 196, 0.1) 50%, transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: cursorPulse 2s ease-in-out infinite;
}

.custom-cursor.clicking {
    transform: scale(1.5);
    background: radial-gradient(circle, rgba(255, 107, 107, 0.8) 0%, rgba(255, 107, 107, 0.3) 50%, transparent 100%);
}

.custom-cursor.hovering {
    transform: scale(1.2);
    background: radial-gradient(circle, rgba(69, 183, 209, 0.8) 0%, rgba(69, 183, 209, 0.3) 50%, transparent 100%);
}

@keyframes cursorPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

/* Mouse trail effect */
.mouse-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: rgba(78, 205, 196, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: screen;
}

/* Interactive elements cursor override */
a, button, .btn, .nav-link, .member-card {
    cursor: pointer;
}

/* Particle interaction zones */
.particle-zone {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: zoneGlow 3s ease-in-out infinite;
}

@keyframes zoneGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}


/* Node Programming Section */
.node-programming {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.node-programming::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    pointer-events: none;
}


/* Resonite Logo Container */
.resonite-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.resonite-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(78, 205, 196, 0.5));
    transition: all 0.3s ease;
}

.resonite-logo:hover {
    filter: drop-shadow(0 0 30px rgba(78, 205, 196, 0.8));
    transform: scale(1.05);
}

.connection-text {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* ProtoFlux Info Section */
.protoflux-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.protoflux-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.protoflux-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.5));
}

.protoflux-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.protoflux-description {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}


.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.node-canvas-container {
    position: relative;
    width: 100%;
    height: 750px; /* Adjusted height */
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    border: 2px solid rgba(78, 205, 196, 0.3);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.node-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none; /* Allow interaction with canvas */
}

.node {
    position: absolute;
    background: rgba(20, 20, 40, 0.9);
    border: 2px solid rgba(78, 205, 196, 0.5);
    border-radius: 15px;
    min-width: 220px;
    backdrop-filter: blur(10px);
    pointer-events: all; /* Enable dragging */
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.node:hover {
    border-color: rgba(78, 205, 196, 0.8);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.2);
}

.input-node:hover {
    transform: translateY(-2px);
}

.node-header {
    background: linear-gradient(45deg, rgba(78, 205, 196, 0.2), rgba(255, 107, 107, 0.2));
    padding: 10px 16px;
    border-radius: 13px 13px 0 0;
    border-bottom: 1px solid rgba(78, 205, 196, 0.3);
}

.node-title {
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.node-title-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 5px 0;
}

.node-resonite-logo {
    height: 24px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(78, 205, 196, 0.6));
    transition: all 0.3s ease;
}

.processing-node:hover .node-resonite-logo {
    filter: drop-shadow(0 0 12px rgba(78, 205, 196, 0.8));
    transform: scale(1.1);
}


.node-body {
    padding: 12px 20px;
}

.node-input, .node-output {
    display: flex;
    align-items: center;
    margin: 8px 0;
    position: relative;
}

.node-input {
    justify-content: flex-start;
}

.node-output {
    justify-content: flex-end;
}

.input-port, .output-port {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(78, 205, 196, 0.6);
    border: 2px solid rgba(78, 205, 196, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.input-port:hover, .output-port:hover {
    background: rgba(78, 205, 196, 1);
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.8);
    transform: scale(1.2);
}

.input-port.highlight {
    background: rgba(255, 215, 0, 1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    transform: scale(1.3);
    animation: highlightPulse 0.5s ease-in-out infinite alternate;
}

/* 型ごとのハイライト色 */
.processing-node .node-input[data-input="user"] .input-port.highlight {
    background: #ff6b6b !important;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.8) !important;
}

.processing-node .node-input[data-input="device"] .input-port.highlight {
    background: #4ecdc4 !important;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.8) !important;
}

.processing-node .node-input[data-input="internet"] .input-port.highlight {
    background: #96ceb4 !important;
    box-shadow: 0 0 20px rgba(150, 206, 180, 0.8) !important;
}

.output-node .node-input[data-input="session"] .input-port.highlight {
    background: #9b59b6 !important;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.8) !important;
}


.output-port.dragging {
    background: rgba(255, 107, 107, 1);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
    transform: scale(1.4);
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 1);
    }
}


.input-label, .output-label {
    font-size: 11px;
    color: #cccccc;
    margin: 0 10px;
    font-weight: 500;
}

.node-note {
    font-size: 9px;
    color: #888888;
    text-align: center;
    margin-top: 4px;
    font-style: italic;
    opacity: 0.8;
}

/* Node positioning and type-based coloring */
.input-node {
    left: 50px;
}

/* User型 - 赤色系 */
#user-node {
    top: 100px;
    border-color: #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 107, 107, 0.05));
}

#user-node .output-port {
    background: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
}

#user-node .node-header {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
}

/* Device型 - 青色系（デスクトップとVR） */
#desktop-node, #vr-node {
    border-color: #4ecdc4;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(78, 205, 196, 0.05));
}

#desktop-node .output-port, #vr-node .output-port {
    background: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.6);
}

#desktop-node .node-header, #vr-node .node-header {
    background: linear-gradient(45deg, rgba(78, 205, 196, 0.2), rgba(78, 205, 196, 0.1));
}

#desktop-node {
    top: 230px;
}

#vr-node {
    top: 360px;
}

/* Network型 - 緑色系 */
#internet-node {
    top: 490px;
    border-color: #96ceb4;
    background: linear-gradient(135deg, rgba(150, 206, 180, 0.15), rgba(150, 206, 180, 0.05));
}

#internet-node .output-port {
    background: #96ceb4;
    box-shadow: 0 0 10px rgba(150, 206, 180, 0.6);
}

#internet-node .node-header {
    background: linear-gradient(45deg, rgba(150, 206, 180, 0.2), rgba(150, 206, 180, 0.1));
}


.processing-node {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(40, 20, 60, 0.9);
    border-color: rgba(255, 107, 107, 0.5);
}

.processing-node:hover {
    border-color: rgba(255, 107, 107, 0.8);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
    transform: translate(-50%, -50%); /* Keep centered */
}

.processing-node .node-header {
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.2), rgba(138, 43, 226, 0.2));
}

/* Processing node input ports - 型ごとの色分け */
.processing-node .node-input[data-input="user"] .input-port {
    background: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
}

.processing-node .node-input[data-input="device"] .input-port {
    background: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.6);
}

.processing-node .node-input[data-input="internet"] .input-port {
    background: #96ceb4;
    box-shadow: 0 0 10px rgba(150, 206, 180, 0.6);
}

/* Processing node output port - Session型は紫色 */
.processing-node .node-output[data-output="session"] .output-port {
    background: #9b59b6;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.6);
}


.output-node {
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 40, 20, 0.9);
    border-color: rgba(150, 206, 180, 0.5);
}

.output-node:hover {
    border-color: rgba(150, 206, 180, 0.8);
    box-shadow: 0 10px 30px rgba(150, 206, 180, 0.2);
    transform: translateY(-50%); /* Keep centered */
}

.output-node .node-header {
    background: linear-gradient(45deg, rgba(150, 206, 180, 0.2), rgba(78, 205, 196, 0.2));
}

/* Output node input port - Session型の色 */
.output-node .node-input[data-input="session"] .input-port {
    background: #9b59b6;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.6);
}


.connection-status {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none; /* Click-through */
}

.status-indicator {
    background: rgba(20, 20, 40, 0.9);
    border: 2px solid rgba(78, 205, 196, 0.5);
    border-radius: 25px;
    padding: 12px 24px;
    backdrop-filter: blur(10px);
    text-align: center;
    min-width: 300px;
    pointer-events: none; /* Prevent interaction with status bar itself */
}

.status-indicator .success-buttons {
    pointer-events: all; /* Allow interaction with buttons */
}

.status-indicator .success-buttons .btn {
    pointer-events: all; /* Make sure buttons are clickable */
    position: relative;
    z-index: 10;
    min-width: 120px;
    font-size: 14px;
    padding: 10px 20px;
    cursor: pointer; 
    transition: all 0.3s ease;
}

.status-indicator .success-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.status-indicator .success-buttons .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(255,107,107,0.4);
}

.status-indicator .success-buttons .btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(78,205,196,0.4);
}


.status-text {
    display: block;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

.node-instructions {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none; /* Click-through */
}

.node-instructions p {
    background: rgba(20, 20, 40, 0.9);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 15px;
    padding: 12px 20px;
    color: #cccccc;
    font-size: 14px;
    backdrop-filter: blur(10px);
    text-align: center;
    max-width: 500px;
}

/* Connection line styles */
.connection-line {
    stroke: #4ecdc4;
    stroke-width: 3;
    fill: none;
    filter: drop-shadow(0 0 5px rgba(78, 205, 196, 0.6));
    opacity: 0; /* Start hidden */
    animation: connectionGlow 2s ease-in-out infinite;
}

.connection-line.active {
    opacity: 1;
}

.connection-line.completed {
    stroke: #96ceb4; /* Change color when completed */
    animation: connectionPulse 1.5s ease-in-out infinite;
}

@keyframes connectionGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(78, 205, 196, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(78, 205, 196, 1));
    }
}

@keyframes connectionPulse {
    0%, 100% {
        stroke-width: 3;
        filter: drop-shadow(0 0 5px rgba(150, 206, 180, 0.6));
    }
    50% {
        stroke-width: 5;
        filter: drop-shadow(0 0 20px rgba(150, 206, 180, 1));
    }
}

/* Connected state styles */
.node.connected {
    border-color: rgba(150, 206, 180, 0.8);
    box-shadow: 0 0 25px rgba(150, 206, 180, 0.3);
}

.port.connected {
    background: rgba(150, 206, 180, 1);
    box-shadow: 0 0 15px rgba(150, 206, 180, 0.8);
}

/* Success animation */
@keyframes successPulse {
    0% {
        box-shadow: 0 0 25px rgba(150, 206, 180, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(150, 206, 180, 0.6);
    }
    100% {
        box-shadow: 0 0 25px rgba(150, 206, 180, 0.3);
    }
}

@keyframes successPulseInput {
    0% {
        transform: translateY(-2px) scale(1);
        box-shadow: 0 0 25px rgba(150, 206, 180, 0.3);
    }
    50% {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 0 40px rgba(150, 206, 180, 0.6);
    }
    100% {
        transform: translateY(-2px) scale(1);
        box-shadow: 0 0 25px rgba(150, 206, 180, 0.3);
    }
}

@keyframes successPulseProcessing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 25px rgba(150, 206, 180, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.02);
        box-shadow: 0 0 40px rgba(150, 206, 180, 0.6);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 25px rgba(150, 206, 180, 0.3);
    }
}

@keyframes successPulseOutput {
    0% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 25px rgba(150, 206, 180, 0.3);
    }
    50% {
        transform: translateY(-50%) scale(1.02);
        box-shadow: 0 0 40px rgba(150, 206, 180, 0.6);
    }
    100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 25px rgba(150, 206, 180, 0.3);
    }
}

.input-node.success {
    animation: successPulseInput 2s ease-in-out infinite;
}

.processing-node.success {
    animation: successPulseProcessing 2s ease-in-out infinite;
}

.output-node.success {
    animation: successPulseOutput 2s ease-in-out infinite;
}



/* Responsive design for node programming */
@media (max-width: 768px) {
    .resonite-logo-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .resonite-logo {
        height: 60px;
    }
    
    .connection-text {
        font-size: 2rem;
    }
    
    .protoflux-info {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .protoflux-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .protoflux-logo {
        height: 30px;
    }
    
    .protoflux-title {
        font-size: 1.4rem;
    }
    
    .protoflux-description {
        font-size: 0.9rem;
    }

    .node-canvas-container {
        height: 800px; /* Adjust for mobile */
        overflow-x: auto; /* Enable horizontal scroll for smaller screens */
        overflow-y: hidden;
    }

    .node {
        min-width: 160px;
        font-size: 11px;
        transform: scale(0.9); /* Scale down nodes for smaller screens */
    }

    .node-body {
        padding: 8px 12px;
    }

    .node-input, .node-output {
        margin: 4px 0;
        font-size: 10px;
    }

    .input-port, .output-port {
        width: 16px; /* Slightly larger touch targets */
        height: 16px;
        border: 2px solid rgba(255,255,255,0.3);
    }

    .node-note {
        font-size: 8px;
        margin-top: 2px;
    }

    .input-node {
        left: 10px;
    }

    .output-node {
        right: 10px;
    }

    #user-node {
        top: 60px;
    }

    #desktop-node {
        top: 160px;
    }

    #vr-node {
        top: 260px;
    }

    #internet-node {
        top: 360px;
    }

    #resonite-node {
        left: 50%;
        transform: translateX(-50%) scale(0.9);
        top: 200px;
    }

    #kemono-node {
        right: 10px;
        top: 200px;
    }

    .node-instructions {
        margin-top: 20px;
    }

    .node-instructions p {
        font-size: 12px;
        padding: 8px 16px;
        max-width: 100%; 
        text-align: center;
    }

    .status-indicator {
        min-width: 280px;
        padding: 10px 16px;
        margin: 20px auto; 
    }

    .status-indicator .success-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .status-indicator .success-buttons .btn {
        min-width: 100px;
        font-size: 13px;
        padding: 8px 16px;
    }

    /* タッチ操作の改善 */
    .input-port, .output-port {
        touch-action: none; /* Prevent default touch actions */
        -webkit-touch-callout: none; /* Disable callouts on iOS */
        -webkit-user-select: none; /* Disable selection */
        user-select: none;
        position: relative;
    }

    .input-port::before, .output-port::before {
        content: '';
        position: absolute;
        top: -10px; 
        left: -10px;
        right: -10px;
        bottom: -10px;
        background: transparent; 
        border-radius: 50%; 
    }
}


/* Gaming Team Section */
.gaming-team {
    background: linear-gradient(135deg, rgba(16, 21, 62, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.gaming-team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Lightning Effect Styles */
.lightning-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightning-container.active {
    opacity: 1;
    pointer-events: none; /* Add this line to ensure mouse events pass through */
}

.lightning-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.lightning-path {
    fill: none;
    stroke-width: 2;
    filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 0 20px currentColor) drop-shadow(0 0 40px currentColor);
    opacity: 0;
}

.lightning-path.main {
    stroke: #ffffff;
    stroke-width: 4;
    filter: drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 15px #4ecdc4) drop-shadow(0 0 30px #ff6b6b);
}

.lightning-path.branch1 {
    stroke: #4ecdc4;
    stroke-width: 3;
}

.lightning-path.branch2 {
    stroke: #ff6b6b;
    stroke-width: 3;
}

.lightning-path.branch3 {
    stroke: #ffd93d;
    stroke-width: 2;
}

.lightning-path.sub {
    stroke: #96ceb4;
    stroke-width: 2;
}

.lightning-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(78, 205, 196, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 35%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lightning-container.active .lightning-overlay {
    opacity: 1;
    animation: lightningFlash 0.5s ease-in-out;
}

@keyframes lightningFlash {
    0%, 100% { opacity: 0; }
    10% { opacity: 0.8; }
    20% { opacity: 0.2; }
    30% { opacity: 1; }
    40% { opacity: 0.1; }
    50% { opacity: 0.9; }
    60% { opacity: 0; }
    70% { opacity: 0.6; }
    80% { opacity: 0; }
    90% { opacity: 0.4; }
}

.lightning-path.animate {
    animation: lightningStrike 0.6s ease-out forwards;
}

@keyframes lightningStrike {
    0% {
        stroke-dasharray: 2000;
        stroke-dashoffset: 2000;
        opacity: 0;
    }
    10% {
        opacity: 1;
        stroke-dashoffset: 1800;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* Lightning Sound Effect - Text animation removed */

/* Gaming Team Container */
.gaming-team .container {
    position: relative;
    z-index: 2;
}

.team-intro {
    text-align: center;
    margin-bottom: 60px;
}

.team-logo {
    display: inline-block;
    padding: 50px 60px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 25px;
    border: 3px solid rgba(255, 107, 107, 0.5);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.3);
}

.team-logo:hover {
    transform: translateY(-15px);
    border-color: rgba(255, 107, 107, 0.8);
    box-shadow: 0 30px 60px rgba(255, 107, 107, 0.4), 0 0 50px rgba(78, 205, 196, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.logo-placeholder {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: teamLogoGlow 2s ease-in-out infinite alternate;
}

.logo-image {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image img {
    max-width: 250px;
    max-height: 250px;
    object-fit: contain;
    border-radius: 20px;
    filter: drop-shadow(0 0 30px rgba(255,107,107,0.8)) drop-shadow(0 0 20px rgba(78,205,196,0.5));
    transition: all 0.3s ease;
    animation: teamLogoGlow 2s ease-in-out infinite alternate;
}

.team-logo:hover .logo-image img {
    filter: drop-shadow(0 0 50px rgba(255,107,107,1)) drop-shadow(0 0 60px rgba(78,205,196,0.8)) drop-shadow(0 0 80px rgba(255,193,7,0.4));
    transform: scale(1.1);
}

@keyframes teamLogoGlow {
    0% { text-shadow: 0 0 20px rgba(255, 107, 107, 0.5); }
    100% { text-shadow: 0 0 30px rgba(255, 107, 107, 0.8), 0 0 40px rgba(78, 205, 196, 0.3); }
}

.team-logo h3 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

.team-motto {
    font-size: 1.1rem;
    color: #cccccc;
    font-style: italic;
    opacity: 0.9;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: rgba(78, 205, 196, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.game-card.featured {
    border-color: rgba(255, 107, 107, 0.5);
    background: rgba(255, 107, 107, 0.1);
}

.game-card.featured:hover {
    border-color: rgba(255, 107, 107, 0.8);
    box-shadow: 0 20px 40px rgba(255,107,107,0.2);
}

.game-card.challenge {
    border-color: rgba(255, 193, 7, 0.5);
    background: rgba(255, 193, 7, 0.1);
}

.game-card.challenge:hover {
    border-color: rgba(255, 193, 7, 0.8);
    box-shadow: 0 20px 40px rgba(255,193,7,0.2);
}


.game-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

.game-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    text-align: center;
}

.game-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.game-status {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid rgba(78, 205, 196, 0.5);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4ecdc4;
    text-align: center;
    width: 100%;
}

.game-card.featured .game-status {
    background: rgba(255,107,107,0.2);
    border-color: rgba(255,107,107,0.5);
    color: #ff6b6b;
}

.game-card.challenge .game-status {
    background: rgba(255,193,7,0.2);
    border-color: rgba(255,193,7,0.5);
    color: #ffc107;
}

.team-achievements {
    text-align: center;
}

.team-achievements h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #ffffff;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.achievement-card:hover {
    transform: translateY(-5px);
    border-color: rgba(78, 205, 196, 0.5);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.achievement-card h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.achievement-card p {
    color: #cccccc;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .game-card {
        padding: 20px;
    }

    .team-logo {
        padding: 40px 30px;
    }

    .team-logo h3 {
        font-size: 2.2rem;
    }

    .logo-image img {
        max-width: 200px;
        max-height: 200px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .achievement-card {
        padding: 20px;
    }
}


/* Wallpapers Section */
.wallpapers {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.3) 0%, rgba(22, 33, 62, 0.3) 50%, rgba(15, 15, 35, 0.3) 100%);
    position: relative;
}

.wallpapers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 107, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(78, 205, 196, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.wallpapers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.wallpaper-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.wallpaper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,107,107,0.1), rgba(78,205,196,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 20px; 
}

.wallpaper-card:hover::before {
    opacity: 1;
}

.wallpaper-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(78, 205, 196, 0.3);
}

.wallpaper-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.wallpaper-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.9);
}

.wallpaper-card:hover .wallpaper-thumbnail img {
    transform: scale(1.1);
    filter: brightness(1);
}

.wallpaper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wallpaper-card:hover .wallpaper-overlay {
    opacity: 1;
}

.download-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    background: linear-gradient(45deg, #ff5252, #26a69a);
}

.download-icon {
    font-size: 18px;
    animation: downloadBounce 2s infinite;
}

@keyframes downloadBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.wallpaper-info {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.wallpaper-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; 
}

.wallpaper-info p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.wallpaper-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wallpaper-meta span {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
}

.resolution {
    background: linear-gradient(45deg, rgba(255,107,107,0.2), rgba(78,205,196,0.2)) !important;
    border-color: rgba(78,205,196,0.3) !important;
}

.format {
    background: linear-gradient(45deg, rgba(69,183,209,0.2), rgba(150,206,180,0.2)) !important;
    border-color: rgba(69,183,209,0.3) !important;
}


/* Responsive Design for Wallpapers */
@media (max-width: 768px) {
    .wallpapers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .wallpaper-card {
        margin: 0 10px;
    }

    .wallpaper-thumbnail {
        height: 200px;
    }

    .wallpaper-info {
        padding: 20px;
    }

    .wallpaper-info h3 {
        font-size: 20px;
    }

    .download-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* AI Chatbot Styles */
.ai-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    font-family: 'Noto Sans JP', sans-serif;
}

.ai-chatbot * {
    position: relative; 
}

.chatbot-toggle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chatbot-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.chatbot-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.chatbot-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,107,107,0.3), rgba(78,205,196,0.3));
    animation: chatbotPulse 2s ease-in-out infinite;
}



.chatbot-speech-bubble {
    position: absolute;
    bottom: 85px;
    right: -10px;
    background: rgba(20, 20, 40, 0.95);
    border: 2px solid rgba(78, 205, 196, 0.6);
    border-radius: 15px;
    padding: 8px 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 9999;
    width: 140px;
    animation: speechBubbleFloat 3s ease-in-out infinite;
}

.chatbot-speech-bubble.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chatbot-speech-bubble:hover {
    border-color: rgba(78, 205, 196, 0.8);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    transform: translateY(-2px) scale(1.02);
}

.speech-content {
    color: #ffffff;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
}

.speech-content strong {
    color: #4ecdc4;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(78,205,196,0.5);
}

.speech-arrow {
    position: absolute;
    bottom: -8px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(78, 205, 196, 0.6);
}

.speech-arrow::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(20,20,40,0.95);
}

@keyframes speechBubbleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.02);
    }
}

@keyframes chatbotPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}


.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(20, 20, 40, 0.95);
    border: 2px solid rgba(78, 205, 196, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatbotSlideIn 0.3s ease-out;
}

.chatbot-window.active {
    display: flex;
}

@keyframes chatbotSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(255, 107, 107, 0.2));
    padding: 15px 20px;
    border-bottom: 1px solid rgba(78, 205, 196, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.6);
}

.chatbot-info {
    flex: 1;
}

.chatbot-info h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    font-family: 'Orbitron', monospace;
}

.chatbot-status {
    color: #4ecdc4;
    font-size: 12px;
    font-weight: 500;
}

.chatbot-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255,107,107,0.3);
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 3px;
}

.chatbot-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.chatbot-message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.4);
    flex-shrink: 0;
}

.message-content {
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 15px;
    padding: 10px 15px;
    max-width: 70%;
    position: relative;
}

.user-message .message-content {
    background: rgba(255,107,107,0.2);
    border-color: rgba(255,107,107,0.3);
}

.message-text {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
}

.message-time {
    color: #888888;
    font-size: 11px;
    opacity: 0.8;
}

.chatbot-input-area {
    padding: 15px 20px;
    border-top: 1px solid rgba(78, 205, 196, 0.3);
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.3);
}

#chatbot-input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    padding: 10px 15px;
    color: #ffffff;
    caret-color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#chatbot-input:focus {
    border-color: rgba(78, 205, 196, 0.5);
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
    caret-color: #4ecdc4;
}

#chatbot-input::placeholder {
    color: #888888;
}

#chatbot-send {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

#chatbot-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#chatbot-send:active {
    transform: translateY(0);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ecdc4;
    animation: typingBounce 1.4s ease-in-out infinite both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive design for chatbot */
@media (max-width: 768px) {
    .ai-chatbot {
        bottom: 20px;
        right: 20px;
    }

    .chatbot-window {
        width: 300px;
        height: 450px;
        bottom: 70px;
    }

    .chatbot-toggle {
        width: 60px;
        height: 60px;
    }

    .chatbot-avatar {
        width: 40px;
        height: 40px;
    }

    

    .chatbot-speech-bubble {
        bottom: 75px;
        right: -5px;
        width: 120px;
        padding: 6px 10px;
    }

    .speech-content {
        font-size: 10px;
        line-height: 1.2;
    }

    .speech-arrow {
        right: 25px;
    }
} 

/* X (Twitter) icon styles */
.x-icon {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
    opacity: 0.9;
    margin-right: 8px; /* Added margin for spacing */
}

.social-link.x-twitter:hover .x-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Quiz Section Styles */
.quiz-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.quiz-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 107, 107, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(78, 205, 196, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(155, 89, 182, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.quiz-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.quiz-header .section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: quizGradientShift 4s ease-in-out infinite;
}

.quiz-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes quizGradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.quiz-progress {
    margin-bottom: 40px;
    text-align: center;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.progress-fill {
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
    height: 100%;
    border-radius: 50px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-text {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.quiz-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 50px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quiz-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: cardRotate 8s linear infinite;
    pointer-events: none;
}

@keyframes cardRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.quiz-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.question-container {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.question-number {
    font-size: 1rem;
    font-weight: bold;
    color: #4ecdc4;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.question-text {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.question-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    font-style: italic;
}

.answer-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.answer-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    min-width: 150px;
}

.answer-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.answer-btn:hover::before {
    width: 300px;
    height: 300px;
}

.yes-btn:hover {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(78, 205, 196, 0.3);
}

.no-btn:hover {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.3);
}

.btn-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.answer-btn:disabled {
    background: rgba(128, 128, 128, 0.3) !important;
    border-color: rgba(128, 128, 128, 0.5) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

.answer-btn:disabled::before {
    display: none !important;
}

.answer-btn:disabled .btn-icon {
    opacity: 0.5;
}

.btn-ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.quiz-result {
    text-align: center;
    position: relative;
}

.result-animation {
    animation: resultFadeIn 1s ease-out;
}

@keyframes resultFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.result-stars {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.star {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: starTwinkle 1.5s ease-in-out infinite;
}

.star:nth-child(1) { animation-delay: 0s; }
.star:nth-child(2) { animation-delay: 0.2s; }
.star:nth-child(3) { animation-delay: 0.4s; }
.star:nth-child(4) { animation-delay: 0.6s; }
.star:nth-child(5) { animation-delay: 0.8s; }

@keyframes starTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

.result-icon {
    font-size: 4rem;
    margin: 30px 0 20px;
    animation: resultBounce 2s ease-in-out infinite;
}

@keyframes resultBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.result-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.result-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.result-percentage {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 30px;
    gap: 5px;
}

.percentage-number {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: numberCount 2s ease-out;
}

.percentage-symbol {
    font-size: 3rem;
    font-weight: 700;
    color: #4ecdc4;
}

.percentage-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-left: 10px;
    align-self: flex-end;
}

@keyframes numberCount {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.result-explanation {
    font-size: 1.1rem;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.result-btn {
    font-size: 1.2rem !important;
    padding: 20px 40px !important;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4) !important;
    border: none !important;
    animation: resultBtnPulse 2s ease-in-out infinite;
}

@keyframes resultBtnPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 15px 30px rgba(78, 205, 196, 0.4); }
}

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

.quiz-particles::before,
.quiz-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #4ecdc4;
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

.quiz-particles::before {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.quiz-particles::after {
    top: 80%;
    right: 20%;
    animation-delay: 4s;
    background: #ff6b6b;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    10%, 90% { opacity: 1; }
    50% { transform: translateY(-50px) rotate(180deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quiz-section {
        padding: 60px 0;
    }
    
    .quiz-header .section-title {
        font-size: 2.2rem;
    }
    
    .quiz-subtitle {
        font-size: 1rem;
    }
    
    .quiz-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .question-text {
        font-size: 1.5rem;
    }
    
    .answer-buttons {
        flex-direction: column;
        gap: 20px;
    }
    
    .answer-btn {
        width: 100%;
        min-width: auto;
    }
    
    .result-title {
        font-size: 2rem;
    }
    
    .percentage-number {
        font-size: 3.5rem;
    }
    
    .percentage-symbol {
        font-size: 2rem;
    }
    
    .result-actions {
        padding: 0 10px;
    }
    
    .result-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quiz-header .section-title {
        font-size: 1.8rem;
    }
    
    .quiz-card {
        padding: 25px 15px;
    }
    
    .question-text {
        font-size: 1.3rem;
    }
    
    .question-subtitle {
        font-size: 0.9rem;
    }
}

/* Reviews Section */
.reviews {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(78, 205, 196, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.reviews-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 60px;
    font-size: 1.2rem;
    font-weight: 300;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
    padding: 0 20px;
}

.review-card {
    background: linear-gradient(145deg, rgba(30, 30, 60, 0.9), rgba(20, 20, 40, 0.8));
    border-radius: 24px;
    padding: 35px;
    backdrop-filter: blur(20px);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(78, 205, 196, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(78, 205, 196, 0.15) 0%,
        rgba(255, 107, 107, 0.1) 50%,
        rgba(69, 183, 209, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 24px;
}

.review-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(78, 205, 196, 0.6),
        rgba(255, 107, 107, 0.4),
        rgba(69, 183, 209, 0.6));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 26px;
    z-index: -1;
}

.review-card:hover::before {
    opacity: 1;
}

.review-card:hover::after {
    opacity: 1;
}

.review-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.3),
        0 20px 40px rgba(78, 205, 196, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 200% 200%;
    animation: avatarGradient 3s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 
        0 8px 16px rgba(78, 205, 196, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.reviewer-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 24px rgba(78, 205, 196, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

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

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.star {
    color: #ffd700;
    font-size: 1rem;
}

.rating-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.review-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 10px;
}

.review-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.review-verified {
    color: #4ecdc4;
    font-size: 0.9rem;
    font-weight: 500;
}

.reviews-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: linear-gradient(145deg, rgba(30, 30, 60, 0.8), rgba(20, 20, 40, 0.7));
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 5px 10px rgba(78, 205, 196, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(78, 205, 196, 0.5),
        rgba(255, 107, 107, 0.3),
        rgba(69, 183, 209, 0.5));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 22px;
    z-index: -1;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 15px 30px rgba(78, 205, 196, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.stat-stars {
    color: #ffd700;
    font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reviews {
        padding: 60px 0;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
        padding: 0 15px;
    }
    
    .review-card {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .reviewer-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-right: 15px;
    }
    
    .reviewer-name {
        font-size: 1rem;
    }
    
    .review-text {
        font-size: 1rem;
    }
    
    .reviews-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .stat-card {
        padding: 35px 20px;
        border-radius: 18px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .reviews-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .review-card {
        padding: 20px 15px;
    }
    
    .review-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .reviews-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
