/* Mobile Responsiveness Improvements */

/* Base responsive settings */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Responsive typography */
html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
}

/* Navigation improvements */
@media (max-width: 768px) {
    nav {
        flex-direction: row; /* Change to row to keep items side by side */
        padding: 15px 3%;
        position: relative; /* Ensure it works with absolute children */
    }

    .mobile-menu-toggle {
        display: flex; /* Show hamburger menu on mobile */
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        position: absolute;
        top: 20px;
        left: 20px; /* Keep it on the left */
        z-index: 101;
    }
    
    .nav-links {
        display: none; /* Hidden by default on mobile */
        flex-direction: column; /* Stack links vertically when shown */
        width: 100%;
        position: absolute;
        top: 60px; /* Appear below navbar */
        left: 0;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 20px;
        align-items: center;
    }
    
    .nav-links.show {
        display: flex; /* Show links when toggled */
    }
    
    .social-icons {
        position: absolute;
        top: 20px;
        right: 20px;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
}   

@media (max-width: 480px) {
    .nav-links {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 3px 0;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
}

/* Hero section */
@media (max-width: 768px) {
    .hero {
        padding: 60px 15px;
        min-height: auto;
    }
    
    .welcome-img {
        margin-top: 30px;
        max-width: 220px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 10px;
    }
    
    .welcome-img {
        max-width: 180px;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* About section */
@media (max-width: 992px) {
    .about-card {
        flex-direction: column;
        border-radius: 30px;
        padding: 30px 20px;
        text-align: center;
    }
    
    .about-card .coin-img {
        margin-right: 0;
        margin-bottom: 20px;
        max-width: 200px;
    }
    
    .banana-img {
        position: relative;
        right: auto;
        bottom: auto;
        max-width: 200px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .about-card {
        padding: 20px 15px;
        border-radius: 20px;
    }
    
    .about-text p {
        font-size: 18px;
    }
    
    .about-card .coin-img,
    .banana-img {
        max-width: 150px;
    }
}

/* Roadmap improvements */
@media (max-width: 960px) {
    .roadmap {
        flex-direction: column;
        gap: 15px;
    }
    
    .left-phases, .right-phases {
        width: 100%;
        order: 2;
    }
    
    .center-image {
        width: 100%;
        order: 1;
        margin-bottom: 20px;
    }
    
    .dj-banana {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .phase {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .phase h4 {
        font-size: 16px;
    }
    
    .phase h3 {
        font-size: 18px;
    }
    
    .phase p {
        font-size: 12px;
    }
    
    .dj-banana {
        max-width: 150px;
    }
    
    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
}

/* Tokenomics improvements */
@media (max-width: 992px) {
    .tokenomics-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .tokenomics-data {
        width: 100%;
    }
    
    .chart-container {
        max-width: 300px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tokenomics-item {
        font-size: 14px;
    }
    
    .chart-container {
        max-width: 250px;
    }
    
    .section-title.glow-text {
        font-size: 28px;
    }
}

/* Utility section improvements */
@media (max-width: 768px) {
    .utility-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .utility-image {
        flex: 0 0 auto;
        width: 200px;
        margin: 0 auto;
    }
    
    .utility-item h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .utility-image {
        width: 150px;
    }
    
    .utility-item {
        margin-bottom: 15px;
        padding: 10px;
    }
    
    .utility-item h3 {
        font-size: 14px;
    }
}

/* How to Buy improvements */
@media (max-width: 992px) {
    .buy-steps-container {
        flex-direction: column;
    }
    
    .banana-character-left,
    .banana-character-right {
        display: none;
    }
    
    .buy-steps {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .step-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .logo-container {
        width: 100%;
        padding: 15px 15px 0;
    }
    
    .wallet-logo {
        max-width: 70px;
    }
    
    .step-text {
        padding: 15px;
    }
    
    .step-text h3 {
        font-size: 16px;
    }
    
    .step-text p {
        font-size: 13px;
    }
}

/* Section padding adjustments */
@media (max-width: 768px) {
    .section-padding {
        padding: 50px 3%;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 40px 3%;
    }
}

/* Animation adjustments for mobile */
@media (max-width: 768px) {
    /* Reduce intensity of animations on mobile for better performance */
    @keyframes float {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-8px);
        }
    }
    
    .droplet {
        display: none; /* Hide resource-intensive animations on mobile */
    }
    
    /* Reduce number of stars on mobile for better performance */
    #stars-container .star:nth-child(odd) {
        display: none;
    }
}

/* Fix for social section on mobile */
@media (max-width: 768px) {
    .socials {
        
        padding: 10px 10px;
    }
    
    .socials .socials-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .socials-icons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Ensure images are fully responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for overflow issues */
body, html {
    overflow-x: hidden;
    width: 100%;
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .nav-link, 
    .cta-button,
    .social-icon {
        padding: 8px;
    }
}