@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600&display=swap");
/* Global CSS Variables */
:root {
  /* Colors */
  --primary-bg: #0f172a;
  --secondary-bg: #1e293b;
  --accent-blue: #3b82f6;
  --accent-cyan: #63d5fd;
  --accent-yellow: #fbbf24;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --accent-orange: #f59e0b;
  --white: #ffffff;
  --text-primary: #e2e8f0;
  --text-secondary: #60a5fa;
  --border-color: rgba(255, 255, 255, 0.1);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Sizes - Mobile First */
  --node-size-sm: 84px;
  --node-height-sm: 42px;
  --node-size-md: 110px;
  --node-height-md: 55px;
  --node-size-lg: 145px;
  --node-height-lg: 60px;
  --hub-size-sm: 80px;
  --hub-size-md: 120px;
  --hub-size-lg: 200px;
  --font-size-xs: 0.6rem;
  --font-size-sm: 0.75rem;
  --font-size-md: 0.875rem;
  --font-size-lg: 1rem;
  --font-size-xl: 1.125rem;
  --font-size-2xl: 1.5rem;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-smooth: 1.2s ease-in-out;

  /* Shadows */
  --shadow-sm: 0 0 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 0 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 0 40px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.3);

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 50%;
  --radius-pill: 100px;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles - Mobile First */
body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(
    135deg,
    var(--primary-bg) 0%,
    var(--secondary-bg) 100%
  );
  overflow: hidden;
  height: 100vh;
  color: var(--white);
  font-size: var(--font-size-sm);
}

.viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.night-sky {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1; /* Place it behind all other content */
  background: linear-gradient(
    135deg,
    var(--primary-bg) 0%,
    var(--secondary-bg) 100%
  );
  overflow: hidden;
}

/* Star animation */
@keyframes animateStars {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-2000px);
  }
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2000px; /* Taller than the viewport to allow for scrolling */
  animation: animateStars linear infinite;
}

/* Star Layer 1: Farthest, smallest, and most numerous stars */
#stars1 {
  width: 1px;
  height: 1px;
  background: transparent;
  animation-duration: 150s; /* Slowest */
  box-shadow: 775px 1606px #fff, 1779px 135px #fff, 1026px 147px #fff,
    151px 852px #fff, 1435px 1279px #fff, 128px 1105px #fff, 1032px 1311px #fff,
    116px 1318px #fff, 584px 1735px #fff, 843px 279px #fff, 1152px 64px #fff,
    345px 1630px #fff, 93px 1482px #fff, 1459px 1013px #fff, 1159px 1699px #fff,
    290px 1862px #fff, 199px 1827px #fff, 1238px 1338px #fff, 715px 1834px #fff,
    1294px 799px #fff, 1438px 1133px #fff, 1008px 1195px #fff,
    1137px 1136px #fff, 725px 913px #fff, 1422px 143px #fff, 1261px 1955px #fff,
    1076px 1177px #fff, 321px 1109px #fff, 1083px 163px #fff, 1210px 1017px #fff,
    370px 1139px #fff, 1311px 45px #fff, 135px 1191px #fff, 1269px 73px #fff,
    1171px 73px #fff, 1383px 1113px #fff, 1121px 1395px #fff, 1205px 1100px #fff,
    332px 668px #fff, 119px 75px #fff, 1030px 110px #fff, 23px 1777px #fff,
    218px 1974px #fff, 626px 75px #fff, 1272px 121px #fff, 1157px 1450px #fff,
    363px 1202px #fff, 1530px 608px #fff, 133px 1930px #fff;
}

/* Star Layer 2: Middle-distance stars */
#stars2 {
  width: 2px;
  height: 2px;
  background: transparent;
  animation-duration: 100s; /* Medium speed */
  box-shadow: 1819px 581px #fff, 155px 1080px #fff, 1013px 1198px #fff,
    1493px 1392px #fff, 531px 1490px #fff, 1385px 138px #fff, 542px 723px #fff,
    1154px 1202px #fff, 1515px 1395px #fff, 1209px 179px #fff, 1069px 406px #fff,
    113px 768px #fff, 549px 149px #fff, 1404px 445px #fff, 452px 683px #fff,
    1282px 1888px #fff, 937px 1284px #fff, 122px 250px #fff, 838px 1769px #fff,
    1195px 1819px #fff, 344px 1708px #fff, 1789px 1315px #fff, 1032px 126px #fff,
    1874px 1024px #fff, 116px 1382px #fff, 1675px 1230px #fff,
    1450px 1238px #fff, 1888px 314px #fff, 1630px 934px #fff, 1184px 632px #fff;
}

/* Star Layer 3: Closest, largest stars */
#stars3 {
  width: 3px;
  height: 3px;
  background: transparent;
  animation-duration: 50s; /* Fastest */
  box-shadow: 1017px 1514px #fff, 175px 233px #fff, 658px 439px #fff,
    103px 1656px #fff, 1455px 1136px #fff, 358px 1693px #fff, 133px 1494px #fff,
    103px 123px #fff, 1222px 518px #fff, 1740px 1836px #fff, 1729px 1324px #fff,
    532px 1177px #fff, 589px 1850px #fff, 137px 1422px #fff, 1042px 1231px #fff;
}

/* Comet animation */
@keyframes comet-streak {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateX(-300vw) translateY(300vh);
    opacity: 0;
  }
}

.comet {
  position: absolute;
  width: 150px;
  height: 2px;
  background: linear-gradient(-45deg, var(--accent-cyan), rgba(0, 0, 0, 0));
  border-radius: 999px;
  filter: drop-shadow(0 0 6px var(--accent-cyan));
  animation: comet-streak 15s linear infinite;
  transform-origin: right;
}

.comet::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  right: -2px;
  top: -1px;
  box-shadow: 0 0 8px var(--accent-blue), 0 0 12px var(--white);
}

