@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");

/* Variables */
:root {
  --primary: #f3e600;
  --secondary: #ff003c;
  --accent: #00f0ff;
  --dark: #0d0d0d;
  --darker: #070707;
  --light: #f8f8f8;
  --cyber-blue: #00f0ff;
  --cyber-pink: #ff003c;
  --cyber-yellow: #f3e600;
  --menu-width: 280px;
  --panel-bg: rgba(13, 13, 13, 0.85);
  --glitch-offset: 3px;
}

html {
  min-height: 100%;
  height: 100%;
  overflow-x: hidden;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: "Rajdhani", sans-serif;
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  background-image: url("https://images.unsplash.com/photo-1563089145-599997674d42?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  touch-action: manipulation;
}

/* Noise Effect */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c4zIgLAAABQklEQVR4Xo3T6XKDIBCGYUFAQUXNYrL3f6dbJDYJk+Y7vr8zO8PAMNKVsqxVlaHPP/KePgH2+YfHOuj/ZkqNRqNRqVTq9Xr9wdyFDgTQfQzEUZhJlJRNxU3JzOqzJJRMnAQej3uRqcQSWTCbHVmwJYv4+LgSi7+jRCCrQyQBsnwgEshogkQgo3GbQEZBEYhM5UYgJCvbEEgmVbEEMjGSGLBEJnqSxLCEJVv8JYv4+IYSgawOkQTI8oFIIKMJEoGMxm0CGQVFIDKVBYGQrGxBIJlUxRLIxEhiwBKZ6EkSwxKWbPGXLOLjG0oEsjpEEiDLByKBjCZIBDIatwlkFBSByFQWBEKysgWBZFIVSyATI4kBS2SiJ0kMS1iyxV+yiI9vKBHI6hBJgCwfiAQymiARyGjcJpBRUAQiU1kQCMnKFgSSyVQs4S/UYgqmTVOacwAAAABJRU5ErkJggg==");
  opacity: 0.05;
  z-index: 1000;
  pointer-events: none;
}

.noise,
.overlay,
.scan-line {
  pointer-events: none !important;
}

/* Overlay Effect */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 240, 255, 0.05) 0%, rgba(243, 230, 0, 0.05) 100%);
  z-index: 999;
  pointer-events: none;
}

/* Scan Line Effect */
.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(0, 240, 255, 0.3);
  z-index: 1001;
  pointer-events: none;
  animation: scan 8s linear infinite;
}

@keyframes scan {
  0% {
    top: 0%;
  }

  100% {
    top: 100%;
  }
}

/* Main Container */
.cyberpunk-container {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Side Menu */
.side-menu {
  width: var(--menu-width);
  height: 100%;
  background-color: rgba(7, 7, 7, 0.9);
  border-right: 1px solid var(--accent);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1002;
}

.side-menu::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, var(--cyber-blue), var(--cyber-pink));
  z-index: -1;
}

.logo-container {
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.cyber-logo {
  width: 200px;
  height: 80px;
  background-color: var(--darker);
  border: 2px solid var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cyber-logo::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  background: linear-gradient(45deg, var(--cyber-blue), var(--cyber-pink), var(--cyber-yellow));
  z-index: -1;
  animation: gradient 5s ease infinite;
  background-size: 200% 200%;
}

.logo-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(45deg, var(--cyber-yellow), var(--cyber-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.logo-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--cyber-yellow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logo-glitch 3s infinite;
  z-index: -1;
}

@keyframes logo-glitch {

  0%,
  90%,
  100% {
    transform: translate(0);
    opacity: 0;
  }

  5% {
    transform: translate(2px, 1px);
    opacity: 0.1;
  }

  10% {
    transform: translate(-1px, -1px);
    opacity: 0.2;
  }

  15% {
    transform: translate(0);
    opacity: 0;
  }
}

.logo-text.glitch {
  position: relative;
  display: inline-block;
  max-width: 190px;
  overflow: hidden;
  font-size: 1rem;
  letter-spacing: 2px;
}

.logo-text.glitch::before,
.logo-text.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
}

.logo-text.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #ff0055;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.logo-text.glitch::after {
  left: -2px;
  text-shadow: -2px 0 #00ffd5, 2px 2px #ff0055;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 1s infinite linear alternate-reverse;
}

.menu-divider {
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  margin: 0 auto 1rem;
}

.main-menu {
  flex-grow: 1;
  padding: 1rem 0;
}

.main-menu ul {
  list-style: none;
}

.menu-item {
  position: relative;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-item-content {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  position: relative;
}

.menu-icon {
  width: 30px;
  height: 30px;
  margin-right: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-box {
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent);
  position: relative;
  transition: all 0.3s ease;
}

.menu-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--light);
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.menu-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.menu-item:hover .menu-text,
.menu-item.active .menu-text {
  color: var(--primary);
}

.menu-item:hover .icon-box,
.menu-item.active .icon-box {
  border-color: var(--primary);
  transform: rotate(45deg);
}

.menu-item.active .menu-highlight {
  transform: scaleY(1);
}

.menu-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.system-info {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent);
}

.system-status {
  margin-bottom: 0.5rem;
}

/* Main Content */
.main-content {
  flex-grow: 1;
  position: relative;
  overflow-y: auto;
  padding: 2rem;
  -webkit-overflow-scrolling: touch;
}

/* HUD Elements */
.hud-element {
  position: absolute;
  z-index: 10;
}

.hud-top-left {
  top: 1rem;
  left: 1rem;
}

