:root {
  --bg-main: #050810;
  --safe-red: #E63946;
  --safe-blue: #0077B6;
  --safe-green: #2ecc71;
  --text-main: #f5f7ff;
  --text-muted: #9aa4c6;

  --border-glass: rgba(255, 255, 255, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.04);

  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.9);

  --radius-shell: 26px;
  --radius-tile: 20px;
  --radius-pill: 999px;

  --shell-padding-y: 1.8rem;
  --shell-padding-x: 1.8rem;

  /* 10% less than 1450px → ~1300px */
  --shell-max-width: 1300px;

  --transition-fast: 0.18s ease-out;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #020615;
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, #17243d 0, transparent 55%),
    radial-gradient(circle at bottom right, #020b16 0, transparent 60%),
    #020615;
  color: var(--text-main);
}

/* GLASS SHELLS */
.glass-shell {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.09),
    rgba(8, 16, 32, 0.85)
  );
  border-radius: var(--radius-shell);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.glass-tile {
  background: var(--glass-bg);
  border-radius: var(--radius-tile);
  border: 1px solid var(--border-glass);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* NAVBAR */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: 0.8rem;
}

.nav-inner {
  max-width: var(--shell-max-width);
  margin: 0 auto;
  padding: 0.75rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.06),
    rgba(5, 10, 24, 0.96)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
}

.nav-logo-img {
  height: 40px;
  width: auto;
}

.nav-brand-text {
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Language block – visible on desktop, hidden in mobile media query only */
.nav-lang {
  margin-left: 1rem;
  position: relative;
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-radius: var(--radius-pill);
  padding: 0.48rem 0.9rem;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast);
  white-space: nowrap;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 2rem);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.09),
    rgba(8, 16, 32, 0.92)
  );
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 0.8rem;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition-fast);
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-search {
  width: 100%;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  outline: none;
  font-size: 0.9rem;
}

.lang-search::placeholder {
  color: var(--text-muted);
}

.lang-list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  max-height: 320px;
  overflow: auto;
}

.lang-item {
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  cursor: pointer;
  color: var(--text-main);
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lang-item:hover {
  background: rgba(255, 255, 255, 0.10);
}

.lang-item .lang-code {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: 1rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--safe-red), var(--safe-blue));
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after {
  width: 100%;
}

/* Secura pill */
.nav-link-secura {
  padding-inline: 1.1rem;
  padding-block: 0.45rem;
  border-radius: var(--radius-pill);
  background: radial-gradient(
    circle at top left,
    rgba(230, 57, 70, 0.85),
    rgba(0, 119, 182, 0.7)
  );
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
  position: relative;
}

.nav-link-secura::after {
  display: none;
}

.nav-secura-wordmark {
  height: 18px;
  width: auto;
  display: block;
}

.nav-external-icon {
  font-size: 0.9rem;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
}

/* HERO */
.hero {
  padding-top: 1.6rem;
}

.hero-shell,
.section-shell {
  max-width: var(--shell-max-width);
  margin: 0 auto 2rem;
  border-radius: var(--radius-shell);
  padding: var(--shell-padding-y) var(--shell-padding-x);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}

/* Hero left */
.hero-left {
  padding-right: 0.4rem;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--safe-blue);
  margin: 0 0 0.8rem;
}

.hero-title {
  margin: 0 0 0.8rem;
  font-size: 2.7rem;
  line-height: 1.06;
}

.hero-title-gradient {
  background: linear-gradient(
    120deg,
    var(--safe-red) 0%,
    var(--safe-blue) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 1.7rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Buttons */
.btn {
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.7rem;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn-primary {
  background: radial-gradient(
    circle at top left,
    var(--safe-red),
    var(--safe-blue)
  );
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Hero right image */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual {
  width: 100%;
  max-width: 500px;
}

.hero-visual-plain {
  background: transparent;
  border-radius: 22px;
}

.hero-shield-img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

/* SECTION SHELLS */
.services,
.it-solutions,
.networking,
.datacenter,
.secura-section,
.stack,
.contact {
  padding: 0;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-title {
  margin: 0 0 0.45rem;
  font-size: 1.7rem;
}

.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 680px;
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  padding: 1.1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at top left,
    rgba(230, 57, 70, 0.85),
    rgba(0, 119, 182, 0.7)
  );
  margin-bottom: 0.8rem;
}

.service-icon .ph {
  font-size: 1.4rem;
}

.service-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.service-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* IT / NETWORKING / DATACENTER GRID */
.it-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.it-card {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.it-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.it-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* SECURA SECTION */
.secura-header {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.secura-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.secura-wordmark {
  height: 26px;
  width: auto;
}

.secura-mark {
  height: 22px;
  width: auto;
}

.secura-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.secura-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.secura-cta {
  margin-top: 0.4rem;
  align-self: flex-start;
}

/* TECH STACK AREA WRAPPER */
.tech-stack-section {
  padding: 4rem 0;
}

/* Outer glass strip container */
.stack-glass-strip {
  border-radius: 22px;
  padding: 1.2rem 1.6rem;
  margin-top: 0.5rem;
  background: rgba(30, 64, 120, 0.22);
  border: 1px solid rgba(173, 216, 255, 0.7);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

/* Grid for logo tiles */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}

/* Inner white cards */
.stack-logo-tile {
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(204, 221, 255, 0.95);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo image size */
.stack-logo {
  max-width: 160px;
  max-height: 72px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: none;
  opacity: 1;
  object-fit: contain;
}

/* Responsive tweaks for stack */
@media (max-width: 1200px) {
  .stack-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .stack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .stack-logo-tile {
    padding: 0.7rem 0.8rem;
  }

  .stack-logo {
    max-width: 130px;
    max-height: 60px;
  }
}

/* CONTACT GRID */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-card {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-name {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.contact-role {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.contact-link {
  font-size: 0.9rem;
  color: var(--safe-blue);
  text-decoration: none;
  word-break: break-all;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.contact-link:hover {
  text-decoration: underline;
}

/* FOOTER */
.footer {
  max-width: var(--shell-max-width);
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-shell);
}

.footer-inner {
  padding: 0.9rem 1.4rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-link {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-link:hover {
  color: var(--text-main);
}

.footer-secura-link {
  align-items: center;
}

.footer-secura-wordmark {
  height: 18px;
  width: auto;
}

/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
  z-index: 50;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.whatsapp-float .ph {
  font-size: 1.6rem;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

/* UTILITIES */
.ph {
  line-height: 1;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  :root {
    --shell-max-width: 1120px;
  }
}

/* Tablet */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-grid,
  .it-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stack-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .secura-logo-wrap {
    flex-wrap: wrap;
  }
}

/* MOBILE (phones ≤ 720px) */
@media (max-width: 720px) {
  .nav-inner {
    padding-inline: 1.1rem;
  }

  /* Hide language switcher ONLY on mobile */
  .nav-lang {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    right: 1.1rem;
    top: 72px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: rgba(5, 8, 16, 0.98);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 70;
  }

  .nav-links.active {
    display: flex;
  }

  .hero-shell,
  .section-shell,
  .footer {
    max-width: 100%;
  }

  .hero-shell,
  .section-shell {
    padding-inline: 1.25rem;
  }

  .services-grid,
  .it-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 48px;
    height: 48px;
  }
}

/* EXTRA SMALL */
@media (max-width: 420px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .hero-inner {
    gap: 1.5rem;
  }

  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
