@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Poppins:wght@600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    /* DIMENSIONS & POSITIONING */

    --main-section-width: 80%;
    --section-gap: 200px; 


    /* FONTS */
    --heading-fonts: Poppins, Arial;
    --body-fonts: Inter, sans-serif;

    --section-title-size: 3.75rem;


    /* LIGHT MODE COLOUR PALETTE */
    --primary-colour: #4d9d79;
    --secondary-colour: #98ddbe;
    --accent-colour: #5adda2;
    --text-colour: #110e0e;
    --bg-colour: #f6f9f8;
    --shadow-colour: rgba(76, 157, 121, 0.23);

    /* VALIDATION COLOURS */
    --error-red: #e74c3c;
    --warning-yellow: #f1c40f;
    --success-green: #2ecc71;
}

.darkmode {
    --primary-colour: #0e1b15;
    --secondary-colour: #286d4e;
    --accent-colour: #2abc7b;
    --text-colour: #f6f9f8;
    --bg-colour: #110e0e;
}



/*
    TODO: CLEAN UP CSS FILES AND HTML FILE
    TODO: Get icons, images and data
    TODO: Optimize images and assets for faster loading
    TODO: Add alt text and improve accessibility (a11y)
    TODO: Add meta tags for SEO and social sharing
*/

/* ---------------------- General -------------------- */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

body {
    background: var(--bg-colour);
    font-family: var(--body-fonts);
    position: relative;
}

.title {
    color: var(--text-colour);
    font-family: var(--heading-fonts);
    font-size: var(--section-title-size);
    text-align: left;
    width: var(--main-section-width);
    margin-bottom: 2rem;
    padding-left: 10px;
}

/* ---------------------- Header -------------------- */

header {
    width: 100%;
    height: 100vh;
    /*background-image: url(../assets/images/photo-of-me.jpg);
    background-size: cover;
    background-position: right;*/
}


/* ---------------------- Navigation -------------------- */

#nav {
    text-align: center;
    display: inline-block;
    list-style-type: none;
    font-family: var(--body-fonts);
    padding: 20px 10px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

nav.sticky {
    background: var(--bg-colour);
    padding: 20px 10px;
    transition: 0.6s;
    z-index: 100;
}

nav.sticky > .nav-logo {
    color: var(--text-colour); /* COLOUR OF TEXT ON STICKY BAR */
}

nav.sticky > .nav-logo:hover {
    color: var(--secondary-colour);
}

nav.sticky .nav-items-right > .nav-item {
    color: var(--text-colour); /* COLOUR OF TEXT ON STICKY BAR */
}

.nav-items-right > .nav-item {
    color: var(--text-colour); /* COLOUR OF TEXT ON DEFAULT BAR */
    text-decoration: none;
    font-size: 1.3rem;
    padding: 10px 2px;
    margin: 0px 15px;
    position: relative;
}

.nav-items-right .menu-icon {
    color: var(--text-colour);
    font-size: 1.3rem;
    padding: 11px 2px;
    margin: 0px 15px;
    display: none;
}

.nav-items-right .menu-icon:hover {
    color: var(--secondary-colour);
}

nav.sticky .nav-items-right .menu-icon {
    color: var(--text-colour);
}
nav.sticky .nav-items-right .menu-icon:hover {
    color: var(--secondary-colour);
}

.nav-items-right > .nav-item::after {
    content: '';
    width: 0;
    height: 3px;;
    background: var(--secondary-colour); /* NAV ITEM HIGHLIGHT */
    position: absolute;
    left: 0;
    bottom: 0;
    transition: 0.5s;
}

.nav-items-right > .nav-item:hover::after {
    width: 100%;
}

.nav-logo {
    color: var(--text-colour);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 10px;
    float: left;
    transition: color 0.6s;
}

.nav-logo:hover {
    color: var(--secondary-colour);
}

.nav-items-right {
    display: flex;
    justify-content: flex-end;
}

.nav-items-right .nav-item {
    float: right;
    margin-left: 10px;
    transition: 0.6s;
}

.portfolio-dropdown {
    position: relative;
}