.hud-top-right {
  top: 1rem;
  right: 1rem;
}

.hud-bottom-left {
  bottom: 1rem;
  left: 1rem;
}

.hud-bottom-right {
  bottom: 1rem;
  right: 1rem;
}

.hud-box {
  display: flex;
  align-items: center;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent);
}

.hud-line {
  width: 30px;
  height: 1px;
  background-color: var(--accent);
  margin-right: 0.5rem;
}

/* Content Sections */
.content-sections {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 3rem;
}

.content-section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  margin-bottom: 2rem;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 10px rgba(243, 230, 0, 0.5);
}

.section-title::before {
  content: attr(data-text);
  position: absolute;
  left: var(--glitch-offset);
  text-shadow: -2px 0 var(--cyber-pink);
  top: 0;
  color: var(--primary);
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  animation: noise-anim 2s infinite linear alternate-reverse;
}

.section-title::after {
  content: attr(data-text);
  position: absolute;
  left: calc(var(--glitch-offset) * -1);
  text-shadow: -2px 0 var(--cyber-blue);
  top: 0;
  color: var(--primary);
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  animation: noise-anim-2 3s infinite linear alternate-reverse;
}

.section-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--primary), transparent);
}

/* Cyber Panel */
.cyber-panel {
  background-color: var(--panel-bg);
  border: 1px solid var(--accent);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.cyber-panel::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  background: linear-gradient(45deg, var(--cyber-blue), var(--cyber-pink), var(--cyber-yellow));
  z-index: -1;
  animation: gradient 5s ease infinite;
  background-size: 200% 200%;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--accent);
}

.panel-title {
  font-family: "Share Tech Mono", monospace;
  font-size: 1.2rem;
  color: var(--primary);
  letter-spacing: 1px;
}

.panel-controls {
  display: flex;
}

.panel-controls span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: 8px;
  background-color: var(--accent);
  opacity: 0.7;
}

.panel-content {
  padding: 2rem;
}

/* Profile Section */
.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

.profile-image {
  position: relative;
}

.cyber-image {
  width: 100%;
  height: 300px;
  background-image: url("assets/img/profile.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  border: 1px solid var(--accent);
}

.image-glitch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("img/profile.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  animation: glitch-image 5s infinite;
}

.image-scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(to bottom, rgba(0, 240, 255, 0.5), transparent);
  animation: image-scan 3s linear infinite;
  z-index: 2;
}

@keyframes image-scan {
  0% {
    top: 0;
  }

  100% {
    top: 100%;
  }
}

.image-data {
  margin-top: 1rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent);
}

.data-line {
  margin-bottom: 0.5rem;
}

.info-header {
  margin-bottom: 1.5rem;
}

.info-header h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.title-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.9rem;
  position: relative;
}

.title-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 240, 255, 0.2), transparent);
  z-index: -1;
}

.info-description {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cyber-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-family: "Share Tech Mono", monospace;
}

.stat-bar {
  height: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  position: relative;
  margin-bottom: 0.5rem;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(to right, var(--cyber-blue), var(--cyber-pink));
  position: relative;
}

.stat-fill::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background-color: var(--primary);
}

.stat-value {
  align-self: flex-end;
  font-family: "Share Tech Mono", monospace;
  color: var(--primary);
  font-size: 1.2rem;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2rem;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.skill-name {
  font-size: 1.2rem;
  color: var(--light);
}

.skill-level-text {
  font-family: 'Share Tech Mono', monospace;
  color: var(--cyber-blue);
  font-weight: bold;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(0, 240, 255, 0.2) 100%);
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 15px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}


.skill-level {
  height: 100%;
  background: linear-gradient(90deg,
      var(--cyber-yellow) 0%,
      var(--cyber-blue) 50%,
      var(--cyber-green) 100%);
  border-radius: 5px;
  position: relative;
  transition: width 1.5s ease;
  box-shadow: 0 0 10px rgba(243, 230, 0, 0.3);
}

.level-indicator {
  position: absolute;
  right: -2px;
  top: -2px;
  width: 6px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  animation: pulse-indicator 2s infinite;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.skill-details {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
}

.detail-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: var(--cyber-green);
  font-weight: bold;
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.1) 0%, rgba(0, 255, 127, 0.2) 100%);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(0, 255, 127, 0.3);
  border-radius: 4px;
  min-width: 50px;
}

/* Projects Section */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
  border: 1px solid rgba(243, 230, 0, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.project-card:hover {
  border-color: var(--cyber-yellow);
  box-shadow: 0 8px 25px rgba(243, 230, 0, 0.2);
  transform: translateY(-5px);
}

.project-card-year {
  flex-basis: 10%;
  max-width: 10%;
  font-family: "Share Tech Mono", monospace;
  color: var(--cyber-blue);
  font-size: 1.1rem;
  font-weight: bold;
  padding-right: 1rem;
  text-align: center;
  align-self: center;
}

.project-card-main-content {
  flex-basis: 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
}

.project-card-tech {
  flex-basis: 20%;
  max-width: 20%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0 1rem;
  overflow: hidden;
  border-left: 1px solid rgba(var(--cyber-blue-rgb), 0.2);
  border-right: 1px solid rgba(var(--cyber-blue-rgb), 0.2);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.project-card:hover::before {
  transform: scaleY(1);
}

.project-image {
  flex: 0 0 200px;
  height: 150px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--accent);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 240, 255, 0.2) 0%, rgba(255, 0, 60, 0.2) 100%);
  z-index: 1;
}

