:root {
  --charcoal-black: #3b3a3c;
  --blue-gray: #b0c4d8;
  --accent-orange: #ff5500;

  --background-gradient: radial-gradient(
    ellipse at top right,
    var(--charcoal-black) 0%,
    #15151b 60%
  );
  --text-light: #f4f4f5;
  --text-medium: var(--blue-gray);
  --glass-bg: rgba(59, 58, 60, 0.5);
  --glass-border: rgba(176, 196, 216, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "IBM Plex Sans", sans-serif;
  background-color: #0c0b1e;
  background-image: var(--background-gradient);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 35px;
}

.logo-container {
  width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
}

.roav7-logo {
  height: 40px;
  width: auto;
  opacity: 0.7;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 48px;
  min-height: calc(90vh - 80px);
  width: 80vw;
  margin: auto;
}

.hero-content {
  text-align: left;
}

.coming-soon {
  display: inline-block;
  background: var(--accent-orange);
  color: white;
  padding: 8px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 24px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 85, 0, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.3);
  }
}

.hero-content h1 {
  font-family: "Lexend Exa", sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--text-light);
}

.hero-content .subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--text-medium);
}

.hero-content .description {
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 500px;
  line-height: 1.7;
}

/* Data Network Visual */
.data-network {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.data-network .orbit {
  position: absolute;
  border-radius: 50%;
  animation: spin linear infinite;
  box-shadow: inset 7px 7px 14px #1f1f27,
   inset -7px -7px 14px
      rgba(78, 75, 82, 0.2); 
}

.data-network .orbit-1 {
  width: 90%;
  height: 90%;
  animation-duration: 457s; /
}

.data-network .orbit-2 {
  width: 60%;
  height: 60%;
  animation-duration: 383s;
  animation-direction: reverse;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes central-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(255, 85, 0, 0.2);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(255, 85, 0, 0.35);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(255, 85, 0, 0.2);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    transform: translateY(0px) scale(1);
  }
}

.central-hub-link {
  display: block;
  position: relative; 
  z-index: 10;
}

.central-hub {
  position: relative;
  width: 180px;
  height: 180px;
  background: rgba(255, 85, 0, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 85, 0, 0.3);
  box-shadow: 0 0 30px rgba(255, 85, 0, 0.2);
  animation: central-pulse 5s ease-in-out infinite;
  cursor: pointer;
  transition: background-color 0.4s ease; 
}

.hub-icon,
.hub-text {
  position: absolute;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hub-icon {
  opacity: 1;
  transform: scale(1);
}

.hub-text {
  opacity: 0;
  transform: scale(0.95);
  font-weight: 500;
  font-size: 1.2rem;
  color: white;
}

.central-hub-link:hover .central-hub {
  background: rgba(255, 85, 0, 0.4);
}

.central-hub-link:hover .hub-icon {
  opacity: 0;
  transform: scale(0.95); 
}

.central-hub-link:hover .hub-text {
  opacity: 1;
  transform: scale(1); 
}

.network-node {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.orbit-1 .network-node {
  animation: float 60s ease-in-out infinite, spin 457s linear infinite reverse;
}

.orbit-2 .network-node {
  animation: float 60s ease-in-out infinite, spin 383s linear infinite;
}

.orbit-1 .node-1 {
  animation-delay: 0s, 0s;
}
.orbit-1 .node-2 {
  animation-delay: -5s, 0s;
}
.orbit-1 .node-3 {
  animation-delay: -10s, 0s;
}

.orbit-2 .node-6 {
  animation-delay: -15s, 0s;
}
.orbit-2 .node-4 {
  animation-delay: -3s, 0s;
}
.orbit-2 .node-5 {
  animation-delay: -8s, 0s;
}

.orbit-1 .node-1 {
  top: -5%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.orbit-1 .node-2 {
  top: 50%;
  right: -5%;
  transform: translate(50%, -50%);
}
.orbit-1 .node-3 {
  bottom: 8%;
  left: 11%;
  transform: translate(-50%, 50%);
}

.orbit-2 .node-6 {
  top: 42%;
  left: -6%;
  transform: translate(-50%, -50%);
}
.orbit-2 .node-4 {
  top: -7%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.orbit-2 .node-5 {
  bottom: 23%;
  left: 89%;
  transform: translate(-50%, 50%);
}

/* Expanding Gallery Section */
.features-gallery {
  display: flex;
  gap: 1rem;
  height: 350px;
  margin: 5rem auto;
  width: 95vw;
}

.feature-card {
  position: relative;
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  background-color: #2a292d;
  cursor: pointer;
  border: 1px solid var(--glass-border);
}

.features-gallery:hover .feature-card:not(:hover) {
  flex: 2;
}

.features-gallery .feature-card:hover {
  flex: 4;
}

.card-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
}

.feature-card:hover .card-background-image {
  opacity: 1;
}

.card-background-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 11, 30, 0.5);
  backdrop-filter: blur(4px) saturate(120%);
  -webkit-backdrop-filter: blur(4px) saturate(120%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.feature-card:hover .card-background-image::after {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 1.5s ease;
}

.feature-card:hover .card-content {
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
}

.feature-icon {
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 50px;
  height: 50px;
  color: var(--accent-orange);
  transition: color 1.5s ease;
}

.feature-card:hover .feature-icon svg {
  color: var(--text-light);
}

.feature-card h4 {
  font-family: "Lexend Exa", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.feature-card:hover h3 {
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.feature-card p {
  color: var(--text-light);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(15px);
  transition: opacity 0.5s ease 0.2s, max-height 0.6s ease 0.4s,
    transform 0.6s ease 0.4s; /* Delay appearance */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  line-height: 1.6;
  font-size: 0.95rem;
}

.feature-card:hover p {
  opacity: 1;
  max-height: 150px;
  transform: translateY(0);
}



/* CTA Section */
.cta-section {
  margin: 4rem 0 0;
  padding: 3rem;
  background: rgba(59, 58, 60, 0.3);
  backdrop-filter: blur(10px);
  border: 1px  solid var(--glass-border);
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  font-family: "Lexend Exa", sans-serif;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-medium);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: var(--accent-orange);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 85, 0, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  background-color: #ff7733;
  box-shadow: 0 8px 25px rgba(255, 85, 0, 0.4);
}

/* Footer */
footer {
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

footer p {
  color: #888;
}

footer a {
  color: var(--text-medium);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-orange);
}

/* Responsive */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content {
    text-align: center;
  }
  .hero-content .description {
    margin: 0 auto;
  }
  .data-network {
    margin-top: 48px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .central-hub {
    width: 120px;
    height: 120px;
  }
  .central-hub span {
    font-size: 2rem;
  }
  .hub-icon{
    width: 80px;
  }
  .network-node {
    width: 40px;
    height: 40px;
    border-radius: 50px;
  }
  .network-node svg {
    width: 18px;
    height: 18px;
  }
  .main-header {
    flex-direction: column;
    gap: 16px;
  }
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
    .features-gallery {
        flex-direction: column;
        height: 80vh; 
        width: 90vw;
    }

    .features-gallery:hover .feature-card:not(:hover) {
        flex: 2;
    }

    .features-gallery .feature-card:hover {
        flex: 5;
    }

    .feature-card:hover .card-content {
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

}

.center-logo {
  height: 100px;
  width: auto;
}

.icon {
  width: 30px;
  height: auto;
}
