/* Mobile-Only CSS - Loads only on mobile devices */

/* Mobile Header Navigation - Optimized Sizes */
@media (max-width: 768px) {
    /* Header Container */
    .header {
        padding: 0.5rem 0;
    }
    
    .nav {
        padding: 0 15px;
    }
    
    /* Logo and Brand */
    .nav-brand h2 {
        font-size: 1.2rem !important;
        font-weight: 600;
    }
    
    .logo-icon-2 {
        width: 55px !important;
        height: 55px !important;
    }
    
    .logo-icon-2::before {
        width: 55px !important;
        height: 55px !important;
    }
    
    .logo-icon-2 img {
        width: 45px; /* Proportional size for mobile */
        height: 45px;
        object-fit: contain;
    }
    
    /* Navigation Actions */
    .nav-actions {
        gap: 0.3rem;
    }
    
    .theme-toggle {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
        padding: 0;
    }
    
    .cta-btn {
        padding: 6px 12px !important;
        font-size: 0.7rem !important;
        font-weight: 500;
        border-radius: 15px;
    }
    
    /* Mobile Menu Button */
    .mobile-menu-btn {
        font-size: 1rem !important;
        padding: 0.2rem !important;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 0.5rem;
        order: 3;
    }
    
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }
    
    .theme-toggle {
        order: 1;
    }
    
    .cta-btn {
        order: 2;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-active {
        background: rgba(0, 0, 0, 0.98) !important;
    }
    
    .mobile-menu-active a {
        font-size: 1.2rem !important;
        padding: 0.8rem 1.5rem !important;
    }
}

/* Mobile Case Studies - Reduced Spacing */
@media (max-width: 768px) {
    .case-studies {
        padding: 5px 0 !important;
        margin-bottom: -80px !important;
    }
    
    .case-studies h2 {
        font-size: 1.6rem !important;
        margin-bottom: 0.8rem !important;
        text-align: center;
    }
    
    .case-studies-container {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: center;
    }
    
    .case-studies-nav {
        display: none !important;
    }
    
    .case-studies-slider {
        order: 2;
        width: 100%;
        overflow: visible !important;
    }
    
    .case-studies-track {
        display: flex !important;
        flex-direction: column !important;
        transform: none !important;
        width: 100% !important;
        gap: 1rem;
    }
    
    .case-study-slide {
        display: contents !important;
    }
    
    .case-study-slide:first-child {
        display: contents !important;
    }
    
    .case-study-slide:last-child {
        display: contents !important;
    }
    
    .case-study-card {
        min-width: 260px !important;
        max-width: 300px !important;
        width: 100%;
        margin: 0 auto;
    }
    
    .case-study-content {
        padding: 0.8rem !important;
    }
    
    .case-study-content h3 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .case-study-content p {
        font-size: 0.8rem !important;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }
    
    .case-study-tech {
        gap: 0.4rem;
    }
    
    .case-study-tech span {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }
    
    .case-studies-dots {
        display: none !important;
    }
    
    .dot {
        display: none !important;
    }
    
    /* Add tech stack directly after case studies on mobile */
    .case-studies::after {
        content: "";
        display: block;
        height: 0;
        margin: 0;
        padding: 0;
    }
    
    /* Force remove all gaps */
    .case-studies + * {
        margin-top: -100px !important;
    }
    
    /* Direct targeting of tech stack */
    .case-studies ~ .tech-stack {
        margin-top: -120px !important;
        padding-top: 0 !important;
    }
}

