/* ==================== RESPONSIVE DESIGN ==================== */

/* ==================== TABLET (1200px) ==================== */
@media (max-width: 1200px) {
    header {
        padding: 2rem 10rem;
    }

    .hero {
        padding: 10rem 10rem 15rem;
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        position: static;
        transform: none;
        margin-top: 3rem;
        width: 300px;
        height: 300px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    section {
        padding: 5rem 10rem;
    }

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

    .image-wrapper {
        width: 300px;
        height: 300px;
    }
}

/* ==================== MOBILE LANDSCAPE (968px) ==================== */
@media (max-width: 968px) {
    header {
        padding: 1.5rem 5%;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: left 0.3s ease;
    }

    nav.active {
        left: 0;
    }

    nav a {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 8rem 5% 5rem;
    }

    section {
        padding: 4rem 5%;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

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

/* ==================== MOBILE PORTRAIT (768px) ==================== */
@media (max-width: 768px) {
    header {
        padding: 1.5rem 2rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero {
        padding: 10rem 2rem 5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
    }

    section {
        padding: 4rem 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

    .skill-card {
        padding: 1.5rem;
    }

    .portfolio-grid {
        gap: 1.5rem;
    }

    .contact-content {
        max-width: 100%;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

/* ==================== SMALL MOBILE (480px) ==================== */
@media (max-width: 480px) {
    header {
        padding: 1rem 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    nav a {
        font-size: 1.2rem;
    }

    .hero {
        padding: 6rem 1rem 4rem;
    }

    .hero-label {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .image-wrapper {
        width: 200px;
        height: 200px;
    }

    section {
        padding: 3rem 1rem;
    }

    .section-label {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

    .skill-card {
        padding: 1.5rem;
    }

    .skill-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .skill-card h3 {
        font-size: 1.1rem;
    }

    .skill-card p {
        font-size: 0.85rem;
    }

    .portfolio-card {
        border-radius: 15px;
    }

    .portfolio-image {
        height: 200px;
    }

    .portfolio-content {
        padding: 1rem;
    }

    .portfolio-content h3 {
        font-size: 1.1rem;
    }

    .portfolio-content p {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

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

    footer {
        padding: 1.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ==================== EXTRA SMALL (375px) ==================== */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .image-wrapper {
        width: 180px;
        height: 180px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .skills-grid,
    .portfolio-grid {
        gap: 1rem;
    }

    .skill-card,
    .portfolio-card {
        padding: 1rem;
    }
}

/* ==================== LANDSCAPE ORIENTATION ==================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 5% 3rem;
    }

    .image-wrapper {
        width: 200px;
        height: 200px;
    }

    nav {
        flex-direction: row;
        justify-content: center;
        height: auto;
        padding: 2rem;
    }

    nav a {
        font-size: 1rem;
    }
}