/* CSS Custom Properties / Variables */
:root {
  /* Primary Color Scale (50-950) */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;
  --primary-950: #082f49;

  /* Secondary Color Scale (50-950) */
  --secondary-50: #fdf4ff;
  --secondary-100: #fae8ff;
  --secondary-200: #f5d0fe;
  --secondary-300: #f0abfc;
  --secondary-400: #e879f9;
  --secondary-500: #d946ef;
  --secondary-600: #c026d3;
  --secondary-700: #a21caf;
  --secondary-800: #86198f;
  --secondary-900: #701a75;
  --secondary-950: #4a044e;

  /* UI Primary Tokens (4 Abstufungen) */
  --ui-primary-1: var(--primary-500);
  --ui-primary-2: var(--primary-600);
  --ui-primary-3: var(--primary-700);
  --ui-primary-4: var(--primary-800);

  /* UI Secondary Tokens (4 Abstufungen) */
  --ui-secondary-1: var(--secondary-500);
  --ui-secondary-2: var(--secondary-600);
  --ui-secondary-3: var(--secondary-700);
  --ui-secondary-4: var(--secondary-800);

  /* Text Tokens */
  --ui-text-base: #18202b;
  --ui-text-dimmed: #53555a;
  --ui-text-light: #9ca3af;
  --ui-text-muted: #d1d5db;

  /* Border Tokens */
  --ui-border-base: #1f2937;
  --ui-border-dimmed: #6b7280;
  --ui-border-light: #9ca3af;
  --ui-border-muted: #f0f0f0;

  /* Background Tokens */
  --ui-bg-base: #ffffff;
  --ui-bg-dimmed: #f9fafb;
  --ui-bg-light: #f3f4f6;
  --ui-bg-muted: #e5e7eb;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Layout container */
  --container-max-width: 1800px;
  --container-padding: var(--spacing-lg);

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;

  /* CSS for decorative background grid */
  --grid-columns: 12; /* Anzahl der Spalten */
  --grid-gap: 24px; /* Größe der Gaps */
  --gap-color: rgba(229, 231, 235, 0.5); /* Farbe der Gaps */
}

/* Fonts - detected files are in ./assets/font/ */

/*@font-face {
  font-family: 'Neue Bit';
  /* local OTF provided in assets/font 
  src: url('./assets/font/ppneuebit-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}*/

