/* responsive overrides for photography page are defined later */
/* 
    Name: Mark Jason Esguerra
    Date: 09-23-2024
*/

@import url("https://fonts.googleapis.com/css?family=Poppins:300,700,500,400,600");

:root {
  --color-bg: #F6F6F6;
  --color-surface: #ffffff;
  --color-text: #5e5e63;
  --color-text-strong: #323235;
  --color-text-dark: #282828;
  --color-text-muted: #696969;
  --color-text-subtle: #74747a;
  --color-border-soft: rgba(0, 0, 0, 0.1);
  --color-shadow-soft: rgba(0, 0, 0, 0.12);
  --color-shadow-strong: rgba(0, 0, 0, 0.35);
  --color-shadow-card: rgba(0, 0, 0, 0.45);
  --color-accent-1: #A3CBEA;
  --color-accent-2: #8C77ED;
  --color-accent-3: #E0728B;
  --color-accent-4: #A40865;
  --color-accent-5: #A464A4;
  --color-deep-1: #08080C;
  --color-deep-2: #0A0B28;
  --color-deep-3: #15002F;
  --color-deep-4: #1b1034;
  --color-neutral-1: #f4f4f4;
  --color-neutral-2: #f3f3f3;
  --color-neutral-3: #f0f0f0;
  --color-neutral-4: #EAEDEF;
  --color-neutral-5: #f7f7f7;
  --color-ink: #333;
  --color-ink-strong: #373737;
  --color-ink-muted: #555;
  --color-ink-soft: #444;
  --color-ink-warm: #574e57;
}

/* General reset */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  font-family: Poppins, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: opacity 0.5s ease;
}

body.contact-page {
  background-color: #000;
  color: rgba(255, 255, 255, 0.9);
}

.contact-page-main {
  flex: 1;
  display: flex;
  justify-content: center;
}

.showmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  margin: 20px auto 30px auto;
  background: var(--color-surface);
  color: var(--color-text-dark);
  border: 1px solid var(--color-border-soft);
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.showmore:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.showmore .arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.showmore[aria-expanded="true"] .arrow-icon {
  transform: rotate(180deg);
}

.about-more {
  width: 100%;
  transition: opacity 0.25s ease;
}

#aboutMoreContent {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
}

.about-more.is-collapsed {
  display: none;
}

body.fade-out {
  opacity: 0;
}

header {
  animation: slideIn 0.6s ease-out;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 20px;
  display: flex;
  justify-content: center;
  background-color: transparent;
  transition: background-color 0.5s ease, transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

header.hide-on-scroll {
  transform: translateY(-120%);
}

header.active {
  background-color: var(--color-surface);
  box-shadow: 0 2px 10px var(--color-border-soft);
}

main {
  flex-grow: 1;
}

.avatar {
  width: 65px;
  height: 65px;
  background: var(--color-surface);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 8px 40px #0000001f;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.avatar:hover {
  background-color: var(--color-surface);
  box-shadow: 0 4px 10px rgba(59, 58, 58, 0.3);
}

.avatar:active {
  transform: scale(1.2);
}

.avatar img {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: block;
}

.avatar-message {
  position: absolute;
  top: 100%; /* Position just below the avatar */
  left: 50%;
  transform: translate(-50%, -10px); /* Start slightly above */
  background: var(--color-surface);
  color: var(--color-text-dark);
  padding: 6px 16px;
  border-radius: 16px;
  box-shadow: 0 4px 16px #0001;
  font-size: 1rem;
  font-family: Poppins, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  z-index: 101;
}

.avatar-message.show-message {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 10px); /* Slide downward into view */
}

.header-container {
  position: sticky;
  display: flex;
  justify-content: space-between;
  width: 80%;
  align-items: center;
  overflow: visible;
}

