/**
 * Gamification & Coin System Styles (styles.css)
 */

/* --- Coin Balance Badge --- */
.gc-coin-balance {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    font-weight: 700;
    z-index: 1001;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Coin Burst Animation --- */
.gc-coin-burst {
    position: fixed;
    transform: translateX(-50%);
    color: #6551FD;
    font-size: 20px;
    font-weight: bold;
    animation: gc-burst-animation 1.5s ease-out forwards;
    z-index: 1002;
    pointer-events: none;
}

@keyframes gc-burst-animation {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50px);
        opacity: 0;
    }
}

/* --- Reward Shop --- */
.gc-reward-shop-container {
    padding: 40px 20px;
    max-width: 900px;
    margin: 40px auto;
}

.gc-reward-shop-container h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    text-align: center;
    margin-bottom: 30px;
}

#gc-reward-shop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gc-reward-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gc-reward-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.gc-reward-name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.gc-reward-description {
    font-size: 14px;
    color: #666;
    flex-grow: 1;
    margin-bottom: 20px;
}

.gc-reward-cost {
    font-size: 16px;
    font-weight: bold;
    color: #6551FD;
    margin-bottom: 15px;
}

.gc-redeem-button {
    background-color: #6551FD;
    color: #fff;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.gc-redeem-button:hover:not(:disabled) {
    background-color: #4e3dcf;
}

.gc-redeem-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.gc-reward-card.gc-owned .gc-redeem-button {
    background-color: #28a745; /* Green for owned */
}

/* --- Backup/Restore --- */
.gc-backup-container {
    text-align: center;
    margin-top: 40px;
}

.gc-backup-button {
    background: #eee;
    border: 1px solid #ddd;
    color: #333;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 10px;
}

/* --- Cosmetic Reward Styles --- */

.gc-gold-mode {
    background-color: #FFFBEB !important;
    color: #744210 !important;
}
.gc-gold-mode .glass-header {
    background-color: rgba(254, 243, 199, 0.8) !important;
}
.gc-gold-mode .main-header {
    background-image: linear-gradient(to top, #FBBF24, #F59E0B) !important;
}

.gc-hacker-theme {
    background-color: #000 !important;
    color: #0f0 !important;
}
.gc-hacker-theme .glass-header, .gc-hacker-theme .main-header {
    background: #000 !important;
    border-bottom: 1px solid #0f0;
}
.gc-hacker-theme a, .gc-hacker-theme h1, .gc-hacker-theme h2, .gc-hacker-theme h3 {
    color: #0f0 !important;
}

.profile-header {
    margin: 48px auto 0 auto;
    padding: 0;
    margin-left: 160px;
    margin-right: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 52px;
}
.profile-header-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  gap: 32px;
}
.profile-header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
}
.profile-header-names {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.profile-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 50px;
  margin: 0;
  color: #000;
  line-height: 1.1;
}
.profile-desc {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  color: #46464e;
  margin: 0;
}
.profile-links {
  display: flex;
  flex-direction: row !important;
  gap: 8px;
  height: 32px;
  border-radius: 40px;
  margin-top: 0 !important;
  padding-top: 0 !important;
  align-items: center;
}
.profile-links img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.profile-header-photo {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 120px;
}
.profile-header-photo img {
  width: 200px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.profile-description {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  color: #000;
  max-width: 656px;
  margin-top: 0 !important;
  text-align: left !important;
}
@media (max-width: 768px) {
  .profile-description {
    font-size: 16px !important;
    text-align: left !important;
  }
}

/* Force profile-description to left align and not center horizontally */
.profile-description {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  align-self: flex-start !important;
  justify-content: flex-start !important;
}

/* Names row for desktop, column for mobile */
.profile-names-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
@media (max-width: 768px) {
  .profile-names-row {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .profile-header {
    margin-left: 12px;
    margin-right: 12px;
    max-width: 100%;
  }
  .profile-header-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }
  .profile-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
  }
  .profile-header-names {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .profile-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    height: auto;
    margin-top: 8px;
  }
  .profile-header-photo img {
    width: 120px;
    height: 96px;
  }
  .profile-description {
    margin-top: 0px;
    max-width: 100%;
    font-size: 18px;
  }
  .profile-name {
    font-size: 32px;
  }
}
@media (max-width: 500px) {
  .profile-header-row {
    flex-direction: column;
    align-items: center;
  }
  .profile-header-photo {
    margin-top: 16px;
  }
}

