/**
 * Ubaid Portfolio v9.0 — Responsive Styles
 * Mobile-first, all visual elements preserved.
 */

/* === LARGE DESKTOP === */
@media (min-width: 1400px) {
    :root { --container-width: 1400px; }
    .hero-heading { font-size: 5.5rem !important; }
}

/* === TABLET === */
@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); }
    .hero-heading { font-size: clamp(2.5rem, 6vw, 4rem) !important; }
}

/* === MOBILE — All visuals preserved === */
@media (max-width: 768px) {
    :root { --section-padding: 60px 0; }
    body { font-size: 15px; }

    /* HERO */
    .hero-heading { font-size: clamp(2rem, 8vw, 3.5rem) !important; }
    .hero-subheading { font-size: 0.88rem !important; max-width: 100%; }
    .btn-primary, .btn-secondary { padding: 12px 26px; font-size: 0.88rem; }
    .glass-card { padding: 20px; border-radius: var(--radius-md); }

    /* 3D Canvas: VISIBLE on mobile */
    .scroll-indicator, .cursor-glow { display: none; }
    #geometry-hero-canvas { max-width: 280px; right: 2%; opacity: 0.7; }
    #companion-canvas { display: none !important; }

    /* WhatsApp */
    .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
    .whatsapp-float svg { width: 24px; height: 24px; }

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

/* === SMALL MOBILE === */
@media (max-width: 480px) {
    :root { --section-padding: 45px 0; }
    .hero-heading { font-size: clamp(1.7rem, 9vw, 2.5rem) !important; }
    .hero-subheading { font-size: 0.82rem !important; }
    .btn-primary, .btn-secondary { padding: 11px 22px; font-size: 0.85rem; border-radius: var(--radius-lg); }
    .section-heading { font-size: clamp(1.4rem, 5vw, 2rem) !important; }
    .section-subheading { font-size: 0.85rem; }
    #geometry-hero-canvas { max-width: 220px; }
}

/* === 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-dot, .gradient-flow, .spin-slow, .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, .cursor-glow, .scroll-indicator, .floating-dot, #page-loader, #cosmos-canvas, #geometry-hero-canvas, .geometry-float { display: none !important; }
    body { background: #fff; color: #000; }
    body::before { display: none; }
}
