* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
}

header {
    position: sticky;
    top: 0;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    height: 20vh;
    width: 99vw;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-content: center;
    justify-items: center;
    flex: 0 0 10%;
    max-height: 80%;
    margin: 10px;
    border: 1px solid white;
    border-radius: 50%;
}
.navbar{
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.navbar ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 20px;
}

.nav-link {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 1.25em;
}

nav a {
    padding: 8px 12px;
    background: transparent;
    transition:  0.3s ease
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 115%;
}


main {
    background-color: #0f172a;
    color: #e5e7eb;
    line-height: 1.6;
    padding-left: 20px;
    padding-right: 20px;
}

h1 {
    text-align: center;
    padding-top: 24px;
    background-color: #0f172a;
}

.tech-stack {
    display: block;
    padding-top: 12px;
    text-align: center;
    font-size: 1.2em;
    padding-bottom: 24px;
}

.welcome-intro {
    display: flex;
    flex-wrap: wrap;
    padding-top: 60px;
    font-size: 1.25em;
    text-align: left;
}

.welcome {
    display: flex;
    flex-wrap: wrap;
    padding-top: 0px;
    font-size: 1.25em;
    text-align: left;
}

#introduction {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
}

.profile-photo {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-items: center;
    padding-top: 48px;
    min-width: 400px;
    max-width: 400px;
    height: auto;
    max-height: 70%;
    padding-left: 20px;
    margin-right: 48px;
    border-radius: 25%;
}

.portfolio-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.social-buttons img {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-end;
    max-width: 150px;
    height: auto;
    padding-top: 48px;
    margin-right: 48px;
}

.social-buttons img:hover {
    transform: scale(0.85);
    transition: 0.3s ease;
}



#impact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-top: 72px;
}

.impact-title {
    font-size: 3.5em;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 24px;
    width: 100%;
}

.real-tools-paragraph{
    font-size: 1.5em;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 24px;
}

.real-people-paragraph, .real-impact-paragraph {
    font-size: 1.5em;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 24px;
}

.stand-out-text {
    font-size: 3em;
    padding-right: 20px;
}

#experience {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-top: 72px;
}

.experience-header {
    font-size: 3.5em;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 24px;
    width: 100%;
}

.tech-experience-header, .ai-experience-header, .leadership-experience-header {
    font-size: 2em;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 64px;
    width: 100%;
}

.tech-experience-paragraph, .leadership-experience-paragraph {
    font-size: 1.5em;
    text-align: left;
    padding-top: 24px;
    padding-bottom: 48px;
    padding-left: 12px;
}

.experience-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    margin-top: 20px;
}

.experience-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 280px;
    min-width: 260px;
    border: 2px solid #4b5563;
}

.experience-class {
  list-style-position: inside;
  padding-left: 0;
  margin: 0;
  text-align: center;
}

.subheader {
    padding-top: 48px;
}

#projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-top: 72px;
}

.project-header {
    font-size: 3.5em;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 64px;
    width: 100%;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: stretch;
    align-items: start;
}

.project {
    position: relative;
    border: 5px solid #4b5563;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    min-height: 280px;
    min-width: 200px;
}

.project-title {
    font-size: 1.5em;
    margin-bottom: 8px;
    text-align: center;
    background-color: #0f172a;
}

.project-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.project-text {
    position: absolute;
    inset: 0;
    padding: 24px;
    background: rgba(15, 23, 42, 0.93);
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 12px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project:hover .project-image,
.project:active .project-image {
    opacity: 0;
}

.project:hover .project-text,
.project:active .project-text {
    opacity: 1;
}

.project > a {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 1;
}

.project > a .project-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-title {
    font-size: 2em;
    margin-bottom: 8px;
    text-align: center;
}

.more-projects {
    display: block;
    text-align: center;
    font-size: 1.25em;
    padding-top: 24px;
}

.more-projects img{
    max-width: 125px;
    height: auto;
    padding-left: 8px;
}

.more-projects img:hover {
    transform: scale(0.85);
    transition: 0.3s ease;
}

.project-description {
    font-size: 1.35em;
    text-align: center;
    padding-top: 12px;
}

.contact-header {
    font-size: 3.5em;
    text-align: center;
    padding-top: 64px;
    padding-bottom: 48px;
    width: 100%;
}

.contact-paragraph {
    font-size: 1.5em;
    text-align: left;
    padding-top: 12px;
    padding-bottom: 24px;
    padding-left: 12px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 80%;
    margin: 0 auto;
    padding-top: 24px;
}

.contact-form-legend {
    font-size: 2.5em;
    text-align: center;
    padding-bottom: 12px;
}

.contact-fieldset {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
}

.form-group input {
    padding: 8px 12px;
    border: 1px solid #64748b;
    border-radius: 4px;
    background-color: #1e293b;
    color: #e5e7eb;
    font-size: 1em;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.submit-button {
    align-self: center;
    margin-top: 16px;
    padding: 14px 48px;
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.submit-button:hover {
    background-color: #2563eb;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

#footer {
    background-color: #0f172a;
    color: #e5e7eb;
    text-align: center;
    padding-top: 36px;
}

section {
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

@media screen and (max-width: 800px) {
    header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        min-height: unset;
        padding: 12px 16px;
    }

    .logo {
        display: block;
        max-width: 140px;
        height: auto;
        margin: 0 auto 8px auto;
        flex: none;
    }

    .navbar {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex: none;
    }

    .navbar ul {
        justify-content: center;
        align-items: center;
        gap: 10px 14px;
    }

    .nav-link {
        font-size: 1rem;
        padding: 6px 10px;
        align-items: center;
    }

    #introduction {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        width: 100%;
    }

    .profile-photo {
        display: block;
        width: 100%;
        max-width: 260px;
        min-width: auto;
        height: auto;
        margin: 0 auto;
        padding-left: 0;
    }

    .portfolio-intro {
        width: 100%;
        align-items: center;
        font-size: 0.75 em;
    }

    .social-buttons {
        justify-content: center;
        gap: 12px;
        width: 100%;
    }

    .social-buttons img {
        max-width: 90px;
        margin: 0;
        padding-top: 20px;
    }

    .real-impact-paragraph, .real-people-paragraph, .real-tools-paragraph {
        font-size: 1.25em;
        padding-left: 0;
        text-align: center;
    }

    .stand-out-text {
        display: block;
        font-size: 3em;
        padding-right: 10px;
    }

    .experience-container {
        flex-direction: column;
        align-items: center;
        width:99vw;
        height: auto;
    }

    .experience-content {
        width: 100%;
        min-width: auto;
        flex: none;
        width: 99vw;
        height: auto;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .project {
        aspect-ratio: 9 / 16;
        min-height: 360px;
    }

    .project-description {
    font-size: 1.35em;
    text-align: center;
    padding-top: 12px;
}

    .form-columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .submit-button {
        width: 90%;
        padding: 12px 24px;
        font-size: 1em;
    }
}