.profile-links img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.profile-links img:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.profile-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}
.profile-links a:last-child {
  margin-right: 0;
}

.profile-header-photo img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

/* Desktop: tagline and icons in a row; Mobile: stacked column */
.profile-header-names {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-desc-links-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
@media (max-width: 768px) {
  .profile-desc-links-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (min-width: 769px) {
  .profile-top-section {
    margin-left: 0;
    margin-right: auto;
    justify-content: flex-start;
    align-items: flex-start;
    display: flex;
    width: 100%;
  }
}

/* --- Full-Bleed Rewards Section --- */
.full-bleed-rewards {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 64px 20px;
  background: #FDBF00;
  box-sizing: border-box;
  z-index: 1;
  overflow: hidden;
}

@media (max-width: 900px) {
  .full-bleed-rewards {
    padding: 40px 16px;
  }
}

@media (max-width: 600px) {
  .full-bleed-rewards {
    padding: 24px 20px 40px 20px;
  }
}
.sunburst-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  background: url('Images/background-rewards-desktop.png') center center/cover no-repeat, #FDBF00;
}
.rewards-content {
  position: relative;
  z-index: 1;
}
.rewards-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .full-bleed-rewards {
    padding-top: 20px;
  }

  .rewards-content {
    flex-direction: column;
    align-items: center;
  }

  .rewards-left {
    text-align: center;
  }
}
.rewards-left {
  flex: 1;
  min-width: 280px;
  max-width: 480px;
}
.rewards-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #000;
}

@media (max-width: 900px) {
  .rewards-title {
    font-size: 24px;
  }

  .rewards-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .rewards-title {
    font-size: 24px;
  }

  .rewards-subtitle {
    font-size: 16px;
  }
}
.rewards-subtitle {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  color: #46464e;
  margin: 0;
}
.rewards-right {
  display: flex;
  gap: 32px;
}

@media (max-width: 600px) {
  .rewards-right {
    gap: 16px;
  }
}
.reward-card {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 320px;
  position: relative;
}
.reward-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 16px;
}
.reward-btn {
  background: #6551FD;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.reward-btn:hover {
  background: #4e3dcf;
}

@media (min-width: 901px) and (max-width: 1200px) {
  .reward-card {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .reward-card {
    width: 180px;
    max-width: 90vw;
    min-width: 100px;
    padding: 16px;
  }
}

@media (max-width: 470px) {
  .reward-card {
    width: 140px;
    max-width: 95vw;
    min-width: 90px;
    padding: 12px;
  }
}

/* Add shake animation for locked_image.png in reward cards with delay between repetitions */
@keyframes present-shake {
  0% { transform: rotate(0deg) scale(1); }
  10% { transform: rotate(-7deg) scale(1.04); }
  20% { transform: rotate(7deg) scale(1.06); }
  30% { transform: rotate(-6deg) scale(1.04); }
  40% { transform: rotate(6deg) scale(1.03); }
  50% { transform: rotate(-4deg) scale(1.02); }
  60% { transform: rotate(4deg) scale(1.01); }
  70% { transform: rotate(-2deg) scale(1.01); }
  80% { transform: rotate(2deg) scale(1); }
  90% { transform: rotate(-1deg) scale(1); }
  100% { transform: rotate(0deg) scale(1); }
}
@keyframes present-shake-delayed {
  0% { transform: rotate(0deg) scale(1); }
  10% { transform: rotate(-7deg) scale(1.04); }
  20% { transform: rotate(7deg) scale(1.06); }
  30% { transform: rotate(-6deg) scale(1.04); }
  40% { transform: rotate(6deg) scale(1.03); }
  50% { transform: rotate(-4deg) scale(1.02); }
  60% { transform: rotate(4deg) scale(1.01); }
  70% { transform: rotate(-2deg) scale(1.01); }
  80% { transform: rotate(2deg) scale(1); }
  90% { transform: rotate(-1deg) scale(1); }
  20% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(0deg) scale(1); }
}
.reward-card .reward-img[src*="locked_image.png"] {
  animation: present-shake-delayed 4.8s cubic-bezier(.36,.07,.19,.97) infinite both;
  animation-duration: 4.8s;
  animation-timing-function: cubic-bezier(.36,.07,.19,.97);
  border-radius: 12px;
}

