/* FULL MOBILE RESPONSIVE DESIGN */
/* Covers all mobile device types and sizes */

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    .header .container {
        padding: 10px 20px;
    }
    
    .nav {
        gap: 18px;
    }
    
    .nav-link {
        font-size: 14px;
    }
}

/* Tablets and Large Mobile (768px and below) */
@media (max-width: 768px) {
    .header {
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        z-index: 9999 !important;
        padding: 15px 0 !important;
    }
    
    .header .container {
        padding: 0 15px !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        max-width: 100% !important;
    }
    
    .logo {
        height: 35px !important;
    }
    
    .logo-img {
        height: 35px !important;
        max-width: 150px !important;
    }
    
    .logo-text {
        font-size: 22px !important;
        margin: 0 !important;
        color: #4facfe !important;
        font-weight: 700 !important;
        text-shadow: 0 0 10px rgba(79, 172, 254, 0.5) !important;
    }
    
    .nav {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(0, 0, 0, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(79, 172, 254, 0.3) !important;
        padding: 20px !important;
        flex-direction: column !important;
        gap: 15px !important;
        z-index: 9998 !important;
    }
    
    .nav.active {
        display: flex !important;
    }
    
    .nav-link {
        display: block !important;
        padding: 12px 20px !important;
        background: rgba(79, 172, 254, 0.2) !important;
        border: 1px solid rgba(79, 172, 254, 0.4) !important;
        border-radius: 12px !important;
        text-align: center !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
    }
    
    .nav-link:hover {
        background: rgba(79, 172, 254, 0.4) !important;
        border-color: rgba(79, 172, 254, 0.6) !important;
        transform: translateY(-2px) !important;
    }
    
    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: block !important;
        background: rgba(79, 172, 254, 0.3) !important;
        border: 1px solid rgba(79, 172, 254, 0.6) !important;
        color: #fff !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(79, 172, 254, 0.5) !important;
        border-color: rgba(79, 172, 254, 0.8) !important;
    }
    
    .mobile-menu-toggle.active {
        background: rgba(79, 172, 254, 0.6) !important;
        border-color: rgba(79, 172, 254, 0.9) !important;
    }
    
    .hero {
        padding-top: 80px !important;
        margin-top: 0 !important;
    }
    
    .hero-title {
        font-size: clamp(32px, 6vw, 50px) !important;
    }
    
    .hero-description {
        font-size: 16px !important;
        margin-bottom: 30px !important;
    }
    
    .hero-waitlist {
        max-width: 90%;
        margin: 40px auto 0;
        padding: 25px 20px;
    }
}

/* Standard Mobile Phones (480px and below) */
@media (max-width: 480px) {
    .header {
        padding: 12px 0 !important;
    }
    
    .logo-text {
        font-size: 20px !important;
    }
    
    .mobile-menu-toggle {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    
    .hero {
        padding-top: 70px !important;
    }
    
    .hero-title {
        font-size: clamp(28px, 7vw, 40px) !important;
        margin-bottom: 20px !important;
    }
    
    .hero-description {
        font-size: 15px !important;
        margin-bottom: 25px !important;
        padding: 0 10px;
    }
    
    .hero-waitlist {
        max-width: 95%;
        margin: 30px auto 0;
        padding: 20px 15px;
    }
    
    .hero-waitlist h3 {
        font-size: 22px !important;
    }
    
    .form-group input {
        padding: 14px 16px !important;
        font-size: 16px !important;
    }
    
    .waitlist-btn {
        padding: 16px 32px !important;
        font-size: 16px !important;
        width: 100%;
    }
}

/* Small Mobile Phones (375px and below) */
@media (max-width: 375px) {
    .logo-text {
        font-size: 18px !important;
    }
    
    .hero {
        padding-top: 65px !important;
    }
    
    .hero-title {
        font-size: clamp(24px, 8vw, 35px) !important;
        margin-bottom: 15px !important;
    }
    
    .hero-description {
        font-size: 14px !important;
        margin-bottom: 20px !important;
        padding: 0 5px;
    }
    
    .hero-waitlist {
        max-width: 98%;
        margin: 25px auto 0;
        padding: 18px 12px;
    }
    
    .hero-waitlist h3 {
        font-size: 20px !important;
    }
}

/* Extra Small Mobile (320px and below - iPhone SE, etc) */
@media (max-width: 320px) {
    .logo-text {
        font-size: 16px !important;
    }
    
    .hero {
        padding-top: 60px !important;
    }
    
    .hero-title {
        font-size: clamp(20px, 9vw, 30px) !important;
        margin-bottom: 12px !important;
    }
    
    .hero-description {
        font-size: 13px !important;
        margin-bottom: 18px !important;
        padding: 0 3px;
    }
    
    .hero-waitlist {
        max-width: 99%;
        margin: 20px auto 0;
        padding: 15px 10px;
    }
    
    .hero-waitlist h3 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }
    
    .hero-waitlist > p {
        font-size: 12px !important;
        margin-bottom: 15px !important;
    }
    
    .form-group input {
        padding: 12px 14px !important;
        font-size: 16px !important;
    }
    
    .waitlist-btn {
        padding: 14px 28px !important;
        font-size: 15px !important;
        width: 100%;
    }
}

