/* Rockbound - Studio Styles */
/* Clean light theme with teal accent */

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

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #2DD4BF;
  --color-primary-light: #5eead4;
  --color-primary-dark: #14b8a6;
  --color-pink: #f472b6;
  --color-yellow: #fde68a;
  --color-navy: #0000FF;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-bg-card: #FFFFFF;
  --color-text: #0F172A;
  --color-text-secondary: #475569;
  --color-text-muted: #94A3B8;
  --color-border: #E2E8F0;
  --color-border-light: #F1F5F9;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* === Scrollable content area === */
.page-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.page-scroll::-webkit-scrollbar {
  width: 6px;
}

.page-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.page-scroll::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.page-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  min-height: calc(100vh - 200px);
  padding-bottom: 80px;
}

/* === Header / Nav === */
.header {
  position: relative;
  z-index: 100;
  background: rgba(26, 29, 39, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #FFFFFF;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo-icon {
  filter: invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--color-yellow);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  text-decoration: none;
}

.nav-links a:hover {
  color: #FFFFFF;
  background: rgba(253, 230, 138, 0.1);
  text-decoration: none;
}

.nav-links a.active {
  color: #FFFFFF;
  background: rgba(253, 230, 138, 0.15);
}

/* Mobile menu button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  color: #FFFFFF;
}

.menu-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  z-index: 200;
  transition: right 0.3s ease;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.08);
}

.mobile-menu.open {
  display: flex;
  right: 0;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 199;
}

.mobile-overlay.open {
  display: block;
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-links {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-links a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text-secondary);
  border-radius: 6px;
  font-size: 0.9375rem;
  text-decoration: none;
}

.mobile-menu-links a:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
  text-decoration: none;
}

.mobile-menu-links a.active {
  color: var(--color-pink);
  background: rgba(244, 114, 182, 0.06);
}

.mobile-menu-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.mobile-menu-footer a {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

/* === Footer === */
.footer {
  max-width: none;
  padding: 2rem calc((100% - var(--max-width)) / 2 + 1.5rem);
  background: #1a1d27;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-year {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* === Hero === */
.hero {
  padding: 4rem 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* === Stones Animation === */
.stones-scene {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  position: relative;
}

.stone {
  position: absolute;
  left: var(--x);
  top: var(--y);
  animation: stone-skip 2s ease-out var(--delay) both;
}

.stone-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--color) 30%, transparent);
  animation: stone-pulse 3s ease-in-out calc(var(--delay) + 2s) infinite;
}

.stones-water {
  position: absolute;
  bottom: 10%;
  left: 0;
  width: 100%;
  height: 60px;
  animation: water-drift 6s ease-in-out infinite;
}

@keyframes stone-skip {
  0% { opacity: 0; transform: translateY(-30px) scale(0.5); }
  60% { opacity: 1; transform: translateY(5px) scale(1.1); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes stone-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes water-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .stone, .stone-dot, .stones-water {
    animation: none;
  }
  .stone { opacity: 1; }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-navy);
  color: #fff;
}

.btn-primary:hover {
  background: #0000cc;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-pink);
  color: var(--color-pink);
  background: rgba(244, 114, 182, 0.04);
}

.btn-lg {
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

/* === Category Pills === */
.category-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.category-pill {
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.category-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.category-pill.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* === Projects Grid === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.project-card:hover {
  border-color: var(--accent, var(--color-primary));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.project-card:hover::after {
  transform: scaleX(1);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-icon svg {
  width: 22px;
  height: 22px;
}

.project-card-category {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.project-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.project-card-tagline {
  font-size: 0.875rem;
  color: var(--color-navy);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.project-card-desc {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.project-card-features {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.project-card-feature {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  padding-left: 1rem;
  position: relative;
}

.project-card-feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-yellow);
  opacity: 1;
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* === About Teaser (Homepage) === */
.about-teaser {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  background: rgba(20, 184, 166, 0.03);
  border: 1px solid rgba(20, 184, 166, 0.12);
  margin-bottom: 3rem;
}

.about-teaser h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.about-teaser p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

/* === Chips / Tags === */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

/* === Project Detail === */
.project-detail {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 2rem;
  padding-top: 2rem;
}

.back-link:hover {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.project-hero {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.project-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-hero-icon svg {
  width: 32px;
  height: 32px;
}

.project-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0.375rem;
  margin-bottom: 0.25rem;
}

.project-hero .chip {
  margin-bottom: 0.5rem;
}

.project-hero-tagline {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.project-section {
  margin-bottom: 2.5rem;
}

.project-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.project-section p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.feature-list {
  padding-left: 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-yellow);
  opacity: 0.9;
}

.project-url {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

.external-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.25rem;
}

/* === Next Project === */
.next-project {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}

.next-project-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.next-project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.next-project-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* === About Page === */
.about-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.about-page h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.about-content {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 1.25rem;
}

.about-lead {
  font-size: 1.25rem;
  color: var(--color-text);
  font-weight: 500;
}

.about-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.about-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* === Legal Pages === */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.legal-page h1 {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.legal-page .subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.legal-content {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.legal-value {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.legal-footer {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 2rem;
  text-align: center;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2rem 0;
    gap: 2rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-visual {
    display: none;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mobile-menu {
    display: flex;
  }

  .project-hero {
    flex-direction: column;
  }

  .project-hero h1 {
    font-size: 1.75rem;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.875rem;
  }

  .container {
    padding: 0 1rem;
  }

  .category-pills {
    gap: 0.375rem;
  }

  .category-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
  }
}
