/* ===== 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, #151925 100%); 
    color: #e6e9f0;
    min-width: 100vh;
    overflow-x: hidden;
}

/* ===== HEADER STYLES ===== */
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 {
    font-size: 1.8rem;
    color: #2afc85;
}

.logo-text {
    background: linear-gradient(90deg, #e6e9f0 0%, #2afc85 100%);
    background-clip: text;
    -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-color: #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;
}

.about-content {
    max-width:  1200px;
    width: 100%;
    margin: 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 80px;
    padding: 120px 40px 60px;
    min-height: 100vh;
}

.projects-content {
    max-width:  1200px;
    width: 100%;
    margin: 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 80px;
    padding: 120px 40px 60px;
    min-height: 100vh;
}

.content {
    max-width: 900px;
    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 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-shadow: 0 5px 15px rgba(42, 252, 139, 0 3);
}

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

#h2Green {
    background: linear-gradient(90deg, #e6e9f0 0%, #2afc85 40%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-shadow: 0 5px 20px rgba(42, 252, 139, 0.5);
}

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

.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 ;
}
.btn2 {
    padding: 15px 35px;
    border-radius: 10px;
    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.3);
}

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

.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);
}

.btn-tertiary {
    border: 2px solid #2afc85;
    color: #0c0f17;
    box-shadow: 0 5px 15px rgba(30, 215, 97, 0.3);
}

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

.btn-tertiary::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-tertiary:hover::before {
    left: 100%;
}

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

.social-icons a {
    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-icons a:hover {
    transform: translateY(-5px);
    color: #151925;
    box-shadow: 0 8px 20px rgba(30, 215, 97, 0.3);
}

.social-icons a::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-icons a:hover::before {
    opacity: 1;
}


/* ===== PROFILE IMAGE ===== */
.profile-container {
    position: relative;
    width: 300px;
    height: 300px;
}
.profile-image {
    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 15px rgba(0, 0, 0, 0.4);
    border: 4px solid #0c0f17;
    transition: all 0.5s ease;
}

.profile-image:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 8px 25px rgba(30, 215, 97, 0.5);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
/* ===== ANIMATIONS ===== */
.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-inner {
    position: absolute;
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    border-radius: 50%;
    background: conic-gradient(
        transparent,
        #2afc85,
        transparent,
        transparent);
    z-index: 1;
    animation: rotateReverse 6s linear infinite;
}

.border-middle {
    position: absolute;
    width: 260px;
    height: 260px;
    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 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: rotateReverse 2s linear infinite;
}

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

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

.pulse-ring:nth-child(3){
    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;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        #151925 0%,
        #1a1f2e 100%);
    transform: translate(-50%, -50%);
    z-index: 5;
     animation: rotateReverse 5s linear infinite;
}

#about {
    max-width:  1200px;
    width: 100%;
    margin: 0 auto;
    flex-direction: row;
    align-items: center;
    
    gap: 80px;
    padding: 120px 40px 60px;
    min-height: 50vh;
}

.dividing-line{
     position: relative;
  height: 2px;
  width: 100%;
  margin: 40px 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 150, 0.3),
    rgba(0, 255, 150, 0.9),
    rgba(0, 255, 150, 0.3),
    transparent
  );
  animation: glow 3s infinite ease-in-out;
}

.divising-line::after {
    content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 150, 0.6),
    transparent
  );
  filter: blur(6px);
  opacity: 0.7;
}

.dividing-line2{
     position: relative;
  height: 2px;
  width: 100%;
  margin: 40px 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 150, 0.9),
    rgba(0, 255, 150, 0.3),
    rgba(0, 255, 150, 0.3),
    transparent
  );
  animation: glow 3s infinite ease-in-out;
}

.dividing-line3{
     position: relative;
  height: 2px;
  width: 100%;
  margin: 40px 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 150, 0.3),
    rgba(0, 255, 150, 0.3),
    rgba(0, 255, 150, 0.9),
    transparent
  );
  animation: glow 3s infinite ease-in-out;
}

.jornada-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cards-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 170, 0.2);
  padding: 25px;
  border-radius: 12px;
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 170, 0.4);
  opacity: 0;
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 170, 0.6);
}

.card:hover::before {
  opacity: 1;
}

/* Ícone */
.icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* ====== STACK CARD ====== */

.stack-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 170, 0.3);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 255, 170, 0.3);
}

.stack-card h3 {
  margin-bottom: 20px;
  color: #00ffaa;
}

.stack-card ul {
  list-style: none;
  padding: 0;
}

.stack-card li {
  margin-bottom: 12px;
  font-size: 0.95rem;
}
/* --- Animations --- */

@keyframes glow {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

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

@keyframes rotateReverse {
    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% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}



@media(max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }
}


/* ===== RESPONSIVE DESIGNS ===== */
@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.5s 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 30px;
        font-size: 1rem;
    }

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

    ;.profile-image {
        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;
    }

    p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .profile-container {
        width: 200px;
        height: 200px;
    }

    .profile-image {
        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;
    }
}