/* Randomize comets */
.comet:nth-child(1) {
  top: 20%;
  right: -50%;
  animation-delay: 1s;
  animation-duration: 7s;
}
.comet:nth-child(2) {
  top: 40%;
  right: -70%;
  animation-delay: 5s;
  animation-duration: 9s;
}
.comet:nth-child(3) {
  top: 80%;
  right: -40%;
  animation-delay: 10s;
  animation-duration: 6s;
}
.comet:nth-child(4) {
  top: 5%;
  right: -100%;
  animation-delay: 13s;
  animation-duration: 8s;
}
/* --- Cloud Node Styling --- */

.canvas {
  position: relative;
  width: 100vw;
  height: 100vh;
  transition: transform var(--transition-smooth);
}

/* Center Hub - Mobile First */
.center-hub {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  z-index: 10;
  cursor: pointer;
}

.pirate-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 12, 24, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.pirate-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- Panel (formerly .pirate-scroll) --- */
.pirate-scroll {
  position: relative;
  width: 90%;
  height: 80%;
  max-width: 650px;
  padding: 2rem 3rem;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(40, 48, 80, 0.95) 0%,
    rgba(20, 28, 55, 0.95) 100%
  );
  border: 1px solid rgba(77, 189, 255, 0.45);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 40px rgba(77, 189, 255, 0.25),
    inset 0 0 25px rgba(77, 189, 255, 0.08);
  color: #e6f1ff;
  font-family: "IBM Plex Sans", sans-serif;
  transform: scale(0.82);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow-y: auto;
  overflow-x: hidden;
}

.pirate-modal-overlay.visible .pirate-scroll {
  transform: scale(1);
}

/* Animated glow border */
/* .pirate-scroll::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(90deg, #4dbdff, #8ae6ff, #4dbdff);
  background-size: 300% 300%;
  animation: cloudBorderGlow 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
} */

/* @keyframes cloudBorderGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
} */

/* --- Close Button --- */
.close-scroll-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 10000;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #4dbdff;
  transition: transform 0.25s, color 0.25s;
  font-family: inherit;
}

.close-scroll-btn:hover,
.close-scroll-btn:focus {
  color: #ffffff;
  transform: rotate(90deg) scale(1.1);
}

/* --- Title --- */
.scroll-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #4dbdff;
  text-shadow: 0 0 10px rgba(77, 189, 255, 0.75);
  font-weight: 600;
  text-decoration: none; /* remove pirate underline */
}

/* --- Instruction List --- */
.scroll-instructions {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.scroll-instructions li {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
  line-height: 1.5;
  color: #e6f1ff;
}

/* Replace pirate skull bullet */
.scroll-instructions li::before {
  /* Use Font Awesome Wi-Fi / network icon if available */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f1eb"; /* fallback: fa-wifi */
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 1.25rem;
  color: #4dbdff;
  text-shadow: 0 0 6px rgba(77, 189, 255, 0.8);
}

/* If you prefer numbered steps instead of icons, comment ^ and uncomment below */
/*
.scroll-instructions {
  counter-reset: step;
}
.scroll-instructions li::before {
  counter-increment: step;
  content: counter(step) ".";
  font-family: inherit;
  font-weight: 600;
  color: #4dbdff;
}
*/

/* --- Stamp Area (converted to network badge) --- */
.stamp {
  position: absolute;
  bottom: 20px;
  right: 30px;
  width: 110px;
  height: 110px;
  transform: rotate(0deg); /* remove pirate tilt */
  opacity: 0.9;
}

.stamp-outer-ring {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(77, 189, 255, 0.6);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(77, 189, 255, 0.25) 0%,
    rgba(77, 189, 255, 0.05) 80%,
    rgba(77, 189, 255, 0) 100%
  );
  box-shadow: 0 0 15px rgba(77, 189, 255, 0.4);
}

.stamp-inner-ring {
  width: 82%;
  height: 82%;
  border: 1px dashed rgba(77, 189, 255, 0.6);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Badge text */
.stamp-text {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #4dbdff;
  text-shadow: 0 0 4px rgba(77, 189, 255, 0.8);
  line-height: 1.2;
}

/* Replace pirate skull with network/cloud icon */
.stamp .fa-skull-crossbones {
  display: none !important;
}

.stamp i {
  font-size: 1.8rem;
  color: #4dbdff;
  margin: 4px 0;
  text-shadow: 0 0 8px rgba(77, 189, 255, 0.8);
}

/* Fallback: inject icon if unknown class */
.stamp i::before {
  /* If the element's class isn't recognized, show fa-cloud glyph code */
  content: "\f0c2"; /* Font Awesome cloud */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.profile-image {
  position: relative;
  transform: scale(0.7);
}

.profile-image-cloud {
  width: auto;
  height: 60px;
}

.profile-image-person {
  width: auto;
  height: 75px;
  position: absolute;
  bottom: var(--spacing-xs);
  left: 1.5rem;
}
.profile-image:hover .profile-image-person {
  transform: scale(1.15);
  animation: personPulse 1.6s ease-in-out infinite alternate;
}
.profile-image:hover .profile-image-cloud {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px rgba(77, 189, 255, 0.8))
    drop-shadow(0 0 20px rgba(77, 189, 255, 0.6));
  animation: cloudPulse 1.6s ease-in-out infinite alternate;
}
@keyframes personPulse {
  0% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1.25);
  }
}
@keyframes cloudPulse {
  0% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1.3);
  }
}

/* Page Nodes - Mobile First */
.page-node {
  position: absolute;
  width: var(--node-size-sm);
  height: var(--node-height-sm);
  background: var(--accent-cyan);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--font-size-xs);
  font-weight: bold;
  text-align: center;
  z-index: 5;
  color: var(--white);
  padding-bottom: var(--spacing-xs);
  text-shadow: var(--shadow-sm);
  overflow: visible;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.25),
    inset 0 -6px 6px rgba(234, 238, 240, 0.26);
}

