/* global colours */
:root {
    --primary: #4141C7;
    --secondary: #3434AD;
    --accent: #4B4B83;
    --background-light: #FDFDFE;
    --background-dark: #1C1C35;
    --neutral-light: #E4E4F1;
    --neutral-mid: #AEAEC3;
    --neutral-dark: #151528;
    --text-color: #000000;
    --text-light: #FDFDFE;
}
/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
      --background-dark: #1C1C35;
      --neutral-dark: #151528;
      --text-light: #FDFDFE;
    }
}
  
/* CSS Reset */

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

body {
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    box-sizing: border-box;
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
    scroll-behavior: smooth;
  }
 
h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    line-height: 1.2;
  }
 
ol, ul {
    list-style: none;
}
 
img {
    max-width: 100%;
    height: auto;
}
 
input, button, textarea, select {
    font: inherit;
    border: none;
    background: none;
}

/* Load Poppins Regular (400 weight) */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-v21-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

/* Load Poppins Regular italic */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-v21-latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
}

/* Load Poppins Bold (600 weight) */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-v21-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

/* Load Poppins Bold italic */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-v21-latin-600italic.woff2') format('woff2');
    font-weight: 600;
    font-style: italic;
}
/* default font style */
html, body {
    font-family: "Poppins", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/* colour styles */
.brand {
    background-color: var(--primary);
}

.brand-alt {
    background-color: var(--secondary);
}

.action {
    background-color: var(--accent);
}

.base-dark {
    background-color: var(--background-dark);
}

.base-mid {
    background-color: var(--neutral-mid);
}

.base-light {
    background-color: var(--background-light);
}

.base-darker {
    background-color: var(--neutral-dark);
}

.base-lightest {
    background-color: var(--neutral-light);
}

/* Utilities */
.display-none {
    display: none;
}

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

html, body {
    padding: 0;
    margin: 0;
    height: 100%;
    /* display: flex;
    flex-direction: column; */
}

html {
    scroll-behavior: smooth;
    min-height: 100vh;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px; /* Base font size for mobile */
    background-color: var(--background-light);
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    height: auto;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: scroll;
    /* max-width: 90%; */
    /* max-width: 1200px; */
    padding: 0px 20px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    body {
        font-size: 18px; /* Slightly larger font for tablets */
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 20px; /* Larger font size for desktops */
    }
}

h1, h2, h3 {
    font-weight: 600;
}

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

/* BANNER TO NEW PORTFOLIO WEBSITE */

.portfolio-banner {
    background-color: #ffcc00;
    padding: 15px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #e6b800;
  }
  
  .portfolio-icon {
    width: 24px;
    height: 24px;
  }
  
  .portfolio-text {
    font-weight: bold;
  }
  
  .portfolio-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
  }
  
  .portfolio-link:hover {
    text-decoration: underline;
    color: #003d80;
  }
 
/* MODAL FOR NEW PORTFOLIO */

/* Modal Background */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
  }
  
  /* Modal Content */
  .modal-content {
    background-color: #fff;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
  }
  
  /* Close Button */
  .close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
  }
  
  /* Modal Heading */
  .modal h2 {
    color: #333;
  }
  
  /* Modal Link */
  .modal-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0056b3;
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
  }
  
  .modal-link:hover {
    background-color: #003d80;
  }
  
  /* Modal Icon */
  .modal-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
  }
  

/* Header */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 1rem;
    margin: 0;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.right img.rainbow {
    position: absolute; /* Keep it in the top right */
    top: 10px; /* Add padding from the top */
    right: 10px; /* Add padding from the right */
    height: auto; /* Maintain aspect ratio */
    max-height: 3rem; /* Scale size appropriately */
    width: auto; /* Adjust width proportionally */
    object-fit: contain;
}

/* Navbar */ 

/* Mobile-first: Hidden menu by default on mobile */
#menu {
    display: none;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

#menu.active {
    display: flex;
    flex-direction: column;
}

.navbar-toggler {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    margin: 0;
    display: block;
    z-index: 999;
}

.navbar-toggler svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-light);
    stroke-width: 4;
}

.navbar-toggler:focus {
    outline: 2px solid var(--accent);
}

