*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}
body{
    background: linear-gradient(135deg, #121212 0%, #1f1f1f 100%);
    color: #fff;
    overflow-x: hidden;
    padding-top: 80px;
}
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes scaleUp {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
header{
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #1f1f1f;
    top: 0;
    width: 100%;
    position: fixed;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transform: background-color 0.3s ease;
}
header.scrolled{
    background-color: #121212;
}
header .logo h1{
    font-size: 24px;
    color: #fff;
}
nav ul{
    display: flex;
    list-style: none;
    align-items: center;
}
nav ul li{
    margin: 0 30px;
}
nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}
nav ul li a:hover{
    color: #e74c3c;
}
#Home{
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    height: 90vh;
}
.intro h1, .intro h3{
    animation: fadeIn 1.5s ease;
    animation-delay: 0.2s;
}
.image{
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
}
.intro h1{
    color: #fff;
    font-size: 40px;
    margin-bottom: 10px;
}
.intro h3{
    font-size: 25px;
    color: #bbb;
    text-decoration: overline;
    margin-bottom: 30px;
    position: relative;
}
.intro h3::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #e74c3c;
    opacity: 0.5;
}
.intro{
    margin-top: 95px; 
    margin-left: 100px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    margin-right: 50px;
    width: 40%;
}
.buttons{
    display: flex;
    text-decoration: none;
    gap: 8px;
}
.intro button{
    padding: 5px 15px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #fff;
    background-color: #e74c3c;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.4s ease;
}
.intro button:hover{
    background-color: #c0392b;
    border-color: #e74c3c;
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.intro button:focus{
    outline: none;
    border-color: #fff;
}
.welcome{
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    margin-left: 0;
    flex-grow: 1;
    width: 60%;
    margin-top: 30px;
    background: linear-gradient(135deg, #1f1f1f 0%, #2c3e50 100%);
    padding: 20px;
    border-radius: 8px;
    margin-right: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    position: relative;
}
.welcome::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border-radius: 5px 5px 0 0;
}
.welcome h1{
    font-size: 50px;
    color: #fff;
    margin-bottom: 20px;
}
.welcome p{
    line-height: 1.6;
    font-size: 18px;
    margin-bottom: 20px;
    color: #ddd;
}
.welcome p strong{
    color: #e74c3c;
}
#About{
    background-color: #1f1f1f;
    text-align: center;
    padding: 60px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    color: #fff;
}
#About h1{
    font-size: 40px;
    color: #e74c3c;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: bold;
}
#About h2{
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #fff;
    text-transform: capitalize;
    font-weight: 300;
}
#About p{
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ddd;
}
#About p strong{
    color: #e74c3c;
}
#About .about-container{
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background-color: #333;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}
#About h1, #About h2, #About p{
    font-family: 'roboto', sans-serif;
}
#About .about-container::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border-radius: 5px;
}
#About h2{
    text-align: left;
    margin-left: 20px;
}
#Skills{
    text-align: center;
    color: #fff;
    background-color: #333;
    padding: 60px 20px;
}
.skills-container{
    max-width: 1000px;
    margin: 0 auto;
}
.skills-container h1{
    font-size: 40px;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e74c3c;
    font-weight: bold;
}
.skills-list{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    margin-top: 30px;
    gap: 30px;
}
.skill-item{
    background-color: #444;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-item:hover{
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}
.skill-item h2{
    font-size: 24px;
    margin-bottom: 20px;
    color: #e74c3c;
}
.skill-bar{
    background-color: #666;
    border-radius: 5px;
    height: 15px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}
.skill-progress{
    height: 100%;
    transition: width 1s ease;
}
.skill-item p{
    margin-bottom: 10px;
    color: #ddd;
    font-size: 16px;
}
.html{
    width: 90%;
    background-color: #f16529;
}
.css{
    width: 85%;
    background-color: #2965f1;
}
.javascript{
    width: 75%;
    background-color: #f7df1e;
}
.react{
    width: 70%;
    background-color: #61dbfb;
}
.mysql{
    width: 85%;
    background-color: #00758f;
}

.cp{
    width: 90%;
    background-color: #044F88;
}
#Project{
    background-color: #1f1f1f;
    padding: 60px 20px;
    text-align: center;
    color: #fff;
}
.projects-container{
    max-width: 1200px;
    max-width: 0 auto;
}
.projects-container h1{
    font-size: 40px;
    margin-bottom: 40px;
    color: #e74c3c;
    text-transform: uppercase;
    font-weight: bold;
}
.projects-list{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}
.project-item{
    color: #444;
    border-radius: 8px;
    padding: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-item:hover{
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
}
.project-item img{
    width: 100%;
    height: 230px;
    border-bottom: 2px solid #e74c3c;
    transition: transform 0.3s ease;
    border-radius: 8px;
}
.project-item img:hover{
    transform: scale(1.03);
}
.project-info{
    padding: 20px;
    text-align: left;
}
.project-info h2{
    font-size: 24px;
    margin-bottom: 15px;
    color: #e74c3c;
    text-align: center;
}
.project-info p{
    font-size: 16px;
    color: #ddd;
    margin-bottom: 10px;
}
.project-links a{
    text-decoration: none;
    color: #e74c3c;
    font-size: 16px;
    margin-left: 120px;
    transition: color 0.3 ease;
}
.project-links a:hover{
    color: #c0392b;
}
.project-links{
    margin-top: 15px;
}
#Contact{
    padding: 50px 20px;
    background-color: #1f1f1f;
    color: #333;
    text-align: center;
}
.contact-container{
    max-width: 1200px;
    margin: 0 auto;
}
.contact-container h1{
    font-size: 40px;
    color: #e74c3c;
    text-transform: uppercase;
}
.contact-content{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}
.contact-info{
    flex: 1;
    min-width: 280px;
    max-width: 550px;
    padding: 30px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 0 auto;
    margin-top: 20px;
}
.contact-info h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2980b9;
}
.contact-info p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.contact-info label{
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
}
.contact-info input, .contact-info textarea{
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
}
.contact-info button{
    padding: 12px 25px;
    background-color: #2980b9;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease,transform 0.3s ease;
}
.contact-info button:hover{
    background-color: #3498db;
    transform: translateY(-5px);
}