.portfolio-dropdown .dropdown-toggle {
    border: none;
    background: transparent;
    color: var(--text-colour);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.portfolio-dropdown-menu {
    display: none;
    position: absolute;
    top: 120%;
    right: -20%;
    background: var(--bg-colour);
    min-width: 120px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.5rem 0;
    z-index: 1000;

    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.25s ease;
}

.portfolio-dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.portfolio-link {
    display: block;
    font-family: var(--body-fonts);
    padding: 10px 16px;
    font-size: 1.3rem;
    color: var(--text-colour);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    border-radius: 8px;
}

.portfolio-link:hover {
    color: var(--accent-colour);
}

.dropdown-toggle .arrow {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.portfolio-dropdown-menu.show ~ .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

.portfolio-dropdown.open .arrow {
    transform: rotate(180deg);
}

/* ----------------------------- TOGGLE BUTTON --------------------------- */

.toggle-theme {
  background: var(--secondary-colour);
  color: var(--bg-colour);
  border: none;
  border-radius: 20px;
  font-family: var(--body-fonts);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  margin-left: 18px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px var(--shadow-colour);
}
.toggle-theme:hover,
.toggle-theme:focus {
  background: var(--primary-colour);
  color: var(--bg-colour);
  outline: none;
}

#theme-switch {
    height: 50px;
    width: 50px;
    margin: 0 10px;
    border-radius: 50%;
    background-color: var(--bg-colour);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: none;
}

#theme-switch svg {
    fill: var(--text-colour);
}

#theme-switch svg:hover {
    fill: var(--secondary-colour);
}

#theme-switch svg:last-child {
    display: none;
}

.darkmode #theme-switch svg:first-child {
    display: none;
}

.darkmode #theme-switch svg:last-child {
    display: block;
}


/* ----------------------- NAVIGATION DROPDOWN ----------------------- */

.dropdown.active > .nav-item {
    color: var(--text-colour);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    background: var(--bg-colour);
    position: absolute;
    width: 200px;
    border-bottom-left-radius: 30px;
    border-top-left-radius: 30px;
    text-align: center;
    top: 139%;
    right: -10px;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.dropdown.active > .nav-item + .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu > .dropdown-link {
    color: var(--text-colour);
    display: block;
    font-size: 1.9rem;
    text-decoration: none;
    text-align: center;
    margin-top: 5px;
    transition: color 0.4s;
}

.dropdown-menu > .dropdown-link:hover {
    color: var(--secondary-colour);
    transition: color 0.2s;
}

@media only screen and (max-width: 850px) {
    .nav-items-right > .nav-item {
        display: none;
    }

    .nav-logo, nav.sticky > .nav-logo, .nav-items-right .menu-icon, nav.sticky .nav-items-right .menu-icon {
        font-size: 2.4rem;
    }

    .nav-items-right .menu-icon, nav.sticky .nav-items-right .menu-icon {
        display: block;
    }
}

/* ----------------------- Home ----------------------- */

#home {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding-left: 10%;
}

.home-text {
    font-size: 1.875rem;
    color: var(--text-colour);
    font-family: var(--heading-fonts);
}

.home-text h1 {
    font-size: var(--section-title-size);
    margin-bottom: 1.25rem;
}

.highlight {
    color: var(--accent-colour); /* ADJUST COLOUR HERE */
}

.socials {
    justify-content: left;
}

.social-link {
    display: inline-block;
    margin: 10PX;
}

.social-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-colour); /* ADJUST COLOUR HERE */
    font-size: 5rem;
    transition: color 0.5s, transform 0.3s;
}

.social-link a:hover {
    color: var(--primary-colour); /* ADJUST COLOUR HERE */
    transform: scale(1.08);
}

@media only screen and (max-width: 600px) {
    #home {
        align-items: center;
        padding-left: 0;
        text-align: center;
    }

    .home-text {
        font-size: 1.25rem;
    }

    .home-text h1 {
        font-size: 2.5rem;
    }

    .socials {
        justify-content: center;
        gap: 1.5rem;
    }

    .title {
        font-size: 2.5rem;
    }
}


/* -------------------------- About Me ------------------------ */

#about-me {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: var(--section-gap);
}

.about-me-container {
    display: flex;
    flex-direction: column;
    padding: 10px;
    align-items: flex-start;
    width: var(--main-section-width);
}

.about-me-text {
    color: var(--text-colour);
    font-family: var(--body-fonts);
    font-size: 1.2rem;
    text-align: justify;
    text-justify: inter-word;
}

.content {
    color: var(--text-colour);
    font-family: var(--body-fonts);
    margin-top: 20px;
    display: none;
    text-align: left;
    width: 100%;
}

.content ul li {
    list-style: none;
    margin-top: 20px;
}

.content ul li span {
    color: var(--secondary-colour);
    font-size: 1rem;
}

.content ul li p {
    margin-top: 5px;
}

.content.active-content {
    display: block;
}

.change-content {
    margin-top: 15px;
    margin-bottom: 0.2rem;
}
.change-content-button  {
    border: 0;
    outline: 0;
    background: 0;
    color: var(--text-colour);
    font-family: var(--body-fonts);
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
    padding: 5px 5px 5px 0px;
}
.change-content-button::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--secondary-colour);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.7s;
}
.change-content-button.active-content-link::after {
    width: 100%;
}