/* Hidden menu by default for mobile */
#menu {
    display: none;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

#menu.active {
    display: flex;
    flex-direction: column;
}

/* Larger screens: Enhance for desktop */
@media (min-width: 768px) {
    #menu {
      display: flex;
      flex-direction: row;
      gap: 2rem;
      align-items: center;
    }

    .navbar-toggler {
        display: none; /* Hide hamburger menu on larger screens */
    }

    .right img.rainbow {
        max-height: 2rem;
    }
}
 /* Sticky navbar for larger screens */
 @media (min-width: 720px) {
    header {
        position: sticky;
        top: 0;
        width: 100%;
        z-index: 999;
    }
 }

#menu li a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.2rem;
    padding: 10px 15px;
    transition: background-color 0.3s ease-in-out;
 }

/* Hover and focus states */
#menu li a:hover, #menu li a:focus {
    background-color: var(--accent);
    border-radius: 5px;
}

/* Section 1: Hero */

/* Mobile-first: Stack content vertically for smaller screens */
.hero {
    display: flex;
    flex-direction: column; /*Stack content vertically */
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 10px auto;
    background-color: var(--primary);
    color: var(--text-light);
    text-align: center; /* Center text for mobile view */
}
    
.hero .hero-text {
    max-width: 100%;
    margin-bottom: 20px;
}

/* Base style (for mobile first) */
.hero .hero-text h1 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.hero .hero-text p {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.hero .hero-text .hero-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero .hero-text .hero-links span {
    color: var(--text-light);
    font-size: 1rem;
}

.hero .hero-text .hero-links a {
    display: inline-block;
    padding: 8px 12px;
    border: 2px solid var(--background-light);
    border-radius: 5px;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease; 
    cursor: pointer;   
}

.hero .hero-text .hero-links a:hover {
    color: var(--action);
    background-color: var(--neutral-mid);
} 

/* Image for mobile first */
.hero .hero-image img {
    border-radius: 50%;
    max-width: 80%;
    margin-top: 20px;
    border: 1px solid var(--background-light);
}

/* larger screens - tablets */
@media (min-width: 720px) {
    .hero {
        flex-direction: row; /* Horizontal layout for larger screens */
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        margin: 10px 0;
    }
    .hero .hero-text h1 {
        font-size: 2.4rem;
        margin-bottom: 20px;
    }

    .hero .hero-text {
        margin-right: 50px;
        max-width: 60%; /* Limit the text width on larger screens */
    }

    .hero .hero-text p {
        font-size: 1.2rem;
    }

    .hero .hero-links {
        flex-direction: row; /* Horizontal layout for links on larger screens */
        gap: 15px;
    }

    .hero .hero-links a {
        width: auto; /* Let the buttons take their natural size */
    }

    .hero .hero-image {
        max-width: 250px; /* Enlarge the image for larger screens */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
}

/* larger screens - desktop */
@media (min-width: 1024px) {
    .hero .hero-text {
        max-width: 70%; /* Limit the text width on larger screens */
    }

    .hero .hero-image {
        max-width: 300px; /* limits the image size */
    }
}

/* Section 2: Acknowledgement - Mobile-first */

.acknowledgement {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
    background-color: var(--neutral-light);
    border-radius: 10px;
}

.acknowledgement h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.flags-and-ally {
    display: flex;
    flex-direction: column; /* mobile-first: vertical stacking */
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.flags-and-ally .flags {
    width: 100px;
    height: auto; /* ensures flags remain proportion */
    object-fit: contain;
    margin-bottom: 10px;
}

.ask-aunty button {
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ask-aunty button:hover {
    background-color: var(--accent);
}

/* Media Query for Larger Screens */
@media (min-width: 768px) {
    .flags-and-ally {
        flex-direction: row;  /* Horizontal alignment for larger screens */
        justify-content: space-evenly;
        align-items: center;
        gap: 40px;
    }

    .flags-and-ally .flags {
        width: 120px;
        height: auto;  /* Adjust size for larger screens */
    }

    .flags-and-ally .ally {
        width: 500px;  /* Set a max-width for the ally pledge */
    }

    .acknowledgement-links a {
        font-size: 1.2rem;  /* Larger font for desktop */
    }

    .acknowledgement h2 {
        font-size: 2.4rem;
    }
}

/* Section 3: My Agile Journey */

.bio-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
    /* border: 1px solid var(--action); */
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: var(--primary);
    color: var(--text-light);
    border-radius: 10px;
}

.bio-text h2 {
    font-size: 1.6rem;
    text-align: center;
}

.bio-text p {
    text-align: center;
    padding: 10px;
}

.bio-text a {
    display: flex;
    padding: 5px 10px;
    /* border: 2px solid var(--background-light); */
    color: var(--text-light);
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: .1s;
    font-size: 1rem;
    align-self: center;
    cursor: pointer;
}

.bio-text a:hover {
    color: var(--accent);
    background-color: var(--background-light);
} 

.bio-text a i {
    padding: 5px;
    align-self: center;
}

.bio-text .certificate {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
    gap: 10px;
}

article.news {
    background-color: var(--neutral-light);
    border-radius: 10px;
    padding: 20px;
}

.news h2 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 10px;
}

/* Container for video and certificate images */
.media-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px;
}

.cultural-warning {
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: center;
    margin-top: 10px;
    max-width: 350px;
}

.video-link {
    flex: 1 1 300px;
    position: relative;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
}

.award-certificate {
    flex: 1 1 300px;
    max-width: 350px;
    border-radius: 10px;
    padding: 10px;
    /* aspect-ratio: auto;
    display: flex;
    align-items: center;
    justify-content: center; */
}

.video-thumbnail {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0.8;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .bio-text h2 {
        font-size: 2.4rem; /* Scale up heading */
    }
    .media-container {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
    .certificate-link {
        max-width: 220px;
        /* aspect-ratio: auto; */
    }
}
/* career highligths section in about.html */
.career-highlights {
    padding: 20px;
    text-align: left;
    background-color: var(--primary);
    border-radius: 10px;
    margin-bottom: 10px;
}

.highlights-container h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.highlights-list {
    list-style: none;
    padding-left: 0;
}

.highlights-list li {
    font-size: 1.2rem;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
}

.highlights-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
    color: var(--accent);
}
/* agile-tools in about.html */

section.agile-section {
    background-color: var(--neutral-light);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.agile-section p {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 15px;
    padding: 0 10px;
}

.agile-section h2 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
}
/* Section 4: My tech Skills/interactive tech stack */

.skills-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: var(--neutral-light);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.skills-section h2 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.skills-section .text {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 15px;
    padding: 0 10px;
}

.skills-section .tech-stack-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Skills Card */
.skills-section .tech-stack-container .tech-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    height: 600px;
    overflow: hidden;
    padding-right: 10px;
}

