/* myfolio.com.tr - Premium Borderless Alternating Row Stylesheet */

:root {
  /* Grayscale Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #fbfbfb;
  --bg-tertiary: #f4f4f5;
  --border-thin: 1px solid #e4e4e7;
  --text-primary: #000000;   /* Deep solid black */
  --text-secondary: #3f3f46; /* Zinc 700 */
  --text-muted: #71717a;      /* Zinc 500 */
  --header-bg: rgba(255, 255, 255, 0.85);
  --zoom-bg: rgba(255, 255, 255, 0.98);
  
  /* Modern Sans-Serif Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Animation Constants */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-snappy: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-primary: #09090b;   /* Zinc 950 / Obsidian Dark */
  --bg-secondary: #121215; /* Zinc 900 custom */
  --bg-tertiary: #18181b;  /* Zinc 900 */
  --border-thin: 1px solid #27272a; /* Zinc 800 */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa; /* Zinc 400 */
  --text-muted: #71717a;     /* Zinc 500 */
  --header-bg: rgba(9, 9, 11, 0.85);
  --zoom-bg: rgba(9, 9, 11, 0.98);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
}

body {
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-primary);
}

a, button {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  background: none;
  border: none;
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Global Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Sticky Header Navbar (Content-Aligned Editorial Bar) */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: var(--border-thin);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-snappy);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-snappy);
  padding: 4px 0;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.highlight-link {
  color: var(--text-primary) !important;
  font-weight: 600;
}

.profile-banner-section {
  position: relative;
  padding-top: 140px; /* reduced from 220px to show portfolio earlier */
  padding-bottom: 60px;  /* reduced from 120px */
  background-color: var(--bg-primary);
  border-bottom: var(--border-thin);
  overflow: hidden;
}

.profile-banner-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 2; /* keep content on top of background graphics */
}

/* Banner Background Graphics */
.banner-bg-graphics {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Abstract Background Canvas */
#wave-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-banner-text {
  flex: 0 0 60%;
  text-align: left;
}

.profile-banner-avatar {
  flex: 0 0 30%;
  display: flex;
  justify-content: flex-end;
}

.profile-avatar-container {
  position: relative;
  width: 153px; /* reduced by 10% (from 170px) */
  height: 153px;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* perfect circle */
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.profile-avatar-container:hover .profile-avatar {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.online-indicator {
  position: absolute;
  bottom: 14.6%;
  right: 14.6%;
  transform: translate(50%, 50%);
  width: 16px;
  height: 16px;
  background-color: #10b981; /* Green status */
  border: 3.5px solid var(--bg-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 4.5rem; /* huge premium type */
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.profile-title {
  font-size: 1.35rem; /* larger subhead */
  color: var(--text-secondary);
  margin-top: 16px;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.profile-actions {
  margin-top: 36px;
}

.fiverr-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  transition: var(--transition-snappy);
}

.fiverr-action-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.fiverr-action-btn svg {
  transition: transform 0.3s ease;
}

.fiverr-action-btn:hover svg {
  transform: translate(2px, -2px);
}

/* Portfolio Section & Header Toolbar */
.portfolio-section {
  padding-top: 100px;
  padding-bottom: 140px;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
  border-bottom: var(--border-thin);
  padding-bottom: 24px;
}

/* Underscore Style Search bar */
.search-bar-container {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1px solid var(--text-muted);
  padding-bottom: 4px;
  width: 100%;
  max-width: 280px;
  transition: var(--transition-snappy);
}

.search-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  user-select: none;
  cursor: pointer;
}

#project-search {
  border: none;
  background: transparent;
  outline: none;
  padding: 2px 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-primary);
  width: 100%;
}

.search-bar-container:focus-within {
  border-color: var(--text-primary);
}

/* Category filter slashes */
.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-pill {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-snappy);
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.filter-count {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.filter-separator {
  color: var(--text-muted);
  opacity: 0.4;
  font-size: 0.8rem;
  user-select: none;
}

.filter-pill:hover {
  color: var(--text-primary);
}

.filter-pill.active {
  color: var(--text-primary);
  text-shadow: 0.5px 0 0 currentColor; /* bold appearance without changing container width */
}

/* Borderless Alternating Flex List */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 120px; /* Airy vertical spacing between project rows */
  width: 100%;
}

.empty-state {
  text-align: center;
  padding: 80px 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Project Card (Alternating Row Styling) */
.project-card {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  width: 100%;
}

.project-card:nth-child(even) {
  flex-direction: row-reverse;
}

/* Override/reset any staggered grid offset classes from projects.js */
.project-card.grid-col-7,
.project-card.grid-col-5,
.project-card.offset-down {
  grid-column: auto;
  margin-top: 0;
}

/* Card image pan viewport (55% width) */
.project-card .image-pan-wrapper {
  flex: 0 0 55%;
  width: 55%;
  height: 440px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite linear;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
}

.image-pan {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.image-pan.loaded {
  opacity: 1;
}

.image-pan img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.project-card:hover .image-pan-wrapper {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.04);
}

/* Tooltip hover scroll indicators */
.scroll-tooltip {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 6px);
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 100px;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0;
  transition: var(--transition-snappy);
  pointer-events: none;
}

.image-pan-wrapper:hover .scroll-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Card details panel (taking remaining space) */
.project-card .project-info {
  flex: 0 0 calc(45% - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
}

.project-header-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 12px;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.project-url-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.project-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: var(--border-thin);
  padding-top: 18px;
}

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

.project-tag-pill {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 3px 10px;
  border-radius: 100px;
  transition: var(--transition-snappy);
}

.project-card:hover .project-tag-pill {
  background: #e4e4e7;
}

[data-theme="dark"] .project-card:hover .project-tag-pill {
  background: #27272a;
  color: var(--text-primary);
}

.explore-cue {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-snappy);
}

