/* Professional CV Styles */
:root {
  --primary-color: #004146;
  --secondary-color: #03BFB5;
  --accent-color: #e74c3c;
  --text-color: #2c3e50;
  --light-bg: #f8f9fa;
  --border-color: #e9ecef;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Global Styles */
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;
  pointer-events: none;
}

#cv-content {
  padding: 2rem 1rem;
}

/* Navigation Styles */
nav {
  background: rgb(158, 165, 195);
  background: linear-gradient(180deg, rgb(215, 229, 255) 0%, rgba(241, 241, 241, 1) 95%);
  padding: 10px;
}

.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
  box-shadow: var(--shadow);
  padding: 1rem 0;
}

.navbar-brand {
  color: white !important;
  font-size: 1.5rem;
  font-weight: 600;
}

.navbar-brand img {
  filter: brightness(0) invert(1);
  margin-right: 0.5rem;
}

.navbar-toggler:focus,
.navbar-toggler:hover {
  border: 2px solid #c1d5ff;
  text-decoration: none;
}

.navbar-icons {
  width: 27px;
  padding-bottom: 8px;
  filter: saturate(0.6);
  -webkit-filter: saturate(0.6);
}

.navbar-icons:hover {
  opacity: 0.8;
}

.navbar .nav-link img {
  transition: transform 0.3s ease;
}

.navbar .nav-link:hover img {
  transform: scale(1.1);
}

/* Header Styles */
#top > h1 {
  color: #365575;
}

#top > h1 > img {
  filter: contrast(100%) invert(50%) sepia(100%) saturate(100%) hue-rotate(170deg);
  -webkit-filter: contrast(100%) invert(50%) sepia(100%) saturate(100%) hue-rotate(170deg);
}

/* Container Styles */
.container-fluid {
  max-width: 1200px;
  margin: 0 auto;
}

/* Card Styles */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-header:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.card-header img {
  filter: brightness(0) invert(1);
  margin-right: 0.75rem;
  transition: all 0.3s ease;
}

.card-header:hover img {
  filter: brightness(0);
}

.card-header .h6 {
  margin: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.card-body {
  padding: 2rem;
}

/* List Group Styles */
.list-group-item {
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  background: transparent;
}

.list-group-item:last-child {
  border-bottom: none;
}

li.li-title {
  background-color: #fafafa;
}

.li-title {
  background: linear-gradient(135deg, #fafafa 10%, #bce4e2 90%);
  border-radius: 10px;
  padding: 1.5rem !important;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

/* Profile Image Styles */
#profile-img {
  text-align: center;
  margin-bottom: 1rem;
}

#profile-img img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 4px solid var(--secondary-color);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

#profile-img img:hover {
  transform: scale(1.05);
}

/* Personal Information Styles */
.list-group-item .row > div:first-child {
  font-weight: 600;
  color: var(--primary-color);
}

/* Skills Section Styles */
.list-group-item img[src*="right-arrow"] {
  filter: hue-rotate(310deg);
  margin-right: 0.5rem;
}

/* Work Experience Card Styles */
.card[style*="width: 18rem"] {
  border-radius: 10px;
  transition: all 0.3s ease;
  height: 100%;
}

.card[style*="width: 18rem"]:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card[style*="width: 18rem"] img {
  height: 200px;
  object-fit: cover;
}

.card[style*="width: 18rem"] .btn {
  background: var(--secondary-color);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.card[style*="width: 18rem"] .btn:hover:not(.disabled) {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.card[style*="width: 18rem"] .btn.disabled {
  background: #6c757d;
}

/* Badge Styles */
.badge {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  margin: 0.2rem;
  border-radius: 20px;
  font-weight: 500;
}

/* Company Logo Styles */
.list-group-item img[src*="empresas"] {
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.3s ease;
}

.list-group-item img[src*="empresas"]:hover {
  transform: scale(1.05);
}

/* Social Media Mobile Styles */
.container.d-block.d-lg-none img {
  transition: transform 0.3s ease;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.container.d-block.d-lg-none img:hover {
  transform: scale(1.1);
}

/* Footer Styles */
footer {
  background: var(--primary-color);
  color: white;
  margin-top: 3rem;
}

footer img {
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

footer img:hover {
  transform: translateY(-3px);
}

/* Animation Styles */
.accordion-collapse {
  transition: all 0.3s ease;
}

img {
  transition: opacity 0.3s ease;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}

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

/* Media Queries */
@media (max-width: 991px) {
  #top {
    place-content: center;
  }
  #profile-img {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container-fluid {
    padding: 1rem 0.5rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .card[style*="width: 18rem"] {
    width: 100% !important;
    max-width: 300px;
    margin: 1rem auto !important;
  }
  
  li.li-title.responsive {
    margin-top: 12px;
  }
}

/* Print Styles */
@media print {
  .navbar, footer, .container.d-block.d-lg-none {
    display: none !important;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .accordion-collapse {
    display: block !important;
  }
}

/* Animations */

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.dark-theme {
  background: #1a1a1a !important;
  color: #ffffff !important;
}

.dark-theme .card {
  background: #2d2d2d !important;
  color: #ffffff !important;
}

.dark-theme .list-group-item {
  background: transparent !important;
  color: #ffffff !important;
  border-color: #444 !important;
}

.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.navbar-fixed {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

@media (max-width: 768px) {
  .scroll-progress {
    height: 2px;
  }
}