@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Ubuntu&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  transition: all 0.4s ease;
  scroll-behavior: smooth;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
section{
    padding-top: 50px;
}
.scroll-btn i{
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 12px;
    background: #4070f4;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
    box-shadow: 0 5px 10px #000000;
}
nav{
    position:fixed;
    width:100%;
    padding: 20px 20px;
    font-family:'Ubuntu',sans-serif;
    z-index: 1000;
}
nav.sticky{
    padding: 13px 20px;
    background: #4070F4;
}
nav .navbar{
    width: 90%;
    display:flex;
    align-items: center;
    justify-content:space-between;
}
nav .navbar .logo a{
    font-size: 40px;
    font-weight: 500;
    color: #4070f4;
}
nav.sticky .navbar .logo a{
    color: #FFF;
}
nav .navbar .menu{
    display: flex;
}
nav .navbar .menu li{
    margin: 0 8px;
    list-style: none;
}
.navbar .menu li a{
    font-size: 18px;
    font-weight: 500;
    color: #0e2431;
    transition: all 0.3s ease;
}
.navbar .menu li a:hover{
    color:#4070F4;
}
nav.sticky .navbar .menu li a{
    color: #FFF;
}
nav.sticky .navbar .menu li a:hover{
    color: #0e2431;
}
nav.sticky .navbar .media-icon a{
    color: #FFF;
}

/* Side navigation menu button */
nav .menu-btn,
.navbar .cancel-btn{
    position: absolute;
    color: #fff;
    font-size: 30px;
    right: 30px;
    top: 20px;
    display: none;
}
nav .menu-btn{
    color: #fff;

}

/* Home Section */
.home {
    height: 100vh;
    width: 100%;
    background: url("elevated-view-laptop-stationeries-blue-backdrop.webp") no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Ubuntu', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home .home-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    min-height: 500px;
}
.home .text {
    flex: 0 1 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    text-align: left;
}
.home .text .text-one{
    font-size: 25px;
}
.home .text .text-two{
    font-size: 75px;
    font-weight: 600;
    margin-left: -3px;
}
.home .text .text-three{
    font-size: 40px;
}
.home .text .text-four{
    font-size: 25px;
    margin: 5px 0;
}
.home .button{
    margin: 24px 0 0 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
}
.btn{
    display: inline-block;
    outline: none;
    color: #FFF;
    font-size:22px;
    font-weight: 500;
    padding: 8px 16px;
    background: #4070F4;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.4s ease;
    text-decoration: none;
    text-align: center;
    margin-left: 0;
}
.btn:hover{
    color: #4070F4;
    background-color: #FFF;
    border-color: #4070F4;
}
.home .image {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}
.home .profile-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%; /* Make image circular */
    border: 6px solid #4070f47a;
    box-shadow: 0 4px 24px #4070f44d;
    background: #fff;
    display: block;
}
/* about me section */
.about{
    margin-top: 4%;
    margin-bottom: 4%;
}
.about .content{
    width:100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
    font-family: 'Poppins', sans-serif;
    gap: 30px;
}
section .title{
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    margin-top: 40px;
}
section .title span{
    font-size: 30px;
    font-weight: 600;
    position: relative;
}
section .title span::before{
    content: '';
    position:absolute;
    left: 5%;
    bottom: 0;
    height:  3px;
    width: 90%;
    background: #4070F4;
}
.about .about-text{
    display:flex;
    justify-content: center;
    align-items: center;     
    margin: 0 auto;           
    max-width: 800px;        
    width: 100%;              
    height: auto;
    padding: 10px; 
}
.about .about-text p{
    text-align: center;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 600px;
}
.about .button {
    display: flex;
    justify-content: center;
    margin: 24px 0 14px;
}
.about .button button{
    outline: none;
    color: #FFF;
    font-size:22px;
    font-weight: 500;
    padding: 8px 16px;
    background: #4070F4;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.4 ease;
}
.about .button button:hover{
    color: #4070F4;
    background-color: #FFF;
    border-color: #4070F4;
}
/* my skills section */
.skills{
    margin-top: 4%;
    margin-bottom: 4%;
    background: #c5e6f0;
}
.skills-content {
    padding: 40px 0;
    display: flex;
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}
.skills-column {
    flex: 1
}
.skill-bar {
    margin-bottom: 20px
}
.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px
}
.skill-name {
    font-weight: 600
}
.skill-percentage {
    color: #2f5ad1;
    font-weight: 600
}
.skill-progress-bg {
    width: 100%;
    height: 10px;
    background-color: #c7c4c4;
    border-radius: 5px;
    overflow: hidden;
}
.skill-progress-fill {
    height: 100%;
    background: linear-gradient(to right,#092470,#315fe0);
    border-radius: 5px;
    transition: width 1.5s ease-in-out;
}
/* my porjects css */
.projects-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem;
}
.project-card{
    display: flex;
    background-color:#a3dcf542;
    border-radius: 8px;
    gap: 20px;
    margin-bottom: 20px;
    /* align-items: center; */
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px #0000001a
}

.project-card:hover .project-image img {
    transform: scale(1.05)
}
.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
    width: 600px;         
    max-width: 100%;      
    height: auto;         
    object-fit: fill;   
    border-radius: 8px;
}
.project-buttons {
  display: flex;
  gap: 10px;
}

.project-btn {
  background-color: #ffffff;
  color: #000000;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.project-btn:hover {
  background-color: #092470;
  color: white;
}
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right,#315fe0,#5870b38c);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .3s ease;
    border-radius: 8px;
}

