/* Mobile Responsive Styles - Complete Website Optimization */

/* Base Responsive Setup */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container Responsive */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
        position: relative;
    }
    
    .nav-container {
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
        padding: 1rem 2rem;
        color: var(--text-primary);
        text-decoration: none;
        display: block;
        transition: color 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--neon-blue);
    }
    
    .nav-cta {
        display: none !important;
    }
    
    .hamburger {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        z-index: 1001;
        position: relative;
        width: 30px;
        height: 25px;
        justify-content: space-between;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        transition: 0.3s;
        display: block;
        border-radius: 2px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background: var(--neon-pink);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background: var(--neon-pink);
    }
}

/* Hero Section Mobile */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-badges {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 2rem;
    }
    
    .badge {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-3d-elements {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* Services Section Mobile */
@media (max-width: 768px) {
    .services-zigzag .service-item {
        flex-direction: column !important;
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .service-content {
        order: 2;
        margin-top: 2rem;
    }
    
    .service-visual {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .service-item.right .service-content {
        order: 2;
    }
    
    .service-item.right .service-visual {
        order: 1;
    }
    
    .tech-stack {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .platform-icons {
        justify-content: center;
    }
    
    .content-types {
        flex-direction: column;
        gap: 1rem;
    }
}

/* About Section Mobile */
@media (max-width: 768px) {
    .glass-slider-container {
        padding: 20px;
    }
    
    .slide h3 {
        font-size: 1.5rem;
    }
    
    .slide p {
        font-size: 0.9rem;
    }
    
    .slider-controls {
        margin-top: 2rem;
    }
    
    .video-hero {
        background-attachment: scroll !important;
    }
    
    .hero-main-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.5rem !important;
    }
    
    .team-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 100%;
        max-width: 300px;
    }
}

/* Portfolio Section Mobile */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .project-filters {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .portfolio-hero {
        background-attachment: scroll !important;
    }
    
    .portfolio-hero h1 {
        font-size: 2.5rem !important;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }
    
    .project-card.large {
        grid-column: span 1 !important;
    }
}

/* Blog Section Mobile */
@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        padding: 0 20px;
    }
    
    .blog-hero {
        background-attachment: scroll !important;
    }
    
    .blog-hero-content h1 {
        font-size: 2.5rem !important;
    }
    
    .post-content {
        padding: 20px;
    }
}

/* Testimonials Mobile */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 0.9rem;
    }
}

/* Blog Features Mobile */
@media (max-width: 768px) {
    .blog-features {
        flex-direction: column;
        gap: 2rem;
    }
    
    .blog-feature {
        text-align: center;
    }
    
    .blog-header h2 {
        font-size: 2rem;
    }
}

/* Contact CTA Mobile */
@media (max-width: 768px) {
    .contact-cta-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .contact-cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
}

/* Footer Mobile */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .contact-info p {
        justify-content: center;
        text-align: left;
    }
}

/* Buttons Mobile */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 1rem;
        min-height: 48px;
    }
}

/* Typography Mobile */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.2rem;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem !important;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
}

/* Contact Page Mobile */
@media (max-width: 768px) {
    .contact-hero {
        padding: 120px 0 60px;
        min-height: 50vh;
        background-attachment: scroll !important;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr !important;
        gap: 3rem;
        padding: 0 20px;
    }
    
    .contact-form-section {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .map-wrapper iframe {
        height: 300px;
    }
    
    .faq-container {
        padding: 0 20px;
    }
}

/* Services Page Mobile */
@media (max-width: 768px) {
    .service-hero {
        background-attachment: scroll !important;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .pricing-card {
        min-height: auto;
    }
    
    .price {
        font-size: 2.8rem !important;
    }
    
    .combo-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .combo-price {
        font-size: 2.8rem !important;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .services-zigzag .service-item {
        gap: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 3rem;
    }
}

/* Large Desktop */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
        padding: 0 60px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 100px 0 40px;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: space-around;
    }
}

/* Touch Targets */
@media (max-width: 768px) {
    a, button, .clickable {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link {
        padding: 1rem;
        min-height: 44px;
    }
}

/* Performance Optimizations */
@media (max-width: 768px) {
    .parallax-bg,
    .hero-3d-elements,
    .floating-website,
    .particle-field {
        display: none !important;
    }
    
    .tilt-effect {
        transform: none !important;
    }
    
    .scale-in,
    .fade-in-left,
    .fade-in-right {
        animation: none !important;
    }
    
    /* Disable background-attachment: fixed on mobile */
    .hero,
    .contact-hero,
    .portfolio-hero,
    .blog-hero,
    .service-hero,
    .video-hero {
        background-attachment: scroll !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 40px;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Form Optimizations */
@media (max-width: 768px) {
    input, select, textarea, button {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 15px;
        border-radius: 10px;
    }
}

/* Grid Fallbacks */
@supports not (display: grid) {
    .footer-content,
    .contact-container,
    .blog-container,
    .portfolio-grid,
    .projects-grid,
    .testimonials-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
}

/* Flexbox Fallbacks */
@supports not (display: flex) {
    .hero-stats,
    .hero-badges,
    .contact-cta-buttons,
    .footer-social {
        display: block;
    }
    
    .hero-stats > *,
    .hero-badges > *,
    .contact-cta-buttons > *,
    .footer-social > * {
        display: inline-block;
        margin: 0.5rem;
    }
}