/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f4f4f4;
}

h1,
h2,
h3 {
  margin-bottom: 1rem;
}

.container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 4rem 1rem;
}

.header h1 span {
  color: #f09d51;
}

.header p {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

/* Social Media Bar */
.social-header {
  background-color: #34495e;
  text-align: right;
  padding: 10px 20px;
}

.social-header a {
  color: white;
  font-size: 1.5rem;
  margin-left: 15px;
  transition: color 0.3s ease;
}

.social-header a:hover {
  color: #f09d51;
}

/* Navbar */
.navbar {
  background-color: #34495e;
  padding: 1rem 0;
}

.navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

.navbar ul li {
  margin: 0 1rem;
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: #f09d51;
}

/* Sections */
.section {
  padding: 4rem 1rem;
}

.about {
  background-color: white;
}

.skills {
  background-color: #ecf0f1;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.skill-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* Contact */
.contact {
  text-align: center;
}

.footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

.footer p {
  font-size: 0.9rem;
}

a {
  text-decoration: none;
  color: inherit;
  outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
  }

  .navbar ul li {
    margin: 10px 0;
  }

  .social-header {
    text-align: center;
  }
}

/* Button Styling */
.btn {
  display: inline-block;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: none;
}

/* Primary Button (Email Button) */
.primary-btn {
  background-color: #f09d51; /* Color principal: azul marino */
  color: #fff;
  border: 2px solid #f09d51;
}

.primary-btn:hover {
  background-color: #c97629; /* Oscurece un poco el azul en hover */
  color: #f4f4f9; /* Color claro en hover */
}

/* Optional Dark Mode or Blueish Color Palette Adjustments */
body.dark-mode .primary-btn {
  background-color: #1e1e1e; /* Ajuste de fondo oscuro */
  color: #ffcc00; /* Texto en amarillo claro */
  border-color: #ffcc00;
}

body.dark-mode .primary-btn:hover {
  background-color: #333333; /* Más oscuro en hover */
  color: #fff; /* Texto blanco */
}

#contact {
  background-color: #f8f8f8;
  padding: 40px;
  border-radius: 10px;
}

#contact h2,
#contact > p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

#contactForm {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

#contactForm .form-group {
  margin-bottom: 15px;
}

#contactForm label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  color: #333;
  outline: none;
  transition: border-color 0.3s;
}

#contactForm .primary-btn {
  background-color: #f09d51;
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#contactForm .primary-btn:hover {
  background-color: #e18128;
}
