/* -------------------------------
   FONTS & RESET
--------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0a0a0a;
  color: #eaeaea;
  line-height: 1.6;
  overflow-x: hidden;
}

/* -------------------------------
   PRELOADER
--------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-circle {
  position: relative;
  width: 120px;
  height: 120px;
}

.loader-circle svg {
  transform: rotate(-90deg);
  width: 120px;
  height: 120px;
}

.loader-circle circle {
  fill: none;
  stroke-width: 6;
  stroke: rgba(255, 255, 255, 0.1);
}

.loader-circle .progress {
  stroke: #00ffe1;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 0.3s ease;
}

#counter {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: 600;
  color: #00ffe1;
}

/* -------------------------------
   NAVIGATION
--------------------------------*/
nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #00ffe1;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #00ffe1;
}

/* -------------------------------
   HERO SECTION
--------------------------------*/
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 0 20px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
  z-index: -1;
}

.hero-label {
  color: #00ffe1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
}

.hero-title {
  font-size: 48px;
  margin: 15px 0;
  font-family: 'Space Grotesk', sans-serif;
}

.gradient-text {
  background: linear-gradient(90deg, #00ffe1, #007fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 700px;
  margin: 15px auto 30px;
  color: #bbb;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(90deg, #00ffe1, #007fff);
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-3px);
}

.btn-secondary {
  border: 2px solid #00ffe1;
  color: #00ffe1;
}

.btn-secondary:hover {
  background: #00ffe1;
  color: #000;
}

/* -------------------------------
   SECTIONS GENERALES
--------------------------------*/
section {
  padding: 100px 20px;
}

.container {
  max-width: 1100px;
  margin: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  color: #00ffe1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  margin-top: 10px;
}

/* -------------------------------
   ABOUT
--------------------------------*/
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-text p {
  color: #ccc;
  font-size: 16px;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-card {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: #00ffe1;
}

.info-card h3 {
  color: #00ffe1;
  margin-bottom: 10px;
}

/* -------------------------------
   EXPERIENCE
--------------------------------*/
.experience-timeline {
  display: grid;
  gap: 30px;
}

.experience-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-5px);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.experience-title {
  color: #00ffe1;
  font-size: 20px;
}

.experience-company {
  color: #bbb;
  font-size: 15px;
}

.experience-year {
  color: #888;
  font-size: 14px;
}

.tags {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(0, 255, 225, 0.1);
  color: #00ffe1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
}

/* -------------------------------
   SKILLS
--------------------------------*/
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.skill-card {
  background: #111;
  padding: 25px;
  border-radius: 14px;
  text-align: center;
  transition: all 0.3s ease;
}

.skill-card:hover {
  background: #0d0d0d;
  transform: translateY(-5px);
  border: 1px solid #00ffe1;
}

.skill-icon {
  font-weight: 700;
  font-size: 22px;
  color: #00ffe1;
  margin-bottom: 10px;
}

/* -------------------------------
   PROJECTS
--------------------------------*/
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.project-card {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-image {
  height: 180px;
}

.project-content {
  padding: 20px;
}

.project-title {
  color: #00ffe1;
  font-size: 20px;
  margin-bottom: 10px;
}

.project-description {
  color: #bbb;
  font-size: 15px;
}

/* -------------------------------
   CONTACT
--------------------------------*/
.contact-content {
  text-align: center;
}

.contact-email {
  display: inline-block;
  margin: 20px 0;
  color: #00ffe1;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

.contact-email:hover {
  opacity: 0.7;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 15px;
}

.social-link {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.social-link:hover {
  color: #00ffe1;
}

/* -------------------------------
   FOOTER
--------------------------------*/
footer {
  background: #0d0d0d;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #777;
}

/* -------------------------------
   RESPONSIVE
--------------------------------*/
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 34px;
  }

  .section-title {
    font-size: 28px;
  }

  .nav-links {
    display: none;
  }
}
