/*——————————————————————————————————————————————————————————
  1) Theme variables
——————————————————————————————————————————————————————————*/
:root {
  /* Dark mode (default) */
  --bg-color:       #0a0f28;   /* deep navy */
  --text-color:     #ffffff;   /* white text */
  --link-opacity:   0.8;
  --card-bg:        rgba(255,255,255,0.05);
  --card-bg-light:  rgba(0,0,0,0.05);
}

body.light-mode {
  /* Light mode overrides */
  --bg-color:       #ffffff;   /* pale background */
  --text-color:     #000000;   /* dark text */
  --link-opacity:   0.8;
}

/*——————————————————————————————————————————————————————————
  2) Reset & Base
——————————————————————————————————————————————————————————*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/*——————————————————————————————————————————————————————————
  3) Canvas & Stacking - Fixed for smooth flow
——————————————————————————————————————————————————————————*/
#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: -1;
  pointer-events: none;
}

/* Ensure all content sits above the canvas with proper stacking */
.site-header,
.hero,
.actions,
#experience,
#featured-projects,
#professional-experience,
#contact,
.site-footer {
  position: relative;
  z-index: 1;
}

/*——————————————————————————————————————————————————————————
  4) Header & Nav
——————————————————————————————————————————————————————————*/
.site-header {
  width: 100%;
  padding: 1rem 2rem;
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
}

.site-header .logo {
  margin-right: 1rem;
}

.site-header .logo img {
  display: block;
  height: 50px;
  width: auto;
}

.header-controls {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.site-header nav a {
  margin-left: 1.5rem;
  color: var(--text-color);
  opacity: var(--link-opacity);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
  position: relative;     
  transition: opacity 0.3s;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;            /* adjust up/down to taste */
  width: 0;
  height: 2px;             /* thickness of the line */
  background: var(--text-color);
  transition: width 0.3s ease;
}

.site-header nav a:hover {
  opacity: 1;
}

.site-header nav a:hover::after {
  width: 100%;
}

/*——————————————————————————————————————————————————————————
  5) Mode Toggle Button
——————————————————————————————————————————————————————————*/
.mode-switch-btn {
  background: transparent;
  border: 1px solid var(--text-color);
  border-radius: 50%;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s;
  margin-left: 1rem;
}

.mode-switch-btn:hover {
  border-color: var(--text-color);
}

.mode-switch-btn .iconify {
  font-size: 1.25rem;
  color: var(--text-color);
}

/*——————————————————————————————————————————————————————————
  6) Hero (Centered Flex)
——————————————————————————————————————————————————————————*/
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 0 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-color);
  margin: 0;
  white-space: nowrap;
  position: relative;
}

/* rolling‐text container inside the h1 */
.hero h1 .greeting {
  display: inline-block;
  position: relative;
  height: 1.2em;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: -10px;
  width: 9ch;
}

/* the spans that slide in/out vertically */
.greeting span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.greeting span.active {
  opacity: 1;
  transform: translateY(0);
}

.greeting span.exit {
  opacity: 0;
  transform: translateY(-100%);
}

.hero p {
  max-width: 700px;
  margin: 1.5rem auto 0;
  line-height: 1.6;
  font-size: 1.125rem;
  text-align: center;
}

/*——————————————————————————————————————————————————————————
  7) Action Buttons
——————————————————————————————————————————————————————————*/
.actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 3rem 0;
  position: relative;
  z-index: 2;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-color);
  border: 1px solid var(--text-color);
  border-radius: 4px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.action-btn .iconify {
  margin-right: 0.5rem;
}

.action-btn:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

/*——————————————————————————————————————————————————————————
  8) Projects Grid (if still used)
——————————————————————————————————————————————————————————*/
.projects {
  position: relative;
  margin: 4rem auto;
  display: grid;
  grid-auto-flow: column;
  gap: 2rem;
  justify-content: center;
  z-index: 2;
}

.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  width: 200px;
  text-align: center;
  color: var(--text-color);
}

body.light-mode .project-card {
  background: var(--card-bg-light);
}

.project-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.project-card p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.project-card a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

/*——————————————————————————————————————————————————————————
  9) Footer
——————————————————————————————————————————————————————————*/
.site-footer {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-color);
  padding: 2rem 0;
  position: relative;
  z-index: 2;
}

.site-footer span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  opacity: 0.6;
  color: var(--text-color);
}

/*——————————————————————————————————————————————————————————
  10) Logo Sizing
——————————————————————————————————————————————————————————*/
#logo-img {
  height: 100px;
  width: auto;
  display: block;
}

/*——————————————— Skills / Experience Cards ————————————————*/

/* EXPLORE MY / SKILLS heading */
#experience {
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 2;
}

#experience .section__text__p1 {
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 45%;          
  margin-bottom: 0.25rem;
}

#experience .title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-color);
  margin-left: 45%;
}

/* container now lays out each card individually */
.experience-details-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1000px;
}

.details-container .article-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem; 
}

