* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #05030A;
  color: #EDEDF5;
  line-height: 1.5;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

:root {
  --grad-bright: linear-gradient(135deg, #A855F7, #EC4899, #F97316, #FF6B35);
  --grad-border: linear-gradient(95deg, #A855F7, #EC4899, #F97316);
  --grad-card: linear-gradient(145deg, #1A102F, #0F0A1E);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.gradient-title {
  background: linear-gradient(135deg, #A855F7, #EC4899, #F97316, #FF8C42);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 3s ease infinite;
  text-align: center;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes blinkCursor {
  0%, 100% { border-color: transparent; }
  50% { border-color: #EC4899; }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
  position: relative;
  z-index: 2;
  background-color: #05030A;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(5, 3, 10, 0.95);
  backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #EC4899;
}

.logo-text {
  font-weight: 800;
  font-size: 1.35rem;
  background: linear-gradient(135deg, #A855F7, #EC4899, #F97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-menu {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #EC4899;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: rgba(5, 3, 10, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: right 0.3s ease;
  z-index: 999;
  border-left: 1px solid rgba(168, 85, 247, 0.3);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  color: #E2E8F0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: var(--transition-fast);
  padding: 0.5rem;
}

.mobile-menu a:hover {
  color: #F97316;
}

.mobile-menu .btn-cv-nav {
  background: rgba(168, 85, 247, 0.15);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  border: 1px solid rgba(236, 72, 153, 0.5);
}

.lang-toggle-mobile {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.lang-btn-mobile {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.5);
  color: #CBD5E1;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  transition: var(--transition-fast);
  font-size: 0.9rem;
}

.lang-btn-mobile.active {
  background: linear-gradient(95deg, #A855F7, #EC4899);
  color: white;
}

.nav-links a, .nav-links .btn-cv-nav {
  color: #E2E8F0;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #F97316;
}

.btn-cv-nav {
  background: rgba(168, 85, 247, 0.15);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  border: 1px solid rgba(236, 72, 153, 0.5);
  font-weight: 600;
}

.lang-toggle {
  display: flex;
  gap: 8px;
  background: #1A102F;
  padding: 0.3rem;
  border-radius: 40px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #CBD5E1;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0.9rem;
  border-radius: 30px;
  transition: var(--transition-fast);
  font-size: 0.85rem;
}

.lang-btn.active {
  background: linear-gradient(95deg, #A855F7, #EC4899);
  color: white;
}

/* HERO */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.spline-full {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.spline-full iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: auto;
  display: block;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  pointer-events: none;
}

.hero-left {
  animation: fadeUp 0.8s ease forwards;
  max-width: 700px;
  width: 100%;
  pointer-events: auto;
}

.typewriter-name {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-family: 'Inter', monospace;
  border-right: 3px solid #EC4899;
  white-space: pre-line;
  display: inline-block;
  background: linear-gradient(135deg, #A855F7, #EC4899, #F97316, #FF8C42);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 3s ease infinite, blinkCursor 0.8s step-end infinite;
  text-align: left;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #CBD5E1;
  letter-spacing: 0.03em;
  margin-top: 1rem;
  border-left: 3px solid #F97316;
  padding-left: 1rem;
  text-align: left;
}

.hero-description {
  margin-top: 1.5rem;
  max-width: 550px;
}

.hero-description-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #E2E8F0;
  background: rgba(10, 8, 20, 0.6);
  backdrop-filter: blur(8px);
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  border-left: 3px solid #F97316;
  text-align: left;
}

.social-vertical {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  pointer-events: auto;
}

.social-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon-wrapper a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(26, 16, 47, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  transition: var(--transition-bounce);
  border: 1px solid rgba(168, 85, 247, 0.5);
}

.social-icon-wrapper a:hover {
  transform: scale(1.15) translateX(-3px);
  background: linear-gradient(135deg, #A855F7, #EC4899);
}

.social-icon-wrapper img {
  width: 22px;
  height: 22px;
}

.social-tooltip {
  position: absolute;
  right: 55px;
  background: linear-gradient(95deg, #A855F7, #EC4899);
  color: white;
  padding: 0.3rem 0.9rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.social-icon-wrapper:hover .social-tooltip {
  opacity: 1;
  transform: translateX(-5px);
}

/* ========== SKILLS SECTION ========== */
.constellation-section {
  background: radial-gradient(ellipse at 50% 30%, #0A0618 0%, #05030A 100%);
  position: relative;
}

.constellations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.skill-category {
  background: rgba(10, 8, 20, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(168, 85, 247, 0.2);
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.1);
}

.skill-category-title {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(168, 85, 247, 0.3);
  background: linear-gradient(135deg, #A855F7, #EC4899, #F97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.skill-badge {
  background: rgba(26, 16, 47, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #CBD5E1;
  transition: all 0.2s ease;
  cursor: default;
}

.skill-badge:hover {
  background: linear-gradient(135deg, #A855F7, #EC4899);
  color: white;
  transform: scale(1.05);
  border-color: transparent;
}

/* About */
.about-grid {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.about-text {
  flex: 1.5;
}

.about-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo {
  max-width: 100%;
  height: auto;
  border-radius: 2rem;
  border: 3px solid transparent;
  background: linear-gradient(white, white) padding-box, var(--grad-border) border-box;
}

/* Project Cards */
.project-card {
  display: flex;
  gap: 2rem;
  background: var(--grad-card);
  border-radius: 2rem;
  margin-bottom: 3rem;
  padding: 1.8rem;
  transition: var(--transition-bounce);
  border: 1px solid rgba(168, 85, 247, 0.2);
  flex-wrap: wrap;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.6);
}

.project-img {
  flex: 1;
  min-width: 250px;
  border-radius: 1.5rem;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  display: block;
}

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

.project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, #A855F7, #EC4899, #F97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.project-desc {
  color: #B9C3E6;
  margin-bottom: 1.5rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  border: 1px solid #A855F7;
  padding: 0.5rem 1.3rem;
  border-radius: 40px;
  color: white;
  font-weight: 500;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-outline:hover {
  background: #A855F7;
  border-color: #EC4899;
  transform: translateY(-2px);
}

.btn-itch {
  background: rgba(250, 92, 92, 0.2);
  border-color: #FA5C5C;
}

.btn-itch:hover {
  background: #FA5C5C;
}

/* Contact */
.contact-form {
  background: rgba(26, 16, 47, 0.6);
  backdrop-filter: blur(12px);
  padding: 2.5rem;
  border-radius: 2rem;
  position: relative;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #CBD5E1;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 1rem;
  background: #0E0A1A;
  border: 1px solid #2D2550;
  border-radius: 1rem;
  color: white;
  font-family: inherit;
  transition: var(--transition-fast);
}

input:focus, textarea:focus {
  outline: none;
  border-color: #EC4899;
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
}

.btn-gradient {
  background: linear-gradient(95deg, #A855F7, #EC4899, #F97316);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  color: white;
  cursor: pointer;
  transition: var(--transition-bounce);
  background-size: 200% auto;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  background-position: right center;
}

footer {
  background: #03010A;
  border-top: 1px solid #2A1F44;
  padding: 2rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .constellations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .hero-grid { padding: 0 2rem; align-items: center; }
  .hero-left { text-align: center; }
  .typewriter-name { font-size: 2.8rem; }
  .hero-subtitle { border-left: none; border-top: 2px solid #F97316; padding-left: 0; padding-top: 0.5rem; display: inline-block; text-align: center; }
  .hero-description { margin: 1.5rem auto 0 auto; text-align: center; }
  .hero-description-text { text-align: center; border-left: none; border-top: 2px solid #F97316; }
  .social-vertical { right: 1rem; gap: 0.8rem; }
  .about-grid { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .constellations-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .skill-category {
    padding: 1rem;
  }
  
  .skill-category-title {
    font-size: 1rem;
  }
  
  .skill-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }
  
  .hero-grid { padding: 0 1.5rem; }
  .social-vertical { display: none; }
  .typewriter-name { font-size: 2rem; }
  .hero-description-text { font-size: 0.85rem; }
  .project-card { padding: 1rem; }
  .project-title { font-size: 1.3rem; }
  .contact-form { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 1rem; }
  .logo-img { width: 36px; height: 36px; }
  .typewriter-name { font-size: 1.5rem; }
  .hero-subtitle { font-size: 0.7rem; }
  .section-header h2 { font-size: 1.8rem !important; }
}
