/* css/style.css - Dark Terminal Theme */

/* Variables personalizadas - Dark Terminal */
:root {
  --primary-cyan: #00D9FF;
  --primary-cyan-hover: #00B8E6;
  --primary-cyan-light: #B8F2FF;
  --secondary-navy: #1A1A2E;
  --accent-green: #10B981;
  --accent-green-hover: #059669;
  --background-dark: #0F0F23;
  --background-card: #16213E;
  --background-light: #1A1A2E;
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-cyan: #00D9FF;
  --border-dark: #2A2A3E;
  --border-cyan: #00D9FF;
  --terminal-green: #00FF88;
}

/* Font import - Monospace for terminal feel */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* Base styles */
body {
  font-family: 'Inter', 'JetBrains Mono', monospace;
  line-height: 1.6;
  background: var(--background-dark);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
}

/* Terminal-style background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 1px 1px, rgba(0, 217, 255, 0.05) 1px, transparent 0);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -1;
}

/* Override Tailwind backgrounds for dark theme */
.bg-gray-50 {
  background: var(--background-dark) !important;
}

.bg-white {
  background: var(--background-card) !important;
}

.text-gray-900 {
  color: var(--text-primary) !important;
}

.text-gray-600 {
  color: var(--text-secondary) !important;
}

.text-gray-700 {
  color: var(--text-secondary) !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navigation active states */
.nav-link.active,
.mobile-nav-link.active {
  background: linear-gradient(135deg, var(--primary-cyan), var(--accent-green));
  color: var(--background-dark);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
  font-weight: 600;
}

.nav-link:hover,
.mobile-nav-link:hover {
  background: rgba(0, 217, 255, 0.1);
  color: var(--primary-cyan);
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-cyan), var(--accent-green));
  color: var(--background-dark);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 20px rgba(0, 217, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid var(--primary-cyan);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 30px rgba(0, 217, 255, 0.4),
    0 0 20px rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, var(--primary-cyan-hover), var(--accent-green-hover));
}

/* Simulator specific styles */
.simulator-container {
  background: linear-gradient(135deg, var(--secondary-navy) 0%, var(--background-dark) 100%);
  min-height: 500px;
  border-radius: 0.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(0, 217, 255, 0.1);
  border: 2px solid var(--border-cyan);
}

.simulator-screen {
  background: var(--background-dark);
  color: var(--terminal-green);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  padding: 1.5rem;
  border-radius: 0.5rem;
  min-height: 300px;
  position: relative;
  border: 1px solid var(--primary-cyan);
  box-shadow: 
    inset 0 0 20px rgba(0, 217, 255, 0.1),
    inset 0 0 5px rgba(0, 255, 136, 0.2);
  font-size: 0.875rem;
}

.simulator-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    transparent 98%,
    rgba(0, 255, 136, 0.03) 100%
  );
  background-size: 100% 2px;
  pointer-events: none;
  animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(2px); }
}

.typing-effect {
  overflow: hidden;
  border-right: 2px solid var(--terminal-green);
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--terminal-green); }
}

/* Loading animation with terminal colors */
.loading-dots {
  display: inline-flex;
  gap: 0.25rem;
}

.loading-dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary-cyan);
  animation: loading-pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px var(--primary-cyan);
}

.loading-dots span:nth-child(2) {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation-delay: 0.1s;
}

.loading-dots span:nth-child(3) {
  background: var(--terminal-green);
  box-shadow: 0 0 10px var(--terminal-green);
  animation-delay: 0.2s;
}

@keyframes loading-pulse {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Card styles with terminal effects */
.card {
  background: var(--background-card);
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid var(--border-dark);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
  transition: left 0.5s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-cyan);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 217, 255, 0.2);
  background: linear-gradient(135deg, var(--background-card), rgba(0, 217, 255, 0.05));
}

/* Service icons with terminal glow */
.service-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary-cyan), var(--accent-green));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem auto;
  box-shadow: 
    0 0 30px rgba(0, 217, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  border: 1px solid var(--primary-cyan);
  color: var(--background-dark);
}

.service-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--accent-green));
  border-radius: 0.75rem;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .service-icon::after {
  opacity: 0.5;
}

/* Header improvements */
header {
  background: rgba(15, 15, 35, 0.95) !important;
  border-bottom: 1px solid rgba(0, 217, 255, 0.3) !important;
  backdrop-filter: blur(20px);
}

/* Text color overrides for dark theme */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary) !important;
}

p {
  color: var(--text-secondary) !important;
}

/* Special background sections */
.bg-blue-50 {
  background: rgba(0, 217, 255, 0.05) !important;
  border: 1px solid rgba(0, 217, 255, 0.2);
  backdrop-filter: blur(10px);
}

