﻿/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Syne:wght@700;800;900&display=swap');

:root {
  --bg-dark: #0f172a;
  --bg-light: #ffffff;
  --bg-subtle: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-yellow: #fbbf24;
  --brand-yellow-hover: #f59e0b;
  --border-color: #e2e8f0;
  --max-w: 1400px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Helpers */
.font-display {
  font-family: 'Syne', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  gap: 3px;
}

.logo-icon span {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
}

.logo-yellow {
  background-color: var(--brand-yellow);
}

.logo-blue {
  background-color: var(--brand-blue);
}

.logo-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.logo-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  display: block;
  color: var(--brand-yellow);
  margin-top: 2px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-yellow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--brand-yellow);
  color: #000000;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.625rem 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

@media (min-width: 768px) {
  .btn-cta {
    display: inline-flex;
  }
}

.btn-cta:hover {
  background-color: #fde047;
}

.btn-cta:active {
  transform: scale(0.97);
}

.mobile-menu-btn {
  display: inline-flex;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.25rem;
}

@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 4.5rem;
  left: 0;
  right: 0;
  background-color: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 49;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e2e8f0;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav a:hover {
  color: var(--brand-yellow);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background-color: #0f172a;
  overflow: hidden;
  padding-bottom: 5rem;
  padding-top: 8rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.75) 60%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 0 2.5rem;
  }
}

.hero-subtitle {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand-yellow);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  color: #ffffff;
}

.hero-title .highlight {
  color: var(--brand-yellow);
}

.hero-desc {
  margin-top: 1.75rem;
  max-width: 36rem;
  color: #cbd5e1;
  font-size: 1.125rem;
  line-height: 1.7;
}

.hero-cta-group {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--brand-blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 1.75rem;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 1.75rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--brand-yellow);
  color: var(--brand-yellow);
}

.btn-outline:active {
  transform: scale(0.97);
}

/* Running Marquee */
.marquee-bar {
  position: relative;
  z-index: 10;
  background-color: var(--brand-yellow);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #000000;
  margin: 0 2rem;
  display: inline-flex;
  align-items: center;
  gap: 2rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections Common */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 0;
  }
}

.bg-light {
  background-color: #ffffff;
}

.bg-subtle {
  background-color: #f8fafc;
}

.section-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #d97706;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #0f172a;
  line-height: 1.1;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  max-width: 28rem;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: #ffffff;
  transition: background-color 0.2s;
}

.about-card:hover {
  background-color: #f8fafc;
}

.about-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.about-card:hover .about-number {
  color: var(--brand-yellow);
}

.about-heading {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.about-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  padding: 2rem;
  background-color: #ffffff;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.product-card:hover {
  background-color: var(--brand-blue);
}

.product-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s;
}

.product-icon span {
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--brand-yellow);
  transform: rotate(45deg);
}

.product-card:hover .product-icon {
  background-color: rgba(0, 0, 0, 0.2);
}

.product-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
  transition: color 0.3s;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  transition: color 0.3s;
}

.product-card:hover .product-title {
  color: #ffffff;
}

.product-card:hover .product-desc {
  color: #dbeafe;
}

/* Solutions Grid */
.solutions-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .solutions-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3.5rem;
}

@media (min-width: 768px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.solution-card {
  position: relative;
  height: 20rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.solution-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.solution-card:hover .solution-img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.solution-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.5) 50%, transparent 100%);
}

.solution-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
}

.solution-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--brand-yellow);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.solution-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
}

.solution-text {
  color: #e2e8f0;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  max-width: 28rem;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: all 0.4s ease;
}

.solution-card:hover .solution-text {
  opacity: 1;
  transform: translateY(0);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3.5rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
  }
  .project-featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.project-card {
  position: relative;
  height: 16rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

@media (min-width: 768px) {
  .project-card {
    height: 100%;
  }
}

.project-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
}

.project-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: var(--brand-yellow);
  color: #000000;
  padding: 0.25rem 0.5rem;
  font-weight: 700;
}

.project-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.project-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--brand-yellow);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  font-size: 1.15rem;
}

.project-featured .project-title {
  font-size: 1.75rem;
}

/* News Section */
.news-list {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border-color);
}

.news-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 1rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

@media (min-width: 768px) {
  .news-item {
    grid-template-columns: 2fr 6fr 3fr 1fr;
  }
}

.news-item:hover {
  background-color: #ffffff;
}

.news-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--brand-blue);
  letter-spacing: 0.1em;
}

.news-date span {
  display: block;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.news-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  transition: color 0.2s;
}

.news-item:hover .news-title {
  color: var(--brand-blue);
}

.news-excerpt {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.news-thumb {
  display: none;
  height: 7rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .news-thumb {
    display: block;
  }
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.5s ease;
}

.news-item:hover .news-thumb img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.news-arrow {
  display: flex;
  justify-content: flex-end;
  color: var(--brand-blue);
  transition: transform 0.2s;
}

.news-item:hover .news-arrow {
  transform: translateX(4px);
}

/* Contact Section (Cards) */
.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

@media (min-width: 768px) {
  .contact-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.08);
}

.contact-card.highlight {
  border-top: 4px solid #22c55e;
}

.contact-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  color: var(--brand-blue);
}

.contact-card.highlight .contact-card-icon {
  background-color: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.contact-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.contact-card-value {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.contact-card-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-card-value a:hover {
  color: var(--brand-blue);
}

.btn-chat-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  background-color: #22c55e;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn-chat-wa:hover {
  background-color: #16a34a;
}

/* Footer */
.footer {
  background-color: #f1f5f9;
  border-top: 1px solid var(--border-color);
}

.footer-top {
  padding: 4rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1.5fr;
  }
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 1.25rem;
  max-width: 20rem;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-contacts-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 0.25rem;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #475569;
}

.footer-contact-row svg {
  color: var(--brand-blue);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-contact-row a {
  color: inherit;
  text-decoration: none;
}

.footer-contact-row a:hover {
  color: var(--brand-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #64748b;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background-color: #0f172a;
  color: #ffffff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}
