/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Loading Bar Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    color: white;
    max-width: 400px;
    width: 90%;
}

.loading-logo {
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-logo img {
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.loading-logo h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading-bar-container {
    margin-bottom: 1.5rem;
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #ff6b6b);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    animation: shimmer 2s ease-in-out infinite;
}

.loading-percentage {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.loading-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    animation: fade 2s ease-in-out infinite;
}

/* Loading animations */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes fade {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Mobile loading adjustments */
@media (max-width: 768px) {
    .loading-logo img {
        width: 60px;
        height: 60px;
    }
    
    .loading-logo h2 {
        font-size: 1.5rem;
    }
    
    .loading-percentage {
        font-size: 1rem;
    }
}

/* Fixed Scroll Image */
.fixed-scroll-image {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background: url('images/1.png') center/contain no-repeat;
    z-index: 999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.fixed-scroll-image.visible {
    opacity: 1;
    transform: translateY(0);
}

.fixed-scroll-image:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile adjustments for fixed image */
@media (max-width: 768px) {
    .fixed-scroll-image {
        width: 80px;
        height: 80px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .fixed-scroll-image {
        width: 60px;
        height: 60px;
        top: 10px;
        right: 10px;
    }
}

/* Floating Mark Animation */
.floating-marks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-mark {
    position: absolute;
    width: 40px;
    height: 40px;
    background: url('images/mark.png') center/contain no-repeat;
    opacity: 0.6;
    animation: float-random 15s infinite linear;
}

.floating-mark:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
    width: 35px;
    height: 35px;
}

.floating-mark:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 18s;
    width: 45px;
    height: 45px;
    opacity: 0.4;
}

.floating-mark:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 22s;
    width: 30px;
    height: 30px;
    opacity: 0.7;
}

.floating-mark:nth-child(4) {
    left: 40%;
    animation-delay: 6s;
    animation-duration: 16s;
    width: 50px;
    height: 50px;
    opacity: 0.3;
}

.floating-mark:nth-child(5) {
    left: 50%;
    animation-delay: 8s;
    animation-duration: 25s;
    width: 38px;
    height: 38px;
    opacity: 0.5;
}

.floating-mark:nth-child(6) {
    left: 60%;
    animation-delay: 10s;
    animation-duration: 19s;
    width: 42px;
    height: 42px;
    opacity: 0.6;
}

.floating-mark:nth-child(7) {
    left: 70%;
    animation-delay: 12s;
    animation-duration: 21s;
    width: 33px;
    height: 33px;
    opacity: 0.4;
}

.floating-mark:nth-child(8) {
    left: 80%;
    animation-delay: 14s;
    animation-duration: 17s;
    width: 47px;
    height: 47px;
    opacity: 0.5;
}

.floating-mark:nth-child(9) {
    left: 90%;
    animation-delay: 16s;
    animation-duration: 23s;
    width: 36px;
    height: 36px;
    opacity: 0.7;
}

.floating-mark:nth-child(10) {
    left: 15%;
    animation-delay: 18s;
    animation-duration: 20s;
    width: 44px;
    height: 44px;
    opacity: 0.3;
}

/* Floating animations */
@keyframes float-random {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: translateY(90vh) rotate(36deg) scale(1);
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1.2);
        opacity: 0.8;
    }
    90% {
        opacity: 0.4;
        transform: translateY(10vh) rotate(324deg) scale(0.8);
    }
    100% {
        transform: translateY(-10vh) rotate(360deg) scale(0);
        opacity: 0;
    }
}

/* Alternative floating patterns */
.floating-mark.pattern-wave:nth-child(odd) {
    animation: float-wave 20s infinite linear;
}

.floating-mark.pattern-spiral:nth-child(even) {
    animation: float-spiral 25s infinite linear;
}

