/* Mobile Specific Overwrites - Ultra Modern */

@media screen and (max-width: 768px) {
    :root {
        --nav-height: 75px;
    }

    body {
        padding-bottom: var(--nav-height);
    }

    .main-logo {
        height: 28px;
    }

    [dir="rtl"] .main-logo {
        height: 45px;
        /* Increased for Arabic visibility on mobile */
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .desktop-nav {
        display: none;
    }

    .spotlight {
        display: none;
        /* Disable mouse spotlight on touch devices */
    }

    .grid-overlay {
        opacity: 0.05;
        /* Dimmer for better readability on small screens */
    }

    /* Hero Portal Mobile */
    .hero-portal {
        padding-top: 140px;
        padding-bottom: 80px;
        text-align: center;
        background: radial-gradient(circle at 50% 20%, rgba(0, 163, 255, 0.1) 0%, transparent 50%);
    }

    .portal-container {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    .portal-content {
        order: 1;
    }

    .portal-visual {
        order: 2;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .core-img {
        max-width: 280px;
    }

    .portal-title {
        font-size: 2.8rem;
        letter-spacing: -2px;
        line-height: 1;
    }

    .portal-typing {
        justify-content: center;
        font-size: 1.2rem;
    }

    .portal-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-prime,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-scroll {
        display: none;
    }

    /* Hero adjustments */
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
        text-align: center;
        overflow: hidden;
    }

    .hero-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 2;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .main-visual {
        border-radius: 20px;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -1.5px;
        line-height: 1.1;
    }

    .hero-title br {
        display: none;
    }

    .typing-box {
        font-size: 1.4rem;
        height: auto;
        min-height: 2.5rem;
        margin-bottom: 20px;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Section Mobile Styling */
    .section {
        padding: 80px 0;
    }

    .h-title {
        font-size: 2.2rem;
    }

    .pricing-grid,
    .vision-grid,
    .tech-grid,
    .works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Vision Redesign Mobile */
    .vision-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }

    .vision-intro .h-title.large {
        font-size: 2.5rem;
        text-align: center;
    }

    .vision-intro {
        text-align: center;
    }

    .vision-visual-mark {
        justify-content: center;
        width: 100%;
    }

    .vision-card.highlight {
        grid-column: span 1;
    }

    .vision-card.highlight h3 {
        font-size: 1.5rem;
    }

    /* Tech Redesign Mobile */
    .tech-card {
        padding: 40px 25px;
    }

    .t-marker {
        top: 20px;
        right: 20px;
    }

    [dir="rtl"] .t-marker {
        left: 20px;
    }

    /* Works Redesign Mobile */
    .work-card {
        height: 480px;
        /* Slightly taller for better detail display */
        border-radius: 30px;
    }

    .work-tag {
        top: 20px;
        left: 20px;
        font-size: 0.6rem;
    }

    .work-index {
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
    }

    .work-info {
        padding: 30px;
    }

    .work-info h4 {
        font-size: 1.5rem;
    }

    .w-action {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
    }

    .btn-prime {
        padding: 16px 32px;
        font-size: 0.8rem;
    }

    /* Stats Banner Mobile */
    .stats-banner {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 30px 15px !important;
        gap: 15px !important;
        margin-top: -40px !important;
    }

    .stat-item {
        text-align: center;
    }

    .stat-num {
        font-size: 1.8rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }

    /* Contact Mobile */
    .contact-wrap {
        gap: 40px;
    }

    .c-form {
        padding: 30px 20px;
    }

    .c-item a {
        font-size: 1.2rem;
    }

    /* Bottom Nav Bar - iOS App Like */
    .mobile-nav {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        height: 65px;
        background: rgba(10, 10, 10, 0.8);
        backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 2000;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    }

    .m-link {
        color: rgba(255, 255, 255, 0.4);
        padding: 12px;
        transition: all 0.3s ease;
    }

    .m-link.active {
        color: var(--accent);
        transform: translateY(-5px);
    }

    .m-link svg {
        width: 24px;
        height: 24px;
    }

    /* Footer Premium Overhaul Mobile */
    .footer {
        padding: 60px 0 120px;
        /* Space for mobile nav */
        background: linear-gradient(to bottom, #000, #050505);
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* Brand Block */
    .footer-brand {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
        padding: 40px 20px;
        border-radius: 35px;
        border: 1px solid var(--border);
        text-align: center;
        align-items: center;
    }

    .footer-logo {
        height: 35px;
        margin-bottom: 20px;
    }

    [dir="rtl"] .footer-logo {
        height: 55px;
    }

    .footer-pitch {
        font-size: 0.9rem;
        color: var(--text-gray);
        line-height: 1.6;
        max-width: 260px;
        margin: 0 auto;
    }

    /* Link Blocks - Single Column Organized */
    .footer-col {
        background: rgba(255, 255, 255, 0.02);
        padding: 30px;
        border-radius: 25px;
        border: 1px solid var(--border);
    }

    .footer-col h4 {
        font-size: 0.7rem;
        letter-spacing: 3px;
        color: var(--accent);
        margin-bottom: 25px;
        text-align: center;
        opacity: 0.8;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: center;
        align-items: center;
    }

    .footer-links a {
        font-size: 1rem;
        color: #fff;
        font-weight: 500;
        text-decoration: none;
        width: 100%;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    /* Newsletter Special Card */
    .footer-col:last-child {
        background: linear-gradient(135deg, rgba(0, 163, 255, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
        border-color: var(--accent-glow);
    }

    .newsletter-input {
        margin-top: 20px;
    }

    .newsletter-input input {
        height: 55px;
        background: rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        text-align: center;
    }

    /* Bottom Section */
    .footer-bottom {
        border-top: none;
        padding-top: 40px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        gap: 30px;
        margin-bottom: 30px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        background: var(--glass);
        border-radius: 15px;
        border: 1px solid var(--border);
    }

    .legal-links {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .legal-links a {
        font-size: 0.75rem;
        opacity: 0.6;
    }

    .footer-meta p {
        font-size: 0.7rem;
        opacity: 0.4;
    }

    /* Modal Mobile Fixes */
    .modal-close {
        top: 20px;
        right: 20px !important;
    }

    [dir="rtl"] .modal-close {
        right: auto !important;
        left: 20px !important;
    }

    .modal-container {
        border-radius: 30px;
        max-height: 85vh;
    }
}