/* ==============================
   RESPONSIVE - All Devices
   ============================== */

/* Large tablets & small laptops: iPad Pro (1024), Surface Pro 7 (912), Nest Hub Max (1280) */
@media (max-width: 1024px) {
    .pro-hero-gallery {
        top: -60px;
        left: -60px;
        right: -60px;
    }

    /* Hero text sizing moved to hero-standardization.css for consistency */
}

/* Tablets: iPad Mini (768), iPad Air (820), Zenbook Fold (853), Surface Duo landscape */
@media (max-width: 820px) {
    .pro-hero {
        height: 80vh;
        perspective: 800px;
        margin-top: 60px;
    }

    .pro-hero-gallery {
        top: -40px;
        left: -40px;
        right: -40px;
        gap: 8px;
    }

    .gallery-col img {
        aspect-ratio: 2 / 3;
        margin-bottom: 8px;
    }

    .gallery-col {
        width: calc(20% - 6px);
    }

    /* Hero text styling moved to hero-standardization.css for consistency */

    .hero-class-tag {
        margin-top: 1.5rem;
    }

    .pro-hero-scroll-hint {
        bottom: 20px;
    }

    .home-main {
        padding: 70px var(--spacing-md) 60px;
    }

    .hero-profile-img {
        width: 75px;
        height: 75px;
    }

    .hero-social-link {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    [class^="hero-frame-"] {
        width: 45px;
        height: 45px;
    }

    .home-cards {
        max-width: 550px;
    }
}

/* Nest Hub (1024x600) - landscape with short height */
@media (max-height: 650px) and (min-width: 800px) {
    .home-main {
        padding: 65px var(--spacing-md) 20px;
    }

    .home-cards {
        padding-bottom: var(--spacing-sm);
    }

    .hero-profile-img {
        width: 60px;
        height: 60px;
    }

    .hero-social-link {
        width: 32px;
        height: 32px;
    }

    [class^="hero-frame-"] {
        width: 35px;
        height: 35px;
    }

    .pro-hero {
        height: 100vh;
        margin-top: 50px;
    }

}

/* Large phones & Surface Duo portrait: 540px */
@media (max-width: 600px) {
    .header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .header-logo {
        width: 38px;
        height: 38px;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .pro-hero {
        height: 75vh;
        perspective: 700px;
        margin-top: 55px;
    }

    .pro-hero-gallery {
        gap: 6px;
        top: -25px;
        left: -25px;
        right: -25px;
    }

    /* Hide columns 4 & 5 on phones â€” 3 columns look better */
    .gallery-col-4,
    .gallery-col-5 {
        display: none;
    }

    .gallery-col {
        width: calc(33.333% - 4px);
    }

    .gallery-col img {
        margin-bottom: 6px;
        border-radius: 3px;
    }

    /* Hero label and role styling moved to hero-standardization.css */

    .hero-class-tag {
        margin-top: 1.2rem;
        gap: 8px;
    }

    .class-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .class-name {
        font-size: 0.7rem;
    }

    .hero-profile-img {
        width: 65px;
        height: 65px;
    }

    .hero-social-link {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .hero-social-links {
        gap: 14px;
    }

    [class^="hero-frame-"] {
        width: 35px;
        height: 35px;
    }

    .home-cards {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
        max-width: 400px;
    }

    .home-card {
        width: 100%;
    }

    .social-card .card-content h3 {
        font-size: 0.95rem;
    }
}

/* Standard phones: iPhone XR (414), iPhone 12 Pro (390), Pixel 7 (412),
   iPhone 14 Pro Max (430), Samsung Galaxy A51/71 (412), S20 Ultra (412) */
@media (max-width: 430px) {
    .footer-inner {
        padding: 0.6rem var(--spacing-md);
    }

    .footer-copy {
        font-size: 0.65rem;
    }

    .footer-drive {
        font-size: 0.75rem;
    }

    .hero-profile-img {
        width: 55px;
        height: 55px;
    }

    .hero-social-link {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .hero-social-links {
        gap: 12px;
    }

    [class^="hero-frame-"] {
        width: 28px;
        height: 28px;
    }

    .home-card {
        padding: var(--spacing-sm);
    }

    .home-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .home-card-title {
        font-size: 0.9rem;
    }

    .pro-hero {
        height: 65vh;
        perspective: 600px;
        margin-top: 50px;
    }

    .pro-hero-gallery {
        gap: 5px;
        top: -15px;
        left: -15px;
        right: -15px;
        transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.05);
    }

    .gallery-col {
        width: calc(33.333% - 3px);
    }

    .gallery-col img {
        margin-bottom: 5px;
        border-radius: 2px;
    }

    .pro-hero-scroll-hint {
        display: none;
    }

    /* Hero text styling moved to hero-standardization.css */

    .hero-class-tag {
        margin-top: 1rem;
        gap: 6px;
    }

    .class-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .class-name {
        font-size: 0.65rem;
    }

    .social-card {
        padding: var(--spacing-sm);
    }

    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Small phones: iPhone SE (375), Samsung Galaxy S8+ (360), Galaxy Z Fold 5 folded (344) */
@media (max-width: 375px) {
    .header {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .header-logo {
        width: 34px;
        height: 34px;
    }

    .nav-link {
        font-size: 0.78rem;
    }

    .hero-profile-img {
        width: 50px;
        height: 50px;
    }

    .hero-social-link {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }

    .hero-social-links {
        gap: 10px;
    }

    [class^="hero-frame-"] {
        display: none;
    }

    .home-card-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .home-card-title {
        font-size: 0.85rem;
    }

    .home-card-sub {
        font-size: 0.7rem;
    }

    .pro-hero {
        height: 60vh;
        margin-top: 45px;
    }

    .pro-hero-gallery {
        gap: 4px;
        top: -10px;
        left: -10px;
        right: -10px;
    }

    .gallery-col {
        width: calc(33.333% - 3px);
    }

    .gallery-col img {
        margin-bottom: 4px;
    }

    /* Hero label styling moved to hero-standardization.css */

    .hero-class-tag {
        margin-top: 0.8rem;
        gap: 5px;
    }

    .class-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .class-name {
        font-size: 0.6rem;
    }

    .social-card .card-content h3 {
        font-size: 0.85rem;
    }

    .social-card .card-content p {
        font-size: 0.7rem;
    }
}

/* Extra small: Galaxy Z Fold 5 folded (344) */
@media (max-width: 344px) {
    .hero-profile-img {
        width: 45px;
        height: 45px;
    }

    .hero-social-link {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }

    .hero-social-links {
        gap: 8px;
    }

    .nav-link {
        font-size: 0.72rem;
    }

    .pro-hero {
        height: 55vh;
        margin-top: 40px;
    }

    .pro-hero-gallery {
        gap: 3px;
        top: -8px;
        left: -8px;
        right: -8px;
    }

    .gallery-col img {
        margin-bottom: 3px;
    }

    /* Hero text styling moved to hero-standardization.css */

    .hero-class-tag {
        margin-top: 0.6rem;
    }

    .class-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
    }

    .class-name {
        font-size: 0.55rem;
    }
}