/* HTML Defaults */
/*__________________________________________________________________*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #0f172a;
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  overflow-x: hidden;
}
h1 {
  font-size: 2.4rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  width: 100%;
  overflow-x: hidden;
}
/*__________________________________________________________________*/


/* Container, The Whole Page */
/*__________________________________________________________________*/
.container {
  text-align: left;
  padding-top: 8rem;
  max-width: min(1200px, 100%);
}
/*__________________________________________________________________*/


/* Header Section */
/*__________________________________________________________________*/
/* Site Logo */
/* Site Logo */
.site-logo {
  display: inline-flex;
  align-items: center;
  margin-right: 0.25rem;
}
.site-logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr;
  align-items: center;
  gap: 2rem;
}
.hero-media{
  display: flex;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 0rem;
  align-items: center;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}
.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-logo {
  display: block;
  margin-bottom: 1rem;
}
.hero-logo img {
  padding-top: 1rem;
  height: 110px;
  width: auto; 
  display: block;
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hero Images */
.side-img{
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
}
.side-img:hover{
  border-color: rgba(255, 255, 255, 0.25);
}

/* Profile */
.profile{
  display: flex;
  align-items: center;
  gap: 1rem;
}
.profile h1{
  margin: 0;
}
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Tagline */
.tagline {
  max-width: 520px;
  color: #94a3b8;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.35rem;
}

/* Socials */
.socials {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.social {
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.9rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.social:hover {
  border-color: rgba(255, 255, 255, 0.25);
}
.social .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
}

/* Infos */
.infos {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  color: #cbd5f5;
  text-decoration: none;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
}
.info:hover {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}
.info .icon {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

/* Intros */
.intros{
  margin-top: 1rem;
  max-width: 520px;
}
.intros .divider{
  width: 60px;
  height: 2px;
  background: #38bdf8;
  margin: 1.5rem auto;
}
.intro1,
.intro2{
  max-width: 520px;
  margin: 0;
  color: #cbd5f5;
  line-height: 1.8;
}
.intro1{ margin-bottom: 0.35rem; }

/* Website Status */
.web-status {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
  opacity: 0.9;
}
/*__________________________________________________________________*/


/* Navigation Bar */
/*__________________________________________________________________*/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
}
.navbar a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 0.4rem 0.40rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.navbar a:hover {
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.08);
}
.navbar-label {
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.navbar .site-logo img {
  height: 60px;
  width: auto;
  display: block;
}
/*__________________________________________________________________*/


/* Sections */
/*__________________________________________________________________*/
/* Title */
.section-title {
  font-size: 2.0rem;
  margin-bottom: 1.25rem;
  color: #f3f4f6;
}
.section-title-sm {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: #fff;
  margin: 0 0 0.25rem;
}
.section-title-lg {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Unbounded', sans-serif;
  color: #fff;
  margin: 0 0 0.25rem;
  text-align: center;
  padding-bottom: 0.5rem;
}

/* Section Grids */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.section-col {
  min-width: 0;
}

/* Dividers */
.section-divider-thin {
  width: 100%;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.15),
    transparent
  );
}
.section-divider-wide {
  width: 100%;
  height: 2px;
  margin: 2rem 0;
  background: #38bdf8;
}
.section-divider-accent {
  width: 100%;
  height: 3px;
  margin: 1.5rem 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #22c55e,
    #38bdf8,
    #22c55e
  );
  opacity: 0.85;
}
.section-divider-dotted {
  width: 100%;
  margin: 1.25rem 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.35);
}
.section-divider-title {
  width: 64px;
  height: 3px;
  margin: 0.5rem 0 1.25rem;
  border-radius: 4px;
  background: #38bdf8;
}
/*__________________________________________________________________*/


/* Education Section */
/*__________________________________________________________________*/
/* Education Grid */
.edu-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

/* Education Header */
.edu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Education Section - Left Side (Education Infos) */
.edu-text {
  margin: 0.25rem 0 0;
  color: #94a3b8;
  font-size: 0.9rem;
}
.edu-desc{
  margin: 0.6rem 0 0;
  color: #cbd5f5;
  line-height: 1.7;
}
.edu-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.edu-title h3 {
  margin: 0;
  color: #f3f4f6;
  font-size: 1.05rem;
}
.edu-certs {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.edu-mini{
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}
.edu-mini li{
  padding: 0.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5f5;
}
.edu-mini li:first-child{
  border-top: none;
}

/* Education Section - Right Side (Mini Skills) */
.edu-right {
  display: flex;
  flex-direction: column;
}
.edu-right h4{
  margin: 0;
  color: #f3f4f6;
  font-size: 0.95rem;
}
.edu-skills-scroll {
  margin-top: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-gutter: stable;
}
.edu-skills-scroll::-webkit-scrollbar {
  width: 6px;
}
.edu-skills-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}
.edu-skills-scroll::-webkit-scrollbar-track {
  background: transparent;
}
/*__________________________________________________________________*/


