@font-face {
  font-family: "laro";
  src: url("./../fonts/laro/Laro\ Soft\ Medium.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  font-family: "laro";
}

/* Header y Navegación */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(#b0bec5, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  color: #b0bec5;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 4rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: #b0bec5;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  font-size: 1.3rem;
}

.nav-link:hover {
  color: #fff;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #b0bec5;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #010440 0%, #1a237e 100%);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23b0bec5" stroke-width="0.1" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 2;
  position: relative;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: slideUp 1s ease 0.5s forwards;
}

.hero-subtitle {
  font-size: 2rem;
  color: #b0bec5;
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideUp 1s ease 0.7s forwards;
}

.hero-description {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: slideUp 1s ease 0.9s forwards;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: #b0bec5;
  text-decoration: none;
  border: 2px solid #b0bec5;
  border-radius: 50px;
  transition: all 0.3s ease;
  opacity: 0;
  animation: slideUp 1s ease 1.1s forwards;
}

.cta-button:hover {
  background: #b0bec5;
  color: #010440;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(176, 190, 197, 0.3);
}

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

/* Secciones generales */
.section {
  padding: 80px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #010440;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #b0bec5;
}

/* Sobre mí */
.about {
  background: #f8f9fa;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  text-align: center;
}

.profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: linear-gradient(135deg, #010440, #b0bec5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.profile-pic i {
  font-size: 6rem;
  color: white;
}

.profile-pic img{
  width: 100%;
  height: 100%;
}

.about-text {
  line-height: 1.8;
  font-size: 1.3rem;
  color: #010440;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-item {
  text-align: center;
  padding: 2rem 1rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(176, 190, 197, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.skill-item:hover::before {
  opacity: 1;
  transform: rotate(45deg) translate(50%, 50%);
}

.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(1, 4, 64, 0.2);
}

.skill-icon {
  font-size: 3rem;
  color: #010440;
  margin-bottom: 1rem;
}

.skill-item img {
  width: 100%;
  height: 100%;
}

.skill-name {
  font-weight: bold;
  color: #010440;
  font-size: 1.2rem;
}

/* Proyectos */
.projects {
  background: #f8f9fa;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  max-width: 600px;
  margin: 0 auto;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(1, 4, 64, 0.2);
}

.project-image {
  height: 250px;
  background: linear-gradient(135deg, #010440, #b0bec5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-image i {
  font-size: 4rem;
  color: white;
}

.project-image img {
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: 2rem;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #010440;
}

.project-description {
  color: #010440;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tech-tag {
  padding: 0.3rem 0.8rem;
  background: #010440;
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
}

.project-link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #b0bec5;
  color: #010440;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.project-link:hover {
  background: #010440;
  color: white;
  transform: translateY(-2px);
}

/* Contacto */
.contact {
  background: #010440;
  color: white;
}

.contact .section-title {
  color: #b0bec5;
}

.contact .section-title::after {
  background: #b0bec5;
}

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

.contact-item {
  text-align: center;
  padding: 2rem;
  background: rgba(176, 190, 197, 0.1);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(176, 190, 197, 0.2);
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 2.5rem;
  color: #b0bec5;
  margin-bottom: 1rem;
}

.contact-link {
  color: #b0bec5;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: white;
}

/* Footer */
.footer {
  background: #010440;
  color: #b0bec5;
  text-align: center;
  padding: .5rem 0;
  border-top: 1px solid #b0bec5;
  display: flex;
  align-items: center;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

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

  .project-image img {
    width: 100%;
    height: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Terminal effect for Linux touch */
.terminal-window {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 20px;
  margin: 2rem 0;
  position: relative;
  font-family: "laro";
}

.terminal-header {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.close {
  background: #ff5f57;
}
.minimize {
  background: #ffbd2e;
}
.maximize {
  background: #28ca42;
}

.terminal-content {
  color: #b0bec5;
  font-size: 0.9rem;
}

.command-line {
  color: #28ca42;
}
