/* Reset some basic elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Set default font properties */
body {
  font-family: 'Roboto Mono', monospace;
  line-height: 1.6;
  color: white;
  background-color: black;
  text-align: center;
}

/* Top Logo */
.top-logo {
  position: fixed;
  top: 2rem;
  left: 2rem;
  width: 150px;
  height: auto;
  z-index: 1000;
}

/* Center the container */
.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Intro section */
#intro h1 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: #4C78FF;
}

/* Blinking cursor animation */
@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

.cursor-blink {
  animation: blink 0.75s step-end infinite;
}

/* Style for the subtitle */
.subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 1.5rem;
  color: #cccccc;
}

/* Description text */
.description {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  line-height: 1.8;
  color: #999;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Space out sections */
section {
  margin: 3rem 1rem;
  width: 100%;
}

section h2 {
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 2rem;
  color: #4C78FF;
}

/* Circular Flow Container */
.flow-container {
  position: relative;
  width: 550px;
  height: 550px;
  margin: 3rem auto;
  max-width: 90vw;
  aspect-ratio: 1;
}

.arrow-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.arrow-path {
  opacity: 0.8;
}

.service-flow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 130px;
  margin: -65px 0 0 -65px;
  transform-origin: center;
  transform: rotate(calc(var(--step) * 72deg)) translateY(-200px) rotate(calc(var(--step) * -72deg));
  border: 2px solid #333;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: black;
  z-index: 2;
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-flow:hover {
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  border-color: #4C78FF;
  background-color: #0a0a0a;
  box-shadow: 0 0 25px rgba(76, 120, 255, 0.3);
  z-index: 10;
}

.step-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4C78FF;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.service-flow:hover .step-number {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.step-name {
  font-size: 1rem;
  color: white;
  transition: all 0.3s ease;
}

.service-flow:hover .step-name {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.step-description {
  font-size: 0.75rem;
  color: #999;
  text-align: center;
  line-height: 1.4;
  padding: 0 1rem;
  opacity: 0;
  max-height: 0;
  transition: all 0.3s ease;
}

.service-flow:hover .step-description {
  opacity: 1;
  max-height: 200px;
}

/* Sectors Grid */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.sector {
  padding: 2rem 1.5rem;
  border: 2px solid #333;
  border-radius: 8px;
  text-align: center;
}

.sector-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sector-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sector h3 {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 1rem;
}

.sector-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #999;
  text-align: left;
}

/* Contact section */
#contact p {
  margin: 0.5rem 0;
}

/* Links styling */
a {
  color: #4C78FF;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

/* Footer styling */
footer {
  margin-top: auto;
  padding: 2rem 0 1rem;
  width: 100%;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.footer-address {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.footer-address p {
  margin: 0.2rem 0;
  font-size: 0.85rem;
}

.footer-copyright {
  margin-top: 1rem;
  opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  section {
    margin: 2rem 0.5rem;
  }

  .flow-container {
    width: 450px;
    height: 450px;
  }

  .service-flow {
    width: 110px;
    height: 110px;
    margin: -55px 0 0 -55px;
    transform: rotate(calc(var(--step) * 72deg)) translateY(-165px) rotate(calc(var(--step) * -72deg));
  }

  .service-flow:hover {
    width: 180px;
    height: 180px;
    margin: -90px 0 0 -90px;
  }

  .step-number {
    font-size: 1.3rem;
  }

  .step-name {
    font-size: 0.95rem;
  }

  .step-description {
    font-size: 0.7rem;
  }

  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .sector {
    padding: 1.5rem 1.2rem;
  }

  .sector-icon {
    width: 70px;
    height: 70px;
  }

  .sector h3 {
    font-size: 1.2rem;
  }

  .sector-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 900px) {
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}

@media (max-width: 480px) {
  .top-logo {
    width: 100px;
    top: 1rem;
    left: 1rem;
  }

  .flow-container {
    width: 350px;
    height: 350px;
  }

  .service-flow {
    width: 90px;
    height: 90px;
    margin: -45px 0 0 -45px;
    transform: rotate(calc(var(--step) * 72deg)) translateY(-125px) rotate(calc(var(--step) * -72deg));
  }

  .service-flow:hover {
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
  }

  .step-number {
    font-size: 1.2rem;
  }

  .step-name {
    font-size: 0.85rem;
  }

  .step-description {
    font-size: 0.65rem;
    padding: 0 0.5rem;
  }

  .sectors-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sector {
    padding: 1.5rem 1rem;
  }

  .sector-icon {
    width: 60px;
    height: 60px;
  }

  .sector-description {
    font-size: 0.85rem;
  }
}
