*{
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    box-sizing: border-box;
}
html{
   scroll-behavior: smooth;
}
body{
    background: #080808;
    color: #fff;
}
#header{
    width: 100%;
    height: 46.25vw;
    background-image: url(https://wallpaperaccess.com/full/5651990.jpg);
    background-size: cover;
    background-position: center;
}
.container{
    padding: 10px 10%;
}
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.logo{
    width: 240px;
}
nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}
nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}
nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}
nav ul li a:hover::after{
    width: 100%;
}
.header-text{
    margin-top: 20%;
    font-size: 30px;
}
.header-text h1{
    font-size: 60px;
    margin-top: 20px;
}
.header-text h1 span{
    color: #ff004f;
}
/* ---------about-------------*/
#about{
    padding: 20px 0;
    color: #ababab;
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.about-col-1{
    flex-basis: 35%;
}
.about-col-1 img{
    width: 100%;
    border-radius: 15px;
    height: 100%;
}
.about-col-2{
    flex-basis: 60%;
}
.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}
.tab-titles{
    display: flex;
    margin: 20px 0 40px;
}
.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}
.tab-links.active-link:hover::after{
    width: 100%;
}
.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
}
.tab-contents ul li span{
    color: #ff004f;
    font-size: 14px;
}
.tab-contents{
    display: none;
}
.tab-contents.active-tab{
    display: block;
}
/*--------services-------*/
#services{
    padding: 30px 0;
}
.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.services-list div{
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}
.services-list div i{
    font-size: 50px;
    margin-bottom: 30px;
}
.services-list div h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}
.services-list div a{
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}
.services-list div:hover{
    background: #ff004f;
    transform: translateY(-10px);
}
/*-------portfolio------*/
.portfolio{
    padding: 50px 0;
}
.Work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.work {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #000;
    height: 400px;
    border-bottom: 4px solid transparent; /* Base for colored accent */
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

/* Colored border accent – customize per project if needed */
.work:nth-child(1) { border-bottom-color: #00ff9d; } /* Teal-green for FundiConnect (AI/tech feel) */
.work:nth-child(2) { border-bottom-color: #7b2cff; } /* Purple for Wildlife AI */
.work:nth-child(3) { border-bottom-color: #ff6b6b; } /* Coral red for Hospital */
.work:nth-child(4) { border-bottom-color: #ffd60a; } /* Yellow for Logo Design */

.work:hover,
.work:active { /* :active for mobile tap */
    border-bottom-width: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-8px);
}

.work img {
    width: 200%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transform: scale(1.02);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s ease;
}

.work:hover img,
.work:active img {
    transform: scale(1.5); /* Strong unzoom on hover/tap */
    opacity: 0.8;
}

.layer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.75) 95%, transparent);
    color: #fff;
    padding: 25px 20px 20px;
    height: 40%;
    overflow: hidden;
    transition: height 0.5s ease, background 0.5s ease;
    display: flex;
    flex-direction: column;
}

.work:hover .layer,
.work:active .layer { /* Keeps expanded on mobile tap */
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
}

.work:hover .layer {
    height: 100%; /* Expands to full height on hover */
    background: rgba(0, 0, 0, 0.92); /* Darker for better text visibility when expanded */
}

.layer h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.basic-info {
    opacity: 1;
    transition: opacity 0.4s ease 0.2s;
}

.more-details {
    opacity: 0;
    transition: opacity 0.5s ease;
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.work:hover .more-details {
    opacity: 1;
}

.work:hover .basic-info {
    opacity: 1; /* Keeps basics visible */
}

.links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.links a {
    color: #fff;
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.links a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.links i {
    margin-right: 8px;
}
/*---------contact-------*/
.contact-left{
    flex-basis: 35%;
}
.contact-right{
    flex-basis: 60%;
}
.contact-left p{
    margin-top: 30px;
}
.contact-left p i{
    color: #fff;
    margin-right: 15px;
    font-size: 25px;
}
.social-icons{
    margin-top: 30px;
}
.social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transform: 0.5s;
}
.social-icons a:hover{
    color: #ff004f;
    transform: translateY(-5px);
    transition: 0.5s, transform 0.5s;
}
.social-icons{
    margin-bottom: 20px;
}
.btn.download{
    display: inline-block;
    background: #ff004f;
    position: relative;
    transition: background 0.3s;
    border-radius: 5px;
    height: 35px;
    border: none;
    padding: 10px 20px;
    color: black;
    font-weight: 500;
    text-decoration: none;
}
.btn.btn2{
    display: inline-block;
    background: #ff004f;
    position: relative;
    transition: background 0.3s;
    border-radius: 5px;
    border: none;
}
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4CAF50;
    color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    text-align: center;
}

.popup.show {
    display: block;
}

.btn2.loading {
    cursor: wait;
    /* Add a spinner or animation here, e.g., */
    background: url('loading-spinner.gif') no-repeat center; /* Replace with your spinner image */
    color: transparent; /* Hide text during loading */
}

.btn2.success {
    background-color: #4CAF50; /* Green for success */
}
.btn.btn2:hover .popup {
    display: block; 
}
.contact-right form{
    width: 100%;
}
form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}
form .btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 180px; /* Fixed width to maintain size */
    height: 48px; /* Fixed height to maintain size */
    box-sizing: border-box;
}
form .btn2.loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
      top: 25%;
      left: 40%;
}
form .btn2.success::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 20px;
    color: #fff;
    animation: fadeIn 0.3s ease-in;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}
