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

html {
    overflow-x: hidden;
    width: 100%;
}

html, body {
    max-width: 100%;
}

:root {
    /* Crypto Theme Colors - Dark */
    --primary-color: #ff0ddf;
    --primary-dark: #cc0ab3;
    --secondary-color: #ff69f0;
    --accent-color: #ff0ddf;
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
    --background-dark: #0a0a0f;
    --background-card: #16161d;
    --background-darker: #000000;
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --transition: all 0.3s ease;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff0ddf 0%, #ff69f0 100%);
    --gradient-secondary: linear-gradient(135deg, #ff69f0 0%, #ff0ddf 100%);
    --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
}

/* Light Theme Variables */
body.light-theme {
    --text-dark: #1a1a2e;
    --text-light: #2d2d2d;
    --background-dark: #ffffff;
    --background-card: #f8f9fa;
    --background-darker: #e9ecef;
    --overlay-dark: rgba(0, 0, 0, 0.05);
}

/* Light theme specific text colors */
body.light-theme .section-subtitle,
body.light-theme p,
body.light-theme .member-career li {
    color: #4a4a4a;
}

body.light-theme .hero-description {
    color: #2d2d2d;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-light);
    background-color: var(--background-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header - Fixed */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#header.scrolled {
    background-color: rgba(10, 10, 15, 0.95);
    box-shadow: 0 2px 20px rgba(255, 13, 223, 0.1);
}

body.light-theme #header {
    background-color: rgba(255, 255, 255, 0.8);
}

body.light-theme #header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    height: 80px;
    width: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 32px;
    width: auto;
}

.logo h1 {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    margin-left: auto;
    margin-right: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.theme-toggle.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 13, 223, 0.5);
}

.theme-icon {
    font-size: 1.2rem;
    display: block;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: var(--transition);
    overflow: hidden;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.lang-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 13, 223, 0.5);
}

.lang-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--background-darker);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 0;
    pointer-events: none;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 13, 223, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 217, 255, 0.1) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(255, 13, 223, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 13, 223, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 10, 15, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 13, 223, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-light);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: #aaa;
}

/* CTA Button */
.cta-button {
    background: var(--gradient-primary);
    color: #ffffff !important;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(255, 13, 223, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 13, 223, 0.5);
}

/* Stats Section */
.stats {
    background-color: var(--background-card);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 13, 223, 0.1);
    border-bottom: 1px solid rgba(255, 13, 223, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    color: var(--text-light);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.95rem;
    font-weight: 400;
    color: #999;
}

/* Section Common Styles */
section {
    padding: 5rem 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #999;
    font-weight: 300;
}

/* About Section */
.about-section {
    background-color: var(--background-dark);
}

.ecosystem-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.ecosystem-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(13, 61, 255, 0.2);
    border: 1px solid rgba(255, 13, 223, 0.1);
    transition: var(--transition);
}

.ecosystem-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(13, 61, 255, 0.3);
}

.eco-img {
    width: 100%;
    height: auto;
    display: block;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-card {
    background: var(--background-card);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 13, 223, 0.1);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 13, 223, 0.2);
}

.about-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(255, 13, 223, 0.3);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.about-card p {
    color: #aaa;
    line-height: 1.8;
}

/* Chinese language word-break and font */
body.lang-zh {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    word-break: break-all;
}

body.lang-zh * {
    word-break: break-all;
}

/* Why NRC Section */
.why-nrc {
    background: var(--background-darker);
    position: relative;
}

.why-nrc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 217, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.why-nrc-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.why-nrc-problem,
.why-nrc-solution {
    background: var(--background-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 13, 223, 0.1);
}

.why-nrc-problem h3,
.why-nrc-solution h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.why-nrc-problem p,
.why-nrc-solution p {
    color: #aaa;
    line-height: 1.8;
}

/* L2E Process */
.l2e-process {
    background: var(--background-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 13, 223, 0.2);
}

.l2e-process h3 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--text-light);
}

.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    flex: 0 1 180px;
}

.process-arrow {
    margin-top: 15px;
    align-self: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 20px rgba(255, 13, 223, 0.3);
}

.process-step h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.process-step p {
    font-size: 0.9rem;
    color: #999;
    line-height: 1.6;
}

.process-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Tokenomics Section */
.tokenomics {
    background: var(--background-dark);
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.token-info,
.token-usecases {
    background: var(--background-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 13, 223, 0.1);
}

.token-info h3,
.token-usecases h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.token-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.token-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 13, 223, 0.05);
    border-radius: 10px;
    gap: 1rem;
}