.page-node::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 12px;
  width: 27px;
  height: 27px;
  background: var(--accent-cyan);
  border-radius: var(--radius-pill);
  z-index: -1;
}

.page-node::after {
  content: "";
  position: absolute;
  top: -18px;
  right: 13px;
  width: 40px;
  height: 40px;
  background: var(--accent-cyan);
  border-radius: var(--radius-pill);
  z-index: -1;
}

.page-node:hover,
.page-node:hover::before,
.page-node:hover::after {
  background: #3babf6;
}

.page-node.active {
  background: var(--accent-orange);
}

.page-node.active::before,
.page-node.active::after {
  background: var(--accent-orange);
}

.page-node-icons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.page-node-icons > i {
  color: var(--white);
  font-size: 12px;
}

.page-node-icons span {
  font-size: var(--font-size-xs);
  line-height: 1;
}

/* Node Positioning - Mobile First */
.identity-core {
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
}

.project-instances {
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
}

.skill-repository {
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
}

.contact-gateway {
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
}

/* Connection Lines */
.connection-line {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-blue),
    transparent
  );
  height: 2px;
  opacity: 0.6;
  z-index: 1;
}

/* Packets */
.packet-icon {
  position: absolute;
  font-size: 10px;
  color: var(--white);
  z-index: 2;
  opacity: 0;
  transition: transform 3.2s ease-in-out, opacity 1.2s;
}

.server-packet {
  position: absolute;
  font-size: 12px;
  color: var(--accent-green);
  z-index: 15;
  opacity: 0;
  transition: transform 1.5s ease-in-out, opacity 1.5s;
  filter: drop-shadow(0 0 4px var(--accent-green));
}

@keyframes packet-flow {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1.2);
  }
}

.packet {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--text-secondary);
  border-radius: var(--radius-full);
  opacity: 0;
  box-shadow: 0 0 8px var(--text-secondary);
  z-index: 2;
}

/* Antenna - Mobile First */
.antenna {
  position: absolute;
  width: 20px;
  height: 20px;
  top: -1.8rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.antenna.active {
  opacity: 1;
}

.antenna-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 10px;
  background: var(--accent-yellow);
  border-radius: 2px;
}

.antenna-signal {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-yellow);
  border-radius: var(--radius-full);
  animation: signal-pulse 2s infinite;
}

@keyframes signal-pulse {
  0% {
    transform: translateX(-50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(1.5);
    opacity: 0;
  }
}

/* Router Panel - Mobile First */
.router-panel {
  position: absolute;
  background: linear-gradient(135deg, #4f46e5, var(--accent-blue));
  color: var(--white);
  padding: var(--spacing-sm);
  border-radius: 0.5rem 0.5rem 2rem 2rem;
  width: 85vw;
  height: 2.5rem;
  /* box-shadow: var(--shadow-glow); */
  box-shadow: var(--shadow-glow), inset 0 -6px 6px rgba(234, 238, 240, 0.123);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-smooth);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
}

.router-panel.active {
  opacity: 1;
  pointer-events: auto;
}

.router-header {
  font-size: var(--font-size-sm);
  font-weight: bold;
  flex: 1;
  margin-right: var(--spacing-sm);
}

.router-antenna {
  position: absolute;
  top: -25px;
  left: 5%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.router-antenna.active {
  opacity: 1;
}

.router-antenna .antenna-base {
  width: 2px;
  height: 12px;
  background: var(--accent-yellow);
  margin: 0 auto;
  border-radius: 2px;
}

.router-antenna .antenna-signal {
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-yellow);
  border-radius: var(--radius-full);
  margin: 0 auto;
  margin-top: -10px;
  animation: signal-pulse 2s infinite;
}

.router-conditions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-right: 2rem;
}

.router-images > i {
  font-size: 0.65rem;
}
.router-images,
.router-lights {
  display: flex;
  gap: 1.25rem;
  justify-content: space-around;
}

.router-status {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.status-light {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent-red);
  box-shadow: 0 0 4px var(--accent-red);
  transition: all var(--transition-fast);
}

.status-light.on {
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

/* Page Link Styles */
.page-link {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: var(--spacing-sm);
  z-index: 25;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.page-link.active {
  opacity: 1;
}

.server-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--secondary-bg);
  border: 1px solid var(--accent-blue);
  border-radius: var(--radius-sm);
  color: var(--accent-blue);
  text-decoration: none;
  font-size: var(--font-size-xs);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.server-link:hover {
  background: var(--accent-blue);
  color: var(--white);
}

.server-link i {
  font-size: var(--font-size-xs);
}

.link-text {
  font-family: monospace;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 14px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: var(--transition-fast);
  border-radius: 14px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 10px;
  width: 10px;
  left: 2px;
  bottom: 2px;
  background-color: var(--white);
  transition: var(--transition-fast);
  border-radius: var(--radius-full);
}

input:checked + .slider {
  background-color: var(--accent-green);
}

input:checked + .slider:before {
  transform: translateX(14px);
}

/* Animations */
.router-panel.pulse {
  animation: pulse-animation 1s ease-out;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0px rgba(34, 197, 94, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.7);
  }
  100% {
    box-shadow: 0 0 0px rgba(34, 197, 94, 0.5);
  }
}