.image-scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to bottom, rgba(0, 240, 255, 0.5), transparent);
  animation: image-scan 2s linear infinite;
  z-index: 2;
}

.project-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-card-actions {
  flex-basis: 20%;
  max-width: 20%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  padding-left: 1rem;
}

.project-card-tech .tech-tag {
  margin-right: 0;
  width: 100%;
  text-align: center;
}

.project-card-actions .cyber-button-small {
  width: 100%;
  text-align: center;
}

.tech-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background-color: rgba(var(--cyber-blue-rgb), 0.1);
  border: 1px solid rgba(var(--cyber-blue-rgb), 0.5);
  color: var(--cyber-blue);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
  position: relative;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
  line-height: 1.2;
  text-align: center;
  width: fit-content;
  max-width: 100%;
}

.tech-tag:hover {
  background-color: rgba(var(--cyber-blue-rgb), 0.2);
  color: var(--cyber-yellow);
  border-color: var(--cyber-yellow);
  box-shadow: 0 0 10px rgba(var(--cyber-yellow-rgb), 0.3);
  transform: translateY(-2px) scale(1.05);
}

.tech-tag.moodle-tag {
  background-color: rgba(var(--moodle-orange-rgb, 255, 107, 53), 0.1);
  border-color: rgba(var(--moodle-orange-rgb, 255, 107, 53), 0.5);
  color: var(--moodle-orange, #ff6b35);
}

.tech-tag.moodle-tag:hover {
  background-color: rgba(var(--moodle-orange-rgb, 255, 107, 53), 0.2);
  color: #fff;
  border-color: var(--moodle-orange, #ff6b35);
  box-shadow: 0 0 10px rgba(var(--moodle-orange-rgb, 255, 107, 53), 0.3);
}

.project-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--cyber-yellow);
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-year {
  font-family: "Share Tech Mono", monospace;
  color: var(--accent);
  font-size: 0.9rem;
}

.project-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  font-size: 0.85rem;
  margin-bottom: 0;
}

.project-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  align-items: center;
}

.project-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

.project-status {
  font-family: "Share Tech Mono", monospace;
  color: var(--accent);
  font-size: 0.9rem;
}

.cyber-button-small {
  display: inline-block;
  padding: 0.3rem 1rem;
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cyber-button-small::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
  transition: all 0.5s ease;
}

.cyber-button-small:hover {
  background-color: var(--accent);
  color: var(--dark);
  box-shadow: 0 0 10px var(--accent);
}

.cyber-button-small:hover::before {
  left: 100%;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-header,
.form-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.header-icon {
  width: 30px;
  height: 30px;
  background-color: var(--accent);
  margin-right: 1rem;
  position: relative;
  transform: rotate(45deg);
}

.header-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  background-color: var(--dark);
  transform: translate(-50%, -50%);
}

.contact-header h3,
.form-header h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-family: "Share Tech Mono", monospace;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.contact-value {
  font-size: 1.2rem;
  color: var(--light);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-family: "Share Tech Mono", monospace;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.input-container {
  position: relative;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem;
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  color: var(--light);
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.input-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent);
  pointer-events: none;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
}

input:focus+.input-border,
textarea:focus+.input-border {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(243, 230, 0, 0.3);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-action {
  display: flex;
  justify-content: flex-end;
}

.cyber-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  font-family: "Share Tech Mono", monospace;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.button-text {
  position: relative;
  z-index: 1;
}

.button-glitch {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(243, 230, 0, 0.4), transparent);
  transition: all 0.5s ease;
}

.cyber-button:hover {
  background-color: var(--primary);
  color: var(--dark);
  box-shadow: 0 0 15px rgba(243, 230, 0, 0.5);
}

.cyber-button:hover .button-glitch {
  left: 100%;
}

