/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Laptop (Max Width: 1200px) */
@media (max-width: 1200px) {
    .container {
        padding: 0 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-image .image-wrapper {
        width: 350px;
        height: 450px;
    }
}

/* Tablet (Max Width: 992px) */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        justify-content: center;
    }
    
    .hero-desc {
        margin: 0 auto 2.5rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .edu-body {
        grid-template-columns: 1fr;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile & Tablet Portrait (Max Width: 768px) */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(8, 8, 8, 0.95);
        backdrop-filter: blur(15px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 100px;
        justify-content: flex-start;
        gap: 2rem;
    }

    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }

    .btn-resume {
        display: none; /* Hide resume button in mobile nav for cleaner look, or can be moved inside nav-links */
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-icon {
        left: 4px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Small Mobile (Max Width: 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }

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

    .hero-image .image-wrapper {
        width: 280px;
        height: 360px;
    }
    
    .circular-glow {
        width: 200px;
        height: 200px;
    }

    .filter-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .edu-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cgpa-badge {
        position: static;
        margin-top: 1rem;
    }
}
