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

body, body * {
  user-select: none;
  -webkit-user-select: none;
  cursor: default !important;
}

a, button, .btn-primary, .btn-outline, .btn-ghost {
  cursor: pointer !important;
}

:root {
  --bg: #111e1e;
  --bg-card: #172424;
  --bg-card-hover: #1e2f2f;
  --accent: #00e5b0;
  --accent-dim: rgba(0, 229, 176, 0.15);
  --accent-glow: rgba(0, 229, 176, 0.25);
  --text: #e0f2f0;
  --text-muted: #7aa8a4;
  --border: rgba(0, 229, 176, 0.12);
  --border-hover: rgba(0, 229, 176, 0.4);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(0, 229, 176, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(0, 150, 120, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--border-hover);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

h1 {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}

.accent {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
  font-weight: 400;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #0a1a18;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #1af5c0;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 176, 0.3);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.2s ease;
  cursor: pointer !important;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.selectable {
  user-select: text;
  -webkit-user-select: text;
  cursor: text !important;
}

.hero-tg-hint {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  opacity: 0.6;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  margin: 0 auto;
  animation: scrollDown 2s ease infinite;
}

@keyframes scrollDown {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ── SECTION HEADER ── */

.section-header {
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* ── SERVICES ── */

.services {
  padding: 0 0 120px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-glow);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-dim);
  border: 1px solid var(--border-hover);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.service-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services {
    padding-bottom: 80px;
  }
}

/* ── PROJECTS ── */

.projects {
  padding: 120px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-hover), 0 4px 40px var(--accent-glow);
}

/* Placeholders */
.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder {
  background: linear-gradient(135deg, #1a3030 0%, #0f2525 100%);
}

.placeholder-1 {
  background: linear-gradient(135deg, #0f2a2a 0%, #1a3d3a 50%, #0d2424 100%);
}

.placeholder-2 {
  background: linear-gradient(135deg, #1a2f2a 0%, #0f3328 50%, #152b28 100%);
}

.placeholder-3 {
  background: linear-gradient(135deg, #0f2830 0%, #1a3438 50%, #0d2530 100%);
}

.placeholder-label {
  font-size: 15px;
  font-weight: 600;
  color: rgba(0, 229, 176, 0.3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 1;
}

.placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 229, 176, 0.05) 0%, transparent 70%);
}

.card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 100px;
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.card-hook {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.dot {
  width: 5px;
  height: 5px;
  min-width: 5px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.7;
}

.card-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ── CONTACT ── */

.contact {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 560px;
}

.contact h2 {
  margin-bottom: 12px;
}

.contact p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 36px;
}

.contact-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-ghost {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── LIGHTBOX ── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  cursor: pointer !important;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--border-hover);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.lightbox.open .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer !important;
  transition: all 0.2s;
}

.lightbox-close:hover {
  background: rgba(0, 229, 176, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.zoomable {
  cursor: zoom-in !important;
  transition: opacity 0.2s;
}

.zoomable:hover {
  opacity: 0.85;
}

/* ── FOOTER ── */

footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

footer .container {
  display: flex;
  justify-content: center;
}

footer span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── ANIMATIONS ── */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.cards .card:nth-child(2) { transition-delay: 0.1s; }
.cards .card:nth-child(3) { transition-delay: 0.2s; }

/* ── RESPONSIVE ── */

@media (max-width: 768px) {
  .hero-content {
    padding: 100px 0 60px;
  }

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

  .contact-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects {
    padding: 80px 0;
  }

  .contact {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .card-links {
    flex-direction: column;
  }

  .btn-outline {
    text-align: center;
    justify-content: center;
  }
}