.skills-section .tech-stack-container .tech-card h3 {
    color: #ffffff; /* White for contrast on dark cards */
}

.skills-section .tech-stack-container .tech-card .tech-item-container {
    overflow-y: auto; /* Allow scrolling for overflowing items */
    overflow-x: hidden;
    padding-right: 10px; /* Add some padding for scrollbar spacing */
    box-sizing: border-box;
    height: calc(100% - 40px);
    max-height: 560px;
}
.skills-section .tech-stack-container .tech-card:hover {
    transform: scale(1.05);
}

.skills-section .tech-stack-container .tech-card::-webkit-scrollbar {
    width: 6px;
}

.skills-section .tech-stack-container .tech-card::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 5px;
}
/* Default for mobile */
.skills-section .tech-stack-container .tech-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: center;
    color: #ffffff;
}

/* Styling each tech item (logo + name) following mobile first*/
.skills-section .tech-stack-container .tech-card .tech-item {
    flex: 1 1 100%;
    max-width: 100px; /* Prevent items from growing too large */
    min-width: 80px; /* Prevent items from shrinking too small */
    margin: 10px; /* Space between items */
    padding: 15px; /* Padding inside items */
    background-color: #ffffff; /* Light background for contrast */
    border: 2px solid #ffffff;
    border-radius: 8px; /* Rounded edges for logos */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex; /* Maintain flex layout */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease-in-out; /* Smooth scaling on hover */
    position: relative; /* For tooltip positioning */
    outline: none; /* Avoid default focus outline */
}

