* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background-image: url('header.jpg');
    background-size: cover; /* Ensures the image covers the entire navbar */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    color: #fff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
}

.nav-links a:hover {
    color: #3498db;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    background: #fff;
    height: 3px;
    width: 25px;
    margin: 2px 0;
}

.hero {
    background: #3498db;
    height: 400px;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    margin-top: 60px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2c3e50;
    color: #fff;
    text-decoration: none;
    margin: 10px;
    border-radius: 5px;
}

.btn:hover {
    background: #34495e;
}

.section {
    padding: 60px 20px;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #2c3e50;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.skill-category h3 {
    margin-bottom: 10px;
    color: #3498db;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.timeline-item h3 {
    color: #3498db;
    margin-bottom: 10px;
}

.education-item {
    margin-bottom: 20px;
}

form {
    max-width: 600px;
    margin: 20px auto;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form textarea {
    height: 150px;
}

footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: #2c3e50;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* About Section Styles */
.about-container {
    display: flex;
    flex-direction: row; /* Explicitly set to row for side-by-side layout */
    align-items: center; /* Vertically center the content */
    gap: 30px; /* Increased space between image and text */
    margin-top: 20px;
}

.about-left {
    flex: 1; /* Proportional width for image */
    max-width: 10px; /* Limit image width */
}

.profile-img {
    width: 10%;
    height: auto;
    border-radius: 10px; /* Optional: rounded corners */
    object-fit: cover; /* Ensure image fits nicely */
}

.about-right {
    flex: 2; /* Larger width for text */
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 900px) { /* Increased breakpoint for larger screens */
    .about-container {
        flex-direction: column; /* Stack vertically on smaller screens */
        text-align: center;
    }

    .about-left {
        max-width: 30%; /* Full width for image on mobile */
    }

    .about-right {
        margin-top: 20px;
    }
}