/* Technicore Electromechanics - Global Styles */
:root {
  --bg: #0b1220;
  --surface: #0f172a;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --brand: #0ea5e9;
  --brand-2: #22d3ee;
  --accent: #38bdf8;
  --card: #0b1220;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -20%, rgba(14,165,233,.12), transparent 60%),
              radial-gradient(1000px 500px at 120% 10%, rgba(34,211,238,.12), transparent 60%),
              linear-gradient(180deg, #05080f 0%, #0b1220 50%, #0b1220 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 92%); margin: 0 auto; }
.text-center { text-align: center; }

/* Background floating elements */
.background-elements { position: fixed; inset: 0; overflow: hidden; z-index: -1; }
.background-elements .element { position: absolute; filter: blur(60px); opacity: .35; border-radius: 999px; }
.element-1 { width: 420px; height: 420px; background: #0ea5e9; top: -120px; left: -80px; }
.element-2 { width: 520px; height: 520px; background: #22d3ee; top: -160px; right: -140px; }
.element-3 { width: 320px; height: 320px; background: #38bdf8; bottom: -120px; left: -60px; }
.element-4 { width: 280px; height: 280px; background: #0ea5e9; bottom: -80px; right: -60px; }

/* Topbar */
.topbar { background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--border); font-size: 14px; backdrop-filter: blur(6px);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; gap: 10px; }
.topbar a { color: var(--muted); margin-right: 16px; display: inline-flex; align-items: center; gap: 8px; }
.topbar a i { color: var(--accent); }
.topbar-right a { margin-right: 10px; }

/* Header */
#header { position: sticky; top: 0; z-index: 999; background: rgba(15,23,42,0.7); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-container { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { border-radius: 8px; box-shadow: var(--shadow); }
.brand-name { font-weight: 700; letter-spacing: .2px; font-size: 18px; }
#menu { display: flex; list-style: none; gap: 20px; align-items: center; margin: 0; padding: 0; }
#menu a { color: var(--muted); padding: 8px 10px; border-radius: 8px; transition: .2s ease; }
#menu a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-cta { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #001018 !important; font-weight: 600; padding: 10px 14px !important; }
.mobile-menu-btn { display: none; border: 0; background: transparent; color: var(--text); font-size: 22px; }

/* Hero */
.hero { position: relative; min-height: 82vh; display: grid; align-items: center; isolation: isolate; }
.slider { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 1.8s ease; }
.slide-1 { background-image: url('https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?auto=format&fit=crop&w=1600&q=80'); }
.slide-2 { background-image: url('https://images.unsplash.com/photo-1581091872819-4c04e30b07b0?auto=format&fit=crop&w=1600&q=80'); }
.slide-3 { background-image: url('https://images.unsplash.com/photo-1581091870622-2c0b1f4a8ea3?auto=format&fit=crop&w=1600&q=80'); }
.slide.active { opacity: 1; transform: scale(1.0); }
.hero-content { position: relative; padding: 80px 0; }
.hero h1 { font-size: clamp(28px, 4.2vw, 56px); line-height: 1.1; margin: 0 0 14px; text-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hero p { font-size: 18px; color: var(--muted); max-width: 820px; }
.hero-btns { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.slider-controls { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; }
.slider-arrow { padding: 6px 10px; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.5); cursor: pointer; transition: .2s ease; }
.slider-dot.active { background: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: rgba(255,255,255,0.06); color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-outline { background: transparent; }

/* Sections */
section { padding: 70px 0; }
.section-title h2 { font-size: 30px; margin: 0 0 8px; }
.section-title p { color: var(--muted); margin: 0; }

/* Services Overview */
.services .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.service-card { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: grid; grid-template-columns: 60px 1fr; gap: 14px; box-shadow: var(--shadow); }
.service-icon { display: grid; place-items: center; font-size: 26px; color: var(--accent); background: rgba(56,189,248,0.12); border: 1px solid rgba(56,189,248,0.35); width: 56px; height: 56px; border-radius: 12px; }
.service-content h3 { margin: 6px 0; }
.service-content p { color: var(--muted); }

/* Detailed Services */
.service-detail { position: relative; }
.detail-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.service-detail.alt .detail-wrap { grid-template-columns: 1fr 1.2fr; }
.detail-img { height: 360px; border-radius: 16px; background-size: cover; background-position: center; border: 1px solid var(--border); box-shadow: var(--shadow); }
.detail-content { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.detail-list { margin: 12px 0 16px; padding-left: 18px; color: var(--muted); }
.detail-list li { margin: 6px 0; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 16px; padding: 0; list-style: none; }
.detail-tags li { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); }
.detail-list.two-col { columns: 2; gap: 20px; }

/* Clients */
.clients-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 20px; }
.client-logo { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: grid; place-items: center; color: var(--muted); box-shadow: var(--shadow); }

/* Gallery */
.gallery .gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.gallery-item .thumb { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #0a0f1a; }
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .cap { padding: 10px 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* Reduce casual image saving in gallery */
.gallery img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Contact */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 20px; }
.contact-info, .contact-form { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.form-group { display: grid; gap: 6px; margin-bottom: 12px; }
.form-control { background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: #fff; padding: 10px 12px; border-radius: 10px; outline: none; }
.form-control::placeholder { color: #7c879b; }
.form-note { color: var(--muted); font-size: 12px; margin: 8px 0 0; }

/* Footer */
footer { background: #070b13; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 22px; }
.footer-col h3 { margin: 6px 0 10px; }
.footer-col a { display: block; color: var(--muted); margin: 6px 0; }
.footer-col a:hover { color: #fff; }
.copyright { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 12px; text-align: center; color: var(--muted); }
/* Footer social inline */
.social-links.social-inline { display: flex; align-items: center; gap: 12px; }
.social-links.social-inline a { display: inline-flex; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; align-items: center; justify-content: center; color: var(--muted); background: rgba(255,255,255,0.04); }
.social-links.social-inline a:hover { color: #fff; }

/* WhatsApp Float */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; width: 52px; height: 52px; display: grid; place-items: center; background: #25D366; color: #001; border-radius: 50%; box-shadow: var(--shadow); z-index: 999; }

/* Back To Top */
#backToTop { position: fixed; right: 22px; bottom: 90px; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,0.06); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 998; }
#backToTop.show { opacity: 1; transform: none; pointer-events: auto; }
#backToTop:hover { background: rgba(255,255,255,0.12); }

/* Animations on scroll */
.animate-on-scroll { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.animate-on-scroll.in-view { opacity: 1; transform: none; }

/* Map Box */
.map-card { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.map-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .services .services-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}
@media (max-width: 768px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  #menu { position: fixed; top: 64px; right: 0; left: 0; background: rgba(15,23,42,0.98); flex-direction: column; padding: 12px; transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none; }
  #menu.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .mobile-menu-btn { display: inline-flex; }
  .services .services-grid { grid-template-columns: 1fr; }
  .detail-wrap { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-container { grid-template-columns: 1fr; }
}