.token-detail-item .label {
    font-weight: 600;
    color: #999;
}

.token-detail-item .value {
    font-weight: 700;
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: right;
}

.usecases-list {
    list-style: none;
    padding: 0;
}

.usecases-list li {
    padding: 1rem 0 1rem 2rem;
    position: relative;
    color: #aaa;
    border-bottom: 1px solid rgba(13, 61, 255, 0.1);
}

.usecases-list li:last-child {
    border-bottom: none;
}

.usecases-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 900;
}

/* Token Distribution */
.token-distribution {
    background: var(--background-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 13, 223, 0.2);
    margin-bottom: 3rem;
}

.token-distribution h3 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--text-light);
}

.distribution-chart {
    text-align: center;
    margin-bottom: 3rem;
}

.tokenomics-img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(13, 61, 255, 0.2);
}

.distribution-note {
    text-align: center;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.distribution-table {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.distribution-item {
    position: relative;
    padding: 1.5rem;
    background: rgba(255, 13, 223, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 13, 223, 0.2);
    transition: var(--transition);
}

.distribution-item:hover {
    background: rgba(255, 13, 223, 0.1);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 13, 223, 0.3);
}

.dist-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 13, 223, 0.8) 0%, rgba(255, 105, 240, 0.6) 100%);
    border-radius: 12px 0 0 12px;
    z-index: 0;
    transition: width 1s ease;
}

.dist-label {
    position: relative;
    z-index: 1;
    font-weight: 600;
    color: var(--text-light);
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.5rem;
}

.dist-value {
    position: relative;
    z-index: 1;
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1rem;
    display: block;
}

/* Token Economy */
.token-economy {
    background: var(--background-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 13, 223, 0.2);
}

.token-economy h3 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--text-light);
}

.economy-cycle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.economy-item {
    text-align: center;
    flex: 0 1 180px;
}

.economy-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(255, 13, 223, 0.2), rgba(255, 105, 240, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
}

.economy-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.economy-item p {
    font-size: 0.9rem;
    color: #999;
}

.economy-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Features Section */
.features {
    background: var(--background-darker);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(255, 13, 223, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--background-card);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 13, 223, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(13, 61, 255, 0.3);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-secondary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-card p {
    color: #aaa;
    line-height: 1.8;
}

/* Roadmap Section */
.roadmap {
    background: var(--background-dark);
}

.roadmap-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 70px;
    top: 20px;
    bottom: 20px;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 200px;
    margin-bottom: 4rem;
    min-height: 80px;
}

.timeline-item:last-child {
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 160px;
    padding: 1rem 1.2rem;
    background: var(--gradient-primary);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 5px 20px rgba(255, 13, 223, 0.4);
    z-index: 10;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid #8B5CF6;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.timeline-content {
    background: var(--background-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 13, 223, 0.1);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 13, 223, 0.3);
    transform: translateX(5px);
}

.timeline-content h3 {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.roadmap-list {
    list-style: none;
    padding: 0;
}

.roadmap-list li {
    padding: 0.9rem 0 0.9rem 2.5rem;
    position: relative;
    color: #aaa;
    line-height: 1.8;
    font-size: 0.95rem;
}

.roadmap-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: bold;
}

/* Team Section */
.team {
    background: var(--background-darker);
}

.team-info {
    max-width: 900px;
    margin: 0 auto 4rem;
    background: var(--background-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 13, 223, 0.1);
}

.team-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.team-info p {
    color: #aaa;
    line-height: 1.8;
    font-size: 1.1rem;
}

.team-section-title {
    text-align: center;
    margin: 4rem 0 3rem;
}