.explore-cue svg {
  transition: transform 0.2s ease;
}

.project-card:hover .explore-cue svg {
  transform: translateX(4px);
}

/* Redesigned Big Typographic Footer */
.footer-wrapper {
  background: var(--bg-primary); /* pure white */
  border-top: var(--border-thin);
  padding: 100px 0 48px 0; /* spacious top padding */
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer-cta-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.footer-contact-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-link {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-snappy);
  border-bottom: 1px solid transparent;
}

.footer-link:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.footer-dot {
  color: var(--text-muted);
  font-size: 0.8rem;
  user-select: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: var(--border-thin);
  padding-top: 32px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------- */
/* Premium Right-Side Slide-Out details drawer */
/* ---------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  height: 100dvh;
  background: var(--bg-primary);
  border-left: var(--border-thin);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.04);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2100;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

.modal-container.open {
  transform: translateX(0);
}

/* Drawer contents panel */
.modal-sidebar {
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 100%;
}
.modal-sidebar::after {
  content: "";
  display: block;
  height: 48px; /* Comfortable bottom gap to prevent buttons from sticking to viewport edge */
  flex-shrink: 0;
}

/* Custom Follower Close Button */
.modal-backdrop.open {
  cursor: none; /* Hide default cursor when hovering backdrop */
}

.close-cursor-follower {
  position: fixed;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: var(--border-thin);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Let clicks pass to the backdrop */
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.close-cursor-follower.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Mobile Close Button (Hidden on Desktop) */
.close-modal-mobile-btn {
  display: none;
}

.drawer-header {
  display: flex;
  flex-direction: column;
}

/* Premium screenshot preview */
.drawer-image-wrapper {
  width: 100%;
  max-width: 100%; /* Fill the entire content width of the details drawer */
  margin: 0 0 28px 0; /* Align left flush with details text */
  border-radius: 12px;
  overflow: hidden;
  border: var(--border-thin);
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite linear;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.drawer-image-pan {
  width: 100%;
  height: 230px; /* Increased height for a larger, detailed presentation */
  overflow: hidden;
  position: relative;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.drawer-image-pan.loaded {
  opacity: 1;
}

.drawer-image-pan img {
  width: 100%;
  height: auto;
  display: block;
}

.drawer-header h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.drawer-header p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.drawer-meta-section {
  border-top: var(--border-thin);
  border-bottom: var(--border-thin);
  padding: 24px 0;
}

.sidebar-meta .details-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.modal-sidebar #modal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-sidebar #modal-tags .project-tag-pill {
  font-size: 0.72rem;
  padding: 4px 12px;
  background: var(--bg-tertiary);
  border: none;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto; /* Push actions to the bottom */
}

.modal-visit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition-snappy);
}

.modal-visit-btn:hover {
  background: #27272a;
}

[data-theme="dark"] .modal-visit-btn:hover {
  background: #e4e4e7;
  color: #09090b;
}

.modal-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: var(--bg-primary);
  border: var(--border-thin);
  color: var(--text-primary);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition-snappy);
}

