/* ==========================================================================
   DANIELE POMPOSELLI PORTFOLIO CSS
   Theme: Cyber-Neon Dark Mode (Cyan/Magenta/Purple)
   ========================================================================== */

/* Design Variables */
:root {
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff00d4;
  --neon-purple: #bd00ff;
  --bg-dark: #070913;
  --bg-darker: #04050a;
  --bg-card: rgba(13, 20, 38, 0.55);
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --border-glow: rgba(0, 240, 255, 0.15);
  --font-main: 'Outfit', sans-serif;
  --font-retro: 'Press Start 2P', monospace;
}

/* Base Reset & Styling */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at 50% 0%, #0c202d 0%, #070913 60%);
  color: var(--text-light);
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

/* Background Wireframe & Glow Decorations */
.wireframe-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.wireframe-decorations img {
  position: absolute;
  opacity: 0.65;
  transition: opacity 0.5s ease;
}

/* Hover-float keyframes */
@keyframes float-y-1 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-y-2 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(12px) rotate(-2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-galaxy {
  0% { transform: scale(1) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.05) rotate(5deg); opacity: 0.8; }
  100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
}

.decor-pyramid {
  left: 3%;
  top: 80px;
  width: 160px;
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.25));
  animation: float-y-1 6s ease-in-out infinite;
}

.decor-cube-magenta {
  right: 3%;
  top: 90px;
  width: 150px;
  filter: drop-shadow(0 0 15px rgba(255, 0, 212, 0.25));
  animation: float-y-2 7s ease-in-out infinite;
}

.decor-cube-purple {
  left: 2%;
  top: 360px;
  width: 140px;
  filter: drop-shadow(0 0 15px rgba(189, 0, 255, 0.25));
  animation: float-y-1 8s ease-in-out infinite;
}

.decor-galaxy-1 {
  left: -60px;
  top: 610px;
  width: 230px;
  animation: pulse-galaxy 15s ease-in-out infinite;
}

.decor-galaxy-2 {
  right: -60px;
  top: 380px;
  width: 230px;
  animation: pulse-galaxy 18s ease-in-out infinite;
}

/* Floating Retro Pixel Art Elements (Right Margin) */
.retro-accents {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 90;
  pointer-events: none;
}

.retro-accent-item {
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 0 8px var(--neon-cyan));
  animation: float-y-1 3.5s ease-in-out infinite;
}

.retro-accent-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   Split-Screen Dashboard Layout
   ========================================================================== */
.app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar HUD Panel (Left side) */
.sidebar-hud {
  width: 320px;
  height: 100vh;
  flex-shrink: 0;
  background: rgba(13, 20, 38, 0.7);
  border-right: 1px solid rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
  text-align: center;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.sidebar-header .profile-pic-container {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.3);
  position: relative;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
  margin-bottom: 10px;
  overflow: hidden;
}

.sidebar-header .profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-header .hero-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0;
  color: #fff;
  text-transform: uppercase;
}

.sidebar-header .hero-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Sidebar Navigation */
.sidebar-nav {
  width: 100%;
  margin: 30px 0;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.sidebar-nav li {
  width: 100%;
  text-align: center;
}

.sidebar-nav a {
  display: inline-block;
  color: var(--text-light);
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  padding: 6px 0;
}

.sidebar-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.sidebar-nav a:hover::after, .sidebar-nav a.active::after {
  width: 100%;
}

.sidebar-actions {
  width: 100%;
}

.sidebar-actions .btn {
  width: 100%;
  text-align: center;
}

.sidebar-footer {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Scrollable Content Panel (Right side) */
.content-panel {
  flex-grow: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 60px 40px;
  box-sizing: border-box;
  scroll-behavior: smooth;
  position: relative;
  z-index: 10;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

nav a:hover, nav a.active {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* Layout Main Container */
main {
  position: relative;
  z-index: 10;
}

/* Sections Base Styling */
section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--neon-cyan);
  letter-spacing: 2px;
  margin: 0 0 35px 0;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
  display: inline-block;
  position: relative;
}

/* Hero Section */
.hero-section {
  padding: 100px 0 80px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 45px;
  width: 100%;
}

.profile-pic-container {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-magenta) 100%);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.45), 0 0 40px rgba(255, 0, 212, 0.2);
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-pic-container:hover {
  transform: scale(1.06) rotate(3deg);
}

