/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
    scroll-behavior: smooth;
}

/* Header */
header {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo{
    width: 120px;
    height: 120px;
    border-radius: 100%;
}
header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}
header nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}
header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    opacity: 0.8;
}
header nav ul li a:hover {
    color: #f8f9fa;
    text-decoration: none;
    background-color: burlywood;
    padding: 10px;
    border-radius: 20px;
}
.home{
    background-color: #333;
    padding: 10px;
    border-radius: 10px;
}
/*Humburger section*/
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.hamburger div {
    width: 25px;
    height: 3px;
    background: #fff;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    nav ul {
        display: none;
    }
    nav ul.mobile-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        right: 0;
        background: #2575fc;
        width: 50%;
        padding: 10px 0;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }
    nav ul.mobile-nav.active {
        display: flex;
    }
    nav ul.mobile-nav li {
        text-align: center;
        margin: 10px 0;
    }
    
}



/* Hero Section */
.hero {
    background: linear-gradient(to bottom, #2575fc, #6a11cb);
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.mine{
    width: 300px;
    height: 350px;
    box-shadow: 10px 10px 0 #333;
    
}
.mine:hover{
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
section div ul{
    display: flex;
    gap: 30px;
    list-style: none;
}
.name{
    margin-top:55px;
    color: chartreuse;
    text-shadow:  3px 2px 0 black;
    font-size: 30px;
    font-weight: 900;
}
.typing-effect{
    font-size: 2rem;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #fff;
    animation: typing 5s steps(20,end) infinite, blink 0.6s step-end infinite;
}

@keyframes typing {
    0% { width: 0; }           
    80% { width: 20ch; }       
    100% { width: 20ch; }      
}

@keyframes blink {
    50% { border-color: transparent; } /*effect of cursor blinking*/
}
.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}
@media (max-width: 768px){
    section div ul{
        display: inline-block;
    }
}

/* Section Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px;
}
section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}
section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2575fc;
    margin: 0.5rem auto;
}

/* About Section */
#about p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Skills Section */
.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.skill p {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.progress {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.bar.html { background: #6a11cb; }
.bar.css { background: #2575fc; }
.bar.javascript { background: #f7df1e; }
.bar.python { background: #4caf50; }
.bar.c { background: #e91e63; }
.bar.m { background: #1a0109; }

/* Education Section */
#education p {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}
.download-btn {
    display: inline-block;
    background: #2575fc;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    
}
.download-btn:hover {
    background: #6a11cb;
}

/* Projects Section */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;

}
.project-list li {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    overflow: hidden;
}
.project-list li img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 8px;
}
.project-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.project-list h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}
.project-list p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}
.project-list a {
    color: #2575fc;
    text-decoration: none;
    font-weight: 500;
}
.project-list a:hover {
    text-decoration: underline;
}

/* Contact Section */
#contact {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

#contact h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

#contact p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
}

#contact .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

#contact label {
    display: block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #147fd6;
    border-radius: 5px;
    box-sizing: border-box;
}

#contact button.btn {
    background-color: #2575fc;
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact button.btn:hover {
    background-color: #6a11cb;
}
/*section animation fades**/
section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-in-out;
}
section.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 4rem;
    height: auto;
}
.follow{
    font-style: italic;
}
footer p {
    font-size: 0.9rem;
    
}
.copy{
    margin-top: 30px;
}
/***Social media icons with links*****/
footer .socials {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
footer .socials img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
    border-radius: 100%;
}
footer .socials img:hover {
    transform: scale(1.2);
}