@font-face {
  font-family: 'PP Editorial New';
  /* local OTF provided in assets/font */
  src: url('./assets/font/ppeditorialnew-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Editorial New';
  /* local OTF provided in assets/font */
  src: url('./assets/font/ppeditorialnew-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


.source-serif-4-font> {
  font-family: "Source Serif 4", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

/* Apply Neue Bit to main headings */
.Editorial-New {
  font-family: 'PP Editorial New', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Text Color Classes */
.ui-text-base {
  color: var(--ui-text-base);
}

.ui-text-dimmed {
  color: var(--ui-text-dimmed);
}

.ui-text-light {
  color: var(--ui-text-light);
}

.ui-text-muted {
  color: var(--ui-text-muted);
}

/* Background Classes */
.ui-bg-base {
  background-color: var(--ui-bg-base);
}

.ui-bg-dimmed {
  background-color: var(--ui-bg-dimmed);
}

.ui-bg-light {
  background-color: var(--ui-bg-light);
}

.ui-bg-muted {
  background-color: var(--ui-bg-muted);
}

/* Border Classes */
.ui-border-base {
  border-color: var(--ui-border-base);
}

.ui-border-dimmed {
  border-color: var(--ui-border-dimmed);
}

.ui-border-light {
  border-color: var(--ui-border-light);
}

.ui-border-muted {
  border-color: var(--ui-border-muted);
}

/* Minimal reset: Tailwind provides base styles; keep body defaults */
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--ui-bg-base);
  color: var(--ui-text-base);
}

/* Aspect ratio helper: 16:9 via padding-top */
.aspect-auto-16x9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 9/16 = 0.5625 */
  background-position: center;
  background-size: cover;
}

/* If content needs to be absolutely positioned inside an aspect box */
.aspect-auto-16x9 > * {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Filter Label Styles */
.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: lighter;
  background-color: #ffffff;
  border-radius: 50px;
  border: 1px solid #dedede;
  color: var(--ui-text-base);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .filter-label  {
      padding: 0.5rem 1rem;
  }
}

.filter-label .filter-icon {
  fill: var(--ui-text-base);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

/* Colored icons in default state */
.filter-label .filter-icon-graphic {
  fill: #c83030; /* red-400 */
}

.filter-label .filter-icon-uiux {
  fill: #ad8e11; /* yellow-400 */
}

.filter-label .filter-icon-motion {
  fill: #2872cc; /* blue-400 */
}

.filter-label .filter-icon-video {
  fill: #16ba52; /* green-400 */
}

.filter-label:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.filter-label:hover .filter-icon {
  transform: scale(1.1);
}

.filter-label.active {
  background-color: var(--ui-text-base);
  color: white;
}

.filter-label.active .filter-icon {
  fill: white;
}

/* Smooth fade-in and fade-out for project cards */
.group {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.group.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* Project Cards Hover Effect */
#projects .grid .group > div.relative {
  transition: transform 0.3s ease;
}

#projects .grid .group:hover > div.relative {
  transform: scale(1.01);
}

/* Background grid for design element - aligned with Tailwind container */
.background-grid {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 100%; /* Mobile: full width */
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Mobile: 4 columns */
  column-gap: 12px;
  pointer-events: none;
  z-index: -1;
  background-color: transparent;
}

@media (min-width: 640px) {
  .background-grid {
    max-width: 640px; /* sm: matches container */
  }
}
@media (max-width: 640px) {
  .background-grid {
      padding-left: 1rem; /* Mobile: matches Tailwind container padding */
      padding-right: 1rem;
  }
}

@media (min-width: 768px) {
  .background-grid {
    max-width: 768px; /* md: matches container */
    grid-template-columns: repeat(8, 1fr); /* Tablet: 8 columns */

  }
}

@media (min-width: 1024px) {
  .background-grid {
    max-width: 1024px;

  }
}

@media (min-width: 1280px) {
  .background-grid {
    max-width: 1280px; /* xl: matches container */

  }
}

@media (min-width: 1536px) {
  .background-grid {
    max-width: 1536px; /* 2xl: full width */

  }
}
@media (min-width: 1800px) {
  .background-grid {
    max-width: 90vw; /* 2xl: full width */
  }
}

.background-grid > div {
  background-color: white;
  border-left: 1px solid var(--ui-border-muted);
  border-right: 1px solid var(--ui-border-muted);
}

/* Prevent horizontal overflow */
html, body {
  overflow-x: hidden;
}
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
}
@media (min-width: 1800px) {
    .container {
        max-width: 90vw !important;
    }
}

/* Dashboard Card Styling */
.dashboard-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
}
@media (min-width: 1530px) {
    .dashboard-card{
            padding: 1rem;
    }
}
.dashboard-card:hover {
    transform: translateY(-2px);
}

/* Image Slider */
.slider-image {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    inset: 0;
}

.slider-image.active {
    opacity: 1;
    z-index: 1;
}

