:root {
    --primary: #3b82f6;
    --secondary: #a855f7;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --shadow: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    padding: 3rem 0;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 20px;
    margin-bottom: 3rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 50px var(--shadow);
    animation: fadeIn 1s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid var(--primary);
    margin: 0 auto 2rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.profile-pic:hover {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideIn 1s ease-out, gradientShift 4s ease infinite;
}
@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
@keyframes gradientShift {
    0%   { background-position:   0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position:   0% 50%; }
}

/* GIF Bounce */
.name-gif {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: bounce 4s ease-in-out infinite;
}
@keyframes bounce {
    0%,100% { transform: translateY(0); }
    25%      { transform: translateY(-6px); }
    50%      { transform: translateY(-12px); }
    75%      { transform: translateY(-6px); }
}

.tagline {
    font-size: 1.4rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.social-link {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    background: linear-gradient(45deg, rgba(59,130,246,0.3), rgba(168,85,247,0.3));
    border: 1px solid rgba(59,130,246,0.5);
    color: white;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}
.social-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
    background: linear-gradient(45deg, rgba(59,130,246,0.6), rgba(168,85,247,0.6));
}
.social-link i {
    margin-right: 0.6rem;
    font-size: 1.2rem;
}

/* Sections Base */
.section {
    background: rgba(15,23,42,0.85);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 15px 50px var(--shadow);
    transition: transform 0.4s ease;
}
.section:hover { transform: translateY(-10px); }
.section-title {
    display: flex;
    align-items: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.8rem;
    color: var(--light);
}
.section-title i {
    margin-right: 1rem;
    color: var(--primary);
    font-size: 2rem;
}

/* Sobre Mí Layout */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}
.about-text {
    flex: 1;
    min-width: 300px;
}
.timeline {
    flex: 1;
    min-width: 300px;
    position: relative;
    padding-left: 2.5rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 10px;
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 8px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid var(--dark);
    border-radius: 50%;
}
.timeline-date {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.timeline-content {
    color: var(--gray);
}

/* Skills Grid */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(30,41,59,0.7);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.4s ease, background 0.4s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    background: rgba(30,41,59,0.9);
    box-shadow: 0 8px 25px rgba(59,130,246,0.3);
}

.skill-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.skill-title i {
    margin-right: 1rem;
    font-size: 2.5rem;
    transition: transform 0.4s ease;
}

.skill-title:hover i {
    transform: rotate(360deg);
}

.skill-list {
    list-style: none;
    padding-left: 0;
}

.skill-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
}

.skill-item i.skill-icon {
    margin-right: 0.8rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.skill-item:hover i.skill-icon {
    transform: translateX(3px);
}


/* ——— SMOOTH FADE-IN UP QUOTE ——— */
/* Quote box */
.quote {
  position: relative;
  font-family: 'Roboto Mono', monospace;
  background: rgba(30, 41, 59, 0.9);
  padding: 2.5rem;
  border-radius: 15px;
  border-left: 6px solid var(--primary);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
  overflow: hidden;
  margin: 2.5rem 0;
}

/* Texto de la cita: un poco más grande y con fade-in hacia arriba */
.quote .typing {
  font-size: 1.4rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation: fadeInUp 1.5s ease-out forwards;
  animation-delay: 0.5s;
}

/* Autor: aparece bajo la cita, en tamaño más pequeño */
.quote .author {
  display: block;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--gray);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  margin-top: 1rem;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 2s;
}

/* Keyframes para el fade-in y slide-up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.roadmap {
    display: flex;
    min-width: 1000px;
    gap: 1.5rem;
}
.phase {
    background: rgba(30,41,59,0.7);
    border-radius: 15px;
    padding: 2rem;
    flex: 1;
    min-width: 280px;
    transition: transform 0.4s ease, background 0.4s ease;
}
.phase:hover {
    transform: translateY(-10px);
    background: rgba(30,41,59,0.9);
    box-shadow: 0 8px 25px rgba(59,130,246,0.3);
}
.phase-title {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--light);
}
.phase-title i {
    margin-right: 1rem;
    color: var(--success);
    font-size: 1.8rem;
}
.topic-list {
    list-style: none;
    padding-left: 0;
}
.topic-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
}
.topic-item::before {
    content: '•';
    color: var(--primary);
    margin-right: 1rem;
    font-size: 1.4rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
.project-card {
    background: rgba(30,41,59,0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.3);
}
.project-header {
    padding: 1.5rem;
    background: rgba(59,130,246,0.15);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.project-title {
    font-size: 1.3rem;
    color: var(--light);
}
.project-status {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}
.status-completed { background: rgba(16,185,129,0.3); color: var(--success); }
.status-in-progress { background: rgba(245,158,11,0.3); color: var(--warning); }

.project-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.tech-tag {
    background: rgba(59,130,246,0.3);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}
.project-card:hover .tech-tag {
    transform: translateY(-2px);
}
.project-footer {
    padding: 1rem;
    text-align: right;
}
.project-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(59,130,246,0.3);
    color: var(--primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.project-link:hover {
    background: rgba(59,130,246,0.6);
    transform: scale(1.05);
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}
.contact-card {
    background: rgba(30,41,59,0.7);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.4s ease, background 0.4s ease;
}
.contact-card:hover {
    transform: translateY(-10px);
    background: rgba(30,41,59,0.9);
    box-shadow: 0 8px 25px rgba(59,130,246,0.3);
}
.contact-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
.contact-card:hover i {
    transform: translateY(-5px);
}
.contact-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.contact-info {
    color: var(--gray);
    margin-bottom: 1rem;
}
.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.contact-link:hover {
    color: var(--secondary);
}

/* Footer */
footer {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .about-content, .projects-grid, .skills-container, .contact-methods {
        grid-template-columns: 1fr;
    }
    .roadmap { min-width: unset; flex-direction: column; }
}