.header-container {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.header-container.hide-on-scroll {
  transform: translateY(-120%);
}

.header-container.show-on-hover {
  transform: translateY(0);
}

.toggle {
  display: flex;
  align-items: center;
  background-color: var(--color-neutral-1);
  border-radius: 30px;
  padding: 4px;
  gap: 10px;
  box-shadow: 0 8px 40px #0000001f;
  transition: background-color 0.3s ease;
  position: relative;
  width: 200px; /* Adjust width as needed */
}

.toggle-btn {
  margin: 0;
  padding: 8px 20px;
  background-color: transparent;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  color: var(--color-text-muted);
  flex: 1;
  text-align: center;
  text-decoration: none;
  transition: color 0.3s ease;
  z-index: 1; /* Ensure the buttons are above the slider */
}

.toggle-btn.active {
  color: var(--color-text-dark) !important;
  font-weight: bold; /* Optional for emphasis */
}

.toggle-btn:hover {
  color: var(--color-text-dark);
  text-decoration: none; 
}

.toggle-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%; /* Adjust width to fit the buttons */
  background-color: var(--color-surface);
  border-radius: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  z-index: 0; /* Ensure the slider is below the buttons */
}

/* About Section */
.about-section {
  text-align: center;
  padding: 40px 0 0 0;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 60px 0;
  position: relative;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 5px;
  margin-bottom: 5px;
}

