@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&family=Space+Grotesk:wght@400;700&display=swap');

:root {
  /* Paleta de Colores Tech Profesional */
  --primary-color: #00D9FF;
  --primary-dark: #00A8CC;
  --secondary-color: #6C63FF;
  --accent-color: #FF6584;
  --bg-dark: #0A0E27;
  --bg-darker: #050816;
  --bg-card: #1A1F3A;
  --text-primary: #FFFFFF;
  --text-secondary: #A0AEC0;
  --text-muted: #64748B;
  --success: #10B981;
  --gradient-primary: linear-gradient(135deg, #00D9FF 0%, #6C63FF 100%);
  --gradient-secondary: linear-gradient(135deg, #6C63FF 0%, #FF6584 100%);
  --gradient-bg: linear-gradient(180deg, #0A0E27 0%, #050816 100%);
  
  /* Shadows & Effects */
  --shadow-sm: 0 2px 8px rgba(0, 217, 255, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 217, 255, 0.15);
  --shadow-lg: 0 16px 48px rgba(0, 217, 255, 0.2);
  --shadow-glow: 0 0 30px rgba(0, 217, 255, 0.3);
  --shadow-glow-secondary: 0 0 30px rgba(108, 99, 255, 0.3);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-darker);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Particles Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  background: var(--gradient-bg);
}

/* ==================== NAVBAR ==================== */
.navbar {
  background: rgba(10, 14, 39, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
  padding: 1rem 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
  position: relative;
}

.logo-img {
  transition: transform var(--transition-base);
  filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
}

.navbar-brand:hover .logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.6));
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 0.5rem;
  position: relative;
  transition: all var(--transition-base);
  padding: 0.5rem 1rem !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link:hover::after {
  width: 80%;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 0 4rem;
}

.hero-content {
  text-align: left;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.typing-wrapper {
  min-height: 40px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.professions {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 500;
}

.hero-divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 2rem 0;
  border-radius: 2px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn i {
  position: relative;
  z-index: 1;
  transition: transform var(--transition-base);
}

.btn:hover i {
  transform: translateX(5px);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(0, 217, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 217, 255, 0.3);
}

.btn-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 3s ease-in-out infinite;
}

.glow-effect {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}

.hero-image {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.3));
  transition: transform var(--transition-base);
}

.hero-image:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 50px rgba(0, 217, 255, 0.5));
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 217, 255, 0.1);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--primary-color);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 217, 255, 0.4);
  color: white;
}

.social-icon:hover::before {
  width: 100%;
  height: 100%;
}

.social-icon i {
  position: relative;
  z-index: 1;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 2px;
  animation: scroll 1.5s infinite;
}

/* ==================== SECTION TITLES ==================== */
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-primary);
}

.title-number {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

.title-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  max-width: 300px;
}

/* ==================== SKILLS SECTION ==================== */
.skills-section {
  padding: 6rem 0;
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 217, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
}

.skill-card:hover::before {
  opacity: 0.1;
}

.skill-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.skill-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--primary-color);
  transition: all var(--transition-base);
}

.skill-card:hover .skill-icon svg {
  fill: white;
  transform: scale(1.1) rotate(5deg);
}

.skill-name {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: color var(--transition-base);
}

.skill-card:hover .skill-name {
  color: white;
}

/* ==================== PROJECTS SECTION ==================== */
.projects-section {
  padding: 6rem 0;
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 217, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 0;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3);
  border-color: var(--primary-color);
}

.project-card:hover::before {
  opacity: 0.05;
}

.project-image {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.95) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.project-content {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.project-content h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tech span {
  padding: 0.4rem 0.8rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.project-tech span:hover {
  background: rgba(0, 217, 255, 0.2);
  transform: translateY(-2px);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-base);
  position: relative;
}

.project-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-base);
}

.project-link:hover {
  color: white;
  gap: 0.75rem;
}

.project-link:hover::after {
  width: 100%;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
  padding: 6rem 0;
  position: relative;
}

.contact-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(0, 217, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 3rem 0;
  background: rgba(10, 14, 39, 0.5);
  border-top: 1px solid rgba(0, 217, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo img {
  filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
  transition: transform var(--transition-base);
}

.footer-logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.6));
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: all var(--transition-base);
}

.footer-social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}

.heart {
  color: var(--accent-color);
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
  }
  50% {
    box-shadow: 0 6px 30px rgba(0, 217, 255, 0.6);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.1);
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .hero-section {
    padding: 6rem 0 3rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-divider {
    margin: 2rem auto;
  }
  
  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .title-line {
    max-width: 150px;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .social-icons {
    margin-top: 2rem;
  }
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* ==================== UTILITIES ==================== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(26, 31, 58, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 217, 255, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Selection */
::selection {
  background: var(--primary-color);
  color: white;
}

::-moz-selection {
  background: var(--primary-color);
  color: white;
}


/* Contact Form Styles */
.contact-form {
    background: rgba(17, 34, 64, 0.4);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-form .form-group {
    margin-bottom: 1.75rem;
}

.contact-form label {
    color: #64ffda;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.contact-form label i {
    margin-right: 0.5rem;
    opacity: 0.8;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(100, 255, 218, 0.2);
    color: #fff;
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #64ffda;
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
    color: #fff;
    outline: none;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.contact-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.contact-form .btn-submit i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.contact-form .btn-submit:hover i {
    transform: translateX(5px);
}

/* Form Status Messages */
.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid #64ffda;
    color: #64ffda;
    display: block;
}

.form-status.error {
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid #ff6464;
    color: #ff6464;
    display: block;
}

/* Loading State */
.contact-form.loading .btn-submit {
    pointer-events: none;
    opacity: 0.7;
}

.contact-form.loading .btn-submit span::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form .form-control {
        padding: 0.75rem 1rem;
    }
  }

.extjs-icon {
    height: 100px !important;
    width: auto;
}
