/* ==========================================================================
   PHONE MODE RESPONSIVE STYLES (Supports Galaxy Fold 280px to any Smart Phone)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* Global Reset Overrides for Layout */
    body {
        overflow-x: hidden; /* স্ক্রিন যেন ডানে-বামে না নড়ে */
    }

    /* 1. Navbar / Menu Section */
.navbar{
        padding: 15px 20px;
        height: 70px;
        position: fixed;
    }

.menu{
    display: none;
}



.menu2{
    width: 100%;
    height: auto;
    background: black;
}


.menu2 ul li a{
   text-decoration: none;
   font-size: 20px;
   color: white;
}




.menudiv {
    display: block;  /* none থেকে block করুন */
}


    .menu-er-onak-kaj{
        display: block !important;
        cursor: pointer;
        z-index: 2000;
    }

    .bar{
        display: block;
        font-size: 35px;
    }

    .cross{
        font-size: 35px;
    }


.cross{
   display: none;
}



















    /* 2. Hero Section */
    .Hero-Section {
        height: auto;
        flex-direction: column-reverse; /* আগে ছবি তারপর লেখা আসবে ফোনে */
        padding: 40px 15px;
        gap: 30px;
        padding-top: 90px;
    }
    .Write {
        width: 100%;
        margin-left: 0;
        height: auto;
        text-align: center;
    }
    .hello, .H-M, .Frontend, .p-d, .My-info {
        margin-left: 0;
        margin-right: 0;
    }
    .hello { margin-top: 15px; font-size: 18px; }
    .H-M { font-size: 28px; }
    .Frontend { font-size: 18px; }
    .p-d { font-size: 14px; margin: 15px 0; }
    .My-info { justify-content: center; }
    
    .cv, .talk {
        margin: 15px 5px 0 5px;
        padding: 10px 20px;
        font-size: 12px;
    }
    .picture {
        width: 100%;
        height: auto;
    }
    .circul {
        width: 240px; /* ফোনে গোল বৃত্ত ছোট করা হয়েছে */
        height: 240px;
        box-shadow: 0 0 20px #00f0ff, 0 0 40px #ff00ff;
    }

    /* 3. About Section */
    .about {
        height: auto;
        flex-direction: column;
        padding: 40px 15px;
        gap: 20px;
    }
    .about-picture, .about-likha {
        width: 100%;
        height: auto;
        padding-right: 0;
        text-align: center;
    }
    .about-picture img {
        width: 60%;
        margin-left: 0;
    }
    .about-likha-h1 { font-size: 28px; }
    .about-likha-p { font-size: 14px; }
    .about-likha-btn { margin-top: 20px; }

    /* 4. Services Section */
    .services {
        padding: 40px 15px;
    }
    .section-title { font-size: 28px; margin-bottom: 30px; }
    .service-container {
        grid-template-columns: 1fr; /* এক লাইনে একটি করে বক্স আসবে */
    }
    .service-box { height: auto; }

    /* 5. Projects Section */
    .Project-section {
        height: auto;
        padding: 40px 15px;
    }
    .Project-section-h3 { font-size: 28px; padding-top: 20px; }
    .Project-main {
        height: auto;
        gap: 15px;
    }
    .project-box, .project-box-1, .project-box-6 {
        width: 100%; /* ফোনের স্ক্রিন অনুযায়ী বক্স বড়-ছোট হবে */
        max-width: 320px;
        margin: 0 auto;
    }
    .last{
        display: none;
    }
    /* 6. Resume Section */
    .resume {
        grid-template-columns: 1fr; /* বাম এবং ডান সেকশন উপর-নিচে হবে */
        padding: 40px 15px;
        gap: 2rem;
    }
    .left, .right { width: 100%; text-align: center; }
    .left h1 { font-size: 2rem; }
    .tabs { margin-top: 20px; }
    
    .cards {
        grid-template-columns: 1fr;
        height: auto;
    }
    .card-place { font-size: 18px; margin-left: 0; justify-content: center; }
    .card-place-1, .card-place-2, .card-place-3 { font-size: 15px; margin-left: 0; justify-content: center; }
    .card-place-ul-5 { margin-left: 0; list-style: none; }
    
    .skill-box {
        grid-template-columns: repeat(2, 1fr); /* ফোনে ২ কলামে স্কিল শো করবে */
        margin-left: 0;
        padding-top: 10px;
        justify-items: center;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .skill { width: 100px; height: 100px; font-size: 25px; }


    .skill-icon{
        font-size: 32px;
    }
    
    .why-me { padding: 0; }
    .why-me h1 { font-size: 28px; margin-top: 10px; }
    .why-container { grid-template-columns: 1fr; }




        /* Certificate Slider - Phone */
    .cert-display {
        width: 100%;
        height: 220px;
    }
    .cert-arrow {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    .cert-overlay h3 {
        font-size: 1.1rem;
    }
    .cert-overlay p {
        font-size: 0.85rem;
    }




    /* 7. Contact Section */
    #contact { padding: 40px 15px; }
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
    .contact-left { margin-left: 0; text-align: center; }
    .contact-left h2 { font-size: 28px; }
    .contact-left p { max-width: 100%; }
    .contact-info-item { flex-direction: column; text-align: center; gap: 10px; }
    .social-icons { justify-content: center; margin-top: 25px; }
    
    .contact-right {
        width: 100%;
        padding: 25px 20px;
    }
    .contact-right-h2 { font-size: 24px; }
    .form-row { flex-direction: column; gap: 16px; }

    /* 8. Footer Section */
    .footer { padding: 20px 15px; }
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .footer-links a { margin: 0 8px; }
}

/* ==========================================================================
   EXTRA SMALL SCREEN ADJUSTMENT (Specifically for Galaxy Fold - 280px)
   ========================================================================== */
@media (max-width: 320px) {
    .menu li a { font-size: 12px; }
    .H-M { font-size: 24px; }
    .cv, .talk { padding: 8px 14px; font-size: 11px; }
    .circul { width: 180px; height: 180px; }
    .skill-box { grid-template-columns: 1fr; } /* ২৮০ পিক্সেল স্ক্রিনে স্কিল ১ কলাম */
}