/* Responsive Design */

/* Hide scroll indicator for screens less than 900px */
@media (max-width: 900px) {
    .scroll-indicator {
        display: none;
    }
}

/* Tablet screens */
@media (max-width: 1024px) and (min-width: 941px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-content {
        gap: 40px;
    }

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

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

/* Mobile screens (also covers tablet/portrait widths where the full nav
   — logo + 5 links + Resume button — no longer fits in one row) */
@media (max-width: 940px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        flex-direction: column;
        background-color: var(--nav-menu-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        padding: 40px 0;
        z-index: 1000;
        border-top: 1px solid var(--border);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        left: 0;
        transform: translateX(0);
    }

    .nav-actions {
        display: none;
    }
    
    .nav-item {
        margin: 8px 0;
        opacity: 0;
        transform: translateY(20px);
        animation: slideInUp 0.3s ease forwards;
    }
    
    .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .nav-item:nth-child(2) { animation-delay: 0.2s; }
    .nav-item:nth-child(3) { animation-delay: 0.3s; }
    .nav-item:nth-child(4) { animation-delay: 0.4s; }
    .nav-item:nth-child(5) { animation-delay: 0.5s; }
    
    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-link {
        font-size: 1.2rem;
        font-weight: 500;
        padding: 15px 30px;
        display: block;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 12px;
        margin: 0 20px;
        color: var(--text);
    }

    .nav-link:hover {
        background: var(--surface);
        color: var(--cyan);
        transform: translateY(-2px);
        box-shadow: var(--glow-cyan);
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

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

    .greeting {
        font-size: 1.2rem;
    }

    .name-text {
        font-size: 2.8rem;
    }

    .role {
        font-size: 1.4rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
        align-items: center;
        gap: 25px;
        margin-bottom: 35px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-width: 140px;
    }

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

    .floating-profile {
        width: 195px;
        height: 195px;
    }

    .floating-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .icon-1, .icon-2, .icon-3, .icon-4, .icon-5, .icon-6 {
        animation-duration: 15s;
    }

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

    .about-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

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

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

    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact {
        padding-top: 100px;
    }
    
    /* Fix all sections going under navbar on mobile */
    .hero {
        padding-top: 100px;
    }
    
    .about {
        padding-top: 100px;
    }
    
    .experience {
        padding-top: 100px;
    }
    
    .skills {
        padding-top: 100px;
    }
    
    .projects {
        padding-top: 100px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .greeting {
        font-size: 1rem;
    }

    .name-text {
        font-size: 2.2rem;
    }

    .role {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 30px;
    }

    .stat-item {
        flex-direction: row;
        gap: 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.85rem;
    }

    .image-container {
        width: 270px;
        height: 270px;
    }

    .floating-profile {
        width: 175px;
        height: 175px;
    }

    .floating-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .shape-1, .shape-2, .shape-3, .shape-4, .shape-5 {
        display: none;
    }

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

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .skill-items {
        grid-template-columns: 1fr;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 24px;
        min-height: 0;
    }
}