.tsparticles {
  background-image: url('images/particles.svg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 40%; /* Make it smaller by default */
  width: 100%;
  height: 100%;
  position: absolute;
  top: 40px;
  left: 0px;
  z-index: -1;
  pointer-events: none;
  transition: background-size 0.1s ease-out;
}

.hero h1 {
  font-family: "Poppins";
  font-size: 64px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  background: linear-gradient(90deg, var(--color-accent-1) 35%, var(--color-accent-2) 50%, var(--color-accent-3) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 1;
  position: relative;
  margin: 50px 0px 10px 0px;
}

.location-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.location-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.location {
  color: var(--color-text-strong); 
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.hero-description {
  font-size: 16px;
  color: var(--color-text);
  width: 40%;
  margin: 10px auto;
}

/* Skills section */
.skills {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.skills img {
  width: 50px;
  height: 50px;
  margin: 0 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills img:hover {
  transform: scale(1.2);
}

/* Download CV button */
.btn-download-cv {
  width: 180px;
  height: 29px;
  display: inline-flex;
  padding: var(--Line-height-400, 22px) 18px;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 90px 0 100px 0;
  background: linear-gradient(270deg, var(--color-ink-warm) 0%, var(--color-ink-strong) 89.22%);
  color: var(--color-surface);
  text-decoration: none;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 4s ease, transform 0.6s ease;
}

.btn-download-cv:hover {
  background: linear-gradient(270deg, var(--color-ink-strong) 0%, #565555 89.22%);
  transform: scale(1.06); /* Slight scale increase on hover */
}

/* About */
.group {
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
}

.text-wrapper-1 {
  font-size: 24px;
  font-weight: bold;
  text-align: center; /* Center the text */
  background: linear-gradient(90deg, var(--color-accent-1) 34%, var(--color-accent-2) 50%, var(--color-accent-3) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0;
  margin-bottom: 10px;
  line-height: normal;
  font-family: Poppins;
}

.about-text {
  font-size: 13px;
  color: #dddddd;
  line-height: 1.8;
  text-align: left; /* Center the text */
  margin-bottom: 20px;
}

.about-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--color-ink);
  margin-bottom: 20px;
}

.about-images{
  display: inline-flex;
  align-items: center;
  position: relative;
  gap: 0px;
}

.about-images .left{
  position: relative;
  width: 260px;
  height: 347px;
  object-fit: cover;
}

.about-images .mid{
  position: relative;
  width: 360px;
  height: 541px;
  object-fit: cover;
  z-index: 1;
}

.about-images .right{
  position: relative;
  width: 249px;
  height: 289px;
}

.about-images img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-images img:hover {
  transform: scale(1.05);
}

.aboutMapcard {
  position: relative;
  width: 100%;
  height: 410px;
  margin: 80px auto;
  border-radius: 24px;
  box-shadow: 0 4px 24px var(--color-shadow-soft);
  background: #181c2a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aboutMapbg {
  position: relative;
  border-radius: 28px;
  padding: 3px; 
  background: linear-gradient(to left, var(--color-accent-4), var(--color-accent-5), var(--color-accent-1));
  display: flex; 
  align-items: center;
  justify-content: center;
}

.aboutMapimage {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 25px; 
  object-fit: cover;
  background: #181c2a; 
}

.aboutMappin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Static avatar (acts like the ping-dot) */
.aboutMapavatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  object-fit: cover;
  position: relative;
  z-index: 2;
  background: linear-gradient(46deg, #BCE2FF 12.63%, #FF8DA7 84.79%);
  display: block;
}

/* Animated ripple using pseudo-element */
.aboutMappin::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border: 50px solid #FF8DA7;
  border-radius: 50%;
  box-sizing: border-box;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: 1;
}

/* Clean ping animation */
@keyframes ping {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* Interest Section */
.interest-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 32px;
  margin: 0 auto 40px auto;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.interest-music {
  flex: 1 1 0;
  min-width: 0;
  max-width: 300px;
  height: auto;
  background: transparent;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.interest-music::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 3px; 
  background: linear-gradient(135deg, var(--color-accent-4) 0%, var(--color-accent-1) 99%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.music-gradient {
  width: 100%;
  height: 100%;
  position: relative;
  /* Figma stops: #08080C 0%, #0A0B28 31%, #15002F 56% */
  background: linear-gradient(180deg, var(--color-deep-1) 0%, var(--color-deep-2) 31%, var(--color-deep-3) 56%);
  transition: background 0.5s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
}


.music-gradient::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 300px;
  background: url('images/music-wave.svg') no-repeat bottom right;
  background-size: cover;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); 
}

.music-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: url('images/grain.png');
  background-size: cover;
  opacity: 100%; 
  mix-blend-mode: multiply;
}

@keyframes wave-move-rtl {
  0%   { background-position-x: -570px; transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { background-position-x: 0px; transform: scale(1); }
}

.music-gradient:hover::after {
  animation: wave-move-rtl 10s linear infinite;
  will-change: transform, background-position-x;
  transform: scale(1); 
}

.music-title {
  position: absolute;
  top: 20px;
  left: 27px;
  color: var(--color-surface);
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  z-index: 2;
  letter-spacing: 1px;
  line-height: normal;
}

/* Hobbies & Tools */
.interest-hobbies-tools {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.interest-hobbies,
.interest-tools {
  background: linear-gradient(180deg, var(--color-deep-1) 0%, var(--color-deep-2) 31%, var(--color-deep-3) 56%);
  border-radius: 28px;
  padding: 24px 28px 20px 28px;
  margin-bottom: 0;
  box-shadow: 0 4px 32px 0 rgba(163, 203, 234, 0.08);
  border: 3px solid transparent; /* Use transparent to avoid overlap */
  position: relative;
  overflow: visible; /* Allow border radius to show */
  width: auto;
  min-width: 0;
  min-height: 190px;
  z-index: 1;
}

.interest-hobbies::before,
.interest-tools::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 0;
  padding: 3px;
  background: linear-gradient(45deg, var(--color-accent-4) 0%, var(--color-accent-1) 100%);
  z-index: -1;
  pointer-events: none;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.hobby-tags {
  position: relative;
  width: 100%;
  height: clamp(190px, 24vh, 280px);
  margin-top: 16px;
  border-radius: 20px;
  overflow: hidden;
}

.hobby-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0px; 
  color: var(--color-surface); 
  font-size: 0.95rem;
  font-weight: 600;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
} 

.hobby-tag.dragging {
  cursor: grabbing;
  transform: scale(1.05);
  /* box-shadow: 0 12px 32px rgba(163, 203, 234, 0.55); */
}

.hobby-tag img {
  width: 100px;
  height: 60px;
  border-radius: 10px;
  pointer-events: none;
}

.tools-row {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 18px;
  padding: 6px 0;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.3) 6%, #000 20%, #000 80%, rgba(0,0,0,0.3) 94%, transparent 100%);
}

.tools-row::before,
.tools-row::after {
  content: "";
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 5px;
  pointer-events: none;
  z-index: 2;
  filter: blur(5px);
}

.tools-row::before {
  left: 0;
  background: linear-gradient(90deg, rgba(12,12,30,0.8), rgba(12,12,30,0));
}

.tools-row::after {
  right: 0;
  background: linear-gradient(270deg, rgba(12,12,30,0.8), rgba(12,12,30,0));
}

.tools-track {
  --tools-speed: 18s;
  --tools-distance: 0px;
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: tools-marquee var(--tools-speed) linear infinite;
  will-change: transform;
}

.tools-row-top .tools-track {
  animation-name: tools-marquee-reverse; /* L→R */
  animation-duration: 90s; 
}

.tools-row-bottom .tools-track {
  animation-duration: 90s; 
}

.tools-row img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(8, 8, 12, 0.3));
}

@keyframes tools-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--tools-distance)));
  }
}