.details-container.other-tools {
  grid-column: 1 / -1;
}

/* style each details-container as a card */
.details-container {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: left;
  flex-direction: column;
  margin-bottom: 2rem;
}

.details-container.other-tools .article-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 1rem;
  column-gap: 2rem;
}

/* subtitle for each card */
.experience-sub-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

/* list inside each card */
.article-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* each skill row */
.article-container article {
  display: flex;
  align-items: center;
}

/* the Phosphor checkmark */
.skill-icon {
  font-size: 1rem;
  color: var(--text-color);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* skill name & level */
.article-container h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}
.article-container p {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.7;
  color: var(--text-color);
}

/* arrow at bottom of section */
#experience .arrow {
  width: 2rem;
  margin-top: 2rem;
  cursor: pointer;
  filter: invert(1);
  transition: transform 0.3s;
}
#experience .arrow:hover {
  transform: translateY(4px);
}

/* ————————————————— Scroll Buttons ————————————————— */
.scroll-btn {
  position: fixed;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  line-height: 1;
  border: 1px solid var(--text-color);
  background: var(--bg-color);
  color: var(--text-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: 
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.scroll-btn:hover {
  background: var(--text-color);
  color: var(--bg-color);
  transform: translateY(-3px);
}

.scroll-btn-down {
  bottom: 1rem;
}

.scroll-btn-up {
  top: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.scroll-btn-up.visible {
  opacity: 1;
  pointer-events: auto;
}

/*——————————————————————————————————————————————————————————
  Featured Projects Section (one full-width card per row)
——————————————————————————————————————————————————————————*/
#featured-projects {
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 2;
}

#featured-projects .section__text__p1 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 0.25rem;
  color: var(--text-color);
  text-align: center;
}
#featured-projects .title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text-color);
  text-align: center;
}

.projects-details-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  display: inline-block;
  align-self: flex-start; 
  background: rgba(255,255,255,0.2);
  color: var(--text-color);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.project-card {
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: 
    box-shadow 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-color);
  box-shadow: 0 0 15px 2px rgba(255,255,255,0.6);
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: left;
}

.project-brief {
  font-size: 1rem;
  opacity: 0.8;
  color: var(--text-color);
  text-align: left;
}

.project-timeline {
  font-size: 0.875rem;
  opacity: 0.6;
  color: var(--text-color);
  text-align: left;
}

.project-impact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.project-impact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.project-impact li .iconify {
  flex-shrink: 0;
  color: var(--text-color);
  font-size: 1rem;
  margin-top: 0.2rem;
}

.project-btn-container {
  margin-top: 2rem;
  text-align: center;
  position: relative;  
  z-index: 2;
}
.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--text-color);
  border-radius: 4px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.btn-github:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

/*——————————————————————————————————————————————————————————
  Professional Experience (Tabbed Interface)
——————————————————————————————————————————————————————————*/
#professional-experience {
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 2;
}

#professional-experience .section__text__p1 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 0.25rem;
  color: var(--text-color);
  text-align: center;
}
#professional-experience .title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text-color);
  text-align: center;
}

.prof-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 3;
}
.tab-btn {
  background: transparent;
  border: 1px solid var(--text-color);
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  position: relative;
  z-index: 4;
  transition:
    background-color 0.3s,
    color 0.3s,
    box-shadow 0.2s;
}
.tab-btn.active,
.tab-btn:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tab-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}
.tab-panel {
  display: none;
  position: relative;
  z-index: 2;
}
.tab-panel.active {
  display: inline-block;
  width: 100%;
  max-width: 1000px;
}

#professional-experience .detail-container {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  transition:
    box-shadow 0.3s ease,
    transform  0.3s ease,
    border-color 0.3s ease;
}

#professional-experience .detail-container:hover {
  transform: translateY(-4px);
  border-color: var(--text-color);
  box-shadow: 0 0 15px 2px rgba(255,255,255,0.6);
}

.job-meta {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
  text-align: left;
}
.job-timeline {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 0.75rem;
  text-align: left;
}

.publication-list,
.cert-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.publication-list li,
.cert-list li {
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.publication-list a {
  text-decoration: underline;
  color: var(--text-color);
}

#professional-experience .tab-panel p {
  font-size: 1rem;
  opacity: 0.8;
  text-align: left;
  margin-top: 1rem;
}

.publications-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  transition:
    border-color 0.3s ease,
    box-shadow    0.3s ease,
    transform     0.3s ease;
}

.publications-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-color);
  box-shadow: 0 0 15px 2px rgba(255,255,255,0.6);
}

.publications-card .publication-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.publications-card .publication-list li {
  margin-bottom: 1rem;
  line-height: 1.4;
}

.publications-card .publication-list a {
  color: var(--text-color);
  text-decoration: underline;
}

/*——————————————————————————————————————————————————————————
   Certifications → 4 Separate Cards with Glow on Hover
——————————————————————————————————————————————————————————*/
.certifications-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.cert-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition:
    border-color 0.3s ease,
    box-shadow    0.3s ease,
    transform     0.3s ease;
}

