/* ===== RESPONSIVE DESIGN (MOBILE-FIRST) ===== */

/* Base styles are for mobile */

.container {
    padding: 0 var(--spacing-md);
}

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

/* Navigation */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: clamp(250px, 70vw, 350px);
    height: 100vh;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xl) 0;
    transition: right var(--transition-slow);
    gap: var(--spacing-lg);
}

.nav-menu.active {
    right: 0;
}

.nav-link {
    font-size: 1.2rem;
}

.nav-cv-btn {
    display: none;
}

.nav-toggle {
    display: flex;
}

.nav-item-mobile-only {
    display: block;
    margin-top: 2rem;
}


/* Hero Section */
.hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: var(--spacing-lg);
}

.hero-visual {
    order: -1;
    margin-bottom: var(--spacing-md);
}

.hero-image-container {
    width: 250px;
    height: 250px;
}

.title-name {
    font-size: 2.8rem;
    line-height: 1.2;
}

.title-role {
    font-size: 1.3rem;
    min-height: 3.5rem;
}

.hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.btn {
    width: 100%;
    max-width: 300px;
}

/* About Section */
.about-content {
    grid-template-columns: 1fr;
}

.about-stats {
    grid-template-columns: 1fr;
}

/* Experience Section */
.timeline-line {
    left: 20px;
    transform: translateX(0);
}

.timeline-item:nth-child(odd),
.timeline-item:nth-child(even) {
    padding: 0 0 0 40px;
    text-align: left;
}

.timeline-marker {
    left: 20px;
    transform: translateX(-50%);
}

.timeline-item:nth-child(odd) .timeline-highlights {
    justify-content: flex-start;
}

/* Projects Section */
.projects-grid {
    grid-template-columns: 1fr;
}

/* Skills Section */
.skills-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.skills-categories {
    grid-template-columns: 1fr;
}

.skills-radar {
    margin-bottom: 2rem;
}

/* Contact Section */
.contact-content {
    grid-template-columns: 1fr;
}

/* Footer Section */
.footer-content {
    flex-direction: column;
    text-align: center;
}


/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    /* Navigation */
    .nav-menu {
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        background: none;
        backdrop-filter: none;
        padding: 0;
        transition: none;
    }

    .nav-toggle {
        display: none;
    }
    
    .nav-cv-btn {
        display: inline-flex;
    }

    .nav-item-mobile-only {
        display: none;
    }

    /* Hero */
    .hero-content {
        grid-template-columns: 1.2fr 1fr;
        text-align: left;
    }

    .hero-visual {
        order: 0;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .btn {
        width: auto;
    }
    
    .title-name {
        font-size: 3.5rem;
    }

    .hero-image-container {
        width: 300px;
        height: 300px;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1.2fr 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Skills */
    .skills-content {
        grid-template-columns: 1fr 1.2fr;
    }
    
    .skills-categories {
        grid-template-columns: 1fr 1fr;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr 1.2fr;
    }

    /* Footer */
    .footer-content {
        flex-direction: row;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .title-name {
        font-size: 4rem;
    }

    .hero-image-container {
        width: 350px;
        height: 350px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-image-container {
        width: 400px;
        height: 400px;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}