@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Outfit-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Outfit-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Outfit-Bold.ttf') format('truetype');
}

:root {
  --bg-color: #0f172a;
  --text-color: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --btn-size: 128px;
  --primary-gradient: radial-gradient(circle at 50% -20%, #3b82f6, #8b5cf6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.background-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* Parent is just a container now */
}

/* Gradient Layer - Blurred */
.background-mesh::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
  filter: blur(100px);
  opacity: 0.6;
  z-index: 1;
}

/* Pattern Layer - Network Mesh 3D - Diagonal Offset */
.background-mesh::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 2;
  /* Complex SVG with hexagons only - no dots */
  background-image: url("data:image/svg+xml,%3Csvg width='300' height='520' viewBox='0 0 300 520' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='net' width='300' height='520' patternUnits='userSpaceOnUse'%3E%3Cstyle%3E path { stroke: white; stroke-width: 0.8; stroke-opacity: 0.35; fill: none; } %3C/style%3E%3C!-- Group 1: Diagonal Pair (Top-Left) --%3E%3Cpath d='M30 17.3L60 34.6V69.3L30 86.6L0 69.3V34.6L30 17.3Z' /%3E%3Cpath d='M60 86.6L90 103.9V138.6L60 155.9L30 138.6V103.9L60 86.6Z' stroke-dasharray='30 10' /%3E%3C!-- Group 2: Triple Diagonal (Center-Right) --%3E%3Cpath d='M180 52L210 69.3V104L180 121.3L150 104V69.3L180 52Z' /%3E%3Cpath d='M210 121.3L240 138.6V173.3L210 190.6L180 173.3V138.6L210 121.3Z' stroke-dasharray='25 8' /%3E%3Cpath d='M240 190.6L270 207.9V242.6L240 259.9L210 242.6V207.9L240 190.6Z' stroke-dasharray='20 5' /%3E%3C!-- Group 3: Diagonal Pair (Middle-Left) --%3E%3Cpath d='M60 277.3L90 294.6V329.3L60 346.6L30 329.3V294.6L60 277.3Z' /%3E%3Cpath d='M90 346.6L120 363.9V398.6L90 415.9L60 398.6V363.9L90 346.6Z' stroke-dasharray='18 6' /%3E%3C!-- Group 4: Bottom Solo --%3E%3Cpath d='M210 380L240 397.3V432L210 449.3L180 432V397.3L210 380Z' stroke-dasharray='22 8' /%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23net)'/%3E%3C/svg%3E");
  opacity: 1;
  transform: perspective(1000px) rotateX(60deg) scale(2);
  transform-origin: center 20%;
  /* Fade out into distance */
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 0) 80%
  );
  mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 0) 80%
  );
}

.dashboard-container {
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--glass-shadow);
  animation: fadeIn 0.8s ease-out;
}

.site-logo {
  max-width: 500px;
  height: auto;
  margin-bottom: 2rem;
  animation: fadeIn 0.8s ease-out;
}

h1 {
  font-weight: 300;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.subtitle {
  font-weight: 300;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.subtitle a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  animation: subtlePulse 3s infinite ease-in-out;
}

@keyframes subtlePulse {
  0% {
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
  }
  50% {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.9);
  }
  100% {
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
  }
}

.subtitle a:hover {
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.contact-container {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.contact-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.8);
}

.top-nav-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  z-index: 100;
}

.top-nav-btn:hover {
  background: rgba(15, 23, 42, 0.85);
  color: white;
  border-color: rgba(255, 255, 255, 0.8);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, var(--btn-size));
  grid-template-rows: repeat(2, var(--btn-size));
  gap: 1.5rem;
  justify-content: center;
}

.dashboard-btn {
  width: var(--btn-size);
  height: var(--btn-size);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter glass */
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column; /* Stack icon and text */
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  gap: 12px; /* Space between icon and text */
}

