/* Tablet and Mobile adjustments */
@media (max-width: 992px) {
    .navbar {
        padding: 10px 4%;
    }

    .navbar>ul {
        gap: 10px;
    }

    .navbar>ul>li {
        padding: 15px 10px;
    }

    .navbar a>button {
        padding: 5px 15px;
        font-size: 16px;
    }

    #hero {
        padding: 40px 4%;
        height: auto;
        min-height: 100vh;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    #about {
        padding: 60px 4%;
        gap: 40px;
    }

    .about-left .circle {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 5%;
        width: 100%;
        position: sticky;
        top: 0;
    }

    .navbar .logo {
        text-align: left;
    }

    .mobile-nav-toggle {
        display: block;
        color: purple;
        font-size: 32px;
        cursor: pointer;
    }

    .navbar ul {
        position: fixed;
        left: -100%;
        top: 60px; /* height of navbar roughly */
        flex-direction: column;
        background-color: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        height: calc(100vh - 60px);
        justify-content: flex-start;
        align-items: center;
        gap: 25px;
        padding-top: 50px;
        transition: 0.3s ease-in-out;
        z-index: 9999;
        box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
    }

    .navbar ul.active {
        left: 0;
    }

    .navbar ul li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .navbar ul li::after {
        display: none;
    }

    .navbar ul li a {
        font-size: 20px;
        display: block;
        width: 100%;
    }

    .navbar > a {
        display: none;
    }

    #hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 20px;
        margin-top: 0;
        height: auto;
    }

    .hero-content {
        width: 100%;
    }

    .hero-image {
        width: 80%;
        margin: 0 auto;
        overflow: hidden;
        position: relative;
    }

    .hero-image::after {
        width: 250px;
        height: 250px;
        left: 50%;
        transform: translateX(-50%);
    }

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

    #about {
        flex-direction: column;
        text-align: center;
    }

    .about-left {
        width: 100%;
        display: block; /* Show the image but adjust it */
    }

    .about-left .circle {
        left: 50%;
        transform: translateX(-50%);
        bottom: 50px;
    }

    .about-left .circle-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .note {
        display: none;
    }

    .about-right {
        width: 100%;
    }

    .about-right h2 {
        font-size: 30px;
    }

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

    .tech-stack {
        padding: 15px;
    }

    .stack-icons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .section-title h2, 
    .project-heading h2, 
    .contact-heading h2 {
        font-size: 32px;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 15px;
    }

    .project-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    #footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-sub-heading {
        font-size: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-buttons a {
        width: 100%;
    }

    .hero-buttons a button {
        width: 100%;
    }

    .skill-card {
        padding: 20px 10px;
    }

    .skill-card img {
        height: 100px;
    }

    .contact-form {
        padding: 15px;
    }

    .floating-btn {
        height: 50px;
        width: 50px;
        font-size: 24px;
    }
}