:root {
  /* Primary colors */
  --color-bg-dark: #00101E;
  /* main background */
  --color-bg-gradient: #002F4B;
  /* gradient accent */
  --color-white: #FFFFFF;
  /* main text */
  /* Secondary colors */
  --color-cyan: #0EB1E5;
  /* accent cyan */
  --color-cyan-light: #19F6FA;
  /* light accent cyan */
  --color-gray: #999999;
  /* secondary text */
  --color-gray-light: #EFEFEF;
  /* light backgrounds */
}

body {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

/* HEADER CYBER MODERNO */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent !important;
  box-shadow: none;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Darker Grotesque', sans-serif;
  height: 80px;
  color: var(--color-white);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.main-header.scrolled {
  background: var(--color-bg-dark) !important;
}

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo a {
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Darker Grotesque', sans-serif;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}

.logo .dot {
  font-size: 1.3rem;
  vertical-align: middle;
  margin: 0 2px;
  color: #00ffb3;
  text-shadow: 0 0 8px #00ffb3, 0 0 2px #fff;
}

.logo img,
.custom-logo-link img {
  max-width: 200px;
  max-height: 100px;
  width: auto;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-cyan);
  background: rgba(14, 177, 229, 0.10);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  font-weight: 700;
  font-family: 'Darker Grotesque', sans-serif;
  font-size: 1.08rem;
  box-shadow: 0 0 8px var(--color-cyan-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
}

.main-nav a:hover {
  background: var(--color-cyan-light);
  color: var(--color-bg-dark);
  box-shadow: 0 0 24px var(--color-cyan-light), 0 0 8px var(--color-cyan);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 1.5rem;
}

.social-icons a {
  background: rgba(14, 177, 229, 0.10);
  border-radius: 8px;
  color: var(--color-cyan);
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 8px var(--color-cyan-light);
}

.social-icons a:hover {
  background: var(--color-cyan-light);
  color: var(--color-bg-dark);
  box-shadow: 0 0 24px var(--color-cyan-light), 0 0 8px var(--color-cyan);
}

@media (max-width: 900px) {
  .container {
    gap: 0.5rem;
  }

  .main-header {
    padding: 25px 10px;
    height: 64px;
    background: transparent !important;
    transition: background-color 0.3s ease;
  }

  .main-header.scrolled {
    background: var(--color-bg-dark) !important;
  }

  .logo a {
    font-size: 1.1rem;
  }

  .main-nav a {
    font-size: 0.98rem;
    padding: 6px 10px;
  }

  .social-icons a {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .logo img,
  .custom-logo-link img {
    max-width: 160px;
    max-height: 80px;
  }

  .menu-social-group {
    width: 100vw;
    justify-content: flex-end;
    gap: 0;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(90deg, #0f2f2f, #000);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 130px 24px 24px 24px;
    transition: right 0.35s cubic-bezier(.77, 0, .18, 1);
    z-index: 1200;
  }

  .main-nav.open {
    right: 0;
  }

  .main-menu-list {
    flex-direction: column;
    gap: 18px;
    width: 100%;
  }

  .social-icons {
    position: static;
    flex-direction: row;
    justify-content: flex-start;
    margin: 32px 0 0 0;
    width: 100%;
    gap: 16px;
  }

  .main-nav .social-icons {
    justify-content: center;
    margin-top: 32px;
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .container {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .main-header {
    height: auto;
    padding: 6px 2vw;
  }

  .main-nav ul {
    gap: 8px;
  }

  .logo {
    justify-content: center;
    margin-bottom: 4px;
  }

  .social-icons {
    justify-content: center;
  }
}

/* Hamburger button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 1201;
}

.hamburger span,
.hamburger span:before,
.hamburger span:after {
  display: block;
  background: #fff;
  height: 3px;
  width: 28px;
  border-radius: 2px;
  position: absolute;
  transition: all 0.3s;
}

.hamburger span {
  position: relative;
}

.hamburger span:before {
  content: '';
  position: absolute;
  top: -9px;
}

.hamburger span:after {
  content: '';
  position: absolute;
  top: 9px;
}

.hamburger.active span {
  background: transparent;
}

.hamburger.active span:before {
  top: 0;
  transform: rotate(45deg);
}

.hamburger.active span:after {
  top: 0;
  transform: rotate(-45deg);
}

/* Slide menu styles */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(90deg, #0f2f2f, #000);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 130px 24px 24px 24px;
    transition: right 0.35s cubic-bezier(.77, 0, .18, 1);
    z-index: 1200;
  }

  .main-nav.open {
    right: 0;
  }

  .main-menu-list {
    flex-direction: column;
    gap: 18px;
    width: 100%;
  }

  .main-header .container {
    flex-wrap: nowrap;
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 18px;
    top: 18px;
  }

  .social-icons {
    position: static;
    flex-direction: row;
    justify-content: flex-start;
    margin: 32px 0 0 0;
    width: 100%;
    gap: 16px;
  }

  .main-header {
    height: 85px;
    min-height: 64px;
  }

  .main-header .logo {
    z-index: 1203;
    padding-top: 5px;
  }

  .main-header .container {
    position: relative;
    height: 64px;
    align-items: baseline;
    padding: 0 5% 0;
  }

  .main-nav {
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
  }

  .main-nav .main-menu-list li {
    width: 100%;
  }

  .main-nav .main-menu-list a {
    width: 100%;
    justify-content: flex-start;
  }

  .main-nav .main-menu-list a {
    font-size: 1.1rem;
    padding: 12px 10px;
  }

  .main-nav .main-menu-list a:hover {
    background: #1f4d4d;
    color: #00ffb3;
    box-shadow: 0 0 16px #00ffb3;
  }

  .main-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, #00080F 2%, #00101E 48%, #002F4B 100%) !important;
    z-index: 1199;
    transition: opacity 0.3s;
  }

  .main-nav.open+.main-nav-overlay {
    display: block;
    opacity: 1;
  }
}

/* Overlay only visible on mobile when menu is open */
.main-nav-overlay {
  display: none;
}

@media (max-width: 900px) {
  .main-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 16, 30, 0.65);
    /* use --color-bg-dark with opacity */
    z-index: 1199;
    transition: opacity 0.3s;
  }

  .main-nav.open+.main-nav-overlay {
    display: block;
    opacity: 1;
  }
}

/* Front page and other global elements can use these variables as well */
.front-page,
.hero-container {
  color: var(--color-white);
}

.cta-button {
  background: var(--color-cyan);
  color: var(--color-bg-dark);
  border: none;
  border-radius: 2rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 24px var(--color-cyan-light), 0 0 8px var(--color-cyan);
}

.cta-button:hover {
  background: var(--color-cyan-light);
  color: var(--color-bg-dark);
  box-shadow: 0 0 36px var(--color-cyan-light), 0 0 12px var(--color-cyan);
}

.main-header,
.main-header .container,
.menu-social-group,
.main-nav {
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {

  .main-header,
  .main-header .container,
  .menu-social-group,
  .main-nav {
    background: transparent !important;
    box-shadow: none !important;
  }
}