/* section1 css */
.section_1 {
    text-align: center;
    /* padding: 60px 20px;  */
    margin: 0 auto; 
    max-width: 1400px;
}

.section_img {
    width: 100%;
   /* padding-top: 1rem; */
    height: auto;
    position: absolute;
    margin-top: -20rem;
    left: 0;
    z-index: -1;
    object-fit: cover;
}

.section_1 .content {
    position: relative;
    z-index: 1;
    margin-top: 10rem;
    padding-top: 0.2rem;
}

.section_1 .content h1 {
    font-weight: lighter;
    font-family: "Syne", sans-serif;
    color: #000;
    font-size: 4rem;  
    margin-top: 6.5rem;  
}

.section_1 .content p {
    margin-top: 6rem;
    font-family: "Syne", sans-serif;
    font-size: 2rem; 
    color: #07124D;   
}

/* Categories Base Styles */
.categories {
    margin-top: 6rem;
    padding: 10px 0;
    text-align: center;
}

.categories ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 5rem;
}

.categories ul li {
    margin: 0 15px;
    cursor: pointer;
    font-family: "Syne", sans-serif;
    font-size: 1rem;
}

.categories ul li.active {
    color: #000;
    border: 1px solid #07124D;
    border-radius: 30px;
    padding: 5px 15px ;

    
}

.profile-button {
    background-color: #07124D;
    color: white;
    padding: 0.75rem 1.5rem;
    margin: 2rem 0;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
     font-family: 'Poppins', sans-serif;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}
/* Responsive Design Adjustments */

@media (max-width: 1624px) {
   
       .section_1 .content{
        padding-top: 0rem;
       }
       
       .section_1 .content p {
        margin-top: 4rem;
       }

}
@media (max-width: 1024px) {
  
    .section_1 {
        text-align: center;
        padding: 60px 20px; 
       
    }


    .section_img {
        width: 100%;
        height: auto;
        position: absolute;
        margin-top: -7rem;
        left: 0;
        z-index: -1;
        object-fit: cover;
    }
    
    .section_1 .content {
        position: relative;
        z-index: -1;
        margin-top: 7rem;
        padding-top: 0rem;
    }
    
    .section_1 .content h1 {
        font-weight: lighter;
        font-family: "Syne", sans-serif;
        color: #000;
        font-size: 3.5rem;    
    }
    
    .section_1 .content p {
        margin-top: 3rem;
        font-family: "Syne", sans-serif;
        font-size: 1.5rem; 
        color: #07124D;   
    }
    
    /* Categories Base Styles */
    .categories {
        margin-top: 5rem;
        padding: 10px 0;
        text-align: center;
    }
    
    .categories ul {
        list-style: none;
        padding: 0;
        display: flex;
        justify-content: center;
        gap: 3rem;
    }
    
    .categories ul li {
        margin: 0 1px;
        cursor: pointer;
    }
    
    .categories ul li.active {
       border: 1 px solid #07124D;
    }

}

@media (max-width: 768px) {
  
    .section_1 {
        padding: 40px 10px;
    }
    .section_1 .content {
        margin-top: 3rem !important;
        padding-top: 0rem;

    }
    .section_1 .content h1 {
        font-size: 2.5rem;
        padding-top: 0rem;
        margin-top: 2rem;
    }
   
    /* .section_1 .content p {
        font-size: 0.9rem;
    } */
    .categories {
        overflow-x: auto;
        margin-top: 3rem;
    }

    .categories ul {
        display: inline-flex;
       
        gap: 1px;
        padding: 1px;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* Internet Explorer 10+ */
    }

    .categories ul::-webkit-scrollbar {
        display: none; /* WebKit */
    }

    .categories ul li {
        flex: 0 0 auto;
        scroll-snap-align: center;
        white-space: nowrap;
        padding: 0.3rem 1rem;
        border-radius: 20px;
       
       
    }

    .categories ul li.active {
        border:1px solid #0D47A1;
        color: black;
      
    }
}

@media (max-width: 480px) {
    .section_1 {
        padding: 30px 5px;
    }
    .section_img {
        width: 100%;
        height: auto;
        position: absolute;
        top: 8rem;
        left: 0; 
    }

    .section_1 .content h1 {
        font-size: 2.6rem;
        margin-top: -2rem;
    }
    .section_1 .content p {
        font-size: 1.5rem;
    }
}

