/* Responsive Design */
@media (max-width: 768px) {
    /* Move navbar to top on mobile */
    .navbar {
        top: 0;
        left: 0;
        height: auto;
        width: 100%;
        padding: 1rem 0 0.5rem 0;
        border-right: none;
        border-bottom: 1px solid rgba(179, 162, 113, 0.1);
        flex-direction: column;
        gap: 1rem;
    }

    .nav-container {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
        padding: 0 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem;
        writing-mode: horizontal-tb;
        text-orientation: unset;
        letter-spacing: normal;
        transform: none;
    }

    .nav-link:hover {
        color: #b3a271;
    }

    .nav-link.active {
        color: #b3a271;
    }

    .nav-bottom {
        flex-direction: row;
        gap: 1.5rem;
        padding: 0;
        justify-content: center;
        align-items: center;
    }

    .cv-download {
        padding: 0.3rem;
    }

    .cv-download i {
        font-size: 1.3rem;
    }

    .social-links {
        flex-direction: row;
        gap: 1.5rem;
    }

    .social-link {
        padding: 0.3rem;
    }

    .social-link svg {
        width: 22px;
        height: 22px;
    }

    .section {
        padding: 6rem 2rem 4rem 2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    /* Reduce particles on mobile */
    .particles span {
        opacity: 0.3;
    }

    .particles span:nth-child(n+7) {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image img {
        max-width: 300px;
    }

    .skills-subtitle {
        font-size: 1.5rem;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-dot {
        left: 1px;
        width: 18px;
        height: 18px;
    }

    .skills-tags {
        gap: 0.6rem;
    }

    .skill-tag {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .skill-tag-primary {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

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

    .contact-info {
        grid-template-columns: 1fr;
    }

    .loader-bar {
        width: 250px;
    }

    .first-name,
    .last-name {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem;
    }

    .cv-download i {
        font-size: 1.2rem;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 6rem 1rem 3rem 1rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .skill-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .skill-tag-primary {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .skill-icon-small {
        font-size: 1rem;
    }

    .loader-bar {
        width: 200px;
    }

    .first-name,
    .last-name {
        font-size: 2rem;
    }
}