@keyframes tools-marquee-reverse {
  0% {
    transform: translateX(calc(-1 * var(--tools-distance)));
  }
  100% {
    transform: translateX(0);
  }
}

.interest-title {
  top: 20px;
  left: 27px;
  color: var(--color-surface);
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  z-index: 2;
  letter-spacing: 1px;
  line-height: normal;
}

/* Photography Page */
.photography-page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 120px auto;
  padding: 80px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.photography-hero {
  text-align: center;
  padding: 32px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--color-deep-1) 0%, var(--color-deep-4) 100%);
  border: 2px solid rgba(163, 203, 234, 0.3);
  box-shadow: 0 20px 60px var(--color-shadow-strong);
}

.photography-label {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.photography-hero h1 {
  margin: 0 0 16px 0;
  font-size: clamp(32px, 6vw, 56px);
  color: var(--color-surface);
  background: linear-gradient(120deg, var(--color-accent-1), var(--color-accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.photography-blurb {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.photo-card {
  background: rgba(8, 8, 12, 0.85);
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px var(--color-shadow-card);
}

.photo-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.photo-card figcaption {
  padding: 16px 20px 18px 20px;
  font-weight: 600;
  color: var(--color-surface);
  letter-spacing: 0.02em;
}

/* Contact Me section */
.contact-me-section {
  width: 100%;
  max-width: 920px;
  margin: 60px auto 90px auto;
  padding: 0 18px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 24px 22px 28px 22px;
}

.contact-card {
  background: transparent;
  padding: 6px 0 0 0;
  border: none;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.contact-title {
  margin: 0 0 8px 0;
  font-size: clamp(36px, 6vw, 44px);
  font-weight: 800;
  color: var(--color-surface);
  letter-spacing: 0.01em;
}

.contact-title-pixel {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
  image-rendering: pixelated;
  cursor: pointer;
}

.contact-title-pixel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  transition: opacity 0.2s ease;
}

.contact-title-pixel .pixel-default {
  opacity: 1;
}

.contact-title-pixel .pixel-hover {
  opacity: 0;
}

.contact-card:hover .contact-title-pixel .pixel-default {
  opacity: 0;
}

.contact-card:hover .contact-title-pixel .pixel-hover {
  opacity: 1;
}

.contact-subtitle {
  margin: 0 0 34px 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
}

.contact-form {
  display: grid;
  gap: 12px;
  text-align: left;
}

.contact-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  margin-top: 4px;
}

.contact-input,
.contact-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-surface);
  padding: 14px 16px;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
}

.contact-textarea {
  resize: vertical;
  min-height: 180px;
}

.contact-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-turnstile {
  margin-top: 0;
}

.contact-submit {
  margin-top: 18px;
  align-self: center;
  padding: 12px 20px;
  width: 220px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: #0a0a0a;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.contact-submit-icon {
  width: 16px;
  height: 16px;
}

.contact-status {
  margin-top: 10px;
  font-size: 13px;
  min-height: 18px;
  color: rgba(255, 255, 255, 0.65);
  transition: opacity 0.2s ease;
}

.contact-status.is-success {
  color: rgba(255, 255, 255, 0.85);
}

.contact-status.is-error {
  color: #ffb4b4;
}

.contact-form.is-sent .contact-submit {
  animation: contact-pop 0.45s ease;
}

.contact-form.is-sending .contact-submit {
  opacity: 0.75;
  pointer-events: none;
}

.contact-form.is-failed {
  animation: contact-shake 0.45s ease;
}

@keyframes contact-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes contact-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}




.btn-read-more {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: var(--color-ink);
  color: var(--color-surface);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-read-more:hover {
  background-color: var(--color-ink-muted);
}

.menu-container {
  position: relative;
  z-index: 2000;
}

.menu-icon {
  width: 64px;
  height: 64px;
  background: var(--color-surface);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 8px 40px #0000001f;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.menu-icon:hover {
  transform: rotate(5deg);
  box-shadow: 0 4px 10px rgba(59, 58, 58, 0.3);
}

.menu-icon .bar {
  width: 24px;
  height: 2px;
  background: var(--color-ink-soft);
  border-radius: 2px;
  transition: 0.3s;
  box-shadow: 0 1px 2px #0001;
  will-change: transform, opacity;
}

.menu-icon .top    { margin-bottom: 5.5px; }
.menu-icon .middle { margin: 0; }
.menu-icon .bottom { margin-top: 6px; }

.menu-icon.active .top {
  transform: rotate(45deg) translate(5.5px, 5.5px);
}

.menu-icon.active .middle {
  opacity: 0;
}

.menu-icon.active .bottom {
  transform: rotate(-45deg) translate(5.5px, -5.5px);
}

.back-icon {
  width: 64px;
  height: 64px;
  background: var(--color-surface);
  border: none;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 40px #0000001f;
  transition: transform 0.3s, box-shadow 0.3s;
  
}

.back-icon:hover {
  transform: rotate(-5deg);
  box-shadow: 0 4px 10px rgba(59,58,58,0.3);
}

.back-icon img {
  width: 30px;
  height: 30px;
  display: block;
}

.menu-popup {
  position: absolute;
  top: 80px;
  right: 0;
  background-color: var(--color-surface);
  border-radius: 16px;
  box-shadow: 0 8px 40px #0000001f;
  padding: 10px 10px;
  width: 160px;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  z-index: 99;
}

.menu-popup.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.menu-popup ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-popup li {
  display: flex;
  text-decoration: none;
  align-items: center;
  padding: 12px 24px;
  color: var(--color-text-dark);
  font-family: Poppins, sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 8px;
}

.menu-popup li a {
  text-decoration: none;
  color: inherit; 
  display: flex;
  align-items: center;
} 

.menu-popup li.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.menu-popup li:hover:not(.disabled) {
  background-color: var(--color-neutral-2);
}

.menu-popup li .icon {
  margin-right: 10px;
  font-size: 1.2em;
}

@keyframes slideDown {
  0% { opacity: 0; transform: translate(-50%, -20px); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.project-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-card.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Center the project card wrapper and set its dimensions */
.project-card-wrapper {
  width: 1043px;
  height: 493px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  margin-bottom: 120px;
  background-color: var(--color-neutral-4);
  border-radius: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative; 
  z-index: 0;
}

.project-card-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('images/Textures.png');
  background-repeat: repeat;
  opacity: 0.05; /* Adjust for more/less grain */
  mix-blend-mode: multiply;
  border-radius: 24px;
}

.project-card-wrapper:hover {
  background-color: var(--color-neutral-5); /* Background color on hover */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Box shadow on hover */
  transform: scale(1.01); /* Scale up on hover */
}

.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 40px;
  box-shadow: none;
  cursor: pointer;
  border-radius: 24px;
  overflow: hidden;
}

.project-card-left {
  flex: 1;
  margin: 0 30px;
}

.project-card-right {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0; /* Remove any margin */
  padding: 0; /* Remove any padding */
  z-index: 3;
}

.project-card-right img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  z-index: 3;
}

.project-card-left h2 {
  background-image: linear-gradient(333deg, var(--color-text-strong) 73%, var(--color-text));
  letter-spacing: -.01em;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 36px; /* Adjust font size as needed */
  font-weight: bold;
  line-height: 120%;
}

.language-icon {
  margin-left: 10px; /* Adjust spacing as needed */
}

.project-card-left .project-type {
  color: var(--color-text);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 160%;
}

.project-card-left .project-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  line-height: 170%;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 9; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Primary button styles */
.primary-button {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-surface);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  will-change: transform;
  text-decoration: none;
}