.profile-pic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-dark);
}

.hero-text-container {
  flex-grow: 1;
}

.hero-name {
  font-size: 3.2rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-subtitle {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  margin: 0 0 28px 0;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: inline-block;
  cursor: pointer;
}

.btn-cyan {
  background: var(--neon-cyan);
  color: var(--bg-dark);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

.btn-cyan:hover {
  background: transparent;
  color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.55);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
  transform: translateY(-2px);
}

/* ==========================================================================
   Bento Dashboard Section (Bento Grid)
   ========================================================================== */
.dashboard-section {
  position: relative;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(130px, auto);
  gap: 20px;
}

.bento-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 6px;
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.03), 0 8px 32px rgba(0,0,0,0.3);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-sizing: border-box;
}

/* Specific Bento Block Layout spans */
.bento-about {
  grid-column: span 3;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.bento-status {
  grid-column: span 1;
  grid-row: span 2;
  font-family: 'Space Mono', monospace;
}

.bento-skill {
  grid-column: span 1;
  min-height: 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Bento headers */
.bento-header {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 0 16px 0;
  color: #00f0ff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
  text-transform: uppercase;
}

.bento-body {
  flex-grow: 1;
}

.about-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #d1d5db;
  margin: 0;
}

/* Bento hover highlights */
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.15), inset 0 0 12px rgba(0, 240, 255, 0.05);
}

.bento-skill:hover {
  border-color: rgba(255, 0, 212, 0.4);
  box-shadow: 0 8px 24px rgba(255, 0, 212, 0.15), inset 0 0 12px rgba(255, 0, 212, 0.05);
}

/* System status layout styles */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-label {
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.status-value {
  font-size: 0.75rem;
}

.val-cyan { color: #00f0ff; text-shadow: 0 0 8px rgba(0, 240, 255, 0.4); }
.val-purple { color: #bd00ff; text-shadow: 0 0 8px rgba(189, 0, 255, 0.4); }

/* Progress bar wrappers */
.status-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-bar-wrapper .status-bar-text {
  font-size: 0.7rem;
  color: #fff;
  min-width: 28px;
  text-align: right;
}

.status-bar {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.status-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease-out;
}

.bar-magenta {
  background: linear-gradient(90deg, #bd00ff, #ff00d4);
  box-shadow: 0 0 8px #ff00d4;
  height: 100%;
  width: 98%;
  border-radius: 3px;
}

.bar-cyan {
  background: linear-gradient(90deg, #00f0ff, #00b8ff);
  box-shadow: 0 0 8px #00f0ff;
  height: 100%;
  width: 100%;
  border-radius: 3px;
}

/* Skills card details inside Bento */
.skill-icon-wrapper {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.skill-icon {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
  transition: all 0.3s ease;
}

.bento-skill:hover .skill-icon {
  filter: drop-shadow(0 0 12px var(--neon-magenta));
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #ffffff;
  line-height: 1.3;
}

.skill-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
  font-family: 'Space Mono', monospace;
}

/* Experiences Section (Skill Tree Canvas) */
.experiences-section {
  position: relative;
}

.skill-tree-container {
  position: relative;
  width: 100%;
  max-width: 855px;
  height: 260px;
  margin: 40px auto 0 auto;
}

/* SVG Connection Lines overlay */
#skill-tree-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.tree-line {
  fill: none;
  stroke: var(--neon-cyan);
  stroke-width: 2px;
  filter: drop-shadow(0 0 6px var(--neon-cyan));
  stroke-dasharray: 8px, 4px;
  animation: line-dash-flow 25s linear infinite;
}

@keyframes line-dash-flow {
  to {
    stroke-dashoffset: -200px;
  }
}

/* Row wrapper for absolute nodes placement */
.tree-row {
  position: absolute;
  width: 100%;
}

.row-top {
  top: 0px;
  height: 82px;
}

.row-bottom {
  top: 130px;
  height: 80px;
}

/* Node card styling */
.project-node {
  position: absolute;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.project-node:hover {
  transform: scale(1.08);
  z-index: 10;
}

.card-inner {
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.3s ease;
  background: var(--bg-darker);
}

.project-node img {
  width: 100%;
  height: auto;
  display: block;
}

#node-iiiteam { left: 184px; width: 86px; }
#node-red41 { left: 281px; width: 86px; }
#node-archipelago { left: 378px; width: 85px; }
#node-bubbletaxi { left: 474px; width: 86px; }
#node-tatacook { left: 572px; width: 85px; }
#node-red41-gameplay { left: 669px; width: 85px; }

#node-huawei { left: 326px; width: 130px; }
#node-retro { left: 572px; width: 160px; }

/* Custom Glows on hover per card theme */
#node-iiiteam:hover .card-inner { box-shadow: 0 0 16px rgba(0, 240, 255, 0.6); }
#node-red41:hover .card-inner { box-shadow: 0 0 16px rgba(255, 0, 127, 0.6); }
#node-archipelago:hover .card-inner { box-shadow: 0 0 16px rgba(0, 240, 255, 0.6); }
#node-bubbletaxi:hover .card-inner { box-shadow: 0 0 16px rgba(0, 240, 255, 0.6); }
#node-tatacook:hover .card-inner { box-shadow: 0 0 16px rgba(189, 0, 255, 0.6); }
#node-huawei:hover .card-inner { box-shadow: 0 0 16px rgba(255, 0, 0, 0.5); }
#node-red41-gameplay:hover .card-inner { box-shadow: 0 0 16px rgba(255, 0, 127, 0.6); }
#node-retro:hover .card-inner { box-shadow: 0 0 16px rgba(189, 0, 255, 0.6); }

/* Web Projects Section & HUD styling */
.web-projects-section {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

/* Vector Grid lines background */
.section-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
  z-index: 1;
}

.web-projects-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

.web-card {
  display: block;
  width: 280px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-hud {
  position: relative;
  border: 1px solid rgba(0, 240, 255, 0.15);
  background: rgba(7, 9, 19, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 6px;
  padding: 8px;
}

/* Cybernetic corner brackets */
.card-hud::before,
.card-hud::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: #00f0ff;
  border-style: solid;
  pointer-events: none;
  transition: all 0.3s ease;
}

.card-hud::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.card-hud::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.web-card:hover {
  transform: translateY(-8px);
}

#project-sesia:hover {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

#project-vale:hover {
  border-color: rgba(255, 0, 212, 0.6);
  box-shadow: 0 0 25px rgba(255, 0, 212, 0.4);
}

#project-vale::before,
#project-vale::after {
  border-color: #ff00d4;
}

#project-sesia:hover::before,
#project-sesia:hover::after {
  width: 20px;
  height: 20px;
}

#project-vale:hover::before,
#project-vale:hover::after {
  width: 20px;
  height: 20px;
}

.web-card-inner {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-darker);
  aspect-ratio: 1 / 1;
}

.web-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.web-card:hover img {
  transform: scale(1.05);
}

/* Hover overlay slide-up details */
.web-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 9, 19, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
}

