/* Media Queries for Mobile Responsiveness */


@media (max-width: 768px) {
    .mobile-nav {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 10000;
    }

    .mobile-nav-content {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
        box-sizing: border-box;
    }

    .blog-name {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 20px;
    }

    .profile-image-container {
        text-align: center;
        margin: 20px 0;
    }

    .profile-image {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        object-fit: cover;
    }

    .bio {
        font-size: 1rem;
        line-height: 1.5;
        text-align: center;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .social-list {
        display: flex;
        justify-content: center;
        gap: 25px;
        padding: 0;
        list-style: none;
    }

    .social-list a {
        font-size: 1.5rem;
        color: #ffffff;
        transition: color 0.3s ease;
    }

    .social-list a:hover {
        color: #007bff;
    }



    .mobile-nav-content {
        display: block;
    }

    .mobile-nav ul {
        display: flex;
        padding: 10px 0px;
        justify-content: space-evenly;
        margin: 0;
        width: 90%;
        list-style: none;
        background: #1a1a1a;
    }

    .mobile-nav .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        font-size: 13px;
        color: #ffffff;
        padding: 0px;
    }

    .mobile-nav .nav-link i {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .mobile-nav .nav-link.active {
        color: #6c63ff;
    }

    /* left nav is actually for deekstop */
    .left-nav {
        display: none;
    }

    .mobile-nav {
        display: block !important;
    }

    .mobile-nav {
        display: flex;
    }

    .left-nav {
        display: none;
    }

    .page-preview {
        margin-bottom: 60px;
        /* Adjust based on nav height */
    }

    /* Right Page Preview */
    .page-preview {
        margin-left: 0;
        padding: 1rem;
    }

    section {
        margin-bottom: 3rem;
        padding: revert-layer;
        width: 100%;
    }

    /* Sections */
    section h2 {
        font-size: 1.5rem;
    }

    /* Skills Grid */
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .skill-item {
        padding: 1rem;
    }

    .skill-item i {
        font-size: 1.5rem;
    }

    .skill-item h3 {
        font-size: 1rem;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .project-item {
        padding: 1rem;
    }

    .project-item h3 {
        font-size: 1.2rem;
    }

    .project-item p {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        left: 0;
    }

    /* Project Tabs */
    .project-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .project-tabs .tab-button {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    /* Full Image Overlay */
    .full-image {
        width: 90%;
    }

    /* Project Modal */
    .modal-content {
        padding: 1rem;
    }

    .modal-body h3 {
        font-size: 1.2rem;
    }

    .modal-body p {
        font-size: 0.9rem;
    }

    .modal-body ul {
        margin-left: 1rem;
    }

    .modal-body ul li {
        font-size: 0.8rem;
    }

    .custom-flex {
        gap: 0.5rem;
        /* Smaller gap on smaller screens */
    }

    .skill-pill {
        padding: 0.4rem 0.8rem;
        /* Smaller padding on smaller screens */
        font-size: 0.8rem;
        /* Smaller font size on smaller screens */
    }

    .hero-section {
        flex-direction: column;
        /* Stack content and image on smaller screens */
        padding: 2rem 1rem;
    }

    .hero-content,
    .hero-image {
        max-width: 100%;
        /* Full width on smaller screens */
    }

    .hero-content h1 {
        font-size: 2rem;
        /* Smaller font size for mobile */
    }

    .hero-content p {
        font-size: 1rem;
        /* Smaller font size for mobile */
    }

    .cert-card {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cert-logo {
        width: 80px;
        height: 80px;
    }

    .cert-heading {
        font-size: 2rem;
    }

    .cert-link {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .blog-name {
        font-size: 1.5rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .bio {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .social-list {
        gap: 20px;
    }

    .social-list a {
        font-size: 1.3rem;
    }
}


/* Project Modal Styles */

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 400px;
        height: auto;
        max-width: 100%;
        margin: 0 auto;
        padding: 10px;
    }

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

    .text-column,
    .preview-column {
        width: 100%;
        min-width: unset;
    }

    .hero-section {
        flex-direction: column;
    }

    .hero-image img {
        width: 100%;
        height: auto;
    }

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

    h3 {
        font-size: 1.3rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }

    .text-column {
        flex: 1;
        max-width: 100%;
        position: sticky;
        top: 0;
        height: 100%;
        padding-right: 1rem;
    }

    .project-modal {
        width: 400px;
    }

}

/* Media Queries for Mobile Responsiveness */


@media (max-width: 768px) {
    .mobile-nav {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #1a1a1a;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 10000;
    }

    .mobile-nav-content {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
        box-sizing: border-box;
    }

    .blog-name {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 20px;
    }

    .profile-image-container {
        text-align: center;
        margin: 20px 0;
    }

    .profile-image {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        object-fit: cover;
    }

    .bio {
        font-size: 1rem;
        line-height: 1.5;
        text-align: center;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .social-list {
        display: flex;
        justify-content: center;
        gap: 25px;
        padding: 0;
        list-style: none;
    }

    .social-list a {
        font-size: 1.5rem;
        color: #ffffff;
        transition: color 0.3s ease;
    }

    .social-list a:hover {
        color: #007bff;
    }



    .mobile-nav-content {
        display: block;
    }

    .mobile-nav ul {
        display: flex;
        justify-content: space-around;
        margin: 0;
        width: 100%;
        list-style: none;
        background: #1a1a1a;
    }

    .mobile-nav .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        font-size: 15px;
        color: #ffffff;
        padding: 0px;
    }

    .mobile-nav .nav-link i {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .mobile-nav .nav-link.active {
        color: #6c63ff;
    }

    /* left nav is actually for deekstop */
    .left-nav {
        display: none;
    }

    .mobile-nav {
        display: block !important;
    }

    .mobile-nav {
        display: flex;
    }

    .left-nav {
        display: none;
    }

    .page-preview {
        margin-bottom: 60px;
        /* Adjust based on nav height */
    }

    /* Right Page Preview */
    .page-preview {
        margin-left: 0;
        padding: 1rem;
    }

    section {
        margin-bottom: 3rem;
        padding: revert-layer;
        width: 100%;
    }

    /* Sections */
    section h2 {
        font-size: 1.5rem;
    }

    /* Skills Grid */
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .skill-item {
        padding: 1rem;
    }

    .skill-item i {
        font-size: 1.5rem;
    }

    .skill-item h3 {
        font-size: 1rem;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .project-item {
        padding: 1rem;
    }

    .project-item h3 {
        font-size: 1.2rem;
    }

    .project-item p {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        left: 0;
    }

    /* Project Tabs */
    .project-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .project-tabs .tab-button {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    /* Full Image Overlay */
    .full-image {
        width: 90%;
    }

    /* Project Modal */
    .modal-content {
        padding: 1rem;
    }

    .modal-body h3 {
        font-size: 1.2rem;
    }

    .modal-body p {
        font-size: 0.9rem;
    }

    .modal-body ul {
        margin-left: 1rem;
    }

    .modal-body ul li {
        font-size: 0.8rem;
    }

    .custom-flex {
        gap: 0.5rem;
        /* Smaller gap on smaller screens */
    }

    .skill-pill {
        padding: 0.4rem 0.8rem;
        /* Smaller padding on smaller screens */
        font-size: 0.8rem;
        /* Smaller font size on smaller screens */
    }

    .hero-section {
        flex-direction: column;
        /* Stack content and image on smaller screens */
        padding: 2rem 1rem;
    }

    .hero-content,
    .hero-image {
        max-width: 100%;
        /* Full width on smaller screens */
    }

    .hero-content h1 {
        font-size: 2rem;
        /* Smaller font size for mobile */
    }

    .hero-content p {
        font-size: 1rem;
        /* Smaller font size for mobile */
    }

    .cert-card {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cert-logo {
        width: 80px;
        height: 80px;
    }

    .cert-heading {
        font-size: 2rem;
    }

    .cert-link {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .blog-name {
        font-size: 1.5rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .bio {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .social-list {
        gap: 20px;
    }

    .social-list a {
        font-size: 1.3rem;
    }
}


/* Project Modal Styles */

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 400px;
        height: auto;
        max-width: 100%;
        margin: 0 auto;
        padding: 10px;
    }

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

    .text-column,
    .preview-column {
        width: 100%;
        min-width: unset;
    }

    .hero-section {
        flex-direction: column;
    }

    .hero-image img {
        width: 100%;
        height: auto;
    }

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

    h3 {
        font-size: 1.3rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }

    .text-column {
        flex: 1;
        max-width: 100%;
        position: sticky;
        top: 0;
        height: 100%;
        padding-right: 1rem;
    }

    .project-modal {
        width: 400px;
    }

}

@media screen and (max-width: 480px) {
    .modal-content {
        width: 80%;
        height: auto;
        max-width: 100%;
        margin: 0 auto;
        padding: 10px;
    }

    .project-modal {
        width: 400px;
    }

    .text-column {
        flex: 1;
        max-width: 100%;
        position: sticky;
        top: 0;
        height: 100%;
        padding-right: 1rem;
    }

    .custom-flex {
        flex-wrap: wrap;
    }

    .skill-pill {
        font-size: 0.8rem;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }
}

@keyframes modalOpen {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media screen and (max-width: 480px) {
    .modal-content {
        width: 400px;
        height: auto;
        max-width: 100%;
        margin: 0 auto;
        padding: 10px;
    }

    .project-modal {
        width: 400px;
    }

    .text-column {
        flex: 1;
        max-width: 100%;
        position: sticky;
        top: 0;
        height: 100%;
        padding-right: 1rem;
    }

    .custom-flex {
        flex-wrap: wrap;
    }

    .skill-pill {
        font-size: 0.8rem;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }
}

@keyframes modalOpen {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}