:root {
    --primary-color: #3498db; 
    --secondary-color: #2ecc71; 
    --accent-color: #e74c3c; 
    --text-color: #34495e; 
    --light-text-color: #ecf0f1; 
    --background-light: #f8f9fa; 
    --background-dark: #2c3e50; 
    --border-color: #dfe6e9; 
    --card-background: #ffffff; 
}

body {
    font-family: 'Open Sans', sans-serif; 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--background-light);
    color: var(--text-color);
    line-height: 1.7;
}
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Montserrat:wght@500;700&display=swap');

header {
    background-color: var(--background-dark);
    color: var(--light-text-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo a {
    color: var(--light-text-color);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light-text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 28px;
    height: 3px;
    background-color: var(--light-text-color);
    margin: 6px;
    transition: all 0.3s ease;
}

.hero-section {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(52, 152, 219, 0.8)), url('hero_background.jpg') no-repeat center center/cover;
    color: var(--light-text-color);
    text-align: center;
    padding: 120px 20px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 40px;
    max-width: 800px;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px; 
    font-size: 1.2rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background-color: #c0392b; 
    transform: translateY(-3px);
}

section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--card-background);
    border-bottom: 1px solid var(--border-color);
}

section:last-child {
    border-bottom: none;
}

h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    margin-bottom: 60px;
    color: var(--text-color);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.about-content {
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    justify-content: center;
    gap: 50px;
    text-align: left;
}

.about-content img {
    min-width: 250px; 
    max-width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--primary-color);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.about-content img:hover {
    transform: scale(1.03);
}

.about-content p {
    flex: 1;
    min-width: 300px; 
    max-width: 700px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.skill-item {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.skill-item h3 {
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.skill-item p {
    color: #666;
    font-size: 1.05rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    background-color: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.18);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block; 
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card h3 {
    padding: 20px;
    margin-top: 0;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
}

.project-card p {
    padding: 0 20px 20px;
    font-size: 1.05rem;
    color: #666;
}

.project-links {
    padding: 0 20px 25px;
    display: flex;
    gap: 15px;
}

.project-links a {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.project-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-section {
    text-align: center;
    background-color: var(--background-light); 
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 700px;
    margin: 30px auto;
    padding: 40px;
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.05rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    border-radius: 8px; 
}


footer {
    background-color: var(--background-dark);
    color: var(--light-text-color);
    text-align: center;
    padding: 25px 0;
    font-size: 1rem;
    border-top: 5px solid var(--primary-color); 
}


@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-content p {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 2.8rem;
    }
    .about-content img {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background-color: var(--background-dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%; 
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
        padding-top: 7rem; 
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        opacity: 0;
        margin: 25px 0;
    }

    .nav-links a {
        font-size: 1.3rem; 
    }

    .burger {
        display: block;
    }

    .hero-section {
        padding: 80px 20px;
        min-height: 450px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    section {
        padding: 60px 15px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .skills-grid, .projects-grid {
        grid-template-columns: 1fr;
    }

    .skill-item, .project-card {
        padding: 25px;
    }

    .project-card img {
        height: 200px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .social-links {
        flex-wrap: wrap; 
        gap: 20px;
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}