/* ===== S.S. Electric & Automation - Industrial Tech Minimalism ===== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Roboto:wght@400;500;700;900&display=swap');

:root {
  --primary: #00ff41;
  --primary-dim: #00cc34;
  --primary-rgb: 0, 255, 65;
  --bg-dark: #0a0a0a;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --border: #333333;
  --text: #ffffff;
  --text-sec: #b0b0b0;
  --font-display: 'Roboto', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-mono);
  background: var(--bg-dark);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== SPACE-TECH BACKGROUND ===== */
#space-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* Floating grid overlay */
body::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

/* Nebula glow spots */
body::after {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 15% 20%, rgba(var(--primary-rgb), 0.04), transparent),
    radial-gradient(ellipse 500px 500px at 85% 60%, rgba(0, 100, 255, 0.03), transparent),
    radial-gradient(ellipse 400px 300px at 50% 90%, rgba(var(--primary-rgb), 0.03), transparent);
}

/* Ensure all content sits above background */
.navbar { z-index: 50; position: relative; }
nav, section, footer, main, header, .page-header { position: relative; z-index: 1; }

/* Shooting star animation */
@keyframes shootingStar {
  0% { transform: translateX(0) translateY(0); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateX(300px) translateY(300px); opacity: 0; }
}

/* Pulse ring for tech feel */
@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

/* Floating particles CSS fallback */
.space-particle {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  background: rgba(var(--primary-rgb), 0.6);
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* Walking robots */
.walking-robot {
  position: fixed; bottom: 0; z-index: 2; pointer-events: none;
  width: 60px; height: 60px;
  image-rendering: auto;
}
.walking-robot img {
  width: 100%; height: 100%; object-fit: contain;
}
.walking-robot.go-right {
  animation: robotRight linear infinite;
}
.walking-robot.go-left {
  animation: robotLeft linear infinite;
}
.walking-robot.go-left img {
  transform: scaleX(-1);
}

@keyframes robotRight {
  0% { left: -80px; }
  100% { left: 110vw; }
}
@keyframes robotLeft {
  0% { right: -80px; }
  100% { right: 110vw; }
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media(min-width:640px) { .container { padding: 0 1.5rem; } }
@media(min-width:1024px) { .container { padding: 0 2rem; } }

.glow { box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3); }
.glow-text { text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5); }
.text-primary { color: var(--primary); }
.text-sec { color: var(--text-sec); }
.bg-card { background: var(--bg-card); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary); color: var(--bg-dark);
  padding: 0.75rem 1.5rem; border-radius: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
  border: none; transition: background 0.3s;
}
.btn-primary:hover { background: var(--primary-dim); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--text);
  padding: 0.75rem 1.5rem; border-radius: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
  border: 1px solid var(--border); transition: border-color 0.3s;
}
.btn-outline:hover { border-color: var(--primary); }

.badge {
  display: inline-block; padding: 0.25rem 0.75rem;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 9999px; color: var(--primary); font-size: 0.75rem;
}

