:root {
  --dark: #0a0a0a;
  --darker: #050505;
  --light: #ffffff;
  --gray: #6c757d;
  --accent: #eeff00;
  --accent-light: #eeff00;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --card-bg: rgba(30, 30, 30, 0.5);
  --card-border: rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

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

section {
  padding: 5rem 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--light);
  text-decoration: none;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--light);
  z-index: 1001;
}

/* Language Selector */
.language-selector {
  margin-left: 20px;
  position: relative;
}

.language-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.language-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.language-flag {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Hero Section with Background Image */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:url('../imgs/Formas\ Geométricas\ com\ Luz\ Cálida.png') no-repeat center center / cover;
}

.hero-content {
  max-width: 1000px;
  z-index: 2;
  position: relative;
  padding: 0 20px;
}

.hero-name {
  font-size: 8rem;
  margin-bottom: 20px;
  letter-spacing: -5px;
  font-weight: 800;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 40px;
  letter-spacing: 8px;
  text-transform: uppercase;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
}

.hero-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 12px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--light);
  transition: var(--transition);
}

.hero-links a:hover::after {
  width: 100%;
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--light);
  animation: bounce 2s infinite;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Skills Section */
.skills {
  background-color: var(--darker);
  position: relative;
  overflow: hidden;
}

.skills::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(59, 130, 246, 0.1) 0%,
      rgba(59, 130, 246, 0) 70%);
}

.skills::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(59, 130, 246, 0.1) 0%,
      rgba(59, 130, 246, 0) 70%);
}

.section-title {
  font-size: 3rem;
  margin-bottom: 5px;
  position: relative;
  text-align: center;
}

.section-title span {
  color: var(--accent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

.skill-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 40px;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skill-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 20px;
  transition: var(--transition);
}

.skill-card:hover .skill-icon {
  transform: scale(1.2);
  color: var(--accent-light);
}

.skill-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.skill-card p {
  color: var(--gray);
  font-size: 1.1rem;
}

/* Projects Section */
.projects {
  background-color: var(--dark);
  position: relative;
}

.projects::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle,
      rgba(59, 130, 246, 0.05) 0%,
      transparent 70%);
  z-index: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 50px;
  position: relative;
  z-index: 2;
}

.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.project-img {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.project-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.7) 0%,
      transparent 100%);
  z-index: 1;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-info {
  padding: 30px;
}

.project-info h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.project-info p {
  color: var(--gray);
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.tech {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.tech:hover {
  background: rgba(37, 99, 235, 0.3);
  transform: translateY(-3px);
}

.project-links {
  display: flex;
  gap: 20px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-links a:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.3);
}

/* Contact Section */
.contact {
  background-color: var(--darker);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(59, 130, 246, 0.1) 0%,
      rgba(59, 130, 246, 0) 70%);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact-content p {
  margin-bottom: 40px;
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.8;
}

.contact-info {
  margin-top: 40px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light);
  font-size: 1.5rem;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transition: 0.5s;
}

.social-links a:hover::before {
  left: 100%;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-5px);
  border-color: var(--accent);
}

.email-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition);
  padding: 10px 25px;
  border-radius: 50px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.email-link:hover {
  background: rgba(37, 99, 235, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

/* Footer */
footer {
  background-color: #050505;
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-20px) translateX(-50%);
  }

  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Responsiveness */
@media (max-width: 1200px) {
  .hero-name {
    font-size: 6rem;
  }
}

@media (max-width: 992px) {
  .hero-name {
    font-size: 5rem;
    letter-spacing: -3px;
  }

  .hero-title {
    font-size: 1.3rem;
    letter-spacing: 6px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--darker);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    gap: 40px;
    clip-path: circle(0px at top right);
    transition: clip-path 0.8s ease;
    z-index: 1000;
  }

  .nav-links.active {
    clip-path: circle(150% at top right);
  }

  .hero-name {
    font-size: 4rem;
    letter-spacing: -2px;
  }

  .hero-title {
    font-size: 1.1rem;
    letter-spacing: 4px;
  }

  .hero-links {
    flex-direction: column;
    gap: 25px;
  }

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

  .language-selector {
    position: absolute;
    top: 20px;
    right: 80px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 3.5rem;
  }

  .hero-title {
    font-size: 0.9rem;
    letter-spacing: 3px;
  }

  .section-title {
    font-size: 2rem;
  }

  .skill-card,
  .project-card {
    padding: 30px 20px;
  }
}