.router-panel.highlighted {
  border: 2px solid var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.router-packet {
  font-size: 10px;
  color: #0ea5e9;
  position: absolute;
  transition: transform 1.2s ease-in-out, opacity 1.2s;
  opacity: 0;
  z-index: 10;
  filter: drop-shadow(0 0 4px #0ea5e9);
}

/* Router Positioning - Mobile First */
.router-identity {
  top: -500%;
  left: 50%;
  transform: translateX(-50%);
}

.router-projects {
  top: 50%;
  left: -500%;
  transform: translateY(-50%);
}

.router-skills {
  top: 50%;
  right: -500%;
  transform: translateY(-50%);
}

.router-contact {
  bottom: -500%;
  left: 50%;
  transform: translateX(-50%);
}

/* Status Indicator */
.status-indicator {
  position: fixed;
  bottom: var(--spacing-lg);
  left: var(--spacing-lg);
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  z-index: 15;
}

/* Connection Lights */
.connection-light {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  transition: all 0.3s ease;
  display: inline-block;
}

.connection-light.blinking {
  animation: blink-red-green 1s infinite;
}

.connection-light.green {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: none;
}

@keyframes blink-red-green {
  0%,
  50% {
    background: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
  }
  51%,
  100% {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
  }
}

/* Server Info Panel - Mobile First */
.server-info-panel {
  position: absolute;
  background: var(--secondary-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  z-index: 19;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  padding: var(--spacing-sm);
  box-shadow: var(--shadow-md);
}

.server-info-panel.active {
  opacity: 1;
  transform: translateY(0);
}

/* Server Design - Mobile First */
.server-container {
  background: #2c3e50;
  border-radius: 5px;
  padding: 8px;
  /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),
    inset 0 -6px 6px rgba(234, 238, 240, 0.055);
  border: 2px solid #34495e;
}

.server-box {
  background: #34495e;
  border: 2px solid #4a5f7a;
  border-radius: 5px;
  width: 8rem;
  height: 6rem;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 6px 10px rgba(0, 0, 0, 0.3);
}

.compartment {
  border-bottom: 1.5px solid #4a5f7a;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #2c3e50;
}

.compartment:last-child {
  border-bottom: none;
}

.control-compartment {
  height: 1.5rem;
  justify-content: end;
  padding: 0 4px;
}

.status-compartment {
  height: 1.5rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.dot.red {
  background: #e74c3c;
  box-shadow: 0 0 12px rgba(231, 76, 60, 0.6);
}

.dot.green {
  background: #27ae60;
  box-shadow: 0 0 12px rgba(39, 174, 96, 0.6);
}

.toggle-switch {
  position: relative;
  width: 40px;
  height: 16px;
  background: #e74c3c;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch.on {
  background: #27ae60;
}

.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch.on .toggle-slider {
  transform: translateX(24px);
}

.status-grid {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.status-label {
  color: #ecf0f1;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 4px;
}

.power-indicator {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.65rem;
  color: #ecf0f1;
  font-weight: bold;
}

.blinking {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.3;
  }
}

/* Connection Lines - Straight line */
.connection-line-server {
  position: absolute;
  background: linear-gradient(
    180deg,
    transparent,
    var(--accent-blue),
    transparent
  );
  width: 2px;
  opacity: 0.6;
  z-index: 1;
}

/* phone/laptop */

.mobile-case {
  width: 166px;
  height: 305px;
  background: #2c3e50;
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 10px 30px rgb(255 255 255 / 8%);
  position: relative;
  transition: all 0.3s ease;
}

.mobile-case::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  height: 3px;
  background: #34495e;
  border-radius: 3px;
}

.mobile-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 7px;
  position: relative;
  overflow: hidden;
}

.status-bar {
  height: 20px;
  background: #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
  color: #fff;
  font-size: 12px;
}

.signal-bars {
  display: flex;
  gap: 2px;
  align-items: end;
}

.bar {
  width: 3px;
  background: #fff;
  border-radius: 1px;
}

.bar:nth-child(1) {
  height: 4px;
}
.bar:nth-child(2) {
  height: 6px;
}
.bar:nth-child(3) {
  height: 8px;
}
.bar:nth-child(4) {
  height: 10px;
}

.screen-content {
  height: calc(100% - 60px);
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Scrollbar styling for .screen-content */
.screen-content::-webkit-scrollbar {
  width: 6px; /* slim scrollbar */
}

.screen-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05); /* subtle track */
}

.screen-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.screen-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Firefox support */
.screen-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
}

.power-button {
  position: absolute;
  top: 60px;
  right: -4px;
  width: 6px;
  height: 35px;
  background: #ff4444;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.power-button:hover {
  background: #3498db;
}

.power-button.active {
  background: #2ecc71;
}

.page-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
  padding: 5px;
  color: #fff;
}

.page-container.active {
  display: contents;
  transform: translateY(0);
}

/* .page-container h2 {
  margin-bottom: 5px;
  font-size: 14px;
  text-align: center;
}

.page-container .content {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-align: center;
} */

.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: #2c3e50;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #34495e;
}

.nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #34495e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 18px;
}

.nav-icon:hover {
  background: #3498db;
  transform: scale(1.1);
}

.nav-icon.active {
  background: #2ecc71;
}

.user-info {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* userdetails Section */
.userDetailImg {
  width: 4rem;
  border-radius: 50%;
  margin-top: 1rem;
}
.userdetailsMain {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.headingTitle {
  font-size: 1.2rem;
  margin: 0.5rem;
  font-weight: 700;
}

.headingPara1 {
  color: #e1d7d7;
  font-size: 0.8rem;
}

.userdetailsProject {
  margin: 2rem 0rem;
}

.userdetailsProjects-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.userdetailsProjects-card {
  background: white;
  border-radius: 5px;
  padding: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.userdetailsProjects-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #667eea, #764ba2);
}

.userdetailsProjects-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.headingPara2 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: #333;
}

.headingPara3 {
  color: #333634;
  text-align: justify;
}

.userdetailsProjects-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
  font-size: 1.3rem;
  color: white;
}

.userdetailsContact {
  padding: 1.5rem 0;
  background: #333;
  color: white;
  text-align: center;
}

/* .userdetailsContact-info {
  max-width: 600px;
  margin: 0 auto;
} */

.userdetailsContact-info > p {
  font-size: 0.73rem;
  margin: 0.5rem 0rem;
}

