/* Mobile Responsive Styles - Neo-Tokyo Neon */

/* Tablet Styles */
@media only screen and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile Landscape */
@media only screen and (max-width: 768px) {
    /* Header adjustments */
    .main-header {
        padding: 10px 0;
    }
    
    .logo {
        height: 40px;
    }
    
    .ui.menu {
        flex-direction: column;
        background: rgba(26, 26, 26, 0.98) !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .ui.menu.active {
        max-height: 500px;
        border-top: 1px solid rgba(0, 255, 255, 0.3);
    }
    
    .ui.menu .item {
        width: 100%;
        text-align: center;
        padding: 15px !important;
        border-bottom: 1px solid rgba(0, 255, 255, 0.1) !important;
    }
    
    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: block;
        background: transparent;
        border: 2px solid #00ffff;
        color: #00ffff;
        padding: 8px 12px;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: #00ffff;
        color: #000;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        margin: 3px 0;
        transition: 0.3s;
    }
    
    /* Hero section mobile */
    .hero-section {
        height: 70vh;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Content sections */
    .content-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* Cards */
    .neon-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    /* Forms */
    .contact-form {
        padding: 25px;
        margin: 0 15px;
    }
    
    .contact-form .field {
        margin-bottom: 15px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 12px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    .gdpr-field label {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Buttons */
    .neon-button {
        padding: 12px 25px;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .ui.button {
        width: 100% !important;
        padding: 15px !important;
        font-size: 1rem !important;
    }
    
    /* Back to top button */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        line-height: 41px;
    }
}

/* Mobile Portrait */
@media only screen and (max-width: 480px) {
    /* Typography */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
    
    /* Hero section */
    .hero-section {
        height: 60vh;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Content adjustments */
    .content-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title::after {
        width: 60px;
        margin: 15px auto;
    }
    
    /* Cards */
    .neon-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .neon-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    /* Forms */
    .contact-form {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .contact-form .field label {
        font-size: 0.9rem !important;
        margin-bottom: 5px !important;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 10px !important;
    }
    
    .gdpr-field {
        margin-top: 15px;
    }
    
    .gdpr-field label {
        font-size: 0.8rem !important;
    }
    
    /* Grid adjustments */
    .ui.grid>.column {
        padding: 0.5rem !important;
    }
    
    .ui.stackable.grid>.column {
        padding: 1rem 0.5rem !important;
    }
    
    /* Table responsive */
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 8px 5px;
    }
    
    /* Footer adjustments */
    .main-footer {
        padding: 30px 0 20px;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        line-height: 33px;
        font-size: 0.8rem;
    }
    
    /* Container adjustments */
    .ui.container {
        padding: 0 15px !important;
    }
    
    /* Menu adjustments for very small screens */
    .ui.menu .item {
        padding: 12px 15px !important;
        font-size: 0.9rem;
    }
    
    /* Alert messages */
    .alert {
        padding: 10px 15px;
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    /* Image adjustments */
    .image-hover-effect:hover {
        transform: none; /* Disable hover effects on mobile */
    }
    
    /* Neon effects optimization for mobile */
    .neon-text {
        text-shadow: 
            0 0 3px #00ffff,
            0 0 6px #00ffff,
            0 0 9px #00ffff;
        animation: none; /* Disable heavy animations on mobile */
    }
    
    .neon-card:hover {
        transform: none; /* Disable hover transform on mobile */
    }
    
    .neon-button:hover {
        transform: none;
    }
}

/* Very small screens */
@media only screen and (max-width: 320px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .contact-form {
        padding: 15px 10px;
        margin: 0 5px;
    }
    
    .neon-card {
        padding: 12px;
    }
    
    .ui.container {
        padding: 0 10px !important;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        line-height: 36px;
        font-size: 0.8rem;
    }
}

/* Landscape orientation adjustments */
@media only screen and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .content-section {
        padding: 30px 0;
    }
}

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

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark theme */
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .neon-text {
        animation: none;
    }
    
    .hero-section::before {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .neon-text {
        color: #ffffff;
        text-shadow: none;
    }
    
    .neon-button {
        border-width: 3px;
    }
    
    .neon-card {
        border-width: 2px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects for touch devices */
    .neon-card:hover,
    .image-hover-effect:hover,
    .neon-button:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .ui.menu .item,
    .neon-button,
    .social-links a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Optimize animations for touch */
    .neon-text {
        animation: none;
    }
}