:root {
  --bg: #0E0E1E;
  --bg-alt: #111128;
  --text: #e5e7eb;
  --muted: #9CA3AF;
  --accent: #7c3aed;
  --accent-2: #00D4FF;
  --border: #1f2937;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { opacity: 0.9; }

.hero { position: relative; padding: 8rem 1.5rem 3rem; text-align: center; background: linear-gradient(180deg, rgba(124,58,237,0.12), rgba(0,212,255,0.06)); border-bottom: 1px solid var(--border); }
.hero .hero-text h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0.25rem 0; }
.hero .hero-title { letter-spacing: 0.35em; font-weight: 900; }

.case-study-section { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; border-bottom: 1px solid var(--border); }
.case-study-section h2 { font-size: 1.5rem; margin: 0 0 0.75rem; }
.case-study-section p { color: var(--text); opacity: 0.9; line-height: 1.7; }
.case-study-section ul { padding-left: 1.25rem; }
.case-study-section li { margin: 0.25rem 0; color: var(--text); opacity: 0.9; }

.key-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.feature { background: var(--bg-alt); border: 1px solid var(--border); padding: 1rem; border-radius: 0.75rem; }
.feature h3 { margin-top: 0; }

.image-gallery { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.image-gallery h2 { margin: 0 0 1rem; }
.image-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.image-gallery-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 0.5rem; cursor: zoom-in; transition: transform 0.2s ease; border: 1px solid var(--border); background: #0a0a16; }
.image-gallery-grid img:hover { transform: scale(1.01); }

.image-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(2px); z-index: 1000; align-items: center; justify-content: center; }
.image-overlay.open { display: flex; }
#expandedImg { max-width: 90vw; max-height: 85vh; border-radius: 0.5rem; box-shadow: 0 10px 40px rgba(0,0,0,0.5); border: 1px solid var(--border); }
.close-btn, .prev-btn, .next-btn { position: absolute; color: white; font-size: 2rem; cursor: pointer; user-select: none; }
.close-btn { top: 20px; right: 28px; }
.prev-btn { left: 24px; top: 50%; transform: translateY(-50%); }
.next-btn { right: 24px; top: 50%; transform: translateY(-50%); }

.cta-section { text-align: center; padding: 2.5rem 1.5rem 4rem; }
.cta-section a { display: inline-block; background: var(--accent); color: white; padding: 0.75rem 1.25rem; border-radius: 0.75rem; font-weight: 700; border: 1px solid rgba(255,255,255,0.08); }
.cta-section a:hover { background: #6d28d9; }

img.clickable-image { border: 1px solid var(--border); border-radius: 0.5rem; margin-top: 0.5rem; max-width: 100%; height: auto; }