.team-section-title h3 {
    font-size: 2rem;
    color: var(--text-light);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.team-section-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-member {
    background: var(--background-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 13, 223, 0.1);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(13, 61, 255, 0.3);
}

.member-photo {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-photo img {
    width: auto;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
    margin-top: 4px;
}

/* Individual member photo adjustments */
.member-photo img[src*="member_1.jpg"] {
    margin-top: 14px;
}

.member-photo img[src*="member_4.jpg"],
.member-photo img[src*="member_5.jpg"] {
    margin-top: 30px;
}

.team-member:hover .member-photo img {
    transform: scale(1.05);
}

.member-info {
    padding: 2rem;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.member-title {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(13, 61, 255, 0.2);
}

.member-career {
    list-style: none;
    padding: 0;
}

.member-career li {
    padding: 0.6rem 0 0.6rem 1.8rem;
    position: relative;
    color: #aaa;
    line-height: 1.6;
    font-size: 0.95rem;
}

.member-career li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: bold;
}

/* Disclaimer Section */
.disclaimer {
    background: var(--background-dark);
}

.disclaimer-content {
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-item {
    background: var(--background-card);
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 87, 34, 0.2);
}

.disclaimer-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ff5722;
}

.disclaimer-item p {
    color: #aaa;
    line-height: 1.8;
}

.disclaimer-list {
    list-style: none;
    padding: 0;
}

.disclaimer-list li {
    padding: 0.8rem 0 0.8rem 2rem;
    position: relative;
    color: #aaa;
    line-height: 1.6;
}

.disclaimer-list li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    color: #ff5722;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: var(--background-darker);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(13, 61, 255, 0.1);
}

.footer-main {
    display: grid;
    grid-template-columns: 50% 25% 25%;
    gap: 3rem;
}

.footer-left h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 1rem;
    color: #999;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 13, 223, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid rgba(255, 13, 223, 0.2);
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 61, 255, 0.4);
}

.social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Dark mode: brighten social icons for better visibility */
body.dark-theme .social-link {
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-theme .social-link img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

body.dark-theme .social-link:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

body.dark-theme .social-link:hover img {
    opacity: 1;
}

.footer-company-info p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #b7b7b7;
    line-height: 1.6;
}

.footer-right {
    grid-column: 2 / 4;
}