@media (min-width: 320px) and (max-width: 480px) {
   
    .section_1 .content {
        margin-top: 9rem !important;
        padding-top: 0rem;
    }
    .section_1 {
        padding: 30px 5px;
        margin-top: 15rem;
    }
    .section_img {
        width: 100%;
        height: auto;
        position: absolute;
        top: 10rem;
        left: 0; 
    }

    .section_1 .content h1 {
        font-size: 1.7rem;
        margin-top: -22.5rem;
    }
    .section_1 .content p {
        font-size: 1rem;
        margin-top: 2.9rem;
    }
    
}




/* section-2 css */
.section_2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden;
}

.project {
    max-width:50%;
    margin-right: 10px;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.project-info {
    margin-top: 20px;
}

.project-info h2 {
    font-family: "Syne", sans-serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
}
.project-link,
.arrow-link {
  text-decoration: none;
  color: inherit;
}

.custom-link {
  text-decoration: none;
  color: inherit;
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
   transform: rotate(-45deg) translate(1px, -1px);
   font-size: 1rem;
}


.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 10px;
    text-align: left;
    margin-left: -0.1rem;

}

.tags span {
    padding: 10px 20px;
    border: 1px solid black;
    border-radius: 10px;
    font-size: 0.9rem;
   
    font-family: "poppins", sans-serif;
}

.additional-columns {
    max-width: 45%;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.slider-item {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;

}

.slider-item .project-title{
    color: #000;
}

.slider-item .project-skills{
    color: #000;
}
.screenshots, .other-projects {
    width: 100%;
}



@media screen and (min-width: 1025px) {
    .section_2 {
        display: flex;
        flex-wrap: nowrap;
    }

    .project {
        width: 100%;
    }

    .additional-columns {
        width: 50%;
        display: flex;
        flex-direction: row;
        gap: 40px;
    }

    .screenshots, .other-projects {
        width: 50%;
    }
.screenshots h2, .other-projects h2{
   font-size: 1.3rem;
   font-family: "poppins", sans-serif;
    font-weight: 100;
        margin-bottom: 1rem;

    }
    .other-projects .project-title{
        font-size: 1rem;
        margin-bottom: 0.4rem;
        font-family: "poppins", sans-serif;
    }
    .other-projects .project-skills{
        font-size: 0.6rem;
        font-family: "poppins", sans-serif;
        margin-bottom: 1.5rem;
    }
    .screenshots img, .other-projects img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        margin-bottom: 10px;
    }
   
}


@media screen and (max-width: 1024px) {
    .section_2 {
       max-width: 1000px;
    }

    h2 {
        font-size: 1.2rem !important;
        font-weight: 200;
        margin-bottom: 10px;
    }
    .additional-columns {
        flex-direction: row;
        gap: 20px;
    }
    .slider-item img {
        width: 100%;
    }
    .project-title {
        margin-top: 10px;
        font-size: 1rem;
        font-family: "poppins", sans-serif;
        white-space: normal;
    }

    .project-skills {
        font-size: 0.6rem;
        white-space: normal;
        font-family: "poppins", sans-serif;
        margin-bottom: 1.5rem;
    }

} 

/* Mobile Specific Adjustments */
@media screen and (max-width: 768px) {
    .section_2 {
        padding: 15px;
    }
    .project{
        max-width: 100%;
    }
    .additional-columns{
        max-width: 100%;
        
        }

    .slider-item {
        flex: 0 0 30%;
    }

    .project-info h2 {
        font-size: 1.2rem;
    }

    .tags span {
        padding: 6px 12px;
        font-size: 0.8rem;
        font-family: "poppins", sans-serif;
    }

    .owner-info h2 {
        font-size: 1rem;
        font-family: "poppins", sans-serif;
    }

    .owner-info p {
        font-size: 0.9rem;
        font-family: "poppins", sans-serif;
    }

    .screenshots h2 {
        font-size: 1.3rem;
        font-family: "poppins", sans-serif;
         font-weight: 100;
        margin-bottom: 1rem;
    }

    .other-projects h2 {
        font-size: 1.3rem;
        margin-top: 1rem;
        font-family: "poppins", sans-serif;
    }
    .section_2 {
        flex-direction: column;
        padding: 20px;
    }

    .project, .additional-columns {
        width: 100%;
        margin: 0 0 40px 0;
        flex-direction: column;
        
    }

    .slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 10px 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .slider a {
        flex: 0 0 auto;
        width: 100%; /* You can tweak to 50%, 60%, etc. */
        scroll-snap-align: start;
        text-decoration: none;
        color: inherit;
        /* display: block; */
    }

    .slider-item {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        background: #fff;
    }

    .slider-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9; /* Force consistent aspect ratio */
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }
    
    .project-title {
        margin-top: 10px;
        font-size: 1.1rem;
        font-family: "poppins", sans-serif;
        white-space: normal;
    }

    .project-skills {
        font-size: 0.5rem;
        white-space: normal;
        font-family: "poppins", sans-serif;
        font-weight: 100;
    }

   
    .slider-indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }

    .indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #ccc;
        cursor: pointer;
    }

    .indicator.active {
        background-color: #07124D;
    }
}

