/* Global Responsive Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-width: 320px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent horizontal scrolling */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

/* Ensure all content stays within viewport */
* {
    max-width: 100%;
}

/* Better touch targets */
@media (hover: none) and (pointer: coarse) {
    button, a, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Mobile First Responsive Design */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .nav {
        padding: 0 15px;
    }
    
    .nav-brand h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-content,
    .tokenomics-content {
        gap: 40px;
    }
    
    .tokenomics-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .step {
        gap: 20px;
        padding: 25px;
    }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.mobile-menu-toggle:hover .hamburger-line {
    background: #FF4500;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-content {
    padding: 100px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-height: 100vh;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-link {
    text-decoration: none;
    color: #333;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 15px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-nav-link:hover {
    color: #FF4500;
    border-bottom-color: #FF4500;
    transform: translateX(10px);
}

.mobile-social {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 15px 0;
    transition: all 0.3s ease;
    min-height: 44px;
}

.mobile-social-link:hover {
    color: #FF4500;
    transform: translateX(10px);
}

.mobile-social-link svg {
    width: 28px;
    height: 28px;
}

.mobile-buy-btn {
    margin-top: 10px;
}

.mobile-buy-btn .btn {
    width: 100%;
    max-width: none;
    font-size: 1.3rem;
    padding: 16px 24px;
    min-height: 56px;
    justify-content: center;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header Mobile */
    .nav {
        position: relative;
        padding: 15px 20px;
        display: flex !important;
        justify-content: space-between;
        grid-template-columns: none;
    }
    
    .nav-brand h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .nav-link:hover {
        border-bottom-color: #FF4500;
        transform: translateX(10px);
    }
    
    .nav-social {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .social-link {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
    }
    
    .nav-buy-btn {
        margin-left: 0;
        font-size: 1.1rem;
        padding: 12px 24px;
        min-height: 44px;
        justify-content: center;
        width: 100%;
        max-width: 220px;
    }
    
    /* Hero Section Mobile */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn {
        min-height: 48px;
        min-width: 200px;
        font-size: 1.1rem;
        padding: 14px 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 280px;
    }
    
    .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 80px 0 60px;
        text-align: center;
        min-height: auto;
    }
    
    .hero-gif {
        width: 200px;
        height: 200px;
        margin-bottom: 30px;
    }
    
    /* About Section Mobile */
    .about {
        padding: 60px 0;
    }
    
    .about h2 {
        font-size: 2.2rem;
        margin-bottom: 25px;
        line-height: 1.2;
    }
    
    .about p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    /* Tokenomics Mobile */
    .tokenomics {
        padding: 60px 0;
    }
    
    .tokenomics h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
        line-height: 1.2;
    }
    
    .tokenomics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .tokenomics-card {
        padding: 25px 20px;
        min-height: 120px;
    }
    
    .tokenomics-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .tokenomics-card p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    /* How To Buy Mobile */
    .how-to-buy {
        padding: 60px 0;
    }
    
    .how-to-buy h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
        line-height: 1.2;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 25px;
        margin-top: 30px;
    }
    
    .step {
        padding: 25px 20px;
        text-align: center;
        min-height: 140px;
    }
    
    .step-number {
        font-size: 1.8rem;
        margin-bottom: 15px;
        min-width: 50px;
        min-height: 50px;
        line-height: 50px;
    }
    
    .step h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .step p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .buy-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        align-items: center;
    }
    
    .buy-buttons .btn {
        width: 100%;
        max-width: 280px;
        min-height: 48px;
        font-size: 1.1rem;
        padding: 14px 28px;
    }
    
    /* Sections Mobile */
    .about, .tokenomics, .how-to-buy {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    /* About Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .about-description {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .about-gif {
        max-width: 250px;
        order: -1;
        margin: 0 auto;
        display: block;
    }
    
    /* Tokenomics Mobile */
    .tokenomics-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .tokenomics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .tokenomics-card {
        padding: 20px;
    }
    
    .tokenomics-card h3 {
        font-size: 1.2rem;
    }
    
    .tokenomics-card p {
        font-size: 1rem;
    }
    
    .tokenomics-gif {
        max-width: 250px;
        order: -1;
        margin: 0 auto;
        display: block;
    }
    
    /* How to Buy Mobile */
    .steps {
        gap: 30px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 20px;
    }
    
    .step:hover {
        transform: translateY(-5px);
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .step-content h3 {
        font-size: 1.3rem;
    }
    
    .step-content p {
        font-size: 1rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-brand h3 {
        font-size: 1.8rem;
    }
    
    .footer-brand p {
        font-size: 1rem;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    /* Header for small screens */
    .nav {
        padding: 12px 15px;
    }
    
    .nav-brand h1 {
        font-size: 1.8rem;
    }
    
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }
    
    .nav-menu {
        width: 100%;
        padding: 70px 25px 25px;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .nav-social {
        gap: 8px;
    }
    
    .social-link {
        padding: 6px;
    }
    
    .nav-buy-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    /* Hero section for small screens */
    .hero {
        padding: 70px 0 50px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 18px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 25px;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-gif {
        width: 180px;
        height: 180px;
        margin-bottom: 25px;
        max-width: 250px;
    }
    
    /* Buttons for small screens */
    .btn {
        min-height: 48px;
        font-size: 1rem;
        padding: 12px 20px;
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    /* Section headings */
    .section-title {
        font-size: 1.8rem;
    }
    
    .about h2,
    .tokenomics h2,
    .how-to-buy h2 {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .about-gif,
    .tokenomics-gif {
        max-width: 200px;
    }
    
    .tokenomics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Tokenomics cards */
    .tokenomics-card {
        padding: 20px 15px;
        min-height: 110px;
    }
    
    .tokenomics-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .tokenomics-card p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    /* Steps */
    .step {
        padding: 20px 15px;
        min-height: 130px;
    }
    
    .step-number {
        font-size: 1.6rem;
        min-width: 45px;
        min-height: 45px;
        line-height: 45px;
        width: 45px;
        height: 45px;
    }
    
    .step h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .step p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
    
    .step-content p {
        font-size: 0.95rem;
    }
    
    .footer-brand h3 {
        font-size: 1.6rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
}

/* Extra Small Mobile Styles (320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-gif {
        width: 160px;
        height: 160px;
    }
    
    .nav-brand h1 {
        font-size: 1.6rem;
    }
    
    .about h2,
    .tokenomics h2,
    .how-to-buy h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        font-size: 0.95rem;
        padding: 12px 18px;
        min-width: 180px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-gif {
        order: 0;
        max-width: 250px;
    }
    
    .about, .tokenomics, .how-to-buy {
        padding: 50px 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-gif,
    .about-gif,
    .tokenomics-gif {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .tokenomics-card,
    .step {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .footer {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-social,
    .hero-buttons,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-gif,
    .about-gif,
    .tokenomics-gif {
        display: none;
    }
}