
/* =====================================
   TABLET RESPONSIVE DESIGN
===================================== */

@media (max-width: 1024px) {

    /* Responsive Header */
    .site-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Shows the hamburger button on tablet and phone */
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1002;
    }

    /* Compact navigation menu */
    .main-nav {
        position: fixed;

        /* Centers the menu on the screen */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);

        /* Limits the menu size */
        width: min(70%, 320px);

        /* Spacing inside the menu */
        padding: 30px 20px;

        /* Arranges links vertically */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;

        /* Menu appearance */
        background: rgba(10, 20, 45, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);

        border: 1px solid rgba(0, 170, 255, 0.25);
        border-radius: 20px;

        box-shadow: 0 0 30px rgba(0, 170, 255, 0.15);

        /* Keeps menu above the background */
        z-index: 1001;

        /* Hides menu initially */
        visibility: hidden;
        opacity: 0;
        pointer-events: none;

        /* Smooth opening and closing */
        transition: opacity 0.3s ease;
    }

    /* Displays the menu when activated */
    .main-nav.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    /* Adjusts navigation link appearance */
    .main-nav a {
        font-size: 16px;
        padding: 8px 10px;
    }

}


/* =====================================
   MOBILE RESPONSIVE DESIGN
===================================== */

@media (max-width: 600px) {

    /* Adjusts header spacing on phones */
    .site-header {
        padding: 18px 6%;
    }

    /* Adjusts logo size */
    .logo {
        font-size: 21px;
    }

    /* Adjusts menu panel width and spacing */
    .main-nav {
        width: min(75%, 280px);
        padding: 25px 15px;
        gap: 18px;
    }

    /* Adjusts link text size */
    .main-nav a {
        font-size: 15px;
    }

    /* Adjusts small stars */
    .stars-small {
        background-size: 180px 180px;
    }

    /* Adjusts medium stars */
    .stars-medium {
        background-size: 280px 280px;
    }

}


/* =====================================
   ABOUT SECTION RESPONSIVENESS
===================================== */

/* Tablet and Smaller Screens */
@media (max-width: 900px) {

    /* Adjusts the About section spacing */
    .about-section {
        padding: 120px 6% 60px;
    }

    /* Changes the About content layout into a vertical arrangement */
    .about-container {
        flex-direction: column;
        gap: 35px;
    }

    /* Adjusts the profile image container */
    .about-image {
        flex: 0 1 auto;
        width: 100%;
        max-width: 300px;
    }

    /* Adjusts the profile image height */
    .about-image img {
        height: 380px;
    }

    /* Centers the About text content */
    .about-content {
        width: 100%;
        max-width: 700px;
        text-align: center;
    }

}


/* Mobile Screens */
@media (max-width: 600px) {

    /* Adjusts About section spacing on mobile */
    .about-section {
        padding: 110px 20px 40px;
    }

    /* Adjusts spacing below the About heading */
    .about-heading {
        margin-bottom: 35px;
    }

    /* Adjusts About heading size */
    .about-heading h1 {
        font-size: clamp(32px, 8vw, 40px);
    }

    /* Adjusts About subtitle size */
    .about-heading p {
        font-size: 14px;
    }

    /* Reduces spacing between About image and content */
    .about-container {
        gap: 25px;
    }

    /* Adjusts profile image width */
    .about-image {
        max-width: 240px;
    }

    /* Adjusts profile image height and corners */
    .about-image img {
        height: 320px;
        border-radius: 15px;
    }

    /* Adjusts About content heading */
    .about-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    /* Adjusts About paragraph text */
    .about-content p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 15px;
    }

}


/* Very Small Screens */
@media (max-width: 350px) {

    /* Reduces About section horizontal spacing */
    .about-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Reduces profile image width */
    .about-image {
        max-width: 210px;
    }

    /* Reduces profile image height */
    .about-image img {
        height: 280px;
    }

    /* Reduces About heading size */
    .about-content h2 {
        font-size: 22px;
    }

    /* Reduces About paragraph text size */
    .about-content p {
        font-size: 13px;
    }

}

/* =====================================
   EXPERIENCE SECTION RESPONSIVENESS
===================================== */

/* Tablet and Smaller Screens */
@media (max-width: 768px) {

    /* Adjusts Experience section spacing */
    .experience-section {
        padding: 100px 6% 50px;
    }

    /* Adjusts spacing below Experience heading */
    .experience-heading {
        margin-bottom: 35px;
    }

    /* Adjusts Experience heading size */
    .experience-heading h1 {
        font-size: clamp(32px, 7vw, 45px);
    }

    /* Adjusts Experience subtitle size */
    .experience-heading p {
        font-size: 14px;
    }

    /* Adjusts Experience card spacing */
    .experience-card {
        padding: 22px;
        margin-bottom: 20px;
    }

    /* Adjusts job title size */
    .experience-header h3 {
        font-size: 19px;
    }

    /* Adjusts company name size */
    .experience-header h4 {
        font-size: 15px;
    }

}

/* Mobile Screens */
@media (max-width: 480px) {

    /* Adjusts Experience section spacing on phones */
    .experience-section {
        padding: 90px 5% 40px;
    }

    /* Stacks Experience header vertically */
    .experience-header {
        flex-direction: column;
        gap: 12px;
    }

    /* Adjusts Experience date badge */
    .experience-date {
        font-size: 11px;
        padding: 7px 12px;
    }

    /* Reduces Experience card padding */
    .experience-card {
        padding: 18px;
        border-radius: 0 0 12px 0;
    }

    /* Adjusts job title size */
    .experience-header h3 {
        font-size: 18px;
    }

    /* Adjusts Experience description text */
    .experience-card li {
        font-size: 13px;
        line-height: 1.7;
    }

}
