@import url('https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@400;500;600;700;800&family=Abril+Fatface&family=Lora:ital,wght@0,400..700;1,400..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

body {
    background: linear-gradient(115deg, gray, #444, black);
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    font-size: large;
    animation: fadeIn 0.8s ease-in;
    margin: 0;
    padding: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

header {
    width: 100%;
    
    position: fixed;
    top:0;
    left:0;
    min-height: 70px;
    z-index: 999;
    transition: background 0.3 ease;
}
header.scrolled{
    background: rgba(0,0,0,0.08);
    backdrop-filter: blur(5px);
}
html {
    scroll-behavior: smooth;
}
body html{
    overflow-x: hidden;
}

nav ul {
    list-style-type: none;
    margin: 10px;
    padding: 10px;
    justify-content: space-around;
    gap: 15px;
    display: flex;




}

nav ul li {
    margin: 0;
    padding: 0;

}

nav ul li a {
    color: rgb(255, 255, 255);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
    font-size: 1.3rem;
    text-align: center;
    


}

/* Hover effect */
nav ul li a:hover {
    background: #00c8ff41;

}

/* Hover effect */
nav ul li a:hover {
    background: #00c8ff41;

}

#projects {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    font-weight: 600;

}

#projects h1 {
    font-family: 'Poppins';
    font-size: 4rem;
    text-align: center;
    margin-bottom: 25px;

}

button {
    position: relative;
    
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 4rem;
    border-radius: 10px;
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


/*grid projects*/

/*styling projects*/


.button {
    display: inline-block;
    background-color: steelblue;
    padding: 10px 20px;
    margin: 40px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: large;
}
.button:hover {
    background-color: #2563eb;
    transform:scale(1.02);
}

.slider{
    position: relative;
    max-width: 1000px;
    margin:0 auto;
    overflow: hidden;
    padding:40px 0;
}
.slides{
    display: flex;
    transition:transform 0.5s ease;
    
}
.slide{
    min-width: 100%;
    
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    box-sizing: border-box;
    padding:20px;
    text-align: center;
    border-radius: 20px;
   
    
}
.slide img {
    max-width: 800px;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.5s ease;
}
img{
    width: 100%;
    background-size: cover;
}
.slide img:hover{
    transform:scale(1.05);
}
.project-content{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap:32px;
    align-items:center;
    background: rgba(0,0,0,0.45);
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
    border-radius: 18px;
    padding:15px;
}

.project-text h2{
    font-size: 4rem;
    font-family:"Poppins";
    font-weight: 300;
    margin-bottom:20px;
}
.project-text p{
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.8;
}
.project-text ul{
    margin-left:20px;
    margin-bottom: 15px;
}
.project-text ul li{
    margin-bottom:6px;
}
.taal h5 {
    margin-bottom: 8px;
    margin-left: 10%;
    font-size: 1.2rem;
    opacity: 0.9;
}
.project-text ul{
    display: flex;
    gap:30px;
    list-style: none;
    padding:0;
    margin-bottom: 28px;
    justify-content: center;
}
 .project-text ul li{
    background-color: #2563eb;
    font-size: 0.9rem;
    padding:10px;
    border-radius:10px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.5s ease, background-color 0.5s ease;
    cursor:zoom-in;
}
.project-text ul li:hover{
    transform:scale(1.05);
    background-color: #2564eb7c;
}
footer{
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0 -10px 30px 0,0,0,0.0;
}
footer p{
    opacity: 0.8;
}
@media screen and(max-width: 768px){
    .slider{
        width: 1000px;
    }
    .slide img{
        width: 250px;
    }
    .project-content{
        grid-template-columns: 1fr;
    }
    #projects h1{
        font-size: 2.5rem;
    }
    .prev, .next{
        font-size: 2.5rem;
        padding: 6px;
    }
    .button:focus{
    transform:scale(1.03);
}

.project-text ul li{
    font-size: 1.5rem;

}


}
@media screen and (max-width:1024px) {
    
    .navLinks {
    position: absolute;
    top: 40px;        
    left: 0;
    margin:0;
    display: none;
    flex-direction: column;
    width: 100%;
    backdrop-filter: blur(10px);

    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background-color: #333;
    padding: 30px 0;
    z-index: 999;     
    animation:FadeIn 0.3s ease;
}
@keyframes FadeIn{
    0%{
        opacity:0;
    }
    100%{
        opacity:1;
    }
}
.navLinks.active {
    display: flex;
}
    .hamburger{
        display: flex;
        flex-direction: column;
        gap:6px;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top:10px;
    }
     .hamburger span{
       width:28px;
       height:3px;
       background-color: white;
       border-radius: 2px;
        transition: all 0.3s ease;
       
    }
    .hamburger.active span:first-child{
    
        transform: rotate(48deg) translate(7px, 7px);
    }
    .hamburger.active span:nth-child(2){
    
        opacity: 0;
    }
    .hamburger.active span:last-child{
        transform: rotate(-48deg) translate(6px, -6px);
    }
    
    .slider{
        min-width: 100%;
        position: relative;
    }
    .slide{
        width:100%;
        box-sizing: border-box;
    }
    .project-text p{
        font-size: 1.7rem;
    }
    .project-text h2{
        font-size:2rem;
    }
    .project-content{
    display: grid;
    grid-template-columns:1fr;
    gap:32px;
    align-items:center;
    text-align: center;
}



        
    }
    @media screen and(max-width: 768px){
    .navLinks {
    position: absolute;
    top: 40px;        
    left: 0;
    margin:0;

    width: 100%;

    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);

    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;

    padding: 30px 0;
    z-index: 999;     
}
.navLinks.active {
    display: flex;
}
    .hamburger{
        display: flex;
        flex-direction: column;
        gap:6px;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top:10px;
    }
     .hamburger span{
       width:28px;
       height:3px;
       background-color: white;
       border-radius: 2px;
        transition: all 0.3s ease;
       
    }
    .hamburger.active span:first-child{
    
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2){
    
        opacity: 0;
    }
    .hamburger.active span:last-child{
        transform: rotate(-45deg) translate(6px, -6px);
    }
    .slider{
        width:100%;
        padding:0 15px;
    }
    .slide img{
        width:100%;
    }
    .project-content ul{
        display:flex;
        flex-direction: column;
        width:80%;
        
    }
    .project-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    .project-content h1{
        font-size:2rem;
    }
    .slide img{
        width: 100%;
    }
    .slides{
        width: 100%;
    }
    .prev,
    .next{
        margin: 0 auto;
        padding:10px 12px;

    }
    .prev{
        left:-10px;
    }
    .next{
        right:-10px;
    }
}

@media screen and (max-width:500px){
    .project-content ul{
        display:flex;
        flex-direction: column;
        width:80%;
    }
    .project-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    .project-content h1{
        font-size:2rem;
    }
    .slide img{
        width: 100%;
    }
    .slides{
        width: 100%;
    }
    .prev,
    .next{
        margin: 0 auto;
        padding:10px 12px;

    }
    .prev{
        left:-10px;
    }
    .next{
        right:-10px;
    }
}