/* Glitch Effects */
.glitch {
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  color: var(--primary);
  letter-spacing: 0.5rem;
  animation: glitch-skew 1s infinite linear alternate-reverse;
  text-shadow: 0 0 10px rgba(243, 230, 0, 0.5);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: var(--glitch-offset);
  text-shadow: -2px 0 var(--cyber-pink);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: calc(var(--glitch-offset) * -1);
  text-shadow: -2px 0 var(--cyber-blue);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.cyber-glitch-text {
  position: relative;
  color: var(--primary);
  display: inline-block;
  animation: cyber-text-flicker 3s linear infinite;
}

.cyber-glitch-text::before,
.cyber-glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.cyber-glitch-text::before {
  color: var(--cyber-pink);
  z-index: -1;
  animation: cyber-text-shift 2s ease-in-out infinite alternate;
}

.cyber-glitch-text::after {
  color: var(--cyber-blue);
  z-index: -2;
  animation: cyber-text-shift 1.5s ease-in-out infinite alternate;
}

/* Animations */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes glitch-anim {
  0% {
    clip: rect(31px, 9999px, 94px, 0);
    transform: skew(0.5deg);
  }

  4% {
    clip: rect(91px, 9999px, 43px, 0);
    transform: skew(0.1deg);
  }

  8% {
    clip: rect(15px, 9999px, 13px, 0);
    transform: skew(0.8deg);
  }

  12% {
    clip: rect(69px, 9999px, 57px, 0);
    transform: skew(0.4deg);
  }

  16% {
    clip: rect(57px, 9999px, 98px, 0);
    transform: skew(0.3deg);
  }

  20% {
    clip: rect(46px, 9999px, 14px, 0);
    transform: skew(0.9deg);
  }

  25% {
    clip: rect(18px, 9999px, 23px, 0);
    transform: skew(0.2deg);
  }

  29% {
    clip: rect(71px, 9999px, 18px, 0);
    transform: skew(0.6deg);
  }

  33% {
    clip: rect(2px, 9999px, 11px, 0);
    transform: skew(0.7deg);
  }

  37% {
    clip: rect(14px, 9999px, 77px, 0);
    transform: skew(0.5deg);
  }

  41% {
    clip: rect(95px, 9999px, 46px, 0);
    transform: skew(0.3deg);
  }

  45% {
    clip: rect(99px, 9999px, 7px, 0);
    transform: skew(0.2deg);
  }

  50% {
    clip: rect(82px, 9999px, 48px, 0);
    transform: skew(0.1deg);
  }

  54% {
    clip: rect(32px, 9999px, 49px, 0);
    transform: skew(0.4deg);
  }

  58% {
    clip: rect(55px, 9999px, 49px, 0);
    transform: skew(0.8deg);
  }

  62% {
    clip: rect(12px, 9999px, 90px, 0);
    transform: skew(0.6deg);
  }

  66% {
    clip: rect(75px, 9999px, 76px, 0);
    transform: skew(0.5deg);
  }

  70% {
    clip: rect(67px, 9999px, 68px, 0);
    transform: skew(0.7deg);
  }

  75% {
    clip: rect(67px, 9999px, 15px, 0);
    transform: skew(0.9deg);
  }

  80% {
    clip: rect(20px, 9999px, 54px, 0);
    transform: skew(0.3deg);
  }

  85% {
    clip: rect(60px, 9999px, 16px, 0);
    transform: skew(0.2deg);
  }

  90% {
    clip: rect(98px, 9999px, 7px, 0);
    transform: skew(0.1deg);
  }

  95% {
    clip: rect(72px, 9999px, 21px, 0);
    transform: skew(0.4deg);
  }

  100% {
    clip: rect(93px, 9999px, 81px, 0);
    transform: skew(0.6deg);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(17px, 9999px, 41px, 0);
    transform: skew(-0.5deg);
  }

  4% {
    clip: rect(45px, 9999px, 27px, 0);
    transform: skew(-0.1deg);
  }

  8% {
    clip: rect(36px, 9999px, 26px, 0);
    transform: skew(-0.8deg);
  }

  12% {
    clip: rect(75px, 9999px, 85px, 0);
    transform: skew(-0.4deg);
  }

  16% {
    clip: rect(82px, 9999px, 31px, 0);
    transform: skew(-0.3deg);
  }

  20% {
    clip: rect(72px, 9999px, 25px, 0);
    transform: skew(-0.9deg);
  }

  25% {
    clip: rect(6px, 9999px, 100px, 0);
    transform: skew(-0.2deg);
  }

  29% {
    clip: rect(99px, 9999px, 100px, 0);
    transform: skew(-0.6deg);
  }

  33% {
    clip: rect(53px, 9999px, 81px, 0);
    transform: skew(-0.7deg);
  }

  37% {
    clip: rect(81px, 9999px, 72px, 0);
    transform: skew(-0.5deg);
  }

  41% {
    clip: rect(91px, 9999px, 100px, 0);
    transform: skew(-0.3deg);
  }

  45% {
    clip: rect(74px, 9999px, 30px, 0);
    transform: skew(-0.2deg);
  }

  50% {
    clip: rect(35px, 9999px, 74px, 0);
    transform: skew(-0.1deg);
  }

  54% {
    clip: rect(94px, 9999px, 85px, 0);
    transform: skew(-0.4deg);
  }

  58% {
    clip: rect(56px, 9999px, 57px, 0);
    transform: skew(-0.8deg);
  }

  62% {
    clip: rect(46px, 9999px, 31px, 0);
    transform: skew(-0.6deg);
  }

  66% {
    clip: rect(92px, 9999px, 100px, 0);
    transform: skew(-0.5deg);
  }

  70% {
    clip: rect(71px, 9999px, 18px, 0);
    transform: skew(-0.7deg);
  }

  75% {
    clip: rect(64px, 9999px, 58px, 0);
    transform: skew(-0.9deg);
  }

  80% {
    clip: rect(98px, 9999px, 71px, 0);
    transform: skew(-0.3deg);
  }

  85% {
    clip: rect(66px, 9999px, 62px, 0);
    transform: skew(-0.2deg);
  }

  90% {
    clip: rect(23px, 9999px, 98px, 0);
    transform: skew(-0.1deg);
  }

  95% {
    clip: rect(18px, 9999px, 53px, 0);
    transform: skew(-0.4deg);
  }

  100% {
    clip: rect(40px, 9999px, 31px, 0);
    transform: skew(-0.6deg);
  }
}

@keyframes glitch-skew {
  0% {
    transform: skew(0deg);
  }

  10% {
    transform: skew(0deg);
  }

  11% {
    transform: skew(2deg);
  }

  12% {
    transform: skew(0deg);
  }

  20% {
    transform: skew(0deg);
  }

  21% {
    transform: skew(-2deg);
  }

  22% {
    transform: skew(0deg);
  }

  40% {
    transform: skew(0deg);
  }

  41% {
    transform: skew(1deg);
  }

  42% {
    transform: skew(0deg);
  }

  70% {
    transform: skew(0deg);
  }

  71% {
    transform: skew(-1deg);
  }

  72% {
    transform: skew(0deg);
  }

  100% {
    transform: skew(0deg);
  }
}

@keyframes cyber-text-shift {

  0%,
  40%,
  44%,
  58%,
  61%,
  65%,
  69%,
  73%,
  100% {
    transform: skew(0deg) translate(0);
  }

  41% {
    transform: skew(10deg) translate(-2px, 1px);
  }

  42% {
    transform: skew(-10deg) translate(2px, -1px);
  }

  59% {
    transform: skew(40deg) translate(4px, 2px);
  }

  60% {
    transform: skew(-40deg) translate(-4px, -2px);
  }

  63% {
    transform: skew(10deg) translate(-2px, 1px);
  }

  70% {
    transform: skew(-50deg) translate(6px, -3px);
  }

  71% {
    transform: skew(70deg) translate(-6px, 3px);
  }
}

@keyframes cyber-text-flicker {

  0%,
  30%,
  33%,
  36%,
  39%,
  42%,
  45%,
  48%,
  51%,
  54%,
  57%,
  100% {
    opacity: 1;
  }

  31%,
  34%,
  37%,
  40%,
  43%,
  46%,
  49%,
  52%,
  55% {
    opacity: 0.8;
  }

  32%,
  35%,
  38%,
  41%,
  44%,
  47%,
  50%,
  53%,
  56% {
    opacity: 0.9;
  }
}

@keyframes glitch-image {
  0% {
    transform: translate(0);
  }

  7% {
    transform: translate(-2px, 2px);
  }

  10% {
    transform: translate(-2px, -2px);
  }

  20% {
    transform: translate(2px, 2px);
  }

  27% {
    transform: translate(0);
  }

  30% {
    transform: translate(-5px, 5px);
  }

  35% {
    transform: translate(5px, -5px);
  }

  40% {
    transform: translate(0);
  }

  100% {
    transform: translate(0);
  }
}

@keyframes noise-anim {
  0% {
    clip: rect(20px, 9999px, 15px, 0);
    transform: skew(0.5deg);
  }

  5% {
    clip: rect(19px, 9999px, 13px, 0);
    transform: skew(-0.2deg);
  }

  10% {
    clip: rect(62px, 9999px, 78px, 0);
    transform: skew(0.8deg);
  }

  15% {
    clip: rect(94px, 9999px, 11px, 0);
    transform: skew(-0.9deg);
  }

  20% {
    clip: rect(29px, 9999px, 31px, 0);
    transform: skew(0.3deg);
  }

  25% {
    clip: rect(16px, 9999px, 59px, 0);
    transform: skew(-0.5deg);
  }

  30% {
    clip: rect(43px, 9999px, 96px, 0);
    transform: skew(0.7deg);
  }

  35% {
    clip: rect(82px, 9999px, 31px, 0);
    transform: skew(-0.1deg);
  }

  40% {
    clip: rect(57px, 9999px, 25px, 0);
    transform: skew(0.4deg);
  }

  45% {
    clip: rect(5px, 9999px, 59px, 0);
    transform: skew(-0.6deg);
  }

  50% {
    clip: rect(53px, 9999px, 70px, 0);
    transform: skew(0.2deg);
  }

  55% {
    clip: rect(84px, 9999px, 33px, 0);
    transform: skew(-0.3deg);
  }

  60% {
    clip: rect(46px, 9999px, 98px, 0);
    transform: skew(0.9deg);
  }

  65% {
    clip: rect(43px, 9999px, 65px, 0);
    transform: skew(-0.7deg);
  }

  70% {
    clip: rect(80px, 9999px, 87px, 0);
    transform: skew(0.1deg);
  }

  75% {
    clip: rect(57px, 9999px, 81px, 0);
    transform: skew(-0.8deg);
  }

  80% {
    clip: rect(86px, 9999px, 38px, 0);
    transform: skew(0.6deg);
  }

  85% {
    clip: rect(65px, 9999px, 93px, 0);
    transform: skew(-0.4deg);
  }

  90% {
    clip: rect(99px, 9999px, 91px, 0);
    transform: skew(0.3deg);
  }

  95% {
    clip: rect(48px, 9999px, 42px, 0);
    transform: skew(-0.2deg);
  }

  100% {
    clip: rect(23px, 9999px, 55px, 0);
    transform: skew(0.5deg);
  }
}

@keyframes noise-anim-2 {
  0% {
    clip: rect(16px, 9999px, 10px, 0);
    transform: skew(-0.5deg);
  }

  5% {
    clip: rect(22px, 9999px, 29px, 0);
    transform: skew(0.2deg);
  }

  10% {
    clip: rect(73px, 9999px, 24px, 0);
    transform: skew(-0.8deg);
  }

  15% {
    clip: rect(52px, 9999px, 46px, 0);
    transform: skew(0.9deg);
  }

  20% {
    clip: rect(60px, 9999px, 43px, 0);
    transform: skew(-0.3deg);
  }

  25% {
    clip: rect(30px, 9999px, 24px, 0);
    transform: skew(0.5deg);
  }

  30% {
    clip: rect(55px, 9999px, 94px, 0);
    transform: skew(-0.7deg);
  }

  35% {
    clip: rect(28px, 9999px, 82px, 0);
    transform: skew(0.1deg);
  }

  40% {
    clip: rect(75px, 9999px, 61px, 0);
    transform: skew(-0.4deg);
  }

  45% {
    clip: rect(23px, 9999px, 33px, 0);
    transform: skew(0.6deg);
  }

  50% {
    clip: rect(74px, 9999px, 39px, 0);
    transform: skew(-0.2deg);
  }

  55% {
    clip: rect(35px, 9999px, 44px, 0);
    transform: skew(0.3deg);
  }

  60% {
    clip: rect(12px, 9999px, 56px, 0);
    transform: skew(-0.9deg);
  }

  65% {
    clip: rect(40px, 9999px, 70px, 0);
    transform: skew(0.7deg);
  }

  70% {
    clip: rect(67px, 9999px, 68px, 0);
    transform: skew(-0.1deg);
  }

  75% {
    clip: rect(38px, 9999px, 31px, 0);
    transform: skew(0.8deg);
  }

  80% {
    clip: rect(63px, 9999px, 22px, 0);
    transform: skew(-0.6deg);
  }

  85% {
    clip: rect(57px, 9999px, 81px, 0);
    transform: skew(0.4deg);
  }

  90% {
    clip: rect(13px, 9999px, 48px, 0);
    transform: skew(-0.3deg);
  }

  95% {
    clip: rect(56px, 9999px, 27px, 0);
    transform: skew(0.2deg);
  }

  100% {
    clip: rect(36px, 9999px, 54px, 0);
    transform: skew(-0.5deg);
  }
}

/* Responsive Styles - REFACTORED FOR BETTER MOBILE COMPATIBILITY */
@media (min-width: 993px) {

  .cyberpunk-container {
    height: 100vh;
    overflow: hidden;
  }

  .side-menu {
    width: var(--menu-width);
    height: 100%;
    position: relative;
    z-index: 1002;
  }

  .menu-highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top;
  }

  .menu-item.active .menu-highlight {
    transform: scaleY(1);
  }

  .main-content {
    overflow-y: auto;
    flex-grow: 1;
    height: 100%;
  }

  .content-section.active {
    display: block !important;
  }
}