/* Technical Skills Section */
/*__________________________________________________________________*/
/* Skill Section Title */
.skill-title {
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #f3f4f6;
  background-color: #334155;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  width: fit-content;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.skill-title:hover {
  background-color: #475569;
  transform: translateY(-2px);
}

/* Toggle Skill Sections */
.technical-skills details summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.technical-skills details summary.skill-title:hover {
  color: #899eca;
  cursor: pointer;
}
.technical-skills details summary::-webkit-details-marker {
  display: none;
}
.technical-skills details.section-grid {
  display: block;
  margin-bottom: 1rem;
}
.technical-skills details.section-grid .tech-skill-card {
  display: block;
}

/* Skill Card */
.tech-skill-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  padding: 0.5rem 2rem;
  transition: border-color 0.2s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.tech-skill-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.tech-skill-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tech-skill-card-header h3 {
  color: #fff;
  background-color: #373232;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  font-family: 'Syne', sans-serif;
  width: fit-content;
  border-radius: 999px;
  padding: 0.4rem 1rem;
}
.tech-skill-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tech-skill-card-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
}
.skill-badge {
  color: #f3f4f6;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background-color: #373232;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}
.skill-favorite {
  color: rgba(140, 194, 255, 0.931);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background-color: #373232;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}
.skill-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  background-color: #f3f4f6;
}

/* Gap between skill cards */
.technical-skills .tech-skill-card + .tech-skill-card {
  margin-top: 1rem;
}

/* Skill Pills */
.skill-group {
  margin-bottom: 1rem;
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skills-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  color: #94a3b8;
}
.skill-pill {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.8rem;
  color: #e5e7eb;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(15,23,42,0.55);
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: default;
}
.skill-pill:hover {
  background-color: rgba(140, 194, 255, 0.2);
  transform: translateY(-2px);
}
/*__________________________________________________________________*/


/* Experience Sections */
/*__________________________________________________________________*/
/* Experience Section Grids*/
.experience-software .section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.experience-soccer .section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.experience-organizations .section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.experience-running .section-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}
.experience-extra .section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Experience Card */
.experience-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  padding: 10rem 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
  height: 220px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
}
.experience-card .card-header {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}
.experience-card .card-info h3 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  font-family: 'Syne', sans-serif;
}

/* Experience Badges */
.experience-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.experience-badge {
  color: #f3f4f6;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background-color: #373232;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}
.card-type-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: #f3f4f6;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: #2563eb;
  padding: 0.5rem 1.0rem;
  border-radius: 999px;
}

/* Experience Avatar */
.experience-avatar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: #e5e7eb;
}

/* Experience Card Hovering Effects */
.experience-card:hover {
  transform: translateY(-10px) scale(1.10);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}
.experience-card:active {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
/*__________________________________________________________________*/


/* Experience Modals and its elements */
/*__________________________________________________________________*/
/* Experience Card Modals */
.exp-modal {
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: modalIn 1.0s ease;
}

/* Experience Modal Overlays */
.exp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

/* Used to make Modals display */
.exp-modal-overlay.active {
  display: flex;
}
/* Animation for Modals Appearing */
@keyframes modalIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Modal Close Buttons */
.exp-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exp-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Modal Header: Title and Avatar */
.exp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0rem;
}
.exp-modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  margin: 0;
  padding-right: 2rem;
  font-style: italic;
}
.exp-modal-avatars {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-shrink: 0;
}
.exp-modal-avatar-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: #e5e7eb;
}

/* Modal Badges */
.exp-modal-badges {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}
.exp-modal-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: #2563eb;
  color: #f3f4f6;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  width: fit-content;
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: default;
}
.exp-modal-badge:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}

