/* ---------------- Responsive Media Queries ---------------- */

/* Large Screens (1200px and above) */
@media (min-width: 1200px) {
    .hero-text h1 { font-size: 3rem; }
    .hero-text h2 { font-size: 1.9rem; }
    .hero-text p { font-size: 1.05rem; }
    .about-text h2 { font-size: 2.5rem; }
    .about-text p { font-size: 1.1rem; }
    .education h2 { font-size: 2.4rem; }
    .education-item h3 { font-size: 1.3rem; }
    .education-item .edu-school,
    .education-item .edu-desc { font-size: 1rem; }
    .edu-percent { font-size: 1.3rem; }
}

/* Medium-Large Screens (Below 1200px) */
@media (max-width: 1200px) {
    header { padding: 12px 60px; }
    
    .hero-container {
        padding: 0 60px;
        gap: 80px;
    }
    
    .hero-text h1 { font-size: 2.8rem; }
    .hero-text h2 { font-size: 1.6rem; }
    .hero-image img { max-width: 420px; }
}

/* Medium Screens (992px – 1199px) */
@media (max-width: 1199px) {
    .hero-text h1 { font-size: 2.8rem; }
    .hero-text h2 { font-size: 1.7rem; }
    .hero-text p { font-size: 1rem; }
    .about-text h2 { font-size: 2.2rem; }
    .about-text p { font-size: 1rem; }
    .education h2 { font-size: 2rem; }
    .education-item h3 { font-size: 1.2rem; }
    .education-item .edu-school,
    .education-item .edu-desc { font-size: 0.95rem; }
    .edu-percent { font-size: 1.2rem; }
}

