/**
* Modern "Deep Tech" Theme for Trecastagni
*/

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

:root {
  /* Core Colors */
  --bg-dark: #0B1120;
  --bg-card: rgba(30, 41, 59, 0.7);
  --text-main: #E2E8F0;
  --text-muted: #94A3B8;
  --primary: #3B82F6;
  /* Electric Blue */
  --accent: #06B6D4;
  /* Cyan */
  --glow: rgba(59, 130, 246, 0.5);

  /* Fonts */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: #fff;
}

a {
  color: var(--accent);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* =========================================
   Header & Nav
   ========================================= */
#header {
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 0;
  transition: all 0.4s ease;
  z-index: 997;
}

/* Fix containing block issue for fixed mobile menu */
#header.header-mobile-active {
  height: 100vh;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(11, 17, 32, 0.98);
}

#header .logo {
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

#header .logo a {
  color: #fff;
}

#header .logo img {
  max-height: 40px;
  /* Ensure right size for white logo */
}

/* Nav Links */
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

@media (min-width: 992px) {
  .navbar ul {
    display: flex;
    /* Force inline only on desktop */
  }
}

@media (max-width: 991px) {
  .navbar ul {
    display: none;
    /* Hide by default on mobile */
  }
}

.navbar li {
  position: relative;
  padding: 0 10px;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-heading);
  white-space: nowrap;
  transition: 0.3s;
  text-decoration: none;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: var(--accent);
}

.navbar .getstarted,
.navbar .getstarted:focus {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50px;
  padding: 10px 25px;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
  margin-left: 30px;
  text-decoration: none;
}

.navbar .getstarted:hover {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  transform: translateY(-2px);
}

/* Hide hamburger on desktop */
@media (min-width: 992px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.mobile-nav-toggle {
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
  z-index: 9999;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed !important;
  /*overflow: hidden;*/
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(11, 17, 32, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: 0.3s;
  z-index: 9999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #fff;
}

.navbar-mobile ul {
  display: block !important;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 16px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
}

.navbar-mobile a:hover,
.navbar-mobile li:hover>a {
  color: var(--accent) !important;
}

.navbar-mobile .active,
.navbar-mobile .active:focus {
  color: var(--accent) !important;
  border-left: 3px solid var(--accent);
  padding-left: 17px;
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  margin: 15px;
  display: inline-block;
}

/* =========================================
   Hero Section
   ========================================= */
/* =========================================
   Hero Section
   ========================================= */
#hero {
  width: 100%;
  height: 100vh;
  position: relative;
  /* Specific Technology Image */
  background: url('../img/hero-network.png') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Drifting Gradient Overlay */
#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Gradients with transparency to show image */
  background: radial-gradient(circle at top right, rgba(30, 58, 138, 0.7), transparent 50%),
    radial-gradient(circle at bottom left, rgba(14, 116, 144, 0.7), transparent 50px),
    rgba(11, 17, 32, 0.85);
  /* Dark semi-transparent overlay */
  background-size: 200% 200%;
  animation: gradient-drift 15s ease infinite;
  z-index: 0;
}

@keyframes gradient-drift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Mesh effect overlay (CSS only) */
#hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 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='%23ffffff' fill-opacity='0.03'%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");
  z-index: 1;
  opacity: 0.8;
  animation: mesh-fade 8s ease-in-out infinite alternate;
}

@keyframes mesh-fade {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 1;
  }
}

#hero .container {
  z-index: 2;
  position: relative;
}

#hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: -webkit-linear-gradient(left, #fff, #94b8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

#hero h2 {
  color: var(--text-muted);
  font-size: 1.5rem;
  font-weight: 300;
}

#hero .btn-get-started {
  margin-top: 80px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 40px;
  border-radius: 50px;
  transition: 0.5s;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

#hero .btn-get-started:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--glow);
}

@media (max-width: 992px) {
  #hero h1 {
    font-size: 2.5rem;
  }

  #hero h2 {
    font-size: 1.2rem;
  }
}

/* =========================================
   Sections General
   ========================================= */
section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-bg {
  background-color: transparent;
  /* Remove old bg */
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  bottom: 0;
  left: calc(50% - 25px);
  border-radius: 3px;
}

.section-title p {
  color: var(--text-muted);
}

/* =========================================
   Glass Cards (Services, Counts, etc.)
   ========================================= */
.icon-box,
.count-box,
.video-box {
  background: var(--bg-card);
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(5px);
  height: 100%;
}

.icon-box:hover,
.count-box:hover,
.video-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.3);
}

