/* ============================
   Radiant Software — Main CSS
   ============================ */

:root {
  --primary: #e8720c;
  --primary-light: #f59e3b;
  --primary-dark: #c2610a;
  --bg: #09090b;
  --bg-elevated: #111114;
  --bg-card: #18181b;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --border: #27272a;
  --border-light: #3f3f46;
  --radius: 0px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================
   Navigation
   ============================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
}
.logo-icon {
  color: var(--primary);
  font-size: 1.4rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}
.btn-outline:hover {
  border-color: var(--text-muted);
  background: var(--bg-elevated);
}
.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ============================
   Section Shared
   ============================ */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ============================
   Hero
   ============================ */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(232, 114, 12, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid rgba(232, 114, 12, 0.3);
  border-radius: var(--radius);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================
   Services
   ============================ */
.services {
  padding: 100px 0;
  background: var(--bg-elevated);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.service-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  filter: grayscale(1) brightness(1.5);
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================
   Work / Portfolio
   ============================ */
.work {
  padding: 100px 0;
}
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
.project:last-child { margin-bottom: 0; }
.project-reverse { direction: rtl; }
.project-reverse > * { direction: ltr; }

.project-visual { position: relative; }
.project-screenshot {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center top;
}
.cherrypick-bg {
  background-image: url('screenshots/cherrypick.png');
  background-color: #1a1510;
  background-size: cover;
  background-position: center top;
}
.fit-bg {
  background-image: url('screenshots/fit.png');
  background-color: #0f1a1a;
  background-size: cover;
  background-position: center top;
}
.shablonix-bg {
  background: linear-gradient(135deg, #151015 0%, #1f102d 50%, #151015 100%);
  background-color: #151015;
}
.longevity-bg {
  background-image: url('screenshots/longevity.jpg');
  background-color: #101a0f;
  background-size: cover;
  background-position: center top;
}
.screenshot-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
}
.screenshot-badge {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius);
}

.project-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.project-info h3 a {
  transition: color 0.2s;
}
.project-info h3 a:hover { color: var(--primary); }
.project-info > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.project-features {
  margin-bottom: 20px;
}
.project-features li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.project-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.project-tech span {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--text-dim);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.project-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.2s;
}
.project-link:hover { color: var(--primary-light); }

/* ============================
   About
   ============================ */
.about {
  padding: 100px 0;
  background: var(--bg-elevated);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.about-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-values {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.value {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.value h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.value p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================
   Tech Stack
   ============================ */
.tech {
  padding: 100px 0;
}
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.tech-item {
  padding: 10px 24px;
  font-size: 0.88rem;
  font-family: var(--mono);
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
}
.tech-item:hover {
  border-color: var(--primary);
  color: var(--text);
}

/* ============================
   Contact
   ============================ */
.contact {
  padding: 100px 0;
  background: var(--bg-elevated);
}
.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: var(--border-light); }
.contact-icon {
  font-size: 1.5rem;
  filter: grayscale(1) brightness(1.5);
}
.contact-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ============================
   Footer
   ============================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 768px) {
  .nav-links { 
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero { padding: 120px 0 60px; }
  .hero-title { font-size: 2.2rem; }
  .hero-stats { gap: 32px; }
  .hero-actions { flex-direction: column; align-items: center; }

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

  .project,
  .project.project-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 24px;
  }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  .section-header h2 { font-size: 1.8rem; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================
   Animations
   ============================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-title,
.hero-subtitle,
.hero-actions,
.hero-stats {
  animation: fadeInUp 0.8s ease-out both;
}
.hero-subtitle { animation-delay: 0.1s; }
.hero-actions { animation-delay: 0.2s; }
.hero-stats { animation-delay: 0.3s; }
