/* General Body & Typography */
:root {
    --primary-bg-color: #1a1a2e; /* Dark background */
    --secondary-bg-color: #16213e;
    --accent-color: #e94560; /* Reddish accent */
    --text-color: #e0e0e0;
    --light-text-color: #b0b0b0;
    --border-color: #0f3460;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    font-size: 2.5em;
    padding-top: 60px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    width: 100%; /* To center the pseudo-element */
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: lighten(var(--accent-color), 10%); /* Adjust based on your color */
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: darken(var(--accent-color), 10%); /* Adjust as needed */
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: var(--secondary-bg-color);
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8em;
    color: var(--accent-color);
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5em;
    margin: 0;
    color: var(--text-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light-text-color);
    font-weight: 600;
    font-size: 1.1em;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px); /* Adjust based on header height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('hero-bg.jpg') no-repeat center center/cover; /* Add a background image */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Overlay for readability */
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
}

.hero-content .greeting {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--light-text-color);
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(var(--accent-color-rgb), 0.5); /* Assuming accent-color-rgb is defined */
}

.hero-content .job-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--secondary-bg-color);
}

.about-content {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.profile-image {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
}

.profile-image img {
    width: 100%;
    border-radius: 50%;
    border: 5px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
}

.bio-skills {
    flex: 2;
    min-width: 300px;
}

.bio {
    font-size: 1.1em;
    color: var(--light-text-color);
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.skills-list li {
    background-color: var(--primary-bg-color);
    color: var(--accent-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.skills-list li:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background-color: var(--primary-bg-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: var(--secondary-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.project-card h3 {
    color: var(--accent-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.project-card p {
    color: var(--light-text-color);
    margin-bottom: 20px;
}

.project-links a {
    margin-right: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: white;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--secondary-bg-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--primary-bg-color);
    color: var(--text-color);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.3);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn {
    align-self: flex-start; /* Aligns button to the left */
}

.social-links {
    text-align: center;
    margin-top: 30px;
}

.social-links a {
    display: inline-block;
    margin: 0 15px;
    transition: transform 0.3s ease;
}

.social-links a img {
    width: 40px;
    height: 40px;
    filter: invert(80%); /* Makes white icons visible on dark background */
    transition: filter 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.social-links a:hover img {
    filter: invert(100%) drop-shadow(0 0 8px var(--accent-color));
}

/* Footer */
footer {
    background-color: var(--primary-bg-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
}

/* Mobile Responsiveness (Media Queries) */
@media (max-width: 768px) {
    h1 {
        font-size: 3em;
    }

    .hero-content .job-title {
        font-size: 1.5em;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 80px; /* Adjust based on header height */
        background-color: var(--secondary-bg-color);
        height: calc(100vh - 80px); /* Full height minus header */
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 50px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }

    .nav-links li {
        opacity: 0;
        margin: 25px 0;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        margin-bottom: 30px;
    }

    .skills-list {
        justify-content: center;
    }

    .project-card {
        padding: 20px;
    }

    .project-links {
        display: flex;
        justify-content: center;
    }

    .social-links a {
        margin: 0 10px;
    }
}

/* Burger Animation */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Nav Link Fade Animation */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}