/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: #fff;
  color: #1E1E1E;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow 0.3s, background 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.06); background: rgba(255,255,255,0.95); }
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.navbar-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; }
.navbar-logo img { border-radius: 8px; }
.navbar-links { display: flex; align-items: center; gap: 32px; }
.navbar-links a {
  font-size: 14px; font-weight: 500; color: #555;
  transition: color 0.2s; position: relative;
}
.navbar-links a:hover { color: #F78500; }
.navbar-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: #F78500; border-radius: 2px; transition: width 0.25s;
  box-shadow: 0 0 8px #F78500;
}
.navbar-links a:hover::after { width: 100%; }
.navbar-toggle { display: none; padding: 6px; border-radius: 8px; }
.navbar-toggle:hover { background: rgba(0,0,0,0.05); }
@media (max-width: 768px) {
  .navbar-links {
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid rgba(0,0,0,0.08);
    flex-direction: column; gap: 0; padding: 8px 0;
    display: none;
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { padding: 12px 24px; width: 100%; }
  .navbar-toggle { display: block; }
}

/* ── Circuit Effects ──────────────────────────────────────────────────────── */
.circuit-card {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.circuit-card::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(247,133,0,0.4) 50%, transparent 60%);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.circuit-card:hover::before {
  opacity: 1;
  animation: circuitSweep 2s linear infinite;
}
@keyframes circuitSweep {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 300%; }
}

.circuit-corner {
  position: absolute; width: 12px; height: 12px;
  border-color: #F78500; border-style: solid; opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.circuit-corner.top-left { top: 0; left: 0; border-width: 2px 0 0 2px; border-top-left-radius: 20px; transform: translate(-4px, -4px); }
.circuit-corner.top-right { top: 0; right: 0; border-width: 2px 2px 0 0; border-top-right-radius: 20px; transform: translate(4px, -4px); }
.circuit-corner.bottom-left { bottom: 0; left: 0; border-width: 0 0 2px 2px; border-bottom-left-radius: 20px; transform: translate(-4px, 4px); }
.circuit-corner.bottom-right { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-bottom-right-radius: 20px; transform: translate(4px, 4px); }

.circuit-card:hover .circuit-corner {
  opacity: 1; transform: translate(0, 0);
}
.circuit-card:hover .circuit-corner.top-left { box-shadow: 0 0 12px #F78500; }
.circuit-card:hover .circuit-corner.top-right { box-shadow: 0 0 12px #F78500; }
.circuit-card:hover .circuit-corner.bottom-left { box-shadow: 0 0 12px #F78500; }
.circuit-card:hover .circuit-corner.bottom-right { box-shadow: 0 0 12px #F78500; }

.circuit-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(247,133,0,0.08); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; transition: transform 0.4s ease, background 0.3s ease;
}
.circuit-card:hover .circuit-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(247,133,0,0.15);
  box-shadow: 0 0 24px rgba(247,133,0,0.25);
}

/* Magnetic buttons */
.magnetic-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  overflow: visible;
}
.magnetic-btn .btn-text { position: relative; z-index: 2; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.magnetic-btn .circuit-ring {
  position: absolute; inset: -4px; border-radius: inherit;
  border: 1px solid rgba(247,133,0,0.5); opacity: 0;
  transform: scale(0.9); transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; border-radius: 999px;
}
.magnetic-btn:hover .circuit-ring {
  opacity: 1; transform: scale(1.05);
  animation: pulseRing 1.5s ease-out infinite;
}
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247,133,0,0.4); }
  50% { box-shadow: 0 0 12px 4px rgba(247,133,0,0.2); }
}

.circuit-hover {
  position: relative; padding: 8px 12px; margin: -8px -12px; border-radius: 10px;
  transition: background 0.3s ease;
}
.circuit-hover::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid rgba(247,133,0,0.3); opacity: 0;
  transition: opacity 0.3s ease;
}
.circuit-hover:hover { background: rgba(247,133,0,0.05); }
.circuit-hover:hover::before { opacity: 1; animation: pulseBorder 2s ease-in-out infinite; }
@keyframes pulseBorder {
  0%, 100% { box-shadow: 0 0 0 rgba(247,133,0,0); }
  50% { box-shadow: 0 0 8px rgba(247,133,0,0.3); }
}