@keyframes float-wave {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    25% {
        transform: translateY(75vh) translateX(50px) rotate(90deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(50vh) translateX(-30px) rotate(180deg);
        opacity: 0.9;
    }
    75% {
        transform: translateY(25vh) translateX(40px) rotate(270deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-10vh) translateX(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes float-spiral {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    20% {
        transform: translateY(80vh) translateX(100px) rotate(72deg) scale(1);
        opacity: 0.6;
    }
    40% {
        transform: translateY(60vh) translateX(-80px) rotate(144deg) scale(1.3);
        opacity: 0.8;
    }
    60% {
        transform: translateY(40vh) translateX(60px) rotate(216deg) scale(1.1);
        opacity: 0.7;
    }
    80% {
        transform: translateY(20vh) translateX(-40px) rotate(288deg) scale(0.9);
        opacity: 0.4;
    }
    100% {
        transform: translateY(-10vh) translateX(0) rotate(360deg) scale(0.3);
        opacity: 0;
    }
}

/* Pulse animation for marks */
.floating-mark.pulse {
    animation: float-random 15s infinite linear, pulse-mark 3s infinite ease-in-out;
}

@keyframes pulse-mark {
    0%, 100% { 
        opacity: 0.3;
        filter: brightness(1);
    }
    50% { 
        opacity: 0.8;
        filter: brightness(1.3);
    }
}

/* Mobile adjustments for floating marks */
@media (max-width: 768px) {
    .floating-mark {
        width: 25px;
        height: 25px;
    }
    
    .floating-mark:nth-child(1) { width: 22px; height: 22px; }
    .floating-mark:nth-child(2) { width: 28px; height: 28px; }
    .floating-mark:nth-child(3) { width: 20px; height: 20px; }
    .floating-mark:nth-child(4) { width: 30px; height: 30px; }
    .floating-mark:nth-child(5) { width: 24px; height: 24px; }
    .floating-mark:nth-child(6) { width: 26px; height: 26px; }
    .floating-mark:nth-child(7) { width: 21px; height: 21px; }
    .floating-mark:nth-child(8) { width: 29px; height: 29px; }
    .floating-mark:nth-child(9) { width: 23px; height: 23px; }
    .floating-mark:nth-child(10) { width: 27px; height: 27px; }
}

/* Performance optimization */
.floating-marks {
    will-change: transform;
}

.floating-mark {
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Prevent zoom on input focus on mobile */
input, textarea, select {
    font-size: 16px;
}

@media (max-width: 768px) {
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-link {
    color: #333;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.wallet-section {
    display: flex;
    align-items: center;
}

.connect-btn, .disconnect-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.connect-btn:hover, .disconnect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.wallet-info {
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.wallet-address {
    font-family: monospace;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.wallet-balance {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.hidden {
    display: none !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.3rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        order: 2;
    }
    
    .wallet-section {
        order: 3;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: rgb(17, 17, 17);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,1000 1000,0 1000,1000"/></svg>') no-repeat;
    background-size: cover;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.gradient-text {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn.primary {
    color: transparent;
}

.cta-btn.secondary {
    background: transparent;
    color: rgb(69, 72, 255);
    border: 2px solid rgb(38, 42, 100);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.card-inner {
    text-align: center;
}

.card-inner i {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-inner h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particle-float 4s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 30%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes particle-float {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-30px) scale(1.2);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Wallet Dashboard */
.wallet-dashboard {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.dashboard-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.balance-display {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.balance-display small {
    font-size: 1rem;
    opacity: 0.8;
}

.network-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.network-status {
    font-weight: 600;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tx-list {
    max-height: 100px;
    overflow-y: auto;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.connect-prompt {
    text-align: center;
    padding: 3rem;
}

.prompt-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.prompt-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.prompt-content p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.tech-stack {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-3px);
}

.tech-item i {
    font-size: 1.2rem;
    color: #667eea;
}

.code-preview {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.code-header {
    background: #2d2d2d;
    padding: 1rem;
    display: flex;
    align-items: center;
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.code-dots span:nth-child(2) {
    background: #ffbd2e;
}

.code-dots span:nth-child(3) {
    background: #27ca3f;
}

.code-content {
    padding: 1rem;
}

.code-content pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    color: #e6e6e6;
    line-height: 1.5;
}

.code-content code {
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand i {
    margin-right: 0.5rem;
    color: #667eea;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #667eea;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #ccc;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #667eea;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #666;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
    backdrop-filter: blur(10px);
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation improvements */
    .nav-container {
        padding: 0 15px;
        position: relative;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 15px 15px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        margin: 0.5rem 0;
        padding: 0.75rem;
        text-align: center;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    
    .nav-link:hover {
        background-color: rgba(102, 126, 234, 0.1);
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .nav-logo i {
        font-size: 1.5rem;
        margin-right: 0.3rem;
    }
    
    /* Wallet section mobile */
    .wallet-section {
        position: relative;
    }
    
    .connect-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .connect-btn .btn-text {
        display: inline;
    }
    
    @media (max-width: 480px) {
        .connect-btn .btn-text {
            display: none;
        }
        
        .connect-btn {
            padding: 0.6rem;
            min-width: 45px;
        }
    }
    
    .wallet-info {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 0.5rem;
        min-width: 250px;
        z-index: 1001;
    }
    
    /* Hero section mobile */
    .hero {
        min-height: 90vh;
        padding: 6rem 0 2rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
    
    /* Features mobile */
    .features {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Wallet dashboard mobile */
    .wallet-dashboard {
        padding: 3rem 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-card {
        padding: 1.25rem;
    }
    
    .balance-display {
        font-size: 1.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .action-btn {
        min-width: auto;
        padding: 1rem;
    }
    
    /* About section mobile */
    .about {
        padding: 3rem 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text {
        padding: 0 1rem;
        text-align: center;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .tech-stack {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .tech-item {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .code-preview {
        max-width: 100%;
        overflow-x: auto;
    }
    
    /* Footer mobile */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile devices */
    .container {
        padding: 0 15px;
    }
    
    /* Navigation extra small */
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .nav-logo i {
        font-size: 1.3rem;
    }
    
    .connect-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Hero extra small */
    .hero {
        padding: 5rem 0 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .cta-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        max-width: 250px;
    }
    
    /* Floating card mobile */
    .floating-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .card-inner h3 {
        font-size: 1.2rem;
    }
    
    .card-inner i {
        font-size: 2.5rem;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.6rem;
        padding: 0 0.5rem;
    }
    
    /* Features extra small */
    .features {
        padding: 2.5rem 0;
    }
    
    .features-grid {
        padding: 0 0.5rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    /* Dashboard extra small */
    .wallet-dashboard {
        padding: 2.5rem 0;
    }
    
    .balance-display {
        font-size: 1.5rem;
    }
    
    .prompt-content i {
        font-size: 3rem;
    }
    
    /* About extra small */
    .about-text h2 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .tech-stack {
        gap: 0.5rem;
    }
    
    .tech-item {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }
    
    /* Code preview mobile */
    .code-preview {
        margin: 0 0.5rem;
    }
    
    .code-content pre {
        font-size: 0.75rem;
        overflow-x: auto;
    }
    
    /* Modal mobile improvements */
    .modal-content {
        margin: 1rem;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .address-display {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .address-display input {
        font-size: 0.85rem;
    }
    
    /* Notification mobile */
    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: calc(100vw - 20px);
    }
    
    .notification-content {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Mobile landscape optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 70vh;
        padding: 4rem 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .features, .wallet-dashboard, .about {
        padding: 2rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .qr-code img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-card, .particle {
        animation: none !important;
    }
}

/* Touch device optimizations */
.touch-device .feature-card.touch-hover,
.touch-device .dashboard-card.touch-hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    /* Minimum touch target size */
    button, .nav-link, .social-link, .footer-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better button spacing */
    .cta-btn, .connect-btn, .action-btn {
        padding: 12px 20px;
        margin: 4px;
    }
    
    /* Improve scrollable areas */
    .tx-list, .modal-content {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent text selection on buttons */
    button, .nav-link {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
    
    /* Improve hover states for touch */
    .feature-card:hover, .dashboard-card:hover {
        transform: none; /* Disable hover transform on touch devices */
    }
    
    /* Better focus states */
    input:focus, button:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* Gallery Carousel Styles */
.gallery {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.gallery-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    width: 800%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 12.5%;
    height: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #667eea;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: rgba(102, 126, 234, 0.9);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 0 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot.active {
    background: #667eea;
    transform: scale(1.3);
}

.dot:hover {
    background: #667eea;
    transform: scale(1.2);
}

/* Auto-slide animation */
@keyframes autoSlide {
    0%, 12.5% { transform: translateX(0%); }
    12.5%, 25% { transform: translateX(-12.5%); }
    25%, 37.5% { transform: translateX(-25%); }
    37.5%, 50% { transform: translateX(-37.5%); }
    50%, 62.5% { transform: translateX(-50%); }
    62.5%, 75% { transform: translateX(-62.5%); }
    75%, 87.5% { transform: translateX(-75%); }
    87.5%, 100% { transform: translateX(-87.5%); }
}

.carousel-track.auto-slide {
    animation: autoSlide 24s infinite;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .gallery {
        padding: 3rem 0;
    }
    
    .gallery-carousel {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .carousel-container {
        height: 250px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-dots {
        gap: 8px;
        margin-top: 15px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}
