/* ===== Global Styles ===== */
:root {
  --accent: #e8a54b;
  --dark-bg: #1a1a1a;
  --card-bg: #232323;
  --white: #ffffff;
  --light-gray: #b0b0b0;
  --font-main: 'Poppins', sans-serif;

  /* Liquid Glass tokens */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.35);
  --glass-shadow: rgba(0, 0, 0, 0.25);
  --glass-blur: 20px;
  --glass-saturate: 1.8;

  /* Light liquid glass tokens */
  --glass-light-bg: rgba(255, 255, 255, 0.45);
  --glass-light-border: rgba(255, 255, 255, 0.6);
  --glass-light-shadow: rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  overflow-x: hidden;
  background: var(--white);
}

/* ===== Liquid Glass Utilities ===== */

/* Dark glass surface (cards, modals on dark bg) */
.liquid-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.05),
    0 8px 32px var(--glass-shadow),
    0 0 0 0.5px rgba(255, 255, 255, 0.06);
}

/* Light glass surface (hero section elements) */
.liquid-glass-light {
  background: var(--glass-light-bg);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid var(--glass-light-border);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.15),
    0 4px 24px var(--glass-light-shadow);
}

/* Glass pill (dates, labels) */
.liquid-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Glass tech badge */
.tech-badge-glass {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.3px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(16px) saturate(var(--glass-saturate));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22),
    inset 0 -0.5px 0 0 rgba(255, 255, 255, 0.04),
    0 2px 10px rgba(0, 0, 0, 0.18);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-badge-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
    0 4px 16px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.tech-badge-glass img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Glass "Show" button */
.liquid-btn-show {
  display: inline-block;
  padding: 9px 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--white);
  cursor: pointer;
  border-radius: 100px;
  width: fit-content;
  text-decoration: none;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.05),
    0 4px 20px var(--glass-shadow);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-btn-show:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.liquid-btn-show:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.12);
}

/* Glass icon button (close, etc.) */
.liquid-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.08);
}

/* Primary CTA glass button (modal) */
.liquid-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--white);
  text-decoration: none;
  background: rgba(232, 165, 75, 0.25);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid rgba(232, 165, 75, 0.4);
  box-shadow:
    inset 0 1px 0 0 rgba(232, 165, 75, 0.4),
    inset 0 -1px 0 0 rgba(232, 165, 75, 0.1),
    0 4px 24px rgba(232, 165, 75, 0.2);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-btn-primary:hover {
  background: rgba(232, 165, 75, 0.4);
  border-color: rgba(232, 165, 75, 0.6);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 0 rgba(232, 165, 75, 0.55),
    0 8px 32px rgba(232, 165, 75, 0.25);
  transform: translateY(-2px);
}

/* Outline glass button (GitHub) */
.liquid-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* ===== Scroll Indicator (vertical) ===== */
.scroll-indicator-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.scroll-indicator-vertical:hover {
  opacity: 0.7;
}

.scroll-indicator-vertical .scroll-line {
  width: 1px;
  height: 28px;
  background: currentColor;
}

.scroll-indicator-vertical .scroll-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== Scroll Indicator (horizontal) ===== */
.scroll-indicator-horizontal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  padding: 8px 20px;
  border-radius: 100px;
  /* background: rgba(255, 255, 255, 0.06); */
  backdrop-filter: blur(12px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
    0 2px 10px rgba(0, 0, 0, 0.12);
  transition: all 0.5s ease;
}

.scroll-indicator-horizontal:hover {
  /* background: rgba(255, 255, 255, 0.12); */
  border-color: rgba(255, 255, 255, 0.22);
  transition: all 0.5s ease;
}

.scroll-indicator-horizontal .scroll-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-indicator-horizontal .scroll-arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.scroll-indicator-horizontal:hover .scroll-arrow {
  transform: translateX(4px);
}


/* Decorative diagonal lines */
.deco-lines {
  position: absolute;
  width: 60px;
  height: 80px;
}

.deco-lines::before,
.deco-lines::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.deco-lines::before {
  transform: rotate(-45deg);
  top: 20px;
  left: -10px;
}

.deco-lines::after {
  transform: rotate(-45deg);
  top: 40px;
  left: -10px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #1a1a1a;
  margin-bottom: 1.2rem;
}

