/*
Professional UI Enhancement for libardoramirez.com
Modern, coherent design across all sections
*/

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: #2c3e50;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #2c3e50;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

h3 {
  font-size: 2.2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  font-size: 1.1rem;
  color: #5a6c7d;
  line-height: 1.7;
}

/* Main container */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.header1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border-radius: 24px;
  margin: 2rem 0;
  padding: 2rem 2rem !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
  min-height: auto;
}

.header1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.header1 h1, .header1 .mbr-section-title {
  color: white !important;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header1 p, .header1 .mbr-text {
  color: rgba(255,255,255,0.9) !important;
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  border-radius: 50px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  margin: 0.5rem;
}

.btn-success {
  background: linear-gradient(45deg, #00c6ff, #0072ff);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 114, 255, 0.4);
  color: white;
}

.btn-success-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.8);
}

.btn-success-outline:hover {
  background: white;
  color: #667eea;
  transform: translateY(-2px);
}

.btn-black {
  background: #2c3e50;
  color: white;
  box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.btn-black:hover {
  background: #34495e;
  transform: translateY(-2px);
  color: white;
}

/* Section styling */
.content4, .content1, .features11, .contacts2 {
  background: white;
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid #f1f3f4;
  position: relative;
}

/* Section titles */
.mbr-section-title {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  position: relative;
}

.mbr-section-subtitle {
  font-size: 1.1rem;
  color: #5a6c7d;
  line-height: 1.8;
}

/* Experience sections */
.content1 {
  margin-bottom: 1.5rem;
}

.content1:nth-of-type(even) {
  background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
}

/* Experience cards */
.experience-card {
  background: white;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border: 1px solid #f1f3f4;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.experience-card h4 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.experience-list {
  text-align: left;
  padding-left: 0;
  list-style: none;
}

.experience-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: #5a6c7d;
  font-size: 0.95rem;
  line-height: 1.5;
}

.experience-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
  font-size: 1rem;
}

/* Projects section */
.features11 {
  background: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%);
}

