/* GENERAL */

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  background: none;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  visibility: hidden; /* keeps closed-menu links out of the tab order */
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 400px;
  visibility: visible;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
display: flex;
  flex-wrap: wrap; /* ADD THIS: Allows cards to move to the next row */
  justify-content: center; /* Keeps cards centered if they wrap */
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
  border-radius: 50%;
}

/* EXPERIENCE SECTION */
/* --- EXPERIENCE SECTION LAYOUT --- */

#experience {
  position: relative;
  height: auto; /* Dynamically sizes depending on screen resolution */
  padding-bottom: 8vh;
}

/* Base Wrapper for the 3 Primary Focus Containers */
.experience-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* five boxes: three on the first row, then AI/ML beside a wider Core Concepts */
.core-concepts-box {
  grid-column: span 2;
}

/* Uniform Skills Grid inside each Details Box */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Clean 2-column alignment */
  gap: 1.5rem 1rem;
  text-align: left;
  padding: 0.5rem;
}

#experience article {
  display: flex;
  width: 100%; /* Removes the rigid 10rem restriction */
  gap: 0.75rem;
  align-items: flex-start;
}

#experience article h3 {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Styled inline icons using FontAwesome instead of heavy standard images */
.skill-check-icon {
  color: #2E7D32;
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablet Optimization (Medium Devices) */
@media screen and (max-width: 1024px) {
  .experience-grid-wrapper {
    grid-template-columns: repeat(2, 1fr); /* 2 blocks wide */
  }
  
  /* Make the 3rd column box (Core Concepts) take full span underneath */
  .core-concepts-box {
    grid-column: span 2;
  }
}

/* Mobile Layout Execution */
@media screen and (max-width: 600px) {
  .experience-grid-wrapper {
    grid-template-columns: 1fr; /* 1 vertical card stack */
  }
  
  .core-concepts-box {
    grid-column: span 1;
  }

  .skills-grid {
    grid-template-columns: 1fr; /* Single column items inside for easy readability */
    gap: 1rem;
  }
}






.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  min-height: 26vh;
  padding-bottom: 2rem;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}
.skill {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.skill h3,
.skill p {
  text-align: left;
  flex-wrap: wrap;
  max-width: 100%;
}
.highlight-name {
  color: black;
  font-weight: bold;
}
/* --- Makes Profile Pictures Circular --- */

/* This targets your main profile picture in the hero section */
#profile .section__pic-container img {
  border-radius: 50%;
  object-fit: cover;
}

/* This targets the picture in your "About Me" section */


/* --- Makes Icons Circular --- */

/* This targets the LinkedIn/GitHub icons under your name */
#socials-container .icon {
  border-radius: 50%;
}

/* This targets the Email/LinkedIn icons in the "Contact Me" section */
.contact-info-container .icon {
  border-radius: 50%;
}

/* This targets the small icons for Experience and Education
in your "About Me" section. You can remove this
block if you want to keep them square.
*/
#about .details-container .icon {
  border-radius: 50%;
}
/* --- Makes ONLY the main profile picture circular --- */
#profile .section__pic-container img {
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #333; /* Example: 4px thick, solid, dark grey border */
}

/* --- Image Modal Styles --- */
.modal-overlay {
  position: fixed; /* Sits on top of the page */
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* Black backdrop */
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  overflow: auto; 
}

.modal-content {
  position: relative;
  margin: auto;
  max-width: 85%;
  max-height: 85%;
}

.modal-image {
  width: 100%;
  height: auto;
  max-width: 80vw; /* Max 80% of viewport width */
  max-height: 80vh; /* Max 80% of viewport height */
  object-fit: contain;
  display: none; /* Hide all images by default */
}