@media only screen and (max-width: 450px) {
    .change-content-button {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .about-me-text {
        font-size: 1rem;
    }
}

/* -------------------------- Skills ----------------------- */

#skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    margin-top: var(--section-gap);
}

.skills-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2rem;
    width: var(--main-section-width);
    padding: 20px 10px 10px 10px;
}

.skills-categories {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.skills-btn {
  background: none;
  border: none;
  color: var(--secondary-colour);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.skills-btn.active,
.skills-btn:hover {
  background: var(--secondary-colour);
  color: var(--bg-colour);
}

.skills-content {
  width: 100%;
}

.skills-grid {
  display: none;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.skills-grid.active {
  display: flex;
}

.skill-pill {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--bg-colour);
    color: var(--text-colour);
    border-radius: 12px;
    padding: 0.7rem 1.3rem;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px var(--shadow-colour);
    min-width: 120px;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s, border 0.18s;
}

/*.skill-pill img {
    width: 28px;
    height: 28px;
}*/

.skill-pill i {
    color: var(--accent-colour);
}

.skill-pill .years {
    background: var(--accent-colour);
    color: var(--text-colour);
    border-radius: 8px;
    font-size: 0.95rem;
    padding: 0.1rem 0.7rem;
    margin-left: auto;
}

@media only screen and (max-width: 600px) {
    .skills-categories {
        justify-content: center;
        gap: 0.5rem;
    }
    .skills-btn {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .skill-pill {
        font-size: 1.2rem;
        padding: 0.4rem 0.7rem;
        min-width: 80px;
        gap: 0.4rem;
    }
    .skill-pill img {
        width: 20px;
        height: 20px;
    }
    .skill-pill .years {
        font-size: 0.85rem;
        padding: 0.05rem 0.5rem;
    }
}

/* -------------------------- Experience ----------------------- */

#experience {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    margin-top: var(--section-gap);
    position: relative;
    padding: 100px 20px;
    overflow: hidden;
}

.timeline {
    padding: 10px;
    position: relative;
    width: var(--main-section-width);
    max-width: 1300px;
    margin: auto;             
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    width: 6px;
    height: 100%;
    background: var(--accent-colour);
    top: 0;
    left: 50%;
    margin-left: -3px;
    z-index: 0;
    border-radius: 3px;
}

.container {
    position: relative;
    width: 50%;
    padding: 30px 40px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s cubic-bezier(.23,1.01,.32,1), transform 0.9s cubic-bezier(.23,1.01,.32,1);
}

.container img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    padding: 6px;
    background-color: var(--bg-colour);
    border: 2px solid var(--accent-colour);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 150, 0.4);
    position: absolute;
    top: 40px;
    z-index: 2;
}

.left-container {
    left: 0;
    text-align: right;
}

.right-container {
    left: 50%;
    text-align: left;
}

.left-container img {
    right: -20px;
}

.right-container img {
    left: -20px;
}

.timeline-card {
    background: var(--bg-colour);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 10px var(--shadow-colour);
    font-family: var(--body-fonts);
    text-align: left;
}

.timeline-card h2 {
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-colour);
}

.timeline-card small {
    display: block;
    margin-bottom: 10px;
    color: var(--secondary-colour);
}

.timeline-card p {
    line-height: 1.6;
    margin: 0;
    font-family: var(--body-fonts);
    color: var(--text-colour);
}

.left-container-arrow,
.right-container-arrow {
    content: "";
    position: absolute;
    top: 20px;
    border-style: solid;
}

.left-container-arrow {
    right: -15px;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent var(--accent-colour);
}

.right-container-arrow {
    left: -15px;
    border-width: 10px 15px 10px 0;
    border-color: transparent var(--accent-colour) transparent transparent;
}

.container.show {
    opacity: 1;
    transform: translateY(0);
}

