body, h1, h2, p, ul, li, a {
    margin: 0; 
    padding: 0;
    list-style: none;
    text-decoration: none; 
    font-family: 'Open Sans', Arial, sans-serif;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

/************************************** Header Styling ********************************/

header{
    background-color: #2c3e50;
    color: white;
    padding: 30px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0, 2px, 5px rgba(0, 0, 0, 0.2);
}

.nav-bar ul{
    list-style: none;
    display: flex;
    justify-content:center;
    margin: 0;
    padding: 0;
}

.nav-bar li{
    margin: 0 15px;
}

.nav-bar a{
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
    padding: 5px 10px;
    transition: all 0.3s ease; 
}

.nav-bar a:hover{
    background-color: #34495e;
    border-radius: 5px;
    font-size: 1.7rem;
    font-weight: bold;
}


@media (max-width:768px) {
    .nav-bar a{
        font-size: 0.9rem;
    }
    
    .nav-bar a:hover{
        font-size: 1.1rem;
        font-weight: bold;
    }
}

/************************************** Hero Styling ********************************/
#hero{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(to bottom right, #2c3e50, #4ca1af);
    color: white;
}

.hero-content{
    max-width: 800px;
}

.hero-content img{
    width: 400px;
    height: 450px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 5px solid white;
}

.hero-content h1{
    font-size: 2.5rem;
    margin: 20px 0;
    font-weight: bold;
}

.hero-content p{
    font-size: 1.2rem;
    margin: 10px 0 30px;
    font-style: italic;
    color: #ecf0f1;
}

.hero-content .btn{
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: #2c3e50;
    background:white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.hero-content .btn:hover{
    background: #f39c12;
    color: white;
}

@media(max-width:768px){
    #hero{
        padding: 50px 20px;
    }

    .hero-content h1{
        font-size: 2rem;
    }

    .hero-content p{
        font-size: 1rem;
    }
}

/************************************** main sections Styling ********************************/
.section{
    padding: 50px 20px;
    color: #2c3e50;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.odd{
    background: #f7f9fb;
}

.even{
    background: #ffffff;
}

.section h2{
    font-size: 2.5rem;
    color: #4ca1af;
    margin-bottom: 20px;
    font-weight: bold;
}

.section p{
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* About Me Styling*/
.about-photo{
    max-width: 160px;
    border-radius: 50%;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Education Styling*/
.timeline {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin: 20px auto;
    max-width: 800px;
}

.timeline-item {
    position: relative;
    padding: 10px 20px;
    border-left: 4px solid #4ca1af;
    margin-bottom: 20px;
}

.timeline-item h4 {
    font-size: 1.2rem;
    color: #4ca1af;
}

.timeline-item p {
    margin: 5px 0 0;
    font-size: 1rem;
    color: #2c3e50;
}
.education-img{
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#education h3{
    font-size: 1.8rem;
    columns: #34495e;
    margin-top: 30px;
    margin-bottom: 10px;
    text-align: left;
}

#education ul{
    text-align: left;
    margin-top: 10px;
    padding: 0;
    margin-bottom: 10px;
}

#education ul li{
    font-size: 1.1rem;
    line-height: 1.6rem;
    padding-left: 20px;
    position: relative;
}

#education ul li::before {
    content: '🎓';
    color: #4ca1af;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}


#education ul li:hover {
    background-color: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    width: fit-content;
}

@media(max-width:768px){
    #education{
        padding: 30px 10px; 
    }

    #education p{
        font-size:1rem;
    }

    #education h2{
        font-size: 2rem;
    }

    #education h3{
        font-size: 1.5rem;
    }
}

/* Skills Styling*/
.skill-card{
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
}

.skill-card:hover{
    transform: translateY(-5px);
}

.skill-item{
    margin-bottom: 40px;
}

.skill-item h3{
    font-size: 2rem;
    color: #34495e;
    margin-bottom: 20px;
    font-weight: bold;
}

.skill-card p{
    text-shadow: 2px 2px grey;
    font-weight: bold;
}

.stars{
    display: flex;
    font-size: 1.5rem;
}

.stars .fa-star{  
    color: #d3d3d3;
    margin-right: 5px;
}

.stars .checked{
    color: #ffd700;
    margin-right: 5px;
}

.skill-item ul{
    padding: 0;
}

.skill-item li{
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
    max-width: 250px;
}

@media (max-width:768px){
    .skill-item{
        text-align: left;
    }

    .skill-card{
        width: 100%;
    }

    .skill-item ul{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* Projects Styling*/
.project-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    max-width: 350px;
    width: 100%;
}

.project-card:hover{
    transform: translateX(-5px);
}


.project-card img{
    width: 100%;
    border-radius: 8px;
    max-height: 250px;
    object-fit: cover;
}

.project-card h3{
    font-size: 1.8rem;
    columns: #2c3e50;
    margin-top: 20px;
    font-weight: bold;
}

.project-card p{
    font-size: 1rem;
    color: #7f8c8d;
    margin-top: 10px;
    text-align: left;
}

.project-card .tech-stack{
    padding: 0;
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.project-card .tech-stack li{
    font-size: 0.9rem;
    background: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
}

.project-card a.btn{
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: auto;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.project-card a.btn:hover{
    background:#c0392b;
}

#project-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

@media(max-width:768px){
    .project-card{
        width: 100%;
    }
}

/* Courses & Certificates */
.course-card{
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease;
}


.course-card:hover{
    transform: translateX(-5px);
}

.course-card img{
    width: 100%;
    border-radius: 8px;
    max-height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
}


.course-card h3{
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.course-card p{
    font-size: 1rem;
    color: #7f8c8d;
}


.course-card .btn{
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.course-card .btn:hover{
    background-color: #2980b9;
}


.courses-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

@media(max-width: 768px){
    .course-card{
        width: 100%;
    }
}


/* Contacts Styling */
#contact p{
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 30px;
    text-align: center;
}

.contact-links{
    padding: 0;
    margin-bottom: 40px;
}

.contact-links li{
    font-size: 1.2rem;
    color: #34495e;
    margin-bottom: 10px;
}

.contact-links a{
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-links a:hover{
    color: #2980b9;
}

.linkedin-link i{
    margin-right: 8px;
}



@media(max-width: 768px){
    .contact-links li{
        font-size: 1rem;
    }
}


/************************************** Footer Styling ********************************/

footer{
    background-color: #34495e;
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 1rem;
    position: relative;
}

footer p{
    margin-top: 20px;
}


#socials{
    margin-bottom: 20px;
}

.social-links{
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links li{
    display: inline;
}

.social-links a{
    font-size: 2rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover{
    color: #3898db;
}

.back-to-top{
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: #3898db;
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 1.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.back-to-top:hover{
    background: #2980b9;
}

.back-to-top i{
    font-size: 1.5rem;
}

@media(max-width: 768px){
    .social-links{
        gap: 15px;
    }

    footer p{
        font-size: 0.9rem;
    }
}