.web-card:hover .web-card-overlay {
  opacity: 1;
}

.overlay-content {
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.web-card:hover .overlay-content {
  transform: translateY(0);
}

.overlay-title {
  font-family: 'Outfit', sans-serif;
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.overlay-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin: 0 0 15px 0;
}

.tech-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-tags span {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
}

#project-sesia .tech-tags span {
  border-color: rgba(0, 240, 255, 0.3);
  color: #00f0ff;
}

#project-vale .tech-tags span {
  border-color: rgba(255, 0, 212, 0.3);
  color: #ff00d4;
}

/* Footer & Contacts with HUD Terminal */
footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(0, 240, 255, 0.12);
  padding: 50px 0 35px 0;
  margin-top: 100px;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  justify-content: center;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-hud-panel {
  width: 100%;
  max-width: 600px;
  padding: 24px;
  box-sizing: border-box;
}

.footer-hud-title {
  font-family: 'Outfit', sans-serif;
  color: #00f0ff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 20px 0;
  text-align: center;
  opacity: 0.85;
  position: relative;
}

.footer-hud-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: rgba(13, 20, 38, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-icon-btn svg {
  fill: currentColor;
  transition: transform 0.3s ease;
}

.social-icon-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.05);
}

.social-icon-btn:hover svg {
  transform: scale(1.1);
}

/* Individual Social Glow Colors */
.soc-li:hover {
  border-color: #0077b5;
  color: #0077b5;
  box-shadow: 0 0 14px rgba(0, 119, 181, 0.5);
  background: rgba(0, 119, 181, 0.05);
}

.soc-tg:hover {
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
  background: rgba(0, 240, 255, 0.05);
}