.cert-card a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  display: block;
  line-height: 1.4;
}

.cert-card:hover {
  border-color: var(--text-color);
  box-shadow: 0 0 15px 2px rgba(255,255,255,0.6);
  transform: translateY(-4px);
}

/*——————————————————————————————————————————————————————————
  Contact Section (Iconify Phosphor icons)
——————————————————————————————————————————————————————————*/
#contact {
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

#contact .section__text__p1 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

#contact .title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-icon {
  font-size: 1.75rem;
  color: var(--text-color);
  flex-shrink: 0;
}

.contact-info-container a {
  font-size: 1.125rem;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-info-container a:hover {
  color: rgba(255,255,255,0.8);
}

.contact-info-container:hover {
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 0.25rem 0.75rem;
}

#contact .contact-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

#contact .contact-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition:
    border-color 0.3s ease,
    box-shadow    0.3s ease,
    transform     0.3s ease;
  cursor: default;
}

#contact .contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--text-color);
  box-shadow: 0 0 15px 2px rgba(255,255,255,0.6);
}

#contact .contact-icon {
  font-size: 1.75rem;
  color: var(--text-color);
  flex-shrink: 0;
}

#contact a {
  font-size: 1.125rem;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

#contact a:hover {
  color: rgba(255,255,255,0.8);
}

/* ————————— About Modal Styles ————————— */
.modal-overlay {
  position: fixed;
  inset: 0;                        /* top/right/bottom/left:0 */
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;                   /* hidden by default */
  align-items: center;             /* centers modal vertically */
  justify-content: center;         /* centers modal horizontally */
  z-index: 9999;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  position: relative;
  background: var(--bg-color);
  color: var(--text-color);
  border-radius: 1rem;
  max-width: 1000px;
  width: 90%;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 24px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: 0.75rem; right: 1rem;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-header {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.modal-pic {
  flex-shrink: 0;
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--text-color);
}

.modal-info h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.modal-info p {
  margin: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-info a {
  color: var(--text-color);
  text-decoration: underline;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-body h3 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.modal-body section + section {
  margin-top: 1rem;
}

/*——————————————————————————————————————————————————————————
  RESPONSIVE BREAKPOINTS & MEDIA QUERIES
——————————————————————————————————————————————————————————*/

/* Mobile First Adjustments */
@media (max-width: 768px) {
  /* Header adjustments */
  .site-header {
    padding: 1rem;
  }
  
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }
  
  .header-controls {
    margin-left: 0;
  }
  
  .site-header nav a {
    margin-left: 1rem;
    font-size: 0.9rem;
  }
  
  #logo-img {
    height: 60px;
  }

  /* Hero section */
  .hero {
    min-height: 50vh;
    padding: 0 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero h1 .greeting {
    width: 7ch;
  }
  
  .hero p {
    font-size: 1rem;
    margin: 1rem auto 0;
  }

  /* Action buttons */
  .actions {
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
  }
  
  .action-btn {
    width: 200px;
    justify-content: center;
  }

  /* Experience section */
  #experience .section__text__p1,
  #experience .title {
    margin-left: 0;
    text-align: center;
  }
  
  .experience-details-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .details-container {
    padding: 1.5rem 1rem;
  }
  
  .details-container .article-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .details-container.other-tools .article-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Featured projects */
  #featured-projects {
    padding: 3rem 1rem;
  }
  
  .projects-details-container {
    padding: 0 0.5rem;
  }
  
  .project-card {
    padding: 1.5rem;
  }
  
  .project-title {
    font-size: 1.1rem;
  }
  
  .project-tags {
    justify-content: flex-start;
  }

  /* Professional experience */
  #professional-experience {
    padding: 3rem 1rem;
  }
  
  .prof-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .tab-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  #professional-experience .detail-container {
    padding: 1.5rem;
  }
  
  .certifications-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Contact section */
  #contact {
    padding: 3rem 1rem;
  }
  
  .contact-cards {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .contact-card {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Scroll buttons */
  .scroll-btn {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }
  
  .scroll-btn-down {
    right: 0.5rem;
    bottom: 0.5rem;
  }
  
  .scroll-btn-up {
    right: 0.5rem;
    top: 0.5rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero h1 .greeting {
    width: 6ch;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .action-btn {
    width: 180px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .details-container.other-tools .article-container {
    grid-template-columns: 1fr;
  }
  
  .project-card {
    padding: 1.2rem;
  }
  
  .prof-nav {
    padding: 0 0.5rem;
  }
  
  .tab-btn {
    width: 100%;
    max-width: 200px;
  }
  
  #contact .title {
    font-size: 2rem;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .experience-details-container {
    max-width: 800px;
  }
  
  .details-container.other-tools .article-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .certifications-container {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

/* Large screens - ensure content doesn't get too wide */
@media (min-width: 1400px) {
  .hero {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .experience-details-container,
  .projects-details-container,
  .tab-panel {
    max-width: 1200px;
  }
}