.circuit-input {
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.circuit-input:focus {
  border-color: #F78500;
  box-shadow: 0 0 0 3px rgba(247,133,0,0.1), 0 0 16px rgba(247,133,0,0.15);
  outline: none;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: space-between;
  overflow: hidden; padding: 120px max(24px, 8vw) 80px;
  background: #fff;
  gap: 48px;
}
.hero-image-wrap {
  width: 50%;
  aspect-ratio: 4/3;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width:100%;
  object-fit: cover;
  display: block;
}
.hero-content {
  position: relative; z-index: 100; text-align: left; max-width: 640px;
  flex-shrink: 1;
  text-shadow: 0 2px 16px rgba(255,255,255,0.7);
}
.hero-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #F78500; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px); font-weight: 700; line-height: 1.1;
  color: #1E1E1E; letter-spacing: -0.02em;
}
.hero-accent {
  color: #F78500;
}
.hero p {
  margin-top: 20px; font-size: 18px; color: #555;
  max-width: 560px;
}
.hero-buttons { margin-top: 36px; display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .hero-image-wrap {
    display: none;
  }
  .hero-content {
    text-align: center;
    max-width: 100%;
  }
  .hero-buttons { justify-content: center; }
}
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-size: 14px;
  font-weight: 600; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  overflow: visible;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: #1E1E1E; color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-primary:hover { background: #000; box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 20px rgba(247,133,0,0.3); }