/* The Close Button */
.close-btn {
  background: none;
  border: 0;
  line-height: 1;
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.close-btn:hover {
  color: #bbb;
}
/* --- Coding Profiles Section --- */
.coding-profiles-container {
  width: 80%;
  margin: 0 auto;
  padding-top: 2rem;
}

.profile-link-bar {
  display: flex;
  align-items: center;
  padding: 1.2rem 2rem; /* Made padding a bit smaller */
  margin-bottom: 1.5rem;
  border: 1px solid rgb(163, 163, 163);
  border-radius: 2rem;
  background: white;
  text-decoration: none;
  color: black;
  transition: all 0.3s ease;
}

.profile-link-bar:hover {
  background: rgb(240, 240, 240);
  border-color: black;
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-logo {
  height: 35px; /* Adjusted logo size */
  width: auto;
  margin-right: 1.5rem;
}

.profile-username {
  font-size: 1.2rem; /* Adjusted font size */
  font-weight: 600;
}

.profile-stats {
  font-size: 1.1rem;
  color: #008000; /* Green color for stats */
  margin-left: auto; /* Pushes stats to the right */
  margin-right: 1.5rem;
  font-weight: 600;
}

.profile-arrow {
  font-size: 1.2rem;
  color: #008000; /* Green color for arrow */
}
#certificates .details-container {
  min-width: 250px; /* Adjust this value to match your desired width */
  max-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#experience .about-containers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* This ensures containers move to a new line when out of space */
  gap: 2rem;
}
.profile-link-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Keeps items aligned to the left */
  overflow: hidden; /* Prevents text from spilling out */
  white-space: nowrap; /* Keeps username on one line */
}

.profile-username {
  flex-shrink: 1; /* Allows name to shrink slightly if needed */
  overflow: hidden;
  text-overflow: ellipsis; /* Adds '...' if the name is too long */
}

.profile-arrow {
  margin-left: auto; /* Always pushes the arrow to the far right */
  flex-shrink: 0; /* Prevents the arrow from getting squashed */
}
/* Concepts 2-column grid */
.concepts-container .article-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  justify-items: start;
}


/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 2000;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #000;
  color: #fff;
  font-weight: 600;
}

.skip-link:focus,
.skip-link:hover {
  top: 1rem;
  color: #fff;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid #1a56db;
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

.close-btn:focus-visible {
  outline-color: #fff;
}

/* Section headings are h2/h3 now; keep the old visual size */
.experience-sub-title {
  font-size: 1.5rem;
}

/* Icon links (social icons, "next section" arrows) */
#socials-container a {
  display: inline-flex;
  line-height: 0;
  border-radius: 50%;
}

a.arrow {
  line-height: 0;
  border-radius: 50%;
}

/* images with width/height attributes: let CSS height drive the size */
.icon {
  width: auto;
}

/* Buttons that are now real links share the button look */
.btn {
  box-sizing: border-box;
  width: auto;
  min-width: 8rem;
  padding: 1rem 1.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: nowrap;
}

a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

a.btn:hover {
  text-decoration: none;
}

a.btn-color-1,
a.btn-color-1:hover {
  color: #fff;
}

a.btn-color-2:hover,
a.btn-color-2.project-btn:hover,
.btn-color-2.project-btn:hover {
  color: #fff;
}

/* ==========================================================
   SKILL CHIPS
   ========================================================== */

.chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
  padding: 0.5rem 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgb(163, 163, 163);
  border-radius: 2rem;
  background: #fff;
  color: #222;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: default;
  transition: transform 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, background-color 0.2s ease;
}

.chip img {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.chip i {
  width: 1.25rem;
  flex: none;
  text-align: center;
  color: #444;
}

.chip:hover {
  transform: translateY(-3px);
  border-color: #000;
  background: rgb(245, 245, 245);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.chip-group-title {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
  text-align: center;
}

.chip-group-title:first-of-type {
  margin-top: 0.25rem;
}

/* ==========================================================
   LIVE DEMO STATUS NOTE
   ========================================================== */

.demo-status {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: left;
  color: #555;
}

.demo-dot {
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: #8a8a8a;
}

[data-state="waking"] .demo-dot {
  background: #d98e04;
  animation: demo-pulse 1.2s ease-in-out infinite;
}

[data-state="ready"] .demo-dot {
  background: #2e7d32;
}

[data-state="slow"] .demo-dot {
  background: #b3261e;
}

@keyframes demo-pulse {
  50% {
    opacity: 0.3;
  }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .chip:hover,
  .profile-link-bar:hover {
    transform: none;
  }
}


:root {
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ==========================================================
   SYSTEM STATUS BOARD (footer)
   ========================================================== */

.status-board {
  max-width: 64rem;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgb(163, 163, 163);
  border-radius: 2rem;
  background: #fff;
}

.status-title {
  margin-bottom: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.9rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.status-item dt {
  margin-bottom: 0.2rem;
  color: #555;
  font-size: 0.74rem;
}

.status-item dd {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #222;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.status-item dd a {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.status-item .st-when {
  display: block;
  color: #555;
  font-size: 0.74rem;
}


/* Every section is the positioning context for its "next section" arrow.
   Before, the arrows in some sections were placed against the page edge and
   pushed the page about 80px wider than the screen. */
section {
  position: relative;
}