.tag {
  display: inline-block; padding: 0.25rem 0.5rem;
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: 0.25rem; color: var(--text-sec); font-size: 0.75rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.anim { opacity: 0; }
.anim.visible { animation: fadeUp 0.6s ease forwards; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10,10,10,0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 96px;
}
.navbar .logo {
  display: flex; align-items: center; gap: 0.5rem;
}
.navbar .logo-box {
  height: 80px; width: auto; border-radius: 0.375rem; object-fit: contain;
}
.navbar .logo-text {
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
  color: var(--text); display: none;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem; color: var(--text-sec); transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-cta { display: flex; align-items: center; gap: 0.5rem; }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; color: var(--text);
  font-size: 1.5rem; padding: 0.25rem;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 0.5rem;
  padding: 1rem; background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a {
  color: var(--text-sec); padding: 0.5rem 0; transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu.open { display: flex; }

@media(max-width:768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .navbar .logo-text { display: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative; display: flex; align-items: center;
  padding-top: 110px; padding-bottom: 2rem; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark), #0a1a0a);
}
.hero .orb {
  position: absolute; top: 20%; right: 20%;
  width: 400px; height: 400px;
  background: rgba(var(--primary-rgb), 0.05);
  border-radius: 50%; filter: blur(80px);
}
.hero .grid {
  position: relative; display: grid; gap: 3rem; align-items: center;
}
@media(min-width:1024px) { .hero .grid { grid-template-columns: 1fr 1.4fr; } }

.hero h1 {
  font-size: 2.5rem; margin-bottom: 1.5rem;
}
@media(min-width:640px) { .hero h1 { font-size: 3rem; } }
@media(min-width:1024px) { .hero h1 { font-size: 3.75rem; } }

.hero .desc { color: var(--text-sec); font-size: 1.1rem; margin-bottom: 2rem; max-width: 500px; }
.hero .btns { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-visual {
  display: none; position: relative;
}
@media(min-width:1024px) { .hero-visual { display: flex; align-items: center; } }

.hero-visual .frame {
  position: relative; width: 100%;
  border-radius: 1rem; overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--primary-rgb),0.15), transparent);
  border: 1px solid rgba(var(--primary-rgb),0.4);
  box-shadow: 0 0 30px rgba(var(--primary-rgb),0.2), inset 0 0 20px rgba(var(--primary-rgb),0.05);
}
.hero-visual .frame img {
  width: 100%; height: auto; display: block;
}
.hero-visual .inner-frame {
  position: absolute; inset: 1rem; border: 1px solid rgba(var(--primary-rgb),0.2);
  border-radius: 0.75rem; display: flex; align-items: center; justify-content: center;
}
.hero-visual .ss-logo {
  width: 96px; height: 96px; border-radius: 50%;
  background: rgba(var(--primary-rgb),0.1);
  border: 1px solid rgba(var(--primary-rgb),0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 2rem; color: var(--primary);
}
.hero-visual .dot {
  position: absolute; border-radius: 50%; background: var(--primary);
}
.hero-visual .dot-1 { top: 0; right: 0; width: 12px; height: 12px; }
.hero-visual .dot-2 { bottom: 2rem; left: 0; width: 8px; height: 8px; opacity: 0.5; }
.hero-visual .dot-3 { top: 50%; right: 0; width: 8px; height: 8px; opacity: 0.3; }

/* ===== STATS ===== */
.stats {
  padding: 2rem 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(26,26,26,0.5);
}
.stats .grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
  text-align: center;
}
@media(min-width:768px) { .stats .grid { grid-template-columns: repeat(4, 1fr); } }
.stat-value {
  font-family: var(--font-display); font-weight: 700;
  font-size: 2rem; color: var(--primary); margin-bottom: 0.25rem;
}
@media(min-width:640px) { .stat-value { font-size: 2.5rem; } }
.stat-label { color: var(--text-sec); font-size: 0.875rem; }

/* ===== SECTION COMMON ===== */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 1.875rem; margin-bottom: 1rem; }
@media(min-width:640px) { .section-header h2 { font-size: 2.25rem; } }
.section-header p { color: var(--text-sec); max-width: 600px; margin: 0 auto; }

/* ===== SERVICES ===== */
.services-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media(min-width:640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.5rem;
  transition: all 0.3s;
}
.service-card:hover {
  border-color: rgba(var(--primary-rgb), 0.5);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.1);
  transform: translateY(-4px);
}
.service-icon {
  width: 48px; height: 48px; border-radius: 0.5rem;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; transition: background 0.3s;
}
.service-card:hover .service-icon { background: rgba(var(--primary-rgb), 0.2); }
.service-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 1rem; color: var(--text); margin-bottom: 0.25rem; }
.service-card .sub { color: var(--primary); font-size: 0.75rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--text-sec); font-size: 0.875rem; }

/* ===== AWARDS ===== */
.awards-bg { background: rgba(26,26,26,0.5); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.awards-grid {
  display: grid; gap: 1.5rem; max-width: 800px; margin: 0 auto;
}
@media(min-width:768px) { .awards-grid { grid-template-columns: repeat(2, 1fr); } }

.award-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
  transition: border-color 0.3s;
}
.award-card:hover { border-color: rgba(var(--primary-rgb), 0.5); }
.award-icon {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex; align-items: center; justify-content: center;
}
.award-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.award-card h3 { font-size: 1rem; color: var(--text); }
.award-card .sub { color: var(--primary); font-size: 0.75rem; margin-bottom: 0.5rem; }
.award-card p { color: var(--text-sec); font-size: 0.875rem; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid; gap: 3rem; align-items: center;
}
@media(min-width:1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-list { list-style: none; }
.about-list li {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--text-sec); font-size: 0.875rem; margin-bottom: 0.75rem;
}
.about-list li::before {
  content: ''; width: 6px; height: 6px;
  background: var(--primary); border-radius: 50%; flex-shrink: 0;
}

