/* ===== ZS PROAPPS THEME - RESPONSIVE STYLES ===== */

/* ===== TABLET (768px and down) ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -300px;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 15, 27, 0.98);
        width: 300px;
        text-align: left;
        transition: all 0.3s ease;
        gap: 1rem;
        padding: 2rem 1.5rem;
        border-right: 1px solid rgba(0, 255, 255, 0.3);
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    header.site-header {
        padding: 1rem 5%;
    }

    .nav-menu li a::after {
        display: none;
    }

    .nav-menu li a.active {
        background: rgba(0, 255, 255, 0.1);
        padding-left: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about-grid,
    .tech-grid,
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .app-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .app-title {
        font-size: 1.8rem;
    }

    .section-container {
        padding: 3rem 5%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===== MOBILE (480px and down) ===== */
@media (max-width: 480px) {
    header.site-header {
        padding: 0.8rem 5%;
    }

    .site-logo-text {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .hero-section {
        padding: 0 4%;
    }

    .hero-content {
        animation: none;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .section-container {
        padding: 2rem 4%;
    }

    .about-card,
    .tech-item,
    .app-card {
        padding: 1.5rem;
    }

    .about-icon,
    .tech-icon {
        font-size: 2.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .contact-form {
        gap: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem 0.8rem;
        font-size: 1rem;
    }

    .form-group {
        margin-bottom: 0.5rem;
    }

    .app-actions {
        flex-direction: column;
    }

    .app-actions .btn {
        width: 100%;
    }

    .app-links .btn {
        flex: 1;
        min-width: 100%;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .site-footer {
        padding: 2rem 4%;
    }

    .footer-bottom p {
        font-size: 0.9rem;
    }
}

/* ===== LARGE SCREENS (1200px and up) ===== */
@media (min-width: 1200px) {
    .section-container {
        padding: 6rem 3%;
    }

    .hero-title {
        font-size: 4rem;
    }

    .about-grid,
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .apps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 2rem 5%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        gap: 1rem;
    }

    .hero-buttons .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* ===== ACCESSIBILITY - REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: more) {
    :root {
        --primary-color: #00FFFF;
        --secondary-color: #FF00FF;
        --text-muted: #CCCCCC;
    }

    header.site-header {
        border-bottom-width: 2px;
    }

    .btn-primary,
    .btn-secondary {
        border-width: 2px;
    }
}

/* ===== DARK MODE (automatic if system prefers dark) ===== */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #050507 0%, #0f0f1b 100%);
        color: var(--text-light);
    }
}

/* ===== LIGHT MODE SUPPORT ===== */
@media (prefers-color-scheme: light) {
    body {
        background: linear-gradient(135deg, #f5f5f5 0%, #fffaff 100%);
        color: #333333;
    }

    --text-light: #333333;
    --text-muted: #666666;

    header.site-header {
        background: rgba(255, 255, 255, 0.95);
        border-bottom-color: rgba(0, 255, 255, 0.2);
    }

    .about-card,
    .tech-item,
    .app-card {
        background: rgba(0, 255, 255, 0.05);
        border-color: rgba(0, 255, 255, 0.2);
    }

    .about-card:hover,
    .tech-item:hover,
    .app-card:hover {
        background: rgba(0, 255, 255, 0.1);
    }

    .form-group input,
    .form-group textarea {
        background: rgba(255, 255, 255, 0.8);
        color: #333333;
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #999999;
    }

    .contact-form-wrapper {
        background: rgba(0, 255, 255, 0.05);
        border-color: rgba(0, 255, 255, 0.2);
    }
}

/* ===== TOUCH DEVICES (hover effects) ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:active {
        transform: translateY(-2px);
    }

    .about-card:active,
    .tech-item:active,
    .app-card:active {
        transform: translateY(-10px);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    header.site-header,
    .site-footer,
    .hero-buttons,
    .contact-section,
    .btn {
        display: none;
    }

    .site-main,
    .page-content {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}