@media (max-width: 992px) {
  .project-card {
    flex-direction: column;
    align-items: stretch;
  }

  .project-card-tech {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
    border-left: none;
    border-right: none;
    padding: 0.5rem 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .tech-tag {
    font-size: 0.65rem;
  }

  .project-card-year,
  .project-card-main-content,
  .project-card-tech,
  .project-card-actions {
    flex-basis: auto;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    align-items: flex-start;
    text-align: left;
  }

  .project-card-year {
    text-align: left;
    margin-bottom: 0.5rem;
    align-self: flex-start;
  }

  .project-card-tech {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .project-card-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
  }

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

  .cyberpunk-container {
    flex-direction: column;
    height: auto;
    overflow-y: visible;
    min-height: 100vh;
  }

  .side-menu {
    width: 100%;
    height: auto;
    min-height: unset;
    flex-shrink: 0;
    border-right: none;
    border-bottom: 1px solid var(--accent);
    position: relative;
    z-index: 1002;
  }

  .main-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 0;
  }

  .menu-item {
    margin: 0.5rem;
    position: relative;
    cursor: pointer;
  }

  .menu-highlight {
    width: 100%;
    height: 4px;
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
  }

  .menu-item.active .menu-highlight {
    transform: scaleX(1);
  }

  .main-content {
    padding-top: 1rem;
    flex-grow: 1;
    overflow-y: visible;
    overflow-x: hidden;
  }

  .content-section.active {
    display: block !important;
  }
}

