/* ----- poppins fonts link ------ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
/* variables */

:root{
    /* CyberNurdin brand palette */
    --body-color: rgb(250, 250, 248);
    --color-white: rgb(255, 255, 255);

    --text-color-second: rgb(23, 37, 54);   /* Deep Cyber Navy - body text */
    --text-color-third: rgb(11, 61, 119);   /* Cyber Blue - typed text / nav name */

    --first-color: rgb(11, 61, 119);        /* Cyber Blue - primary accent */
    --first-color-hover: rgb(6, 28, 54);    /* Deep Cyber Navy - hover state */

    --second-color: rgb(249, 87, 56);       /* Signal accent - interactive highlight */
    --third-color: rgb(245, 211, 94);       /* Gold accent - badges/borders */
    --first-shadow-color:  rgba(6, 28, 54, 0.1);
}

/* ----- BASE------ */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
a{
    text-decoration: none;
}
/* ---------SMOOTH SCROOL----------- */
html{
    scroll-behavior: smooth;
}

/* ----- RESPECT REDUCED MOTION ------ */
@media (prefers-reduced-motion: reduce) {
    html{
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after{
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ----------- CHANGE THE SCROOL BAR DESIGN-------------- */
::-webkit-scrollbar{
    width: 10px;
    border-radius: 25x;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover{
    background: #bbb;
}

/*----------------- GLOBAL BUTTON DESIGN ------------*/
.btn{
    font-weight: 500;
    padding: 12px 20px;
    background: #efefef;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: .4s;
}
.btn>i{
    margin-left: 10px;
}
.btn:hover{
    background: var(--second-color);
    color: var(--color-white);
}
.but{
    width: 40%;
}

/*------ GLOBAL ICONS DESIGN------ */
i{
    font-size: 16px;
}
/*-----------------  BARSE ------------*/ 
body{
    background: var(--body-color);
}
.container{
    width: 100%;
    position: relative;
}
/*----------------- NAVIGATION BAR ------------*/ 
nav{
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background: var(--body-color);
    padding-inline: 9vw;
    transition: .3s;
    z-index: 100;
}

.nav-logo{
    position: relative;
}

.nav-name{
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color-third);
}

.nav-logo span{
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 5em;
    color: var(--text-color-second);
}

.nav-menu, .nav-menu-list{
    list-style: none;
    display: flex;

}

.nav-menu .nav-list{
    list-style: none;
    position: relative;
}

.nav-link{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
}

.nav-menu-btn{
    display: none;
}
.active-link{
    position: relative;
    color: var(--first-color);
    transform: .3;
}
.active-link::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translate(-50% -50%);
    width: 5px;
    height: 5px;
    background: var(--first-color);
    border-radius: 50%;
}

.nav-menu-btn i{
    font-size: 28px;
    cursor: pointer;
}


/* --------------------WRAPPER design---------------- */

.wrapper{
    padding-inline: 10vw;
}

/* --------------------CONTACT FORM ---------------- */

/* --------------------featured box ---------------- */

.featured-box{
    position: relative;
    display: grid;
    grid-template-columns: minmax(420px, 0.95fr) minmax(320px, 1fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 5rem);
    min-height: 100vh;
    padding-top: 90px;
}

/* --------------------featured box ---------------- */

.featured-text{
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    margin-top: 0;
    min-height: auto;
    flex-direction: column;
    width: 100%;
    padding-left: 20px;
    z-index: 2;
}
.featured-text-card span{
    background: var(--third-color);
    color: var(--color-white);
    padding: 5px;
    font-size: 16px;
    border-radius: 5px;
}
.featured-name{
    font-size: clamp(2.5rem, 4.2vw, 4rem);
    font-weight: 600;
    color: var(--text-color-second);
    margin-block: 20px;
    line-height: 1.14;
    min-height: 2.28em;
    max-width: 720px;
}
.featured-name h1{
    font: inherit;
    color: inherit;
    margin: 0;
}
.typedText{
    text-transform: capitalize;
    color: var(--text-color-third);
    overflow-wrap: normal;
    word-break: keep-all;
}
.featured-text-info{
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--text-color-second);
    max-width: 560px;
}
.featured-text-btn{
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    max-width: 620px;
}
.featured-text-btn>.blue-btn{
    background: var(--first-color);
    color: var(--color-white);
}
.featured-text-btn>.blue-btn:hover{
    background: var(--first-color-hover);
}
.featured-text-btn>.mentorship-btn{
    background: var(--second-color);
    color: var(--color-white);
}
.featured-text-btn>.mentorship-btn:hover{
    background: var(--first-color-hover);
}
.hero-social-links{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.hero-social-links a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--first-color);
    background: var(--color-white);
    box-shadow: 0 2px 8px var(--first-shadow-color);
    transition: .25s;
}
.hero-social-links a:hover{
    color: var(--color-white);
    background: var(--second-color);
    transform: translateY(-2px);
}
.social_icons{
    display: flex;
    margin: 5em;
    gap: 30px;
}
.icon{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}
.icon:hover{
    color: var(--first-color);
}
/* --------------------featured image box ---------------- */

