diff --git a/assets/css/style.css b/assets/css/style.css index 8a35b7e..aee3ece 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -1996,6 +1996,201 @@ a:hover { } } +/* ============================================ + RESPONSIVE PASS — MOBILE & TABLETTE + ============================================ */ + +@media (max-width: 900px) { + .container, + .navbar__container { + padding-left: 1.25rem; + padding-right: 1.25rem; + } + + .hero { + min-height: auto; + } + + .hero__inner { + padding-top: 5rem; + padding-bottom: 4rem; + } + + .hero__title { + max-width: 720px; + } + + .about__photo-frame { + margin-top: 0; + width: min(100%, 400px); + margin-left: auto; + margin-right: auto; + } + + .about__photo-wrapper .timeline--compact { + margin-top: 2rem; + } + + .skills__tools, + .service-card, + .contact__info-card { + padding: var(--space-xl); + } +} + +@media (max-width: 640px) { + .container, + .navbar__container { + padding-left: 1rem; + padding-right: 1rem; + } + + .section { + padding: 2.75rem 0; + } + + .section__header { + margin-bottom: 1.25rem; + } + + .section__title { + line-height: 1.25; + } + + .section__intro { + margin-bottom: 2.25rem; + } + + .hero__inner { + padding-top: 4rem; + padding-bottom: 3rem; + } + + .hero__scroll { + display: none; + } + + .hero__badge { + max-width: 100%; + margin-bottom: 1.5rem; + white-space: normal; + } + + .hero__title { + margin-bottom: 1.5rem; + } + + .hero__subtitle { + font-size: 1rem; + margin-bottom: 1.75rem; + } + + .hero__actions { + align-items: stretch; + margin-bottom: 2.25rem; + } + + .hero__actions .btn { + width: 100%; + justify-content: center; + white-space: normal; + text-align: center; + } + + .hero__stack { + gap: 0.75rem; + } + + .skills__cards { + grid-template-columns: 1fr; + } + + .skills__tools, + .service-card, + .contact__info-card { + padding: 1.25rem; + } + + .skill-card { + padding: 1.25rem; + } + + .timeline--compact { + padding-left: 1.75rem; + } + + .timeline--compact .timeline__marker { + left: calc(-1 * 1.75rem + 1px); + } + + .form__input { + width: 100%; + min-width: 0; + } + + .form__submit { + width: 100%; + justify-content: center; + } + + .toast { + right: 1rem; + bottom: 1rem; + left: 1rem; + max-width: none; + } + + .devpanel { + right: 1rem; + width: min(290px, calc(100vw - 2rem)); + } + + .devpanel-trigger { + right: 1rem; + bottom: 1rem; + } + + .footer { + padding: 2.5rem 0; + } + + .footer__links { + gap: 0.75rem 1.25rem; + } +} + +@media (max-width: 380px) { + .hero__title { + font-size: 1.75rem; + } + + .section__label, + .section__number { + font-size: 0.75rem; + } + + .navbar__container { + padding-left: 0.75rem; + padding-right: 0.75rem; + } + + .navbar__actions { + gap: 0.5rem; + } + + .theme-switch, + .navbar__burger { + width: 40px; + height: 40px; + } + + .contact__email { + align-items: flex-start; + padding-left: 0.75rem; + padding-right: 0.75rem; + } +} + /* ============================================ NO-ANIMATIONS MODE ============================================ */