/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 5rem;
    }

    .section-title {
        font-size: 3.5rem;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .hero-content {
        gap: 40px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .tokenomics-grid,
    .partnership-content {
        gap: 60px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    :root {
        --section-padding: 80px 0;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-top: 1px solid rgba(0, 255, 255, 0.3);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding-top: 60px !important;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .tokenomics-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .partnership-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 70px;
    }

    .timeline-item .timeline-content {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .timeline-marker {
        left: 30px !important;
        transform: translateX(-50%);
    }

    .community-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
    }

    .social-links {
        gap: 20px;
    }

    .buy-steps {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
        height: 70px;
    }

    .logo-img {
        height: 35px;
    }

    .hero {
        min-height: 90vh;
        padding-top: 70px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 14px;
        width: 100%;
        max-width: 250px;
    }

    .hero-character {
        max-width: 300px;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-card {
        padding: 30px 20px;
    }

    .pie-chart {
        width: 250px;
        height: 250px;
    }

    .pie-chart::before {
        width: 170px;
        height: 170px;
    }

    .token-stats {
        gap: 20px;
    }

    .stat-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .benefit-icon {
        align-self: center;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .community-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 50px;
    }

    .stat-card {
        padding: 30px 15px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .social-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .buy-steps {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 50px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .contract-info {
        padding: 30px 20px;
    }

    .contract-address {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    #contract-text {
        font-size: 12px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }
}

/* Mobile Small */
@media (max-width: 575px) {
    :root {
        --section-padding: 50px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-card {
        padding: 25px 15px;
    }

    .card-icon .icon {
        font-size: 2.5rem;
    }

    .pie-chart {
        width: 200px;
        height: 200px;
    }

    .pie-chart::before {
        width: 140px;
        height: 140px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 20px !important;
        width: 15px;
        height: 15px;
    }

    .timeline-content {
        padding: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .contract-info {
        padding: 20px 15px;
    }
}

/* Mobile Extra Small */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }

    .nav-container {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero-character {
        max-width: 250px;
    }

    .pie-chart {
        width: 180px;
        height: 180px;
    }

    .pie-chart::before {
        width: 120px;
        height: 120px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 70px;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: center;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 15px;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-character {
        max-width: 200px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .logo-img,
    .hero-character,
    .partnership-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Already dark by default */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .floating,
    .animate-float,
    .animate-pulse-glow,
    .animate-neon-glow,
    .particle,
    .matrix-char,
    .scan-line,
    .data-stream {
        animation: none;
    }

    .glitch-text::before,
    .glitch-text::after {
        display: none;
    }

    .character-glow {
        animation: none;
        opacity: 0.5;
    }

    .scroll-arrow {
        animation: none;
    }

    .timeline-item.active .timeline-marker {
        animation: none;
    }
}

/* Print Styles */
@media print {

    .bg-effects,
    .navbar,
    .scroll-indicator,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero,
    section {
        page-break-inside: avoid;
    }

    .section-title {
        color: black;
        background: none;
        -webkit-text-fill-color: black;
    }

    .hero-title {
        color: black;
        background: none;
        -webkit-text-fill-color: black;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    .btn-primary,
    .btn-secondary,
    .nav-link,
    .social-link {
        min-height: 44px;
        min-width: 44px;
    }

    .about-card:hover,
    .stat-card:hover,
    .timeline-content:hover {
        transform: none;
    }

    .hover-glow:hover,
    .hover-lift:hover,
    .hover-scale:hover,
    .hover-rotate:hover {
        transform: none;
        text-shadow: none;
    }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
    :root {
        --neon-blue: #00ccff;
        --neon-pink: #ff0099;
        --neon-green: #00ff66;
        --text-secondary: #ffffff;
    }

    .about-card,
    .stat-card,
    .timeline-content,
    .contract-info {
        border-width: 2px;
    }
}

/* Focus Visible Support */
@supports selector(:focus-visible) {

    .btn-primary:focus,
    .btn-secondary:focus,
    .nav-link:focus,
    .social-link:focus {
        outline: none;
    }

    .btn-primary:focus-visible,
    .btn-secondary:focus-visible,
    .nav-link:focus-visible,
    .social-link:focus-visible {
        outline: 2px solid var(--neon-blue);
        outline-offset: 2px;
    }
}