@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e293b;
    --bg-color: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family:'Poppins',sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--bg-color);
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width:100%;
    display: block;
}
.hamburger {
    display: none;
    cursor: pointer;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary-color);
}
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20%;
    max-width: 1200px;
    margin: 0 auto;
}
nav h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}
nav ul {
    display: flex;
    gap: 20px;
}
nav a:hover {
    color: var(--primary-color);
}
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
#hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}
#hero h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: #555;
}
.btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}
.btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px);
}
section {
    padding: 80px 10%;
}

section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}
#about {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--white);
}

#about img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}
.about-text p{
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 20px;
}
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.skill-item {
    background-color: var(--white);
    padding: 15px 30px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor:default;
}
.skill-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px, 1fr));
    gap: 30px;
}
.project-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}
.project-card:hover {
    transform: translateY(-10px);
}
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.project-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.5rem;
}
.project-card p{
    padding: 0 20px 20px;
    color: #666;
    font-size: 0.95rem;
}
.project-card a {
    display: block;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px;
    margin: 0 20px 20px;
    border-radius: 5px;
}
.project-card a:hover {
    background-color: var(--primary-color);
}
#contact {
    background-color: #f1f5f9;
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
input, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: var(--transition);
}
input:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(37,99,235,0.2);
}
form button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}
form button:hover {
    background-color: #1d4ed8;
}
.social-links {
    text-align: center;
    margin-top: 50px;
}
.social-links a {
    font-size: 1.2rem;
    margin: 0 15px;
    color: #555;
    transition: var(--transition);
}
.social-links a:hover {
    color: var(--primary-color);
}
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}
.hamburger {
    display: none;
    cursor: pointer;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary-color);
}

@media (max-width:768px){
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2){
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }
    nav ul {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    nav ul li {
        margin: 16px 0;
    }
    nav ul.active {
        left: 0;
    }
    #hero h1 {
        font-size: 2rem;
    }
    #about {
        flex-direction: column;
        text-align: center;
    }
    #about img {
        width: 200px;
        height: 200px;
    }
    section {
        padding: 60px 5%;
    }
}