@media (max-width: 768px) {

  .project-row {
    gap: 1rem;
  }

  .pagination-controls {
    flex-direction: column;
    gap: 1rem;
  }

  .project-row .project-card {
    max-width: 100%;
    flex: none;
  }

  .pagination-btn {
    min-width: 100px;
    font-size: 0.8rem;
  }

  .project-card {
    flex-direction: column;
  }

  .project-image {
    flex: 0 0 auto;
    margin-bottom: 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .menu-item-content {
    padding: 0.6rem 1rem;
  }

  .menu-text {
    font-size: 1rem;
    letter-spacing: 0.5px;
  }

  .menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
  }

  .icon-box {
    width: 16px;
    height: 16px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .skill-item {
    padding: 1.5rem 1rem;
  }

  .skill-name {
    font-size: 1rem;
  }

  .skill-image {
    height: 60px;
    margin-bottom: 0.8rem;
  }

  .tech-icon {
    max-width: 45px;
    max-height: 45px;
  }

  .skill-name-centered {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .skill-level-text {
    font-size: 1rem;
    padding: 0.2rem 0.6rem;
  }

  .skill-details {
    gap: 0.5rem;
  }

  .detail-value {
    font-size: 0.9rem;
    padding: 0.15rem 0.4rem;
  }
}

@media (max-width: 576px) {

  .skills-carousel-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .carousel-nav {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .carousel-indicators {
    margin-top: 1rem;
  }

  .glitch {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .info-header h3 {
    font-size: 2rem;
  }

  .main-menu ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .menu-item {
    width: 90%;
    max-width: 400px;
    margin: 0.7rem 0;
    z-index: 3;
    touch-action: manipulation;
    min-height: 44px;
  }

  .menu-item-content {
    justify-content: center;
    width: 100%;
    padding: 0.8rem 1rem;
  }

  .menu-text {
    text-align: center;
    flex-grow: 1;
    word-break: break-word;
  }

  .menu-highlight {
    top: auto;
    bottom: 0;
  }
}

.cyber-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.cyber-modal.active {
  display: flex !important;
  opacity: 1;
}

.modal-content {
  width: 90%;
  max-width: 900px;
  background-color: #0d0d0d;
  border: 1px solid #ff0055;
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.5), inset 0 0 10px rgba(0, 255, 255, 0.2);
  position: relative;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ffd5, transparent);
}

.modal-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff0055, transparent);
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #ff0055;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 0, 85, 0.1);
}