.modal-copy-btn:hover {
  border-color: var(--text-primary);
  background: var(--bg-secondary);
}

body.modal-open {
  overflow: hidden;
}

/* ---------------------------------------------------- */
/* Premium Shimmer Skeleton Loading System */
/* ---------------------------------------------------- */
.skeleton {
  position: relative !important;
  overflow: hidden !important;
  background: #f4f4f5 !important; /* light gray zinc-100 */
  color: transparent !important;
  border-color: transparent !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

.skeleton::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.6) 50%, 
    rgba(255, 255, 255, 0) 100%
  ) !important;
  background-size: 200% 100% !important;
  animation: shimmer 1.5s infinite linear !important;
  z-index: 5 !important;
}

/* Specific item layout properties while in skeleton state */
.project-card-title.skeleton {
  width: 70% !important;
  height: 32px !important;
  border-radius: 6px !important;
  display: inline-block !important;
}

.project-url-label.skeleton {
  width: 40% !important;
  height: 18px !important;
  border-radius: 4px !important;
  display: inline-block !important;
  margin-top: 4px !important;
}

.project-card-desc.skeleton {
  width: 100% !important;
  height: 60px !important;
  border-radius: 8px !important;
  display: block !important;
  margin-bottom: 28px !important;
}

.project-tag-pill.skeleton {
  width: 65px !important;
  height: 22px !important;
  border-radius: 100px !important;
  display: inline-block !important;
}

/* Detail Drawer (Modal) Skeleton Styling */
#modal-title.skeleton {
  width: 80% !important;
  height: 34px !important;
  border-radius: 6px !important;
  display: inline-block !important;
  margin-bottom: 12px !important;
}

#modal-desc.skeleton {
  width: 100% !important;
  height: 80px !important;
  border-radius: 8px !important;
  display: block !important;
}

/* Smooth Fade In Transitions when skeleton class is removed */
.fade-transition {
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease !important;
}

/* ---------------------------------------------------- */
/* Theme Toggle Button Style */
/* ---------------------------------------------------- */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: var(--border-thin);
  background: transparent;
  color: var(--text-secondary);
  transition: var(--transition-snappy);
  cursor: pointer;
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  background: var(--bg-secondary);
}

/* Hide sun/moon icons by default, show based on theme attribute */
.theme-toggle-btn .sun-icon {
  display: block;
}
.theme-toggle-btn .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: none;
}
[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: block;
}

/* ---------------------------------------------------- */
/* Scroll Reveal Animations */
/* ---------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback if JS is disabled or fails to run */
.no-js .reveal-on-scroll {
  opacity: 1 !important;
  transform: none !important;
}


/* ---------------------------------------------------- */
/* Responsive Media Breakpoints */
/* ---------------------------------------------------- */
@media (max-width: 1024px) {
  .project-card {
    gap: 48px;
  }
  
  .project-card .image-pan-wrapper {
    flex: 0 0 50%;
    width: 50%;
    height: 360px;
  }
  
  .project-card .project-info {
    flex: 0 0 calc(50% - 48px);
  }

  .project-card-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 768px) {
  /* Mobile-only Close Button */
  .close-modal-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--bg-primary);
    border: var(--border-thin);
    color: var(--text-primary);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition-snappy);
  }

  .close-modal-mobile-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--text-primary);
  }

  .nav-links {
    gap: 18px; /* Tighter navigation spacing on mobile */
  }

  .brand-name {
    font-size: 1.05rem; /* Proportional scaling on mobile */
  }

  .profile-banner-container {
    flex-direction: column-reverse; /* avatar on top, text details below */
    gap: 32px; /* reduced by 10% */
    text-align: center;
  }

  .profile-banner-text {
    flex: none;
    width: 100%;
    text-align: center;
  }

  .profile-banner-avatar {
    flex: none;
    width: 100%;
    justify-content: center;
  }

  .profile-avatar-container {
    width: 115px; /* reduced by an additional 10% (from 128px) */
    height: 115px; /* reduced by an additional 10% (from 128px) */
    margin: 0 auto;
  }

  .profile-banner-section {
    padding-top: 130px;   /* Added spacing below the fixed header (80px header + 50px gap) */
    padding-bottom: 32px;
  }



  .profile-name {
    font-size: 2.5rem; /* reduced by 10% */
  }

  .profile-title {
    font-size: 1.2rem; /* reduced by 10% */
    margin-top: 14px; /* reduced by 10% */
  }

  .profile-actions {
    margin-top: 32px; /* reduced by 10% */
  }

  .fiverr-action-btn {
    padding: 12px 28px; /* reduced by 10% */
    font-size: 0.76rem; /* reduced by 10% */
  }

  .footer-cta-title {
    font-size: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .portfolio-section {
    padding-top: 60px;
  }

  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 48px;
  }

  .search-bar-container {
    max-width: 100%;
  }

  .filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-pill, .filter-separator {
    flex-shrink: 0;
  }

  .project-list {
    gap: 80px;
  }

  .project-card, .project-card:nth-child(even) {
    flex-direction: column;
    gap: 24px;
  }
  
  .project-card .image-pan-wrapper {
    flex: none;
    width: 100%;
    height: 320px;
  }
  
  .project-card .project-info {
    flex: none;
    width: 100%;
  }

  .modal-container {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 12px; /* Extra compact navigation links for small phones */
  }

  .brand-name {
    font-size: 0.95rem; /* Crisp micro brand typography */
  }

  .nav-link {
    font-size: 0.78rem;
  }

  .profile-name {
    font-size: 2.0rem; /* reduced by 10% (from 2.2rem) */
  }

  .profile-avatar-container {
    width: 84px; /* reduced by an additional 10% (from 94px) */
    height: 84px; /* reduced by an additional 10% (from 94px) */
  }

  .profile-title {
    font-size: 1.05rem; /* reduced by 10% */
    margin-top: 12px;
  }

  .profile-actions {
    margin-top: 28px;
  }

  .fiverr-action-btn {
    padding: 11px 25px;
    font-size: 0.72rem;
  }
  
  .project-card .image-pan-wrapper {
    height: 240px;
  }

  .project-card-title {
    font-size: 1.5rem;
  }
}

