/* ═══════════════ RESET & BASE ═══════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0a0f1a;
  --bg2: #0f1525;
  --bg3: #141c2e;
  --text: #e2e8f0;
  --text-muted: #8892a4;
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.12);
  --orange: #f57f17;
  --orange-dim: rgba(245,127,23,0.12);
  --blue: #3b82f6;
  --purple: #a855f7;
  --border: rgba(255,255,255,0.06);
  --glass: rgba(15,21,37,0.7);
  --radius: 16px;
}
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }

/* ═══════════════ REVEAL ANIMATIONS ═══════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════ NAV ═══════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,15,26,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s; letter-spacing: 0.02em;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--green); color: #fff !important; padding: 8px 20px;
  border-radius: 8px; font-weight: 600 !important;
}
.nav-cta:hover { background: #16a34a; }
.nav-smartgolf {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 20px; border-radius: 10px;
  border: 2px solid var(--orange); background: var(--orange-dim);
  text-decoration: none; transition: all 0.25s; margin-left: 12px;
}
.nav-smartgolf:hover {
  background: var(--orange); border-color: var(--orange);
}
.nav-smartgolf-label {
  font-size: 9px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--orange); line-height: 1;
  margin-bottom: 2px;
}
.nav-smartgolf-name {
  font-size: 15px; font-weight: 800; color: var(--orange);
  font-family: 'Space Grotesk', sans-serif; line-height: 1;
}
.nav-smartgolf:hover .nav-smartgolf-label,
.nav-smartgolf:hover .nav-smartgolf-name { color: #fff; }
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.nav-burger span {
  display: block; width: 24px; height: 2px; background: var(--text);
  transition: 0.3s;
}

/* ═══════════════ HERO ═══════════════ */
#hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-slides { position: absolute; inset: 0; }
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.05);
  transition: opacity 1.5s ease, transform 8s ease;
}
.hero-img.active {
  opacity: 1; transform: scale(1.12);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,15,26,0.92) 0%, rgba(10,15,26,0.6) 50%, rgba(10,15,26,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 2; max-width: 720px;
  text-align: center; padding: 0 24px;
}
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: var(--green-dim); border: 1px solid rgba(34,197,94,0.2);
  color: var(--green); font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; margin-bottom: 24px;
}
#hero h1 {
  font-size: clamp(42px, 7vw, 80px); font-weight: 800;
  margin-bottom: 20px;
}
.accent-green { color: var(--green); }
.hero-sub {
  font-size: 18px; color: var(--text-muted); max-width: 560px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; padding: 14px 28px;
  border-radius: 10px; font-weight: 600; font-size: 15px;
  transition: all 0.25s; cursor: pointer; border: none;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #16a34a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,197,94,0.3); }
.btn-outline {
  background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }
.btn-full { width: 100%; justify-content: center; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
}
.scroll-line {
  width: 2px; height: 48px; background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ═══════════════ STATS ═══════════════ */
#stats { padding: 60px 0; border-bottom: 1px solid var(--border); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 48px;
  font-weight: 700; color: var(--green);
}
.stat-plus, .stat-unit { font-size: 28px; color: var(--green); font-weight: 600; }
.stat-label { display: block; font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ═══════════════ SECTION HEADERS ═══════════════ */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--green); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; }

/* ═══════════════ EXPERTISE CARDS ═══════════════ */
.expertise-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: rgba(34,197,94,0.2); transform: translateY(-4px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-dim); display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; color: var(--green); }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; }
.card-list {
  list-style: none; display: flex; flex-direction: column; gap: 6px;
}
.card-list li {
  font-size: 13px; color: var(--text-muted); padding-left: 16px;
  position: relative;
}
.card-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}

/* ═══════════════ PROJECTS ═══════════════ */
#realisations { background: var(--bg2); }
.filter-bar { display: flex; gap: 8px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 20px; border-radius: 50px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); font-size: 14px;
  font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--green); color: var(--text); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.project {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer;
  transition: transform 0.3s;
}
.project:hover { transform: scale(1.02); }
.project img { width: 100%; height: 100%; object-fit: cover; }
.project-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.project-info h4 { font-size: 16px; margin-bottom: 2px; }
.project-info p { font-size: 13px; color: rgba(255,255,255,0.6); }
.project.hidden { display: none; }