.footer-links-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.footer-section a {
    display: block;
    color: #999;
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    * {
        max-width: 100vw !important;
    }

    body, html {
        width: 100vw !important;
        overflow-x: hidden !important;
        position: relative;
    }

    .container {
        padding: 0 16px !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .navbar {
        height: 70px;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .navbar .container {
        width: 100% !important;
        padding: 0 16px !important;
    }

    #header {
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        max-width: 100vw;
        height: calc(100vh - 70px);
        background-color: var(--background-card);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
        transition: var(--transition);
        margin-left: 0;
        margin-right: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .header-right {
        display: flex;
    }

    .header-right .theme-toggle,
    .header-right .lang-switcher {
        display: none;
    }

    /* 모바일 메뉴 안에 테마/언어 전환 추가 */
    .nav-menu.active::before {
        content: '';
        display: block;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu .theme-toggle,
    .nav-menu .lang-switcher {
        display: flex !important;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .theme-toggle {
        padding: 10px 20px;
        font-size: 1.2rem;
    }

    .lang-switcher {
        gap: 1rem;
    }

    .lang-btn {
        width: 36px;
        height: 36px;
    }

    section {
        padding: 3rem 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .hero {
        padding: 0 !important;
        max-width: 100vw !important;
        width: 100vw !important;
    }

    .hero-content {
        padding: 1rem !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    .hero-slideshow {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }

    .hero-slideshow .fg-slot,
    .hero-slideshow .bg-slot {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }

    .process-steps, .economy-cycle {
        gap: 1rem !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .economy-cycle {
        flex-direction: column;
    }

    .economy-arrow {
        transform: rotate(90deg);
    }

    .timeline-item {
        padding-left: 0;
        padding-top: 80px;
        margin-bottom: 2rem;
    }

    .timeline-marker {
        width: 140px;
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
        left: 50%;
        transform: translateX(-50%);
        top: 0;
    }

    .timeline-marker::after {
        display: none;
    }

    .roadmap-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-right {
        grid-column: 1;
    }

    .footer-links-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
        width: 100%;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .stats-grid {
        gap: 1rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .about-grid,
    .tokenomics-grid,
    .features-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .ecosystem-showcase {
        grid-template-columns: 1fr;
    }

    .distribution-table {
        grid-template-columns: 1fr;
    }
}

/* Mobile Controls in Menu */
.mobile-controls {
    display: none;
}

@media (max-width: 768px) {
    .mobile-controls {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Member Placeholder */
.member-placeholder {
    background: linear-gradient(135deg, rgba(255, 13, 223, 0.1) 0%, rgba(255, 105, 240, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 5rem;
    opacity: 0.3;
}

/* SVG Icon Styles */
.about-icon-svg,
.economy-icon-svg,
.feature-icon-svg {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto 1.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

/* Icon Container Alignment */
.about-card,
.feature-card,
.economy-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
}

/* Ensure icons are centered and properly spaced */
.about-card img,
.feature-card img,
.economy-item img {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

/* Additional icon styling for consistency */
.about-card .about-icon-svg,
.feature-card .feature-icon-svg,
.economy-item .economy-icon-svg {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}


/* Light Theme Hero Section - 비디오 그대로 사용 */
body.light-theme .hero-overlay {
    background: rgba(0, 0, 0, 0.01);
}

body.light-theme .hero-title,
body.light-theme .hero-subtitle,
body.light-theme .hero-description {
    color: #ffffff;
}

body.light-theme .hero-badge {
    background: rgba(255, 13, 223, 0.2);
    color: #ffffff;
    border-color: #ff0ddf;
}

/* MYPOOL Showcase Image */
.mypool-showcase {
    max-width: 400px;
    margin: 3rem auto;
    text-align: center;
}

.showcase-image {
    width: 100%;
    max-width: 400px;
    height: auto;
}

@media (max-width: 768px) {
    .mypool-showcase {
        margin: 2rem auto;
        padding: 0 1rem;
        max-width: 300px;
    }

    .showcase-image {
        width: 100%;
    }
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.8s ease, transform 0.8s ease;
    overflow: hidden;
}

/* Hero 두 슬롯 방식 */
.hero-slideshow .fg-slot,
.hero-slideshow .bg-slot {
    position: absolute;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    top: 0;
    left: 0;
    right: 0;
    transform: scale(1.2);
    opacity: 0;
    transition: transform 3s ease-out, opacity 1.2s ease-out;
    overflow: hidden;
}

.hero-slideshow .fg-slot.active,
.hero-slideshow .bg-slot.active {
    opacity: 1;
    transform: scale(1);
    transition: transform 4s ease-out, opacity 1.2s ease-out;
}

/* 한국어 word-break */
body[lang="ko"],
html[lang="ko"] body {
    word-break: keep-all;
}


/* Team member photo scaling for kimjinguk */
.team-member img[src*="kimjinguk"] {
    transform: scale(1.0);
}



@media (max-width: 768px) {
    .team-member img[src*="kimjinguk"] {
        transform: scale(1.0);
    }
    
    
}


/* Mobile menu fix - single line controls and compact layout */
@media (max-width: 768px) {
    .nav-menu {
        padding-top: 60px !important;
    }
    
    .nav-menu .mobile-controls {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
        padding-bottom: 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .nav-menu .theme-toggle,
    .nav-menu .lang-switcher {
        margin-bottom: 0 !important;
    }
    
    .nav-menu.active::before {
        display: none !important;
    }
    
    .nav-menu a {
        padding: 0.8rem 0 !important;
        font-size: 1rem !important;
    }
}

/* Pie Chart - PC & Mobile 모두 세로 배치 */
.pie-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
}

.pie-chart-wrapper {
    position: relative;
    width: 420px;
    height: 420px;
    flex-shrink: 0;
}

#distributionChart {
    width: 100% !important;
    height: 100% !important;
}

.pie-legend {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    max-width: 700px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 13, 223, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 13, 223, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.legend-item:hover,
.legend-item.active {
    background: rgba(255, 13, 223, 0.2);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.legend-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
}

.legend-amount {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Tablet */
@media (max-width: 900px) {
    .pie-chart-wrapper {
        width: 350px;
        height: 350px;
    }
    
    .pie-legend {
        max-width: 500px;
    }
    
    .legend-amount {
        display: none;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .pie-chart-wrapper {
        width: 260px;
        height: 260px;
    }
    
    .pie-legend {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .legend-item {
        justify-content: space-between;
        padding: 0.5rem 0.8rem;
    }
    
    .legend-label {
        font-size: 0.85rem;
    }
    
    .legend-value {
        font-size: 0.85rem;
    }
}

/* 320px */
@media (max-width: 359px) {
    .pie-chart-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .pie-legend {
        padding: 0 0.5rem;
        gap: 0.4rem;
    }
    
    .legend-item {
        flex-wrap: wrap;
        padding: 0.4rem 0.6rem;
        gap: 0.15rem 0.4rem;
    }
    
    .legend-label {
        flex: 1 1 calc(100% - 20px);
        font-size: 0.75rem;
    }
    
    .legend-value {
        width: 100%;
        text-align: left;
        padding-left: 18px;
        font-size: 0.7rem;
        color: var(--text-secondary);
    }
}