/* Project images: first visible by default, others fade in when entering viewport */
.project-image {
  display: block;
  width: 100%;
  height: auto;
}
.fade-in-on-scroll {
  /* disabled fade: keep images visible by default */
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.fade-in-on-scroll.visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Navigation Pill Styling */
.nav-pill {
  background-color: #dedede7f;
  border-radius: 50px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  border: 1px solid #d0d0d07f;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  visibility: visible;
  overflow: visible;
}

.nav-item {
  padding: 0.75rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 300;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ui-text-base);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background-color: transparent;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
   transition: all 1m 0.6s ease;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.nav-item:hover {
  padding: 0.75rem 1.2rem;
  transform: translateY(-1px) scale(1.02);
  letter-spacing: 0.08em;
}

.nav-item:hover::before {
  transform: translateX(100%);
}

.nav-item.active {
  background-color: var(--ui-text-base);
  color: white;
  padding: 0.75rem 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
              color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-item.active:hover {
  background-color: var(--ui-text-base);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Header Scroll Animation - Complete System */
header {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  z-index: 1000;
  width: fit-content;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

header.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
}


header.nav-hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

/* Mobile responsive adjustments for header positioning */
@media (max-width: 640px) {
  header {
    top: 1rem; /* smaller top margin on mobile */
  }
}

/* Responsive Navigation Adjustments */
@media (max-width: 640px) {
  .nav-pill {
    padding: 0.25rem;
    gap: 0.12rem;
  }
  
  .nav-item {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
  }
  
  .nav-item:hover {
    padding: 0.5rem 1.25rem;
  }
  
  .nav-item.active {
    padding: 0.5rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .nav-item {
    padding: 0.8rem 0.4rem;
    font-size: 0.8rem;
  }
  
  .nav-item:hover {
    padding: 0.8rem 1rem;
  }
  
  .nav-item.active {
    padding: 0.8rem 1rem;
  }
}
/* ===== HERO EFFECT ===== */
.hero-effect{
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.hero-effect:hover{

    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
} 
/* ===== PROFILE CARD WRAPPER ===== */
.profile-card-wrapper {
  position: relative;
}

/* ===== USER PROFILE CARD ===== */
.user-profile-card {
  position: relative;
  padding: 0.2rem;
  background: transparent;
  border-radius: 50px;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  min-height: 48px;
  width: fit-content;
  user-select: none;
}

/* Desktop: mit Hintergrund, Border und Schatten */
@media (min-width: 640px) {
  .user-profile-card {
    padding: 0.5rem;
    background: white;
    border: 1px solid var(--ui-border-muted);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
}

.profile-card-wrapper:hover .user-profile-card {
  transform: translateY(-2px);
}

/* Rotate chevron when dropdown is open */
.profile-card-wrapper:hover .dropdown-chevron,
.profile-card-wrapper.open .dropdown-chevron {
  transform: rotate(180deg);
  color: #18202b;
}

@media (min-width: 640px) {
  .profile-card-wrapper:hover .user-profile-card {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.12);
  }
}

/* Pulsing Status Dot */
.status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2);
  }
}

/* Dropdown Menu */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1000;
  overflow: hidden;
}

/* Show dropdown on click (via .open class) or hover */
.profile-card-wrapper.open .profile-dropdown,
.profile-card-wrapper:hover .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--ui-text-dimmed);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  min-width: 190px;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  padding-left: 20px;
  color: var(--ui-text-base);
}

.dropdown-item svg {
  flex-shrink: 0;
  color: #6b7280;
  transition: color 0.2s ease;
}

.dropdown-item:hover svg {
  color: var(--ui-text-base);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Folder Preview Images - hinter dem Folder Front, kommen bei hover heraus */
.folder-preview-container {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 0;
}

.folder-preview-img {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
}

/* Default state - versteckt in der Mitte */
.folder-preview-img.left {
  transform: translateX(-20px) translateY(0) rotate(0deg) scale(0.8);
  z-index: -1;
}

.folder-preview-img.center {
  transform: translateX(0) translateY(0) rotate(0deg) scale(0.8);
  z-index: -1;
}

.folder-preview-img.right {
  transform: translateX(20px) translateY(0) rotate(0deg) scale(0.8);
  z-index: -1;
}

/* Hover state - Bilder fahren heraus */
.group:hover .folder-preview-img {
  opacity: 1;
}

.group:hover .folder-preview-img.left {
  transform: translateX(-35px) translateY(-70px) rotate(-12deg) scale(1);
}

.group:hover .folder-preview-img.center {
  transform: translateX(0) translateY(-85px) rotate(3deg) scale(1);
}

.group:hover .folder-preview-img.right {
  transform: translateX(35px) translateY(-65px) rotate(10deg) scale(1);
}

/* Responsive - größere Bilder auf größeren Screens */
@media (min-width: 768px) {
  .folder-preview-img {
    width: 160px;
    height: 160px;
  }
  
  .group:hover .folder-preview-img.left {
    transform: translateX(-95px) translateY(-125px) rotate(-12deg) scale(1);
  }
  
  .group:hover .folder-preview-img.center {
    transform: translateX(0) translateY(-135px) rotate(3deg) scale(1);
  }
  
  .group:hover .folder-preview-img.right {
    transform: translateX(125px) translateY(-115px) rotate(10deg) scale(1);
  }
}