.featured-image{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    width: 100%;
}
.image{
    margin: auto 0;
    width: clamp(320px, 31vw, 500px);
    height: clamp(320px, 31vw, 500px);
    border-radius: 55% 45% 55% 45%;
    overflow: hidden;
    animation: imgFloat 7s ease-in-out infinite;
    box-shadow:
        0 0 0 6px rgba(11, 61, 119, 0.12),
        0 0 0 12px rgba(245, 211, 94, 0.08),
        0 25px 45px rgba(6, 28, 54, 0.25);
}
.image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@keyframes imgFloat {
    50%{
        transform: translateY(10px);
        border-radius: 45% 55% 45% 55%;

    }
    
}

.scroll-btn{
    position: absolute;
    bottom: 0;
    left: 50%;
    translate: -50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 50px;
    gap: 5px;
    text-decoration: none;
    color: var(--text-color-second);
    background: var(--color-white);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}
.scroll-btn i{
    font-size: 20px;
}

/* --------------------main box------------------ */
.section{
    padding-block: 5em;
}
.row{
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}
.col{
    display: flex;
    justify-content: center;
    width: 100%;
}

/* --------------------## REUSABLE CSS --- ##---*/
.top-header{
    text-align: center;
    margin-bottom: 5em;
}
.top-header h1,
.top-header h2{
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}
.top-header span{
    color: #999;
}
h3{
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 15px;
}


/* --------------------ABOUT INFO ------------- */

/*----------------- ABOUT SECTION DESIGN ------------*/

.about_container{
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 9rem;
    margin-top: 2.5rem;
}
.about_image{
    /* border: 1rem solid var(--color-gray-100); */
    height: fit-content;
    border-radius: 3.7rem;
    max-height: 38rem;
    margin-top: 6rem;
    overflow: hidden;
}
.about_image img{
    width: 400px;
}

.about_cards{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0 1.5rem;
}

.about_card{
    /* background: var(--color-primary);
    padding: 1rem;
    text-align: center;
    border-radius: var(--raduis-2);
    /* transition: ease-in .5s; */
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 150px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
    z-index: 1;
}

.about_card:after{
    content: "";
    position: absolute;
    background: var(--second-color);
    bottom: -100%;
    color: #f1f1f1;
    width: 100%;
    height: 100%;
    transition: ease-in .4s;
    z-index: 1;
}

.about_card:hover.about_card::after{
    bottom: 0;
}
.about_card:hover.about_card h4,
.about_card:hover.about_card small,
.about_card:hover.about_card i{
    color: #e7e6e6;
    z-index: 2;
}
.about_card i{
    color: var(--color-primary);
    font-size: 1.4rem;
    border-radius: var(--raduis-4);
    padding: .5rem;
    display: inline-block;
}

.about_card h4{
    margin: 1rem 0 .8rem;
    font-weight: bold;
}
.about_card>i{
    font-size: 28px;
    color: var(--second-color);
}
.about_card small{
    font-size: .9rem;
}
.about_details .top-header{
    text-align: left;
}
.about_details p{
    margin-bottom: .8rem;
}

.about_details .btn{
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 2rem;
}

.about_details .btn i{
    color: var(--first-color);
    font-size: 1.2rem;
}



/*----------------- SERVICES SECTION DESIGNs ------------*/
.services{
    margin-top: 3rem;
}
.container.services_container{
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    margin-top: 1rem;
}

