* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(145deg, #0a0f1a 0%, #0f172a 100%);
  color: #e2e8f0;
  line-height: 1.5;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(59, 143, 194, 0.3);
  border-radius: 50%;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes neonPulse {
  0% { box-shadow: 0 0 5px rgba(59, 143, 194, 0.3); }
  50% { box-shadow: 0 0 15px rgba(59, 143, 194, 0.5); }
  100% { box-shadow: 0 0 5px rgba(59, 143, 194, 0.3); }
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

.fade-in-left { animation: fadeInLeft 0.7s ease forwards; opacity: 0; }
.fade-in-right { animation: fadeInRight 0.7s ease forwards; opacity: 0; }
.fade-in-up { animation: fadeInUp 0.7s ease forwards; opacity: 0; }
.slide-up { animation: slideUp 0.5s ease forwards; opacity: 0; }
.zoom-in { animation: zoomIn 0.4s ease forwards; opacity: 0; }
.floating { animation: float 3s ease-in-out infinite; }

.navbar {
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
  border-bottom: 1px solid rgba(59, 143, 194, 0.3);
}
.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b8fc2, #0f62ac);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.menu-toggle {
  display: block;
  font-size: 1.5rem;
  color: #3b8fc2;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.nav-links {
  display: none;
  flex-direction: column;
  width: 100%;
  list-style: none;
  background: #0f172a;
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(59, 143, 194, 0.3);
}
.nav-links.active { display: flex; }
.nav-links li { border-bottom: 1px solid rgba(59, 143, 194, 0.2); }
.nav-links li:last-child { border-bottom: none; }
.nav-links a {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 600;
  color: #e2e8f0;
  transition: 0.2s;
}
.nav-links a:hover, .nav-links a:active {
  background: #1e293b;
  color: #3b8fc2;
}

.hero {
  padding: 40px 0 30px;
  min-height: auto;
  display: flex;
  align-items: center;
}
.hero-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.hero-image { text-align: center; }
.foto-card {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  padding: 4px;
  box-shadow: 0 15px 25px -8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.foto-card:hover { transform: scale(1.02); }
.foto-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #3b8fc2;
}
.social-links-mini {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}
.social-links-mini a {
  width: 34px;
  height: 34px;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b8fc2;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid #3b8fc240;
  text-decoration: none;
}
.social-links-mini a:hover {
  transform: translateY(-3px);
  background: #3b8fc2;
  color: white;
}
.hero-text { text-align: center; }
.badge {
  display: inline-block;
  background: #0f62ac20;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #3b8fc2;
  margin-bottom: 12px;
  border: 1px solid #0f62ac40;
}
.hero-text h1 {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(125deg, #e2e8f0, #3b8fc2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.tagline {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 20px;
}
.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary, .btn-outline {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary {
  background: linear-gradient(135deg, #0f62ac, #3b8fc2);
  color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 15px -3px #0f62ac; }
.btn-outline {
  background: transparent;
  border: 2px solid #3b8fc2;
  color: #3b8fc2;
}
.btn-outline:hover { background: #0f62ac20; transform: translateY(-2px); }

#about { padding: 30px 0; }
.about-wrapper { max-width: 100%; margin: 0 auto; }
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: #e2e8f0;
}
.section-title:after {
  content: '';
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #0f62ac, #3b8fc2);
  display: block;
  margin: 10px auto 0;
  border-radius: 4px;
}
.about-card {
  background: #1e293b;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #3b8fc230;
  transition: all 0.3s ease;
}
.about-card:hover { border-color: #3b8fc2; transform: translateY(-3px); }
.about-card p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 12px;
}
.about-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #3b8fc230;
}
.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #94a3b8;
  background: #0f172a;
  padding: 5px 10px;
  border-radius: 30px;
}
.detail-item i { color: #3b8fc2; font-size: 0.75rem; }

#skills { padding: 30px 0; }
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.skill-card {
  background: #1e293b;
  padding: 8px 18px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: 1px solid #3b8fc230;
}
.skill-card:hover { transform: translateY(-3px) scale(1.02); border-color: #3b8fc2; }
.neon-glow { animation: neonPulse 2s infinite; }
.skill-card i { font-size: 1.1rem; color: #3b8fc2; }

#certificates { padding: 30px 0; }
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cert-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #0f172a;
  border: 1px solid #3b8fc230;
}
.cert-card:hover { transform: translateY(-3px); border-color: #3b8fc2; box-shadow: 0 8px 15px -5px rgba(0,0,0,0.3); }
.cert-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.cert-name {
  padding: 6px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  color: #3b8fc2;
  background: #0f172a;
  border-top: 1px solid #3b8fc230;
}
.cert-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cert-card:hover .cert-overlay { opacity: 1; }
.cert-overlay i { font-size: 1.3rem; color: #3b8fc2; }
.cert-overlay span { font-size: 0.65rem; }

#projects { padding: 30px 0; }
.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.search-box {
  display: flex;
  align-items: center;
  background: #1e293b;
  border: 1px solid #3b8fc230;
  border-radius: 40px;
  padding: 6px 16px;
  width: 100%;
  max-width: 280px;
}
.search-box i { color: #3b8fc2; font-size: 0.85rem; margin-right: 10px; }
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #e2e8f0;
  font-size: 0.8rem;
  width: 100%;
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.project-card {
  background: #1e293b;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #3b8fc220;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: #3b8fc2;
}
.project-img {
  height: 110px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b8fc2;
}
.project-img i { font-size: 2rem; }
.project-info { padding: 12px; }
.project-info h3 {
  font-size: 0.95rem;
  margin-bottom: 5px;
  color: #e2e8f0;
}
.project-info p {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 8px;
}
.tag {
  background: #0f62ac20;
  padding: 2px 8px;
  border-radius: 30px;
  font-size: 0.55rem;
  font-weight: 600;
  display: inline-block;
  margin-right: 5px;
  margin-bottom: 6px;
  color: #3b8fc2;
}
.project-buttons {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.demo-btn {
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #0f62ac, #3b8fc2);
  color: white;
}

.toggle-btn-container {
  text-align: center;
  margin-top: 20px;
}
.toggle-btn {
  background: #0f172a;
  border: 1px solid #3b8fc2;
  color: #3b8fc2;
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.toggle-btn:hover {
  background: #3b8fc2;
  color: white;
  transform: translateY(-2px);
}

.no-results {
  text-align: center;
  padding: 30px;
  color: #64748b;
}
.no-results i { font-size: 2rem; margin-bottom: 10px; display: block; }

#contact { padding: 30px 0; }
.contact-form-container {
  max-width: 500px;
  margin: 0 auto;
  background: #1e293b;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #3b8fc230;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3b8fc2;
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-group input, .form-group textarea {
  background: #0f172a;
  border: 1px solid #3b8fc230;
  border-radius: 12px;
  padding: 8px 12px;
  color: #e2e8f0;
  font-size: 0.8rem;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #3b8fc2;
  box-shadow: 0 0 8px rgba(59, 143, 194, 0.3);
}
.submit-btn {
  background: linear-gradient(135deg, #0f62ac, #3b8fc2);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px #0f62ac;
}
.form-status {
  margin-top: 12px;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  text-align: center;
}
.form-status.success {
  background: #0f62ac20;
  color: #3b8fc2;
  border: 1px solid #3b8fc2;
}
.form-status.error {
  background: #dc262620;
  color: #ef4444;
  border: 1px solid #ef4444;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.7rem;
  color: #64748b;
  border-top: 1px solid #1e293b;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}
.modal-content {
  position: relative;
  background: #1e293b;
  margin: 20% auto;
  padding: 15px;
  width: 90%;
  max-width: 400px;
  border-radius: 16px;
  border: 1px solid #3b8fc2;
}
.modal-cert img { width: 100%; height: auto; border-radius: 10px; }
.close-modal {
  position: absolute;
  right: 12px;
  top: 8px;
  color: #94a3b8;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.close-modal:hover { color: #3b8fc2; }

@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .menu-toggle { display: none; }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    width: auto;
    background: transparent;
    margin-top: 0;
    gap: 24px;
    border: none;
  }
  .nav-links li { border-bottom: none; }
  .nav-links a { padding: 8px 0; }
  .hero-wrapper {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }
  .hero-image { flex: 1; }
  .hero-text { flex: 1.5; text-align: left; }
  .hero-text h1 { font-size: 2.2rem; }
  .btn-group { justify-content: flex-start; }
  .foto-card { width: 200px; height: 200px; }
  .section-title { font-size: 1.8rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .certificates-grid { grid-template-columns: repeat(4, 1fr); gap: 15px; }
}

@media (min-width: 1024px) {
  .hero-text h1 { font-size: 2.8rem; }
  .foto-card { width: 240px; height: 240px; }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-img-real {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.project-img-placeholder {
  height: 160px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
  