:root {
    --text-color: #1a1c20;
    --link-color: #4a76ee;
    --background-color: #eeeff1;
    --section-bg-color: #ffffff;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", "Poppins", sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

/*Nav bar*/
nav {
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    align-items: center;
    height: 80px;
    background-color: var(--section-bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .left a {
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
}

nav .right a {
    color: var(--text-color);
    margin: 0 10px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
}

nav .right a:hover {
    background-color: var(--background-color);
}

nav .right a:last-child {
    color: var(--background-color);
    background-color: var(--text-color);
    padding: 8px 15px;
    border-radius: 5px;
}

nav .right a:last-child:hover {
    background-color: #333;
}

nav .right a span {
    margin-left: 5px;
}

/* Hero section*/
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    margin: 50px 0;
    gap: 40px;
    margin-bottom: 100px;
    background-color: var(--section-bg-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .text {
    flex: 5;
}

.hero-section .text h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.hero-section .text p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #555;
}

.hero-section .text .links {
    margin: 25px 0;
}

.hero-section .text .links a {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--link-color);
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.hero-section .text .links a:hover {
    color: var(--text-color);
    background-color: var(--link-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 118, 238, 0.3);
}

.hero-section .headshot {
    flex: 2;
    display: flex;
    justify-content: right;
}

.hero-section .headshot img {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 5px solid var(--link-color);
}

/* section2: skills*/
.skills-section {
    padding: 50px;
    margin-bottom: 100px;
    background-color: var(--section-bg-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.skills-section h2 {
    text-align: center;
    font-size: 35px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.skills-section .text {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.skills-section .cells {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.skills-section .cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 10px;
    width: 150px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.skills-section .cell:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skills-section .cell img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.skills-section .cell span {
    font-weight: 600;
    font-size: 18px;
}

/* Projects Section */
.projects-section {
    padding: 50px;
    margin-bottom: 100px;
    background-color: var(--section-bg-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.projects-section h2 {
    text-align: center;
    font-size: 35px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.projects-section .text {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.card p {
    margin-bottom: 15px;
    color: #555;
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 5px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .project-image img {
    transform: scale(1.05);
}

/* Video Section */
.video-section {
    padding: 50px;
    margin-bottom: 100px;
    background-color: var(--section-bg-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.video-section h2 {
    text-align: center;
    font-size: 35px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.video-section .text {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.video-container video {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Goals Section */
.goals-section {
    padding: 50px;
    margin-bottom: 100px;
    background-color: var(--section-bg-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.goals-section h2 {
    text-align: center;
    font-size: 35px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.goals-section .text {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.goals-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.goal-item {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.goal-item h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid var(--link-color);
    padding-bottom: 10px;
}

.goal-item ul {
    list-style-type: none;
}

.goal-item li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.goal-item li:before {
    content: "•";
    color: var(--link-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Contact Section */
.contact-section {
    padding: 50px;
    margin-bottom: 100px;
    background-color: var(--section-bg-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-section h2 {
    text-align: center;
    font-size: 35px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact-section .text {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-section .group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

.contact-info h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--link-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--text-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--text-color);
    transform: translateY(-3px);
}

.contact-section form {
    display: flex;
    flex-direction: column;
}

.contact-section label {
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-section input,
.contact-section textarea {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
}

.contact-section button {
    padding: 12px 20px;
    background-color: var(--link-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-section button:hover {
    background-color: #3a65d6;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* Responsive Design */
@media(max-width: 1024px) {
    .hero-section {
        padding: 40px;
    }

    .skills-section,
    .projects-section,
    .video-section,
    .goals-section,
    .contact-section {
        padding: 40px;
    }

    .contact-section .group {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media(max-width: 840px) {
    .hero-section .text h2 {
        font-size: 35px;
    }

    nav {
        padding: 0 30px;
    }

    .hero-section,
    .skills-section,
    .projects-section,
    .video-section,
    .goals-section,
    .contact-section {
        padding: 30px;
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media(max-width: 740px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-section .headshot img {
        width: 250px;
        height: 250px;
    }

    .goals-list {
        grid-template-columns: 1fr;
    }

    .project-cards {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 600px) {
    nav {
        padding: 0 20px;
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }

    nav .left {
        margin-bottom: 15px;
    }

    nav .right a span {
        display: none;
    }

    nav .right a:last-child {
        color: var(--text-color);
        background-color: transparent;
        padding: 5px 10px;
    }

    .hero-section {
        padding: 20px;
        margin: 30px 10px;
    }

    .hero-section .text h2 {
        font-size: 28px;
    }

    .skills-section,
    .projects-section,
    .video-section,
    .goals-section,
    .contact-section {
        padding: 20px;
        margin-left: 10px;
        margin-right: 10px;
        margin-bottom: 50px;
    }

    .skills-section .cells {
        gap: 15px;
    }

    .skills-section .cell {
        width: 120px;
        padding: 15px;
    }

    .skills-section .cell img {
        width: 60px;
        height: 60px;
    }
}