/**
 * Ubaid Portfolio 3D - Responsive Styles
 */

/* === TABLET (max-width: 1024px) === */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    .container {
        padding: 0 20px;
    }

    h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
    h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
    h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

    .hero-heading {
        font-size: clamp(2.5rem, 6vw, 4rem) !important;
    }

    /* Avatar smaller on tablet */
    .ubaid-avatar-wrapper canvas {
        max-width: 350px;
    }
}

/* === MOBILE (max-width: 768px) === */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    body {
        font-size: 15px;
    }

    /* Hero adjustments */
    .parallax-hero-content {
        text-align: center;
        padding: 0 16px;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 16px;
        letter-spacing: 1.5px;
    }

    .hero-heading {
        font-size: clamp(2rem, 8vw, 3.5rem) !important;
    }

    .hero-subheading {
        font-size: 0.9rem !important;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons a {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Avatar smaller on mobile */
    .ubaid-avatar-wrapper canvas {
        max-width: 280px;
        height: auto;
    }

    .avatar-label .avatar-name {
        font-size: 1.2rem;
    }

    /* Navigation */
    .ubaid-nav-inner {
        padding: 0 16px;
    }

    .ubaid-nav-links {
        gap: 20px;
    }

    .ubaid-nav-links a {
        font-size: 0.8rem;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    /* Glass cards */
    .glass-card {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    /* Sections */
    .ubaid-scroll-section {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Skill bars */
    .skill-item {
        margin-bottom: 22px !important;
    }

    /* ROI Counter */
    .roi-number {
        font-size: 60px !important;
    }

    .roi-number-wrap {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Scroll indicator hidden on mobile */
    .scroll-indicator {
        display: none;
    }

    /* WhatsApp float */
    .whatsapp-float,
    .ubaid-wa-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg,
    .ubaid-wa-float svg {
        width: 24px;
        height: 24px;
    }

    /* Cursor glow disabled on mobile */
    .cursor-glow {
        display: none;
    }

    /* Footer */
    .ubaid-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .ubaid-footer-links {
        justify-content: center;
    }

    /* Project cards */
    .project-meta {
        grid-template-columns: 1fr;
    }

    /* Floating shapes */
    .floating-shape {
        display: none;
    }
}

/* === SMALL MOBILE (max-width: 480px) === */
@media (max-width: 480px) {
    :root {
        --section-padding: 40px 0;
    }

    .container {
        padding: 0 16px;
    }

    .hero-heading {
        font-size: clamp(1.8rem, 9vw, 2.5rem) !important;
    }

    .hero-subheading {
        font-size: 0.85rem !important;
    }

    .avatar-wrapper canvas {
        max-width: 220px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.85rem;
        border-radius: var(--radius-lg);
    }

    /* NDA Banner */
    .ubaid-nda-banner {
        flex-direction: column;
        text-align: center;
        padding: 14px 18px;
        font-size: 0.85rem;
    }

    /* 404 page */
    .container h1 {
        font-size: clamp(4rem, 20vw, 8rem) !important;
    }
}

/* === LARGE SCREENS (min-width: 1400px) === */
@media (min-width: 1400px) {
    :root {
        --container-width: 1400px;
    }

    .container {
        max-width: 1400px;
    }

    .hero-heading {
        font-size: 5.5rem !important;
    }
}

/* === 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;
    }

    .floating-shape,
    .parallax-bg-aurora::after,
    .gradient-flow,
    .spin-slow {
        animation: none !important;
    }

    .hero-badge-dot {
        animation: none !important;
    }
}

/* === HIGH CONTRAST === */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #d0d0e0;
        --bg-glass-border: rgba(255, 255, 255, 0.2);
    }

    .glass-card {
        border: 1px solid rgba(255, 255, 255, 0.25);
    }
}

/* === PRINT === */
@media print {
    .whatsapp-float,
    .ubaid-wa-float,
    .cursor-glow,
    .scroll-indicator,
    .floating-shape,
    #page-loader,
    .parallax-layer-bg,
    .parallax-layer-mid {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    body::before {
        display: none;
    }
}