.primary-button:hover {
  background-color: var(--color-neutral-3);
  transform: scale(1.05);
}

.button-text {
  background-image: linear-gradient(107deg, var(--color-text-subtle), var(--color-text-strong));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 16px;
  font-weight: 500;
  margin-right: 10px;
}

.button-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.primary-button:hover .button-icon {
  transform: translateX(5px);
}

.project-images {
  flex: 1 1 45%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.project-images img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Footer section */
footer {
  width: 100%;
  text-align: center;
  padding: 30px 0;
  background-color: var(--color-neutral-3);
  margin-top: auto;
}

.social-icons {
  margin-bottom: 20px;
}

.social-icons a {
  margin: 0 10px;
  display: inline-block; /* Allows transform to work */
  transition: transform 0.3s;
}

.social-icons a:hover {
  transform: translateY(-3px); /* Bounce effect */
}

.social-icons img {
  width: 25px;
  height: 25px;
}

footer p {
  font-size: 14px;
  color: gray;
}

.footer-logo img {
  vertical-align: middle;
  margin-right: 6px;
}

#firefly-bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -10;
  width: 100vw;
  height: 100vh;
  background-color: #000; /* deep sea black */
  pointer-events: none;
}

/* Smaller screens (Tablets) */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px; 
  }

  .hero-description {
    width: 80%; 
  }

  .tsparticles {
    background-size: 60%; 
  }

  .btn-download-cv {
    width: 180px;
    height: 50px;
  }

  .about-images {
    flex-direction: column;
    gap: 10px;
  }

  .project-container {
    flex-direction: column;
  }

  .project-card {
    width: 90%;
  }

  .skills img {
    width: 40px;
    height: 40px;
}

