/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", system-ui, sans-serif;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(63, 126, 166, 0.3) rgba(12, 5, 53, 0.356);
}

html, body {
  overflow-x: hidden;
  background: #060607;
  color: #e5e7eb;
  scroll-behavior: smooth !important;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; }
.px-section { padding-left: 5%; padding-right: 5%; }
@media (min-width: 1024px) {
  .px-section { padding-left: 10%; padding-right: 10%; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
::-webkit-scrollbar-track {
  background: rgba(3, 0, 20, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(63, 126, 166, 0.1);
}
::-webkit-scrollbar-thumb {
  background: rgba(63, 126, 166, 0.3);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 20px rgba(224, 151, 92, 0.2), 0 0 10px rgba(63, 126, 166, 0.2);
  transition: all .3s ease;
}
::-webkit-scrollbar-thumb:hover { background: rgba(63, 126, 166, 0.5); }

/* Gradient text helper */
.text-gradient {
  background-image: linear-gradient(to right, #3f7ea6, #3f7ea6);;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   LOADING / WELCOME SCREEN
   ========================================================================== */
#welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #060607;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity .6s ease, visibility .6s ease;
}
#welcome-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.1);
  border-top-color: #3f7ea6;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader-text {
  font-size: .95rem;
  letter-spacing: .05em;
  background-image: linear-gradient(to right, #3f7ea6, #3f7ea6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

/* ==========================================================================
   ANIMATED BACKGROUND
   ========================================================================== */
#bg-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(128px);
  mix-blend-mode: multiply;
  opacity: .25;
  transition: transform 1.4s ease-out;
  width: 24rem;
  height: 24rem;
}
.blob-1 { top: 0; left: -1rem; background: #397296; width: 18rem; height: 18rem; }
.blob-2 { top: 0; right: -1rem; background: #3f7ea6; }
.blob-3 { bottom: -2rem; left: -20%; background: #5b8fb0; }
.blob-4 { bottom: -2.5rem; right: 5rem; background: #2a2a2a; opacity: .3; }
@media (min-width: 640px) {
  .blob-1 { width: 24rem; height: 24rem; }
}
@media (max-width: 639px) {
  .blob-2, .blob-4 { display: none; }
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, #4f4f4f10 1px, transparent 1px),
    linear-gradient(to bottom, #4f4f4f10 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ==========================================================================
   SCROLL REVEAL (rimpiazza AOS)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: transform, opacity;
}
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  transition: all .5s ease;
  background: #060607;
}
#navbar.scrolled { background: rgba(3, 0, 20, .5); backdrop-filter: blur(20px); }
#navbar.menu-open { background: #060607; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  -webkit-background-clip: text;
  background-clip: text;
  color: white;
}
.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-link {
  position: relative;
  padding: .5rem .25rem;
  font-size: .875rem;
  font-weight: 500;
  color: #cfe0ea;
  transition: color .3s;
}
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background-image: linear-gradient(to right, #3f7ea6, #3f7ea6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active {
  background-image: linear-gradient(to right, #3f7ea6, #3f7ea6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.nav-link.active::after { transform: scaleX(1); }

.nav-toggle { display: block; color: #cfe0ea; }
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 24px; height: 24px; }

.nav-mobile {
  display: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all .3s ease;
}
.nav-mobile.open { display: block; max-height: 500px; opacity: 1; }
.nav-mobile-inner { padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile .nav-link { display: block; padding: .75rem 1rem; font-size: 1.125rem; }

/* ==========================================================================
   HERO / HOME
   ========================================================================== */
#Home {
  min-height: 100vh;
  overflow: hidden;
}
.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 3rem;
  padding-top: 4rem;
}
@media (min-width: 1024px) {
  .hero-grid { flex-direction: row; justify-content: space-between; padding-top: 0; }
}
.hero-left { width: 100%; display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .hero-left { width: 50%; } }

.badge {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}
.badge-inner {
  position: relative;
  padding: .5rem 1rem;
  border-radius: 9999px;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1);
}
.badge-inner span {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 500;
  background-image: linear-gradient(to right, #3f7ea6, #3f7ea6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.badge-inner svg { width: 16px; height: 16px; color: #6fa8c9; flex-shrink: 0; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-10px);} }

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
}
@media (min-width: 640px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1280px) { .hero-title { font-size: 4.5rem; } }
.hero-title .line1 {
  background-image: linear-gradient(to right, #fff, #dbe9f0, #d9d9d9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title .line2 {
  background-image: linear-gradient(to right, #3f7ea6, #3f7ea6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.typing-line { height: 2rem; display: flex; align-items: center; font-size: 1.25rem; font-weight: 300; color: #e5e7eb; }
.typing-cursor { display: inline-block; width: 3px; height: 1.5rem; margin-left: 4px; background-image: linear-gradient(to right, #3f7ea6, #3f7ea6); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc { font-size: 1.05rem; color: #9ca3af; max-width: 36rem; line-height: 1.7; font-weight: 300; }

.tech-badges { display: flex; flex-wrap: wrap; gap: .75rem; }
.tech-badge {
  display: none;
  padding: .5rem 1rem;
  border-radius: 9999px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.1);
  font-size: .875rem;
  color: #d1d5db;
  transition: background .3s;
}
@media (min-width: 640px) { .tech-badge { display: block; } }
.tech-badge:hover { background: rgba(255,255,255,.1); }

.cta-row { display: flex; gap: .75rem; }
.cta-btn {
  position: relative;
  width: 160px;
}
.cta-btn-glow {
  position: absolute;
  inset: -2px;
  border-radius: .75rem;
  background-image: linear-gradient(to right, #3f7ea6, #3f7ea6);
  opacity: .5;
  filter: blur(8px);
  transition: opacity .7s;
}
.cta-btn:hover .cta-btn-glow { opacity: .9; }
.cta-btn-inner {
  position: relative;
  height: 44px;
  background: #060607;
  backdrop-filter: blur(16px);
  border-radius: .5rem;
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .875rem;
  overflow: hidden;
}
.cta-btn-inner span {
  background-image: linear-gradient(to right, #e5e7eb, #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 500;
}
.cta-btn-inner svg { width: 16px; height: 16px; color: #e5e7eb; transition: transform .3s; }
.cta-btn:hover .cta-btn-inner svg { transform: translateX(3px); }

.social-row { display: none; gap: 1rem; }
@media (min-width: 640px) { .social-row { display: flex; } }
.social-btn {
  position: relative;
  padding: .75rem;
  height: 6.3vh;
  border-radius: .75rem;
  background: rgba(0,0,0,.5);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1);
  transition: border-color .3s;
}
.social-btn:hover::before { top: 0; }
.social-btn:hover { border-color: rgba(255,255,255,.2); transform: translateY(-8px) rotate(-5deg); box-shadow: 0 15px 30px rgba(0,0,0,0.2);}
.social-btn svg { width: 20px; height: 20px; color: #9ca3af; transition: color .3s; }
.social-btn:hover svg { color: #fff; transform: scale(1.1);}

.hero-right {
  width: 100%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
@media (min-width: 640px) { .hero-right { height: 420px; } }
@media (min-width: 1024px) { .hero-right { width: 50%; height: 620px; } }
.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-glow {
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  background-image: linear-gradient(to right, rgba(63, 126, 166,.15), rgba(224, 151, 92,.15));
  filter: blur(64px);
}
.hero-visual-card {
  position: relative;
  z-index: 1;
  width: 80%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  border-radius: 2rem;
  background: linear-gradient(160deg, rgba(63, 126, 166,.15), rgba(224, 151, 92,.08));
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatSlow 6s ease-in-out infinite;
}
.hero-visual-card svg { width: 40%; height: 40%; color: #8fb8d4; opacity: .9; }
@keyframes floatSlow { 0%,100% { transform: translateY(0) rotate(0deg);} 50% { transform: translateY(-16px) rotate(2deg);} }

.hero-mascot-card { background: none; border: none; backdrop-filter: none; overflow: visible; }
.hero-mascot-img {
  width: 88%;
  height: auto;
  max-height: 95%;
  object-fit: contain;
  filter: drop-shadow(0 25px 45px rgba(0,0,0,.55)) drop-shadow(0 0 40px rgba(63,126,166,.25));
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
#About { padding-bottom: 5rem; padding-top: 3rem; }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  -webkit-background-clip: text; background-clip: text; color: white;
}
@media (min-width: 768px) { .section-title { font-size: 3rem; } }
.section-sub {
  margin-top: .5rem;
  color: #9ca3af;
  max-width: 42rem;
  margin-left: auto; margin-right: auto;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.section-sub svg { width: 18px; height: 18px; color: #3f7ea6; }

.about-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 2.5rem;
  align-items: center;
  padding-top: 2rem;
}
@media (min-width: 1024px) {
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
}
.about-text { text-align: center; display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1024px) { .about-text { text-align: left; } }
.about-hello { font-size: 1.75rem; font-weight: 700; }
@media (min-width: 768px) { .about-hello { font-size: 2.25rem; } }
@media (min-width: 1024px) { .about-hello { font-size: 2.75rem; } }
.about-hello .grad { background-image: linear-gradient(to right, #3f7ea6, #3f7ea6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-hello .name { display: block; margin-top: .5rem; color: #e5e7eb; }
.about-bio { color: #9ca3af; line-height: 1.7; text-align: justify; }

.about-quote {
  position: relative;
  background: linear-gradient(135deg, rgba(63, 126, 166,.05), rgba(224, 151, 92,.05));
  border: 1px solid rgba(63, 126, 166,.25);
  border-radius: 1rem;
  padding: 1.25rem;
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.about-quote blockquote {
  color: #d1d5db;
  font-style: italic;
  font-weight: 500;
  font-size: .9rem;
  text-align: center;
  padding-left: 1.5rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) { .about-quote blockquote { text-align: left; } }

.about-actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 1024px) { .about-actions { flex-direction: row; align-items: flex-start; } }
.btn-primary, .btn-outline {
  width: 100%;
  padding: .75rem 1.5rem;
  border-radius: .5rem;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: transform .3s;
}
@media (min-width: 1024px) { .btn-primary, .btn-outline { width: auto; } }
.btn-primary { background-image: linear-gradient(to right, #3f7ea6, #3f7ea6); color: #fff; box-shadow: 0 10px 25px -5px rgba(63, 126, 166,.3); }
.btn-primary:hover { transform: scale(1.05); }
.btn-outline { border: 1px solid rgba(255,255,255,.1); color: white; }
.btn-outline:hover { background: rgba(63, 126, 166, 0.2); transform: scale(1.05); } 
.btn-primary svg, .btn-outline svg { width: 18px; height: 18px; }

.about-photo-wrap { display: flex; justify-content: center; }
@media (min-width: 1024px) { .about-photo-wrap { justify-content: flex-end; } }
.about-photo {
  position: relative;
  width: 18rem; height: 18rem;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(120,119,198,.3);
  transition: transform .7s;
}
@media (min-width: 640px) { .about-photo { width: 20rem; height: 20rem; } }
.about-photo:hover { transform: scale(1.04); }
.about-photo::after {
  content: "";
  position: absolute; inset: 0;
  border: 4px solid rgba(255,255,255,.2);
  border-radius: 9999px;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-card {
  position: relative;
  background: rgba(17,24,39,.5);
  backdrop-filter: blur(16px);
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem;
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column; justify-content: space-between;
}
.stat-card:hover { transform: scale(1.04); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.stat-icon { width: 3.5rem; height: 3.5rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); }
.stat-icon svg { width: 1.75rem; height: 1.75rem; color: #fff; }
.stat-value { font-size: 2rem; font-weight: 700; color: #fff; }
.stat-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #d1d5db; margin-bottom: .5rem; }
.stat-desc { font-size: .75rem; color: #9ca3af; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.stat-desc svg { width: 16px; height: 16px; color: rgba(255,255,255,.5); }

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */
#Portofolio { padding-top: 2rem; padding-bottom: 3rem; }

.tabs-bar {
  display: flex;
  gap: .5rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: .5rem;
  background: linear-gradient(180deg, rgba(139,92,246,.03), rgba(59,130,246,.03));
  margin-bottom: 2rem;
}
.tab-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: 1rem 0;
  border-radius: .75rem;
  color: #94a3b8;
  font-weight: 600;
  font-size: .9rem;
  transition: all .3s;
}
.tab-btn svg { width: 20px; height: 20px; }
.tab-btn:hover { color: #fff; background: rgba(139,92,246,.1); transform: translateY(-2px); }
.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(139,92,246,.2), rgba(59,130,246,.2));
  box-shadow: 0 4px 15px -3px rgba(139,92,246,.2);
}
.tab-btn.active svg { color: #3f7ea6; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.projects-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1536px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  position: relative;
  border-radius: .75rem;
  background: linear-gradient(to bottom right, rgba(15,23,42,.9), rgba(30,41,59,.9));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  padding: 1.25rem;
  transition: box-shadow .3s;
}
.project-card:hover { box-shadow: 0 20px 40px rgba(224, 151, 92,.15); }
.project-card img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: .5rem; transition: transform .5s; }
.project-card:hover img { transform: scale(1.05); }
.project-title {
  margin-top: 1rem;
  font-size: 1.15rem; font-weight: 600;
  background-image: linear-gradient(to right, #bfe0ee, #f0d9c2, #6fa8c9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.project-desc { margin-top: .5rem; font-size: .875rem; color: rgba(209,213,219,.8); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-footer { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; }
.project-link { display: inline-flex; align-items: center; gap: .4rem; color: #6fa8c9; font-size: .875rem; font-weight: 500; }
.project-link:hover { color: #8fc4e0; }
.project-link svg { width: 16px; height: 16px; }
.project-details-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem;
  border-radius: .5rem;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.9);
  font-size: .875rem; font-weight: 500;
  transition: background .2s, transform .2s;
}
.project-details-btn:hover { background: rgba(255,255,255,.1); transform: scale(1.05); }
.project-muted { color: #6b7280; font-size: .875rem; }

.experiences-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .experiences-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1536px) { .experiences-grid { grid-template-columns: repeat(3, 1fr); } }

.experience-card {
  position: relative;
  border-radius: .75rem;
  background: linear-gradient(to bottom right, rgba(15,23,42,.9), rgba(30,41,59,.9));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  padding: 1.25rem;
  transition: box-shadow .3s;
}
.experience-card:hover { box-shadow: 0 20px 40px rgba(224, 151, 92,.15); }
.experience-card img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: .5rem; transition: transform .5s; }
.experience-card:hover img { transform: scale(1.05); }
.experience-title {
  margin-top: 1rem;
  font-size: 1.15rem; font-weight: 600;
  background-image: linear-gradient(to right, #bfe0ee, #f0d9c2, #6fa8c9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.experience-desc { margin-top: .5rem; font-size: .875rem; color: rgba(209,213,219,.8); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.experience-footer { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; }
.experience-link { display: inline-flex; align-items: center; gap: .4rem; color: #6fa8c9; font-size: .875rem; font-weight: 500; }
.experience-link:hover { color: #8fc4e0; }
.experience-link svg { width: 16px; height: 16px; }
.experience-details-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem;
  border-radius: .5rem;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.9);
  font-size: .875rem; font-weight: 500;
  transition: background .2s, transform .2s;
}
.experience-details-btn:hover { background: rgba(255,255,255,.1); transform: scale(1.05); }
.experience-muted { color: #6b7280; font-size: .875rem; }

.certs-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .certs-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.cert-card {
  position: relative;
  overflow: hidden;
  border-radius: .5rem;
  box-shadow: 0 8px 16px rgba(0,0,0,.25);
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}
.cert-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,.35); }
.cert-card img { width: 100%; aspect-ratio: 16/11.5; object-fit: cover; filter: contrast(1.1) brightness(.9) saturate(1.1); transition: filter .3s; }
.cert-card:hover img { filter: contrast(1.05) brightness(1) saturate(1.1); }
.cert-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35);
  color: #fff; opacity: 0; transition: opacity .3s; gap: .5rem;
}
.cert-card:hover .cert-overlay { opacity: 1; }
.cert-overlay svg { width: 36px; height: 36px; }

.techstack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .techstack-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .techstack-grid { grid-template-columns: repeat(6, 1fr); } }
.tech-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(30,41,59,.5);
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
  transition: background .3s, transform .3s;
}
.tech-item:hover { background: rgba(51,65,85,.5); transform: scale(1.05); }
.tech-item img { height: 4rem; width: 4rem; }
.tech-item span { color: #cbd5e1; font-weight: 600; font-size: .9rem; }

.see-more-btn {
  margin-top: 1.5rem;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem;
  font-size: .875rem; font-weight: 500;
  color: #cbd5e1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .5rem;
  transition: all .3s;
}
.see-more-btn:hover { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.see-more-btn svg { width: 16px; height: 16px; transition: transform .3s; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
#Contact { padding-top: 2rem; padding-bottom: 3rem; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 45% 55%; } }

.glass-card {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  box-shadow: 0 20px 45px rgba(0,0,0,.35);
  padding: 1.5rem;
}
@media (min-width: 640px) { .glass-card { padding: 2.5rem; } }

.contact-form-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; }
.contact-form-head h3 { font-size: 1.9rem; font-weight: 700; background-image: linear-gradient(to right, #3f7ea6, #3f7ea6); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .5rem; }
.contact-form-head p { color: #9ca3af; }
.contact-form-head svg { width: 40px; height: 40px; color: #3f7ea6; opacity: .5; flex-shrink: 0; }

.form-group { position: relative; margin-bottom: 1.25rem; }
.form-group svg { position: absolute; left: 1rem; top: 1rem; width: 20px; height: 20px; color: #9ca3af; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255,255,255,.1);
  border-radius: .75rem;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-family: inherit;
  transition: border-color .3s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #6b7280; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: rgba(63, 126, 166,.5); }
.form-group textarea { resize: none; height: 6.5rem; }

.submit-btn {
  width: 100%;
  padding: 1rem;
  border-radius: .75rem;
  background: linear-gradient(to right, #3f7ea6, #3f7ea6);
  color: #fff;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: transform .2s, box-shadow .2s;
}
.submit-btn:hover { transform: scale(1.02); box-shadow: 0 10px 25px rgba(63, 126, 166,.2); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.submit-btn svg { width: 18px; height: 18px; }

.contact-socials { /* margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); */}

.social-panel { background: linear-gradient(to bottom right, rgba(255,255,255,.1), rgba(255,255,255,.05)); border-radius: 1rem; padding: 1.5rem 1.5rem 2rem; backdrop-filter: blur(16px); }
.social-panel h4 { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 1.25rem; }
.social-panel h4::before { content: ""; display: inline-block; width: 2rem; height: 4px; background: #3f7ea6; border-radius: 9999px; }
.social-list { display: flex; flex-direction: column; gap: 1rem; }
.social-row-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .social-row-2 { grid-template-columns: 1fr 1fr; } }

.social-item {
  position: relative;
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem;
  border-radius: .75rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  transition: border-color .3s;
}
.social-item:hover { border-color: rgba(255,255,255,.2); }
.social-item .icon-wrap { width: 2.5rem; height: 2.5rem; border-radius: .5rem; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); flex-shrink: 0; }
.social-item .icon-wrap svg { width: 20px; height: 20px; }
.social-item .text-wrap { display: flex; flex-direction: column; min-width: 0; }
.social-item .title { font-weight: 700; font-size: .95rem; color: #e5e7eb; }
.social-item .sub { font-size: .8rem; color: #9ca3af; }
.social-item .external { margin-left: auto; width: 18px; height: 18px; color: #6b7280; flex-shrink: 0; }

/* comments */
.comments-box { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.comment-item { display: flex; gap: .75rem; padding: 1rem; border-radius: .75rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.comment-avatar { width: 2.25rem; height: 2.25rem; border-radius: 9999px; background: linear-gradient(to right, #3f7ea6, #3f7ea6); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; color: #fff; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.comment-name { font-weight: 600; font-size: .9rem; color: #f3f4f6; }
.comment-pin { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; color: #e0975c; background: rgba(224, 151, 92,.15); padding: .1rem .5rem; border-radius: 9999px; }
.comment-text { font-size: .875rem; color: #cbd5e1; margin-top: .25rem; line-height: 1.5; word-break: break-word; }
.comment-form { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: .75rem 1rem; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15); border-radius: .6rem; color: #fff; font-family: inherit;
}
.comment-form textarea { resize: none; height: 5rem; }
.comment-note { font-size: .75rem; color: #6b7280; margin-top: .5rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { text-align: center; padding: 1.5rem 0 2rem; }
footer hr { border-color: rgba(255,255,255,.1); margin-bottom: 1rem; }
footer span { font-size: .875rem; color: #6b7280; }
footer a:hover { text-decoration: underline; }

/* ==========================================================================
   MODAL (lightbox certificati)
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal-overlay img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: .25rem; }
.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 9999px;
  background: rgba(0,0,0,.6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.modal-close:hover { background: rgba(0,0,0,.8); transform: scale(1.1); }
.modal-close svg { width: 22px; height: 22px; }

/* Utility */
.hidden { display: none !important; }