/* Add yellow sparks for locked_image.png shake animation */
.reward-card .reward-img.spark-animate {
  z-index: 2;
}
.reward-card .reward-sparks {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  pointer-events: none;
  z-index: 3;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
}
.reward-card .reward-spark {
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #ffe066 60%, #fffbe6 100%);
  border-radius: 50%;
  opacity: 0.85;
  pointer-events: none;
  animation: spark-pop 0.5s ease;
}
.reward-card .reward-spark.spark1 { top: 10%; left: 50%; transform: translate(-50%, -50%) scale(0.7); }
.reward-card .reward-spark.spark2 { top: 50%; left: 90%; transform: translate(-50%, -50%) scale(0.6); }
.reward-card .reward-spark.spark3 { top: 90%; left: 60%; transform: translate(-50%, -50%) scale(0.8); }
.reward-card .reward-spark.spark4 { top: 80%; left: 10%; transform: translate(-50%, -50%) scale(0.5); }
.reward-card .reward-spark.spark5 { top: 20%; left: 15%; transform: translate(-50%, -50%) scale(0.6); }
@keyframes spark-pop {
  0% { opacity: 0; transform: scale(0.2); }
  40% { opacity: 1; transform: scale(1.1); }
  80% { opacity: 0.85; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(0.2); }
}

/* Show sparks at the start of the shake animation */
.reward-card .reward-img.spark-animate + .reward-sparks {
  opacity: 1;
  animation: sparks-fade 0.7s linear;
}
@keyframes sparks-fade {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* --- Projects Showcase Section --- */
.projects-showcase {
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: none;
  padding: 48px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.projects-row {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: flex-end;
}
/* Remove .project-card styles, revert to direct image children */
 
.projects-section {
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center align for the whole section */
}

.projects-container {
  width: 100%;
  max-width: 1200px; /* Adjust as needed */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align title to the left */
  padding: 52px 20px; /* Add horizontal padding */
  box-sizing: border-box;
}

  .projects-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #000;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    text-align: left !important;
    margin-left: 0 !important;
    align-self: flex-start !important;
  }

.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
}

.shiny-card {
  width: 100%; /* Make cards fill the grid cell */
}

.mockup-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 32px;
}

@media (max-width: 768px) {
  .projects-container {
    padding: 40px 20px;
  }
  .projects-list {
    grid-template-columns: 1fr; /* Stack cards on smaller screens */
  }
}

.projects-coming-soon {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  color: #8c8989;
  opacity: 0.7;
  text-align: center;
  margin-top: 16px;
  letter-spacing: -0.5px;
  margin-left: auto;
  margin-right: auto;
}

.glass-header {
    justify-content: flex-start !important;
}

.back-button {
    position: static !important;
}

/* --- Shine Effect --- */
.shine-effect {
  position: relative;
  overflow: hidden;
}
.shine-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  animation: shine-move 2.5s infinite;
  pointer-events: none;
}
@keyframes shine-move {
  0% {
    left: -75%;
  }
  60% {
    left: 110%;
  }
  100% {
    left: 110%;
  }
}

/* HERO SECTION REFACTOR: Remove duplicate, unify class names, and ensure mobile/desktop consistency */