.project-card-wrapper {
  width: 90%;
  height: auto;
  margin-bottom: 60px;
}

.project-card {
  flex-direction: column;
  padding: 20px;
}

.project-card-left {
  margin: 0;
  text-align: center;
}

.project-card-right {
  margin-top: 20px;
  width: 100%;
}

.project-card-right img {
  width: 100%;
  height: auto;
}

  .interest-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 98%;
    max-width: 98vw;
    gap: 24px;
    padding: 0;
  }

  .interest-music {
    max-width: 100%;
    height: 360px;
  }

  .interest-hobbies,
  .interest-tools {
    min-width: auto;
    width: auto;
  }

  .hobby-tags {
    height: clamp(220px, 35vh, 320px);
  }

  .aboutMapcard {
    width: 98%;
    max-width: 98vw;
    height: 240px;
    min-height: 180px;
    border-radius: 16px;
    margin: 60px auto 60px auto;
  }
  .aboutMapbg {
    border-radius: 16px;
    padding: 2px;
  }
  .aboutMapimage {
    border-radius: 14px;
  }
  .aboutMappin {
    /* Center stays the same */
  }
  .aboutMapavatar {
    width: 70px;
    height: 70px;
  }
  .aboutMappin::before {
    width: 70px;
    height: 70px;
    border-width: 28px;
  }

  .photography-page {
    padding: 60px 16px;
    gap: 32px;
  }

  .photo-card img {
    height: 240px;
  }

}

