:root {
    /* Primary Colors */
    --dark-blue: #243642;
    --teal: #387478;
    --soft-green: #629584;
    --light-mint: #E2F1E7;

    /* Text Colors */
    --text-dark: var(--dark-blue);
    --text-light: var(--light-mint);

    /* Accent Colors */
    --button-bg: var(--teal);
    --button-hover: var(--soft-green);
    --background: var(--light-mint);

    /* Additional Shades */
    --border-color: var(--teal);
    --highlight: var(--soft-green);
    --yellow-highlight: #f0e68c;

    /* General Spacing */
    --gap: 1.6rem;
}

/* General Styles */
html {
    font-size: 16px;
    box-sizing: border-box;
}

* {
    box-sizing: inherit;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    height: 100%;
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: center;
    /* Adjust spacing for the toggle button */
    align-items: center;
    padding: 1rem;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
    background-color: var(--dark-blue);
}

.navbar ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    margin: 0;
    padding: 0;
}

.navbar ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.125rem;
    padding: 0.5rem 1rem;
    transition: text-decoration 0.3s ease;
}

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

/* Social icons positioned to the right */
.social-icons {
    position: absolute;
    right: 1rem;
}

.social-icons a {
    margin-left: 0.9375rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--yellow-highlight);
}

/* Hamburger toggle button */
.navbar-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    margin-right: 1rem;
}

/* Mobile Styles */
@media screen and (max-width: 1000px) {
    .navbar {
        justify-content: space-between;
    }

    .navbar ul {
        display: none;
        /* Hide menu by default */
        flex-direction: column;
        position: absolute;
        top: 3.5rem;
        /* Below the navbar */
        right: 0;
        left: 0;
        background-color: var(--dark-blue);
        padding: 1rem;
        z-index: 5;
    }

    .navbar ul.active {
        display: flex;
        /* Show menu when active */
    }

    .navbar ul li a {
        padding: 1rem;
        text-align: center;
        /* Center align items */
    }

    .navbar-toggle {
        display: block;
        /* Show toggle button */
    }
}

/* Home/Intro Page Styles */
.intro-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: left;
    position: relative;
    z-index: 1;
    background-color: var(--dark-blue);
}

.intro-content {
    display: flex;
    align-items: center;
    padding: 2rem;
    border-radius: 0.625rem;
    gap: 2.5rem;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.circular-image {
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.profile-info {
    width: 40rem;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: var(--text-light);
}

.intro-section h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--highlight);
}

.dynamic-text {
    font-weight: bold;
    font-size: 1.75rem;
    color: var(--text-light);
}

.intro-section p {
    margin: 0.5rem 0;
    font-size: 1.25rem;
}

@media screen and (max-width: 1000px) {
    .intro-section,
        .section {
            height: auto;
            /* Allow content to dictate height */
            min-height: 100vh;
            /* Ensure it covers the viewport if content is minimal */
            padding: 2rem;
        }

    .intro-section {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 2rem;
    }

    .profile-info {
        width: 100%;
    }

    .circular-image {
        width: 15rem;
        height: 15rem;
        margin: 1rem auto;
    }
}

/* Section Layout */
.section {
    text-align: center;
    padding-top: 8rem;
    color: var(--text-light);
}

.section h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--highlight);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section h2 {
    font-size: 2rem;
    color: var(--highlight);
    margin: 2rem 0;
}

.section a {
    color: var(--highlight);
    text-decoration: none;
}

.section a:hover {
    color: var(--yellow-highlight);
}

.section .intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    color: #333;
    padding: 20px 0;
}

/* Skill Card Styles */
.micro-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);
    padding-bottom: 2rem;
}

.micro-card {
    color: var(--text-light);
    background-color: var(--dark-blue);
    width: 8rem;
    height: 8rem;
    padding: 1.6rem 2.4rem;
    border-radius: 1.6rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.micro-card:hover {
    transform: scale(1.1);
    background-color: var(--highlight);
    color: var(--dark-blue);
    font-weight: bold;
}

.micro-card .rot {
    transition: transform 0.5s ease;
}

.micro-card:hover .rot {
    transform: rotate(360deg);
}

.skill-card span {
    font-size: 1.2rem;
    margin-top: 0.8rem;
}

/* Project Timeline Styles */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--teal);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

/* Container around content */
.container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The circles on the timeline */
.container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--light-mint);
    border: 4px solid var(--highlight);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left */
.left {
    left: 0;
}

/* Place the container to the right */
.right {
    left: 50%;
}

/* Add arrows to the left container (pointing right) */
.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

/* Fix the circle for containers on the right side */
.right::after {
    left: -16px;
}

/* The actual content */
.content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
}

.content h3 {
    margin-bottom: 5%;
    color: var(--highlight);
    text-align: center;
}

.content p {
    margin-bottom: 5%;
    color: black;
    text-align: center;
}

.container .content a {
    color: var(--teal);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
}

.container .content a:hover {
    color: var(--soft-green);
    /* Slightly lighter color on hover */
    background-color: rgba(36, 54, 66, 0.1);
    /* Light overlay of --dark-blue */
    border-color: var(--teal);
    /* Visible border to enhance the link appearance */
    text-decoration: underline;
}

.project-img {
    /* height: 10rem; */
    max-width: 45%;
    height: auto;
}

.project-img-full-width {
        /* height: 10rem; */
        max-width: 100%;
        height: auto;
    }

/* Video Embeds for Gymnastics */
.videos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
}

.videos h2 {
    margin: 0;
}

iframe {
    width: 80%;
    max-width: 560px;
    height: 315px;
    border: none;
}

/* Blog */
.intro-text {
    text-align: center;
    color: var(--text-dark);
    /* Matches the primary text color */
    margin-bottom: 20px;
    font-size: 1.1rem;
    /* Slightly larger for readability */
}

.intro-text a {
    color: var(--highlight);
    /* Use highlight color for links */
    text-decoration: none;
    font-weight: bold;
    /* Emphasize the links */
}

.intro-text a:hover {
    color: var(--yellow-highlight);
    /* Use yellow highlight on hover */
    text-decoration: underline;
}

.posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.post {
    background-color: var(--light-mint);
    /* Background matches your theme */
    border: 1px solid var(--teal);
    /* Border matches the accent color */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.post-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.post-content {
    padding: 15px;
}

.post h2 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: var(--dark-blue);
    /* Matches your text-dark variable */
}

.post h2 a {
    text-decoration: none;
    color: var(--text-dark);
    /* Ensures consistent link color */
}

.post h2 a:hover {
    color: var(--highlight);
    /* Highlight color on hover */
}

.post p {
    font-size: 0.95rem;
    margin: 10px 0;
    color: var(--text-dark);
    /* Matches body text color */
}

.post-tags {
    margin-top: 10px;
    font-size: 0.85rem;
}

.post-tags span {
    display: inline-block;
    background-color: var(--button-bg);
    /* Uses button background color */
    color: var(--text-light);
    /* Text light for contrast */
    border-radius: 3px;
    padding: 5px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-weight: bold;
}


/* Media Queries for Responsive Design */
@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }

    .container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .container::before {
        left: 60px;
        border: medium solid var(--text-light);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--text-light) transparent transparent;
    }

    .left::after,
    .right::after {
        left: 15px;
    }

    .right {
        left: 0%;
    }
}