/* Small Mobile Screens */
@media screen and (max-width: 480px) {
    .section_2 {
        flex-direction: column;
        padding: 20px;
    }

    .project, .additional-columns {
        width: 100%;
        margin: 0 0 20px 0;
        flex-direction: column;
        
    }
    .slider::-webkit-scrollbar {
        display: none;
    }
    .slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 10px 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .slider a {
        flex: 0 0 auto;
        width: 100%;
        text-decoration: none;
        color: inherit;
        scroll-snap-align: start;
    }

    .slider-item {
        flex: 0 0 auto;
        width: 100%;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        box-sizing: border-box;
    }
    .slider-item img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        display: block;
    }

    .project-title  {
        margin-top: 10px;
        font-size: 1rem;
        font-family: "poppins", sans-serif;
        white-space: normal;
        word-wrap: break-word;
    }

    .project-skills {
        font-size: 0.6rem;
        margin-top: 0.3rem;
        white-space: normal;
        font-family: "poppins", sans-serif;
        font-weight: 100;
    }
    .slider-indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }

    .indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #ccc;
        cursor: pointer;
    }

    .indicator.active {
        background-color: #07124D;
    }
    
    
}

/* Add these styles to your existing CSS */
.project, .owner_info {
    transition: opacity 0.3s ease;
}

.fade-out {
    opacity: 0;
}

.slider-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-info {
    transition: all 0.3s ease;
}

.tags span {
    transition: all 0.3s ease;
}


/* owner info */
.owner_info {
    padding: 50px;
    text-align: left;
    display: none; 
}
.owner-details, .owner-details-desk {
    max-width: 600px;
    /* margin: 0 auto; */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    /* margin-left: 12rem; */
    /* margin-top: -22rem; */
    text-align: justify;
}
.owner-details-desk h2{
    font-size: 18px;
    color: #333;
    margin-top: 20px;
    font-family: "Syne", sans-serif;
    font-weight: 800;
}
.owner-details-desk .owner-desk{
    font-size: 20px;
    font-weight: bold;
    color: #07124D;
    font-family: "poppins", sans-serif;
    margin-top: 4rem;

}

.owner-details h2 {
    font-size: 22px;
    color: #333;
    margin-top: 20px;
    font-family: "Syne", sans-serif;
    font-weight: 800;
}

.owner-details .owner{
    font-size: 20px;
    font-weight: bold;
    color: #07124D;
    font-family: "poppins", sans-serif;
}

.owner-details p, .owner-details-desk p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

@media screen and (min-width:2000px) and (max-width: 2560px) {
    .owner-details{
        margin-top: -25rem;
        margin-left: 41rem;
        max-width: 25%;
    }

}

@media screen and (max-width: 1440px) {
    .owner-details{
        margin-top: -43rem;
        margin-left: 7rem;
        max-width: 40%;
    }

}

@media screen and (max-width: 1024px) {
    

    .owner-details{
        margin-top: -40rem;
        margin-left: 0.3rem;
        max-width: 50%;
    }

}

/* Mobile Specific Adjustments */

@media screen and (max-width: 768px) {
   
    .owner-details{
        margin-top: -1rem;
        margin-left: -1rem;
        max-width: 100%;
        
    }
    
    .owner-details .owner {
        font-size: 1rem;
    }
    
        .owner-info h2 {
            font-size: 0.7rem;
        }
    
        .owner-details p {
            font-size: 0.8rem;
        }

}

@media screen and (max-width: 480px) {
 .owner-details{
    margin-top:2rem;
   max-width: 500px;
   
}

.owner-details .owner {
    font-size: 0.8rem;
}

    .owner-info h2 {
        font-size: 0.7rem;
    }

    .owner-details p {
        font-size: 0.8rem;
    }

}



/* image modal zzom */
.image-modal {
    display: none; /* Default hidden */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    justify-content: center;
    align-items: center;
  }
  .image-modal .modal-content {
    width: 100vw;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    animation: zoomIn 0.3s;
  }
  
  @keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  
  .image-modal .close {
    position: absolute;
    top: 0.5rem;
    right: 5rem;
    color: #0c0c0c;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
  }
  
  .image-modal .close:hover,
  .image-modal .close:focus {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
  }