/* 
   Visualissa.com - Premium Dark Tech Design System
   Vanilla CSS with CSS Grid, Flexbox, Custom Glows and Glassmorphism
*/

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

/* --- CUSTOM VARIABLES --- */
:root {
  --font-heading: 'Orbitron', sans-serif;
  --font-subheading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Color Palette */
  --bg-primary: #030406;      /* Deep dark tech black */
  --bg-secondary: #06080d;    /* Navy-tinted dark grey for sections */
  --bg-card: rgba(4, 7, 14, 0.35); /* Translucent glassmorphic base */
  
  --color-orange: #ff5500;    /* Visualissa signature orange */
  --color-orange-glow: rgba(255, 85, 0, 0.4);
  --color-orange-hover: #ff7733;
  --color-blue: #00a2ff;      /* Tech blue for engineering */
  --color-blue-glow: rgba(0, 162, 255, 0.4);
  
  --text-white: #ffffff;
  --text-silver: #c5cbd8;
  --text-muted: #64748b;
  
  --border-glass: rgba(255, 255, 255, 0.1);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* --- BASE STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-silver);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-subheading);
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-orange);
}

/* --- TECH DECORATIONS (BACKGROUND MESH & GLOWS) --- */
.tech-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

.ambient-glow-orange {
  position: absolute;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255, 85, 0, 0.04) 0%, transparent 70%);
  top: -10vw;
  right: -10vw;
  pointer-events: none;
  z-index: 1;
  filter: blur(80px);
}

.ambient-glow-blue {
  position: absolute;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 162, 255, 0.03) 0%, transparent 70%);
  bottom: 10%;
  left: -20vw;
  pointer-events: none;
  z-index: 1;
  filter: blur(100px);
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
  position: relative;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #fff 40%, #ff6a00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-subheading);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-orange) 0%, #ff6a00 100%);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(255, 85, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 85, 0, 0.55);
  background: linear-gradient(135deg, #ff6611 0%, #ff8811 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* WhatsApp Green Button Styling */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--text-white);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ee070 0%, #169c8c 100%);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
  transform: translateY(-3px);
}

/* WhatsApp Green Pulse Animation for main CTA */
.btn-pulse {
  animation: pulse-glow-btn 2.5s infinite;
}

@keyframes pulse-glow-btn {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- TOP ANNOUNCEMENT BAR (ELEGANT DARK INTEGRATION) --- */
.announcement-bar {
  background: #06080d;
  color: #eab308; /* yellow-500 */
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(234, 179, 8, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
}

.announcement-bar span {
  display: inline-block;
  animation: pulse-alert 2s infinite;
}

@keyframes pulse-alert {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* --- HEADER / NAVBAR --- */
.header {
  position: fixed;
  top: 38px; /* Offset for announcement bar */
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(3, 4, 6, 0.45);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(3, 4, 6, 0.85);
  border-color: rgba(255, 255, 255, 0.05);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-horizontal {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-subheading);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--text-silver);
  position: relative;
  padding: 8px 0;
}

/* Underline link hover animation expanding from center */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-orange);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta .btn {
  padding: 11px 26px;
  font-size: 13.5px;
  border-radius: 30px; /* Pill shape header button */
  background: linear-gradient(135deg, var(--color-orange) 0%, #ff6a00 100%);
  box-shadow: 0 4px 15px var(--color-orange-glow);
}

.nav-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 85, 0, 0.65);
}

/* --- HERO FULLSCREEN SECTION (FIEL A LA REFERENCIA) --- */
.hero-fullscreen {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 0 32px;
  z-index: 5;
}

/* --- STATIC FULL-BLEED BACKGROUND --- */
.hero-static-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures aspect ratio is maintained, NO stretching */
}

/* --- OVERLAY GRADIENTS FOR READABILITY --- */
.hero-overlay-shadow {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right, 
    rgba(3, 4, 6, 0.95) 0%, 
    rgba(3, 4, 6, 0.8) 35%, 
    rgba(3, 4, 6, 0.25) 65%, 
    transparent 85%
  );
  pointer-events: none;
}

/* --- HERO FLOATING CONTENT CONTAINER --- */
.hero-content-container {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.hero-main-content {
  max-width: 700px; /* Expanded for longer single-line titles */
  margin-top: auto;
  margin-bottom: auto;
  padding-bottom: 20px;
  padding-left: 10px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 56px); /* Balanced size to fit line */
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  color: var(--text-white);
  white-space: normal; /* Wrap naturally if screen is too narrow */
}

.hero-desc {
  font-family: var(--font-subheading);
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--text-silver);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.5;
  font-weight: 400;
}

/* --- FLOATING SERVICES CARDS (BOTTOM OF HERO) --- */
.hero-services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: auto;
  padding-bottom: 10px;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px 28px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, transparent 100%);
  pointer-events: none;
}

/* Glassmorphic border colors and neon shadows */
#service-card-renders, #service-card-tours {
  border: 1px solid rgba(255, 85, 0, 0.22);
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.55),
    inset 0 0 16px rgba(255, 85, 0, 0.12);
}

#service-card-engineering {
  border: 1px solid rgba(0, 162, 255, 0.22);
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.55),
    inset 0 0 16px rgba(0, 162, 255, 0.12);
}

/* Hover effects with translation and glowing neons */
.card-glow-orange:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 85, 0, 0.55);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.7),
    inset 0 0 25px rgba(255, 85, 0, 0.25),
    0 0 35px rgba(255, 85, 0, 0.25);
}

.card-glow-blue:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 162, 255, 0.55);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.7),
    inset 0 0 25px rgba(0, 162, 255, 0.25),
    0 0 35px rgba(0, 162, 255, 0.25);
}

.service-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
  border: 1px solid transparent;
}

.icon-orange {
  background: rgba(255, 85, 0, 0.08);
  border-color: rgba(255, 85, 0, 0.2);
  color: var(--color-orange);
}

.icon-blue {
  background: rgba(0, 162, 255, 0.08);
  border-color: rgba(0, 162, 255, 0.2);
  color: var(--color-blue);
}

.service-card h3 {
  font-family: var(--font-subheading);
  font-size: 17.5px;
  margin-bottom: 10px;
  color: var(--text-white);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.service-card p {
  color: #a3a8b6;
  font-size: 13.5px;
  line-height: 1.5;
}

/* --- ANIMATIONS ON PAGE LOAD --- */
.animate-fade-in-slide {
  opacity: 0;
  transform: translateY(30px);
  animation: fade-in-up-anim 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-slide-delayed {
  opacity: 0;
  transform: translateY(30px);
  animation: fade-in-up-anim 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes fade-in-up-anim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-fullscreen {
    height: auto;
    padding-bottom: 60px;
  }
  
  .hero-static-bg {
    position: absolute;
    height: 100%;
  }
  
  .hero-overlay-shadow {
    background: linear-gradient(
      to bottom, 
      rgba(3, 4, 6, 0.95) 0%, 
      rgba(3, 4, 6, 0.85) 60%, 
      rgba(3, 4, 6, 0.6) 100%
    );
  }
  
  .hero-content-container {
    gap: 40px;
  }
  
  .hero-main-content {
    margin-top: 60px;
    text-align: center;
    max-width: 100%;
    padding: 0;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-services-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }
  
  .nav-menu {
    display: none;
  }
  
  .announcement-bar {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .header {
    top: 32px;
  }
  
  .hero-fullscreen {
    padding-top: 100px;
  }
  
  .hero-services-cards {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
}