/* Styling for the logos */
.skills-section .tech-stack-container .tech-card .tech-item .tech-logo {
    width: 60px;
    height: auto;
    transition: transform 0.3s ease-in-out; /* Smooth enlarge effect */
    object-fit: contain;
    background-color: transparent;
}

/* Hidden by default */
.skills-section .tech-stack-container .tech-card .tech-item .tech-name {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
}

/* Hover effect: Enlarge logo and show tech name */
.skills-section .tech-stack-container .tech-card .tech-item:hover .tech-logo {
    transform: scale(1.2); /* Slightly enlarge */
    background-color: #ffffff; /* Ensure it stays white after hover */
    transition: background-color 0.3s ease-in-out;
}

.skills-section .tech-stack-container .tech-card .tech-item:hover .tech-name {
    opacity: 1;
    visibility: visible;
}

.skills-section .tech-stack-container .tech-card .tech-item:focus {
    outline: 2px solid var(--accent); /* Customize the focus state */
}

/* Media queries for larger screens */
@media (min-width: 768px) {
    .skills-section h2 {
        font-size: 2.4rem; /* Scale up heading */
    }

    .skills-section .text {
        font-size: 1.2rem;
        padding: 0 30px; /* Increase padding on larger screens */
    }

    .skills-section .tech-stack-container {
        gap: 20px; /* More space between tech items */
        padding: 40px; /* Increase padding for larger devices */
    }

    .skills-section .tech-stack-container .tech-card .tech-item {
        max-width: 100px; /* Slightly larger tech item on tablet */
        min-width: 80px;
        flex: 1 1 calc(50% - 20px);
    }
}

/* Media queries for large desktop */
@media (min-width: 1024px) {
    .skills-section .tech-stack-container .tech-card .tech-item {
        max-width: 120px; /* Adjust for large desktops */
        min-width: 100px;
        flex: 1 1 calc(33.33% - 20px); /* Adjust for desktop */
    }
}

/* Make sure touch devices respond to tap with this media query */
@media (hover: none) {
    .skills-section .tech-stack-container .tech-card .tech-item:active .tech-logo {
        transform: scale(1.2); /* Same interaction as hover for mobile */
    }
    
    .skills-section .text {
        font-size: 1.3rem;
        padding: 0 50px;
    }
}

/* Section 5: My tech projects - mobile first */

.project-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    /* border: 1px solid var(--action); */
    background-color: var(--primary);
    color: var(--text-light);
    /* max-width: 1600px; */
    border-radius: 10px;
}

.project-section h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.project-section .project-text {
    text-align: center;
    padding: 10px;
    /* margin-top: 20px; */
    margin-bottom: 20px;
    border: 2px solid var(--background-light);
    border-radius: 5px;
    width: 90%;
}

.project-section .project-text a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    margin-top: 10px;
    border: 2px solid var(--background-light);
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
    color: var(--text-light);
    transition: background-color 0.3s ease;
}

.project-section .project-text a:hover {
    color: var(--accent);
    background-color: var(--neutral-mid);
}

.project-section .project-container {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    width: 100%;
    padding: 0 10px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Project Card */
.project-section .project-container article {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--background-light);
    border: 2px solid var(--background-light);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    min-height: 600px;
    max-height: 100%;
    height: auto;
    overflow-y: auto;
    padding-right: 10px;
}

.project-section .project-container article:hover {
    transform: scale(1.05);
}

.project-section .project-container article::-webkit-scrollbar {
    width: 8px;
}

.project-section .project-container article::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 5px;
}
/* Default for mobile */
.project-section .project-container article h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: center;
    color: var(--text-color);
}

.project-section .project-container article .project-info p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

/* Project Image */
.project-section .project-container .icon {
    width: 80%; /* Ensure images have consistent width */
    max-width: 300px; /* Limit the max size for uniformity */
    height: auto; /* Keep aspect ratio */
    margin-bottom: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    max-height: 200px;
    object-fit: contain;
}

/* Hover effect for images */
.project-section .project-container .icon:hover {
    transform: scale(1.1);
}