.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
}
.copyright i{
    color: #ff004f;
}
/*--------------css for small screen ----------*/
nav .fa-solid {
    display: none;
}
@media only screen and (max-width: 600px) {
    #header{
        background-image: ur[](https://wallpaperaccess.com/full/5651990.jpg);
        height: 100%;
        object-fit: cover;
    }
    .header-text{
        margin-top: 100%;
        font-size: 16px;
    }
    .logo{
        padding-left: 0;
        width: 40%;
    }
    .header-text h1{
        font-size: 30px;
    }
    nav .fa-solid{
        display: block;
        font-size: 25px;
    }
    nav ul{
        background: #14050a;
        position: fixed;
        top: 3%;
        right: -50%;
        width: 47%;
        height: 940%;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
        border-radius: 10px;
    }
    nav ul i{
        left: 20px;
         position: absolute;
         top: 20px;
         cursor: pointer;
    }
    nav ul li{
        display: block;
        margin: 25px;
    }
    nav ul.fa-solid{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    .sub-title{
        font-size: 40px;
    }
    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }
    .about-col-1{
        margin-bottom: 30px;
    }
    .about-col-2{
        font-size: 14px;
    }
    .tab-links{
        font-size: 16px;
        margin-right: 20px;
    }
    
    .contact-left, .contact-right{
        flex-basis: 100%;
    }
    .copyright{
        font-size: 14px;
    }
    about section img{
        height: 80%;
    }
    .Work-list {
        grid-template-columns: 1fr; /* Single column stack */
        gap: 40px;
        padding: 20px 15px;
    }

    .work {
        height: 500px; /* Taller for mobile scrolling/comfort */
        border-bottom-width: 6px; /* Thicker accent on mobile */
    }
    .work img{
        width: 400%; /* Less zoomed for better visibility on small screens */
        height: 100%;
        object-fit: cover;
    }

    .layer {
        padding: 30px 25px 25px;
        height: 45%; /* Slightly more visible initially on small screens */
    }

    .layer h3 {
        font-size: 1.6rem;
    }

    .basic-info p,
    .more-details p {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .links a {
        padding: 12px 24px;
        font-size: 1rem;
    }

    /* Reduce motion if user prefers */
    @media (prefers-reduced-motion: reduce) {
        * {
            transition: none !important;
        }
    }

@media (max-width: 480px) {
    .work {
        height: 450px;
        border-radius: 12px;
    }

    .layer h3 {
        font-size: 1.4rem;
    }

}
#msg{
    color: #61b752;
    margin-top: -40px;
    display: block;
}
