.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 40px;
  backdrop-filter: blur(10px);
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.hero-bottom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}


/* === SKILLS SCROLL GRID (TWO ROWS, SCROLLABLE) === */
.skills-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0;
}


/* === APP SHOWCASE WRAPPER === */
.appshowcase-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 32px;
  padding: 0 24px 40px;
  scroll-padding: 24px;
  margin-top: 0 !important;
}

.appshowcase-slide {
  flex: 0 0 89%;
  scroll-snap-align: start;
  border-radius: 20px;
  background: white;
  padding: 32px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.appshowcase-header-row {
  display: flex;
  gap: 24px;
  align-items: center;
}

.appshowcase-thumb img {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.appshowcase-title-meta {
  flex: 1;
}

.appshowcase-title-meta h2 {
  margin: 0 0 8px 0;
  font-size: 2rem;
}

.app-type {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #555;
}

.app-meta-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.view-more-link {
  font-weight: 600;
  color: #1d3557;
  transition: color 0.2s;
}

.view-more-link:hover {
  color: #13314d;
  text-decoration: underline;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 10px;
}

.app-description {
  text-align: justify;
  line-height: 1.7;
  font-size: 1rem;
  color: #333;
}

.app-carousel {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  scroll-snap-type: x mandatory;
  padding-right: 40px;
}

.carousel-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: white;
}

.carousel-slide img {
  height: 220px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 16px;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  display: inline-block;
  background: #f0f3f7;
  color: #222;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid #dfe3e8;
  white-space: nowrap;
}


/* === IMAGE MODAL === */
.image-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.image-modal-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.image-modal-content {
  max-width:100%;
  max-height: 100%;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.image-modal-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


.image-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10000;
}

.image-modal-close:hover {
  background: #eee;
}


.image-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  font-weight: bold;
  color: #111;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  z-index: 10001;  /* ⬅️ Ensure it’s higher than modal itself */
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.image-arrow.left {
  left: 10px;
}

.image-arrow.right {
  right: 10px;
}

.image-modal-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain; /* ✅ Ensures entire image is visible */
  display: block;
  margin: 0 auto;
}


/* === COLLAPSIBLE TEXT === */
.toggle-description {
  max-height: 8.5em;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}

.toggle-description.expanded {
  max-height: none;
}

.read-more-toggle {
  background: none;
  border: none;
  color: #1d3557;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 0;
  display: inline-block;
  transition: color 0.2s ease;
}

.read-more-toggle:hover {
  color: #13314d;
}


/* === ABOUT SECTION LAYOUT === */
.about-two-column {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.about-two-column > div {
  flex: 1;
  min-width: 280px;
}

.about-skills-section {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-tags-column {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
}


/* === FOOTER === */
.gama-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 30px 80px;
  background: #fafafa;
  border-radius: 24px;
  flex-wrap: wrap;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.05);
}

.gama-footer-bottom {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.gama-floating-pill {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  margin-bottom: 6px;
}

.gama-floating-pill a {
  background: linear-gradient(90deg, #ff8a00, #e52e71, #9b00ff, #00e0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  text-decoration: none;
}

.gama-logo {
  height: 90px;
  max-width: 200px;
  object-fit: contain;
  padding-left: 20px;
}

.gama-copyright {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}


/* === SKILLS === */
.skills-section {
  margin-top: 60px;
}

.skills-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

h2.section-heading {
  margin-top: 40px !important;
  margin-bottom: 2px;
}


/* === DEVICE BADGE === */
.device-badge {
  position: fixed;
  bottom: 10px;
  right: 10px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 8px;
  z-index: 9999;
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  pointer-events: none;
}

.device-badge.desktop-version {
  background-color: #111;
}

.device-badge.ipad-version {
  background-color: #005fbb;
}

.device-badge.mobile-version {
  background-color: #c3002f;
}