/* Button variants */
.bg-gray-200 {
  background: var(--background-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-dark);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.bg-gray-200:hover {
  background: rgba(0, 217, 255, 0.1) !important;
  border-color: var(--primary-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.border-blue-600 {
  border-color: var(--primary-cyan) !important;
}

.text-blue-600 {
  color: var(--primary-cyan) !important;
}

.hover\:bg-blue-50:hover {
  background: rgba(0, 217, 255, 0.1) !important;
}

/* Stats numbers with glitch effect */
.text-blue-600 {
  color: var(--primary-cyan) !important;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-shadow: 
    0 0 10px var(--primary-cyan),
    0 0 20px var(--primary-cyan),
    0 0 30px var(--primary-cyan);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { 
    text-shadow: 
      0 0 10px var(--primary-cyan),
      0 0 20px var(--primary-cyan),
      0 0 30px var(--primary-cyan);
  }
  to { 
    text-shadow: 
      0 0 5px var(--primary-cyan),
      0 0 10px var(--primary-cyan),
      0 0 15px var(--primary-cyan);
  }
}

/* Responsive utilities */
@media (max-width: 768px) {
  .simulator-container {
    min-height: 400px;
  }
  
  .simulator-screen {
    min-height: 250px;
    padding: 1rem;
    font-size: 0.75rem;
  }
  
  .card {
    padding: 1.5rem;
  }
}

/* Custom scrollbar with terminal theme */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-cyan), var(--accent-green));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-cyan);
}

/* Terminal-style focus effects */
button:focus,
a:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-cyan);
}

/* Subtle animations */
* {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Footer adjustments */
footer {
  background: rgba(15, 15, 35, 0.9) !important;
  border-top: 1px solid rgba(0, 217, 255, 0.3) !important;
  backdrop-filter: blur(20px);
}

/* Terminal cursor effect for interactive elements */
.terminal-cursor::after {
  content: '█';
  color: var(--terminal-green);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Code/monospace text styling */
code, pre, .monospace {
  font-family: 'JetBrains Mono', monospace;
  color: var(--primary-cyan);
  background: rgba(0, 217, 255, 0.1);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(0, 217, 255, 0.2);
}

/* Contact Page Styles */
.contact-link {
  color: var(--primary-cyan);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow: 
    0 0 8px var(--primary-cyan),
    0 0 12px var(--primary-cyan);
}

.contact-link:hover {
  color: var(--accent-green);
  text-shadow: 
    0 0 12px var(--accent-green),
    0 0 18px var(--accent-green),
    0 0 24px var(--accent-green);
  transform: translateY(-1px);
}

.contact-text-highlight {
  color: var(--primary-cyan);
  text-shadow: 
    0 0 6px var(--primary-cyan),
    0 0 10px var(--primary-cyan);
}

/* Tech Stack Styles */
.tech-tag {
  background: var(--background-dark);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: var(--primary-cyan);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-shadow: 
    0 0 10px var(--primary-cyan),
    0 0 15px var(--primary-cyan);
}

.tech-tag:hover {
  background: var(--background-dark);
  border-color: var(--accent-green);
  color: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 217, 255, 0.4);
  text-shadow: 
    0 0 15px var(--accent-green),
    0 0 20px var(--accent-green),
    0 0 25px var(--accent-green);
}

/* Tech Carousel Styles */
.tech-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.tech-slider {
  transform: translateX(0%);
}

.tech-category {
  padding: 2rem 1.5rem;
  min-height: 280px;
}

.carousel-dot {
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0 0.25rem;
}

.carousel-dot.active {
  background-color: var(--primary-cyan) !important;
  transform: scale(1.4);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

.carousel-dot:hover {
  background-color: var(--primary-cyan) !important;
  opacity: 0.8;
  transform: scale(1.2);
}

/* Cloud Provider Styles */
.cloud-provider {
  padding: 1rem;
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  background: var(--background-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cloud-provider span {
  color: var(--primary-cyan);
  font-weight: 600;
  text-shadow: 
    0 0 8px var(--primary-cyan),
    0 0 12px var(--primary-cyan);
}

.cloud-provider:hover {
  background: var(--background-dark);
  border-color: var(--accent-green);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.3);
}

.cloud-provider:hover span {
  color: var(--accent-green);
  text-shadow: 
    0 0 10px var(--accent-green),
    0 0 15px var(--accent-green),
    0 0 20px var(--accent-green);
}

/* Responsive adjustments for tech section */
@media (max-width: 768px) {
  .tech-tag {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    text-shadow: 
      0 0 8px var(--primary-cyan),
      0 0 12px var(--primary-cyan);
  }
  
  .tech-category {
    padding: 1.5rem 1rem;
    min-height: 240px;
  }
  
  .cloud-provider {
    padding: 0.75rem 0.5rem;
    margin: 0.25rem;
  }
  
  .cloud-provider span {
    font-size: 0.875rem;
    text-shadow: 
      0 0 6px var(--primary-cyan),
      0 0 10px var(--primary-cyan);
  }
  
  .cloud-provider img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(1.1);
  }
  
  .carousel-dot {
    width: 0.75rem;
    height: 0.75rem;
    margin: 0 0.2rem;
  }
  
  /* Cloud providers grid adjustment for mobile */
  .grid.grid-cols-2.md\\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  @media (min-width: 768px) {
    .grid.grid-cols-2.md\\:grid-cols-4 {
      grid-template-columns: repeat(4, 1fr);
      gap: 1rem;
    }
  }
}
