/* Responsive Styles */

/* Tablets & Small Laptops (max-width: 992px) */
@media screen and (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }

    .hero-content {
        margin-bottom: 50px;
        max-width: 100%;
    }

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

    .social-links {
        justify-content: center;
    }

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

    .about-grid, .timeline-container, .skills-container, .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

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

    .timeline-dot {
        left: -5px;
    }
}

/* Mobile Devices (max-width: 768px) */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links-overlay {
        display: block;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
    }
    
    .nav-links-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links-container {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        width: 90%;
        max-width: 380px;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease-in-out;
    }
    
    .nav-links-container.active {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 15px;
        margin-bottom: 15px; 
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        border: 1px solid rgba(255, 255, 255, 0.4);
    }
    
    body.dark-mode .mobile-nav-header {
        background: rgba(40, 40, 40, 0.6);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav-logo {
        font-weight: 600;
        color: var(--text-color);
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .close-menu {
        background: none;
        border: none;
        font-size: 1.2rem;
        color: var(--text-color);
        cursor: pointer;
    }

    .desktop-nav {
        display: none !important;
    }

    .mobile-nav-links {
        width: 100%;
        height: auto;
        background-color: var(--background-alt);
        border-radius: 15px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .mobile-nav-links a {
        background-color: var(--background);
        padding: 12px 20px;
        border-radius: 10px;
        color: var(--text-color);
        font-weight: 500;
        font-size: 0.95rem;
        transition: 0.2s ease;
    }
    
    .mobile-nav-links a::after {
        display: none; 
    }
    
    .mobile-nav-links a:hover, .mobile-nav-links a.active {
        color: var(--primary);
    }

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

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

    .img-container {
        width: 280px;
        height: 280px;
    }

    .section {
        padding: 60px 5%;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }

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

    .about-text, .about-vision, .skills-box, .contact-info {
        padding: 25px;
    }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .header {
        padding: 10px 5%;
    }
    
    .navbar {
        padding: 10px 15px;
    }
    
    .img-container {
        width: 220px;
        height: 220px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .floating-wa {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
    }
    
    #scroll-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }

    .card {
        padding: 20px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}