.project-card:hover .project-overlay {
    opacity: 1
}

.view-project {
    background-color: #fff;
    color: #4070F4;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: opacity .3s ease;
}

.view-project:hover {
    transform: scale(1.05)
}

.project-info h3 {
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.project-info p {
    color: #000000;
    margin-bottom: 15px;
    font-size: 1rem
}

.project-tech {
    margin-top: auto;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.tech-tag {
    background-color: #5bc9eea9;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500
}
/* publication css */
.publications{
    background: #c5e6f0;
    padding-top: 40px;
}
.publications-container{
    font-size: 18px;
    padding: 1rem;
    padding-left: 3.5rem;
}
/* certificates css */
.certificates-container {
    padding: 1rem 5.5rem;
    font-size: 18px;
}
.certificates-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.certificates-list li {
    margin-bottom: 18px;
}
.certificate-link {
    color: #092470;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 1px dashed #4070F4;
    padding-bottom: 2px;
}
.certificate-link:hover {
    color: #4070F4;
    border-bottom: 2px solid #4070F4;
}
/* contact css */
.contact{
    background:#c5e6f0;
    padding-bottom: 30px;

}
.contact-content {
    display: flex;
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
    gap: 30px;
    padding: 0 15%;
    
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg,#fff,#4070F4);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #4070F4;
}

.contact-item h3 {
    margin-bottom: 5px;
    color: #4070F4;
}

.contact-item a {
    color: #000000;
    text-decoration: none;
    transition: 1s ease;
}

.contact-item a:hover {
    color: #0d4bf5;
}

.contact-form {
    flex: 0.68;
    display: flex;
    flex-direction: column;
    gap: 20px
}

.form-group input,.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #dfdbdb58;
    color: #000000;
    border: 1px solid #292828
}
.form-group input:focus,.form-group textarea:focus {
    border-color: #4070F4;
    outline: none;
    box-shadow: 0 0 0 3px #6c63ff1a
}
.form-group input::placeholder,.form-group textarea::placeholder {
    color: #000000;
    opacity: .8
}
.contact-form .submit-button {
    background: linear-gradient(to right,#4070F4,#092470);
    color: #fff;
    border: none;
    padding: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px #574ef64d;
    border-radius: 8px;
    cursor: pointer;
}
.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #6c63ff66
}

/* footer css */
footer {
    background-color: #4d79f5;
    padding: 10px 0;
    text-align: center
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center
}
.social-links {
    display: flex;
    gap: 20px
}
.social-links a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition)
}

.social-links a:hover {
    color: var(--primary-color)
}

/* Responsive media query */
@media (max-width: 900px) {
    .home .home-content {
        flex-direction: column-reverse; /* Image on top, text below */
        align-items: center;
        text-align: center;
        gap: 30px;
        min-height: unset;
    }
    .home .text {
        align-items: center;
        text-align: center;
    }
    .home .button {
        justify-content: center;
    }
    .home .text .text-two{
        font-size: 70px;
    }
    .home .text .text-three{
        font-size: 35px;
    }
    .home .profile-image {
        width: 280px;
        height: 280px;
    }
}
@media (max-width: 768px) {
    .project-card {
        flex-direction: column; 
        text-align: center; 
    }

    .project-image img {
        width: 100%;         
        max-width: 400px;   
        height: auto;
    }
}
@media(max-width: 750px){
    nav .navbar .menu{
        position:absolute;
        left:-100%;
        top:0;
        height:100vh;
        max-width: 400px;
        width: 100%;
        background:#0e2431;
        flex-direction: column;
        align-items: center;
        padding-top: 60px;
        transition: all 0.5s ease;
    }
    nav .navbar.active .menu{
        left:0;
    }
    .navbar .menu li a{
        display: block;
        margin: 10px 0;
        font-size: 23px;
        margin: 1 10px;
        color: #fff;
    }
    .navbar .media-icons a{
        display:none;
    }
    nav .menu-btn,
    .navbar .cancel-btn{
        display: block;
    }
    .home .text .text-two{
        font-size: 64px;
    }
    .home .text .text-three{
        font-size: 34px;
    }
    .about-details {
        flex-direction: column;
        gap: 16px;
    }
    .about .button {
        justify-content: center;
        margin: 0;
    }
    .project-image img {
        width: 100%;
        height: auto;
    }
    .contact-content{
        flex-direction: column;
    }
}
@media(max-width: 720px){
    .skills-content {
        flex-direction: column;
    }
    .publications-container{
        font-size: 16px;
    }
}
@media(max-width: 430px){
    .home .text .text-two {
        font-size: 42px;
    }
    .home .text .text-three {
        font-size: 28px;
    }
    .home .btn{
        font-size: 18px;
        padding: 6px 12px;
    }
    nav .navbar .logo a {
        font-size: 28px;
    }
    .about .about-text p {
        font-size: 15px;
    }
    .about .btn{
        font-size: 15px;
    }
    .publications-container{
        font-size: 14px;
    } 
}
@media(max-width: 360px){
    .home .text .text-two {
        font-size: 36px;
    }
    .home .text .text-three {
        font-size: 24px;
    }
    .home .btn{
        font-size: 16px;
        padding: 4px 10px;
    }
    .home .profile-image {
        width: 250px;
        height: 250px;
    }
    nav .navbar .logo a {
        font-size: 24px;
    }
    .about .btn{
        font-size: 14px;
    }
}
