/* ============================================
   LUCA PIOVEZAN - PORTFOLIO
   style.css
   ============================================ */
/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg: hsl(220, 20%, 4%);
  --fg: hsl(0, 0%, 95%);
  --card: hsl(220, 18%, 8%);
  --primary: hsl(206, 53%, 47%);
  --primary-fg: hsl(220, 20%, 4%);
  --accent: hsl(206, 53%, 47%);
  --muted: hsl(220, 15%, 15%);
  --muted-fg: hsl(220, 10%, 55%);
  --border: hsl(220, 15%, 15%);
  --radius: 0.75rem;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
::selection {
  background: hsla(175, 85%, 55%, 0.3);
  color: white;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: hsla(175, 85%, 55%, 0.3); border-radius: 3px; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
/* --- Utility --- */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glow-text {
  filter: drop-shadow(0 0 40px hsla(175, 85%, 55%, 0.4)) drop-shadow(0 0 80px hsla(175, 85%, 55%, 0.2));
}
.glass {
  background: hsla(220, 18%, 8%, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid hsla(175, 85%, 55%, 0.1);
  border-radius: 1rem;
}
.glow-border {
  box-shadow: 0 0 20px hsla(175, 85%, 55%, 0.15), inset 0 0 20px hsla(175, 85%, 55%, 0.05);
  border: 1px solid hsla(175, 85%, 55%, 0.2);
}
/* --- Noise Overlay --- */
.noise-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}
/* --- Custom Cursor --- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s, height 0.3s, margin 0.3s;
}
.cursor-dot {
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  background: var(--primary);
  mix-blend-mode: difference;
}
.cursor-dot.hovering {
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
}
.cursor-ring {
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  border: 1px solid hsla(175, 85%, 55%, 0.3);
}
@media (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
}
/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.5s;
}
.navbar.scrolled {
  background: hsla(220, 18%, 8%, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid hsla(175, 85%, 55%, 0.1);
  padding: 1rem 0;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.nav-links {
    margin-left: 140px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover { color: var(--fg); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  font-size: 0.875rem;
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  transition: background 0.3s;
}
.nav-cta {
  box-shadow: 0 0 20px hsla(175, 85%, 55%, 0.15), inset 0 0 20px hsla(175, 85%, 55%, 0.05);
  border: 1px solid hsla(175, 85%, 55%, 0.2);
}
.nav-cta:hover { background: hsla(175, 85%, 55%, 0.1); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: all 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
}
/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: hsla(220, 20%, 4%, 0.95);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}
.mobile-link {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  transition: color 0.3s;
}
.mobile-link:hover { color: var(--primary); }
/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover { background: hsla(175, 85%, 55%, 0.9); transform: scale(1.05); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  box-shadow: 0 0 20px hsla(175, 85%, 55%, 0.15), inset 0 0 20px hsla(175, 85%, 55%, 0.05);
  border: 1px solid hsla(175, 85%, 55%, 0.2);
}
.btn-outline:hover { background: hsla(175, 85%, 55%, 0.1); transform: scale(1.05); }
.btn-full { width: 100%; justify-content: center; }
/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 6s ease-in-out infinite;
}
.hero-orb-1 {
  top: 25%; left: 20%;
  width: 300px; height: 300px;
  background: hsla(175, 85%, 55%, 0.06);
}
.hero-orb-2 {
  bottom: 20%; right: 20%;
  width: 400px; height: 400px;
  background: hsla(280, 70%, 60%, 0.05);
  animation-delay: 3s;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsla(175, 85%, 55%, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, hsla(175, 85%, 55%, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-badge {
  margin-bottom: 1.5rem;
}
.hero-badge span {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  box-shadow: 0 0 20px hsla(175, 85%, 55%, 0.15), inset 0 0 20px hsla(175, 85%, 55%, 0.05);
  border: 1px solid hsla(175, 85%, 55%, 0.2);
}
.hero-title {
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.hero-title-line { display: block; }
.hero-description {
  font-size: 1.125rem;
  color: var(--muted-fg);
  max-width: 540px;
  margin: 0 auto 3rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-mouse {
  width: 20px; height: 32px;
  border-radius: 9999px;
  border: 2px solid hsla(220, 10%, 55%, 0.3);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}
.scroll-dot {
  width: 4px; height: 8px;
  border-radius: 9999px;
  background: var(--primary);
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
/* --- Sections --- */
.section {
  padding: 8rem 0;
  position: relative;
}
.section-alt {
  background: linear-gradient(180deg, var(--bg) 0%, hsla(220, 15%, 12%, 0.3) 50%, var(--bg) 100%);
}
.section-label {
  display: block;
  font-size: 0.875rem;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.section-desc {
  font-size: 1.125rem;
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.stat-card {
  padding: 2rem;
  transition: transform 0.3s;
}
.stat-card:hover { transform: scale(1.05); }
.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--muted-fg);
  letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}
/* --- Skills --- */
.skills-container {
  max-width: 640px;
  margin: 0 auto;
}
.skill-item { margin-bottom: 2rem; }
.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.skill-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
}
.skill-percent {
  font-size: 0.875rem;
  color: var(--primary);
}
.skill-bar {
  height: 8px;
  background: var(--muted);
  border-radius: 9999px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.skill-fill.animated {
  /* width is set via JS */
}
/* Marquee */
.marquee-container {
  margin-top: 5rem;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: hsla(220, 15%, 15%, 0.8);
  transition: color 0.3s;
  flex-shrink: 0;
}
.marquee-track span:hover { color: var(--primary); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* --- Projects --- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.project-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}
.project-card:hover { transform: translateY(-8px); }
.project-thumb {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-thumb-1 { background: linear-gradient(135deg, hsla(175, 85%, 55%, 0.15), hsla(280, 70%, 60%, 0.15)); }
.project-thumb-2 { background: linear-gradient(135deg, hsla(280, 70%, 60%, 0.15), hsla(175, 85%, 55%, 0.15)); }
.project-thumb-3 { background: linear-gradient(135deg, hsla(175, 85%, 55%, 0.15), hsla(175, 85%, 55%, 0.05)); }
.project-thumb-4 { background: linear-gradient(135deg, hsla(175, 85%, 55%, 0.05), hsla(280, 70%, 60%, 0.15)); }
.project-number {
  font-family: 'Syne', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: hsla(0, 0%, 95%, 0.04);
  transition: transform 0.6s;
}
.project-card:hover .project-number { transform: scale(1.1); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: hsla(175, 85%, 55%, 0.1);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--primary);
  box-shadow: 0 0 20px hsla(175, 85%, 55%, 0.15), inset 0 0 20px hsla(175, 85%, 55%, 0.05);
  border: 1px solid hsla(175, 85%, 55%, 0.2);
}
.project-info { padding: 1.5rem; }
.project-category {
  font-size: 0.75rem;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0 0.75rem;
}
.project-desc {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.project-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--muted);
  color: var(--muted-fg);
}
@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
}
/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s;
}
.contact-card:hover { transform: scale(1.05); }
.contact-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon-primary { background: hsla(175, 85%, 55%, 0.1); color: var(--primary); }
.contact-icon-accent { background: hsla(280, 70%, 60%, 0.1); color: var(--accent); }
.contact-card-label {
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.contact-card-value {
  font-size: 1rem;
  color: var(--fg);
}
.contact-quote {
  padding: 2rem;
}
.contact-quote p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  font-style: italic;
  line-height: 1.7;
}
.contact-quote span {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--primary);
  font-style: normal;
}
.contact-form {
  padding: 2rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: hsla(220, 15%, 15%, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
/* --- Footer --- */
.footer {
  padding: 2rem 0;
  border-top: 1px solid hsla(220, 15%, 15%, 0.5);
}
.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.footer-copy {
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-link {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 2px;
}
.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-link:hover { color: var(--primary); }
.footer-link:hover::after { width: 100%; }
@media (max-width: 600px) {
  .footer-container { flex-direction: column; text-align: center; }
}
.hero {
  position: relative;
  overflow: hidden;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}