@media (max-width: 900px) {
  .hero-section {
    flex-direction: column-reverse;
    align-items: center;
    gap: 32px;
    padding: 40px 20px 24px 20px;
    width: 100vw;
    box-sizing: border-box;
  }
  .hero-left {
    width: 100%;
    max-width: 100vw;
    align-items: center;
    text-align: center;
    padding: 0;
  }
  .hero-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
  }
  .hero-subline-row {
    gap: 9px;
    justify-content: center;
  }
  .hero-subline {
    font-size: 16px;
  }
  .hero-socials {
    gap: 8px;
    justify-content: center;
  }
  .hero-social-link img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
  }
  .hero-main-paragraph {
    font-size: 16px;
    margin: 18px 0 6px 0;
    line-height: 1.6;
  }
  .hero-secondary-line {
    font-size: 15px;
    margin-bottom: 0;
  }
  .hero-image-container {
    width: 220px;
    height: 260px; /* Maintain proportion */
    max-width: 80vw;
    min-width: 0;
    margin: 0 auto;
  }
  .hero-image-card {
    border-radius: 18px;
  }
  
  /* Tighter stack for smaller screens */
  .hero-image-card:nth-child(2) {
    top: 4px;
    left: 3px;
    transform: scale(0.97);
  }
  
  .hero-image-card:nth-child(3) {
    top: 8px;
    left: 6px;
    transform: scale(0.94);
  }
  
  .hero-nav-arrow {
    width: 32px;
    height: 32px;
  }
  .hero-nav-left {
    left: -16px;
  }
  .hero-nav-right {
    right: -16px;
  }
  .hero-image {
    border-radius: 26px;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
@media (max-width: 600px) {
  .hero-section {
    gap: 20px;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-main-paragraph {
    font-size: 16px;
  }
  .hero-secondary-line {
    font-size: 14px;
  }
  .hero-image-container {
    width: 160px;
    height: 190px; /* Maintain proportion */
    max-width: 75vw;
  }
  
  .hero-card-stack {
    width: 160px;
    height: 190px;
  }
  
  .hero-image-card {
    border-radius: 16px;
  }
  
  /* Minimal stack for very small screens */
  .hero-image-card:nth-child(2) {
    top: 3px;
    left: 2px;
    transform: scale(0.98);
  }
  
  .hero-image-card:nth-child(3) {
    top: 6px;
    left: 4px;
    transform: scale(0.96);
  }
  
  .hero-nav-arrow {
    display: none; /* Hide arrows on very small screens */
  }
  .hero-image {
    border-radius: 18px;
  }
  .rewards-subtitle {
    font-size: 16px;
  }
}

.hero-main {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #fff;
  padding-top: 0;
  box-sizing: border-box;
}
.hero-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  padding: 64px 60px 64px 20px;
  margin: 0 auto;
  gap: 48px;
}
.hero-left {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-header {
  margin-bottom: 16px;
}
.profile-name, .hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 8px 0;
  letter-spacing: -1px;
}
.hero-subline-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.profile-desc, .hero-subline {
  font-size: 22px;
  font-weight: 500;
  color: #000;
  margin: 0;
}
.hero-socials {
  display: flex;
  flex-direction: row;
  gap: 8px;
}
.hero-social-link img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
  transition: box-shadow 0.2s;
}
.hero-social-link img:hover {
  box-shadow: 0 0 0 2px #000, 0 2px 8px rgba(0,0,0,0.08);
}
.hero-main-paragraph {
  font-size: 20px;
  font-family: 'Bricolage Grotesque', sans-serif;
  line-height: 1.5;
  margin: 24px 0 8px 0;
  color: #222;
}
.hero-bold {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  color: #000;
}
.hero-secondary-line {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  color: #444;
  margin-bottom: 0;
}
.hero-link {
  color: #000;
    font-family: 'Bricolage Grotesque', sans-serif;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}
.hero-link:hover {
  color: #000;
}
.hero-image-container {
  flex: 0 0 auto;
  position: relative;
  width: 300px;
  height: 354px; /* Calculate: 300 * 1.18 */
  max-width: 38vw;
  contain: layout style; /* Isolate stacking context */
}

.hero-card-stack {
  position: relative;
  width: 300px;
  height: 354px; /* Same as container */
}

.hero-image-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.10);
  background: #fffbe6;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-sizing: border-box;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-card.active {
  opacity: 1;
  z-index: 3;
}

.hero-image-card:nth-child(2) {
  top: 8px;
  left: 6px;
  z-index: 2;
  opacity: 0.7;
  transform: scale(0.95);
}

.hero-image-card:nth-child(3) {
  top: 16px;
  left: 12px;
  z-index: 1;
  opacity: 0.4;
  transform: scale(0.9);
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg,rgba(255,255,255,0.12) 0%,rgba(255,255,255,0.0) 60%);
}

.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 50%;
  color: rgb(93, 93, 93);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1; /* Always visible */
  transition: all 0.2s ease;
  z-index: 10; /* Stay below coin counter but above cards */
}

.hero-nav-arrow:hover {
  background: none;
  color: rgb(53, 53, 53);
  transform: translateY(-50%) scale(1.1);
}

.hero-nav-left {
  left: -40px; /* 40px arrow width + 4px distance */
}

.hero-nav-right {
  right: -40px; /* 40px arrow width + 4px distance */
}

