/* Menu Adjustments */
@media screen and (max-width: 480px) {
    .menu {
        display: none;
        flex-direction: column; /* Stack menu items vertically */
        align-items: center;
    }

    .menu.active {
        display: flex; /* Show menu when active */
    }

    .menu li {
        margin: 5px 0; /* Add some margin between vertical menu items */
    }

    .menu-toggle {
        display: flex; /* Show the hamburger menu */
        flex-direction: column;
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 25px;
    }

    .menu-toggle .bar {
        width: 25px;
        height: 3px;
        background-color: pink;
        margin: 3px 0;
        transition: 0.4s;
    }
}

@media screen and (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column; /* Stack menu items vertically */
        align-items: center;
    }

    .menu.active {
        display: flex; /* Show menu when active */
    }

    .menu li {
        margin: 5px 0; /* Add some margin between vertical menu items */
    }

    .menu-toggle {
        display: flex; /* Show the hamburger menu */
        flex-direction: column;
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 25px;
    }

    .menu-toggle .bar {
        width: 25px;
        height: 3px;
        background-color: pink;
        margin: 3px 0;
        transition: 0.4s;
    }
}

/* Table Section Adjustments */
@media screen and (max-width: 480px) {
    .table-section {
        display: block;
        width: 100%;
    }

    .table-section table {
        width: 100%;
        table-layout: fixed; /* Ensure equal width for each cell */
        word-wrap: break-word; /* Allow text to break within cells */
        display: table; /* Ensure table takes full width */
    }

    .table-section th, .table-section td {
        font-size: 12px; /* Reduce font size for mobile */
        padding: 8px; /* Adjust padding for mobile */
    }
}

@media screen and (max-width: 768px) {
    .table-section {
        display: block;
        width: 100%;
    }

    .table-section table {
        width: 100%;
        table-layout: fixed; /* Ensure equal width for each cell */
        word-wrap: break-word; /* Allow text to break within cells */
        display: table; /* Ensure table takes full width */
    }

    .table-section th, .table-section td {
        font-size: 14px; /* Reduce font size for mobile */
        padding: 10px; /* Adjust padding for mobile */
    }
}

/* Hero Section Adjustments */
@media screen and (max-width: 480px) {
    header.hero h1 {
        font-size: 2.5em;
    }

    header.hero h3 {
        font-size: 2em;
    }

    .text, .extext {
        font-size: 1.5em;
    }

    .intro-left-box, .intro-right-box, .experience-left-box, .experience-right-box {
        flex: 1 1 100%;
        padding: 10px 0;
    }

    .intro-top-right-box a {
        font-size: 36px;
    }

    .line-container, .exline-container {
        flex-direction: column;
        align-items: center;
    }

    .line, .exline {
        border-bottom: 50px solid black; /* Adjust border size for mobile */
    }

    .text, .extext {
        font-size: 36px; /* Reduce font size for mobile */
        padding: 0 5px; /* Adjust padding for mobile */
    }

    .word, .exword {
        justify-content: center; /* Center the words on mobile */
    }

    .experience-header, .experience-subheader, .experience-subsubheader {
        font-size: 18px;
        padding: 0 5px; /* Adjust padding for mobile */
    }

    .experience-list {
        padding-left: 15px;
    }

    /* Reduce padding for images in smaller screens */
    .experience-left-box img {
        padding-right: 0;
    }

    .menu li a {
        font-size: 18px;
        padding: 10px 15px;
    }
}

@media screen and (max-width: 768px) {
    header.hero h1 {
        font-size: 3.5em;
    }

    header.hero h3 {
        font-size: 2.5em;
    }

    .text, .extext {
        font-size: 2em;
    }

    .intro-left-box, .intro-right-box, .experience-left-box, .experience-right-box {
        flex: 1 1 100%;
        padding: 15px 0;
    }

    .intro-top-right-box a {
        font-size: 40px;
    }

    .line-container, .exline-container {
        flex-direction: column;
        align-items: center;
    }

    .line, .exline {
        border-bottom: 60px solid black; /* Adjust border size for mobile */
    }

    .text, .extext {
        font-size: 42px; /* Reduce font size for mobile */
        padding: 0 10px; /* Adjust padding for mobile */
    }

    .word, .exword {
        justify-content: center; /* Center the words on mobile */
    }

    .experience-header, .experience-subheader, .experience-subsubheader {
        font-size: 20px;
        padding: 0 10px; /* Adjust padding for mobile */
    }

    .experience-list {
        padding-left: 20px;
    }

    /* Reduce padding for images in smaller screens */
    .experience-left-box img {
        padding-right: 0;
    }

    .menu li a {
        font-size: 20px;
        padding: 12px 17px;
    }
}
