:root {
  --bg-color: #F8F9FB;
  --bg-alt: #ffffff;
  --primary: #7C6CF2;
  --primary-hover: #6755e3;
  --secondary: #F2A6A6;
  --text-dark: #1F1F1F;
  --text-light: #5A5A66;
  --border-color: #E2E4EB;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px rgba(124, 108, 242, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; cursor: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 90%; max-width: 1140px; margin: 0 auto; }
.section { padding: 100px 0; }
.bg-alt { background-color: var(--bg-alt); }
.mt-4 { margin-top: 2rem; }

h1, h2, h3, h4, .logo { font-family: var(--font-heading); font-weight: 700; color: var(--text-dark); }
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.section-title { margin-bottom: 3rem; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 0.5rem; position: relative; display: inline-block; }
.section-title h2::after {
  content: ''; position: absolute; width: 40px; height: 4px;
  background-color: var(--primary); bottom: -5px; left: 0; border-radius: 2px;
}
.section-title p { color: var(--text-light); font-size: 1.1rem; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.cursor-dot, .cursor-outline {
  position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
  border-radius: 50%; z-index: 9999; pointer-events: none;
}
.cursor-dot { width: 8px; height: 8px; background-color: var(--primary); }
.cursor-outline {
  width: 30px; height: 30px; border: 1px solid rgba(124, 108, 242, 0.5);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 2rem; border-radius: 50px; font-family: var(--font-heading);
  font-weight: 500; font-size: 1.05rem; transition: var(--transition);
  position: relative; overflow: hidden; z-index: 1;
}
.btn-primary { background-color: var(--primary); color: #fff !important; box-shadow: 0 10px 20px rgba(124, 108, 242, 0.3); }
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
  background-color: var(--secondary); transition: var(--transition); z-index: -1; border-radius: 50px;
}
.btn-primary:hover::before { width: 100%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(242, 166, 166, 0.4); }
.btn-secondary { background-color: transparent; color: var(--text-dark) !important; border: 2px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary) !important; }
.whatsapp:hover { border-color: #25D366; color: #25D366 !important; }

.header {
  position: fixed; top: 0; left: 0; width: 100%; padding: 1.5rem 0; z-index: 1000; transition: var(--transition);
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); padding: 1rem 0; box-shadow: var(--shadow-sm);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; }
.logo span { color: var(--primary); }
.nav-list { display: flex; gap: 2rem; }
.nav-link { font-weight: 500; color: var(--text-light); transition: var(--transition); position: relative; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link::after {
  content: ''; position: absolute; width: 0; height: 2px;
  background-color: var(--primary); bottom: -4px; left: 0; transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s; background-color: var(--text-dark); }

.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: 120px; }
.greeting { font-size: 1.1rem; font-weight: 500; color: var(--text-light); display: block; margin-bottom: 0.5rem; }
.title { font-size: 4rem; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -2px; }
.subtitle { font-size: 1.6rem; font-weight: 400; color: var(--text-light); margin-bottom: 1.5rem; }
.description { font-size: 1.1rem; color: var(--text-light); margin-bottom: 2rem; max-width: 450px; }

.dynamic-text-wrapper {
  display: inline-flex; align-items: center; font-size: 1.2rem; font-family: var(--font-heading);
  font-weight: 500; margin-bottom: 3rem; padding: 0.8rem 1.5rem; background-color: var(--bg-alt);
  border-radius: 50px; box-shadow: var(--shadow-sm);
}
.dynamic-text { position: relative; height: 1.5rem; overflow: hidden; width: 120px; }
.dynamic-text .word {
  position: absolute; left: 0; color: var(--primary); font-weight: 700;
  transform: translateY(100%); opacity: 0; transition: transform 0.5s ease, opacity 0.5s ease;
}
.dynamic-text .word.active { transform: translateY(0); opacity: 1; }

.cta-group { display: flex; gap: 1rem; flex-wrap:wrap; }
.hero-image-wrapper { position: relative; display: flex; justify-content: center; }
.image-bg-shape {
  position: absolute; width: 350px; height: 350px;
  background: linear-gradient(135deg, rgba(124, 108, 242, 0.2), rgba(242, 166, 166, 0.2));
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morph 8s ease-in-out infinite; z-index: 0;
}
@keyframes morph {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}
.hero-image {
  position: relative; z-index: 1; width: 320px; height: 380px; object-fit: cover;
  border-radius: 20px; box-shadow: var(--shadow-md); transition: var(--transition);
}
.hero-image:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); }
.mouse { width: 26px; height: 40px; border: 2px solid var(--text-light); border-radius: 15px; display: block; position: relative; }
.wheel {
  width: 4px; height: 8px; background-color: var(--primary); display: block;
  border-radius: 2px; margin: 6px auto; animation: scroll 2s infinite;
}
@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(15px); opacity: 0; }
}

