/* Base styles */
:root {
  --color-background: #050505;
  --color-foreground: #f7f7f7;
  --color-accent: rgba(192, 132, 252, 1);
  --color-accent-dark: #8040FF;
  --color-muted: rgba(255, 255, 255, 0.7);
  --container-width: min(1100px, 92vw);
  --transition-base: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent-dark);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8040FF;
  opacity: 0.9;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-dark) var(--color-background);
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  background: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-dark);
}

.container {
  width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-grid {
  display: grid;
  gap: 2.5rem;
}

.section-header {
  max-width: 500px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.section-subtitle {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(5, 5, 5, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-logo {
  height: 80px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.brand-mark {
  background: var(--color-accent-dark);
  color: #050505;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: var(--color-foreground);
  font: inherit;
}

select:focus-visible {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: 2px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-foreground);
  display: block;
}

/* Hero */
.hero-section {
  padding-top: 7rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hero-eyebrow {
  font-size: 0.95rem;
  color: var(--color-accent-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero-title {
  margin: 0 0 1.2rem;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.15;
}

.hero-subtitle {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-summary {
  display: flex;
  justify-content: flex-end;
}

.summary-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
  max-width: 340px;
}

.summary-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.summary-card p {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
}

.summary-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.summary-points li::before {
  content: '•';
  color: var(--color-accent-dark);
  margin-right: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--transition-base), box-shadow var(--transition-base),
    background var(--transition-base), color var(--transition-base);
}

.btn.primary {
  background: var(--color-accent-dark);
  color: #050505;
}

.btn.primary:hover,
.btn.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(192, 132, 252, 0.35);
}

.btn.secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-foreground);
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  border-color: var(--color-accent-dark);
  color: var(--color-accent-dark);
}

/* About */
#about {
  padding-top: 3rem;
}

.section-divider {
  width: var(--container-width);
  height: 1px;
  margin: -1rem auto 2rem;
  background: linear-gradient(90deg, rgba(192, 132, 252, 0) 0%, rgba(192, 132, 252, 0.45) 50%, rgba(192, 132, 252, 0) 100%);
  opacity: 0.8;
}

/* Skills */
.skills-grid {
  display: grid;
  margin-top: 2.5rem;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
  height: 100%;
}

.skill-card h3 {
  margin: 0 0 0.8rem;
}

.skill-card p {
  margin: 0 0 1.2rem;
  color: var(--color-muted);
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge {
  background: rgba(5, 5, 5, 0.75);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: var(--color-foreground);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.badge .badge-text {
  display: inline;
}

.badge .iconify {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  color: var(--color-accent-dark) !important;
  filter: drop-shadow(0 2px 4px rgba(192, 132, 252, 0.3));
  flex-shrink: 0 !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  vertical-align: middle;
  margin-right: 0.2rem;
}

.badge-group .badge .iconify {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 16px !important;
  height: 16px !important;
}

.badge-group .badge span.iconify {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  margin-right: 0.5rem;
}

.badge span.iconify[data-icon] {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
}

.badge-group .badge .iconify[data-icon] {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 16px !important;
  height: 16px !important;
}

/* Projects */
#projects {
  padding-top: 3rem;
}

.projects-grid {
  column-count: auto;
  column-width: 300px;
  column-gap: 1.8rem;
  margin-top: 2.5rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 1.8rem;
  height: auto;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(192, 132, 252, 0.6);
}

.project-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.project-figure {
  margin: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45), 0 10px 30px rgba(192, 132, 252, 0.18);
}

.project-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: saturate(0.95);
  transition: transform var(--transition-base), filter var(--transition-base);
  cursor: zoom-in;
}

.project-figure img.crop-image {
  object-fit: cover;
  object-position: center;
}

.project-card:hover .project-figure img,
.project-card:focus-within .project-figure img {
  transform: scale(1.02);
  filter: saturate(1);
}

.project-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 55%, rgba(5, 5, 5, 0.45) 100%);
  pointer-events: none;
}