/* Flexbox keeps the "See for yourself" link at the bottom */
.project-section .project-container .project-info {
    flex-grow: 1; /* Allow the content to fill available space */
    text-align: center;
    overflow-y: auto;
}

/* Tech stack section within tiles */
.project-section .project-container .project-info .tile-tech-stack {
    margin-top: 10px;
    font-size: 0.9rem;
}

.project-section .project-container .project-info .tile-tech-stack h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.project-section .project-container .project-info .tile-tech-stack ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    list-style: none;
    justify-items: center;
    gap: 10px;
    padding: 0;
    margin: 10px 0;
}

.project-section .project-container .project-info .tile-tech-stack ul li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-basis: 20%;
    text-align: center;
    max-width: 50px;
    margin: 0;
    flex-shrink: 0;
    text-align: center;
}

.project-section .project-container .project-info .tile-tech-stack ul li img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}
/* Links inside project cards */
.project-section .project-container a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding: 10px 20px;
    background-color: var(--primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.project-section .project-container a:hover,
.project-section .project-container a:focus {
    background-color: var(--neutral-mid);
    color: var(--accent);
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .project-section .project-info .tile-tech-stack ul li {
        flex-basis: 40%; /* Increase icon size slightly for mobile */
    }
}

@media (min-width: 768px) {
    .project-section h2 {
        font-size: 2.4rem;
    }
    
    .project-section .project-container {
        grid-template-columns: repeat(2, 1fr); /* Two columns on tablet */
    }

    .project-section .project-container article {
        min-height: 700px;
    }

    .project-section .project-container h3 {
        font-size: 1.5rem; /* Medium size for tablets */
    }
}

@media (min-width: 1024px) {
    .project-section .project-container {
        grid-template-columns: repeat(3, 1fr); /* Three columns on desktop */
    }

    .project-section .project-container article {
        min-height: 800px;
    }

    .project-section .project-container h3 {
        font-size: 1.8rem; /* Larger size for desktops */
    }
}
/* Section 6: Contact */

.contact-form {
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    margin: 40px auto;
    padding: 30px 20px;
    max-width: 800px;
    background-color: var(--neutral-light);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--neutral-mid);
    font-family: "Poppins", sans-serif;
    background-color: var(--background-light);
    color: var(--text-color);
}

input:focus,
textarea:focus {
  outline: 3px solid var(--accent); /* Add a strong focus outline */
  background-color: var(--neutral-light);
}

.contact-form label {
    display: block;
    width: 100%;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.contact-form h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: center;
}

.contact-form form button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background-color: var(--primary);
    border: 1px solid var(--background-light);
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contact-form form button:hover {
    background-color: var(--accent);
}

.contact-form form button:focus {
    outline: 3px solid var(--accent); /* Focus outline for accessibility */
}

@media (max-width: 720px) {
    .contact-form {
       padding: 24px 12px;
    }

    .contact-form h2 {
        font-size: 1.8rem;
    }

    .contact-form form button {
        font-size: 1.1rem;
    }
}

/* footer */
footer {
    margin-top: auto;
    margin-bottom: 10px;
    border: 2px solid var(--background-dark);
    background-color: var(--primary);
    color: var(--text-light);
    text-align: center;
    padding: 20px;
    flex-shrink: 0;
    border-radius: 10px;
}

    /* mobile-first */
footer address {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

footer address a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--background-light);
    border-radius: 10px;
    padding: 5px;
    width: 100px;
    text-align: center;
}

footer address a:hover {
    color: var(--primary);
    background-color: var(--neutral-light);
}

footer address a span {
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 600;
}

footer .socials-icon {
    width: 90px;
    height: auto;
}

footer small {
    display: block;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 400;
}

footer .ally {
    max-width: 80%;
    margin: 10px auto;
}

/* larger screens */
@media (min-width: 768px) {
    footer address {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }

    footer address a {
        width: auto;
    }

    footer .socials-icon {
        width: 100px; /* Larger size for larger screens */
    }

    footer .ally {
        max-width: 500px; /* Adjust ally image size for larger screens */
    }

    footer small {
        font-size: 1rem; /* Larger copyright text on bigger screens */
    }
}