@media only screen and (max-width: 1100px) {
    .timeline {
        padding: 10px 0;
        width: 100%;
        max-width: 100vw;
        position: relative;
        padding-left: 60px;
    }
    .timeline-line {
        left: 0;
        margin-left: 20px;
    }
    .container {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding: 18px 8px 18px 24px;
        margin-bottom: 40px;
        box-sizing: border-box;
    }
    .left-container,
    .right-container {
        left: 0 !important;
        text-align: left !important;
    }
    .container img {
        position: absolute;
        left: -57px;   /* Place image on the line */
        top: 28px;
        display: block;
        z-index: 2;
        width: 40px;
        height: 40px;
    }
    .timeline-card {
        padding: 16px;
        font-size: 1rem;
        max-width: 100%;
    }
    /* Hide right-pointing arrows */
    .left-container-arrow {
        display: none !important;
    }
    /* Show and position left-pointing arrows for all cards */
    .left-container-arrow,
    .right-container-arrow {
        display: block !important;
        left: -15px; /* Just right of the image/timeline line */
        right: auto;
        border-width: 10px 15px 10px 0;
        border-color: transparent var(--accent-colour) transparent transparent;
        position: absolute;
        top: 22px;
    }
}

/* -------------------------- Projects ----------------------- */
#projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    margin-top: var(--section-gap); 
}

.projects-container {
    width: var(--main-section-width);
}

.projects-container h1 {
    color: var(--bg-colour);
    font-size: 2.4rem;
}

.display-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
    margin-top: 50px;
}

.project-card {
    display: none; /* hide all by default */
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    /*width: 500px;
    height: 500px;*/
    width: 100%;
    aspect-ratio: 1 / 1; /* Maintains square shape */
    max-width: 500px;     /* Optional: Prevents it from growing too wide */
    height: auto;
    color: var(--bg-colour);
}

.project-card.visible {
    display: block; /* reveal visible cards */
}

.project-card:nth-child(1),
.project-card:nth-child(2),
.project-card:nth-child(3) {
    display: block;
}
.project-card img {
    width: 100%;
    display: block;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
}

.project-content {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), var(--accent-colour) 90%);
    border-radius: 10px;
    position: absolute;
    font-family: var(--body-fonts);
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0 28px;
    text-align: left;
    justify-content: center;
    transition:
        height 0.5s,
        opacity 0.5s,
        padding 0.5s;
    gap: 1.1rem;
    opacity: 0;
}

.project-card:hover .project-content,
.project-card:focus-within .project-content {
    height: 100%;
    padding: 32px 28px 24px 28px;
    opacity: 1;
    pointer-events: auto;
    display: flex;
}

.project-content h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.7rem);
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--bg-colour);
    word-break: break-word;
    hyphens: auto;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tech-stack span {
    background: rgba(255,255,255,0.13);
    color: var(--bg-colour);
    font-size: clamp(0.85rem, 1.5vw, 1.15rem);
    padding: 0.25rem 0.8rem;
    border-radius: 8px;
    letter-spacing: 0.03em;
    word-break: break-word;
    hyphens: auto;
}

.project-desc {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    color: var(--bg-colour);
    margin-bottom: 0.5rem;
    word-break: break-word;
    hyphens: auto;
}

.project-content .inline {
    display: flex;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.project-content .inline a {
    color: var(--accent-colour);
    font-size: 1.2rem;
    background: var(--bg-colour);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, background 0.3s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.project-content .inline a:hover {
    color: var(--bg-colour);
    background: var(--accent-colour);
    transform: scale(1.08);
}

.project-card:hover img {
    transform: scale(1.1);
}
.project-card:hover .project-content {
    height: 100%;
    display: flex;
}

.button-div {
    display: flex;
    justify-content: center;
}

.button-div {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.button-div button {
    color: var(--secondary-colour);
    font-size: 1.2rem;
    font-weight: 550;
    border: 2px solid var(--secondary-colour);
    font-family: var(--body-fonts);
    border-radius: 5px;
    padding: 15px;
    outline: 0;
    background: 0;
    margin-top: 40px;
    transition: color 0.4s;
    transition: background 0.5s color 0.5s border-color 0.5s;
}

.button-div button:hover {
    color: var(--bg-colour);
    background: var(--accent-colour);
    border-color: var(--accent-colour);
}

@media (max-width: 1400px) {
    .display-projects {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .display-projects {
        grid-template-columns: 1fr;

    }
    .project-card {
        aspect-ratio: 4 / 3; /* Slightly wider for phones */
        max-width: 100%;
    }
    .project-content h4 {
        font-size: clamp(1.1rem, 2.5vw, 1.7rem);
    }
    .tech-stack span {
        font-size: clamp(0.85rem, 1.5vw, 1.15rem);
        padding: 0.35rem 1rem;
    }
    .project-content .inline a {
        font-size: 1.5rem;
        width: 52px;
        height: 52px;
    }
}

/* --------------------------- Resume ------------------------- */

#resume {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    margin-top: var(--section-gap);
}

.resume-container {
    margin-top: 50px;
    width: var(--main-section-width);
}

.resume-desc {
    color: var(--text-colour);
    font-family: var(--body-fonts);
    margin-bottom: 1.2rem;
    text-align: center;
    font-size: 1.1rem;
}

.resume-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.resume-btn {
    font-family: var(--body-fonts);
    background: var(--accent-colour);
    color: var(--bg-colour);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px var(--shadow-colour);
}

.resume-btn:hover {
    background: var(--bg-colour);
    color: var(--accent-colour);
    transform: translateY(-2px) scale(1.04);
}

.chatbot-box {
    background: var(--text-colour);
    border-radius: 14px;
    box-shadow: 0 2px 16px var(--shadow-colour);
    padding: 2.5rem 1.5rem;
    margin: 0 auto;
    width: 300px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chatbot-placeholder {
    font-family: var(--body-fonts);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--bg-colour);
    font-size: 1.2rem;
    gap: 1rem;
}

.chatbot-placeholder i {
    font-size: 2.5rem;
    color: var(--accent-colour);
}

@media only screen and (max-width: 850px) {
    .resume-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.8rem;
    }
}


/* --------------------------- Contact Me ------------------------- */

#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    width: 100%;
    margin-top: var(--section-gap);
}

.contact-box {
    width: var(--main-section-width);
    margin-top: 50px;
}

.contact-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
}

