/* ==========================================================================
   Jorge Alejandro Lavera - Professional Portfolio
   ========================================================================== */

/* Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background-color: #e8ecef;
}

/* Typography
   ========================================================================== */

h1 {
  font-size: 1.6em;
  font-weight: bold;
  color: #1a3a4a;
  margin: 0;
  padding: 0;
}

h2 {
  font-size: 1.3em;
  font-weight: bold;
  color: #21536A;
  margin: 0 0 12px 0;
  padding: 0;
  border-bottom: 2px solid #21536A;
  padding-bottom: 6px;
}

h3 {
  font-size: 1.1em;
  font-weight: bold;
  color: #21536A;
  margin: 0 0 6px 0;
  padding: 0;
}

a:link,
a:visited {
  color: #005FA9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style-type: square;
}

blockquote {
  margin: 4px 0 12px 0;
  padding-left: 8px;
  color: #555;
}

/* Header / Profile
   ========================================================================== */

.site-header {
  background: linear-gradient(135deg, #1a3a4a 0%, #21536A 100%);
  padding: 24px 20px;
  color: #fff;
}

.profile {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
}

.profile-name {
  color: #fff;
  font-size: 1.8em;
  margin-bottom: 4px;
}

.profile-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1em;
  margin-bottom: 4px;
}

.profile-location {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95em;
}

/* Navigation
   ========================================================================== */

.site-nav {
  background-color: #163242;
  border-bottom: 1px solid #0d2030;
  padding: 0;
  font-size: 14px;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 12px 16px;
  background-color: #163242;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: #fff;
  height: 3px;
  width: 22px;
  border-radius: 2px;
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
}

.nav-toggle-label span::before {
  bottom: 7px;
}

.nav-toggle-label span::after {
  top: 7px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.site-nav li {
  border-right: 1px solid #2a4a5a;
}

.site-nav li:last-child {
  border-right: none;
}

.site-nav a {
  display: block;
  padding: 10px 20px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.site-nav a:hover {
  background-color: #21536A;
  color: #fff;
  text-decoration: none;
}

/* Main Layout
   ========================================================================== */

.site-wrapper {
  background-color: #fff;
  max-width: 1100px;
  margin: 20px auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content {
  padding: 24px;
}

.content p {
  margin-bottom: 12px;
}

.section {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.section:last-child {
  border-bottom: none;
}

/* Skills List
   ========================================================================== */

.skills-list {
  margin: 12px 0 16px 20px;
  list-style-type: square;
}

.skills-list li {
  margin-bottom: 6px;
  color: #444;
}

/* Value Grid (Services)
   ========================================================================== */

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.value-block {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
}

.value-block h3 {
  text-align: center;
  padding: 10px 12px;
  background-color: #f5f7f7;
  border-bottom: 1px solid #ddd;
  font-size: 1.1em;
  color: #1a3a4a;
}

.value-block ul {
  padding: 10px 12px 10px 28px;
  margin: 0;
}

.value-block li {
  margin-bottom: 10px;
  font-size: 14px;
}

.value-block li strong {
  display: block;
  color: #21536A;
  margin-bottom: 2px;
}

/* Experience Section
   ========================================================================== */

.experience-item {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #ddd;
}

.experience-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.experience-item h3 {
  font-size: 1.1em;
  color: #1a3a4a;
  margin-bottom: 4px;
}

.experience-role {
  font-size: 0.95em;
  color: #666;
  font-style: italic;
  margin-bottom: 8px;
}

.experience-item ul {
  margin: 8px 0 8px 20px;
}

.experience-item li {
  margin-bottom: 4px;
}

/* Contact Section
   ========================================================================== */

.contact-info p {
  margin-bottom: 12px;
  font-size: 14px;
}

.contact-details {
  background-color: #f5f7f7;
  border-radius: 4px;
  padding: 16px;
  margin: 16px 0;
}

.contact-item {
  margin-bottom: 10px;
  font-size: 14px;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item .label {
  font-weight: bold;
  color: #1a3a4a;
  display: inline-block;
  min-width: 80px;
}

.services-note {
  font-size: 13px;
  color: #666;
  font-style: italic;
  margin-top: 16px;
}

/* Footer
   ========================================================================== */

.site-footer {
  background-color: #1a3a4a;
  border-top: 1px solid #0d2030;
  padding: 16px 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 0 0 4px 4px;
}

.site-footer .footer-nav {
  margin-bottom: 8px;
}

.site-footer .footer-nav a {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

.site-footer .footer-links {
  margin-bottom: 8px;
  font-size: 13px;
}

.site-footer .footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer .copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive
   ========================================================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .site-header {
    padding: 20px 16px;
  }

  .profile {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .profile-photo {
    width: 100px;
    height: 100px;
  }

  .profile-info {
    text-align: center;
  }

  .profile-name {
    font-size: 1.5em;
  }

  .nav-toggle-label {
    display: block;
  }

  .site-nav ul {
    justify-content: center;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .content {
    padding: 16px;
  }

  .site-wrapper {
    margin: 12px;
  }

  .site-footer {
    margin: 0 12px 12px 12px;
    border-radius: 0 0 4px 4px;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  body {
    font-size: 14px;
    line-height: 1.6;
  }

  .site-header {
    padding: 16px 12px;
  }

  .profile-photo {
    width: 80px;
    height: 80px;
  }

  .profile-name {
    font-size: 1.3em;
  }

  .profile-title {
    font-size: 1em;
  }

  .nav-toggle-label {
    display: block;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
  }

  .nav-toggle:checked ~ ul {
    display: flex;
  }

  .site-nav li {
    border-right: none;
    border-bottom: 1px solid #2a4a5a;
  }

  .site-nav li:last-child {
    border-bottom: none;
  }

  .content {
    padding: 12px;
  }

  .section {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  h1 {
    font-size: 1.3em;
  }

  h2 {
    font-size: 1.2em;
  }

  .value-block ul {
    padding-left: 20px;
  }

  .contact-details {
    padding: 12px;
  }

  .contact-item .label {
    display: block;
    margin-bottom: 2px;
  }

  .site-footer .footer-nav {
    line-height: 2;
  }

  .site-footer .footer-nav a {
    font-size: 13px;
  }

  .site-footer .footer-links {
    font-size: 12px;
  }
}