.hero-title .accent-name {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero-title .accent-name::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.hero-description {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 1.8rem;
  font-weight: 300;
}

.hero-photo {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #eee;
}

/* CTA Buttons - Liquid Glass style */
.btn-liquid {
  /* padding: 11px 34px; */
  /* font-size: 0.85rem; */
  /* font-weight: 600; */
  /* letter-spacing: 1px; */
  /* text-transform: uppercase; */
  /* border-radius: 100px; */
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  /* background: rgba(26, 26, 26, 0.85); */
  color: var(--white);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(26, 26, 26, 0.6);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-liquid:hover {
  /* background: rgba(26, 26, 26, 0.7); */
  color: var(--white);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-hire {
  padding: 11px 34px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(232, 165, 75, 0.12);
  color: var(--accent);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(232, 165, 75, 0.35);
  box-shadow:
    inset 0 1px 0 0 rgba(232, 165, 75, 0.3),
    inset 0 -1px 0 0 rgba(232, 165, 75, 0.05),
    0 4px 20px rgba(232, 165, 75, 0.1);
}

.btn-hire:hover {
  background: rgba(232, 165, 75, 0.25);
  color: var(--accent);
  box-shadow:
    inset 0 1px 0 0 rgba(232, 165, 75, 0.45),
    0 8px 32px rgba(232, 165, 75, 0.15);
  transform: translateY(-2px);
}


/* ===== Work Section ===== */
.work-section {
  /* background: var(--dark-bg); */
  /* min-height: 100vh; */
  position: relative;
  /* padding: 80px 0; */
  overflow: hidden;
}

.work-title-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 4px;
  position: sticky;
  top: 100px;
}

/* ===== Projects Slider - Native Scroll ===== */
.projects-slider-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.projects-slider-wrapper::-webkit-scrollbar {
  display: none;
}

.projects-slider-track {
  display: flex;
  gap: 30px;
  padding: 20px 0;
  width: max-content;
}

/* ===== Project Card ===== */
.project-card {
  flex: 0 0 340px;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  /* Liquid glass card */
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.3); */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16),
    0 16px 10px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.14);
}

.project-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card-image {
  opacity: 1;
  transform: scale(1.04);
}

.project-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

.project-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.project-date {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Courier New', monospace;
}

.project-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-category {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.project-description {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tech Stack */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 12px;
}

/* Dotted decoration on cards */
.dotted-deco {
  position: absolute;
  z-index: 3;
  top: -8px;
  left: -8px;
  width: 50px;
  height: 50px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 4px;
}

.dotted-deco span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

/* ===== Project Modal (Liquid Glass) ===== */
.modal-backdrop-glass {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
}

.modal-glass-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  /* Core liquid glass */
  background: rgba(40, 40, 40, 0.65);
  backdrop-filter: blur(40px) saturate(2);
  -webkit-backdrop-filter: blur(40px) saturate(2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.04),
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 0.5px rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
}

.modal-glass-panel::-webkit-scrollbar {
  display: none;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}

/* Modal hero image */
.modal-hero-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.modal-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(40, 40, 40, 0.85) 100%
  );
}

.modal-hero-info {
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  z-index: 2;
}

.modal-date {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin: 8px 0 4px;
}

.modal-category {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Modal body */
.modal-body-content {
  padding: 28px 24px 32px;
}

.modal-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.modal-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.modal-tech-list .tech-badge-glass {
  font-size: 0.75rem;
  padding: 6px 14px;
}

.modal-tech-list .tech-badge-glass img {
  width: 16px;
  height: 16px;
}

.modal-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Modal Transition ===== */
.modal-enter-active {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-leave-active {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-enter-from {
  opacity: 0;
}

.modal-leave-to {
  opacity: 0;
}

.modal-enter-from .modal-glass-panel {
  opacity: 0;
  transform: scale(0.92) translateY(20px);
}

.modal-leave-to .modal-glass-panel {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
}

.modal-enter-active .modal-glass-panel {
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-leave-active .modal-glass-panel {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .hero-photo {
    width: 220px;
    height: 220px;
    margin-bottom: 2rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .work-title-vertical {
    writing-mode: horizontal-tb;
    font-size: 2rem;
    position: static;
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .project-card {
    flex: 0 0 285px;
    height: 440px;
  }

  .hero-photo {
    width: 180px;
    height: 180px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .modal-glass-panel {
    max-width: 100%;
    border-radius: 20px;
  }

  .modal-hero-image {
    height: 200px;
    border-radius: 20px 20px 0 0;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-links {
    flex-direction: column;
  }

  .liquid-btn-primary,
  .liquid-btn-outline {
    justify-content: center;
    width: 100%;
  }
}