/* Modal Meta Infos: Date and Location */
.exp-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.exp-modal-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.exp-modal-date,
.exp-modal-location {
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Modal Summaries */
.exp-modal-summary {
  font-size: 0.9rem;
  color: #cbd5f5;
  line-height: 1.65;
  margin: 0;
}

/* Modal Bulletpoint Lists */
.exp-modal-bullets {
  padding-left: 1.1rem;
  margin: 0;
  color: #cbd5f5;
  font-size: 0.875rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* Modal Highlights List */
.exp-modal-highlights-label {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}
.exp-modal-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Modal Skills Lists */
.exp-modal-skills-label {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}
.exp-modal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Modal Certifications */
.exp-modal-certifications-label {
  display: block;
  font-size: 1.0rem;
  color: #94a3b8;
}
.exp-modal-certificates {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.8rem;
}
.exp-modal-certificate {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(140, 194, 255, 0.931);
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(140, 194, 255, 0.3);
  border-radius: 8px;
  width: fit-content;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.exp-modal-certificate:hover {
  background: rgba(140, 194, 255, 0.1);
}

/* Modal Additional Links */
.exp-modal-links-label {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}
.exp-modal-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.exp-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(140, 194, 255, 0.931);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(140, 194, 255, 0.3);
  border-radius: 8px;
  width: fit-content;
  flex: 0 0 auto;
  transition: background 0.2s ease;
}
.exp-modal-link:hover {
  background: rgba(140, 194, 255, 0.1);
}

/* Modal Project Demo Button */
.exp-modal-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(140, 194, 255, 0.931);
  text-decoration: none;
  border: 1px solid rgba(140, 194, 255, 0.3);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  width: fit-content;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.exp-modal-demo:hover {
  background: rgba(140, 194, 255, 0.1);
  border-color: rgba(140, 194, 255, 0.6);
}

/* Modal Photos */
.exp-modal-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 0.6rem;
}
.exp-modal-photo-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Modal PDF */
.exp-modal-pdf-box {
  width: 100%;
  height: 300px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.exp-modal-pdf {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Modal Video */
.exp-modal-video-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.exp-modal-video {
  width: 100%;
  height: 100%;
  display: block;
}
/*__________________________________________________________________*/



/* Scrollable Image Slider */
/*__________________________________________________________________*/
.slide-media {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: 2rem;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
}
.slide-img {
  flex: 0 0 auto;
  width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  scroll-snap-align: start;
  transition: border-color 0.2s ease;
}
.slide-img:hover {
  border-color: rgba(255, 255, 255, 0.25);
}
.slide-media::-webkit-scrollbar {
  height: 6px;
}
.slide-media::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}
/*__________________________________________________________________*/



/* Soccer Playing Reels */
/*__________________________________________________________________*/
.reel-scroll-row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
}
.reel-scroll-row .reel-tile {
  flex: 0 0 480px;
}
.reel-scroll-row::-webkit-scrollbar {
  height: 6px;
}
.reel-scroll-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}
.reel-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.reel-tile iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}
.reel-overlay {
  padding: 0.75rem 1rem;
}
.reel-overlay h3 {
  font-size: 0.95rem;
  color: #fff;
  margin: 0 0 0.25rem;
}
.reel-overlay span {
  font-size: 0.8rem;
  color: #94a3b8;
}
/*__________________________________________________________________*/


/* Personal Bio */
/*__________________________________________________________________*/
.about {
  display: grid;
  grid-template-columns: 5.2fr 2.2fr;
  gap: 2rem;
  align-items: center;
  margin: 2.5rem 0;
}
.bio-card {
  height: 480px;
  overflow-y: auto;
  position: relative;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0;
  text-align: left;
}
.bio-media {
  display: flex;
  justify-content: center;
}
.bio-img {
  width: 100%;
  max-width: 420px;
  height: 480px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.bio-card-head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #334155;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bio-card-body {
  min-height: 240px;
  padding: 0.9rem 1.25rem 1.25rem;
  list-style: none;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.04);
}
/*__________________________________________________________________*/


/* Org Cards */
/*__________________________________________________________________*/
.org-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  padding: 1.1rem 1.25rem;
  transition: border-color 0.2s ease;
}
.org-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.org-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.org-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.org-meta h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #f3f4f6;
}
.org-meta p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}
/*__________________________________________________________________*/