.modal-close {
  color: #00ffd5;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #00ffd5;
}

.modal-close:hover {
  color: #ff0055;
  border-color: #ff0055;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-description {
  margin-bottom: 20px;
  color: #ccc;
  font-size: 14px;
  border-left: 2px solid #ff0055;
  padding-left: 15px;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  height: 150px;
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 0, 85, 0.2), transparent);
  pointer-events: none;
}

.gallery-item .image-scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
  animation: scanAnimation 2s linear infinite;
  pointer-events: none;
}

.modal-footer {
  padding: 10px 20px;
  border-top: 1px solid rgba(0, 255, 255, 0.3);
  display: flex;
  justify-content: flex-end;
  background-color: rgba(0, 255, 255, 0.05);
}

.modal-year {
  color: #00ffd5;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fullscreen-image-viewer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.95) !important;
  z-index: 10000 !important;
  display: none !important;
  justify-content: center !important;
  align-items: center !important;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#fullscreen-image {
  max-width: 90% !important;
  max-height: 90% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease;
}

.fullscreen-image-viewer.active,
.fullscreen-image-viewer.show {
  display: flex !important;
  opacity: 1 !important;
}

.viewer-content {
  width: 95%;
  height: 95%;
  max-width: none;
  max-height: none;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.viewer-header {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10001;
}

.viewer-body {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative;
  padding: 60px 80px 40px;
}

.viewer-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  max-width: 100%;
  max-height: 100%;
}

.viewer-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  z-index: 1;
}

.viewer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
      rgba(0, 240, 255, 0.02) 0%,
      transparent 25%,
      transparent 75%,
      rgba(243, 230, 0, 0.02) 100%);
  pointer-events: none;
}

.viewer-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--cyber-blue, #00f0ff) 50%,
      transparent 100%);
  animation: scan-line 3s linear infinite;
  pointer-events: none;
}

