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

:root {
  --bg-base: #07111f;
  --bg-secondary: #0b1728;
  --surface: rgba(15, 23, 42, 0.7);
  --surface-strong: rgba(15, 23, 42, 0.88);
  --border: rgba(148, 163, 184, 0.18);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.12), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(59, 130, 246, 0.12), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(14, 165, 233, 0.08), transparent 34%),
    linear-gradient(180deg, #0b1220 0%, #08111c 42%, #050b14 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 85%);
  pointer-events: none;
  z-index: -1;
}

.glassmorphism {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.68));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.32);
}

.lofi-glow {
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.18), 0 20px 45px rgba(14, 165, 233, 0.14);
}

.lofi-text {
  font-family: 'Sora', sans-serif;
  color: var(--text-primary);
  text-shadow: 0 8px 30px rgba(15, 23, 42, 0.32);
}

.floating {
  animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

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

.typing-animation {
  border-right: 2px solid var(--accent);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 50% { border-color: var(--accent); }
  51%, 100% { border-color: transparent; }
}

.skill-progress {
  height: 6px;
  background: linear-gradient(90deg, #ffb6c1, #dda0dd);
  border-radius: 3px;
  transition: width 2s ease-in-out;
}

.skill-bar {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  height: 6px;
}

.section-spacing {
  padding: 96px 20px;
  scroll-margin-top: 120px;
}

.content-box {
  padding: 32px;
  margin: 16px 0;
}

.text-spacing {
  margin-bottom: 16px;
  line-height: 1.7;
}

.App {
  position: relative;
}

.lofi-card:hover {
  transform: translateY(-6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-color: rgba(125, 211, 252, 0.28);
  box-shadow: 0 22px 50px rgba(2, 6, 23, 0.34), 0 0 0 1px rgba(125, 211, 252, 0.12);
}

.screenshot-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.screenshot-modal {
  width: min(100%, 1040px);
  padding: 28px;
  border-radius: 28px;
}

.screenshot-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.screenshot-modal-label {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.screenshot-modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.65rem;
  line-height: 1.3;
  color: var(--text-primary);
}

.screenshot-close-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s ease;
}

.screenshot-close-button:hover {
  color: var(--text-primary);
  border-color: rgba(125, 211, 252, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.screenshot-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.screenshot-frame {
  width: 100%;
  max-width: 860px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
}

.screenshot-image {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

.screenshot-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.84);
  color: var(--text-primary);
  transition: all 0.25s ease;
}

.screenshot-arrow:hover {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(125, 211, 252, 0.28);
}

.screenshot-arrow-left {
  left: -18px;
}

.screenshot-arrow-right {
  right: -18px;
}

.screenshot-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.screenshot-counter {
  color: var(--text-secondary);
  font-size: 0.95rem;
  min-width: 52px;
}

.screenshot-thumbnails {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.screenshot-thumb {
  width: 78px;
  height: 54px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.25s ease;
}

.screenshot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.screenshot-thumb.active {
  border-color: rgba(125, 211, 252, 0.4);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.18);
}

.screenshot-thumb.active img,
.screenshot-thumb:hover img {
  opacity: 1;
}

@media (max-width: 768px) {
  .screenshot-modal {
    padding: 20px;
    border-radius: 22px;
  }

  .screenshot-modal-title {
    font-size: 1.2rem;
  }

  .screenshot-stage {
    padding: 0 8px;
  }

  .screenshot-arrow {
    width: 42px;
    height: 42px;
  }

  .screenshot-arrow-left {
    left: 2px;
  }

  .screenshot-arrow-right {
    right: 2px;
  }

  .screenshot-image {
    max-height: 360px;
  }
}

::selection {
  background: rgba(125, 211, 252, 0.2);
  color: #ffffff;
}