.services_left{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.services_left li{
    display: flex;
    border: 1px solid var(--third-color);
    gap: 1rem;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    cursor: pointer;
}

.services_left li:hover, 
.services_left li.active{
    background: var(--second-color);
}

.services_left li span{
    background: var(--color-primary);
    color: var(--color-gray-100);
    border-radius: 50%;
    padding: 1rem;
    font-size: 1.3rem;
}

.services_left li h3{
    margin-bottom: .5rem;
}
.services_right{
    border-left: 1px solid var(--third-color);
    padding-left: 5rem;
    transition: opacity 0.5s ease-in-out; /* Smooth transition for content changes for JS */
    opacity: 1; /* Default opacity for JS */
}
    
.services_right h3{
    margin-bottom: 1.5rem;
}

.services_right .description{
    text-align: left;
    line-height: 1.7;
    margin-bottom: .8rem;
}
.services_right .description p{
    margin-top: 1.2rem;
}
.services_right .description .demo-btns{
    height: .2rem;
    /* background: var(--color-gray-400); */
    padding: .5rem;
    color: var(--color-gray-100);
    width: 10rem;
    border-radius: .5rem;
    text-align: top;
}
.services_right p .demo-btns:hover{
    /* background: var(--third-color); */
    color: var(--second-color);
}




/* --------------------PROJECT BOX ------------- */


.recent-projects-section {
    margin-top: 4rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1800px;
    padding: 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 40px;
}

/* Filter Menu */
.filter-menu {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background-color: #eee;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    color: #555;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.filter-btn:hover {
    background-color: var(--second-color);
    color: #fff;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--second-color); /* Example active color */
    color: #fff;
    box-shadow: 0 2px 5px rgba(107, 91, 88, 0.4);
    transform: translateY(0); /* Reset transform for active state */
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on large screens */
    gap: 30px;
    justify-items: center; /* Center items within their grid cells */
}

/* Project Card */
.project-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease, margin-left 0.5s ease, margin-right 0.5s ease; /* Added opacity and margin transitions */
    display: flex;
    flex-direction: column;
    width: 100%; /* Ensure cards take full width of their grid cell */
    max-width: 350px; /* Optional: limit max width of individual cards */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit:fill;
    display: block;
    border-bottom: 1px solid #eee;
}

.project-card-icon-header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    background: linear-gradient(135deg, var(--first-color), var(--first-color-hover));
}

.project-card-icon-header i {
    font-size: 3.5rem;
    color: var(--color-white);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tech-tag {
    background: var(--body-color);
    border: 1px solid var(--first-shadow-color);
    color: var(--text-color-second);
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 20px;
}

.projects-empty,
.cert-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    padding: 2rem;
}