.website-link {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.website-link:hover {
  color: #764ba2;
}

.userdetailsContact-footer {
  text-align: center;
  font-size: 0.75rem;
  margin: 0.5rem 0rem;
}

.network-info {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 2px;
  border-radius: 6px;
  margin-top: 5px;
  font-size: 9px;
}

.network-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  padding: 5px 0px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.network-item:last-child {
  border-bottom: none;
}

.speed-meter {
  width: 100%;
  height: 12px;
  background: #34495e;
  border-radius: 10px;
  overflow: hidden;
  margin: 5px 0px;
}

.speed-fill {
  height: 100%;
  background: linear-gradient(90deg, #e74c3c, #f39c12, #2ecc71);
  border-radius: 10px;
  animation: speedAnimation 2s ease-in-out infinite;
}

@keyframes speedAnimation {
  0%,
  100% {
    width: 75%;
  }
  50% {
    width: 85%;
  }
}

.screen-off {
  background: #000 !important;
}

.screen-off * {
  display: none !important;
}

/* Laptop View Styles */
.laptop-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.laptop-container.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
  display: flex !important;
}

.laptop-header {
  height: 50px;
  background: #2c3e50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  border-bottom: 2px solid #34495e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.status-bar-laptop {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
  color: #fff;
  font-size: 20px;
}

.laptop-nav {
  display: flex;
  gap: 20px;
}

.laptop-nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #34495e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 24px;
  position: relative;
  overflow: hidden;
}

.laptop-nav-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.laptop-nav-icon:hover::before {
  width: 100%;
  height: 100%;
}

.laptop-nav-icon:hover {
  background: #3498db;
  transform: scale(1.1);
}

.laptop-nav-icon.active {
  background: #2ecc71;
}

.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e74c3c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 24px;
}

.close-btn:hover {
  background: #c0392b;
  transform: scale(1.1);
}

.laptop-content {
  flex: 1;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

.laptop-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  transform: translateX(30px);
  transition: all 0.4s ease;
  padding: 40px;
  color: #fff;
}

.laptop-page.active {
  display: contents;
  transform: translateX(0);
}