@keyframes scan-line {
  0% {
    top: 0;
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

.viewer-close {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--cyber-yellow, #f3e600);
  border: 1px solid var(--cyber-yellow, #f3e600);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.viewer-close:hover {
  background-color: var(--cyber-yellow, #f3e600);
  color: #000;
  box-shadow: 0 0 15px rgba(243, 230, 0, 0.5);
}

.viewer-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--cyber-blue, #00f0ff);
  border: 1px solid var(--cyber-blue, #00f0ff);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.viewer-navigation:hover {
  background-color: var(--cyber-blue, #00f0ff);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.prev-image {
  left: 30px;
}

.next-image {
  right: 30px;
}

.viewer-footer {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 4px;
  z-index: 10001;
}

.image-counter {
  font-family: "Share Tech Mono", monospace;
  color: var(--accent);
  font-size: 0.9rem;
  background-color: rgba(13, 13, 13, 0.7);
  padding: 8px 15px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  text-shadow: 0 0 5px var(--accent);
  position: relative;
  overflow: hidden;
}

.image-counter::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
  animation: counter-shine 4s infinite linear;
}

@keyframes counter-shine {
  0% {
    left: -100%;
  }

  50% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

.image-counter #current-image,
.image-counter #total-images {
  color: var(--primary);
}

.status-message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  animation: statusAppear 0.5s ease-in;
  border: 1px solid;
}

.success-message {
  background-color: rgba(0, 255, 133, 0.1);
  border-color: #00ff85;
  color: #00ff85;
  text-shadow: 0 0 5px rgba(0, 255, 133, 0.3);
}

.error-message {
  background-color: rgba(255, 0, 85, 0.1);
  border-color: #ff0055;
  color: #ff0055;
  text-shadow: 0 0 5px rgba(255, 0, 85, 0.3);
}

.cyber-status-online {
  color: #00ff85 !important;
  text-shadow: 0 0 5px #00ff85;
}

.contact-form select {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: #fff;
  padding: 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  transition: all 0.3s ease;
}

.contact-form select:focus {
  outline: none;
  border-color: #00ffd5;
  box-shadow: 0 0 10px rgba(0, 255, 213, 0.3);
}

.contact-form select option {
  background-color: #000;
  color: #fff;
}

@keyframes statusAppear {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estados actualizados para proyectos */
.status-indicator.no-iniciado {
  background: linear-gradient(135deg, rgba(128, 128, 128, 0.2) 0%, rgba(100, 100, 100, 0.3) 100%);
  color: #808080;
  border: 1px solid #808080;
  box-shadow: 0 0 15px rgba(128, 128, 128, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.status-indicator.no-iniciado:hover {
  box-shadow: 0 0 20px rgba(128, 128, 128, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.status-indicator.en-progreso {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.2) 0%, rgba(200, 130, 0, 0.3) 100%);
  color: #ffa500;
  border: 1px solid #ffa500;
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.status-indicator.en-progreso:hover {
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Animación especial para En Progreso */
.status-indicator.en-progreso::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  background-color: currentColor;
  border-radius: 50%;
  animation: pulse-progress 1.5s infinite;
  z-index: 3;
}

@keyframes pulse-progress {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(1.5);
  }
}

.status-indicator.completado {
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.2) 0%, rgba(0, 200, 0, 0.3) 100%);
  color: #00ff00;
  border: 1px solid #00ff00;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.status-indicator.completado:hover {
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.status-indicator.en-pausa {
  background: linear-gradient(135deg, rgba(243, 230, 0, 0.2) 0%, rgba(200, 190, 0, 0.3) 100%);
  color: #f3e600;
  border: 1px solid #f3e600;
  box-shadow: 0 0 15px rgba(243, 230, 0, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.status-indicator.en-pausa:hover {
  box-shadow: 0 0 20px rgba(243, 230, 0, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Animación especial para En Pausa */
.status-indicator.en-pausa::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background-color: currentColor;
  transform: translate(-50%, -50%);
  animation: pause-blink 2s infinite;
  z-index: 3;
}

@keyframes pause-blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.status-indicator.cancelado {
  background: linear-gradient(135deg, rgba(255, 0, 60, 0.2) 0%, rgba(180, 0, 40, 0.3) 100%);
  color: #ff003c;
  border: 1px solid #ff003c;
  box-shadow: 0 0 15px rgba(255, 0, 60, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.status-indicator.cancelado:hover {
  box-shadow: 0 0 20px rgba(255, 0, 60, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.status-indicator.buscando-mejorar {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(0, 180, 200, 0.3) 100%);
  color: #00f0ff;
  border: 1px solid #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.status-indicator.buscando-mejorar:hover {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Animación especial para Buscando Mejorar */
.status-indicator.buscando-mejorar::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  background-color: currentColor;
  border-radius: 50%;
  animation: search-pulse 3s infinite;
  z-index: 3;
}

@keyframes search-pulse {

  0%,
  70%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  35% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

/* Animación para estados activos/completados */
.status-indicator.completado::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  background-color: currentColor;
  border-radius: 50%;
  animation: pulse-status 2s infinite;
  z-index: 3;
}

@keyframes pulse-status {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.project-status {
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
}

.status-indicator {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  font-weight: bold;
  position: relative;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  text-align: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.status-indicator::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
  z-index: 1;
  pointer-events: none;
}

.status-indicator span {
  position: relative;
  z-index: 2;
}

/* Skills Carousel */

.skill-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  height: 80px;
}

.tech-icon {
  max-width: 60px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(243, 230, 0, 0.3));
  transition: all 0.3s ease;
}

.skill-item:hover .tech-icon {
  filter: drop-shadow(0 0 15px rgba(243, 230, 0, 0.6));
  transform: scale(1.1);
}

.skills-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skills-carousel {
  flex: 1;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.skills-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.skill-item {
  min-width: 100%;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
  border: 1px solid rgba(243, 230, 0, 0.3);
  padding: 2rem 1.5rem 1.5rem;
  border-radius: 8px;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  /* Centrar todo el contenido */
}

.skill-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(243, 230, 0, 0.1), transparent);
  animation: skill-scan 3s infinite;
}

@keyframes skill-scan {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.skill-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
}

.skill-name {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--cyber-yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-name-centered {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--cyber-yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
}

.skill-name-centered::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyber-blue), transparent);
}

.skill-bar {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.skill-level {
  height: 100%;
  background: linear-gradient(90deg, var(--cyber-yellow) 0%, var(--cyber-blue) 100%);
  border-radius: 4px;
  position: relative;
  transition: width 1s ease;
}

.level-indicator {
  position: absolute;
  right: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  animation: pulse-indicator 2s infinite;
}

@keyframes pulse-indicator {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.skill-details {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.detail-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  color: var(--cyber-green);
  font-weight: bold;
}

/* Navegación del carrusel */
.carousel-nav {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
  border: 1px solid var(--cyber-blue);
  color: var(--cyber-blue);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  flex-shrink: 0;
}

.carousel-nav:hover {
  background: var(--cyber-blue);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
  transform: scale(1.1);
}

.carousel-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.carousel-nav:disabled:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
  color: var(--cyber-blue);
  box-shadow: none;
}

/* Indicadores del carrusel */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--cyber-yellow);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
  background: var(--cyber-yellow);
  box-shadow: 0 0 10px rgba(243, 230, 0, 0.5);
}

/* Language Switcher Styles */
.lang-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.lang-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.lang-btn:hover {
  opacity: 1;
  color: var(--primary);
  text-shadow: 0 0 5px var(--primary);
}

.lang-btn.active {
  opacity: 1;
  color: var(--primary);
  font-weight: bold;
  cursor: default;
  text-shadow: 0 0 8px var(--primary);
}

.lang-divider {
  color: rgba(0, 255, 255, 0.4);
  margin: 0 0.2rem;
  font-size: 0.9rem;
}

/* CV Download Button Styles */
.cv-download-container {
  margin: 1rem 15px;
  text-align: center;
}

.cv-download-btn {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  text-decoration: none;
  color: var(--primary);
  background-color: transparent;
  border: 1px solid var(--primary);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cv-download-btn:hover {
  background-color: rgba(243, 230, 0, 0.1);
  color: #fff;
  box-shadow: 0 0 15px var(--primary), inset 0 0 5px rgba(243, 230, 0, 0.5);
  text-shadow: 0 0 5px #fff;
}

.cv-download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.cv-download-btn:hover::before {
  left: 100%;
}

.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.pagination-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  min-width: 120px;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-info {
  font-family: 'Share Tech Mono', monospace;
  color: var(--accent);
  font-size: 1rem;
  text-align: center;
}

.current-page {
  color: var(--primary);
  font-weight: bold;
}

.project-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
  transition: opacity 0.3s ease;
}

.project-row .project-card {
  flex: none;
  max-width: 100%;
  width: 100%;
}