/* Global Variables & Theme Setup */
:root {
    --bg-darker: #050e0a;
    --bg-dark: #0a1b14;
    --bg-panel: rgba(10, 27, 20, 0.65);
    --bg-panel-hover: rgba(14, 38, 28, 0.85);
    
    --primary: #cb7a4d;          /* Terracotta Clay */
    --primary-hover: #e08b5c;
    --accent-jade: #32c489;      /* Jade Green */
    --accent-gold: #d4af37;      /* Antique Gold */
    --text-main: #f1f5f9;        /* Slate-100 */
    --text-sub: #94a3b8;         /* Slate-400 */
    --text-muted: #64748b;       /* Slate-500 */
    --border-color: rgba(50, 196, 137, 0.15);
    --border-hover: rgba(50, 196, 137, 0.35);
    
    --font-headers: 'Outfit', 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headers);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: #0f3024;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-jade);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.hidden {
    display: none !important;
}

/* Glassmorphism Panel Common Styles */
.glass-card {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: var(--bg-panel-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

/* Navigation Bar */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 14, 10, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(50, 196, 137, 0.1);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.emblem {
    font-size: 1.6rem;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(203, 122, 77, 0.6));
    animation: flamePulse 2s infinite ease-in-out;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.npo-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.en-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--text-sub);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-sub);
    position: relative;
    padding: 0.4rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-jade);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: #ffffff;
}

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

.nav-btn {
    background: linear-gradient(135deg, var(--primary), #b06237);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    border: none;
    box-shadow: 0 4px 15px rgba(203, 122, 77, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(203, 122, 77, 0.5);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 999;
    box-shadow: var(--shadow-premium);
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-sub);
}

.mobile-btn {
    background: linear-gradient(135deg, var(--primary), #b06237);
    color: #ffffff;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem;
    border-radius: 8px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
    padding-right: 10%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: zoomOut 20s forwards cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(50, 196, 137, 0.12);
    border: 1px solid rgba(50, 196, 137, 0.25);
    color: var(--accent-jade);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero-section .highlight {
    background: linear-gradient(120deg, var(--primary) 30%, var(--accent-gold) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-section p {
    font-size: 1.1rem;
    color: var(--text-main);
    opacity: 0.9;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #b06237);
    color: #ffffff;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(203, 122, 77, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(203, 122, 77, 0.5);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-sub);
    animation: bounceUpDown 2s infinite;
}

/* Section Common Styling */
section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

.section-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-jade);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.8rem;
}

.section-tag-light {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.8rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-sub);
}

/* About Mission Section */
.about-section {
    background: radial-gradient(circle at 10% 20%, rgba(10, 27, 20, 0.4) 0%, rgba(5, 14, 10, 0.1) 90%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
    margin-bottom: 6rem;
}

.about-card {
    padding: 3rem 2.2rem;
    text-align: center;
}

.card-icon {
    font-size: 2.2rem;
    color: var(--accent-jade);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 10px rgba(50, 196, 137, 0.25));
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-sub);
    font-size: 0.95rem;
    text-align: justify;
}

/* Stats panel */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 2.5rem;
    text-align: center;
    border-color: rgba(50, 196, 137, 0.25);
    background: linear-gradient(135deg, rgba(10,27,20,0.8), rgba(6,14,10,0.8));
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    width: 1px;
    height: 70%;
    background: rgba(50, 196, 137, 0.15);
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-sub);
    font-weight: 500;
}

/* Projects Section */
.projects-section {
    background-color: var(--bg-dark);
}

.project-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 0.8rem 1.8rem;
    color: var(--text-sub);
    font-family: var(--font-headers);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: #ffffff;
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.06);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(203, 122, 77, 0.3);
}

.tab-content-wrapper {
    position: relative;
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.6s forwards;
}

.tab-content.active {
    display: block;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(to right, #ffffff, var(--text-sub));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-lead {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.project-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.project-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.project-features li i {
    color: var(--accent-jade);
    margin-top: 0.2rem;
    font-size: 1.1rem;
}

.event-highlight-box {
    background: rgba(203, 122, 77, 0.08);
    border: 1px dashed rgba(203, 122, 77, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.event-badge {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
}

.bg-clay {
    background: #cb7a4d !important;
}

.event-highlight-box h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.event-meta {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.project-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
}

.project-media img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.project-media:hover img {
    transform: scale(1.03);
}

.media-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(5,14,10,0.9), transparent);
    padding: 1.5rem 1rem 0.8rem 1rem;
    font-size: 0.8rem;
    color: var(--text-sub);
    text-align: center;
}

.media-illustration {
    background: radial-gradient(circle at center, #0f3024 0%, #06150f 100%);
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--accent-jade);
}

.media-illustration i {
    font-size: 5rem;
    filter: drop-shadow(0 0 15px rgba(50,196,137,0.3));
}

.media-illustration span {
    font-size: 0.9rem;
    color: var(--text-sub);
}

.book-card-mini {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    align-items: center;
    border-color: rgba(203, 122, 77, 0.2);
}

.book-icon {
    font-size: 3rem;
    color: var(--primary);
}

.book-card-mini h5 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.author-info {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-bottom: 0.5rem;
}

.book-desc {
    font-size: 0.85rem;
    color: var(--text-main);
}

/* Gallery Section */
.gallery-section {
    background: radial-gradient(circle at 90% 80%, rgba(10, 27, 20, 0.4) 0%, rgba(5, 14, 10, 0.1) 90%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.gallery-card {
    overflow: hidden;
    cursor: pointer;
    border-radius: 16px;
}

.gallery-img-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.pattern-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1b14, #123024);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent-jade);
}

.gallery-card:hover .gallery-img-wrapper img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 2rem 1.8rem;
}

.artifact-meta {
    font-family: var(--font-headers);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.gallery-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.artifact-snippet {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 1.5rem;
    height: 3.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.learn-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-jade);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-card:hover .learn-more {
    color: #ffffff;
}

/* News Section */
.news-section {
    background-color: var(--bg-dark);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 2.5rem;
    padding: 2.2rem;
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    border-right: 1px solid rgba(50, 196, 137, 0.15);
    padding-right: 2.5rem;
}

.news-date .day {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-jade);
}

.news-date .month {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-top: 0.3rem;
}

.news-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-cat {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.badge-orange { background: rgba(203, 122, 77, 0.15); color: var(--primary); border: 1px solid rgba(203, 122, 77, 0.3); }
.badge-green { background: rgba(50, 196, 137, 0.15); color: var(--accent-jade); border: 1px solid rgba(50, 196, 137, 0.3); }
.badge-blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }

.news-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
}