/* Projects Grid Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets and Mobile (Below 992px) */
@media (max-width: 992px) {
    body {
        scroll-snap-type: y mandatory;
        overflow-y: scroll;
    }

    section {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
        scroll-snap-align: start;
        scroll-margin-top: 80px;
    }

    header {
        padding: 12px 40px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        z-index: 1000;
    }

    main {
        margin-top: 70px;
    }

    /* Menu Toggle */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 32px;
        height: 26px;
        cursor: pointer;
        z-index: 1100;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background: #00ffff;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Navigation */
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: rgba(6, 8, 18, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 25px 0;
        transition: all 0.4s ease;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

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

    /* Hero Section */
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 0 25px;
    }

    .hero-text {
        text-align: center;
    }

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

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

    .hero-image img {
        max-width: 360px;
    }

    /* About Section */
    .about-text h2 {
        text-align: center;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        margin: 0 auto;
        flex-wrap: wrap;
        z-index: 1;
    }

    /* Skills Section */
    .skills-container h2 {
        font-size: 2.2rem;
        color: #00ffff;
        margin-bottom: 60px;
    }

    .skills-dashboard {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 50px;
        margin-bottom: 60px;
    }

    /* Education Section */
    .education h2 {
        font-size: 2.2rem;
        color: #00ffff;
        margin-bottom: 60px;
        font-weight: 600;
    }

    .edu-center h3 {
        font-size: 1.2rem;
        color: #fff;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .edu-center .edu-school {
        color: #aaa;
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .edu-percent {
        font-size: 1.1rem;
        color: #00ffff;
        font-weight: 600;
        padding: 8px 18px;
        border-radius: 8px;
        transition: background 0.3s ease;
    }

    /* Contact Section */
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .contact-image img {
        max-width: 300px;
    }

    .contact-form p {
        font-size: 1rem;
        color: #ccc;
        margin-bottom: 25px;
        text-align: center;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-links ul li {
        display: inline-block;
        margin: 0 10px;
    }
}

/* Tablets / Small Laptops (768px – 991px) */
@media (max-width: 991px) {
    .hero-text h1 { font-size: 2.4rem; }
    .hero-text h2 { font-size: 1.5rem; }
    .hero-text p { font-size: 0.95rem; }
    .about-text h2 { font-size: 2rem; }
    .about-text p { font-size: 0.95rem; }
    .education h2 { font-size: 1.8rem; }
    .education-item h3 { font-size: 1.1rem; }
    .education-item .edu-school,
    .education-item .edu-desc { font-size: 0.9rem; }
    .edu-percent { font-size: 1.1rem; }
}

/* Education Item Layout (Below 900px) */
@media (max-width: 900px) {
    .education-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .edu-img {
        margin: 0 auto;
    }

    .edu-center {
        text-align: center;
    }

    .edu-right {
        text-align: center;
    }
}

/* Small Devices (576px – 767px) */
@media (max-width: 767px) {
    .hero-text h1 { font-size: 2rem; }
    .hero-text h2 { font-size: 1.3rem; }
    .hero-text p { font-size: 0.9rem; }
    .about-text h2 { font-size: 1.7rem; }
    .about-text p { font-size: 0.85rem; }
    .education h2 { font-size: 1.5rem; }
    .education-item h3 { font-size: 1rem; }
    .education-item .edu-school,
    .education-item .edu-desc { font-size: 0.85rem; }
    .edu-percent { font-size: 1rem; }
    
    /* Skills */
    .skills-dashboard {
        gap: 60px;
    }
    
    .skill-pie {
        width: 130px;
        height: 130px;
    }
    
    .skill-pie::before {
        width: 100px;
        height: 100px;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-content p {
        font-size: 0.8rem;
    }
}

/* Small Phones (Below 600px) */
@media (max-width: 600px) {
    header {
        padding: 10px 25px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text h2 {
        font-size: 1.3rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .btn, .btn-outline {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .hero-image img {
        max-width: 300px;
    }
}

/* Contact Form (Below 576px) */
@media (max-width: 576px) {
    .contact {
        padding: 80px 20px;
    }
    
    .contact-form h2 {
        font-size: 2rem;
        text-align: center;
    }

    .contact-form .social-links {
        justify-content: center;
        gap: 10px;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        font-size: 0.95rem;
    }
    
    .contact-image img {
        max-width: 250px;
    }
    
    .contact-form .social-links a img {
        width: 40px;
        height: 40px;
    }
}

/* Extra Small Devices (below 576px) */
@media (max-width: 575px) {
    .hero-text h1 { font-size: 1.8rem; }
    .hero-text h2 { font-size: 1.1rem; }
    .hero-text p { font-size: 0.85rem; }
    .about-text h2 { font-size: 1.5rem; }
    .about-text p { font-size: 0.8rem; }
    .education h2 { font-size: 1.3rem; }
    .education-item h3 { font-size: 0.95rem; }
    .education-item .edu-school,
    .education-item .edu-desc { font-size: 0.8rem; }
    .edu-percent { font-size: 0.95rem; }
}

/* Very Small Screens - 2 Skills Per Row (Below 425px) */
@media (max-width: 425px) {
    .skills-dashboard {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 46px;
        justify-items: center;
    }
    
    .skill-pie {
        width: 120px;
        height: 120px;
    }
    
    .skill-pie::before {
        width: 90px;
        height: 90px;
    }
    .education h2 { font-size: 1.3rem; }
    .about {
    max-width: 100%;
    border-radius: 10px; 
    box-shadow: 0 0 50px rgba(0, 191, 255, 0.1);
    
  }
    .about-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        margin: 0 auto; 
        flex-wrap: wrap;
        z-index: 1;
    }
    .about-image {
    flex: 1;
    min-width: 150px;
    display: flex;
    justify-content: center;
   animation: fadeInMove 1.2s ease forwards;
   }
   .about-image img {
    width: 100%;
    max-width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.3);
    transition: all 0.3s ease;
    animation: floatImages 4s ease-in-out infinite alternate;
  }
  .projects h2 {
  font-size: 2.4rem;
  text-align: center;
  color: #00ffff;
  margin-bottom: 60px;
 } 

  .contact-form h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .contact-form .social-links {
        justify-content: center;
        gap: 10px;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        font-size: 0.95rem;
    }
    
    .contact-image img {
        max-width: 250px;
    }
    
    .contact-form .social-links a img {
        width: 40px;
        height: 40px;
    }
    form-msg {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #00ffff;
   }
}

@media (max-width: 360px)  {
.education h2 { font-size: 1.3rem; }

}