.project-info {
    padding: 20px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.project-description {
    font-size: 0.95em;
    color: #777;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.project-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    flex: 1;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-button.demo {
    background-color: var(--second-color);
    color: #fff;
}

.project-button.demo:hover {
    background-color:var(--first-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(98, 0, 255, 0.137);
}

.project-button.github {
    background-color: var(--third-color);
    color: #fff;
}

.project-button.github:hover {
    background-color:var(--first-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Hidden Project Animation */
.project-card.hidden-left {
    opacity: 0;
    transform: translateX(-100%);
    margin-left: -100px; /* Adjust to ensure it's off-screen */
}

.project-card.hidden-right {
    opacity: 0;
    transform: translateX(100%);
    margin-right: -100px; /* Adjust to ensure it's off-screen */
}

.project-card.visible-animated {
    opacity: 1;
    transform: translateX(0);
    margin-left: 0;
    margin-right: 0;
}

/* View All Button */
.view-all-container {
    margin-top: 40px;
    text-align: center;
}

.view-all-btn {
    background-color: #28a745; /* Green for View All */
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.view-all-btn:hover {
    background-color: #218838;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.action-btn.view-less-btn {
    background-color: #dc3545; /* Red for View Less */
}

.action-btn.view-less-btn:hover {
    background-color: #c82333;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}


.view-all-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */

/* Tablets (2 columns) */
@media (min-width: 768px) and (max-width: 1023px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (1 column) */
@media (max-width: 767px) {
    .section-title {
        font-size: 2em;
    }

    .section-subtitle {
        font-size: 1em;
    }

    .filter-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 180px;
    }

    .project-info {
        padding: 15px;
    }

    .project-title {
        font-size: 1.3em;
    }

    .project-description {
        font-size: 0.9em;
    }

    .project-buttons {
        flex-direction: column;
    }
    .action-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .action-buttons-container {
        flex-direction: column;
        gap: 10px;
    }

}





/* --------------------CONTACTBOX ------------- */
.contact-info{
    position: relative;
    display: flex;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    width: 100%;
    min-height: 350px;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
    z-index: 1;
}
.contact-info:after{
    content: "";
    position: absolute;
    background: var(--second-color);
    bottom: -100%;
    color: #1f1818;
    width: 100%;
    height: 100%;
    transition: ease-in .4s;
    z-index: 1;
}

.contact-info:hover.contact-info::after{
    color: var(--color-white);
    bottom: 0;
}

.contact-info:hover.contact-info h3,
.contact-info:hover.contact-info p,
.contact-info:hover.contact-info i{
    color: #fff;
    z-index: 2;
}
.contact-info:hover.contact-info .link{
    color: rgb(50, 100, 50);
}

.contact-info h3{
    color: #1f1818;
    margin-bottom: 20px;
}
.contact-info>p{
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f1818;
    margin-block: 5px;
}
.contact-info p>i{
    font-size: 24px;
}
.contact-info .link{
    color: var(--second-color);
}
/* --------------------contact FORM ------------- */
.form-control{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.form-inputs{
    display: flex;
    gap: 10px;
    width: 100%;
}
.form-inputs>i{
    font-size: 30px;
    color: var(--third-color);
}
.input-field{
    width: 50%;
    height: 55px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding-inline: 20px;
    outline: none;
}
textarea{
    width: 100%;
    height: 250px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding: 15px;
    outline: none;
    resize: none;
}

.form-button>.btn{
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--second-color);
    color: var(--color-white);
}
.form-button>.btn:disabled{
    opacity: .7;
    cursor: wait;
}
.form-button>.btn:hover{
    background: var(--third-color);
}
.form-button i{
    font-size: 18px;
    rotate: -45deg;
}
.honeypot{
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}
.form-status{
    min-height: 24px;
    font-size: .92rem;
    color: var(--text-color-second);
}
.form-status.success{
    color: #1f9d55;
}
.form-status.error{
    color: #b42318;
}
.form-status.loading{
    color: var(--first-color);
}















/* --------------------FOOTER BOX ------------- */


.site-footer {
    background-color: #061C36; /* Deep Cyber Navy */
    color: #e0e0e0; /* Light text */
    padding: 40px 20px;
    font-size: 14px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px; /* Space between columns */
}

.footer-logo {
    flex-basis: 150px; /* Fixed width for logo */
    margin-right: 30px;
    display: flex;
    align-items: flex-start;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
}
.footer-logo p span{
    color: var(--color-white);
    font-size: 48px;
}
.footer-column {
    flex: 1; /* Allows columns to grow and shrink */
    min-width: 180px; /* Minimum width before wrapping */
}

.footer-column h3 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #F5D35E; /* Gold accent for headings */
    margin-top: 5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column p a {
    color: #F5D35E;
}

.footer-column ul li a:hover {
    color: #F5D35E; /* Gold hover effect for links */
}

.footer-bottom {
    border-top: 1px solid #33334d; /* Subtle line above copyright */
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.social-icons a {
    color: #e0e0e0;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #007bff; /* Social icon hover effect */
}

.copyright {
    color: #a0a0a0;
    font-size: 13px;
}

/* Responsive Styles */


/*----------------- ABOUT SECTION RESPONSIVENESS ------------*/

/* Tablets (adjust breakpoint as needed, e.g., max-width 1024px or 992px) */
@media screen and (max-width: 1024px) {
    .about_container {
        /* Change from 2 columns to 1 column for smaller screens */
        grid-template-columns: 1fr;
        gap: 3rem; /* Reduce gap for smaller screens */
    }

    .about_image {
        margin-top: 0; /* Remove top margin on smaller screens */
        width: 80%; /* Make image container a bit narrower */
        margin-left: auto; /* Center the image */
        margin-right: auto;
        max-height: unset; /* Allow height to adjust */
        border-radius: 2rem; /* Slightly less rounded corners */
    }

    .about_image img {
        width: 100%; /* Make image fill its container */
        height: auto; /* Maintain aspect ratio */
    }

    .about_details {
        text-align: center; /* Center the text and cards within the details column */
    }

    .about_details .top-header {
        text-align: center; /* Ensure "About Me" title is centered */
    }
.about_details .btn{
        margin-left: 90px;
        padding-right: 70px;
        padding-left: 40px;
        font-size: 18px;
        /* text-align: center; */
    }
    .about_cards {
         display: flex;
         justify-content: center;
         align-items: center;
        flex-direction: row;
        gap: 1.5rem; /* Reduce gap between cards */
        /*margin: 2rem auto 1.5rem;  Center cards and adjust margin */
        max-width: 500px; /* Optional: limit width of card grid */
    }

    .about_card {
        width: 100%;
        height: 180px;
    }

    .about_details .btn {
        justify-content: center; /* Center the button */
    }
}


/* Mobile Devices (adjust breakpoint as needed, e.g., max-width 767px or 600px) */
@media screen and (max-width: 600px) {
    .about_container {
        gap: 2rem; /* Further reduce gap on smaller mobiles */
    }

    .about_image {
        width: 95%; /* Image takes more width on smaller screens */
        border-radius: 1.5rem; /* Less rounded corners */
    }

    .about_cards {
        /* Stack cards vertically in a single column */
        grid-template-columns: 1fr;
        gap: 1rem; /* Reduce gap to stack closer */
        margin: 1.5rem auto 1rem; /* Adjust margin */
        max-width: 300px; /* Constrain card width for better appearance */
    }

    .about_card {
        height: 135px; /* Further reduce card height */
        padding: 0.8rem; /* Adjust padding */
    }

    .about_card i {
        font-size: 1.2rem; /* Smaller icon size */
    }

    .about_card h4 {
        margin: 0.8rem 0 0.6rem; /* Adjust margin */
        font-size: 1.1rem; /* Smaller font for title */
    }

    .about_card small {
        font-size: 0.8rem; /* Smaller font for small text */
    }

    .about_details .top-header h1 {
        font-size: 2em; /* Adjust main title size for mobile */
    }
    
    
    .about-text {
        font-size: 0.9rem; /* Adjust text size for readability */
        line-height: 1.5;
        text-align: justify;
    }
}

/* Very Small Mobiles (Optional, for extremely small screens) */
@media screen and (max-width: 400px) {
    .about_image {
        width: 100%;
        border: 0.5rem solid var(--color-gray-100); /* Thinner border */
    }
    .about_card {
        height: 90px; /* Smallest card height */
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start; /* Align columns to the left on small screens */
    }

    .footer-logo {
        margin-bottom: 30px;
        margin-right: 0; /* Remove right margin on small screens */
    }

    .footer-column {
        min-width: unset; /* Remove min-width on small screens */
        width: 100%; /* Take full width */
        margin-bottom: 20px;
    }

    .footer-column:last-of-type {
        margin-bottom: 0;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 30px 15px;
    }

    .footer-column h3 {
        font-size: 15px;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icons a {
        font-size: 22px;
    }
}
/* --------------------MEDIA QUERY == 1024PX / RESPONSIVE */
@media only screen and (max-width: 1024PX){
    .featured-text{
        padding: 0;
    }
    .image, .image img{
        width: 320px;
        height: 320px;
    }

}
.project-box:hover.project-box i,
.project-box:hover.project-box>h3,
.project-box:hover.project-box>label{
    color: var(--color-white);
    z-index: 2;
}


/* --------------------MEDIA QUERY == 900PX / RESPONSIVE */
@media only screen and (max-width: 900px){
    .nav-button{
        display: none;
    }
    .nav-menu.responsive{
        right: 0;
    }
    .nav-menu{
        position: fixed;
        top: 100px;
        right: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: var(--color-third);
        backdrop-filter: blur(20px);
        width: 100%;
        min-height: 450px;
        height: 90vh;
        border-radius: 20px;
        transition: .3s;
    }
    .nav-menu-list{
        flex-direction: column;
    }
    .nav-menu-btn{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .featured-box{
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: auto;
        padding-top: 110px;
        gap: 1.5rem;

    }
    .featured-text{
        width: 100%;
        order: 2;
        justify-content: center;
        align-content: flex-start;
        min-height: auto;
        text-align: center;
        align-items: center;
    }
    .featured-name{
        min-height: 2.28em;
        margin-block: 14px;
    }
    .featured-text-info{
        margin-bottom: 24px;
    }
    .featured-text-btn,
    .hero-social-links{
        justify-content: center;
    }
    .social_icons{
        margin-top: 2em;
    }
    .featured-image{
        order: 1;
        justify-content: center;
        min-height: 15px;
        width: 100%;
        margin-top: 0;
    }
    .image, .image img{
        width: 150px;
        height: 150px;
    }
    .row{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }
    .col{
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .about-info .contact-info{
        width: 100%;
    }

    .project-container{
        justify-content: center;
    }
    .project-box{
        width: 80%;
    }

}


/* --------------------MEDIA QUERY == 540PX / RESPONSIVE */

@media only screen and  (max-width: 540px){
    .featured-name{
        font-size: 1.75rem;
        line-height: 1.16;
    }
    .featured-image{
        margin-top: 0;
    }
    .featured-text-btn .btn{
        width: 100%;
        justify-content: center;
    }
    .project-box{
        width: 100%;
    }
    .form-inputs{
        flex-direction: column;
    }
    .input-field{
        width: 100%;
    }

    .about-info .contact-info{
        width: 100%;
    }
    
/* }
@media only screen and  (max-width: 540px){
    .row{
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 50px;
    }
    .col{
        display: flex;
        justify-content: center;
        width: 100vw;
    }
    .about-info{
        margin-left: 5rem;
        background: #00b5e7;
    } */
}


/* ================== Responsive Styles ================== */

/* Tablets and smaller desktops (e.g., 1024px and below) */
@media screen and (max-width: 1024px) {
    .container.services_container {
        grid-template-columns: 1fr; /* Stack columns vertically */
        gap: 2rem; /* Reduce gap when stacked */
    }

    .services_left {
        flex-direction: row; /* Make service items horizontal */
        flex-wrap: wrap; /* Allow items to wrap to next line if space is limited */
        justify-content: center; /* Center items horizontally */
        gap: 0.8rem; /* Smaller gap between horizontal items */
        padding-bottom: 1rem; /* Add padding at the bottom before separator */
        border-bottom: 1px solid var(--third-color); /* Horizontal line below .services_left */
    }

    .services_left li {
        margin-top: 0; /* Remove specific margin-top when horizontal */
        flex: 0 0 calc(50% - 0.8rem); /* 2 items per row, accounting for gap */
        max-width: 250px; /* Max width for each service item */
        font-size: 0.9rem; /* Slightly smaller text for tablet items */
        padding: 0.8rem; /* Slightly less padding */
    }

    /* Adjust padding/gap for horizontal items on smaller tablets if needed */
    @media screen and (max-width: 768px) {
        .services_left li {
            flex: 0 0 calc(100% - 0.8rem); /* 1 item per row on smaller tablets */
            max-width: 350px; /* Adjust max-width for better fit */
        }
    }

    .services_left li h3 {
        font-size: 1.1rem;
    }

    .services_left li p {
        font-size: 0.8rem;
    }

    .services_left li span {
        padding: 0.8rem; /* Smaller padding for icon circle */
        font-size: 1.1rem; /* Smaller icon size */
        min-width: 2.8rem;
        min-height: 2.8rem;
    }

    .services_right {
        border-left: none; /* Remove left border when stacked */
        padding-left: 0; /* Remove left padding when stacked */
        padding-top: 2rem; /* Add top padding to separate from top content */
    }

    .services_right h3 {
        font-size: 1.6rem; /* Adjust title size */
        margin-bottom: 1rem;
    }

    .services_right .description {
        font-size: 0.95rem; /* Adjust description size */
    }
    
    .services_right .description .demo-btns {
        padding: 0.4rem 0.8rem; /* Slightly smaller button padding */
        min-width: 8rem;
        font-size: 0.9rem;
    }
}


/* Mobile devices (e.g., 600px and below) */
@media screen and (max-width: 600px) {
    .services {
        margin-top: 2rem;
        padding: 1rem;
    }

    .top-header h1 {
        font-size: 2rem;
    }

    .top-header p {
        font-size: 1rem;
    }

    .container.services_container {
        gap: 1.5rem; /* Smaller gap */
    }

    .services_left {
        gap: 0.6rem; /* Even smaller gap between horizontal items */
        padding-bottom: 0.8rem;
        display: flex;
        justify-content: center;
        flex-direction: row;
    }

    .services_left li {
        padding: 0.7rem;
        font-size: 0.85rem;
        flex: 0 0 calc(100% - 0.6rem); /* Still 1 item per row */
    }

    .services_left li span {
        padding: 0.6rem;
        font-size: 1rem;
        min-width: 2.4rem;
        min-height: 2.4rem;
    }

    .services_left li h3 {
        font-size: 1rem;
    }

    .services_left li p {
        font-size: 0.75rem;
    }

    .services_right {
        padding-top: 1.5rem; /* Adjust top padding */
    }

    .services_right h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .services_right .description {
        font-size: 0.85rem;
    }

    .services_right .description .demo-btns {
        padding: 0.3rem 0.6rem;
        min-width: 7rem;
        font-size: 0.8rem;
    }
}


/* Extra small devices (optional, for very narrow screens) */
@media screen and (max-width: 480px) {
    .top-header h1 {
        font-size: 1.8rem;
    }
    .scroll-btn{
        display: none;
    }
    .btn.but{
        font-size: medium;
        padding-left: 50px;
    }
    .contact-info .email{
        font-size: 16px;
      
    }
    .about_cards .about_card i{
        font-size: 18px;
        margin-bottom: -8px;
    }
    .about_cards .about_card h4{
        margin-top: 0px;
        font-size: 15px;
    }
    .about_cards .about_card small{
        font-size: 10px;
        margin-top: -5px;
        margin-bottom: 15px;
    }
    .services_left li {
        flex-direction: column; /* Stack icon and text vertically if very narrow */
        align-items: flex-start;
    }
    .services_left li span {
        margin-bottom: 0.3rem; /* Space between icon and text when stacked */
    }
}

/* --------------------CERTIFICATION SECTION ------------- */

.certification-section {
    padding-block: 5em;
    background: var(--body-color);
}

@media only screen and  (max-width: 400px){
    .wrapper{
        padding-inline: 6vw;
    }
    .featured-name{
        font-size: 1.68rem;
    }
}

.cert-profile-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: -3rem 0 2rem;
}

.cert-profile-links a {
    color: var(--first-color);
    background: var(--color-white);
    border: 1px solid var(--first-shadow-color);
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 500;
    box-shadow: 0 2px 8px var(--first-shadow-color);
    transition: .25s;
}

.cert-profile-links a:hover {
    color: var(--color-white);
    background: var(--second-color);
}

.certification-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 3rem;
    padding-inline: 2vw;
}

.cert-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    text-align: center;
    transition: 0.4s;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.cert-status {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cert-status-completed { background: #1f9d55; color: #fff; }
.cert-status-in-progress { background: var(--third-color); color: #1f1818; }
.cert-status-planned { background: #e9e9e9; color: #666; }

.cert-image {
    width: 100%;
    max-width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
    margin: 10px auto 18px;
    display: block;
    background: #fff;
}

.cert-issuer {
    font-size: 0.85rem;
    color: var(--text-color-second);
    margin-bottom: 10px;
}

.cert-pending-note {
    font-size: 0.8rem;
    font-style: italic;
    color: #999;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 1px 12px 20px 4px var(--first-shadow-color);
}

.cert-icon {
    font-size: 3rem;
    color: var(--second-color);
    margin-bottom: 20px;
}

.cert-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.cert-card p {
    font-size: 0.9rem;
    color: var(--text-color-second);
    margin-bottom: 15px;
}

.cert-card .view-cert-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--first-color);
    color: var(--color-white);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: 0.3s;
}

.cert-card .view-cert-btn:hover {
    background: var(--first-color-hover);
}

/* Responsive for Certification */
@media (max-width: 1024px) {
    .certification-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .certification-container {
        grid-template-columns: 1fr;
    }
}
