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

/* Fix for overlapping elements and layout issues */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Ensure proper stacking context */
.about-mixed-grid,
.city-gallery-grid,
.assets-grid,
.island-gallery-grid,
.hero-island-background {
    position: relative;
    z-index: 1;
}

/* Fix for image containers */
.about-card,
.city-gallery-item,
.asset-card,
.island-gallery-item,
.hero-island-bg-item {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Image loading and display fixes */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Prevent image overlap and ensure proper sizing */
.about-card img,
.city-gallery-item img,
.asset-card img,
.island-gallery-item img,
.hero-island-bg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Fix for broken image display */
img[src=""],
img:not([src]) {
    background: var(--background-light);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

img[src=""]:before,
img:not([src]):before {
    content: "图片加载中...";
    color: var(--text-light);
    font-size: 0.875rem;
}

:root {
    --primary-color: #0066FF;
    --secondary-color: #00CC88;
    --accent-color: #FF6B35;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-light: #999999;
    --background: #FFFFFF;
    --background-light: #F8FAFC;
    --background-dark: #1A1A1A;
    --border-color: #E5E7EB;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #0066FF 0%, #00CC88 100%);
    --gradient-secondary: linear-gradient(135deg, #FF6B35 0%, #FFD23F 100%);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

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

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

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

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo img {
    width: 40px;
    height: 40px;
}

.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;
}

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

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: 
        linear-gradient(135deg, rgba(248, 250, 252, 0.85) 0%, rgba(226, 232, 240, 0.85) 100%),
        url('image/island/32.jpg') center/cover no-repeat,
        url('image/island/33.jpg') center/cover no-repeat,
        url('image/island/34.jpg') center/cover no-repeat;
    padding-top: 80px;
    position: relative;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

.floating-card {
    position: absolute;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.floating-card:hover {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.25);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.floating-card:hover i {
    transform: rotateY(360deg) scale(1.2);
    color: var(--secondary-color);
}

.floating-card span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.floating-card:hover span {
    color: var(--primary-color);
}

.card-1 {
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 8%;
    right: 8%;
    animation-delay: 0.5s;
}

.card-3 {
    top: 28%;
    left: 12%;
    animation-delay: 1s;
}

.card-4 {
    top: 48%;
    right: 15%;
    animation-delay: 1.5s;
}

.card-5 {
    top: 68%;
    left: 8%;
    animation-delay: 2s;
}

.card-6 {
    bottom: 8%;
    right: 10%;
    animation-delay: 2.5s;
}

.card-7 {
    top: 18%;
    left: 35%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% { 
        transform: translateY(-25px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

/* Different animation variations for visual interest */
.card-1, .card-4, .card-7 {
    animation: float 6s ease-in-out infinite;
}

.card-2, .card-5 {
    animation: floatReverse 7s ease-in-out infinite;
}

.card-3, .card-6 {
    animation: floatSlow 8s ease-in-out infinite;
}

@keyframes floatReverse {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(-2deg);
    }
    50% { 
        transform: translateY(-30px) rotate(0deg);
    }
    75% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes floatSlow {
    0%, 100% { 
        transform: translateY(0px) scale(1);
    }
    50% { 
        transform: translateY(-20px) scale(1.05);
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

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

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

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

/* About Section */
.about {
    background: var(--background-light);
}

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

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
}

.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;
}

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

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

/* Mixed Grid Layout for About Section */
.about-mixed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    contain: layout;
}

.about-card.text-card {
    background: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.about-card.text-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.about-card.text-card .card-icon {
    width: 50px;
    height: 50px;
    margin: 0 0 1rem 0;
    border-radius: 10px;
}

.about-card.text-card .card-icon i {
    font-size: 1.25rem;
}

.about-card.text-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.about-card.text-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Image Cards */
.about-card.image-card {
    position: relative;
    aspect-ratio: 4/3;
    padding: 0;
    cursor: pointer;
    opacity: 0.9;
    text-align: left;
}

.about-card.image-card:hover {
    opacity: 1;
}

.about-card.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-card.image-card:hover img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card.image-card:hover .image-overlay {
    opacity: 1;
}

.image-overlay h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: white;
}

.image-overlay p {
    font-size: 0.75rem;
    opacity: 0.9;
    color: white;
}

/* Responsive for Mixed Grid */
@media (max-width: 968px) {
    .about-mixed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
}

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

@media (max-width: 640px) {
    .about {
        padding: 3rem 0;
    }
    
    .about-mixed-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        margin-top: 1.5rem;
    }
    
    .about-card.text-card {
        padding: 1.25rem;
    }
    
    .about-card.text-card h3 {
        font-size: 1.1rem;
    }
    
    .about-card.text-card p {
        font-size: 0.85rem;
    }
    
    .image-overlay {
        padding: 0.875rem;
    }
    
    .image-overlay h4 {
        font-size: 0.875rem;
    }
    
    .image-overlay p {
        font-size: 0.7rem;
    }
}

/* Assets Section */
.assets {
    padding: 5rem 0;
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    contain: layout;
}

/* Asset Mini Gallery */
.asset-mini-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.mini-gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--background-light);
}

.mini-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.asset-card-link:hover .mini-gallery-item img {
    transform: scale(1.1);
}

.asset-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.asset-card-link {
    position: relative;
}

.asset-card-link:hover .view-details {
    opacity: 1;
    transform: translateY(0);
}

.asset-card-link:hover .asset-image-photo img {
    transform: scale(1.05);
}

.asset-card-link:hover .asset-overlay {
    opacity: 1;
}

.asset-image {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.asset-image i {
    font-size: 2rem;
    color: white;
}

/* Asset Image Photo */
.asset-image-photo {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.asset-image-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.asset-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 111, 255, 0.8) 0%, rgba(0, 204, 136, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.asset-overlay i {
    font-size: 3rem;
    color: white;
}

.view-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.view-details i {
    transition: transform 0.3s ease;
}

.asset-card-link:hover .view-details i {
    transform: translateX(5px);
}

.asset-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.asset-metrics {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.metric {
    text-align: center;
    flex: 1;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* DEX Section */
.dex {
    background: var(--background-dark);
    color: white;
}

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

.dex-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.dex-text p {
    font-size: 1.125rem;
    color: #CCCCCC;
    margin-bottom: 2rem;
}

.dex-features {
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.feature h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #CCCCCC;
    margin: 0;
}

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

.dex-note {
    font-size: 0.875rem;
    color: #CCCCCC;
}

/* Chain Network Visual */
.chain-network {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chain {
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
}

.chain i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.chain span {
    font-size: 0.75rem;
    font-weight: 600;
}

.ethereum {
    top: 20%;
    left: 20%;
    background: #627EEA;
    color: white;
}

.arbitrum {
    top: 20%;
    right: 20%;
    background: #28A0F0;
    color: white;
}

.polygon {
    bottom: 20%;
    left: 20%;
    background: #8247E5;
    color: white;
}

.solana {
    bottom: 20%;
    right: 20%;
    background: #14F195;
    color: var(--text-primary);
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='10' height='10' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 10 0 L 0 0 0 10' fill='none' stroke='%23333' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grid)' /%3E%3C/svg%3E");
    opacity: 0.1;
}

/* Transparency Section */
.transparency {
    background: transparent;
}

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

.transparency-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.card-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

/* Monitoring Demo */
.monitoring-demo {
    background: var(--background-light);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.sensor-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.sensor-data:last-child {
    border-bottom: none;
}

.data-value {
    font-weight: 600;
    color: var(--primary-color);
}

.status-good {
    color: var(--secondary-color);
}

/* Blockchain Demo */
.blockchain-demo {
    margin-top: 1rem;
}

.block {
    background: var(--background-dark);
    border-radius: 8px;
    overflow: hidden;
}

.block-header {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.block-content {
    padding: 1rem;
}

.transaction {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: #CCCCCC;
    font-size: 0.875rem;
}

.transaction:not(:last-child) {
    border-bottom: 1px solid #333;
}

/* App Demo */
.app-demo {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 200px;
    height: 400px;
    background: var(--background-dark);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
}

.app-header {
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.app-content {
    font-size: 0.875rem;
}

.location, .health-status, .growth-data {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--background-light);
    border-radius: 4px;
}

/* Technology Section */
.technology {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* Technology Island Background */
.technology-island-background {
    display: none;
}

.technology .container {
    position: relative;
    z-index: 1;
}

.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tech-layer {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-left: 4px solid var(--primary-color);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-layer:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.layer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.layer-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.layer-tech {
    background: var(--background-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* Footer */
.footer {
    background: var(--background-dark);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

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

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

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

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

.contact-info p {
    margin-bottom: 0.5rem;
    color: #CCCCCC;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    padding: 6px 12px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }
    
    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }
    
    .language-switcher {
        margin: 1rem 0 0 0;
        justify-content: center;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat {
        min-width: 120px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .about-grid,
    .assets-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dex-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .chain-network {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .transparency-grid {
        grid-template-columns: 1fr;
    }
    
    .technology {
        padding: 4rem 0;
    }
    
    .technology-island-background {
        opacity: 0.12;
    }
    
    .tech-stack {
        padding: 0 1rem;
    }
    
    .tech-layer {
        padding: 1.5rem;
    }
    
    /* Better touch targets */
    .btn {
        min-height: 48px;
        font-size: 1rem;
    }
    
    /* Improved spacing */
    section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Buy BYF Section */
.buy-byf {
    background: transparent;
}

.buy-byf .section-header {
    margin-bottom: 3rem;
}

/* Token Price Card */
.token-price-card {
    max-width: 1000px;
    margin: 0 auto 3rem;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 111, 255, 0.15);
    border: 1px solid var(--border-color);
}

.price-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--background-light);
    margin-bottom: 1.5rem;
}

.token-logo {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.token-logo i {
    font-size: 1.75rem;
    color: white;
}

.token-name {
    flex: 1;
}

.token-name h3 {
    font-size: 1.5rem;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.token-network {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.token-network::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #00CC88;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

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

.okx-link {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.okx-link:hover {
    background: #0052CC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 111, 255, 0.3);
}

.price-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.price-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-stat .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.price-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-value {
    color: var(--primary-color);
}

.price-change {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.25rem;
}

.price-change.positive {
    background: rgba(0, 204, 136, 0.1);
    color: #00CC88;
}

.price-change.negative {
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
}

.token-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.token-address {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.btn-copy {
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy:hover {
    background: #0052CC;
    transform: translateY(-2px);
}

.swap-container {
    margin: 3rem auto;
    display: flex;
    justify-content: center;
}

.swap-notes {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.note i {
    color: var(--primary-color);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .token-price-card {
        padding: 1.5rem;
    }
    
    .price-header {
        flex-wrap: wrap;
    }
    
    .okx-link {
        width: 100%;
        justify-content: center;
    }
    
    .price-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .price-stat .stat-value {
        font-size: 1.25rem;
    }
    
    .token-info {
        flex-direction: column;
    }
    
    .token-address {
        font-size: 0.75rem;
        word-break: break-all;
        text-align: center;
    }
    
    .swap-container iframe {
        height: 560px !important;
    }
    
    .swap-notes {
        flex-direction: column;
        align-items: center;
    }
    
    .note {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 968px) {
    .hero-visual {
        height: 400px;
    }
    
    .floating-card {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
    
    .floating-card i {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Panama City Gallery Section */
.panama-city-gallery {
    padding: 3rem 0;
    background: linear-gradient(to bottom, #FFFFFF 0%, #F8FAFC 100%);
}

.city-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.city-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    opacity: 0.85;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
    contain: layout style;
}

.city-gallery-item:hover {
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.city-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.city-gallery-item:hover img {
    transform: scale(1.08);
}

.city-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
    padding: 1.5rem 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.city-gallery-item:hover .city-caption {
    opacity: 1;
}

.city-caption h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: white;
}

.city-caption p {
    font-size: 0.8rem;
    opacity: 0.85;
    line-height: 1.3;
}

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

.city-gallery-item {
    animation: fadeInUp 0.6s ease backwards;
}

.city-gallery-item:nth-child(1) { animation-delay: 0.1s; }
.city-gallery-item:nth-child(2) { animation-delay: 0.2s; }
.city-gallery-item:nth-child(3) { animation-delay: 0.3s; }
.city-gallery-item:nth-child(4) { animation-delay: 0.4s; }
.city-gallery-item:nth-child(5) { animation-delay: 0.5s; }
.city-gallery-item:nth-child(6) { animation-delay: 0.6s; }

/* Responsive for tablets */
@media (max-width: 968px) {
    .city-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Responsive for mobile */
@media (max-width: 640px) {
    .panama-city-gallery {
        padding: 2rem 0;
    }
    
    .city-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 0;
        padding: 0 15px;
    }
    
    .city-gallery-item {
        border-radius: 10px;
        aspect-ratio: 16/9;
    }
    
    .city-caption {
        padding: 1.25rem 1rem 0.75rem;
    }
    
    .city-caption h3 {
        font-size: 0.9rem;
    }
    
    .city-caption p {
        font-size: 0.75rem;
    }
}

/* Hero Island Background Gallery - Removed */
.hero-island-background {
    display: none;
}

/* Remove individual island items */
.hero-island-bg-item {
    display: none;
}

/* Island positioning styles removed */

/* Island item styles removed */

/* Island Gallery Section - Below CTA Buttons */
.island-gallery {
    position: relative;
    padding: 2rem 0 0;
    background: transparent;
    pointer-events: auto;
}

.island-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    contain: layout;
    opacity: 1;
}

.island-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background: white;
    pointer-events: auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.island-gallery-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.island-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.island-gallery-item:hover img {
    transform: scale(1.05);
}

.island-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    color: white;
    padding: 0.75rem 0.5rem 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.island-gallery-item:hover .island-caption {
    opacity: 1;
}

.island-caption h3 {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.island-caption p {
    font-size: 0.65rem;
    opacity: 0.9;
    line-height: 1.2;
}

/* Animation for island gallery items */
.island-gallery-item {
    animation: fadeInUp 0.8s ease backwards;
}

.island-gallery-item:nth-child(1) { animation-delay: 0.1s; }
.island-gallery-item:nth-child(2) { animation-delay: 0.2s; }
.island-gallery-item:nth-child(3) { animation-delay: 0.3s; }
.island-gallery-item:nth-child(4) { animation-delay: 0.4s; }
.island-gallery-item:nth-child(5) { animation-delay: 0.5s; }
.island-gallery-item:nth-child(6) { animation-delay: 0.6s; }
.island-gallery-item:nth-child(7) { animation-delay: 0.7s; }
.island-gallery-item:nth-child(8) { animation-delay: 0.8s; }
.island-gallery-item:nth-child(9) { animation-delay: 0.9s; }

/* Additional layout fixes for deployment */
@media (max-width: 968px) {
    .about-mixed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 15px;
    }
    
    .assets-grid {
        padding: 0 15px;
    }
    
    /* Hero island background removed */
    
    .island-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding: 0 15px;
        max-width: 800px;
    }
}

/* Fix for very small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .about-mixed-grid,
    .city-gallery-grid,
    .assets-grid,
    .hero-island-background {
        padding: 0 10px;
    }
    
    .about-card.text-card {
        padding: 1rem;
    }
    
    .asset-card {
        padding: 1.5rem;
    }
    
    .island-gallery {
        padding: 1.5rem 0 0;
    }
    
    /* Hero island background removed */
    
    .island-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0 10px;
        max-width: 600px;
    }
    
    .island-gallery-item {
        aspect-ratio: 1/1;
        border-radius: 6px;
    }
    
    .island-caption {
        padding: 0.5rem 0.25rem 0.25rem;
    }
    
    .island-caption h3 {
        font-size: 0.6rem;
    }
    
    .island-caption p {
        font-size: 0.5rem;
    }
}
