*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body, html{
    scroll-behavior: smooth;
    background-color: #F8FAFC;
}
nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: #1E293B;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav h1{
    color: rgb(19, 216, 69);
    font-size: 1.5rem;
}
nav ul{
    display: flex;
    list-style: none;
    gap: 20px;
}
nav ul li a{
    color: white;
    padding: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
nav ul li a:hover{
    color: rgb(17, 226, 63);
    border-bottom: 2px solid rgb(17, 226, 63);
}
section{
    padding: 80px 10%;
}
h2{
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #1E293B;
}

/* Hero Section */
.hero{
    background: #F8FAFC;
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}
.hero .text{
    flex: 1;
    line-height: 1.8;
}
.hero .text h2{
    text-align: left;
    font-size: 48px;
    margin-bottom: 10px;
}
.hero .text h3{
    color: #2563EB;
    margin-bottom: 15px;
}
.hero .text p{
    margin-bottom: 25px;
    color: #475569;
}
.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    background: rgb(17, 226, 63);
    border: none;
    cursor: pointer;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.hero-btn:hover{
    background: rgb(19, 216, 69);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(19, 216, 69, 0.3);
}
.hero img{
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #2563EB;
    transition: all 0.3s ease;
}
.hero img:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* About Section */
#about{
    background: white;
    text-align: center;
}
#about p{
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.8;
    font-size: 18px;
    color: #475569;
}

/* New Skills Layout styles */
#skills {
    background: #F8FAFC;
    padding: 80px 10%;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.skill-box:hover {
    transform: translateY(-3px);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: #1E293B;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* The grey track background */
.progress-bar {
    width: 100%;
    height: 10px;
    background: #E2E8F0;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #2563EB; 
    border-radius: 5px;
    transition: width 1s ease-in-out;
}


@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr; 
    }
}

/* Projects Section */
#projects-section {
    background: white;
}
.projects{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.projects .card{
    background: #F8FAFC;
    color: #1E293B;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}
.projects .card:hover{
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}
.projects .card h3 {
    margin-bottom: 12px;
}
.projects .card p.para{
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 400;
    color: #475569;
    line-height: 1.5;
}
.project-btn{
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    background: #2563EB;
    color: white;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}
.project-btn:hover{
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* Contact Section */
.contact{
    background: #F8FAFC;
    text-align: center;
}
.contact p{
    margin-bottom: 30px;
    color: #475569;
}
.contact form{
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.contact form input,
.contact form textarea{
    padding: 12px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}
.contact form input:focus,
.contact form textarea:focus {
    border-color: #2563EB;
}
.contact form button{
    padding: 12px;
    background: #1E293B;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.contact form button:hover{
    background: rgb(19, 216, 69);
    transform: translateY(-3px);
}

/* Footer */
footer{
    background: #1E293B;
    color: #94A3B8;
    text-align: center;
    padding: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav{
        padding: 20px;  
    }
    nav h1 {
        font-size: 1.2rem;
    }
    nav ul li a{
        padding: 5px;
        font-size: 14px;
    }
    .hero{
        flex-direction: column-reverse;
        padding: 40px 20px;
        text-align: center;
    }
    .hero .text h2{
        text-align: center;
        font-size: 32px;
    }
    .hero img{
        width: 240px;
        height: 240px;
    }
    section {
        padding: 60px 20px;
    }
    .contact form {
        padding: 20px;
    }
}