.about-info {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 2rem;
}
.about-info h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 1.5rem; }
.info-item { margin-bottom: 1rem; }
.info-item .label {
  font-size: 0.7rem; color: var(--text-sec);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.info-item .value { color: var(--text); font-weight: 700; }

/* ===== CONTACT ===== */
.contact-bg { background: rgba(26,26,26,0.5); border-top: 1px solid var(--border); }
.contact-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media(min-width:768px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }

.contact-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.5rem; text-align: center;
}
.contact-icon {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 1rem;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-card h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.contact-card p { color: var(--text-sec); font-size: 0.875rem; }

.contact-cta { text-align: center; margin-top: 3rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media(min-width:768px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }

.footer h4 { color: var(--primary); font-size: 1rem; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-sec); font-size: 0.875rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }

.footer-contact li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  color: var(--text-sec); font-size: 0.875rem; margin-bottom: 0.75rem;
}
.footer-contact svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; stroke-linecap: round; stroke-linejoin: round; }

.footer-bottom {
  border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 2rem;
  text-align: center; color: var(--text-sec); font-size: 0.75rem;
}

/* ===== PROJECTS PAGE ===== */
.page-header {
  padding: 5rem 0 3rem; margin-top: 96px;
  background: linear-gradient(180deg, rgba(26,26,26,0.5), var(--bg-dark));
  border-bottom: 1px solid var(--border); text-align: center;
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 1rem; }
@media(min-width:640px) { .page-header h1 { font-size: 3rem; } }
.page-header p { color: var(--text-sec); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.filter-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem; border-radius: 9999px; font-size: 0.875rem;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-sec); transition: all 0.3s;
}
.filter-btn:hover { border-color: rgba(var(--primary-rgb),0.5); color: var(--text); }
.filter-btn.active {
  background: var(--primary); color: var(--bg-dark);
  border-color: var(--primary); font-weight: 700;
}

.projects-grid {
  display: grid; gap: 2rem; grid-template-columns: 1fr;
}
@media(min-width:768px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }

.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0.75rem; overflow: hidden; transition: all 0.3s;
}
.project-card:hover {
  border-color: rgba(var(--primary-rgb),0.5);
  box-shadow: 0 0 30px rgba(var(--primary-rgb),0.1);
}
.project-thumb {
  height: 200px; position: relative;
  background: linear-gradient(135deg, var(--bg-card), #0a1a0a);
  display: flex; align-items: center; justify-content: center;
}
.project-thumb .ss-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(var(--primary-rgb),0.1);
  border: 1px solid rgba(var(--primary-rgb),0.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.25rem; color: var(--primary);
}
.project-thumb .cat-badge {
  position: absolute; top: 1rem; left: 1rem;
}
.project-body { padding: 1.5rem; }
.project-body h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.project-body > p { color: var(--text-sec); font-size: 0.875rem; margin-bottom: 1rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.project-results { margin-bottom: 1.25rem; }
.project-results li {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-sec); font-size: 0.875rem; margin-bottom: 0.5rem;
  list-style: none;
}
.project-results svg { width: 14px; height: 14px; stroke: var(--primary); fill: none; stroke-width: 2; flex-shrink: 0; stroke-linecap: round; stroke-linejoin: round; }
.project-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--primary); font-size: 0.875rem; font-weight: 700;
  transition: gap 0.3s;
}
.project-link:hover { gap: 0.75rem; }
.project-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== PROJECT DETAIL ===== */
.detail-hero {
  padding: 4rem 0 2rem; margin-top: 64px;
  background: linear-gradient(180deg, rgba(26,26,26,0.5), var(--bg-dark));
  border-bottom: 1px solid var(--border);
}
.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--text-sec); font-size: 0.875rem; margin-bottom: 2rem;
  transition: color 0.3s;
}
.back-link:hover { color: var(--primary); }
.back-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.detail-hero h1 { font-size: 2rem; margin-bottom: 1rem; }
@media(min-width:640px) { .detail-hero h1 { font-size: 2.5rem; } }
@media(min-width:1024px) { .detail-hero h1 { font-size: 3rem; } }