.soc-x:hover {
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

/* ArtStation Button */
.artstation-btn {
  display: flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 4px;
  background: rgba(13, 20, 38, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}

.artstation-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.05);
}

/* Email container */
.email-input-container {
  display: flex;
  align-items: center;
}

.email-input-wrapper {
  display: flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 4px;
  background: rgba(13, 20, 38, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.2);
  min-width: 140px;
  justify-content: center;
  transition: all 0.3s ease;
}

.email-input-wrapper:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.05);
}

.email-icon {
  fill: var(--text-muted);
  margin-right: 8px;
  transition: fill 0.3s ease;
}

.email-input-wrapper:hover .email-icon {
  fill: var(--neon-cyan);
}

.email-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.email-input-wrapper:hover .email-link {
  color: var(--neon-cyan);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.copyright {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 1px;
}


/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* Hide floating right elements on smaller viewports */
@media (max-width: 1100px) {
  .retro-accents {
    display: none;
  }
}

/* Tablet Layout (max-width: 900px) */
@media (max-width: 900px) {
  main {
    padding-top: 75px;
  }

  section {
    padding: 40px 0;
  }

  .decor-pyramid,
  .decor-cube-magenta,
  .decor-cube-purple,
  .decor-galaxy-1,
  .decor-galaxy-2 {
    opacity: 0.3; /* fade decor elements so they do not clash with content */
  }

  /* Split-screen mobile stacking */
  .app-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
    width: 100%;
  }

  body {
    overflow-y: auto;
    height: auto;
  }

  .sidebar-hud {
    width: 100%;
    height: auto;
    padding: 30px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    gap: 20px;
  }

  .sidebar-header .profile-pic-container {
    transform: translateX(-35px);
  }

  .sidebar-nav {
    margin: 15px 0;
  }

  .sidebar-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .sidebar-actions {
    max-width: 280px;
    margin: 0 auto;
  }

  .content-panel {
    width: 100%;
    height: auto;
    overflow-y: visible;
    padding: 40px 20px;
  }

  /* Bento Grid Adjustment */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .bento-about {
    grid-column: span 2;
  }
  .bento-status {
    grid-column: span 2;
  }
  .bento-skill {
    grid-column: span 1;
  }

  /* Experiences Skill Tree -> Flat Vertical Timeline */
  .skill-tree-container {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
  }

  #skill-tree-svg {
    display: none; /* Hide SVG connection canvas */
  }

  .tree-row {
    position: relative;
    top: auto;
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .project-node {
    position: relative;
    left: auto !important;
    top: auto !important;
    margin: 0 auto;
    width: 100% !important;
    max-width: 280px; /* center and size nodes to fit smartphone screens */
  }

  /* Web projects */
  .web-projects-grid {
    gap: 24px;
  }

  .web-card {
    width: 240px;
  }
}

/* Smartphone Layout (max-width: 600px) */
@media (max-width: 600px) {
  .sidebar-header .hero-name {
    font-size: 1.3rem;
  }

  .sidebar-header .profile-pic-container {
    width: 100px;
    height: 100px;
  }

  .sidebar-nav ul {
    gap: 10px 18px;
  }

  .sidebar-actions {
    width: 100%;
    max-width: 240px;
  }

  .btn {
    width: 100%;
    padding: 11px 20px;
  }

  /* Bento cards padding override */
  .bento-card {
    padding: 20px 16px;
  }

  .about-text {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  /* Bento Grid to single column */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .bento-about,
  .bento-status,
  .bento-skill {
    grid-column: span 1 !important;
    grid-row: auto !important;
  }

  .bento-skill {
    min-height: 160px;
  }

  /* Footer Stacked */
  .footer-hud-content {
    flex-direction: column;
    gap: 25px;
  }

  .social-links,
  .email-input-container {
    width: 100%;
    justify-content: center;
  }
}
/* Language Selector styling */
.lang-selector {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.lang-floating {
  position: fixed;
  top: 25px;
  right: 40px;
  z-index: 1000;
  background: rgba(13, 20, 38, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 6px;
  border-radius: 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #fff;
  padding: 4px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 32px;
  text-align: center;
}

.lang-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: #00f0ff;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.lang-btn.active {
  background: #00f0ff;
  border-color: #00f0ff;
  color: #0d0d0d;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

@media (max-width: 900px) {
  .lang-floating {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(13, 20, 38, 0.85);
  }
}