.icon-box .icon {
  margin-bottom: 20px;
  font-size: 32px;
  color: var(--accent);
}

.icon-box h4,
.icon-box .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
  color: #fff;
}

.icon-box p,
.icon-box .description {
  font-size: 15px;
  color: var(--text-muted);
}

/* Feature Lists in Cards */
.myUl,
.featureList {
  list-style: none;
  padding: 0;
  text-align: left;
}

.myUl li,
.featureList li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.myUl li i,
.featureList li i {
  color: var(--primary);
  margin-right: 12px;
  margin-top: 5px;
  font-size: 1.1rem;
}

/* =========================================
   Counts Section
   ========================================= */
.counts .count-box span {
  font-size: 42px;
  display: block;
  font-weight: 700;
  color: var(--accent);
  background: -webkit-linear-gradient(45deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.counts .count-box p {
  padding: 0;
  margin: 10px 0 0 0;
  font-family: var(--font-heading);
  font-size: 16px;
  color: #fff;
}

/* =========================================
   Services (Projects) - SVG Color overrides
   ========================================= */
.icon-box svg path {
  /*fill: rgba(255, 255, 255, 0.05) !important;*/
  stroke: var(--primary) !important;
  stroke-width: 2px !important;
}

/* =========================================
   Tech Tags (Tech Section)
   ========================================= */
#tech .icon-box {
  padding: 25px;
  text-align: center;
}

#tech .icon-box .title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* =========================================
   Contact
   ========================================= */
.count-box {
  padding: 30px;
  width: 100%;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
  text-align: center;
}

.count-box p {
  padding: 0;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center the icon and text */
}

.contact .info {
  width: 100%;
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact .info i {
  font-size: 20px;
  color: var(--accent);
  float: left;
  width: 44px;
  height: 44px;
  background: rgba(6, 182, 212, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
}

.contact .info:hover i {
  background: var(--accent);
  color: #fff;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #fff;
}

.contact .info p {
  padding: 0 0 0 60px;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Cookie Banner */
#cb-cookie-banner {
  background: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

#cb-cookie-banner a {
  color: var(--accent);
  font-weight: 600;
}

#cb-cookie-banner button {
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  border: none;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  padding: 5px 20px;
}

/* Footer */
#footer {
  background: #000;
  color: #fff;
  padding: 30px 0;
}

/* =========================================
   Services Section Specifics (Icons & Hover)
   ========================================= */
.services .icon-box {
  text-align: center;
}

.services .icon-box .icon {
  margin: 0 auto 20px auto;
  /* Center the icon container */
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Override default .icon-box .icon styles if needed */
  background: transparent;
}

.services .icon-box .icon i {
  font-size: 36px;
  position: relative;
  z-index: 1;
  transition: 0.3s;
}

.services .icon-box .icon svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: 0.3s;
}

.services .icon-box .icon svg path {
  fill: rgba(255, 255, 255, 0.05);
  /* Subtle background for dark theme */
  transition: 0.3s;
  stroke: none;
}

/* Hover Effects - Matching Original Logic but Adapted */
.services .icon-box:hover .icon i {
  color: #fff !important;
  fill: #47aeff !important;
  /* Force white on hover */
}

/* Blue Class */
.services .iconbox-blue i {
  color: #47aeff;
}

.services .iconbox-blue:hover .icon svg path {
  fill: #47aeff;
}

/* Orange Class */
.services .iconbox-orange i {
  color: #ffa76e;
}

.services .iconbox-orange:hover .icon svg path {
  fill: #ffa76e;
}

/* Pink Class */
.services .iconbox-pink i {
  color: #e80368;
}

.services .iconbox-pink:hover .icon svg path {
  fill: #e80368;
}

/* Ensure title and text alignment if not already handled */
.services .icon-box h4 {
  margin-top: 10px;
}

/* =========================================
   Tech Section (Restored & Modernized)
   ========================================= */
#tech {
  /*background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../img/technology.jpg") fixed center center;*/
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url("../img/geometric_o.webp") fixed center center;
  background-size: cover;
  padding: 80px 0;
}

#tech .section-title h2 {
  color: #fff;
}

#tech .icon-box {
  background: rgba(255, 255, 255, 0.1);
  /* Glass effect */
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px;
  transition: 0.3s;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tech .icon-box:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  border-color: var(--accent);
}

#tech .title {
  color: #fff;
  font-weight: 600;
  margin: 0;
  font-size: 18px;
  text-align: center;
}