.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media(min-width:768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  aspect-ratio: 1; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0.5rem; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s; position: relative;
}
.gallery-item:hover { border-color: rgba(var(--primary-rgb),0.5); }
.gallery-item .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(var(--primary-rgb),0.1);
  border: 1px solid rgba(var(--primary-rgb),0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-weight: 700; font-size: 0.875rem;
}

.info-cards {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media(min-width:1024px) { .info-cards { grid-template-columns: repeat(4, 1fr); } }
.info-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.25rem;
}
.info-card .head {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem;
}
.info-card .head svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-card .head span { font-size: 0.7rem; color: var(--text-sec); text-transform: uppercase; letter-spacing: 0.1em; }
.info-card .val { font-weight: 700; font-size: 0.875rem; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tech-tag {
  padding: 0.5rem 1rem;
  background: rgba(var(--primary-rgb),0.1);
  border: 1px solid rgba(var(--primary-rgb),0.3);
  border-radius: 9999px; color: var(--primary); font-size: 0.875rem;
}

.cs-grid {
  display: grid; gap: 1.5rem;
}
@media(min-width:768px) { .cs-grid { grid-template-columns: 1fr 1fr; } }
.cs-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.5rem;
}
.cs-card.solution { border-color: rgba(var(--primary-rgb),0.3); }
.cs-card h3 { color: var(--primary); margin-bottom: 0.75rem; }
.cs-card p { color: var(--text-sec); font-size: 0.875rem; }

.results-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media(min-width:640px) { .results-grid { grid-template-columns: repeat(3, 1fr); } }
.result-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.5rem; text-align: center;
}
.result-card svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; margin: 0 auto 0.75rem; stroke-linecap: round; stroke-linejoin: round; }
.result-card p { font-weight: 700; font-size: 0.875rem; }

.steps-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media(min-width:640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: rgba(var(--primary-rgb),0.1);
  border: 1px solid rgba(var(--primary-rgb),0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-weight: 700; font-size: 0.875rem;
}
.step-card p { font-size: 0.875rem; }

.testimonial {
  max-width: 800px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid rgba(var(--primary-rgb),0.3);
  border-radius: 0.75rem; padding: 2rem; position: relative;
}
.testimonial .quote-icon {
  position: absolute; top: 1rem; left: 1rem;
  width: 40px; height: 40px; opacity: 0.2;
  stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.testimonial blockquote {
  font-size: 1.1rem; font-style: italic; margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}
.testimonial .author { color: var(--primary); font-weight: 700; font-family: var(--font-display); }
.testimonial .role { color: var(--text-sec); font-size: 0.875rem; }

.other-projects {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
  border-top: 1px solid var(--border); padding-top: 3rem;
}
@media(min-width:768px) { .other-projects { grid-template-columns: repeat(3, 1fr); } }
.other-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.5rem;
  transition: border-color 0.3s;
}
.other-card:hover { border-color: rgba(var(--primary-rgb),0.5); }
.other-card .cat { color: var(--primary); font-size: 0.75rem; }
.other-card h3 { font-size: 1rem; margin: 0.25rem 0 0.5rem; }
.other-card p { color: var(--text-sec); font-size: 0.875rem; margin-bottom: 0.75rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== GALLERY PAGE ===== */
.gallery-masonry {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media(min-width:640px) { .gallery-masonry { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px) { .gallery-masonry { grid-template-columns: repeat(3, 1fr); } }

.gallery-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0.75rem; overflow: hidden;
  cursor: pointer; transition: all 0.3s;
}
.gallery-card:hover {
  border-color: rgba(var(--primary-rgb),0.5);
  box-shadow: 0 0 20px rgba(var(--primary-rgb),0.1);
  transform: translateY(-4px);
}

.gallery-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-card), #0a1a0a);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.75rem;
}
.gallery-placeholder svg {
  stroke: rgba(var(--primary-rgb),0.3); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.gallery-placeholder span {
  color: var(--text-sec); font-size: 0.8rem;
}

.gallery-caption {
  padding: 1rem 1.25rem;
  font-size: 0.875rem; color: var(--text-sec);
  border-top: 1px solid var(--border);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  border-radius: 0.5rem;
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: white; font-size: 2rem; cursor: pointer;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
}

/* Service card project link */
.service-card .project-link {
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.service-card { display: flex; flex-direction: column; }
