/* Base Styles */
:root {
  --background: #0a0a0a;
  --background-secondary: #121212;
  --text: #e1e1e1;
  --text-secondary: #9e9e9e;
  --primary: #0ff;
  --primary-glow: rgba(0, 255, 255, 0.7);
  --secondary: #f0f;
  --secondary-glow: rgba(255, 0, 255, 0.7);
  --accent: #651fff;
  --border: #333;
  --card-bg: rgba(30, 30, 30, 0.6);
}

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

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

h1 {
  font-size: 4.8rem;
}

h2 {
  font-size: 3.6rem;
}

h3 {
  font-size: 2.4rem;
}

p {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
  font-weight: 900;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Neon Elements */
.neon-text {
  color: var(--primary);
  text-shadow: 0 0 5px var(--primary-glow),
               0 0 10px var(--primary-glow),
               0 0 20px var(--primary-glow);
}

.accent {
  color: var(--secondary);
  text-shadow: 0 0 5px var(--secondary-glow),
               0 0 10px var(--secondary-glow),
               0 0 20px var(--secondary-glow);
}

.highlight {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.neon-border {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.neon-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
  z-index: -1;
  border-radius: 10px;
  animation: border-glow 3s linear infinite;
}

@keyframes border-glow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 2.8rem;
  border-radius: 50px;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
  margin: 1rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  z-index: -1;
  transition: all 0.5s ease;
  transform: scaleX(0);
  transform-origin: left;
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn-primary {
  background-color: var(--primary);
  color: #000;
  border: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--text);
  border: 2px solid var(--primary);
}

.btn-sm {
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
}

/* Navigation */
.navbar {
  padding: 2rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
}

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

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
}

.logo-image {
  max-height: 6rem;
  width: auto;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 3rem;
}

.nav-links a {
  font-size: 1.6rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

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

.btn-contact {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  color: #000 !important;
  font-weight: 700;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 16rem 0 10rem;
  background: radial-gradient(circle at center, #1a1a1a 0%, var(--background) 70%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><rect fill="rgba(0,255,255,0.03)" width="1" height="1"/></svg>') repeat;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
}

.hero-subtitle {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
}

/* Glitch Effect */
.glitch {
  position: relative;
  animation: glitch 5s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch::before {
  color: var(--primary);
  z-index: -1;
  animation: glitch-effect 3s infinite;
}

.glitch::after {
  color: var(--secondary);
  z-index: -2;
  animation: glitch-effect 2s infinite reverse;
}

@keyframes glitch-effect {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-3px, 3px);
  }
  40% {
    transform: translate(-3px, -3px);
  }
  60% {
    transform: translate(3px, 3px);
  }
  80% {
    transform: translate(3px, -3px);
  }
  100% {
    transform: translate(0);
  }
}

/* Services Section */
.services {
  padding: 10rem 0;
  background-color: var(--background-secondary);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-bottom: 6rem;
}

.service-card {
  background-color: var(--card-bg);
  padding: 3rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  backdrop-filter: blur(5px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

.services-cta {
  background: linear-gradient(135deg, rgba(0, 0, 20, 0.8), rgba(30, 0, 40, 0.8));
  padding: 5rem;
  border-radius: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.services-cta h3 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.services-cta p {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

/* Portfolio Section */
.portfolio {
  padding: 10rem 0;
  background-color: var(--background);
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 1rem 2rem;
  margin: 0 1rem 1rem;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--text);
}

.filter-btn:hover::after,
.filter-btn.active::after {
  width: 100%;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3rem;
}

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-image img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  text-align: left;
}

.portfolio-info h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.portfolio-info p {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Featured Project */
.featured {
  padding: 10rem 0;
  background-color: var(--background-secondary);
}

.featured-project {
  display: flex;
  align-items: center;
  gap: 5rem;
  position: relative;
}

.featured-content {
  flex: 1;
}

.featured-image {
  flex: 1.5;
}

.featured-list {
  list-style: none;
  margin-bottom: 3rem;
}

.featured-list li {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.featured-list li i {
  color: var(--primary);
  margin-right: 1rem;
}

.pulmonar-preview {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact {
  padding: 10rem 0;
  background-color: var(--background);
  position: relative;
}

.contact-container {
  display: flex;
  gap: 5rem;
}

.contact-info,
.contact-form {
  flex: 1;
}

.info-item {
  display: flex;
  margin-bottom: 4rem;
}

.info-item i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-right: 2rem;
  width: 5rem;
  height: 5rem;
  background-color: rgba(0, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--primary-glow);
}

.info-item h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.6rem;
  border-radius: 5px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.contact-form button {
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--background-secondary);
  padding-top: 8rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  flex: 1;
}

.footer-logo .neon-text {
  font-size: 3rem;
  margin-bottom: 2rem;
  display: inline-block;
}

.footer-logo-image {
  max-height: 8rem;
  margin-bottom: 1rem;
}

.footer-links {
  flex: 1;
}

.footer-links h4,
.footer-social h4 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  font-size: 1.6rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social {
  flex: 1;
}

.social-icons {
  display: flex;
  gap: 2rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
}

.footer-bottom {
  padding: 2rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin: 0;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 6rem;
  height: 6rem;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Media Queries */
@media (max-width: 992px) {
  html {
    font-size: 58%;
  }
  
  .hero .container,
  .featured-project {
    flex-direction: column;
  }
  
  .hero-image {
    margin-top: 4rem;
  }
  
  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }
  
  .nav-links {
    position: fixed;
    top: 8rem;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(10, 10, 10, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .nav-links.active {
    height: calc(100vh - 8rem);
  }
  
  .nav-links li {
    margin: 2rem 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .footer-content {
    flex-direction: column;
    gap: 4rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 50%;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .hero {
    padding: 12rem 0 8rem;
  }
}
