/* ===========================
   TECNOLOGYSMITH — STYLES.CSS
   =========================== */

:root {
  --bg:       #0e1117;
  --surface:  #161c27;
  --surface2: #1e2636;
  --border:   rgba(255,255,255,0.07);
  --accent:   #00e5a0;
  --accent2:  #00b8ff;
  --danger:   #ff4d6d;
  --gold:     #ffd166;
  --text:     #e8eaf0;
  --muted:    #7a8299;
  --radius:   14px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(14,17,23,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.navbar.scrolled { background: rgba(14,17,23,0.97); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text);
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
}
.logo-img { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-links li a {
  color: var(--muted); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  padding: 0.45rem 0.9rem; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links li a:hover { color: var(--text); background: var(--surface2); }

.nav-cta {
  background: var(--accent) !important;
  color: #0e1117 !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: #00c988 !important; }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── HERO ── */
.hero {
  min-height: 92vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 1.5rem 4rem;
  position: relative; overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,229,160,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,184,255,0.08) 0%, transparent 60%);
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }

.hero-badge {
  display: inline-block;
  background: rgba(0,229,160,0.1);
  border: 1px solid rgba(0,229,160,0.3);
  color: var(--accent);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  padding: 0.35rem 0.9rem; border-radius: 99px;
  margin-bottom: 1.5rem;
  animation: fadeDown 0.6s ease both;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 1.2rem;
  animation: fadeDown 0.7s 0.1s ease both;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--muted); font-size: 1.1rem;
  max-width: 500px; margin: 0 auto 2rem;
  animation: fadeDown 0.7s 0.2s ease both;
}
.hero-sub strong { color: var(--accent); }

.hero-btns {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeDown 0.7s 0.3s ease both;
}

.btn-primary {
  background: var(--accent); color: #0e1117;
  padding: 0.8rem 2rem; border-radius: 10px;
  font-weight: 700; text-decoration: none; font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(0,229,160,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(0,229,160,0.4); }

.btn-outline {
  border: 1.5px solid var(--border); color: var(--text);
  padding: 0.8rem 2rem; border-radius: 10px;
  font-weight: 600; text-decoration: none; font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--accent); background: rgba(0,229,160,0.06); }

.hero-logos {
  position: relative; z-index: 1;
  margin-top: 3.5rem;
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap; opacity: 0.35;
  animation: fadeDown 0.7s 0.5s ease both;
}
.hero-logos img { height: 28px; object-fit: contain; filter: brightness(0) invert(1); }

/* ── FILTER BAR ── */
.filter-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; flex-wrap: wrap;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.filter-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer;
  padding: 0.45rem 1.1rem; border-radius: 99px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.filter-btn.active {
  background: var(--accent); color: #0e1117;
  border-color: var(--accent); font-weight: 700;
}

/* ── SECTIONS ── */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--surface); }

.section-header {
  text-align: center; margin-bottom: 3rem;
}
.section-tag {
  font-size: 2rem; margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; margin-bottom: 0.6rem;
}
.section-desc { color: var(--muted); font-size: 1rem; }

/* ── CARDS GRID ── */
.cards-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  animation: fadeUp 0.5s ease both;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,229,160,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,229,160,0.1);
}

.card-badge {
  position: absolute; top: 0.65rem; right: 0.65rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.28rem 0.6rem; border-radius: 99px;
  z-index: 2;
}
.badge-hot     { background: rgba(255,77,109,0.15); color: #ff4d6d; border: 1px solid rgba(255,77,109,0.3); }
.badge-gift    { background: rgba(0,229,160,0.12); color: var(--accent); border: 1px solid rgba(0,229,160,0.3); }
.badge-premium { background: rgba(255,209,102,0.12); color: var(--gold); border: 1px solid rgba(255,209,102,0.3); }
.badge-savings { background: rgba(0,184,255,0.12); color: var(--accent2); border: 1px solid rgba(0,184,255,0.3); }

.card-icon {
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}
.card-icon img {
  width: 72px; height: 72px;
  object-fit: contain;
  transition: transform 0.3s;
}
.card:hover .card-icon img { transform: scale(1.07); }

.card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.35rem;
  flex: 1;
}
.card-body h4 {
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 700;
}
.card-desc { color: var(--muted); font-size: 0.78rem; line-height: 1.4; }

.card-price {
  font-size: 1.15rem; font-weight: 300; color: var(--muted);
  margin-top: 0.2rem;
}
.card-price strong { color: var(--accent); font-weight: 800; }

.card-btn {
  display: block; margin-top: auto; padding-top: 0.9rem;
  background: linear-gradient(135deg, var(--accent), #00c0ff);
  color: #0e1117; font-weight: 700; font-size: 0.85rem;
  text-align: center; text-decoration: none;
  padding: 0.65rem 1rem; border-radius: 8px;
  margin-top: 1rem;
  transition: opacity 0.2s, transform 0.2s;
}
.card-btn:hover { opacity: 0.88; transform: scale(1.02); }

/* ── CARD HIDDEN (filter) ── */
.card.hidden {
  display: none;
}

/* ── CONTACT ── */
.section-contact {
  background: linear-gradient(135deg, rgba(0,229,160,0.08), rgba(0,184,255,0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem;
}
.contact-inner {
  max-width: 700px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; text-align: left;
}
.contact-text h2 {
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 800;
  margin-bottom: 0.5rem;
}
.contact-text p { color: var(--muted); font-size: 0.95rem; max-width: 400px; line-height: 1.6; }

.contact-btn {
  display: flex; align-items: center; gap: 0.6rem;
  background: #25d366; color: #fff;
  font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 1.8rem; border-radius: 12px;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.contact-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.4); }

/* ── FOOTER ── */
.footer {
  background: #080b10; border-top: 1px solid var(--border);
  padding: 2rem 1.5rem; text-align: center;
}
.footer p { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.2rem; }
.footer strong { color: var(--text); }
.footer-sub { font-size: 0.78rem !important; }

/* ── BACK TO TOP ── */
.back-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #0e1117;
  border: none; font-size: 1.1rem; font-weight: 700;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(0,229,160,0.3);
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: scale(1.1); }

/* ── ANIMATIONS ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(14,17,23,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 0.75rem 1rem; display: block; border-radius: 8px; }
  .hamburger { display: flex; }

  .contact-inner { flex-direction: column; text-align: center; }
  .contact-text p { max-width: 100%; }

  .hero-logos { gap: 1.5rem; }
  .hero-logos img { height: 20px; }

  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 0.9rem; }
}
