@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #0c0f1a;
  --fog: #f7f5f0;
  --accent: #00d4ff;
  --accent-deep: #0056ff;
  --glow: #ff6aa2;
  --panel: rgba(10, 15, 29, 0.78);
  --panel-border: rgba(0, 212, 255, 0.3);
  --panel-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 0;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: #f2f6ff;
  background: #05070f;
  min-height: 100vh;
}

.page {
  position: relative;
  overflow: hidden;
}

.page::before,
.page::after {
  display: none;
}

.page::before {
  content: none;
}

.page::after {
  content: none;
}

main {
  position: relative;
  z-index: 1;
}

section {
  padding: 0 5vw;
}

.home {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-bottom: 80px;
}

.hero {
  padding: 120px 0 64px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 0;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

h1 {
  font-family: 'Bebas Neue', 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin: 24px 0 16px;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: rgba(242, 246, 255, 0.8);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn {
  border: none;
  border-radius: 0;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.btn.primary {
  background: var(--accent);
  color: #041016;
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.25);
}

.btn.primary:hover,
.btn.primary:focus {
  transform: translateY(-2px) scale(1.02);
}

.btn.ghost {
  background: rgba(12, 15, 26, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.btn.ghost:hover,
.btn.ghost:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 212, 255, 0.2);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.full {
  width: 100%;
  margin-top: 24px;
}

.panel {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(18px);
}

.panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 16px;
}

.panel p {
  color: rgba(242, 246, 255, 0.78);
  line-height: 1.7;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.tag-grid span {
  background: rgba(0, 212, 255, 0.12);
  padding: 10px 14px;
  border-radius: 0;
  border: 1px solid rgba(0, 212, 255, 0.18);
  text-align: center;
}

.favorites-title {
  font-size: 1.4rem;
  margin: 28px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(242, 246, 255, 0.8);
  text-align: center;
}

.favorites-list {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
  color: rgba(242, 246, 255, 0.78);
  justify-items: center;
}

.favorites-list li {
  line-height: 1.5;
}

.projects {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #14161b;
  padding: 48px 5vw;
}

.section-header {
  text-align: center;
}

.section-header p {
  color: rgba(242, 246, 255, 0.7);
}

.section-header h2 {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.projects .section-header,
.projects .project-grid {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.project-card {
  padding: 24px;
  border-radius: 0;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(6, 12, 22, 0.75);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  color: inherit;
  text-align: left;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition);
}

@media (min-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-card:hover,
.project-card:focus {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.6);
}

.project-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.project-card p {
  margin: 0 0 18px;
  color: rgba(242, 246, 255, 0.72);
}

.project-card span {
  font-weight: 600;
  color: var(--accent);
}

.cta {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.cta p {
  color: rgba(242, 246, 255, 0.78);
}

.project {
  padding: 80px 5vw 100px;
}

.project-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.text-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1rem;
  cursor: pointer;
  align-self: flex-start;
  text-decoration: none;
}

.project-header {
  text-align: left;
}

.project-category {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(242, 246, 255, 0.6);
}

.project-description {
  color: rgba(242, 246, 255, 0.75);
  font-size: 1.1rem;
}

.media-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.media-controls {
  display: flex;
  gap: 12px;
}

.media-frame {
  margin-top: 20px;
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  background: rgba(8, 12, 18, 0.8);
  border-radius: 0;
  border: 1px solid rgba(0, 212, 255, 0.2);
  overflow: hidden;
}

.media-frame img,
.media-frame video,
.media-frame iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-frame iframe {
  border: 0;
  display: block;
}

.media-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 14px;
}

.media-dot {
  width: 10px;
  height: 10px;
  border-radius: 0;
  border: none;
  background: rgba(242, 246, 255, 0.3);
  cursor: pointer;
}

.media-dot.active {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.8);
}

.media-empty {
  margin-top: 16px;
  color: rgba(242, 246, 255, 0.6);
}

.learned-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.learned-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 0;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.18);
}

.learned-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 700px) {
  .panel {
    padding: 24px;
  }

  .media-controls {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
