/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #4a148c, #7b1fa2);
  color: white;
  overflow-x: hidden;
}

/* Navigation Bar */
nav {
  background-color: rgba(50, 0, 80, 0.8);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .logo {
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
}

nav .logo img {
  height: 70px; /* Adjusted height for consistency */
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
}

.menu {
  display: flex;
  gap: 20px;
}

.menu a {
  text-decoration: none;
  color: #f3e5f5;
  font-size: 16px;
  transition: color 0.3s;
}

.menu a:hover {
  color: #d1c4e9;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    width: 100%;
    display: none;
    background-color: rgba(50, 0, 80, 0.9);
    padding-top: 10px;
  }

  .menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* Header Section */
header {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-box {
  position: relative;
  width: 100%; /* Adjust to fill header */
  height: 100%; /* Adjust to fill header */
}

#networkCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.logo-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 100%;
  text-align: center;
}

.logo-text {
  font-size: 80px;
  font-weight: bold;
  color: #ffffff;
  animation: slideInLeft 1.5s ease-out;
}

.subtext {
  font-size: 20px;
  letter-spacing: 8px;
  color: #f3e5f5;
  margin-top: 1px;
  animation: slideInRight 1.5s ease-out;
}

/* Header Animations */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Central Logo Effect */
@keyframes blurGlowEffect {
  0%, 90%, 100% {
    filter: blur(0);
    box-shadow: none;
  }
  50% {
    filter: blur(1.5px);
    box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.4);
  }
}

.logo.circulo {
  animation: blurGlowEffect 5s infinite;
  transition: filter 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
  display: inline-block;
  border-radius: 50%;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background-color: #4a148c;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.text-container {
  flex: 1 1 500px;
}

.text-container h1 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.text-container h1 span {
  color: #ffffff;
  font-weight: bold;
}

.text-container p {
  font-size: 18px;
  color: #d0c5e6;
  max-width: 500px;
  margin-bottom: 30px;
}

.cta-button {
  background-color: #ab47bc;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #ba68c8;
}

/* General Section Styles */
.section {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #4a148c, #7b1fa2);
}

.section.dark {
  background-color: #4a148c;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #ffffff;
}

.section p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 18px;
  color: #f3e5f5;
}

/* Services Cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background-color: #7b1fa2;
  border-radius: 12px;
  padding: 20px;
  width: 260px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #fff;
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.card h3 {
  margin-bottom: 10px;
}

.card:hover {
  background-color: #9c27b0;
  transform: scale(1.05);
}

.icono {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #ffffff;
}

/* Technologies Section */
.tech-list {
  list-style: none;
  padding: 0;
  font-size: 18px;
  color: #f3e5f5;
}

.tech-list li {
  margin: 10px 0;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
}

.contact-form textarea {
  resize: vertical;
  height: 100px;
}

.contact-form button {
  background-color: #ab47bc;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #ba68c8;
}

/* Footer Section */
footer {
  text-align: center;
  padding: 30px 20px;
  background-color: #2c003e;
  color: #ccc;
  font-size: 14px;
}