.about-text p { margin-bottom: 1.5rem; font-size: 1.1rem; }
.learning-badge {
  background: linear-gradient(to right, rgba(124,108,242,0.1), transparent);
  padding: 1.5rem; border-left: 4px solid var(--primary); border-radius: 0 8px 8px 0;
}
.learning-badge .icon { margin-right: 0.5rem; }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; top: 0; left: 6px; width: 2px; height: 100%; background-color: var(--border-color);
}
.timeline-title { margin-bottom: 2rem; }
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot {
  position: absolute; left: -2rem; top: 5px; width: 14px; height: 14px;
  border-radius: 50%; background-color: var(--primary); border: 3px solid var(--bg-color); transform: translateX(1px);
}
.timeline-date { font-size: 0.85rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 0.5rem; }
.timeline-item h4 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.timeline-item p { color: var(--text-light); font-weight: 500; margin-bottom: 0.5rem; }
.timeline-desc { font-size: 0.95rem; font-weight: 400 !important; }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.skill-category {
  background-color: var(--bg-alt); padding: 2.5rem; border-radius: 20px;
  box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--border-color);
}
.skill-category:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(124, 108, 242, 0.3); }
.skill-category h3 { margin-bottom: 1.5rem; color: var(--primary); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.skill-tag {
  background-color: var(--bg-color); padding: 0.5rem 1.2rem; border-radius: 50px;
  font-size: 0.9rem; font-family: var(--font-heading); font-weight: 500;
  color: var(--text-dark); transition: var(--transition); border: 1px solid var(--border-color);
}
.skill-tag:hover { background-color: var(--primary); color: #fff; border-color: var(--primary); }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.project-card {
  background-color: var(--bg-alt); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.project-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.project-image { position: relative; height: 240px; overflow: hidden; }
.image-placeholder {
  width: 100%; height: 100%; background: rgba(124,108,242,0.1); display: flex;
  align-items: center; justify-content: center; transition: var(--transition);
}
.project-card:hover .image-placeholder { transform: scale(1.05); }
.project-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(31, 31, 31, 0.7); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.view-btn {
  background: #fff; color: var(--text-dark); padding: 0.8rem 2rem; border-radius: 50px;
  font-weight: 600; font-family: var(--font-heading); transform: translateY(20px); transition: var(--transition);
}
.project-card:hover .view-btn { transform: translateY(0); }
.project-info { padding: 2rem; }
.project-category {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--secondary);
  font-weight: 600; margin-bottom: 0.5rem; display: block;
}
.project-title { font-size: 1.4rem; margin-bottom: 0.8rem; }
.project-desc { color: var(--text-light); font-size: 0.95rem; }

.contact-card {
  background: linear-gradient(135deg, var(--bg-color), rgba(124, 108, 242, 0.05));
  padding: 4rem; border-radius: 30px; text-align: center; border: 1px solid rgba(124, 108, 242, 0.1);
}
.contact-card h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.contact-card p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; color: var(--text-light); }
.contact-methods { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }

.highlight-box {
  background: linear-gradient(to right, rgba(124, 108, 242, 0.1), rgba(242, 166, 166, 0.1));
  padding: 1.5rem 2rem;
  border-radius: 15px;
  border-left: 4px solid var(--primary);
  font-size: 1.15rem;
  font-weight: 500;
  font-family: var(--font-heading);
  color: var(--primary);
  max-width: 800px;
  margin: 2rem auto;
  box-shadow: var(--shadow-sm);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.social-icon-modern {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.social-icon-modern svg {
  transition: var(--transition);
}

.social-icon-modern:hover {
  transform: translateY(-5px);
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(124, 108, 242, 0.2);
}

.social-icon-modern:hover svg {
  transform: scale(1.1);
}

.footer { background-color: var(--bg-alt); padding: 3rem 0; border-top: 1px solid var(--border-color); }
.footer-container { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.brand-text { font-family: var(--font-heading); font-weight: 600; color: var(--text-dark); font-size: 1.2rem; }
.footer-socials { display: flex; gap: 1.5rem; }
.social-icon {
  width: 40px; height: 40px; border-radius: 50%; background-color: var(--bg-color); display: flex;
  align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 600;
  font-size: 0.9rem; transition: var(--transition); border: 1px solid var(--border-color);
}
.social-icon:hover { background-color: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-3px); }
.footer-copy { color: var(--text-light); font-size: 0.9rem; }

.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-up.appear { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }

@media (max-width: 900px) {
  .grid-2-col { grid-template-columns: 1fr; gap: 3rem; }
  .title { font-size: 3.2rem; }
  .hero-container { text-align: center; flex-direction: column-reverse; }
  .cta-group { justify-content: center; }
  .dynamic-text-wrapper { margin: 0 auto 3rem auto; }
  
  .nav-list {
    position: fixed; left: -100%; top: 0; flex-direction: column; background-color: var(--bg-alt);
    width: 100%; height: 100vh; justify-content: center; align-items: center; transition: 0.3s;
  }
  .nav-list.active { left: 0; }
  .hamburger { display: block; z-index: 1001; }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 600px) {
  .title { font-size: 2.5rem; }
  .contact-card { padding: 2.5rem 1.5rem; }
  .hero-image { width: 260px; height: 320px; }
}
