/*
Theme Name: Alvanet
Theme URI: https://alvanet.com.ar
Author: Alvanet
Author URI: https://alvanet.com.ar
Description: One-page portfolio theme based on the Kitzu layout (lightbox sections, corporate blue scheme).
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alvanet
Tags: one-column, custom-menu, featured-images
*/

/* Hero name styled like the logo: white base, blue uppercase accent, gold dot */
.home-area .home-name {
  letter-spacing: 2px;
}

.home-area .home-name span {
  color: #004AAB;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}

.home-area .home-name::after {
  content: '.';
  color: #E8B830;
}

/* Floating WhatsApp bubble */
#whatsapp-bubble {
  align-items: center;
  background-color: #25D366;
  border-radius: 50%;
  bottom: 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  display: flex;
  height: 56px;
  justify-content: center;
  position: fixed;
  right: 22px;
  transition: transform 0.15s ease-in-out;
  width: 56px;
  z-index: 100000;
}

#whatsapp-bubble:hover {
  transform: scale(1.08);
}

#whatsapp-bubble .icon {
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

/* Hero background slider (crossfade + Ken Burns) */
.home-area.hero-slider {
  overflow: hidden;
}

.hero-slide {
  -webkit-animation: heroZoom 26s ease-in-out infinite alternate;
  animation: heroZoom 26s ease-in-out infinite alternate;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  will-change: opacity, transform;
  z-index: 0;
}

.hero-slide::after {
  background-color: rgba(0, 0, 0, 0.4);
  content: '';
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.hero-slide-1 {
  -webkit-animation: fadeA 18s linear infinite, heroZoom 26s ease-in-out infinite alternate;
  animation: fadeA 18s linear infinite, heroZoom 26s ease-in-out infinite alternate;
}

.hero-slide-2 {
  -webkit-animation: fadeB 18s linear infinite, heroZoom 26s ease-in-out infinite alternate;
  animation: fadeB 18s linear infinite, heroZoom 26s ease-in-out infinite alternate;
  -webkit-animation-delay: 0s, -13s;
  animation-delay: 0s, -13s;
}

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

@media (max-width: 767.98px) {
  .hero-slide {
    background-position: 72% center;
  }
}

.home-area .fixed-wrapper {
  z-index: 2;
}

@-webkit-keyframes fadeA {
  0% { opacity: 1; }
  42% { opacity: 1; }
  50% { opacity: 0; }
  92% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeA {
  0% { opacity: 1; }
  42% { opacity: 1; }
  50% { opacity: 0; }
  92% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeB {
  0% { opacity: 0; }
  42% { opacity: 0; }
  50% { opacity: 1; }
  92% { opacity: 1; }
  100% { opacity: 0; }
}

@-webkit-keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide-1,
  .hero-slide-2 {
    animation: none;
  }

  .hero-slide-2 {
    display: none;
  }
}

/* Menu item icons */
.navbar .navbar-nav .nav-link .menu-icon {
  display: inline-block;
  height: 16px;
  line-height: 16px;
  margin-right: 8px;
  text-align: center;
  vertical-align: -3px;
  width: 18px;
}

.navbar .nav-link:focus .menu-icon,
.navbar .nav-link:hover .menu-icon,
.navbar .nav-link.active .menu-icon {
  color: #fff;
}

/* Hero wordmark matching logo typography */
.home-area .home-name {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  letter-spacing: 0;
}

/* Technologies grid (skills section) */
.tech-grid-section {
  margin-top: 55px;
}

.tech-grid-section .tech-heading {
  color: #f0f0f0;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

.tech-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.tech-tile {
  align-items: center;
  background-color: #161616;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  padding: 22px 8px;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.tech-tile img {
  height: 42px;
  opacity: 0.92;
  transition: all 0.2s ease-in-out;
  width: 42px;
}

.tech-tile span {
  color: #9f9f9f;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.tech-tile:hover {
  border-color: rgba(74, 128, 221, 0.55);
  box-shadow: 0 8px 24px rgba(74, 128, 221, 0.15);
  transform: translateY(-4px);
}

.tech-tile:hover img {
  filter: drop-shadow(0 0 10px rgba(74, 128, 221, 0.7));
  opacity: 1;
}

/* Guard: no horizontal scroll on small screens */
html {
  overflow-x: hidden;
}

body {
  max-width: 100vw;
}

@media (max-width: 767.98px) {
  .home-area .home-headline {
    font-size: 22px;
  }
}

@media (max-width: 575.98px) {
  .home-area .home-name {
    font-size: 38px;
  }

  .home-area .home-headline {
    font-size: 19px;
  }
}

/* Navbar brand: bigger logo with soft glow */
.navbar .navbar-brand img {
  width: 150px;
  -webkit-animation: logoGlow 3.5s ease-in-out infinite;
  animation: logoGlow 3.5s ease-in-out infinite;
}

@-webkit-keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(74, 128, 221, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(74, 128, 221, 0.8)) brightness(1.08);
  }
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(74, 128, 221, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(74, 128, 221, 0.8)) brightness(1.08);
  }
}

@media (max-width: 767.98px) {
  .navbar .navbar-brand img {
    width: 118px;
  }
}

/* Portfolio review modal (lity inline) */
.portfolio-reviews {
  display: none;
}

.lity-container .portfolio-review {
  background-color: #161616;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
  max-width: 520px;
  width: 100%;
}

.portfolio-review .review-shot {
  display: block;
  height: auto;
  width: 100%;
}

.portfolio-review .review-body {
  padding: 26px 30px 30px;
  text-align: left;
}

.portfolio-review .review-title {
  color: #f0f0f0;
  font-size: 22px;
  margin-bottom: 10px;
}

.portfolio-review .review-text {
  color: #9f9f9f;
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 20px;
}

/* Keep social icons visible on mobile, stacked bottom-left above the WhatsApp bubble */
@media (max-width: 767.98px) {
  .home-area .fixed-wrapper {
    display: block;
    margin: 0 22px;
  }

  .home-area .fixed-wrapper .block-left {
    display: none;
  }

  .home-area .fixed-wrapper .block-right {
    bottom: 96px;
    left: 0;
    max-width: 40px;
    right: auto;
  }

  #whatsapp-bubble {
    bottom: 22px;
    left: 22px;
    right: auto;
  }
}