.laptop-page h2 {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.laptop-page .content {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  height: calc(100% - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.laptop-user-info {
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.laptop-user-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(45deg, #3498db, #2ecc71);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.laptop-user-details h3 {
  font-size: 36px;
  margin-bottom: 15px;
}

.laptop-user-details p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 10px;
}

.laptop-user-details a {
  color: #3498db;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s ease;
}

.laptop-user-details a:hover {
  color: #2ecc71;
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.laptop-network-info {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 30px;
  border-radius: 15px;
  font-size: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.laptop-network-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 18px;
}

.laptop-network-item:last-child {
  border-bottom: none;
}

.laptop-speed-meter {
  width: 100%;
  height: 20px;
  background: #34495e;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
}

.laptop-speed-fill {
  height: 100%;
  background: linear-gradient(90deg, #e74c3c, #f39c12, #2ecc71);
  border-radius: 10px;
  animation: speedAnimation 2s ease-in-out infinite;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(5deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  to {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
  }
}

.laptop-view.opening {
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.laptop-view.closing {
  animation: slideOut 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer {
  position: fixed;
  bottom: 0px;
  right: 0px;
}

#return-link {
  position: fixed;
  top: 1rem;
  right: 2rem;
  z-index: 15;
}
#return-link > a {
  text-decoration: none;
  font-size: medium;
  color: #ffffff;
  font-style: italic;
}

/* Laptopuserdetails Section */
.laptopuserDetailImg {
  width: 8rem;
  border-radius: 50%;
  margin-top: 1rem;
}
.laptopuserdetailsMain {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.laptopheadingTitle {
  font-size: 2rem;
  margin: 1rem 0rem 0.5rem 0rem;
  font-weight: 700;
}

.laptopheadingPara1 {
  color: #e1d7d7;
  font-size: 1.25rem;
}

.laptopuserdetailsProject {
  margin: 3rem 0rem;
}

.laptopuserdetailsProjects-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.laptopuserdetailsProjects-card {
  background: white;
  border-radius: 5px;
  padding: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 30%;
}

.laptopuserdetailsProjects-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: linear-gradient(to right, #667eea, #764ba2);
}

.laptopuserdetailsProjects-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.laptopheadingPara2 {
  font-size: 1.5rem;
  margin-bottom: 0.45rem;
  color: #333;
}

.laptopheadingPara3 {
  color: #333634;
  text-align: justify;
  font-size: 1rem;
  line-height: 1.3rem;
}

.laptopuserdetailsProjects-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0rem;
  font-size: 2rem;
  color: white;
}

.laptopuserdetailsContact {
  padding: 4rem 0rem;
  background: #333;
  color: white;
  text-align: center;
}

.laptopuserdetailsContact-info > p {
  font-size: 1.25rem;
  margin: 1rem 0rem;
}

.laptopwebsite-link {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;
  margin-top: 1rem;
  transition: color 0.3s ease;
}

.laptopwebsite-link:hover {
  color: #764ba2;
}

.laptopuserdetailsContact-footer {
  text-align: center;
  font-size: 1rem;
  margin: 1.5rem 0rem;
}

@media (min-width: 489px) {
  .status-bar-laptop {
    display: flex !important;
  }
  .router-panel {
    border-radius: 0.5rem 0.5rem 3.3rem 3.3rem;
    height: 3rem;
    padding: 0rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .pirate-scroll {
    padding: 1.75rem 1.25rem;
  }
  .scroll-title {
    font-size: 1.6rem;
  }
  .scroll-instructions li {
    font-size: 1rem;
    padding-left: 2rem;
  }
  .scroll-instructions li::before {
    font-size: 1.1rem;
  }
  .stamp {
    width: 90px;
    height: 90px;
    bottom: 16px;
    right: 16px;
  }
  .stamp i {
    font-size: 1.4rem;
  }
}

/* Tablet Styles */
@media (min-width: 768px) {
  .profile-image {
    transform: scale(1);
  }

  .profile-image-cloud {
    height: 90px;
  }

  .profile-image-person {
    height: 112px;
    left: 2.5rem;
  }

  .page-node {
    width: var(--node-size-md);
    height: var(--node-height-md);
    font-size: var(--font-size-sm);
  }

  .page-node::before {
    top: -16px;
    left: 16px;
    width: 35px;
    height: 35px;
  }

  .page-node::after {
    top: -26px;
    right: 14px;
    width: 55px;
    height: 55px;
  }

  .page-node-icons > i {
    font-size: 16px;
  }

  .page-node-icons span {
    font-size: var(--font-size-sm);
  }

  .antenna {
    width: 30px;
    height: 30px;
    top: -2.5rem;
  }

  .antenna-base {
    width: 3px;
    height: 15px;
  }

  .antenna-signal {
    width: 24px;
    height: 24px;
    bottom: 12px;
  }

  .router-panel {
    width: 75vw;
    height: 3.5rem;
    border-radius: 1rem 1rem 4rem 4rem;
  }

  .router-header {
    font-size: var(--font-size-sm);
  }

  .router-antenna {
    top: -30px;
    width: 30px;
    height: 30px;
  }

  .router-antenna .antenna-base {
    width: 4px;
    height: 24px;
  }

  .router-antenna .antenna-signal {
    width: 24px;
    height: 24px;
    margin-top: -12px;
  }

  .router-conditions {
    gap: 5px;
    margin-right: 2rem;
  }

  .router-images > i {
    font-size: 0.9rem;
  }
  .router-images,
  .router-lights {
    gap: 2rem;
  }
  .status-light {
    width: 8px;
    height: 8px;
  }

  .switch {
    width: 32px;
    height: 16px;
  }

  .slider:before {
    height: 12px;
    width: 12px;
  }

  input:checked + .slider:before {
    transform: translateX(16px);
  }

  .identity-core {
    top: 15%;
  }

  .project-instances {
    left: 15%;
  }

  .skill-repository {
    right: 15%;
  }

  .contact-gateway {
    bottom: 15%;
  }

  .packet {
    width: 6px;
    height: 6px;
  }

  .packet-icon {
    font-size: 14px;
  }

  .server-packet {
    font-size: 14px;
  }

  .router-packet {
    font-size: 12px;
  }

  .connection-light {
    width: 8px;
    height: 8px;
  }

  .server-link {
    font-size: var(--font-size-sm);
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .server-box {
    width: 10rem;
    height: 8rem;
  }

  .control-compartment {
    height: 2rem;
    padding: 0 5px;
  }

  .status-compartment {
    height: 2rem;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .toggle-switch {
    width: 50px;
    height: 20px;
  }

  .toggle-slider {
    width: 16px;
    height: 14px;
    top: 3px;
    left: 3px;
  }

  .toggle-switch.on .toggle-slider {
    transform: translateX(30px);
  }

  .status-label {
    font-size: 0.8rem;
    margin-bottom: 5px;
  }

  .power-indicator {
    font-size: 0.8rem;
    top: 6px;
    left: 10px;
  }

  .server-container {
    padding: 10px;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  body {
    font-size: var(--font-size-md);
  }

  .page-node {
    width: var(--node-size-lg);
    height: var(--node-height-lg);
    font-size: var(--font-size-md);
  }

  .page-node::before {
    top: -20px;
    left: 18px;
    width: 50px;
    height: 50px;
  }

  .page-node::after {
    top: -34px;
    right: 15px;
    width: 80px;
    height: 80px;
  }

  .page-node-icons > i {
    font-size: 20px;
  }

  .page-node-icons span {
    font-size: var(--font-size-md);
  }

  .antenna {
    width: 40px;
    height: 40px;
    top: -4rem;
  }

  .antenna-base {
    width: 4px;
    height: 20px;
  }

  .antenna-signal {
    width: 30px;
    height: 30px;
    bottom: 15px;
  }

  .router-panel {
    width: 70vw;
    max-width: 800px;
    height: 4rem;
    padding: var(--spacing-xl);
  }

  .router-header {
    font-size: var(--font-size-lg);
  }

  .router-antenna {
    top: -35px;
    width: 40px;
    height: 40px;
  }

  .router-antenna .antenna-base {
    width: 4px;
    height: 26px;
  }

  .router-antenna .antenna-signal {
    width: 30px;
    height: 30px;
    margin-top: -15px;
  }

  .status-light {
    width: 10px;
    height: 10px;
  }

  .switch {
    width: 40px;
    height: 20px;
  }

  .slider:before {
    height: 16px;
    width: 16px;
  }

  input:checked + .slider:before {
    transform: translateX(20px);
  }

  .identity-core {
    top: 12%;
  }

  .project-instances {
    left: 20%;
  }

  .skill-repository {
    right: 20%;
  }

  .contact-gateway {
    bottom: 12%;
  }

  .connection-light {
    width: 10px;
    height: 10px;
  }

  .packet {
    width: 10px;
    height: 10px;
  }

  .packet-icon {
    font-size: 18px;
  }

  .server-packet {
    font-size: 16px;
  }

  .router-packet {
    font-size: 16px;
  }

  .server-link {
    font-size: var(--font-size-md);
  }
}
/* Large Desktop */
@media (min-width: 1440px) {
  .router-panel {
    width: 60vw;
    max-width: 1000px;
  }

  .page-node {
    width: 160px;
    height: 70px;
    font-size: var(--font-size-md);
  }

  .page-node::before {
    top: -25px;
    left: 20px;
    width: 60px;
    height: 60px;
  }

  .page-node::after {
    top: -40px;
    right: 18px;
    width: 90px;
    height: 90px;
  }

  .page-node-icons > i {
    font-size: 24px;
  }

  .profile-image-cloud {
    height: 120px;
  }

  .profile-image-person {
    height: 140px;
    left: 3rem;
  }

  .antenna {
    width: 50px;
    height: 50px;
    top: -5rem;
  }

  .antenna-base {
    width: 5px;
    height: 25px;
  }

  .antenna-signal {
    width: 40px;
    height: 40px;
    bottom: 20px;
  }

  .router-panel {
    height: 5rem;
    padding: var(--spacing-2xl);
  }

  .router-header {
    font-size: var(--font-size-lg);
  }

  .router-antenna {
    top: -45px;
    width: 50px;
    height: 50px;
  }

  .router-antenna .antenna-base {
    width: 5px;
    height: 25px;
  }

  .router-antenna .antenna-signal {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }

  .status-light {
    width: 12px;
    height: 12px;
  }

  .switch {
    width: 50px;
    height: 24px;
  }

  .slider:before {
    height: 20px;
    width: 20px;
  }

  input:checked + .slider:before {
    transform: translateX(26px);
  }

  .connection-light {
    width: 14px;
    height: 14px;
  }

  .packet {
    width: 12px;
    height: 12px;
  }

  .packet-icon {
    font-size: 20px;
  }

  .router-packet {
    font-size: 18px;
  }

  .server-container {
    padding: 15px;
  }

  .server-box {
    width: 12rem;
    height: 10rem;
  }

  .control-compartment {
    height: 2.5rem;
  }

  .status-compartment {
    height: 2.5rem;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .toggle-switch {
    width: 60px;
    height: 24px;
  }

  .toggle-slider {
    width: 20px;
    height: 18px;
    top: 3px;
    left: 3px;
  }

  .toggle-switch.on .toggle-slider {
    transform: translateX(36px);
  }

  .status-label {
    font-size: 0.9rem;
  }

  .power-indicator {
    font-size: 0.9rem;
  }
}

/* Extra Large Desktop */
@media (min-width: 1920px) {
  .router-panel {
    width: 50vw;
    max-width: 1200px;
    height: 6rem;
  }

  .router-header {
    font-size: var(--font-size-xl);
  }

  .page-node {
    width: 180px;
    height: 80px;
    font-size: var(--font-size-lg);
  }

  .page-node-icons > i {
    font-size: 28px;
  }

  .profile-image-cloud {
    height: 140px;
  }

  .profile-image-person {
    height: 160px;
    left: 3.5rem;
  }

  .server-container {
    padding: 20px;
  }

  .server-box {
    width: 14rem;
    height: 12rem;
  }

  .control-compartment {
    height: 3rem;
  }

  .status-compartment {
    height: 3rem;
  }

  .dot {
    width: 12px;
    height: 12px;
  }

  .toggle-switch {
    width: 70px;
    height: 28px;
  }

  .toggle-slider {
    width: 24px;
    height: 22px;
    top: 3px;
    left: 3px;
  }

  .toggle-switch.on .toggle-slider {
    transform: translateX(42px);
  }

  .status-label {
    font-size: 1rem;
  }

  .power-indicator {
    font-size: 1rem;
  }
}

/* Page Link Display */
.page-link-display {
  position: absolute;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: var(--text-primary);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  font-size: var(--font-size-xs);
  font-family: "Courier New", monospace;
  white-space: nowrap;
  z-index: 25;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.page-link-display.active {
  opacity: 1;
  transform: translateY(0);
}

.page-link-display::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #1e293b;
}

/* Mobile adjustments for page link display */
@media (max-width: 767px) {
  .page-link-display {
    font-size: 10px;
    padding: 4px 8px;
  }
}

/* Tablet adjustments for page link display */
@media (min-width: 768px) {
  .page-link-display {
    font-size: var(--font-size-xs);
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

/* Desktop adjustments for page link display */
@media (min-width: 1024px) {
  .page-link-display {
    font-size: var(--font-size-sm);
    padding: var(--spacing-md) var(--spacing-lg);
  }
}

/* Large Desktop adjustments for page link display */
@media (min-width: 1440px) {
  .page-link-display {
    font-size: var(--font-size-md);
    padding: var(--spacing-md) var(--spacing-xl);
  }
}

/* all pages  */

/* Mobile First - Base Styles */
/* .section-mobile {
  min-height: 100vh;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease forwards;
}
.section-laptop {
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease forwards;
} */

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  /* border: 5px solid rgba(255, 255, 255, 0.3);
            margin-bottom: 30px;
            background: rgba(255, 255, 255, 0.1); */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  animation: pulse 2s infinite;
}
.profile-img > img {
  width: 150px;
  height: auto;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ---------------------- About Page ------------------------ */
.phone-about-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.about-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 3rem;
}
.phone-about-content h1 {
  font-size: 1.5rem;
  margin: 15px 0px;
  animation: slideInLeft 1s ease 0.5s both;
}
.about-content h1 {
  font-size: 2.5rem;
  margin: 15px 0px;
  animation: slideInLeft 1s ease 0.5s both;
}

.phone-about-content .title {
  font-size: smaller;
  margin-bottom: 20px;
  animation: slideInRight 1s ease 0.7s both;
}
.about-content .title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  opacity: 0.9;
  animation: slideInRight 1s ease 0.7s both;
}

.about-content p {
  font-size: 1.1rem;
  max-width: 600px;
  line-height: 1.8;
  animation: fadeIn 1s ease 1s both;
}

.phone-about-content-p {
  font-size: small;
  line-height: 1.8;
  animation: fadeIn 1s ease 1s both;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Skills Section */
.skills-container {
  min-height: 100vh;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 1s ease forwards;
  gap: 2rem;
}

.skills-container-laptop {
  min-height: 100vh;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 1s ease forwards;
  gap: 2rem;
}

.skills-title-mobile {
  font-size: 1.5rem;
}
.skills-title-laptop {
  font-size: 2.5rem;
}
.skills-title {
  text-align: center;
  animation: bounceIn 1s ease;
}

@keyframes bounceIn {
  0%,
  20%,
  40%,
  60%,
  80% {
    transform: translateY(0);
  }
  10% {
    transform: translateY(-10px);
  }
  30% {
    transform: translateY(-5px);
  }
}

.skill-category-laptop,
.skill-category-mobile {
  width: 100%;
}

.skill-category-mobile h3 {
  font-size: 0.85rem;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}
.skill-category-laptop h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.skill-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 15px 10px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.skill-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* Contact Section */
/* .contact-section {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
} */

.contact-container {
  display: flex;
  color: white;
  flex-direction: column;
  width: 100%;
  align-items: center;
  padding: 0px 8px;
}
.contact-container-laptop {
  display: flex;
  color: white;
  flex-direction: column;
  padding: 1rem;
  width: 100%;
  align-items: center;
}

.contact-title {
  text-align: center;
  font-size: 1.5rem;
  margin: 1rem;
  animation: rotateIn 1s ease;
}

.contact-title-laptop {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  animation: rotateIn 1s ease;
}

@keyframes rotateIn {
  from {
    transform: rotate(-200deg);
    opacity: 0;
  }
  to {
    transform: rotate(0);
    opacity: 1;
  }
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.social-links-laptop {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.social-link {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: bounceInDown 1s ease;
}

.social-link-laptop {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: bounceInDown 1s ease;
}

@keyframes bounceInDown {
  0%,
  60%,
  75%,
  90%,
  100% {
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(0, -3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 25px, 0);
  }
  75% {
    transform: translate3d(0, -10px, 0);
  }
  90% {
    transform: translate3d(0, 5px, 0);
  }
  100% {
    transform: none;
  }
}

.social-link:hover {
  transform: translateY(-10px) scale(1.1);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 6px;
  border-radius: 5px;
  backdrop-filter: blur(10px);
  animation: zoomIn 1s ease;
  width: 100%;
}

.contact-form-laptop {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  animation: zoomIn 1s ease;
  width: 95%;
  max-width: 800px;
}

@keyframes zoomIn {
  from {
    transform: scale(0.3);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.form-group,
.form-group-laptop {
  margin-bottom: 20px;
}

.form-group label,
.form-group-laptop label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 5px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 16px;
  transition: all 0.3s ease;
}
.form-group-laptop input,
.form-group-laptop textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group-laptop input:focus,
.form-group-laptop textarea:focus {
  outline: none;
  background: white;
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-group textarea {
  height: 80px;
  resize: vertical;
}
.form-group-laptop textarea {
  height: 120px;
  resize: vertical;
}
.submit-btn {
  width: 100%;
  padding: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn-laptop {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover,
.submit-btn-laptop:hover {
  background: white;
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Projects Section */
.projects-title {
  text-align: center;
  font-size: 1.5rem;
  margin: 1.25rem 0rem -0.5rem 0rem;
  animation: flipInX 1s ease;
}
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.3rem;
}
.project-card {
  background: rgb(30, 41, 59);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  transition: 0.4s;
  display: flex;
  flex-direction: column;
  padding: 0.3rem;
}
.project-image {
  width: 100%;
  height: auto;
}

.project-content {
  padding: 0.3rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.25rem;
}

.project-description {
  font-size: smaller;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem;
  margin-top: 0.5rem;
  background: #0b8330;
  font-size: smaller;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.laptop-project-image {
  width: 100%;
  height: 8rem;
  object-fit: cover;
}
.laptop-projects-grid {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  flex-direction: row;
}
.laptop-project-card {
  max-width: 1200px;
  background: rgb(30, 41, 59);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  transition: 0.4s;
  display: flex;
  flex-direction: column;
  padding: 0.3rem;
  width: 30%;
  height: -webkit-fill-available;
}
.laptop-project-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}
.laptop-project-description {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.laptop-project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  margin-top: 0.5rem;
  background: #0b8330;
  font-size: 0.8rem;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
}
/*.projects-section {
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.projects-container {
  max-width: 1200px;
  width: 100%;
}



@keyframes flipInX {
  from {
    transform: perspective(400px) rotateX(-90deg);
    opacity: 0;
  }
  40% {
    transform: perspective(400px) rotateX(-10deg);
  }
  70% {
    transform: perspective(400px) rotateX(10deg);
  }
  100% {
    transform: perspective(400px) rotateX(0deg);
    opacity: 1;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  animation: slideInUp 1s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-img {
  width: 100%;
  height: 200px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.7);
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.project-content p {
  margin-bottom: 15px;
  opacity: 0.9;
}

.project-link {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-link:hover {
  background: white;
  color: #333;
  transform: scale(1.05);
}


/* Mobile devices (167px - 767px) */
/* @media (min-width: 167px) and (max-width: 767px) {
            .about-content h1 {
                font-size: 2rem;
            }

            .skills-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .social-links {
                gap: 20px;
            }
        } */

/* Tablets (768px - 1023px) */
/* @media (min-width: 768px) {
            .section {
                padding: 60px 40px;
            }

            .skills-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .projects-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        } */

/* Desktop (1024px and up) */
/* @media (min-width: 1024px) {
            .section {
                padding: 80px 60px;
            }

            .skills-grid {
                grid-template-columns: repeat(4, 1fr);
            }

            .projects-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .about-content h1 {
                font-size: 3rem;
            }

            .profile-img {
                width: 200px;
                height: 200px;
            }
        .profile-img>img{
          width: 200px;
          height: auto;
        }
        } */

/* Large Desktop (1200px and up) */
/* @media (min-width: 1200px) {
            .projects-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        } */

/* Success message */
.phone-success-message {
  background: rgba(46, 204, 113);
  color: white;
  padding: 5px;
  border-radius: 2px;
  margin-top: 20px;
  text-align: center;
  display: block;
  animation: slideInDown 0.5s ease;
  position: fixed;
  font-size: 8px;
  top: 5rem;
  right: -0.75rem;
}
.success-message {
  background: rgba(46, 204, 113);
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
  display: none;
  animation: slideInDown 0.5s ease;
  position: fixed;
  top: -4.75rem;
  right: 0rem;
  font-size: 1rem;
}
@keyframes slideInDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