/* Scroll Progress Indicator Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--text-primary);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Staggered Filter Entrance/Exit Animations */
.project-card {
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card.fade-out {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.project-card.fade-in {
  animation: projectFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes projectFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Fullscreen Image Zoom Overlay */
.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--zoom-bg);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: zoom-out;
  padding: 32px;
}

.zoom-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.close-zoom-btn {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  aspect-ratio: 1;
  border: 1px solid var(--border-thin);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition-snappy);
  cursor: pointer;
  z-index: 3100;
}

.close-zoom-btn:hover {
  border-color: var(--text-primary);
  background: var(--bg-secondary);
}

.zoom-image-container {
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
  background: var(--bg-primary);
  border: var(--border-thin);
  scrollbar-width: none;
}

.zoom-image-container::-webkit-scrollbar {
  display: none;
}

.zoom-image-container img {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  cursor: zoom-out;
}

/* Image Expand Trigger Overlay inside Drawer */
.drawer-image-pan {
  position: relative;
}

.image-expand-trigger {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9);
  transition: var(--transition-snappy);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.drawer-image-pan:hover .image-expand-trigger {
  opacity: 1;
  transform: scale(1);
}

.image-expand-trigger:hover {
  background: #ffffff;
  border-color: #18181b;
}

/* Drawer Navigation/Pagination Controls */
.drawer-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: var(--border-thin);
  padding-top: 24px;
  margin-top: 24px;
}

.pag-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: var(--bg-secondary);
  border: var(--border-thin);
  color: var(--text-secondary);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-snappy);
  cursor: pointer;
}

.pag-btn:hover:not(:disabled) {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.pag-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Shimmer animation keyframes for loading skeleton placeholders */
@keyframes shimmer {
  0 {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ---------------------------------------------------- */
/* Dynamic Like/Unlike System Styles */
/* ---------------------------------------------------- */

/* Card Floating Glassmorphic Feedback Bar */
.card-feedback-bar {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 100px;
  padding: 4px 6px;
  display: flex;
  gap: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}

[data-theme="dark"] .card-feedback-bar {
  background: rgba(18, 18, 21, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.feedback-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.feedback-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}

[data-theme="dark"] .feedback-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

.feedback-btn svg {
  transition: transform 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
}

.feedback-btn:active svg {
  transform: scale(0.85);
}

/* Active like state (Green) */
.feedback-btn.like-btn.active {
  color: #10b981;
}
.feedback-btn.like-btn.active svg {
  fill: #10b981;
  stroke: #10b981;
}

/* Active unlike state (Red) */
.feedback-btn.unlike-btn.active {
  color: #ef4444;
}
.feedback-btn.unlike-btn.active svg {
  fill: #ef4444;
  stroke: #ef4444;
}


