/* Basis-Design */
:root {
  --bg: #0b1220;
  --surface: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #38bdf8; /* Sky-400 */
  --secondary: #a78bfa; /* Violet-400 */
  --accent: #f59e0b; /* Amber-500 */
  --success: #22c55e; /* Green-500 */
  --danger: #ef4444; /* Red-500 */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -20%, rgba(56,189,248,.08), transparent),
              radial-gradient(900px 500px at 90% -10%, rgba(167,139,250,.08), transparent),
              linear-gradient(180deg, #0b1220, #0f172a);
}

.site-header {
  position: sticky;
  top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .5rem 1rem; 
  background: rgba(17,24,39,.75);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.logo { font-weight: 800; letter-spacing: .4px; color: var(--text); text-decoration: none; display: flex; align-items: center; }
.logo img { height: 45px; max-width: 200px; object-fit: contain; display: block; }
.logo span { color: var(--primary); }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; display: flex; gap: .75rem; margin: 0; padding: 0; align-items: center; }
.site-nav a { color: var(--text); text-decoration: none; padding: .5rem .75rem; border-radius: 8px; }
.site-nav a:hover { background: rgba(56,189,248,.12); }
.site-nav .btn-small { background: linear-gradient(90deg, var(--primary), var(--secondary)); color: #041019; font-weight: 600; padding: .5rem .75rem; }
.site-nav .btn-small:hover { transform: none; filter: brightness(1.08); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; background: none; border: 1px solid rgba(255,255,255,.2); color: var(--text); padding: .35rem .5rem; border-radius: 8px; }
  .site-nav { position: absolute; right: .5rem; top: 3.2rem; background: rgba(17,24,39,.95); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
}

main { padding: 1.5rem; max-width: 1200px; margin: 0 auto; }

.hero { display: grid; place-items: center; min-height: 20vh; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 3.5vw, 3rem); margin-bottom: .5rem; }
.hero p { color: var(--muted); max-width: 820px; margin: 0 auto 1rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; }

.btn { display: inline-block; padding: .8rem 1rem; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--secondary)); color: #041019; text-decoration: none; font-weight: 700; box-shadow: var(--shadow); transition: transform .2s ease, filter .2s ease; border: none; outline: none; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-secondary { background: linear-gradient(90deg, var(--accent), var(--secondary)); }

.features { margin-bottom: 3rem; }
.features h2, .gallery h2, .services h2 { text-align: center; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card-grid-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 768px) {
  .card-grid-three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .card-grid-three { grid-template-columns: 1fr; }
}
.card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 1rem; }
.card h3 { margin-top: 0; }

/* Service highlights without images */
.services-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: 2rem; 
  margin-bottom: 2rem; 
}
.services-highlight { margin-bottom: 0; height: 100%; }
.service-card { 
  max-width: 600px; 
  margin: 0 auto; 
  text-align: center; 
  background: rgba(255,255,255,.08); 
  border: 1px solid rgba(255,255,255,.16); 
  border-radius: var(--radius); 
  padding: 2rem 1.5rem; 
  box-shadow: var(--shadow); 
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card .service-icon {
  flex-shrink: 0;
}
.service-card .btn {
  margin-top: auto;
  margin-bottom: 0;
}
.service-card p {
  flex-grow: 1;
}
.service-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 28px rgba(0,0,0,.35); 
  border-color: rgba(56,189,248,.4); 
}
.service-icon { 
  font-size: 3rem; 
  margin-bottom: 1rem; 
  opacity: 0.8; 
  display: flex;
  justify-content: center;
  align-items: center;
}
.service-icon img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
}
.service-card h2 { 
  margin-bottom: 1rem; 
  color: var(--primary); 
}
.service-card p { 
  color: var(--muted); 
  margin-bottom: 1.5rem; 
  line-height: 1.7; 
}

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; align-items: center; margin-bottom: 2rem; }
.split img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.link-arrow { color: var(--primary); text-decoration: none; font-weight: 700; }
.link-arrow::after { content: ' →'; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Tilt effect */
.tilt-on-hover { transition: transform .2s ease, box-shadow .2s ease; }
.tilt-on-hover:hover { transform: rotate3d(.5, -.2, 0, 8deg) scale(1.02); box-shadow: 0 18px 40px rgba(0,0,0,.45); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.12); }
.gallery-item img { width: 100%; display: block; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { padding: 0.5rem 0.75rem 0.25rem; font-size: 0.9rem; color: rgba(255,255,255,0.85); }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: none; place-items: center; z-index: 100; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,.9); color: #111; border: none; border-radius: 999px; width: 36px; height: 36px; font-size: 22px; cursor: pointer; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); color: #111; border: none; border-radius: 999px; width: 48px; height: 48px; font-size: 30px; cursor: pointer; font-weight: bold; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover { background: rgba(255,255,255,1); }

/* Forms */
.form { max-width: 760px; margin: 0 auto; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1rem; }
.form-row { display: grid; gap: .35rem; margin-bottom: .75rem; }
.form input, .form textarea { width: 100%; padding: .65rem .75rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.35); color: var(--text); font-family: inherit; }
.form input:focus, .form textarea:focus { outline: 2px solid rgba(56,189,248,.45); border-color: rgba(56,189,248,.6); }
.checkbox { display: flex; align-items: center; gap: .3rem; }
.checkbox input[type="checkbox"] { width: auto; min-width: auto; flex: none; }
.checkbox span { flex: 1; }
.form-actions { display: flex; align-items: center; gap: .75rem; }
.form-status { margin-top: .75rem; max-width: 760px; margin-left: auto; margin-right: auto; }
.info { background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.35); padding: .75rem; border-radius: 12px; }

/* Footer */
.site-footer { margin-top: 2rem; padding: 1rem; background: rgba(17,24,39,.75); border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.small { font-size: .9rem; color: var(--muted); }
.site-footer a { color: #ffffff; text-decoration: underline; }
.site-footer a:hover { color: var(--primary); }

/* Main content links */
main a { color: #ffffff; text-decoration: underline; }
main a:hover { color: var(--primary); }

/* Scroll animations */
.scroll-anim { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.scroll-anim.in-view { opacity: 1; transform: translateY(0); }

/* Back to top */
.to-top { position: fixed; right: 1rem; bottom: 1rem; background: linear-gradient(90deg, var(--primary), var(--secondary)); color: #041019; border: none; border-radius: 999px; width: 42px; height: 42px; box-shadow: var(--shadow); display: none; }
.to-top.show { display: inline-block; }

/* Page headers */
.page-header { text-align: center; margin: 1rem 0 1.25rem; }
.page-header h1 { margin-bottom: .25rem; }
.page-header p { color: var(--muted); }
