@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  /* Corporate Tech Palette */
  --primary-color: #1b3751; /* Corporate Blue */
  --secondary-color: #d6f14e; /* Corporate Lime/Green */
  --accent-color: #234666; /* Lighter Blue for cards */
  --text-color: #a8b2d1; /* Soft Blue-Grey text */
  --heading-color: #e6f1ff; /* Very light blue for headings */
  --light-color: #f8f9fa;
  --dark-color: #122538; /* Darker Blue for background/footer */
  --glass-bg: rgba(27, 55, 81, 0.85);
  --glass-border: rgba(214, 241, 78, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
  line-height: 1.6;
  counter-reset: section;
}

.navbar {
  background-color: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px 0;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
  border-bottom: 1px solid var(--glass-border);
}

.navbar.scrolled {
  padding: 10px 0;
  background-color: rgba(10, 25, 47, 0.95);
  box-shadow: 0 20px 30px -10px rgba(2, 12, 27, 0.7);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color) !important;
  display: flex;
  align-items: center;
  letter-spacing: 1px;
}

.navbar-brand img {
  height: 40px;
  margin-right: 10px;
}

.nav-link {
  color: var(--heading-color) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 15px !important;
  margin: 0 5px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif; /* Ensure mono/tech feel if desired, but Inter is fine */
}

.nav-link:hover,
.nav-link:focus {
  color: var(--secondary-color) !important;
  background-color: rgba(100, 255, 218, 0.1);
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--secondary-color) !important;
  font-weight: 600;
}

.hero {
  background-color: var(--primary-color);
  background-image: radial-gradient(
    circle at 50% 50%,
    #112240 0%,
    var(--primary-color) 100%
  );
  text-align: center;
  padding: 200px 20px 160px;
  color: var(--heading-color);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2364ffda' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--heading-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 40px;
  color: var(--secondary-color);
  font-family: "Inter", monospace; /* Techy feel for the subtitle */
  letter-spacing: 0.5px;
}

.btn-custom {
  background-color: transparent;
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: 500;
  padding: 18px 35px;
  border-radius: 4px;
  border: 1px solid var(--secondary-color);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-custom:hover {
  background-color: rgba(100, 255, 218, 0.1);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -10px rgba(100, 255, 218, 0.3);
}

.btn-custom i {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.btn-custom:hover i {
  transform: translateX(5px);
}

.section {
  padding: 100px 20px;
  position: relative;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  color: var(--heading-color);
  counter-increment: section;
}

.section-title::before {
  content: "0" counter(section) ".";
  margin-right: 10px;
  color: var(--secondary-color);
  font-family: "Inter", monospace;
  font-size: 1.5rem;
  font-weight: 400;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--secondary-color);
  border-radius: 2px;
  display: none; /* Removed the underline for a cleaner look */
}

.section-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--text-color);
}

.service-card {
  background: var(--accent-color);
  border-radius: 4px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  height: 100%;
  border: none; /* Removed the left border */
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
  border: 1px solid var(--secondary-color);
}

.service-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 241, 78, 0.1);
  border-radius: 12px;
  color: var(--secondary-color);
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(214, 241, 78, 0.4);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.service-text {
  font-size: 1rem;
  color: var(--text-color);
  opacity: 1;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--accent-color);
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.form-control {
  padding: 12px 15px;
  border-radius: 4px;
  border: 1px solid #233554; /* Darker border */
  background-color: #112240; /* Match card bg */
  color: var(--heading-color);
  transition: all 0.3s ease;
}

.form-control:focus {
  background-color: #112240;
  color: var(--heading-color);
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(100, 255, 218, 0.1);
}

.form-label {
  color: var(--heading-color);
  font-weight: 500;
}

footer {
  background: var(--dark-color);
  color: var(--text-color);
  padding: 40px 0 20px;
  text-align: center;
}

.social-links {
  margin-bottom: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--text-color);
  border-radius: 50%;
  margin: 0 10px;
  color: var(--text-color);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: rgba(100, 255, 218, 0.1);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-links {
  margin-bottom: 20px;
  font-family: "Inter", monospace;
}

.footer-links a {
  color: var(--text-color);
  margin: 0 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.copyright {
  opacity: 0.6;
  font-size: 0.8rem;
  font-family: "Inter", monospace;
}

/* Animazioni */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero p {
    font-size: 1.3rem;
  }
  .section {
    padding: 80px 20px;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.5rem;
  }
  .hero {
    padding: 150px 20px 100px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .contact-form {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .btn-custom {
    padding: 10px 25px;
    font-size: 1rem;
  }
  .footer-links a {
    display: block;
    margin: 10px 0;
  }
}

.about-logo {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  transition: all 0.3s ease;
}


.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-color);
  color: var(--text-color);
  padding: 15px 0;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  border-top: 1px solid var(--glass-border);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.fa-spin {
  animation: spin 1s linear infinite;
}