.news-body p {
    font-size: 0.95rem;
    color: var(--text-sub);
    text-align: justify;
}

/* Support/Join Section */
.join-section {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-darker);
}

.join-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(203, 122, 77, 0.08) 0%, transparent 45%);
    pointer-events: none;
    z-index: 1;
}

.join-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
    align-items: center;
}

.join-info h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.join-info p {
    font-size: 1.05rem;
    color: var(--text-sub);
    margin-bottom: 3rem;
}

.support-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.support-opt {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.support-opt i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 0.2rem;
    filter: drop-shadow(0 2px 8px rgba(203, 122, 77, 0.3));
}

.support-opt h4 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.support-opt p {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 0;
}

.join-form-wrapper {
    padding: 3rem 2.5rem;
    border-color: rgba(203, 122, 77, 0.15);
}

.join-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.join-form-wrapper p {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.req {
    color: var(--primary);
    font-size: 0.75rem;
    margin-left: 0.3rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: rgba(5, 14, 10, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(203, 122, 77, 0.2);
}

.contact-form select option {
    background-color: var(--bg-dark);
    color: #ffffff;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), #b06237);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(203, 122, 77, 0.3);
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(203, 122, 77, 0.5);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}

.form-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.form-feedback.success {
    background: rgba(50, 196, 137, 0.15);
    border: 1px solid var(--accent-jade);
    color: #a7f3d0;
}

.form-feedback.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

/* Site Footer */
.site-footer {
    background-color: #030a07;
    border-top: 1px solid rgba(50, 196, 137, 0.1);
    padding: 5rem 0 2rem 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-logo {
    font-family: var(--font-headers);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
}

.footer-logo i {
    color: var(--primary);
    animation: flamePulse 2s infinite ease-in-out;
}

.footer-brand p {
    color: var(--text-sub);
    font-size: 0.95rem;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(50, 196, 137, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-info h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-jade);
    display: inline-block;
    padding-bottom: 0.4rem;
}

.meta-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.meta-list li {
    color: var(--text-sub);
}

.meta-list li strong {
    color: #ffffff;
}

.meta-list li a {
    color: var(--accent-jade);
}

.meta-list li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 14, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90%;
    overflow-y: auto;
    padding: 3rem;
    border-radius: 20px;
    border-color: rgba(50, 196, 137, 0.25);
    animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

/* Modal Inner content styles */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.modal-media img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.modal-details h2 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.modal-details .meta {
    font-family: var(--font-headers);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.modal-details p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
}

.modal-features {
    background: rgba(50, 196, 137, 0.05);
    border-left: 3px solid var(--accent-jade);
    padding: 1.2rem;
    border-radius: 0 12px 12px 0;
    font-size: 0.9rem;
    color: var(--text-sub);
}

/* Keyframe Animations */
@keyframes flamePulse {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(203, 122, 77, 0.4)); opacity: 0.9; }
    50% { filter: drop-shadow(0 0 12px rgba(203, 122, 77, 0.8)); opacity: 1; }
}

@keyframes zoomOut {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.0); }
}

@keyframes bounceUpDown {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -10px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1.0); opacity: 1; }
}

/* Fade in classes */
.fade-in {
    animation: fadeIn 1s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up {
    opacity: 0;
    animation: fadeIn 1s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-section h1 { font-size: 2.8rem; }
    .about-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { gap: 2rem; }
}

@media (max-width: 768px) {
    section { padding: 5rem 0; }
    .mobile-toggle { display: block; }
    .nav-links { display: none; }
    .hero-section { justify-content: center; text-align: center; }
    .hero-actions { justify-content: center; }
    .about-grid, .gallery-grid, .join-grid, .project-detail-grid, .modal-grid, .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
    .stats-panel { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .stat-item::after { display: none; }
    .news-item { flex-direction: column; gap: 1rem; }
    .news-date { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(50, 196, 137, 0.15); padding-bottom: 1rem; min-width: auto; align-items: flex-start; }
    .news-date .day { font-size: 1.8rem; }
    .tab-btn { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .stats-panel { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}