/* Mobile Hero Section - Compact */
@media (max-width: 768px) {
    .hero {
        min-height: 500px !important;
        padding: 60px 0 40px;
    }
    
    .hero-content {
        gap: 1.5rem !important;
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem !important;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .hero-text p {
        font-size: 0.9rem !important;
        line-height: 1.5;
    }
    
    .hero-visual {
        height: 200px !important;
        order: -1;
    }
}

/* Mobile Services Section - Compact */
@media (max-width: 768px) {
    .services {
        padding: 40px 0 20px 0 !important;
    }
    
    .services-nav h2 {
        font-size: 1.6rem !important;
        margin-bottom: 1rem !important;
    }
    
    .service-item {
        padding: 0.6rem 0 !important;
        text-align: center;
    }
    
    .service-number {
        font-size: 0.9rem !important;
        min-width: 25px;
    }
    
    .service-name {
        font-size: 0.9rem !important;
    }
    
    .services-detail {
        padding: 1rem !important;
    }
    
    .service-tabs {
        gap: 0.4rem;
        margin-bottom: 1rem;
    }
    
    .tab-btn {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
    }
    
    .device-mockup {
        height: 180px !important;
    }
    
    /* Remove gap between services and tech stack */
    .services + .tech-stack {
        margin-top: -60px !important;
    }
    
    /* Additional gap removal for case studies to tech stack */
    
    /* More aggressive gap removal */
    .case-studies {
        margin-bottom: -40px !important;
    }
    
    
    .tech-stack {
        margin-top: -60px !important;
    }
}


/* Mobile Tech Stack - Compact */
@media (max-width: 768px) {
    .tech-stack {
        padding: 0px 0 40px 0 !important;
        margin-top: -100px !important;
    }
    
    .tech-stack-header h2 {
        font-size: 1.6rem !important;
        margin-bottom: 1.5rem;
    }
    
    .tech-scroll-container {
        gap: 10px !important;
        padding: 8px 0;
    }
    
    .tech-nav {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.8rem;
    }
    
    .tech-scroll {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)) !important;
        gap: 0.6rem !important;
        padding: 8px;
    }
    
    .tech-item {
        min-width: 70px !important;
        max-width: 90px !important;
        height: 80px !important;
        padding: 0.5rem 0.3rem !important;
    }
    
    .tech-icon {
        width: 22px !important;
        height: 22px !important;
        margin-bottom: 0.2rem;
    }
    
    .tech-icon i {
        font-size: 0.8rem !important;
    }
    
    .tech-item span {
        font-size: 0.65rem !important;
    }
}

/* Mobile Contact Section - Compact */
@media (max-width: 768px) {
    .contact {
        padding: 40px 0 !important;
    }
    
    .contact-info h2 {
        font-size: 1.6rem !important;
        margin-bottom: 1rem;
    }
    
    .contact-info p {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem;
    }
    
    .contact-form {
        padding: 1rem !important;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px !important;
        font-size: 0.9rem !important;
    }
    
    .submit-btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* Mobile Footer - Compact */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px !important;
    }
    
    .footer-brand h3 {
        font-size: 1.4rem !important;
    }
    
    .footer-brand p {
        font-size: 0.85rem !important;
    }
    
    .footer-quote {
        font-size: 0.8rem !important;
        padding: 0.6rem !important;
    }
    
    .footer-column h4 {
        font-size: 1rem !important;
    }
    
    .footer-column ul li a {
        font-size: 0.85rem !important;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .nav-brand h2 {
        font-size: 1.1rem !important;
    }
    
    .logo-icon-2 {
        width: 50px !important;
        height: 50px !important;
    }
    
    .logo-icon-2::before {
        width: 50px !important;
        height: 50px !important;
    }
    
    .logo-icon-2 img {
        width: 40px; /* Proportional size for small mobile */
        height: 40px;
        object-fit: contain;
    }
    
    .theme-toggle {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.65rem !important;
    }
    
    .cta-btn {
        padding: 5px 10px !important;
        font-size: 0.65rem !important;
    }
    
    .mobile-menu-btn {
        font-size: 0.9rem !important;
        width: 30px;
        height: 30px;
    }
    
    .case-studies {
        padding: 15px 0 !important;
    }
    
    .case-studies h2 {
        font-size: 1.4rem !important;
    }
    
    .case-study-card {
        min-width: 240px !important;
        max-width: 280px !important;
    }
    
    .hero-text h1 {
        font-size: 1.6rem !important;
    }
    
    .hero-text p {
        font-size: 0.85rem !important;
    }
}
