@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --brand: #425369;
  --brand-light: #7c92ae;
  --bg-deep: #060a13;
  --bg-mid: #0f1623;
  --bg-soft: #1a2333;
}

html {
  background: var(--bg-deep);
  color: #e7ecf3;
  min-height: 100%;
}

body {
  background: transparent;
  color: #e7ecf3;
  min-height: 100%;
}

body {
  font-family: var(--font-inter), system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Selection color */
::selection {
  background: rgba(124, 146, 174, 0.4);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #0a0f1a;
}
::-webkit-scrollbar-thumb {
  background: #2a3548;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #425369;
}

/* Utility: subtle glass card */
.glass {
  background: rgba(20, 28, 44, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 146, 174, 0.18);
}

.glass-strong {
  background: rgba(20, 28, 44, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(124, 146, 174, 0.22);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, #425369 0%, #5d7591 100%);
  color: white;
  border: 1px solid rgba(124, 146, 174, 0.5);
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(66, 83, 105, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 146, 174, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  background: rgba(124, 146, 174, 0.08);
  color: #cdd7e5;
  border: 1px solid rgba(124, 146, 174, 0.35);
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(124, 146, 174, 0.18);
  border-color: rgba(124, 146, 174, 0.6);
  color: white;
  transform: translateY(-2px);
}

/* Section heading */
.heading-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #c8d4e6 50%, #7c92ae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Bubbles container */
.bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -40px;
  border-radius: 9999px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(180, 200, 225, 0.7),
    rgba(124, 146, 174, 0.35) 50%,
    rgba(66, 83, 105, 0.0) 70%
  );
  box-shadow: 0 0 20px rgba(124, 146, 174, 0.55),
    inset 0 0 10px rgba(255, 255, 255, 0.15);
  filter: blur(0.5px);
  animation-name: floatUp;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Marquee for references */
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

/* Ambient floating glows (yavasca yuzen arka plan isiltilari) */
.ambient-glow {
  will-change: transform, opacity;
  pointer-events: none;
}

.ambient-glow-1 {
  top: 5%;
  left: 5%;
  animation: drift1 22s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  top: 30%;
  right: 0%;
  animation: drift2 28s ease-in-out infinite alternate;
}

.ambient-glow-3 {
  bottom: 5%;
  left: 35%;
  animation: drift3 25s ease-in-out infinite alternate;
}

@keyframes drift1 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(220px, 180px) scale(1.15);
    opacity: 0.7;
  }
  100% {
    transform: translate(80px, 280px) scale(1);
    opacity: 0.5;
  }
}

@keyframes drift2 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate(-260px, 200px) scale(1.1);
    opacity: 0.65;
  }
  100% {
    transform: translate(-120px, -160px) scale(0.95);
    opacity: 0.4;
  }
}

@keyframes drift3 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(180px, -200px) scale(1.2);
    opacity: 0.65;
  }
  100% {
    transform: translate(-140px, -80px) scale(1);
    opacity: 0.45;
  }
}

/* Hover glow utility (kartlar/butonlar icin) */
.hover-glow {
  position: relative;
  isolation: isolate;
}

.hover-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(124, 146, 174, 0.25),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  pointer-events: none;
}

.hover-glow:hover::before {
  opacity: 1;
}