/* ═══════════════ CLIENTS LOGOS ═══════════════ */
#clients { padding: 60px 0; overflow: hidden; background: #f0f2f5; }
#clients .section-header h2 { color: var(--bg); }
#clients .section-tag { color: #16a34a; }
.logos-track { overflow: hidden; position: relative; }
.logos-track::before, .logos-track::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
}
.logos-track::before { left: 0; background: linear-gradient(to right, #f0f2f5, transparent); }
.logos-track::after { right: 0; background: linear-gradient(to left, #f0f2f5, transparent); }
.logos-slide {
  display: flex; gap: 48px; align-items: center;
  animation: scrollLogos 30s linear infinite;
  width: max-content;
}
.logos-slide img {
  height: 48px; opacity: 0.9;
  transition: opacity 0.3s, transform 0.3s;
}
.logos-slide img:hover { opacity: 1; transform: scale(1.08); }
@keyframes scrollLogos { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══════════════ INNOVATION ═══════════════ */
#innovation { background: var(--bg2); }
.inno-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.inno-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  transition: border-color 0.3s, transform 0.3s;
}
.inno-card:hover { border-color: rgba(34,197,94,0.2); transform: translateY(-4px); }
.inno-visual { margin-bottom: 20px; }
.inno-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.inno-icon svg { width: 28px; height: 28px; }
.inno-icon.green { background: var(--green-dim); color: var(--green); }
.inno-icon.orange { background: var(--orange-dim); color: var(--orange); }
.inno-icon.blue { background: rgba(59,130,246,0.12); color: var(--blue); }
.inno-icon.purple { background: rgba(168,85,247,0.12); color: var(--purple); }
.inno-card h3 { font-size: 20px; margin-bottom: 10px; }
.inno-card p { font-size: 14px; color: var(--text-muted); }

/* ═══════════════ MAP ═══════════════ */
#map-section { padding-bottom: 80px; }
.map-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); height: 650px;
}
#refMap { width: 100%; height: 100%; border: none; }

/* ═══════════════ ABOUT ═══════════════ */
#about { background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text .section-tag { margin-bottom: 8px; }
.about-text h2 { font-size: 36px; margin-bottom: 24px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; font-size: 15px; }
.about-text strong { color: var(--text); }
.about-sig { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.about-sig strong { display: block; font-size: 16px; }
.about-sig span { font-size: 13px; color: var(--text-muted); }
.about-visual { position: relative; }
.about-visual img { border-radius: var(--radius); width: 100%; }
.about-badge {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--green); border-radius: 14px; padding: 16px 24px;
  text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.about-badge-num { display: block; font-size: 32px; font-weight: 800; font-family: 'Space Grotesk'; }
.about-badge span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

/* ═══════════════ CONTACT ═══════════════ */
#contact { padding: 100px 0 80px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info h2 { font-size: 36px; margin-bottom: 32px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px;
}
.contact-item svg { width: 24px; height: 24px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.contact-item a, .contact-item span { font-size: 15px; color: var(--text-muted); }
.contact-item a:hover { color: var(--green); }
.contact-form {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-muted); margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 15px; font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green);
}
.form-group textarea { resize: vertical; }

/* ═══════════════ FOOTER ═══════════════ */
footer {
  padding: 40px 0; border-top: 1px solid var(--border);
  background: var(--bg2);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { height: 32px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-legal p { font-size: 12px; color: var(--text-muted); }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); padding: 24px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-burger { display: flex; }
  .nav-smartgolf { padding: 4px 14px; margin-left: auto; margin-right: 8px; }
  .nav-smartgolf-label { font-size: 8px; }
  .nav-smartgolf-name { font-size: 13px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-grid { grid-template-columns: 1fr; }
  .inno-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-num { font-size: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .map-wrap { height: 400px; }
}
