/* style.css */
/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;500&family=Source+Code+Pro:wght@400&display=swap');

/* ===== BASE STYLES ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* ===== TYPOGRAPHY HIERARCHY ===== */
/* Headers */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  margin-top: 0;
  line-height: 1.3;
}

h1 {
  font-weight: 700;
  font-size: 2.5em;
  letter-spacing: -0.5px;
  color: #5e7396;
}

h2 {
  font-weight: 600;
  font-size: 1.8em;
  border-bottom: 2px solid #5e7396;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

h3 {
  font-weight: 600;
  font-size: 1.4em;
  color: #927d5e;
}

/* Body Text */
p, li, td {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 1.1em;
  color: #555;
}

/* Monospace for technical content */
code, pre, .skill h3 {
  font-family: 'Source Code Pro', monospace;
  background-color: #f0f0f0;
  padding: 2px 5px;
  border-radius: 3px;
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 40px;
}

header p {
  font-size: 1.2em;
  color: #635e92;
}

/* Navigation */
nav {
  text-align: center;
  margin-bottom: 40px;
}

nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  margin: 0 15px;
  font-size: 1.1em;
  color: #333;
}

nav a:hover {
  color: #5e7396;
  text-decoration: underline;
}

/* Sections */
section {
  margin-bottom: 40px;
  padding-top: 60px; /* For fixed header offset */
}

/* Profesional Experience */
.experience {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.experience h3 {
  margin-top: 0;
  color: #5e7396;
}

.experience .role {
  font-weight: 600;
  color: #927d5e;
  margin-bottom: 5px;
}

.experience .duration {
  font-size: 0.95em;
  color: #888;
  margin-bottom: 10px;
}

.experience ul {
  padding-left: 20px;
  margin: 0;
}

.experience li {
  margin-bottom: 6px;
}

/* Projects */
.project {
  margin-bottom: 30px;
}

.project h3 {
  margin-bottom: 10px;
}

.project a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #5e7396;
  color: #fff;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: background-color 0.3s;
}

.project a:hover {
  background-color: #925e8d;
  text-decoration: none;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.skill {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
}

.skill h3 {
  margin-top: 0;
}

/* Dropdown Menu */
#dropdown-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #5e7396;
  color: #fff;
  z-index: 999;
  overflow: hidden;
  height: 60px;
  transition: height 0.5s ease-in-out;
}

#dropdown-menu .menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 60px;
}

#dropdown-menu .menu-header span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.2em;
}

#dropdown-menu .menu-button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5em;
  cursor: pointer;
}

#dropdown-menu .menu-content {
  display: none;
  width: 100%;
  background-color: #5e7396;
}

#dropdown-menu .menu-content a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  display: block;
  padding: 12px 20px;
  color: #fff;
  text-align: left;
  transition: background-color 0.3s;
}

#dropdown-menu .menu-content a:hover {
  background-color: #486084;
  text-decoration: none;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 60px;
  padding: 30px 0;
  border-top: 1px solid #ddd;
  color: #635e92;
  font-family: 'Montserrat', sans-serif;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  h1 {
    font-size: 2em;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  #dropdown-menu .menu-content a {
    padding: 10px 15px;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  nav a {
    display: block;
    margin: 10px 0;
  }
  
  header img {
    width: 150px;
    height: 150px;
  }
}