.btn-white {
  background: #fff; color: #1E1E1E;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.btn-white:hover { background: #f8f8f8; box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 20px rgba(247,133,0,0.2); }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section {
  padding: 96px 24px; max-width: 1200px; margin: 0 auto;
}
.section-header {
  text-align: center; margin-bottom: 56px;
}
.section-label {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: #F78500; margin-bottom: 12px;
  position: relative;
}
.section-label::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, #F78500, transparent);
}
.section h2 {
  font-size: clamp(28px, 3.5vw, 42px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em;
}
.section-subtitle {
  margin-top: 16px; color: #666; font-size: 16px; max-width: 560px;
  margin-left: auto; margin-right: auto;
}

/* ── Intro ────────────────────────────────────────────────────────────────── */
.intro-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.intro-card {
  background: #F6F7F3; border-radius: 20px; padding: 32px;
  border: 1px solid rgba(0,0,0,0.04);
}
.intro-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.08); }
.intro-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.intro-card p { font-size: 14px; color: #666; line-height: 1.6; }
@media (max-width: 768px) { .intro-grid { grid-template-columns: 1fr; } }

/* ── Solutions ────────────────────────────────────────────────────────────── */
.solutions-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.solution-card {
  background: #fff; border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  display: flex; flex-direction: column;
}
.solution-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.08); }
.solution-card .thumb {
  height: 180px; background: linear-gradient(135deg, #FFF3D6, #FFE4B5);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.solution-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.solution-card:hover .thumb img { transform: scale(1.08); }
.solution-card .badge {
  position: absolute; top: 16px; left: 16px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.solution-card:hover .badge { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.solution-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.solution-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.solution-card p { font-size: 14px; color: #666; line-height: 1.6; flex: 1; }
.solution-card .link {
  margin-top: 16px; font-size: 13px; font-weight: 600; color: #F78500;
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
}
.solution-card .link:hover { color: #e07500; }
@media (max-width: 768px) { .solutions-grid { grid-template-columns: 1fr; } }

/* ── Technology ───────────────────────────────────────────────────────────── */
.tech-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.tech-card {
  background: #F6F7F3; border-radius: 20px; padding: 32px;
  border: 1px solid rgba(0,0,0,0.04);
}
.tech-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
@media (max-width: 768px) { .tech-grid { grid-template-columns: 1fr; } }

/* ── News Section ─────────────────────────────────────────────────────────── */
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.news-card {
  background: #fff; border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.08); }
.news-card .thumb {
  height: 180px; background: linear-gradient(135deg, #FFF3D6, #FFE4B5);
  position: relative; overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.news-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-card:hover .thumb img { transform: scale(1.08); }
.news-card .date {
  position: absolute; top: 16px; left: 16px;
  font-size: 11px; font-weight: 600; padding: 6px 12px;
  border-radius: 999px; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
}
.news-card:hover .date { transform: translateY(-2px); }
.news-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.news-card p { font-size: 14px; color: #666; line-height: 1.5; flex: 1; }
.news-card .tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.news-card .tag {
  font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em;
  color: #B36B00; background: #FFF8E7; border: 1px solid #FFE4B5;
  padding: 4px 10px; border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover .tag { transform: translateY(-1px); }
.news-card .link {
  margin-top: 16px; font-size: 13px; font-weight: 600; color: #F78500;
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
}
@media (max-width: 768px) { .news-grid { grid-template-columns: 1fr; } }

/* ── Locations / Particle Globe ───────────────────────────────────────────── */
.locations-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.locations-globe {
  aspect-ratio: 1; border-radius: 24px; overflow: hidden;
  background: #fff;
  display: flex; align-items: center; justify-content: center; position: relative;
}
#globe-three {
  width: 100%; height: 100%;
  display: block;
  background: #ffffff;
}
.locations-info h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.locations-info p { color: #666; font-size: 15px; line-height: 1.7; }
.locations-info .address { margin-top: 24px; padding: 20px; background: #F6F7F3; border-radius: 16px; }
.locations-info .address p { font-size: 14px; color: #444; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.stat-item {
  background: #fff; border-radius: 16px; padding: 20px;
  border: 1px solid rgba(0,0,0,0.06);
}
.stat-item:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.stat-value {
  font-size: 28px; font-weight: 700; color: #1E1E1E;
}
.stat-value span { color: #F78500; }
.stat-label { font-size: 12px; color: #666; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 768px) { .locations-grid { grid-template-columns: 1fr; } }

/* ── Contact ──────────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.contact-form {
  display: flex; flex-direction: column; gap: 16px;
  background: #fff; border-radius: 20px; padding: 32px;
  border: 1px solid rgba(0,0,0,0.06);
}
.contact-form:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.06); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 18px; border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08); background: #fafafa;
  font-size: 14px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { align-self: flex-start; }
.contact-info h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.contact-info p { color: #666; font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.contact-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 14px; }
.contact-detail svg { color: #F78500; flex-shrink: 0; }
.social-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: #F6F7F3; display: flex; align-items: center; justify-content: center;
  color: #555; transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
  background: #FFF8E7; color: #F78500;
  box-shadow: 0 8px 20px rgba(247,133,0,0.25);
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: #1E1E1E; color: rgba(255,255,255,0.6); padding: 40px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.footer-copy { font-size: 13px; }
@media (max-width: 768px) {
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── Reveal animations (GSAP handles most, fallback) ───────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Admin Layout ─────────────────────────────────────────────────────────── */
.admin-body { background: #F6F7F3; min-height: 100vh; }
.admin-grid { display: grid; grid-template-columns: 240px 1fr; }
.admin-sidebar {
  background: #fff; border-right: 1px solid rgba(0,0,0,0.05);
  padding: 24px; position: sticky; top: 0; height: 100vh;
}
.admin-sidebar .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 24px; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; font-size: 14px; font-weight: 500; color: #444;
  transition: background 0.2s, color 0.2s;
}
.admin-sidebar nav a:hover { background: rgba(0,0,0,0.04); }
.admin-sidebar nav a.active { background: #FFF8E7; color: #B36B00; }
.admin-sidebar .logout {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,0.06);
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: #c53030;
  transition: background 0.2s;
}
.admin-sidebar .logout:hover { background: #FFF5F5; }
.admin-main { padding: 32px; max-width: 1200px; }
.admin-mobile-bar {
  display: none; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 56px; background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky; top: 0; z-index: 30;
}
@media (max-width: 1024px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-mobile-bar { display: flex; }
}

/* ── Admin Components ─────────────────────────────────────────────────────── */
.admin-card {
  background: #fff; border-radius: 20px; padding: 24px;
  border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 12px; color: #888; font-weight: 500; }
.admin-table td { padding: 12px; border-top: 1px solid rgba(0,0,0,0.05); }
.admin-table tr:hover td { background: rgba(0,0,0,0.01); }
.admin-input {
  width: 100%; padding: 10px 14px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08); background: #fafafa;
  font-size: 14px; outline: none; transition: border-color 0.2s, background 0.2s;
}
.admin-input:focus { border-color: #F78500; background: #fff; }
.admin-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 999px; font-size: 13px;
  font-weight: 600; transition: opacity 0.2s, transform 0.2s;
}
.admin-btn:hover { opacity: 0.9; }
.admin-btn-primary { background: #1E1E1E; color: #fff; }
.admin-btn-honey { background: #F78500; color: #fff; }
.admin-btn-ghost { background: transparent; border: 1px solid rgba(0,0,0,0.1); color: #444; }
.admin-btn-danger { background: #c53030; color: #fff; }

/* ── 404 ──────────────────────────────────────────────────────────────────── */
.page-404 {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 48px 24px;
}
.page-404 h1 { font-size: 48px; font-weight: 700; margin-bottom: 12px; }
.page-404 p { color: #666; margin-bottom: 24px; }
