/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Work Sans", serif;
    background-color: #111;
    color: white;
    text-align: center;
    padding-top: 80px;
    /* Extra space to prevent content from being hidden behind the nav */
    padding-bottom: 80px;
    /* Extra space to prevent content from being hidden behind the footer */
}

section {
    scroll-margin-top: 80px;
    /* Adjust to match your nav height */
}

/* Navigation Bar */
nav {
    background-color: #008c8c;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    z-index: 1000;
    height: 60px;
}

nav>div {
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    padding: 0;
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    display: inline-block;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: center;
    flex-direction: column;
    justify-content: center;
    height: 80vh;
    padding: 20px;
    background-color: #222;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    margin-bottom: 20px;
    align-items: flex-start;
    transition: filter 0.3s ease;
}

.profile-pic:hover {
    filter: grayscale(100%);
}

.hero-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    align-items: flex-end;
}

.hero-content p {
    font-size: 16px;
    max-width: 600px;
    line-height: 1.6;
    align-items: flex-end;
}

/* Social Media Links */
.social-links {
    margin-top: 20px;
    align-items: flex-end;
}

.social-links a {
    margin: 0 10px;
}

.social-links img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.social-links img:hover {
    transform: scale(1.25);
}

/* Resume Section */
.resume {
    text-align: center;
    padding: 50px 20px;
    background-color: #222;
}

.resume h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.resume p {
    font-size: 16px;
    margin-bottom: 20px;
}

.resume-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    /* Increased padding for better spacing */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    text-align: center;
    /* Center aligns button */
}

.resume-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #008c8c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
    margin-bottom: 15px;
    /* Adds spacing below button */
}

.resume-button:hover {
    background-color: #008c8c66;
}

.resume-container iframe {
    display: block;
    width: 100%;
    height: 600px;
    border: none;
    margin-top: 10px;
    /* Adds spacing between button and iframe */
}

/* Projects Section */
.projects {
    text-align: center;
    padding: 50px 20px;
    background-color: #222;
}

.projects h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: stretch; /* Ensures all cards are the same height */
}

.project-card {
    background-color: #333;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column; /* Ensures a vertical layout */
    height: 420px; /* Set a fixed height for all cards */
}

.project-card img {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    object-fit: contain; /* Ensures the whole image appears without distortion */
    background: transparent; /* Removes any forced background color */
}

.project-card h3 {
    margin: 15px 0 10px;
    font-size: 20px;
    min-height: 50px; /* Ensures titles align across all cards */
}

.project-card p {
    flex-grow: 1; /* Pushes content down while keeping buttons aligned */
    font-size: 14px;
    line-height: 1.4;
    color: #ddd;
    min-height: 60px; /* Ensures text starts at the same position */
}

.project-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: #008c8c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease-in-out;
    margin-top: auto; /* Ensures button stays at the bottom */
}

.project-card:hover {
    transform: scale(1.05);
}

.project-link:hover {
    background-color: #008c8c66;
}

/* Footer */
footer {
    background-color: #008c8c;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 5%;
    box-sizing: border-box;
}

.copyright {
    margin: 0;
}

.back-to-top {
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.back-to-top:hover {
    text-decoration: underline;
}