* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
#header{
    width: 100%;
    height: 100vh;
    background-image: url(images/Background.png);
    background-size: cover;
    background-position: center;
}
.header-text .tagline {
    font-size: 18px;
    margin-top: 15px;
    color: #000000;   /* adjust to fit your theme */
    max-width: 600px; /* keeps it neat on wide screens */
    line-height: 1.5;
}
.container{
    padding: 0 5%;
}

nav{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 20px;
    position: relative;
    top: 0;
}

.logo{
    width: 150px;
    height: auto;
    display: block;
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;

}

nav ul li a{
    color:#0a0a0a;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}
nav ul li a::after{
    content: '';
    width: 0%;
    height: 3px;
    background: #1d90f6;
    position: absolute;
    left: 0;
    bottom:-6px;
    transition: 0.5s;
}
nav ul li a:hover::after{
    width: 100%;
}
.header-text{
    margin-top: 10%;
    font-size: 30px;
}
.header-text h1{
    font-size: 60px;
    margin-top: 20px;
}
.header-text h1 span{
    color: rgb(26, 97, 220)
}
/*--------------------about section-------------*/

#about{
    padding: 80px 0;
    background: linear-gradient(#c2e9ff, #72adfb);
    color:#0a0a0a;
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.about-col-1 img{
    max-width: 100%;
    width: 400px;
    height: auto;
}
.about-col-1{
    flex-basis: 35%;
}
.about-col-2{
    flex-basis: 60%;
}

.sub-title{
    font-size: 50px;
    font-weight: 600;
    color:#0a0a0a;
    margin-bottom: 20px;
}

.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: #f7f4f4;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after{
    width: 50%
}

.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
}
.tab-contents ul li span{
    color: #010914;
    font-size: 18px;

}
.tab-contents{
    display: none;

}
.tab-contents.active-tab{
    display: block;
}

/*-------Projects section--------*/
#Projects{
    padding: 50px 0;
    background: linear-gradient(#72adfb, #559dfa);
}
.Projects-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.Projects{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.Projects img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}
.layer{
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom,rgba(0, 0, 0, 0.3),rgba(0, 0, 0, 0.7));color: #fff;
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    transition: height 0.5s;
}
.layer h3{
    font-weight: 800;
    margin-bottom: 20px;
}
.layer a{
    margin-top: 20px;
    color:#000000;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}
.Projects:hover img{
    transform: scale(1.1);
}
.Projects:hover .layer{
    height: 100%;
}
.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #fff;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.5s;
    color:#000000
}
.btn:hover{
    background: #fff;
}
/* -------- Certifications -------- */
#Certifications{
  padding: 60px 0;
  background: linear-gradient(#559dfa, #207efa);
  color: #0a0a0a;
}

.Certifications-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.Certifications-list div{
  background: #c0ddfa;
  border-radius: 12px;
  padding: 24px;
  font-size: 14px;
  font-weight: 400;
  transition: background-color 0.5s, transform 0.5s;
  display: flex;
  flex-direction: column;
}

/* certificate image */
.cert-image{
  width: 100%;
  aspect-ratio: auto;      
  object-fit: contain;      
  display: block;      
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 12px;
}

/* text & link */
.Certifications-list h2{
  font-size: 24px;
  font-weight: 600;
  margin: 12px 0 8px;
}

.Certifications-list a{
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: #0e0e0e;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.Certifications-list div:hover{ 
    background: #0c72ee; 
    transform: translateY(-10px); 
}

/*----------contact section-------*/
#contact {
    background: linear-gradient(#207efa, #064597);
    padding: 60px 20px;
}
.contact-left{
    flex-basis: 35%;
    color: #ffffff;
}
.contact-right{
    flex-basis: 60%;
}
.contact-left p{
    margin-top: 30px;
}
.contact-left p i{
    color:#fcfafa;
    margin-right: 1px;
    font-size: 25px;
    gap: 8px;
}
.social-icons{
    margin-top: 30px;
}
.social-icons a{
    text-decoration: none;
    font-size: 25px;
    margin-right: 15px;
    color: #fdfbfb;
    display: inline-flex;
    align-items: center;
    transition: transform 0.5s;
}
.social-icons a .social-text {
    font-size: 16px;
    color: #fdfbfb;
    transition: color 0.3s ease;
}

.social-icons a:hover i,
.social-icons a:hover .social-text {
    color: #f9fafa;
}
.social-icons a:hover {
    color: #553df1;
    transform: translateY(-5px);
}
.btn.btn2{
    display: inline-block;
    background: #0a3260;
    color: #fff;
}
.contact-right form{
    width: 100%;
}
form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #f4f4f6;
    padding: 15px;
    margin: 15px 0;
    color: #000000;
    font-size: 18px;
    border-radius: 6px;
}
form .btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}
#msg{
    color: #fff;
    margin-top: -40px;
    display: block;
}

/*---------------------copyright------------*/
.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #c0ddfa;
    font-weight: 300;
    margin-top: 20px;
}
.copyright i{
    color: #000000;
}
/*---------------css for small screens-----------*/
nav .fa-solid{
    display: none;
}
@media only screen and (max-width: 900px){
    #header{
        background-image: url(images/backgroundsmaller.png);
    }
    .header-text{
        margin-top: 40%;
        font-size: 20px;
    }
    .header-text h1{
        font-size: 35px;
    }
    .header-text .tagline{
        font-size: 15px;
        text-align: left;
        max-width: 90%; 
        background: rgba(252, 252, 252, 0.392); /* dark see-through */
        color: #0c0c0c; 
        padding: 6px 10px;
        border-radius: 5px;
        display: inline-block;
    }
    nav .fa-solid{
        display: block;
        font-size: 25px;
    }
    nav ul{
        background: #1d90f6;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }
    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;
    }
}