.project-figure span {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  background: rgba(5, 5, 5, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  z-index: 1;
}

.project-description {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--color-accent-dark);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-base);
}

.project-link:hover,
.project-link:focus-visible {
  color: var(--color-foreground);
}

.project-link .iconify {
  width: 16px;
  height: 16px;
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  font-size: 0.92rem;
}

.tech-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.65rem 1rem;
}

.tech-list li .iconify {
  width: 18px;
  height: 18px;
  color: var(--color-accent-dark);
  filter: drop-shadow(0 2px 6px rgba(192, 132, 252, 0.35));
}

/* Contact */
.contact-section {
  position: relative;
  padding: 2rem 0;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, rgba(192, 132, 252, 0) 0%, rgba(192, 132, 252, 0.8) 50%, rgba(192, 132, 252, 0) 100%);
  border-radius: 2px;
}

.contact-header {
  text-align: center;
  max-width: 100%;
  margin-bottom: 0;
}

.contact-header .section-title {
  margin-bottom: 0;
}

.contact-cta-wrapper {
  text-align: center;
  margin: -8rem 0 0 0;
  padding: 0;
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-cta {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  padding: 1rem 0;
  background: linear-gradient(135deg, rgba(192, 132, 252, 1) 0%, rgba(99, 102, 241, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.4;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
}

.contact-cta::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, rgba(192, 132, 252, 0) 0%, rgba(192, 132, 252, 0.7) 50%, rgba(192, 132, 252, 0) 100%);
  border-radius: 2px;
}

.contact-section .section-content {
  margin-top: -2rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.2rem;
}

.contact-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.contact-link {
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--color-accent-dark);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  z-index: 999;
  padding: 2rem;
}

.lightbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 92vh;
  display: grid;
  gap: 1rem;
}

.lightbox img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.lightbox button {
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 5, 5, 0.75);
  color: var(--color-foreground);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: inherit;
  cursor: pointer;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.85);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-muted);
  text-align: center;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
}

.whatsapp-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  animation: whatsapp-glow 2s ease-in-out infinite;
}

@keyframes whatsapp-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.7), 0 0 30px rgba(37, 211, 102, 0.5);
  }
}

.whatsapp-button:hover {
  background: #25D366;
  animation: whatsapp-glow 1s ease-in-out infinite;
}

.whatsapp-icon {
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: white;
}

.whatsapp-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
  color: white;
}

.whatsapp-text span:first-child {
  font-size: 0.8rem;
  color: white;
  -webkit-text-stroke: 0.5px var(--color-accent-dark);
  text-stroke: 0.5px var(--color-accent-dark);
  -webkit-text-fill-color: white;
  text-fill-color: white;
  paint-order: stroke fill;
}

.whatsapp-text span:last-child {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  -webkit-text-stroke: 0.5px var(--color-accent-dark);
  text-stroke: 0.5px var(--color-accent-dark);
  -webkit-text-fill-color: white;
  text-fill-color: white;
  paint-order: stroke fill;
}



/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: none !important;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .language-switcher {
    order: 2;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .summary-card {
    max-width: none;
  }

  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
  }

  .whatsapp-button {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    gap: 0.4rem;
  }

  .whatsapp-text span:first-child {
    font-size: 0.75rem;
    color: white;
    -webkit-text-stroke: 0.5px var(--color-accent-dark);
    text-stroke: 0.5px var(--color-accent-dark);
    -webkit-text-fill-color: white;
    text-fill-color: white;
    paint-order: stroke fill;
  }

  .whatsapp-text span:last-child {
    font-size: 0.9rem;
    color: white;
    -webkit-text-stroke: 0.5px var(--color-accent-dark);
    text-stroke: 0.5px var(--color-accent-dark);
    -webkit-text-fill-color: white;
    text-fill-color: white;
    paint-order: stroke fill;
  }

  .whatsapp-icon {
    width: 16px;
    height: 16px;
    font-size: 0.9rem;
  }

  .whatsapp-icon {
    width: 14px;
    height: 14px;
    font-size: 0.75rem;
  }
}

