/* Contact Section Enhancements - Redesigned */
.contact-info .box {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent background */
    border: 1px solid rgba(0, 0, 0, 0); /* Truly transparent default border */
    border-radius: 15px;
    backdrop-filter: blur(8px); /* Glassmorphism blur */
    box-shadow: none; /* No default shadow */
    transition: none; /* Removed transition for continuous animation */
    padding: 20px; /* Reduced padding */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    text-align: center; /* Ensure text is centered */
    margin-bottom: 20px; /* Space between boxes on small screens */
    animation: glowing-border 6s infinite linear;
}

/* .contact-info .box:hover {
    transform: translateY(-10px) scale(1.02); /* Subtle lift and slight enlarge */
    border-color: #00BFFF; /* Glowing border effect */
    box-shadow: 0 15px 45px rgba(0, 255, 255, 0.6); /* More intense glowing shadow */
} */

@keyframes glowing-border {
    0% { border-color: rgba(0, 0, 0, 0); box-shadow: none; }
    0.1% { border-color: #00FFFF; box-shadow: 0 0 120px rgba(0, 255, 255, 1), 0 0 60px rgba(0, 255, 255, 0.9); }
    5% { border-color: #00FFFF; box-shadow: 0 0 120px rgba(0, 255, 255, 1), 0 0 60px rgba(0, 255, 255, 0.9); }
    5.1% { border-color: rgba(0, 0, 0, 0); box-shadow: none; }
    100% { border-color: rgba(0, 0, 0, 0); box-shadow: none; }
}

.contact-info .box:nth-child(1) {
    animation-delay: 0s;
}

.contact-info .box:nth-child(2) {
    animation-delay: 2s;
}

.contact-info .box:nth-child(3) {
    animation-delay: 4s;
}

.contact-info .box .icon {
    font-size: 0.4em; /* Smaller icon size */
    color: #00BFFF; /* Neon blue color for icons */
    margin-bottom: 10px; /* Reduced margin */
    transition: none; /* Removed transition for continuous animation */
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7); /* Subtle icon glow */
}

/* .contact-info .box:hover .icon {
    transform: rotateY(15deg) scale(1.1); /* Subtle 3D and growth effect on hover */
    text-shadow: 0 0 15px rgba(0, 255, 255, 1), 0 0 25px rgba(0, 255, 255, 0.8); /* More intense glow */
} */

.contact-info .box h3 {
    font-size: 20px; /* Smaller heading size */
    color: #71C9CE; /* Light blue color for headings */
    margin-bottom: 8px; /* Reduced margin */
    font-weight: 600;
}

.contact-info .box p {
    font-size: 14px; /* Smaller paragraph size */
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.4;
}

.contact-info .box p a {
    color: #00BFFF; /* Ensure links are neon blue */
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info .box p a:hover {
    color: #71C9CE; /* Slightly different blue on hover */
    text-decoration: underline;
}

/* Quick Message Box Specific Styles */
.contact-section .col-md-6.ftco-animate > .box {
    background: rgba(255, 255, 255, 0.08); /* Consistent with info boxes */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    padding: 20px; /* Reduced padding */
    height: auto; /* Allow height to adjust based on content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease-in-out;
    max-width: 400px; /* Set a maximum width for the box */
    margin: 0 auto; /* Center the box */
}

.contact-section .col-md-6.ftco-animate > .box:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #00BFFF;
    box-shadow: 0 15px 45px rgba(0, 255, 255, 0.6);
}

.contact-section .col-md-6.ftco-animate > .box h3 {
    color: #71C9CE;
}

.contact-section .col-md-6.ftco-animate > .box p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-section .btn.btn-primary {
    background: linear-gradient(45deg, #00BFFF, #71C9CE); /* Neon gradient */
    color: #000; /* Black text for contrast */
    padding: 10px 25px; /* Reduced padding */
    border-radius: 50px;
    font-weight: bold;
    margin-top: 20px; /* Reduced margin */
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
    border: none; /* Remove default border */
}

.contact-section .btn.btn-primary:hover {
    transform: scale(1.05); /* Slightly enlarge button */
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.8); /* More intense shadow on hover */
    color: #fff; /* White text on hover */
    background: linear-gradient(45deg, #71C9CE, #00BFFF); /* Invert gradient on hover */
}

/* Responsive adjustments for Contact Section */
@media (max-width: 991.98px) {
    .contact-section .col-md-6 {
        margin-bottom: 20px; /* Add space between columns on smaller screens */
    }
}

@media (max-width: 767.98px) {
    .contact-info .box {
        padding: 15px; /* Further reduced padding on very small screens */
        margin: 0 auto 15px auto; /* Center boxes and add bottom margin */
        max-width: 300px; /* Further constrain width on very small screens */
    }
    .contact-info .box .icon {
        font-size: 2em; /* Smaller icons on very small screens */
    }
    .contact-info .box h3 {
        font-size: 18px; /* Smaller headings on very small screens */
    }
    .contact-info .box p {
        font-size: 13px; /* Smaller text on very small screens */
    }
    .contact-section .btn.btn-primary {
        padding: 8px 20px; /* Smaller button padding on very small screens */
        font-size: 0.9em; /* Smaller button font size on very small screens */
    }
}

/* Ensure overall contact section spacing is maintained */
.contact-section {
    padding: 5em 0; /* Reduced overall section padding */
}

.contact-section h2.mb-4 {
    margin-bottom: 1.5rem !important; /* Reduced spacing for section titles */
}

/* SVG and Particle Animations for Contact Card */
#svg-global {
  zoom: 1.2;
  overflow: visible;
}

@keyframes fade-particles {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes floatUp {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(-40px);
    opacity: 0;
  }
}

#particles {
  animation: fade-particles 5s infinite alternate;
}
.particle {
  animation: floatUp linear infinite;
}

.p1 {
  animation-duration: 2.2s;
  animation-delay: 0s;
}
.p2 {
  animation-duration: 2.5s;
  animation-delay: 0.3s;
}
.p3 {
  animation-duration: 2s;
  animation-delay: 0.6s;
}
.p4 {
  animation-duration: 2.8s;
  animation-delay: 0.2s;
}
.p5 {
  animation-duration: 2.3s;
  animation-delay: 0.4s;
}
.p6 {
  animation-duration: 3s;
  animation-delay: 0.1s;
}
.p7 {
  animation-duration: 2.1s;
  animation-delay: 0.5s;
}
.p8 {
  animation-duration: 2.6s;
  animation-delay: 0.2s;
}
.p9 {
  animation-duration: 2.4s;
  animation-delay: 0.3s;
}

@keyframes bounce-lines {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

#line-v1,
#line-v2,
#node-server,
#panel-rigth,
#reflectores,
#particles {
  animation: bounce-lines 3s ease-in-out infinite alternate;
}
#line-v2 {
  animation-delay: 0.2s;
}

#node-server,
#panel-rigth,
#reflectores,
#particles {
  animation-delay: 0.4s;
} 