/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #3c3744;
    color: #3c3744;
}

/* Header / Navbar */
.header {
    background-color: #3c3744;
    padding: 1rem 0;
    position: fixed;
    z-index: 10;
    width: 100%;
}

.navbar {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #FBFFF1;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Hamburger menu */
#menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* Navigation links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff6347;
}

/* Mobile Responsive Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #3c3744;
        flex-direction: column;
        width: 200px;
        text-align: center;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease-out;
        border-radius: 0 0 8px 8px;
    }

    /* When checkbox is checked, show nav links */
    #menu-toggle:checked + .hamburger + .nav-links {
        max-height: 300px; /* enough to show all links */
        transition: max-height 0.4s ease-in;
    }
}

/* Hero Section */
.hero {
    min-height: 90vh;
    background: linear-gradient(to right, #3066BE, #090C9B);
    color: #b4c5e4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 10rem; /* Add extra padding to the top to account for the fixed header */
    position: relative;
    z-index: 1; /* Ensure it's above the background, but below the header */
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto; /* Ensure the height adjusts automatically */
    object-fit: contain; /* Prevent cropping and maintain full visibility */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-text {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    background-color: #ff6347;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #e5533d;
}

/* Mobile Responsive Hero */
@media (max-width: 768px) {
    .hero {
        padding-top: 8rem; /* Reduce the padding on mobile */
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

   .hero-image img {
        max-width: 100%; /* Ensure image takes full width on mobile */
        height: auto; /* Allow the height to adjust based on width */
        object-fit: contain; /* Ensure the image doesn't get cropped */
    }
}

/* About Section */
.about, .projects, .contact {
    padding: 2% 4%;
    text-align: center;
    background-color: #3C3744;
    color: #fff;
}

.about p {
    padding: 2% 8%; /* Add more padding to the text */
}
@media (max-width: 768px) {
    .about {
        padding: 4rem 2rem; /* More padding for mobile */
        min-height: 60vh; /* Ensure enough height for the content */
    }

    .about p {
        padding: 2% 8%; /* Add some space around the text */
    }

    .about h2 {
        font-size: 2rem; /* Adjust h2 font size for smaller screens */
    }
}
/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack project cards vertically */
    gap: 2rem;
    margin-top: 2rem;
    padding: 3.5rem;
}

.project-card {
    display: flex;
    gap: 1.5rem;
    background: linear-gradient(to right, #3066BE, #090C9B);
    padding: 3.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap; /* Ensure content wraps appropriately */
    width: 100%;
    text-align: center;
}

.project-card-content {
    display: flex;
    flex-direction: row; /* Image on the left, text on the right */
    gap: 1rem;
    align-items: flex-start; /* Align items to the top */
    width: 100%;
}

.project-image {
    width: 50%; /* Take up half of the card’s width */
    height: auto; /* Let the image height adjust automatically */
    object-fit: cover; /* Ensure the image maintains aspect ratio and covers the area */
    border-radius: 8px;
}

.project-text {
    flex: 1; /* Take up remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically */
    color: #b4c5e4; /* Set text color to dark gray for better contrast */
}

.project-text h3 {
    margin-bottom: 1rem;
}

.project-text p {
    margin-bottom: 1rem;
}

.project-text a {
    color: #fff;
    text-decoration: none;
}

.project-text a:hover {
    text-decoration: underline;
}

.projects h1 {
    font-size: 2.5rem; /* Adjust the font size */
    font-weight: bold;
    color: #fff /* Set the text color */
    margin-bottom: 2rem;
    text-align: center; /* Center the title */
    letter-spacing: 1px; /* Optional: Add letter spacing */
}

/* Button Style */
.btn {
    background-color: #ff6347;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s;
    display: inline-block; /* Ensure it behaves like a button */
}

.btn:hover {
    background-color: #e5533d;
}

/* Specific styling for project anchors */
.project-text a.btn {
    margin-top: 1rem; /* Add spacing above the button */
    display: inline-block; /* Make the link behave like a button */
}


/* Mobile Responsive: Stack content vertically */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr; /* Stack project cards vertically */
        gap: 2rem;
        padding: 1rem;
    }

    .project-card {
        flex-direction: column; /* Stack image and text vertically */
        padding: 1rem; /* Adjust padding to make cards less crowded */
        width: 100%; /* Ensure the cards take full width */
    }

    .project-card-content {
        flex-direction: column; /* Stack content vertically */
        gap: 1rem;
    }

    .project-image {
        width: 100%; /* Full width on mobile screens */
        height: auto; /* Let the image height adjust automatically */
        object-fit: cover; /* Ensure the image maintains aspect ratio */
        border-radius: 8px;
    }

    .project-text {
        text-align: center; /* Center the text for better readability */
        padding: 0 1rem;
    }

    .project-text h3 {
        font-size: 1.5rem; /* Adjust font size for mobile screens */
    }

    .project-text p {
        font-size: 1rem; /* Adjust font size for mobile screens */
    }

    .btn {
        width: 100%; /* Make the button full width on mobile */
        margin-top: 1rem; /* Add some space above the button */
    }
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(to right, #3066BE, #090C9B);
    color: #fff;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    background-color: #3c3744;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.contact-form label {
    font-size: 1rem;
    color: #fff;
    text-align: left;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-top: 0.5rem;
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing of the textarea */
}

.contact-form button {
    background-color: #ff6347;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s;
    cursor: pointer;
    margin-top: 1rem;
}

.contact-form button:hover {
    background-color: #e5533d;
}

/* Footer */
.footer {
    background-color: #3c3744;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

.experience {
  padding: 4rem 2rem;
  background-color: #3C3744;
  color: #fff;
  text-align: center;
}

.experience h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #fff;
}

.experience-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.experience-item {
  margin-bottom: 2rem;
  background: linear-gradient(to right, #3066BE, #090C9B);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.experience-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #b4c5e4;
}

.exp-date {
  font-style: italic;
  margin-bottom: 0.75rem;
  color: #ddd;
}

.experience-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
}

