/* ==========================================================================
   playCEM / CEM Software - Modern Dark Glassmorphism Stylesheet
   Domain: playcem.tr
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #070913;
  --bg-card: rgba(17, 24, 39, 0.7);
  --border-card: rgba(255, 255, 255, 0.08);
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  overflow-x: hidden;
  background-color: #070913;
  background-image: 
    radial-gradient(at 15% 15%, rgba(139, 92, 246, 0.12) 0px, transparent 50%),
    radial-gradient(at 85% 25%, rgba(6, 182, 212, 0.10) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(59, 130, 246, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #090d1a;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
  border: 2px solid #090d1a;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.glass-nav {
  background: rgba(7, 9, 19, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-card {
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02) 40%, rgba(139, 92, 246, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 22px 35px -10px rgba(139, 92, 246, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.4);
}

/* Gradient Text */
.gradient-text-purple-cyan {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 35%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-neon {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Ambient Glow Orbs */
.ambient-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-25px) scale(1.08);
  }
  100% {
    transform: translateY(15px) scale(0.96);
  }
}

/* Pulse Glow */
.glow-button {
  position: relative;
  transition: all 0.3s ease;
}

.glow-button::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: inherit;
  filter: blur(14px);
  opacity: 0;
  border-radius: inherit;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.glow-button:hover::after {
  opacity: 0.6;
}

/* Grid Pattern Background */
.tech-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Image App Icon Styling */
.app-icon-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card:hover .app-icon-img {
  transform: scale(1.06) rotate(1deg);
}

/* Badge Glow */
.badge-pulse {
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

/* Responsive Modal Styling */
.modal-backdrop {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.75);
}