/* Left Column: Contact Info */
.contact-info {
    flex-basis: 35%;
}

.contact-form {
    flex-basis: 60%;
}
.contact-info p {
    margin-top: 30px;
    font-size: 1.4rem;
    font-family: var(--body-fonts);
    color: var(--text-colour);
}
.contact-info p i {
    color: var(--accent-colour);
    margin-right: 15px;
    font-size: 1.9rem;
}

.contact-icons {
    margin-top: 30px;
    margin-bottom: 50px;
}

.contact-icons a {
    text-decoration: none;
    font-size: 3.8rem;
    margin-right: 30px;
    color: var(--secondary-colour);
    display: inline-block;
    transition: transform 0.5s, color 0.5s;
}
.contact-icons a:hover {
    color: var(--primary-colour);
    transform: translateY(-5px);
}

.contact-form form {
    width: 100%;
}

form input, form textarea {
    width: 100%;
    border: 0;
    outline: 0;
    background: var(--bg-colour);
    padding: 15px;
    margin: 15px 0;
    color: var(--text-colour);
    font-size: 18px;
    border-radius: 6px;
    border: 2px solid var(--text-colour);
}

.submit-form {
    outline: 0;
    border: 0;
    border: solid var(--accent-colour) 2px;
    color: var(--accent-colour);
    background: var(--bg-colour);
    font-size: 1.1rem;
    font-weight: 550;
    border-radius: 5px;
    padding: 12px 32px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.submit-form:hover {
    background: var(--accent-colour);
    color: var(--bg-colour);
}

/* Responsiveness: Stack columns on small screens */
@media only screen and (max-width: 850px) {
    .contact-row {
        flex-direction: column;
        gap: 1rem;
    }
    .contact-info,
    .contact-form {
        max-width: 100%;
        min-width: 0;
        padding: 2rem 1rem;
    }

    .contact-info p {
        font-size: 1.2rem;
    }
    .contact-form {
        margin-top: 0;
    }
}

/* --------------------------- Contact Form Validation Styles ------------------------- */

form input.invalid,
form textarea.invalid {
    border: 2px solid var(--error-red) !important; /* Red for empty/invalid */
}

form input.warning,
form textarea.warning {
    border: 2px solid var(--warning-yellow) !important; /* Yellow for potential issues */
}

form input.valid,
form textarea.valid {
    border: 2px solid var(--success-green) !important; /* Green for valid */
}

.error-message {
    color: var(--error-red);
    font-size: 0.9em;
    margin-top: -10px;
    margin-bottom: 10px;
    display: block; /* Ensures it takes up space */
    height: 1.2em; /* Reserve space to prevent layout shifts */
}

.success-message {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--success-green);
    color: var(--bg-colour); /* Or a contrasting color */
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
}



/* --------------------------- Footer ------------------------- */

footer {
    display: flex;
    background: var(--accent-colour);
    justify-content: center;
    align-items: center;
    height: 130px;
    margin-top: 70px;
}

.footer-container {
    color: var(--bg-colour);
    font-family: var(--body-fonts);
    text-align: center;
}

.footer-container .footer-main h1 {
    font-weight: bold;
    margin-top: 20px;
}

.footer-container .footer-main p {
    margin-top: 10px;
}

@media only screen and (max-width: 850px) {

    footer .footer-main h1 {
        font-size: 1.4rem;
    }

    footer .footer-main p {
        font-size: 0.9rem;
    }
}