/* Universal Mobile Navigation and Responsive Styles */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--accent-color);
}

/* Hamburger Icon Animation */
.hamburger {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.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);
}

/* Mobile Navigation Menu */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 30, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    z-index: 1000;
    transition: right 0.4s ease;
    overflow-y: auto;
    padding: 80px 0 40px;
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
    display: block;
    padding: 20px 30px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link:hover {
    color: var(--accent-color);
    background: rgba(255, 157, 0, 0.1);
    padding-left: 40px;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover::before {
    transform: scaleY(1);
}

.mobile-contact-btn {
    margin: 30px;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-contact-btn:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 157, 0, 0.3);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-close:hover {
    color: var(--accent-color);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Universal Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    /* Header Mobile Adjustments */
    .futuristic-header, header {
        padding: 15px 0;
        background-color: rgba(10, 10, 30, 0.95);
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .futuristic-logo, .logo {
        font-size: 20px;
        z-index: 1001;
    }
    
    /* Hide desktop navigation */
    .futuristic-nav, .nav-menu {
        display: none;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
    }
    
    /* Hide desktop contact button */
    .contact-btn {
        display: none;
    }
    
    /* Container adjustments */
    .container {
        padding: 0 15px;
    }
    
    /* Section spacing */
    .section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .section-header p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Grid layouts mobile */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    /* Card adjustments */
    .card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Image containers */
    .image-container {
        margin-bottom: 1rem;
        aspect-ratio: 16/10;
    }
    
    /* Video containers */
    .video-container {
        margin-bottom: 1rem;
        aspect-ratio: 16/9;
    }
    
    /* Feature lists */
    .feature-list {
        margin-top: 1rem;
    }
    
    .feature-list li {
        margin-bottom: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Process steps */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .process-step h3 {
        font-size: 1.2rem;
    }
    
    /* Footer mobile */
    footer {
        padding: 60px 0 30px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .footer-text {
        margin-bottom: 15px;
        font-size: 0.9rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-link {
        margin-bottom: 8px;
    }
    
    .footer-contact-item {
        justify-content: center;
        margin-bottom: 12px;
    }
    
    /* Form elements mobile */
    input, textarea, select, button {
        font-size: 16px !important;
        padding: 15px !important;
        border-radius: 8px !important;
    }
    
    /* Button adjustments */
    .btn, .cta-btn, .hero-cta {
        width: 100%;
        max-width: 280px;
        padding: 15px 25px;
        font-size: 1rem;
        text-align: center;
        margin: 0 auto;
        display: block;
    }
    
    /* Text adjustments */
    h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Table responsive */
    table {
        width: 100%;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    /* Pricing tables */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    /* Blog grid */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-item {
        margin-bottom: 2rem;
    }
    
    /* Project grid */
    .projects-grid, .works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-item, .work-item {
        margin-bottom: 2rem;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .card {
        padding: 1.2rem;
    }
    
    .mobile-nav-menu {
        width: 90%;
    }
    
    .mobile-nav-link {
        font-size: 16px;
        padding: 18px 25px;
    }
    
    .mobile-contact-btn {
        margin: 20px;
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* Tablet adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
    
    .hamburger span {
        transition: none;
    }
    
    .mobile-nav-overlay {
        transition: none;
    }
    
    .mobile-nav-menu {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--accent-color);
    }
    
    .mobile-nav-link {
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .hamburger span {
        background-color: var(--accent-color);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
    }
    
    .mobile-nav-link:hover {
        background: rgba(255, 157, 0, 0.2);
    }
}
