/**
 * Glassmorphism Theme - Avanzando Solutions
 * https://avanzandosolutions.com
 */

/* Self-hosted Poppins for logo */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}

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

:root {
  --primary: #0f172a;
  --accent: #f97316;
  --accent-light: #fb923c;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font-system);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  min-height: 100vh;
  color: var(--text-light);
  overflow-x: hidden;
}

/* Background Effects */
.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/bg-tech.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

@media (max-width: 768px) {
  .bg-image {
    background: url('../images/bg-tech-mobile.jpg');
  }
}

.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: #3b82f6;
  bottom: -100px;
  left: -100px;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: #8b5cf6;
  top: 50%;
  left: 50%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.1); }
  50% { transform: translate(-30px, 30px) scale(0.9); }
  75% { transform: translate(-50px, -30px) scale(1.05); }
}

/* Glass Effect */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-light);
}

.nav-brand img {
  height: 40px;
}

.nav-brand span {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.98);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.5rem;
  padding: 16px;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
}

/* Main Content */
main {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-light) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  padding: 16px 32px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.3);
}

/* Sections */
.section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 40px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
}

/* Results - Featured Video Layout */
.results-featured {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.featured-video {
  position: relative;
  overflow: hidden;
  max-width: 640px;
  width: 100%;
}

.featured-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

.media-disclaimer {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 50%, transparent 100%);
}

.featured-overlay h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent-light);
}

.featured-overlay p {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
}

.results-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.result-card {
  padding: 32px;
  transition: all 0.4s ease;
}

.result-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
}

.result-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent-light);
}

.result-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .featured-video {
    background: none;
    border: none;
    border-radius: 0;
  }
  
  .featured-video video {
    border-radius: 24px 24px 0 0;
  }
  
  .featured-overlay {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 0 0 24px 24px;
    padding: 24px;
  }
  
  .featured-overlay h3 {
    font-size: 1.25rem;
  }
  
  .results-grid-bottom {
    grid-template-columns: 1fr;
  }
  
  .result-card {
    padding: 24px;
  }
}
.service-card.has-media {
  padding: 0;
  overflow: hidden;
}

.service-card .card-media {
  width: 100%;
  overflow: hidden;
}

.service-card .card-media img,
.service-card .card-media video {
  width: 100%;
  height: auto;
  display: block;
}

.service-card .card-content {
  padding: 32px;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent-light);
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Industries Grid */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.industry-card {
  padding: 48px 32px;
  text-align: center;
  transition: all 0.4s ease;
}

.industry-card:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.15);
}

.industry-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent-light);
}

.industry-card p {
  color: var(--text-muted);
}

/* Contact CTA */
.contact-cta {
  max-width: 500px;
  margin: 0 auto;
  padding: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-message {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.6;
}

.contact-cta .btn-primary {
  font-size: 1.1rem;
  padding: 18px 36px;
}

.contact-reassurance {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.contact-alt {
  margin-top: 24px;
  color: var(--text-muted);
}

.contact-alt a {
  color: var(--accent-light);
  text-decoration: none;
}

.contact-alt a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  padding: 48px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.footer-address h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.footer-address p {
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Error Pages */
.error-container {
  text-align: center;
  max-width: 500px;
}

.error-code {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--text-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.error-message {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    padding: 12px 20px;
  }
  .nav-brand span {
    font-size: 1.15rem;
  }
  .nav-brand img {
    height: 36px;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .industries-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
