/**
 * Prashant Rana Portfolio — Responsive Styles
 * Mobile-first breakpoints for all chapters
 */

/* ============ Tablet (768px) ============ */
@media (max-width: 768px) {
    .hero__name {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }

    .hero__description {
        font-size: var(--fs-small);
        padding: 0 var(--space-md);
    }

    .hero__actions {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .identity-layout {
        gap: var(--space-xl);
    }

    .identity__avatar {
        width: 200px;
        height: 200px;
    }

    .expertise-scene {
        gap: var(--space-xl);
    }

    .expertise-scene__visual {
        height: 240px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline__marker {
        left: -2rem;
    }

    .timeline__content {
        padding: var(--space-lg);
    }

    .timeline__header {
        flex-direction: column;
    }

    .footer__content {
        flex-direction: column;
    }
}

/* ============ Small Mobile (480px) ============ */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --space-section: clamp(4rem, 10vh, 6rem);
    }

    .hero__name {
        font-size: clamp(2rem, 12vw, 2.75rem);
    }

    .hero__tagline {
        font-size: var(--fs-body);
    }

    .hero__scroll {
        bottom: 1.5rem;
    }

    .identity__avatar {
        width: 160px;
        height: 160px;
    }

    .identity__highlights {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: var(--space-lg);
    }

    .service-card {
        padding: var(--space-xl);
    }

    .testimonial-card {
        padding: var(--space-xl);
    }

    .testimonial-card__quote {
        font-size: var(--fs-body);
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer__nav {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============ Large Screens (1400px+) ============ */
@media (min-width: 1400px) {
    :root {
        --container-max: 1360px;
    }

    .hero__name {
        font-size: 5rem;
    }

    .expertise-scene__visual {
        height: 420px;
    }
}

/* ============ Touch Device Adjustments ============ */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch */
    .glass-card:hover {
        transform: none;
        box-shadow: var(--glass-shadow);
    }

    .btn--primary:hover {
        transform: none;
    }

    /* Tap targets: 44px minimum */
    .navbar__link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .progress-nav__item {
        min-height: 44px;
    }
}

/* ============ High Contrast Mode ============ */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(0, 0, 0, 0.9);
        --glass-border: rgba(255, 255, 255, 0.3);
        --border-light: rgba(255, 255, 255, 0.2);
        --border-medium: rgba(255, 255, 255, 0.35);
    }

    .glass-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ============ Print Styles ============ */
@media print {
    .navbar,
    .progress-nav,
    .cursor,
    .cursor__dot,
    .shader-canvas,
    .particle-canvas,
    .loading-overlay,
    .scroll-progress,
    .hero__scroll {
        display: none !important;
    }

    .chapter {
        min-height: auto;
        page-break-inside: avoid;
        padding: 2rem 0;
    }

    .will-reveal {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    body {
        background: white;
        color: black;
    }
}