/* Responsive styles */
@media (max-width: 900px) {
  .hero-section {
    flex-direction: column-reverse;
    align-items: center;
    gap: 32px;
    padding: 40px 20px 24px 20px; /* Reduced padding for better centering */
    width: 100vw;
    box-sizing: border-box;
  }
  .hero-left {
    width: 100%;
    max-width: 100vw;
    align-items: center;
    text-align: center;
    padding: 0;
  }
  
  /* Mobile hero image container adjustments */
  .hero-image-container {
    width: 280px;
    height: 320px;
    max-width: 85vw;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .hero-card-stack {
    width: 280px;
    height: 320px;
  }
  
  .hero-image-card {
    border-radius: 20px;
  }
  
  /* Stack effect adjustments for mobile */
  .hero-image-card:nth-child(2) {
    top: 6px;
    left: 4px;
    transform: scale(0.96);
  }
  
  .hero-image-card:nth-child(3) {
    top: 12px;
    left: 8px;
    transform: scale(0.92);
  }
  
  /* Adjust navigation arrows for mobile */
  .hero-nav-arrow {
    width: 36px;
    height: 36px;
  }
  
  .hero-nav-left {
    left: -40px; /* 36px arrow + 4px distance */
  }
  
  .hero-nav-right {
    right: -40px; /* 36px arrow + 4px distance */
  }
  .profile-name, .hero-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
  }
  .hero-subline-row {
    gap: 9px;
    justify-content: center;
  }
  .profile-desc, .hero-subline {
    font-size: 16px;
  }
  .hero-socials {
    gap: 8px;
    justify-content: center;
  }
  .hero-social-link img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
  }
  .hero-main-paragraph {
    font-size: 16px;
    margin: 18px 0 6px 0;
    line-height: 1.6;
  }
  .hero-secondary-line {
    font-size: 16px;
    margin-bottom: 0;
  }
  .hero-image-container {
    width: 180px;
    height: 155px;
    max-width: 80vw;
    min-width: 0;
    margin: 0 auto;
  }
  
  .hero-card-stack {
    width: 140px;
    height: 155px;
  }
  .hero-image-card {
    border-radius: 18px;
  }
  
  /* Tighter stack for smaller screens */
  .hero-image-card:nth-child(2) {
    top: 4px;
    left: 3px;
    transform: scale(0.97);
  }
  
  .hero-image-card:nth-child(3) {
    top: 8px;
    left: 6px;
    transform: scale(0.94);
  }
  
  .hero-nav-arrow {
    width: 32px;
    height: 32px;
  }
  .hero-nav-left {
    left: -16px;
  }
  .hero-nav-right {
    right: -16px;
  }
}
@media (max-width: 600px) {
  .hero-section {
    gap: 20px;
    padding: 32px 20px 32px 20px;
  }
  .profile-name, .hero-title {
    font-size: 28px;
  }
  .hero-main-paragraph {
    font-size: 16px;
  }
  .hero-secondary-line {
    font-size: 14px;
  }
  .hero-image-card {
    width: 140px;
    height: 155px;
    border-radius: 18px;
  }
  .hero-image {
    border-radius: 18px;
  }
}

.matrix-toggle-copy {
    font-family: 'Bricolage Grotesque', sans-serif;
}
@media (max-width: 600px) {
  .profile-header {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0 0 16px 0;
    box-sizing: border-box;
  }
  .profile-top-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0 12px;
  }
  .profile-header-left {
    width: 100%;
    max-width: 100vw;
  }
  .profile-names-row {
    flex-direction: row;
    gap: 6px;
  }
  .profile-name {
    font-size: 28px;
    line-height: 1.1;
  }
  .profile-desc-links-row {
    flex-direction: row;
    gap: 8px;
    align-items: center;
  }
  .profile-desc {
    font-size: 15px;
    margin-bottom: 0;
  }
  .profile-links {
    gap: 6px;
  }
  .profile-links img {
    width: 22px;
    height: 22px;
    border-radius: 5px;
  }
  .profile-header-photo {
    width: 120px;
    height: 130px;
    border-radius: 12px;
    margin-top: 8px;
  }
  .profile-header-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
  .profile-description {
    font-size: 15px;
    padding: 0 12px;
    margin-top: 8px;
  }
}
@media (max-width: 600px) {
  .projects-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0 0 24px 0;
    box-sizing: border-box;
  }
  .projects-container {
    padding: 16px 20px;
    max-width: 100vw;
  }
  .projects-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
  }
  .projects-list {
    flex-direction: column;
    gap: 16px;
  }
  .mockup-img, .shiny-card img {
    min-width: 180px;
    max-width: 100vw;
    border-radius: 32px;
  }
  .projects-coming-soon {
    font-size: 14px;
    margin-top: 10px;
  }
}
