/* RESPONSIVE DESIGN */

/* TABLET - 768px and down */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__menu {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar__menu.is-open {
        max-height: 320px;
    }

    .navbar__menu .nav-link {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar__menu .nav-link::after {
        display: none;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__visual {
        height: 280px;
        margin-top: 2rem;
    }

    .hero__photo {
        width: min(260px, 70%);
    }

    .hero__aura {
        width: 320px;
        height: 320px;
        filter: blur(50px);
    }

    .hero__cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .project-card {
        padding: 2rem;
    }

    .project-card__number {
        font-size: 2.5rem;
    }

    .project-card__stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-detail__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.25rem;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .mockup-preview video {
        max-height: 320px;
    }

    .process-step {
        padding: 1.25rem;
        gap: 1rem;
    }

    .process-step__number {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.85rem;
    }

    .toolbox__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .toolbox__category {
        padding: 1.5rem;
    }

    .toolbox__category h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .contact__subtitle {
        font-size: 1.1rem;
    }

    .contact__links {
        gap: 1rem;
    }

    .contact-link {
        padding: 1.25rem;
    }

    .footer .container {
        flex-direction: column;
        gap: 1rem;
    }

    .footer p {
        font-size: 0.8rem;
    }

    .skills-list {
        gap: 0.5rem;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
}

/* MOBILE - 480px and down */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    h2 {
        font-size: clamp(1.25rem, 6vw, 2rem);
    }

    h3 {
        font-size: 1rem;
    }

    body {
        font-size: 0.95rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .navbar__container {
        padding: 0 1rem;
    }

    .navbar__logo a {
        font-size: 1.25rem;
    }

    .navbar__menu {
        top: 57px;
    }

    .hero {
        padding-top: 80px;
        padding-bottom: 40px;
        min-height: 80vh;
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero__cta {
        flex-direction: column;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero__visual {
        height: 240px;
        margin-top: 1.5rem;
    }

    .hero__photo {
        width: min(220px, 70%);
    }

    .hero__aura {
        width: 220px;
        height: 220px;
        filter: blur(40px);
    }

    section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .about__text p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .skills-group {
        padding: 1.5rem;
    }

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

    .project-card {
        padding: 1.5rem;
    }

    .project-card__number {
        font-size: 2rem;
    }

    .project-card__title {
        font-size: 1.25rem;
    }

    .project-card__meta {
        font-size: 0.75rem;
    }

    .project-card__stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .stat__value {
        font-size: 1.1rem;
    }

    .stat__label {
        font-size: 0.65rem;
    }

    .project-detail__header h2 {
        font-size: 1.75rem;
    }

    .project-detail__content {
        gap: 1.5rem;
    }

    .detail-list li {
        padding: 0.5rem 0;
        padding-left: 1rem;
        font-size: 0.95rem;
    }

    .video-gallery {
        margin-top: 2rem;
    }

    .gallery-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .mockup-preview video {
        max-height: 240px;
    }

    .process-timeline {
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .process-step {
        padding: 1rem;
        gap: 0.75rem;
    }

    .process-step__body h4 {
        font-size: 0.95rem;
    }

    .process-step__body p {
        font-size: 0.85rem;
    }

    .video-item {
        aspect-ratio: 9 / 16;
    }

    .video-label {
        bottom: 0.75rem;
        left: 0.75rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.65rem;
    }

    .toolbox__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .toolbox__category {
        padding: 1.25rem;
    }

    .toolbox__category h3 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .tool-list {
        gap: 0.5rem;
    }

    .tool-list li {
        font-size: 0.9rem;
        padding-left: 0.75rem;
    }

    .contact__content {
        max-width: 100%;
    }

    .contact__content h2 {
        font-size: 1.75rem;
    }

    .contact__subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .contact__links {
        gap: 0.75rem;
    }

    .contact-link {
        padding: 1rem;
    }

    .contact-link span:first-child {
        font-size: 0.75rem;
    }

    .contact-link span:last-child {
        font-size: 1rem;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer .container {
        flex-direction: column;
        gap: 1rem;
    }

    .footer p {
        font-size: 0.75rem;
    }

    .reveal-fade {
        animation: fadeInUp 0.6s ease 0.2s backwards;
    }

    .reveal-card {
        animation: scaleInUp 0.5s ease 0.1s backwards;
    }
}

/* SMALL MOBILE - 360px and down */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }

    h1 {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .project-card {
        padding: 1.25rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

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

    .navbar__menu {
        font-size: 0.75rem;
        gap: 0.75rem;
    }
}

/* LANDSCAPE MODE */
@media (max-height: 600px) {
    .hero {
        min-height: 80vh;
        padding-top: 80px;
    }

    section {
        padding: 40px 0;
    }
}

/* DARK MODE (already dark by default) */
@media (prefers-color-scheme: dark) {
    /* Already implemented as default */
}

/* PRINT */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .navbar,
    .hero__visual,
    .contact__accent,
    .footer {
        display: none;
    }

    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }

    a {
        text-decoration: underline;
    }
}
