/* ═══════════════════════════════════════════
   responsive.css — Breakpoint overrides
   ═══════════════════════════════════════════ */

/* ── Tablet (≤ 1024 px) ── */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .profile-avatar {
        width: 240px;
        height: 240px;
    }

    .profile-emoji {
        font-size: 7rem;
    }

    .contact-container {
        flex-direction: column;
    }
    
    /* Better spacing for tablets */
    .section-padding {
        padding: 5rem 0;
    }
    
    /* Skills grid optimization */
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1.5rem;
    }
}

/* ── Mobile (≤ 768 px) ── */
@media (max-width: 768px) {
    /* Adjust body padding for mobile header height */
    body { 
        padding-top: 70px;
    }

    /* Container padding for mobile */
    .container {
        padding-inline: 1.5rem;
    }

    /* Show hamburger, hide desktop nav */
    .desktop-nav        { display: none; }
    .mobile-menu-toggle { display: flex; }

    /* Hero stacks vertically */
    .hero {
        min-height: auto;
        padding: 4rem 0 3rem;
    }
    
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-text { 
        margin-top: 2rem;
    }
    
    .hero-title { 
        font-size: 2.75rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .typing-container {
        font-size: 1.25rem;
        justify-content: center;
    }
    
    .hero-buttons { 
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        min-width: 140px;
        padding: 0.875rem 1.5rem;
    }
    
    .hero-description {
        margin-inline: auto;
        font-size: 1rem;
    }
    
    /* Profile adjustments */
    .profile-avatar {
        width: 220px;
        height: 220px;
    }
    
    /* Hide floating shapes on mobile for cleaner look */
    .floating-shapes {
        display: none;
    }

    /* Section improvements */
    .section-padding { 
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }

    /* Skills grid mobile */
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .skill-card {
        padding: 1.25rem 1rem;
    }
    
    .skill-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .skill-name {
        font-size: 0.95rem;
    }

    /* Projects grid mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-card {
        max-width: 100%;
    }
    
    .project-image {
        height: 220px;
    }
    
    .project-tags {
        gap: 0.5rem;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Contact info centers */
    .contact-info { 
        align-items: center;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-icon {
        margin-bottom: 0.5rem;
    }
    
    /* Form improvements */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer improvements */
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .footer-link {
        font-size: 0.95rem;
    }
    
    /* Design section */
    .design-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ── Small mobile (≤ 576 px) ── */
@media (max-width: 576px) {
    /* Tighter spacing for small screens */
    .section-padding { 
        padding: 3.5rem 0;
    }
    
    .container {
        padding-inline: 1rem;
    }

    .hero {
        padding: 3.5rem 0 2.5rem;
    }

    .hero-title { 
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .typing-container {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        min-width: auto;
    }
    
    .section-title { 
        font-size: 1.875rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }

    .profile-avatar { 
        width: 180px;
        height: 180px;
    }
    
    .profile-emoji { 
        font-size: 5rem;
    }

    /* Skills ultra-compact */
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.875rem;
    }
    
    .skill-card {
        padding: 1rem 0.75rem;
    }
    
    .skill-icon {
        font-size: 2.25rem;
        margin-bottom: 0.5rem;
    }
    
    .skill-name {
        font-size: 0.875rem;
    }
    
    /* Project improvements */
    .project-image {
        height: 200px;
    }
    
    .project-title {
        font-size: 1.25rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    /* About section */
    .about-intro h3 {
        font-size: 1.5rem;
    }
    
    .about-description {
        font-size: 0.95rem;
    }
    
    .highlight-number {
        font-size: 1.875rem;
    }
    
    .highlight-label {
        font-size: 0.85rem;
    }
    
    /* Contact form */
    .contact-container {
        gap: 2rem;
    }
    
    /* Footer compact */
    .footer {
        padding: 2rem 0;
    }
    
    .footer-text {
        font-size: 0.9rem;
    }
    
    .copyright {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .form-note {
        flex-wrap: wrap;
        align-items: flex-start;
        line-height: 1.6;
    }

    .form-note a {
        word-break: break-all;
    }
}

@media (max-width: 576px) {
    .form-note {
        flex-direction: column;
        gap: 0.25rem;
    }
}


/* ── Extra small devices (≤ 400 px) ── */
@media (max-width: 400px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .profile-avatar {
        width: 160px;
        height: 160px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }
}