/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #0c0f17 0%, #151925 100%);
  color: #e6e9f0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(12, 15, 23, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42, 252, 133, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e6e9f0;
  text-decoration: none;
}

.logo-icon {
  color: #2afc85;
  font-size: 1.8rem;
}

.logo-text {
  background: linear-gradient(90deg, #e6e9f0 0%, #2afc85 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: #c2c6d3;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}

nav a:hover {
  color: #2afc85;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #2afc85;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #e6e9f0;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  padding: 120px 40px 60px;
  min-height: 100vh;
}

.content {
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards 0.5s;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #e6e9f0 0%, #2afc85 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  text-shadow: 0 5px 15px rgba(46, 252, 139, 0.3);
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #c2c6d3;
  font-weight: 500;
}

p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #c2c6d3;
}

.typing-text {
  position: relative;
  display: inline-block;
  color: #2afc85;
}

.typing-text::after {
  content: "|";
  position: absolute;
  right: -8px;
  animation: blink 0.7s infinite;
  color: #2afc85;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards 0.8s;
}

.btn {
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(90deg, #1ed761 0%, #15c46a 100%);
  color: #0c0f17;
  box-shadow: 0 5px 15px rgba(30, 215, 97, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(30, 215, 97, 0.6);
}

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

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  border: 2px solid #2afc85;
  color: #2afc85;
}

.btn-secondary:hover {
  background-color: rgba(42, 252, 133, 0.1);
  transform: translateY(-3px);
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 50px;
  opacity: 1;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards 1.1s;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1f2e 0%, #232838 100%);
  color: #2afc85;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.social-icon:hover {
  transform: translateY(-5px);
  color: #151925;
  box-shadow: 0 8px 20px rgba(30, 215, 97, 0.3);
}

.social-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #1ed761, #2afc85, #15c46a);
  opacity: 0;
  transition: 0.3s;
  z-index: -1;
}

.social-icon:hover::before {
  opacity: 1;
}

/* ===== PROFILE IMAGE SECTION ===== */
.profile-container {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
}

.profile-img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4);
  border: 4px solid #0c0f17;
  transition: all 0.5s ease;
}

.profile-img:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

/* Animated rings */
.border-outer {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  border-radius: 50%;
  background: conic-gradient(
    transparent,
    #2afc85,
    transparent,
    transparent
  );
  z-index: 1;
  animation: rotate 4s linear infinite;
}

.border-middle {
  position: absolute;
  width: 270px;
  height: 270px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  border-radius: 50%;
  background: conic-gradient(
    transparent,
    #15c46a,
    transparent,
    transparent
  );
  z-index: 2;
  animation: rotate-reverse 3s linear infinite;
  filter: blur(3px);
}

.border-inner {
  position: absolute;
  width: 240px;
  height: 240px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  border-radius: 50%;
  background: conic-gradient(
    transparent,
    #1ed761,
    transparent,
    transparent
  );
  z-index: 3;
  animation: rotate 2s linear infinite;
}

/* Pulsing effect */
.pulse-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  border: 2px solid rgba(42, 252, 133, 0.3);
  z-index: 0;
  animation: pulse 3s ease-out infinite;
}

/* Los cuatro bordes preceden a los tres pulse-ring en el HTML. */
.pulse-ring:nth-child(6) {
  animation-delay: 1s;
}

.pulse-ring:nth-child(7) {
  animation-delay: 2s;
}

/* Border container */
.border-container {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 4;
}

.border-container::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  background: linear-gradient(135deg, #151925 0%, #1a1f2e 100%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

/* ===== ANIMATIONS ===== */
@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes rotate-reverse {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

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

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 60px;
    padding: 100px 20px 40px;
  }

  .cta-buttons {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  nav ul {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(12, 15, 23, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transition: left 0.3s ease;
  }

  nav ul.active {
    left: 0;
  }

  nav a {
    font-size: 1.2rem;
    padding: 15px 0;
  }

  .menu-toggle {
    display: block;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1.1rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .profile-container {
    width: 250px;
    height: 250px;
  }

  .profile-img {
    width: 200px;
    height: 200px;
  }

  .border-outer {
    width: 250px;
    height: 250px;
  }

  .border-middle {
    width: 225px;
    height: 225px;
  }

  .border-inner {
    width: 200px;
    height: 200px;
  }

  .border-container::after {
    width: 215px;
    height: 215px;
  }

  .pulse-ring {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .profile-container {
    width: 200px;
    height: 200px;
  }

  .profile-img {
    width: 160px;
    height: 160px;
  }

  .border-outer {
    width: 200px;
    height: 200px;
  }

  .border-middle {
    width: 180px;
    height: 180px;
  }

  .border-inner {
    width: 160px;
    height: 160px;
  }

  .border-container::after {
    width: 170px;
    height: 170px;
  }

  .pulse-ring {
    width: 200px;
    height: 200px;
  }
}