/* Contact Section */
/*__________________________________________________________________*/
.contact-section {
  margin: 3rem 0;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 560px;
  margin: 0 auto;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-field label {
  font-size: 0.85rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
}
.contact-field input,
.contact-field textarea {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #e5e7eb;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(148, 163, 184, 0.5);
}
.contact-send {
  align-self: flex-start;
  background-color: #2563eb;
  color: #f3f4f6;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.contact-send:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}
/*__________________________________________________________________*/


/* Mobile UI Styling*/
/*__________________________________________________________________*/
@media (max-width: 650px) {

  /* Base */
  body, html { overflow-x: hidden; }
  h1 { font-size: 1.8rem; }
  .container { padding: 5rem 1rem 2rem; max-width: 100%; }

  /* Hero */
  .site-logo img { height: 28px; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-media { order: 2; }
  .hero-logo img { height: 52px; }
  .side-img { width: 200px; height: 280px; }
  .profile { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .avatar { width: 72px; height: 72px; }
  .tagline { font-size: 0.8rem; }
  .intros, .intro1, .intro2 { max-width: 100%; }

  /* Navbar */
  .navbar { overflow-x: auto; justify-content: flex-start; padding: 0.6rem 1rem; -webkit-overflow-scrolling: touch; }
  .navbar a { font-size: 0.75rem; white-space: nowrap; }
  .navbar-label { font-size: 0.75rem; }
  .navbar .site-logo img { height: 40px; }

  /* Sections & grids — !important beats inline styles */
  .section-title { font-size: 1.5rem; }
  .section-title-sm { font-size: 1.4rem; }
  .section-title-lg { font-size: 1.8rem; }
  .section-grid { grid-template-columns: 1fr !important; gap: 1.25rem; }
  .experience-software .section-grid,
  .experience-soccer .section-grid,
  .experience-organizations .section-grid,
  .experience-running .section-grid,
  .experience-extra .section-grid { grid-template-columns: 1fr !important; gap: 1.25rem; }

  /* Education */
  .edu-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .edu-header { flex-direction: column; align-items: flex-start; }
  .edu-avatar { width: 52px; height: 52px; }
  .edu-skills-scroll { max-height: 160px; }

  /* Skills */
  .skill-title { font-size: 1.1rem; padding: 0.45rem 0.85rem; }
  .tech-skill-card { padding: 0.5rem 1rem; }
  .tech-skill-card-header h3 { font-size: 17px; }
  .skill-avatar { width: 56px; height: 56px; }

  /* Experience cards */
  .experience-card { height: 200px; padding: 1rem; }
  .experience-card .card-info h3 { font-size: 1.1rem; }
  .experience-avatar { width: 52px; height: 52px; }
  .card-type-badge { font-size: 0.6rem; padding: 0.35rem 0.7rem; }
  .experience-badge { font-size: 0.65rem; padding: 0.25rem 0.7rem; }
  .experience-card:hover { transform: translateY(-4px) scale(1.02); }

  /* Modals */
  .exp-modal { width: 94%; max-height: 90vh; padding: 1.25rem; gap: 0.85rem; overflow-x: hidden; }
  .exp-modal-title { font-size: 1.05rem; padding-right: 1rem; }
  .exp-modal-avatar-img { width: 42px; height: 42px; }
  .exp-modal-header { align-items: flex-start; }
  .exp-modal-photos { grid-template-columns: 1fr !important; }
  .exp-modal-pdf-box { height: 220px; }
  .exp-modal-badge { width: fit-content; }
  .exp-modal-bullets { font-size: 0.82rem; }
  .exp-modal-summary { font-size: 0.85rem; }
  .exp-modal-certificate { white-space: normal; }
  .exp-modal-highlights .skill-pill, .exp-modal-pills .skill-pill { 
    white-space: normal; text-align: center; 
    max-width: 100%; 
    overflow-wrap: break-word;
    flex-shrink: 1;
  }
  .exp-modal-close {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    background: rgba(142, 134, 134, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    top: 0.75rem;
    right: 0.75rem;
    position: sticky;
    z-index: 10;
  }

  /* Reels */
  .reel-scroll-row .reel-tile { flex: 0 0 300px; }
  .reel-overlay h3 { font-size: 0.85rem; }
  .reel-overlay span { font-size: 0.72rem; }

  /* Slide media */
  .slide-img { width: 200px; height: 280px; }

  /* Bio */
  .about { grid-template-columns: 1fr; gap: 1.5rem; }
  .bio-card { height: auto; max-height: 420px; }
  .bio-img { max-width: 100%; height: 340px; }

  /* Org cards */
  .org-card { padding: 0.9rem 1rem; }
  .org-avatar { width: 40px; height: 40px; }

  /* Contact */
  .contact-form { max-width: 100%; }
  .contact-send { width: 100%; }
}
/*__________________________________________________________________*/