/* ===== RESPONSIVE CSS ===== */

/* ===== TABLET STYLES (768px and below) ===== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Header */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .nav-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contract-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .contract-address {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .address-text {
        word-break: break-all;
        text-align: center;
    }
    
    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .token-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Tokenomics */
    .tokenomics-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .chart-container {
        max-width: 300px;
    }
    
    .token-table {
        font-size: 0.9rem;
    }
    
    .token-table th,
    .token-table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* How to Buy */
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .exchanges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Roadmap */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        padding-left: 2rem;
        padding-right: 1rem;
        text-align: left;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    /* Partners */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    /* Contract Section */
    .contract-card {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .security-badges {
        align-items: center;
    }
    
    .contract-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .contract-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===== MOBILE STYLES (480px and below) ===== */
@media (max-width: 480px) {
    :root {
        --section-padding: 115px 0;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Header */
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo img {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    /* Hero */
    .hero-actions {
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* About */
    .token-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Tokenomics */
    .chart-container {
        max-width: 250px;
    }
    
    .legend-item {
        font-size: 0.9rem;
    }
    
    .token-table {
        font-size: 0.8rem;
    }
    
    .token-table th,
    .token-table td {
        padding: 0.5rem 0.25rem;
    }
    
    /* Steps */
    .step-item {
        padding: 1.5rem 1rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-icon {
        font-size: 2rem;
    }
    
    /* Exchanges */
    .exchanges-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .exchange-item {
        padding: 1rem;
    }
    
    .exchange-item img {
        width: 50px;
        height: 50px;
    }
    
    /* Roadmap */
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-date {
        font-size: 1rem;
    }
    
    /* FAQ */
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 1rem;
    }
    
    /* Partners */
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .partner-item {
        padding: 1.5rem;
    }
    
    .partner-item img {
        width: 60px;
        height: 60px;
    }
    
    /* Footer */
    .footer-logo img {
        width: 50px;
        height: 50px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Contract */
    .contract-card {
        padding: 1rem;
    }
    
    .address-full {
        font-size: 0.8rem;
    }
    
    /* Back to top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1rem;
        right: 1rem;
    }
    
    /* Scrolling text */
    .scroll-content {
        font-size: 1rem;
    }
}

/* ===== SMALL MOBILE STYLES (320px and below) ===== */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .chart-container {
        max-width: 200px;
    }
    
    .token-table {
        font-size: 0.7rem;
    }
    
    .step-item {
        padding: 1rem 0.75rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .contract-card {
        padding: 0.75rem;
    }
}

/* ===== LANDSCAPE MOBILE STYLES ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-grid {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        margin-bottom: 1.5rem;
    }
    
    .nav-menu {
        height: auto;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .nav-link:hover,
    .social-link:hover,
    .feature-item:hover,
    .step-item:hover,
    .partner-item:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    .feature-item:active,
    .step-item:active,
    .partner-item:active {
        transform: scale(0.98);
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .about-image img,
    .nav-logo img,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-content {
        animation: none;
    }
    
    .loading-progress {
        animation: none;
    }
    
    .gradient-text {
        animation: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .scrolling-text,
    .back-to-top,
    #particles-js,
    #loading-screen {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .section-title,
    .hero-title,
    .nav-logo .logo-text {
        color: black !important;
        text-shadow: none !important;
    }
    
    .btn {
        border: 2px solid black !important;
        color: black !important;
        background: white !important;
    }
    
    section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
}