.card-wrapper, .card-box {
  background: none;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* Project cards */
.project-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid #f1f3f4;
  height: 100%;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.project-image {
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.project-image img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  max-width: 100%;
  height: auto;
  /* Increased from 250px to allow larger project previews */
  max-height: 400px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.project-image img:hover {
  transform: scale(1.02);
}

.project-content {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content .card-title {
  color: #2c3e50;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.project-content .mbr-text {
  color: #5a6c7d;
  font-size: 1rem;
  line-height: 1.6;
}

.project-content ul {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.project-content ul li {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  color: #5a6c7d;
}

.project-content .mbr-section-btn {
  margin-top: auto;
}

/* Contact section */
.contacts2 {
  background: #34495e;
  color: white;
  text-align: center;
}

.contacts2::before {
  display: none !important;
}

.contacts2 .mbr-section-title {
  color: white;
  margin-bottom: 2rem;
}

.contact-card {
  background: rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 24px !important;
  padding: 3rem 2rem !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
  color: white;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  height: 100%;
}

/* Social card styling */
.social-card {
  background: rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 24px !important;
  padding: 3rem 2rem !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
  color: white;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  height: 100%;
}

.social-card h6 {
  color: white !important;
  font-size: 1.5rem;
}

.social-card p {
  color: rgba(255,255,255,0.9) !important;
  font-size: 1.1rem;
}

.social-icon {
  background: rgba(255,255,255,0.15) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  backdrop-filter: blur(10px);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.social-icon .mbr-iconfont {
  color: white !important;
  font-size: 2.2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links .soc-item a {
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px);
}

.social-links .soc-item a:hover {
  background: rgba(255,255,255,0.2) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.social-links .soc-item a .mbr-iconfont-social {
  color: white !important;
  font-size: 1.4rem !important;
  transition: color 0.3s ease;
}

.contact-icon {
  background: rgba(255,255,255,0.15) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  backdrop-filter: blur(10px);
}

.contact-icon .mbr-iconfont {
  color: white !important;
}

.contact-card h6 {
  color: white !important;
  font-size: 1.5rem;
}

.contact-card p {
  color: rgba(255,255,255,0.9) !important;
  font-size: 1.1rem;
}

.contact-card .btn {
  background: rgba(255,255,255,0.9) !important;
  color: #34495e !important;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-card .btn:hover {
  background: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Footer */
.footer3 {
  background: #2c3e50 !important;
  color: white;
  border-radius: 20px;
  margin: 2rem 0;
  padding: 1.5rem 2rem !important;
  box-shadow: 0 10px 30px rgba(44, 62, 80, 0.3);
}

.footer3 .mbr-text {
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
  main {
    padding: 0 0.5rem;
  }
  
  .header1 {
    padding: 2.5rem 1.5rem !important;
    margin: 1rem 0;
  }
  
  .header1 h1, .header1 .mbr-section-title {
    font-size: 2.5rem;
  }
  
  .content4, .content1, .features11, .contacts2 {
    padding: 2rem 1.5rem;
    margin: 1rem 0;
  }
  
  .mbr-section-title {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    margin: 0.3rem;
  }
  
  .contact-card {
    padding: 2rem 1.5rem !important;
  }
  
  .social-card {
    padding: 2rem 1.5rem !important;
  }
  
  .footer3 {
    padding: 1rem 1.5rem !important;
  }
  
  .social-list {
    gap: 0.5rem;
  }
  
  /* Experience cards mobile */
  .experience-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
  }
  
  .experience-card h4 {
    font-size: 1.2rem;
  }
  
  .experience-list li {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }
  
  /* Project cards mobile */
  .project-card {
    margin-bottom: 1.5rem;
  }
  
  .project-image {
    padding: 1rem 1rem 0.5rem 1rem;
  }
  
  .project-image img {
    /* Increased from 200px for better visibility on mobile while staying within typical viewport */
    max-height: 300px;
  }
  
  .project-content {
    padding: 0.8rem 1rem 1rem 1rem;
  }
  
  .project-content .card-title {
    font-size: 1.2rem;
  }
  
  .project-content ul li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .header1 h1, .header1 .mbr-section-title {
    font-size: 2rem;
  }
  
  .mbr-section-title {
    font-size: 1.5rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}

/* Smooth animations */
.content4, .content1, .features11, .contacts2 {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* List styling */
ul {
  padding-left: 0;
  list-style: none;
}

ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #5a6c7d;
}

ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00c6ff;
  font-weight: bold;
}

/* Remove bottom attribution */
div[style*="background-color: #fff"] {
  display: none !important;
}

/* Ensure no unwanted pseudo-elements */
.contact-card::before,
.contact-card::after,
.contact-icon::before,
.contact-icon::after {
  display: none !important;
}

/* Enhanced social icon styling */
.social-links .soc-item a .mbr-iconfont-social:before {
  font-family: 'Socicon' !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  speak: none !important;
}

/* Specific icon con tent fixes */
.socicon-twitter:before {
  content: "\e08d" !important;
}

.socicon-linkedin:before {
  content: "\e04c" !important;
}

.socicon-github:before {
  content: "\e032" !important;
}

/* Force icon display */
.social-links .soc-item a .socicon:before {
  display: inline-block !important;
  font-family: 'Socicon' !important;
}

/* Backup icon styling in case font doesn't load */
.social-links .soc-item a[href*="twitter"] .mbr-iconfont-social:before {
  content: "\e08d" !important;
  font-family: 'Socicon' !important;
}

.social-links .soc-item a[href*="linkedin"] .mbr-iconfont-social:before {
  content: "\e04c" !important;
  font-family: 'Socicon' !important;
}

.social-links .soc-item a[href*="github"] .mbr-iconfont-social:before {
  content: "\e032" !important;
  font-family: 'Socicon' !important;
}

/* Alternative approach using Unicode fallbacks */
.social-links .soc-item a .mbr-iconfont-social {
  font-family: 'Socicon', sans-serif !important;
  display: inline-block !important;
  width: 1em !important;
  height: 1em !important;
  text-align: center !important;
  vertical-align: middle !important;
}

/* Ensure visibility */
.social-links .soc-item a .mbr-iconfont-social:before {
  opacity: 1 !important;
  visibility: visible !important;
}