/* Ultra Small Devices (280px and below) */
@media (max-width: 280px) {
    .header .container {
        padding: 3px 6px;
    }
    
    .nav {
        gap: 2px;
    }
    
    .nav-link {
        font-size: 9px;
        padding: 1px;
    }
    
    .logo-text {
        font-size: 11px;
    }
    
    .hero-title {
        font-size: 18px !important;
    }
    
    .hero-description {
        font-size: 12px !important;
    }
    
    .hero-waitlist h3 {
        font-size: 16px !important;
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding-top: 40px;
        min-height: calc(100vh - 40px);
    }
    
    .header .container {
        padding: 3px 15px;
    }
    
    .hero-title {
        font-size: clamp(20px, 5vw, 35px) !important;
        margin-bottom: 10px !important;
    }
    
    .hero-description {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }
    
    .hero-waitlist {
        margin: 15px auto 0;
        padding: 15px;
    }
}

/* Typography Improvements for Mobile */
@media (max-width: 768px) {
    .section h2 {
        font-size: clamp(24px, 5vw, 36px) !important;
        margin-bottom: 20px !important;
    }
    
    .section p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    
    .rwa-card h3 {
        font-size: 20px !important;
    }
    
    .rwa-card p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    
    .feature-item h3 {
        font-size: 18px !important;
    }
    
    .feature-item p {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .section h2 {
        font-size: clamp(20px, 6vw, 30px) !important;
        margin-bottom: 15px !important;
    }
    
    .section p {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }
    
    .rwa-card h3 {
        font-size: 18px !important;
    }
    
    .rwa-card p {
        font-size: 13px !important;
    }
    
    .feature-item h3 {
        font-size: 16px !important;
    }
    
    .feature-item p {
        font-size: 13px !important;
    }
}

/* Form and Input Improvements */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 20px !important;
    }
    
    .form-group label {
        font-size: 14px !important;
        margin-bottom: 8px !important;
        display: block;
    }
    
    .form-error {
        font-size: 12px !important;
        margin-top: 5px !important;
    }
}

/* Grid and Layout Improvements */
@media (max-width: 768px) {
    .rwa-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .container {
        padding: 0 15px !important;
    }
}

@media (max-width: 480px) {
    .rwa-grid {
        gap: 15px !important;
    }
    
    .features-grid {
        gap: 15px !important;
    }
    
    .container {
        padding: 0 12px !important;
    }
}

/* Touch and Interaction Improvements */
@media (pointer: coarse) {
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .waitlist-btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .form-group input {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Improve tap targets */
    button, .btn, a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Advanced Mobile Optimizations */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden !important;
    }
    
    /* Better section spacing */
    .section {
        padding: 40px 0 !important;
    }
    
    /* Status badge mobile */
    .status-badge {
        font-size: 14px !important;
        padding: 8px 16px !important;
        margin-bottom: 20px !important;
    }
    
    /* License section mobile */
    .license-item {
        margin-bottom: 15px !important;
    }
    
    .license-item h4 {
        font-size: 16px !important;
    }
    
    .license-item p {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 30px 0 !important;
    }
    
    .status-badge {
        font-size: 13px !important;
        padding: 6px 12px !important;
    }
}

/* Navigation Mobile Menu for very small screens */
@media (max-width: 600px) {
    .nav {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px 6px !important;
    }
    
    .nav-link {
        font-size: 11px !important;
        padding: 4px 6px !important;
        white-space: nowrap;
    }
}

@media (max-width: 400px) {
    .nav {
        gap: 6px 4px !important;
    }
    
    .nav-link {
        font-size: 10px !important;
        padding: 3px 4px !important;
    }
}

/* Footer responsive improvements */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 !important;
    }
    
    .footer .container {
        text-align: center !important;
    }
    
    .footer p {
        font-size: 14px !important;
    }
}

/* Scroll behavior improvements */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

@media (max-width: 480px) {
    html {
        scroll-padding-top: 60px;
    }
}

/* Viewport height fixes for mobile browsers */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile */
    }
}

/* Dark mode and accessibility improvements */
@media (prefers-color-scheme: dark) {
    .hero-waitlist {
        background: rgba(79, 172, 254, 0.15) !important;
        border: 2px solid rgba(79, 172, 254, 0.4) !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-link {
        color: #ffffff !important;
    }
    
    .hero-title {
        color: #ffffff !important;
    }
    
    .form-group input {
        border: 2px solid #ffffff !important;
    }
}
/* Social Links Mobile Styles */
@media (max-width: 768px) {
    .hero-social-section {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .social-links {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .social-link {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }
    
    .contract-info {
        padding: 15px;
    }
    
    .contract-text {
        font-size: 10px;
    }
    
    .contract-address {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-social-section {
        margin-top: 25px;
        padding-top: 15px;
    }
    
    .social-link span {
        font-size: 14px;
    }
    
    .contract-text {
        font-size: 9px;
        word-break: break-all;
    }
}
