﻿/* Reset and Base Styles */
:root {
    /* Logo-inspired color scheme with deep blue as primary */
    --primary-color: #0A0A23; /* Deep navy from logo background */
    --primary-light: #1A1A2E; /* Lighter navy for accents */
    --primary-dark: #050510; /* Darker navy for shadows */
    --secondary-color: #20B2AA; /* Teal from logo leaves */
    --accent-color: #FFD700; /* Golden yellow from bird */
    --accent-light: #FFA500; /* Orange accent from bird's beak */
    --green-primary: #32CD32; /* Bright green from tree leaves */
    --green-secondary: #228B22; /* Forest green */
    --blue-primary: #1E90FF; /* Blue from swirling elements */
    --blue-secondary: #4169E1; /* Royal blue */
    --red-accent: #8B0000; /* Deep red from tree trunk - subtle accent only */
    --red-light: #DC143C; /* Brighter red - subtle accent only */
    --bg-dark: #0A0A23; /* Deep navy from logo background */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #E8F4F8; /* Light teal tint */
    --text-primary: #1A1A2E; /* Very dark navy */
    --text-secondary: #4A4A6A; /* Medium navy */
    --text-light: #6B7280;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #0A0A23 0%, #1A1A2E 100%);
    --gradient-secondary: linear-gradient(135deg, #20B2AA 0%, #1E90FF 100%);
    --gradient-accent: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-green: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
    --gradient-blue: linear-gradient(135deg, #0A0A23 0%, #4169E1 100%);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #0A0A23; /* Deep navy background */
    --bg-secondary: #1A1A2E; /* Lighter navy for cards */
    --bg-tertiary: #151530; /* Slightly lighter navy for philosophy section */
    --text-primary: #FFFFFF; /* White text */
    --text-secondary: #E0E0E0; /* Light grey text */
    --text-light: #B0B0B0; /* Lighter grey text */
    --border-color: #2A2A4A; /* Dark blue borders */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Loading State */
body:not(.loaded) .hero-content > * {
    opacity: 0;
    transform: translateY(30px);
}

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

[data-theme="dark"] .navbar {
    background: rgba(10, 10, 35, 0.95);
    border-bottom-color: var(--border-color);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    max-width: 65px;
    max-height: 65px;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .logo-text {
    color: var(--accent-color);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    white-space: nowrap;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.dropdown-link.active {
    background: var(--primary-color);
    color: var(--bg-primary);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-link:hover {
    background: var(--bg-tertiary);
    color: var(--accent-color);
}

[data-theme="dark"] .dropdown-link.active {
    background: var(--accent-color);
    color: var(--bg-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #F8F9FA 0%, #E8F4F8 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0A0A23 0%, #1A1A2E 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-accent);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    animation: pulse 2s infinite;
}

.hero-badge i {
    font-size: 1rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.6s ease;
}

[data-theme="dark"] .hero-title {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    transition: all 0.6s ease;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    transition: all 0.6s ease;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dark mode hero stats */
[data-theme="dark"] .stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .stat-number {
    color: var(--accent-color);
}

[data-theme="dark"] .stat-label {
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    transition: all 0.6s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 48px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
    pointer-events: none;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-width: 2px;
    border-style: solid;
}

[data-theme="dark"] .btn-secondary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    min-height: 56px;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Hero Visual - Floating Elements */
.hero-visual {
    position: relative;
    height: 400px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
    overflow: hidden; /* keep inner images clipped to the circle */
}

.element-1 {
    width: 130px; /* Largest: LUNC */
    height: 130px;
    background: url('images/Terra-Classic-LUNC-Logo-Vector.png') center/100% no-repeat; /* no circle bg */
    top: 8%;
    left: 5%;
    animation-delay: 0s;
    opacity: 0.95;
}

.element-2 {
    width: 110px; /* Second: USTC */
    height: 110px;
    background: url('images/Terra-Classic-USTC-Logo-Vector.png') center/100% no-repeat; /* no circle bg */
    top: 65%;
    right: 5%;
    animation-delay: 1s;
    opacity: 0.95;
}

.element-3 {
    width: 90px; /* Third: Binance */
    height: 90px;
    background: url('images/binance.png') center/100% no-repeat; /* no circle bg */
    bottom: 15%;
    left: 25%;
    animation-delay: 2s;
    opacity: 0.95;
}

.element-4 {
    width: 70px; /* Fourth: CZ */
    height: 70px;
    background: #0A0A23; /* base */
    background: radial-gradient(ellipse at center, #0a0a23 0%, #07071a 100%); /* slightly darker than site background */
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 3s;
}

.element-5 {
    width: 60px; /* Fifth: Do */
    height: 60px;
    background: radial-gradient(ellipse at center, #0a0a23 0%, #07071a 100%);
    bottom: 40%;
    right: 25%;
    animation-delay: 4s;
}

.element-6 {
    width: 80px; /* Medium small: site logo */
    height: 80px;
    background: radial-gradient(ellipse at center, #0a0a23 0%, #07071a 100%);
    top: 15%;
    right: 5%;
    animation-delay: 5s;
}

/* Ensure inner images stay within circular elements */
.element img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 75%;
    object-fit: contain;
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Decorative bubbles */
.decorative-bubble {
    background: radial-gradient(circle, rgba(32, 178, 170, 0.25) 0%, rgba(32, 178, 170, 0.1) 100%);
    opacity: 0.4;
    border: none;
    will-change: transform;
    transform-origin: center center;
    animation: none; /* Override float animation to allow parallax */
}

.bubble-1 {
    width: 45px;
    height: 45px;
    top: 5%;
    left: 15%;
    animation-delay: 0.5s;
    background: radial-gradient(circle, rgba(32, 178, 170, 0.25) 0%, rgba(32, 178, 170, 0.1) 100%);
}

.bubble-2 {
    width: 35px;
    height: 35px;
    top: 15%;
    left: 12%;
    animation-delay: 1.5s;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.25) 0%, rgba(30, 144, 255, 0.1) 100%);
}

.bubble-3 {
    width: 55px;
    height: 55px;
    top: 25%;
    left: 18%;
    animation-delay: 2.5s;
    background: radial-gradient(circle, rgba(50, 205, 50, 0.2) 0%, rgba(50, 205, 50, 0.05) 100%);
}

.bubble-4 {
    width: 40px;
    height: 40px;
    top: 35%;
    left: 35%;
    animation-delay: 3.5s;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.bubble-5 {
    width: 30px;
    height: 30px;
    top: 45%;
    left: 40%;
    animation-delay: 4.5s;
    background: radial-gradient(circle, rgba(32, 178, 170, 0.2) 0%, rgba(32, 178, 170, 0.05) 100%);
}

.bubble-6 {
    width: 50px;
    height: 50px;
    top: 55%;
    left: 35%;
    animation-delay: 0.8s;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.2) 0%, rgba(30, 144, 255, 0.05) 100%);
}

.bubble-7 {
    width: 38px;
    height: 38px;
    top: 10%;
    right: 30%;
    animation-delay: 1.8s;
    background: radial-gradient(circle, rgba(50, 205, 50, 0.25) 0%, rgba(50, 205, 50, 0.1) 100%);
}

.bubble-8 {
    width: 42px;
    height: 42px;
    top: 65%;
    right: 18%;
    animation-delay: 2.8s;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.1) 100%);
}

.bubble-9 {
    width: 33px;
    height: 33px;
    top: 75%;
    right: 15%;
    animation-delay: 3.8s;
    background: radial-gradient(circle, rgba(32, 178, 170, 0.2) 0%, rgba(32, 178, 170, 0.05) 100%);
}

.bubble-10 {
    width: 48px;
    height: 48px;
    top: 50%;
    right: 35%;
    animation-delay: 4.8s;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.2) 0%, rgba(30, 144, 255, 0.05) 100%);
}

.bubble-11 {
    width: 36px;
    height: 36px;
    top: 8%;
    left: 28%;
    animation-delay: 0.3s;
    background: radial-gradient(circle, rgba(50, 205, 50, 0.2) 0%, rgba(50, 205, 50, 0.05) 100%);
}

.bubble-12 {
    width: 44px;
    height: 44px;
    top: 18%;
    left: 22%;
    animation-delay: 1.2s;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.bubble-13 {
    width: 32px;
    height: 32px;
    top: 28%;
    left: 8%;
    animation-delay: 2.2s;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.2) 0%, rgba(30, 144, 255, 0.05) 100%);
}

.bubble-14 {
    width: 41px;
    height: 41px;
    top: 38%;
    left: 30%;
    animation-delay: 3.2s;
    background: radial-gradient(circle, rgba(32, 178, 170, 0.25) 0%, rgba(32, 178, 170, 0.1) 100%);
}

.bubble-15 {
    width: 37px;
    height: 37px;
    top: 48%;
    left: 18%;
    animation-delay: 4.2s;
    background: radial-gradient(circle, rgba(50, 205, 50, 0.2) 0%, rgba(50, 205, 50, 0.05) 100%);
}

.bubble-16 {
    width: 43px;
    height: 43px;
    top: 58%;
    left: 28%;
    animation-delay: 0.6s;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.bubble-17 {
    width: 35px;
    height: 35px;
    top: 68%;
    left: 15%;
    animation-delay: 1.6s;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.2) 0%, rgba(30, 144, 255, 0.05) 100%);
}

.bubble-18 {
    width: 39px;
    height: 39px;
    top: 12%;
    right: 22%;
    animation-delay: 2.6s;
    background: radial-gradient(circle, rgba(32, 178, 170, 0.2) 0%, rgba(32, 178, 170, 0.05) 100%);
}

.bubble-19 {
    width: 46px;
    height: 46px;
    top: 22%;
    right: 28%;
    animation-delay: 3.6s;
    background: radial-gradient(circle, rgba(50, 205, 50, 0.25) 0%, rgba(50, 205, 50, 0.1) 100%);
}

.bubble-20 {
    width: 34px;
    height: 34px;
    top: 32%;
    right: 12%;
    animation-delay: 4.6s;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.05) 100%);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Blockchain Data Section */
.blockchain-data {
    padding: 80px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .blockchain-data {
    background: var(--bg-tertiary);
}

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

.data-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.data-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.data-icon i {
    font-size: 1.5rem;
    color: white;
}

.data-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.data-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.data-change {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--green-primary);
}

.data-change.negative {
    color: var(--red-light);
}

.data-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* TradingView Chart Section */
.price-chart {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.tradingview-widget-container {
    width: 100%;
    height: 600px;
    margin-top: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.tradingview-widget-container__widget {
    width: 100%;
    height: 100%;
}

[data-theme="dark"] .tradingview-widget-container {
    border-color: var(--border-color);
}

/* Community Section */
.community {
    padding: 80px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .community {
    background: var(--bg-tertiary);
}

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

.community-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.community-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.community-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.community-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Token Logos Section */
.token-logos {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.token-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.logo-item span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Validator Performance Section */
.validator-performance {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

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

.performance-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.performance-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.performance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.performance-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.performance-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.performance-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.performance-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 4px;
    transition: width 1s ease;
    width: 0%;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.recovery-list {
    list-style: none;
    margin: 2rem 0;
}

.recovery-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.recovery-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-primary);
    font-weight: bold;
    font-size: 1.25rem;
}

.network-diagram {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    position: relative;
}

.node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.node:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

.node i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.node span {
    font-weight: 600;
    color: var(--text-primary);
}

/* Philosophy Section */
.philosophy {
    padding: 80px 0;
    background: var(--bg-tertiary);
    transition: background-color 0.3s ease;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.philosophy-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

.philosophy-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.philosophy-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Commitment Section */
.commitment {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.commitment-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.commitment-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.commitment-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.commitment-icon i {
    font-size: 1.5rem;
    color: white;
}

.commitment-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.commitment-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta .btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.cta .btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.cta-footer {
    font-size: 1.125rem;
    opacity: 0.8;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section p {
    color: #9CA3AF;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9CA3AF;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .commitment-grid {
        grid-template-columns: 1fr;
    }
    
    .data-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .performance-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin-left: 1rem;
    }
    
    
    .dropdown-link {
        padding: 0.5rem 1rem;
        border-left: 2px solid var(--border-color);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .theme-toggle {
        top: 90px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .tradingview-widget-container {
        height: 400px;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .philosophy-card,
    .commitment-item,
    .data-card,
    .performance-card,
    .community-card {
        padding: 1.5rem;
    }
    
    .tradingview-widget-container {
        height: 300px;
    }
    
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .token-logo {
        width: 60px;
        height: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .main-node {
        width: 100px;
        height: 100px;
    }
    
    .main-node i {
        font-size: 2rem;
    }
    
    .main-node span {
        font-size: 1rem;
    }
    
    .sub-node {
        width: 70px;
        height: 70px;
    }
    
    .sub-node i {
        font-size: 1.25rem;
    }
    
    .sub-node span {
        font-size: 0.625rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.philosophy-card:hover .card-icon {
    transform: scale(1.1);
}

.commitment-item:hover .commitment-icon {
    transform: scale(1.1);
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.social-links a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Loading Spinner */
.btn i.fa-spinner {
    margin-right: 8px;
}

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }
    
    .floating-elements {
        display: none;
    }
    
    .network-diagram {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .node {
        padding: 1.5rem;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .commitment-grid {
        grid-template-columns: 1fr;
    }
    
    .commitment-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-visual,
    .floating-elements,
    .btn,
    .social-links,
    .theme-toggle {
        display: none !important;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
