/* --- MOBILE DEVICES (Max Width: 768px) --- */
@media (max-width: 768px) {
    
    /* 1. Navbar (Dynamic Island)*/
    .navbar {
        padding: 10px 18px;
        gap: 10px;
        min-width: 80px;
    }
    
    .navbar:hover {
        padding: 10px 20px;
        gap: 12px;
    }

    .nav-links {
        width: 236px;
        gap: 12px;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }

    /* 2. Hero Section */
    #home.hero {
        padding-top: 15vh; 
        height: 100vh;
    }
    #home.hero .title {
        font-size: 17vw; 
        line-height: 0.9;
        margin-top: 5vh;
    }

    /* 3. The 3D Spinning Profile & Intro Section */
    #spinning-profile {
        width: 130px !important; 
        height: 130px !important;
    }

    #intro {
        height: auto;
        min-height: 100vh;
        padding: 80px 0;
    }

    .intro-grid {
        grid-template-columns: 1fr; 
        text-align: center;
        gap: 20px;
        padding: 0 20px;
    }

    .intro-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .intro-img-spacer {
        height: 234px; 
        width: 234px;
        margin: 0 auto;
    }

    .intro-hey {
        font-size: 3.2rem;
        margin-bottom: 10px;
    }

    .intro-bio {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    /* 4. About Section */
    .about-sticky-container {
        padding: 0 20px;
    }
    .about-content {
        font-size: 1.6rem;
        line-height: 1.6;
    }

    .section-title {
        font-size: 2.8rem;
        margin-bottom: 40px;
    }

    /* 5. Services Section */
    .services-header {
        font-size: 2.8rem;
        text-align: center;
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 8px;
        padding: 24px 0;
    }

    .service-name {
        font-size: 1.3rem;
    }

    .service-tags {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* 6. Projects Section */
    .projects-header-container {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
    }

    .projects-title-left {
        font-size: 2.8rem;
    }

    .projects-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }

    .project-image {
        border-radius: 16px;
    }

    /* 7. Contact, Forms & Socials Section */
    .contact-container {
        padding: 0;
        width: 100%;
    }

    .form-control {
        padding: 16px;
    }

    .newsletter-container {
        padding-top: 40px;
    }
    
    .newsletter-form {
        flex-direction: column;
        background: transparent;
        border: none;
        gap: 12px;
        box-shadow: none;
        padding: 0;
    }

    .newsletter-form input {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 30px;
        padding: 16px 20px;
        width: 100%;
    }

    .newsletter-form button {
        width: 100%;
        border-radius: 30px;
        padding: 16px;
    }

    .subscribe-success-msg {
        font-size: 1rem;
        padding: 20px;
        text-align: center;
        width: 100%;
    }

    /* 8. Footer Section */
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-headline {
        font-size: 2.6rem;
    }

    .pill-links {
        justify-content: center;
    }

    .giant-text {
        font-size: 18vw;
        width: 100%; 
        white-space: normal; 
        word-wrap: break-word;
        margin: 0;
        top: 20px;
    }
    
    .footer-badges {
        position: relative;
        bottom: 0;
        margin-top: 40px;
        align-items: center;
    }
}

/* --- SMALL MOBILE PHONES (Max Width: 480px) --- */
@media (max-width: 480px) {
    #home.hero .title {
        font-size: 18vw; 
    }

    .intro-hey {
        font-size: 2.8rem;
    }

    .about-content {
        font-size: 1.35rem;
    }

    .section-title, .services-header, .projects-title-left {
        font-size: 2.2rem;
    }

    .service-name {
        font-size: 1.1rem;
    }

    /* overlapping for social buttons */
    .contact-container[style] {
        gap: 18px !important;
    }

    .social_Btn {
        width: 40px;
        height: 40px;
    }

    .social_Btn:hover {
        width: 125px; 
    }
    
    .social_text {
        font-size: 0.85rem;
    }
    
    .download-button1 {
        width: 100px;
        justify-content: center;
    }
    .insta {
        width: 100%; 
       position: relative;
        right: -153.5px;
        justify-content: center;
        bottom: -90px;
    }


       .face{
               width: 100%; 
       position: relative;
        right: -153.5px;
        justify-content: center;
        bottom: -40px;
    }

        .github {
             width: 100%; 
       position: relative;
        right: -77px;
        justify-content: center;
        bottom: -70px;
    }


        .linkedin {
                width: 100%; 
       position: relative;
        right: -77px;
        justify-content: center;
    }
    .twitter {
                width: 100%; 
       position: relative;
        right: -77px;
        justify-content: center;
        bottom: -25px;
    }
}