/* Very small screens (Mobile) */
@media (max-width: 480px) {
  header.hide-on-scroll {
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  }
  header {
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  }

  .group {
    padding: 20px;
    margin: 0 auto; /* Center content */
    width: 100%; /* Ensure content doesn't exceed the screen width */
    box-sizing: border-box; /* Include padding in width calculation */
  }

  .about-text {
    font-size: 14px;
    padding-left: 10px; /* Add padding inside the text */
    padding-right: 10px;
    width: 100%; /* Avoid content overflow */
    box-sizing: border-box;
  }

  .hero h1 {
    font-size: 28px; 
  }

  .hero-description {
    width: 90%;
    font-size: 14px; 
  }

  .tsparticles {
    background-size: 80%; 
    background-position: center;
  }

  .btn-download-cv {
    width: 110px; 
    height: 20px;
    font-size: 14px;
  }

  .avatar{
    width: 50px;
    height: 50px;
  }

  .avatar img {
    width: 50px;
    height: 50px;
  }

  .menu-icon {
    width: 50px;
    height: 50px;
    min-width: 36px;
    min-height: 36px;
    max-width: 50px;
    max-height: 50px;
    box-shadow: 0 2px 8px #0001;
  }

  .menu-icon .bar {
    width: 21px;
    height: 1.5px;
    margin: 3px 0;
  }

  .menu-icon .top {
    margin-bottom: 2px;
  }

  .menu-icon .middle {
    margin: 1;
  }

  .menu-icon .bottom {
    margin-top: 1.5px;
  }

  .back-icon{
    width: 50px;
    height: 50px;
    min-width: 36px;
    min-height: 36px;
    max-width: 50px;
    max-height: 50px;
    box-shadow: 0 2px 8px #0001;
  }

  .menu-popup {
    top: 58px; /* Just below the smaller menu icon */
    right: 0;
    left: auto;
    width: 140px;
    min-width: 120px;
    padding: 6px 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px #0002;
    font-size: 14px;
  }

  .menu-popup ul {
    padding: 0;
    margin: 0;
  }

  .menu-popup li {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 6px;
  }

  .toggle {
    width: 150px; /* Adjust width as needed */
    font-size: 14px;
  }

  .toggle-btn {
    padding: 4px 10px;
  }

  .toggle-slider {
    width: 50%; /* Adjust width to fit the buttons */
  }

  .skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
  }

  .skills img {
    width: 30px;
    height: 30px;
    margin: 5px;
  }

  .about-images {
    display: inline-flex;
    align-items: center;
    position: relative;
    gap: 0px;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    margin-bottom: 50px;
  }

  .about-images .left,
  .about-images .mid,
  .about-images .right {
    width: 120px;
    height: auto;
  }

  .about-images img {
    width: 100%;
    height: auto;
  }

  .text-wrapper-1 {
    font-size: 30px; /* Adjust font size for mobile view */
    padding-left: 10px;
  }


/* Center the project card wrapper and set its dimensions */
  .project-card-wrapper {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
  }

  .project-card {
    flex-direction: column;
    padding: 10px;
  }

  .project-card-left {
    margin: 0;
    text-align: center;
  }

  .project-card-right {
    margin-top: 20px;
    width: 100%;
  }

  .project-card-right img {
    width: 100%;
    height: auto;
  }

  .interest-section {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    gap: 20px;
    padding: 0 12px;
  }

  .interest-music {
    height: 320px;
  }

  .interest-hobbies,
  .interest-tools {
    padding: 20px;
    border-radius: 20px;
  }

  .hobby-tags {
    height: 260px;
  }

  .hobby-tag {
    padding: 6px 12px;
  }

  .aboutMapcard {
    width: calc(100% - 24px); 
    margin: 10px auto 50px auto; 
    border-radius: 10px;
    box-sizing: border-box;
  }

  .aboutMapbg {
    border-radius: 10px;
    padding: 1px;
  }
  .aboutMapimage {
    border-radius: 10px;
  }
  .aboutMappin {
    /* Center stays the same */
  }
  .aboutMapavatar {
    width: 140px;
    height: 140px;
  }
  .aboutMappin::before {
    width: 100px;
    height: 100px;
    border-width: 40px;
  }

  .photography-page {
    padding: 48px 12px 80px 12px;
  }

  .photo-card img {
    height: 220px;
  }

}