.dashboard-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.dashboard-btn svg {
  width: 48px; /* Slightly smaller to fit text */
  height: 48px;
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.btn-label {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
  text-align: center;
  line-height: 1.2;
}

.dashboard-btn:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.3),
    0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.dashboard-btn:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

.dashboard-btn:hover::after {
  opacity: 1;
}

.dashboard-btn:active {
  transform: translateY(0) scale(0.98);
}

@media (prefers-reduced-motion: no-preference) {
  .dashboard-btn {
    transition-duration: 0.4s;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  z-index: 10;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: rgba(255, 255, 255, 1);
}

.footer-divider {
  opacity: 0.4;
}

.content-text {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  text-align: left;
  max-width: 50vw;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 1rem;
}

.content-text::-webkit-scrollbar {
  width: 6px;
}

.content-text::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.content-text::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.content-text::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.content-text a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.content-text a:hover {
  color: white;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
  body {
    height: 100vh;
    overflow: hidden;
    padding: 0;
  }

  .site-logo {
    max-width: 70%;
    margin-bottom: 1.5rem;
  }

  .dashboard-container {
    padding: 2rem 1.5rem;
    margin: 1rem;
    border-radius: 16px;
    max-width: 90%;
  }

  h1 {
    font-size: 1.25rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .top-nav-btn {
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }

  .contact-link {
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
  }

  .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.75rem;
    background: rgba(15, 23, 42, 0.95);
    padding: 0.75rem 1rem;
    border-radius: 0;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    justify-content: center;
  }

  .content-text {
    max-width: 90vw;
    max-height: 50vh;
    font-size: 0.9rem;
  }
}


@media (max-width: 480px) {
  body {
    height: 100vh;
    overflow: hidden;
    padding: 0;
  }

  .site-logo {
    max-width: 80%;
    margin-bottom: 1rem;
  }

  .dashboard-container {
    padding: 1.5rem 1rem;
    margin: 0.5rem;
    border-radius: 12px;
    max-width: 95%;
  }

  h1 {
    font-size: 1.1rem;
    letter-spacing: 0.03em;
  }

  .subtitle {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .top-nav-btn {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    border-radius: 16px;
  }

  .contact-container {
    margin-top: 1.5rem;
  }

  .contact-link {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }

  .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.7rem;
    background: rgba(15, 23, 42, 0.95);
    padding: 0.6rem 0.8rem;
    border-radius: 0;
    gap: 0.4rem;
    flex-wrap: nowrap;
    justify-content: center;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
  }

  .footer-divider {
    display: inline;
  }

  .content-text {
    max-width: 95vw;
    max-height: 45vh;
    font-size: 0.85rem;
  }
}


/* Landscape mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
  body {
    height: 100vh;
    overflow: hidden;
    padding: 0;
  }

  .site-logo {
    max-width: 180px;
    margin-bottom: 0.5rem;
  }

  .dashboard-container {
    padding: 1rem;
    max-width: 90%;
  }

  h1 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .subtitle {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .contact-container {
    margin-top: 1rem;
  }

  .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.65rem;
    background: rgba(15, 23, 42, 0.95);
    padding: 0.4rem;
    border-radius: 0;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    justify-content: center;
  }
}

/* Solution Page Layout */
.solutions-layout {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1rem 6rem 1rem; /* Top padding for header space, bottom for footer */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 5;
}

.solutions-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeIn 0.8s ease-out;
}

.solutions-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 800px;
}

.solution-card {
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
  animation: fadeIn 0.8s ease-out;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.solution-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.solution-card h3 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0; /* Removed bottom margin when collapsed */
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.05em;
  transition: margin-bottom 0.3s ease;
  pointer-events: none; /* Let clicks pass to card */
}

.solution-card.expanded h3 {
  margin-bottom: 1rem;
}

.solution-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.solution-card.expanded p {
  max-height: 200px; /* Arbitrary large height */
  opacity: 1;
}

.back-link-container {
  margin-top: 3rem;
  text-align: center;
}

.back-link-container a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.back-link-container a:hover {
  color: white;
}

