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

:root {
  --bg-dark: #0a0a0a;
  --bg-terminal: #1a1a1a;
  --text-primary: #00ff00;
  --text-secondary: #00ffff;
  --text-white: #e0e0e0;
  --text-dim: #888;
  --border-color: #00ff00;
  --shadow: rgba(0, 255, 0, 0.3);
  --font-mono: "Courier New", Courier, monospace;
}

/* Light theme */
[data-theme="light"] {
  --bg-dark: #f5f5f5;
  --bg-terminal: #ffffff;
  --text-primary: #00aa00;
  --text-secondary: #0088aa;
  --text-white: #2a2a2a;
  --text-dim: #666;
  --border-color: #00aa00;
  --shadow: rgba(0, 170, 0, 0.2);
}

body {
  font-family: var(--font-mono);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Matrix Rain Background */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

[data-theme="light"] #matrix-canvas {
  opacity: 0.05;
}

/* Boot Screen */
.boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeOut 0.5s ease 2s forwards;
}

.boot-content {
  max-width: 800px;
  padding: 40px;
}

.boot-text {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-wrap;
  animation: bootSequence 2s ease forwards;
}

.boot-ok {
  color: #00ff00;
}

.boot-warn {
  color: #ffaa00;
}

.boot-ready {
  color: #00ffff;
  animation: glow 1s ease-in-out infinite;
}

@keyframes bootSequence {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes glow {
  0%,
  100% {
    text-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
  }
  50% {
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
  }
}

/* Secret Command Line */
.secret-cmd {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  opacity: 0.7;
}

.cmd-prompt {
  color: var(--text-secondary);
}

.cmd-cursor {
  animation: blink 1s infinite;
}

/* Theme and Language Controls */
.controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 15px;
  align-items: center;
}

.theme-toggle {
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 0;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--text-primary);
  transform: scale(1.05) rotate(180deg);
}

.theme-toggle:hover .theme-icon {
  filter: grayscale(100%) brightness(0);
}

.language-switcher {
  display: flex;
  gap: 0;
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-white);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-right: 1px solid var(--border-color);
}

.lang-btn:last-child {
  border-right: none;
}

.lang-btn:hover {
  background: rgba(0, 255, 0, 0.2);
  transform: skew(-5deg);
}

.lang-btn.active {
  background: var(--text-primary);
  color: var(--bg-dark);
}

/* Scanline Effect */
.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 255, 0, 0.02) 51%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 9999;
  animation: scanlines 0.1s linear infinite;
}

[data-theme="light"] .scanline {
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 170, 0, 0.015) 51%
  );
  background-size: 100% 4px;
}

@keyframes scanlines {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 4px;
  }
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* ASCII Photo */
.ascii-photo {
  width: auto;
  flex-shrink: 0;
}

.profile-photo {
  width: 200px;
  height: auto;
  border: 1px solid var(--text-primary);
  box-shadow: 0 0 10px var(--shadow);
  image-rendering: crisp-edges;
}

@keyframes asciiGlow {
  0%,
  100% {
    text-shadow: 0 0 5px var(--shadow);
    opacity: 0.9;
  }
  50% {
    text-shadow: 0 0 15px var(--shadow), 0 0 25px var(--shadow);
    opacity: 1;
  }
}

/* Header Section */
.header {
  padding: 100px 40px 80px;
  border-bottom: 1px solid rgba(0, 255, 0, 0.15);
}

.header-content {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

.header-text {
  flex: 1;
  min-width: 300px;
}

.header-text h1 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 25px;
  font-weight: normal;
  letter-spacing: 0.5px;
}

.terminal-output {
  background: transparent;
  padding: 0;
}

.typed-text {
  font-size: 1.05rem;
  color: var(--text-white);
  min-height: 1.5em;
  margin-bottom: 15px;
}

.prompt {
  color: var(--text-secondary);
  margin-right: 8px;
}

.cursor {
  animation: blink 1s infinite;
  color: var(--text-primary);
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.subtitle {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Header Badges */
.header-badges {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
  align-items: center;
}

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

.social-links-header .social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 255, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
}

.social-links-header .social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--text-primary);
  transition: width 0.3s ease;
  z-index: -1;
}

.social-links-header .social-link:hover::before {
  width: 100%;
}

.social-links-header .social-link:hover {
  color: var(--bg-dark);
  transform: translateY(-3px) rotate(5deg);
}

/* ASCII Divider */
.ascii-divider {
  text-align: center;
  padding: 20px 0;
  overflow: hidden;
}

.ascii-divider pre {
  color: var(--text-primary);
  font-size: 0.6rem;
  opacity: 0.3;
  animation: dividerSlide 20s linear infinite;
}

@keyframes dividerSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Section Styles */
.section {
  padding: 70px 40px;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 255, 0, 0.03) 0%,
    transparent 50%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.section:hover::before {
  opacity: 1;
}

.section-title {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 35px;
  font-weight: normal;
  letter-spacing: 0.5px;
  position: relative;
}

/* Glitch Hover Effect */
.glitch-hover {
  position: relative;
  cursor: pointer;
}

.glitch-hover:hover {
  animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

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

.glitch-hover:hover::before {
  animation: glitch-before 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both
    infinite;
  color: #ff00ff;
  z-index: -1;
}

.glitch-hover:hover::after {
  animation: glitch-after 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both
    infinite;
  color: #00ffff;
  z-index: -2;
}

@keyframes glitch {
  0%,
  100% {
    transform: translate(0);
  }
  33% {
    transform: translate(-2px, 2px);
  }
  66% {
    transform: translate(2px, -2px);
  }
}

@keyframes glitch-before {
  0%,
  100% {
    transform: translate(0);
  }
  33% {
    transform: translate(4px, -2px);
  }
  66% {
    transform: translate(-4px, 2px);
  }
}

@keyframes glitch-after {
  0%,
  100% {
    transform: translate(0);
  }
  33% {
    transform: translate(-4px, 2px);
  }
  66% {
    transform: translate(4px, -2px);
  }
}

/* Section Content */
.section-content {
  max-width: 750px;
}

.section-content p {
  margin-bottom: 25px;
  color: var(--text-white);
  font-size: 1rem;
  line-height: 1.9;
  opacity: 0.95;
}

/* Compile Text Animation */
.compile-text {
  position: relative;
  overflow: hidden;
}

.compile-text::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 0, 0.2),
    transparent
  );
  animation: compile 3s ease-in-out;
}

@keyframes compile {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Education Section */
.education-item {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 255, 0, 0.1);
  transition: all 0.3s ease;
}

.education-item:hover {
  padding-left: 20px;
  border-left: 3px solid var(--text-primary);
}

.education-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.education-degree {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.education-institution {
  color: var(--text-white);
  margin-bottom: 6px;
  font-size: 1rem;
}

.education-year {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.education-description {
  color: var(--text-white);
  line-height: 1.8;
  opacity: 0.9;
}

/* Projects Section */
.projects-section {
  padding: 80px 0 100px;
  background: linear-gradient(
    180deg,
    rgba(0, 255, 0, 0.02) 0%,
    transparent 100%
  );
}

[data-theme="light"] .projects-section {
  background: linear-gradient(
    180deg,
    rgba(0, 170, 0, 0.03) 0%,
    transparent 100%
  );
}

.projects-section .container {
  max-width: 100%;
  padding: 0;
}

.projects-section .section-title {
  padding: 0 40px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
  font-size: 1.8rem;
}

.projects-container {
  position: relative;
  padding: 0 90px;
  max-width: 1600px;
  margin: 0 auto;
}

.projects-scroll {
  display: flex;
  gap: 50px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 40px 20px 60px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.projects-scroll::-webkit-scrollbar {
  height: 8px;
}

.projects-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.projects-scroll::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 0;
}

.project-card {
  min-width: 650px;
  max-width: 650px;
  background: transparent;
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 255, 0, 0.15);
}

/* Project Loading Bar */
.project-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-terminal);
  padding: 10px;
  z-index: 10;
  opacity: 0;
  animation: projectLoad 2s ease forwards;
}

.loading-bar {
  height: 4px;
  background: var(--text-primary);
  width: 0;
  animation: loadProgress 2s ease forwards;
}

.loading-text {
  color: var(--text-primary);
  font-size: 0.8rem;
  margin-top: 5px;
  display: block;
}

@keyframes projectLoad {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes loadProgress {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

.project-image {
  width: 100%;
  height: 450px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 255, 0, 0.2);
  background: #000;
  transition: all 0.3s ease;
  position: relative;
}

[data-theme="light"] .project-image {
  background: #f0f0f0;
  border-bottom: 1px solid rgba(0, 170, 0, 0.2);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
  opacity: 0.9;
}

[data-theme="light"] .project-image img {
  opacity: 0.95;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
  opacity: 1;
  filter: brightness(1.1) saturate(1.2);
}

.project-info {
  padding: 30px;
  background: rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease;
}

[data-theme="light"] .project-info {
  background: rgba(255, 255, 255, 0.7);
}

.project-title {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: normal;
  letter-spacing: 0.5px;
}

.project-description {
  color: var(--text-white);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  opacity: 0.95;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
}

.tag {
  background: transparent;
  color: var(--text-primary);
  padding: 6px 14px;
  border: 1px solid rgba(0, 255, 0, 0.4);
  border-radius: 0;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.tag:hover {
  border-color: var(--text-primary);
  background: rgba(0, 255, 0, 0.1);
  transform: rotate(-2deg);
}

/* Project Status */
.project-status {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 10px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--text-primary);
  border-radius: 50%;
  margin-right: 5px;
  animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.9);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  width: 60px;
  height: 60px;
  border-radius: 0;
  font-size: 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

[data-theme="light"] .nav-arrow {
  background: rgba(245, 245, 245, 0.9);
}

.nav-arrow:hover {
  background: var(--text-primary);
  color: var(--bg-dark);
  transform: translateY(-50%) scale(1.15) rotate(5deg);
}

.nav-arrow-left {
  left: 15px;
}

.nav-arrow-right {
  right: 15px;
}

/* Contact Button */
.contact-button-container {
  text-align: center;
  padding: 80px 40px;
}

.contact-button {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  padding: 18px 60px;
  font-size: 1rem;
  font-family: var(--font-mono);
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.contact-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--text-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.contact-button:hover::before {
  left: 0;
}

.contact-button:hover {
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.contact-hint {
  margin-top: 15px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
}

/* Contact Dialog */
.contact-dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

[data-theme="light"] .contact-dialog {
  background: rgba(255, 255, 255, 0.95);
}

.contact-dialog.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.contact-dialog-content {
  width: 90%;
  max-width: 600px;
  animation: slideDown 0.3s ease, hackEffect 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes hackEffect {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  25% {
    filter: hue-rotate(90deg);
  }
  50% {
    filter: hue-rotate(180deg);
  }
  75% {
    filter: hue-rotate(270deg);
  }
}

.contact-terminal {
  background: var(--bg-terminal);
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-terminal-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px 30px;
  border-bottom: 1px solid rgba(0, 255, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease;
}

[data-theme="light"] .contact-terminal-header {
  background: rgba(0, 170, 0, 0.05);
}

.terminal-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.close-dialog {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-dialog:hover {
  color: #ff5f56;
  transform: rotate(90deg) scale(1.2);
}

.contact-terminal-body {
  padding: 40px;
}

@keyframes asciiPulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.contact-form {
  margin-top: 0;
}

.form-group {
  margin-bottom: 25px;
}

.terminal-label {
  display: block;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.terminal-input,
.terminal-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 0, 0.3);
  color: var(--text-white);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 1rem;
  border-radius: 0;
  resize: vertical;
  transition: all 0.3s ease;
}

[data-theme="light"] .terminal-input,
[data-theme="light"] .terminal-textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 170, 0, 0.4);
}

.terminal-input:focus,
.terminal-textarea:focus {
  outline: none;
  border-color: var(--text-primary);
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 10px var(--shadow);
}

[data-theme="light"] .terminal-input:focus,
[data-theme="light"] .terminal-textarea:focus {
  background: rgba(255, 255, 255, 1);
  border-color: var(--text-primary);
}

.terminal-input::placeholder,
.terminal-textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.6;
}

.submit-button {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  padding: 14px 40px;
  font-family: var(--font-mono);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s ease;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
}

.submit-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--text-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.submit-button:hover::after {
  width: 300%;
  height: 300%;
}

.submit-button:hover {
  color: var(--bg-dark);
}

.form-response {
  margin-top: 25px;
  padding: 15px;
  border-radius: 0;
  display: none;
  line-height: 1.6;
  animation: responseSlide 0.3s ease;
}

@keyframes responseSlide {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.form-response.success {
  display: block;
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
}

[data-theme="light"] .form-response.success {
  background: rgba(0, 170, 0, 0.15);
}

.form-response.error {
  display: block;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid #ff5f56;
  color: #ff5f56;
}

[data-theme="light"] .form-response.error {
  background: rgba(255, 0, 0, 0.15);
  color: #cc0000;
}

/* Footer */
.footer {
  padding: 70px 40px 50px;
  border-top: 1px solid rgba(0, 255, 0, 0.15);
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 35px;
}

.social-link {
  color: var(--text-primary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 255, 0, 0.4);
  border-radius: 0;
  position: relative;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--text-primary);
  transition: width 0.3s ease;
  z-index: -1;
}

.social-link:hover::before {
  width: 100%;
}

.social-link:hover {
  color: var(--bg-dark);
  transform: translateY(-5px) rotate(5deg);
}

.copyright {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-cmd {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.6;
}

.project-link {
  color: var(--text-primary);
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
}

.project-link::after {
  content: " →";
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.project-link:hover {
  color: var(--text-secondary);
  text-shadow: 0 0 10px var(--shadow);
}

.project-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.project-link::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-primary);
  transition: width 0.3s ease;
}

.project-link:hover::before {
  width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
  .project-card {
    min-width: 550px;
    max-width: 550px;
  }

  .project-image {
    height: 400px;
  }

  .projects-container {
    padding: 0 70px;
  }

  .nav-arrow {
    width: 55px;
    height: 55px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 25px;
  }

  .controls {
    top: 15px;
    right: 15px;
    gap: 10px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .lang-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .header {
    padding: 60px 25px 50px;
  }

  .header-content {
    flex-direction: column;
    gap: 40px;
  }

  .ascii-art {
    font-size: 0.35rem;
    line-height: 0.4rem;
  }

  .header-text {
    width: 100%;
  }

  .header-text h1 {
    font-size: 1.3rem;
  }

  .typed-text {
    font-size: 1rem;
  }

  .section {
    padding: 60px 25px;
  }

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

  .projects-section {
    padding: 70px 0 80px;
  }

  .projects-section .section-title {
    padding: 0 25px;
    margin-bottom: 40px;
  }

  .projects-container {
    padding: 0 60px;
  }

  .project-card {
    min-width: 450px;
    max-width: 450px;
  }

  .project-image {
    height: 350px;
  }

  .project-info {
    padding: 25px;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-description {
    font-size: 0.95rem;
  }

  .nav-arrow {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .nav-arrow-left {
    left: 10px;
  }

  .nav-arrow-right {
    right: 10px;
  }

  .contact-dialog-content {
    width: 95%;
    max-width: 500px;
  }

  .contact-terminal-header {
    padding: 18px 25px;
  }

  .terminal-title {
    font-size: 1rem;
  }

  .contact-terminal-body {
    padding: 30px 25px;
  }

  .submit-button {
    padding: 13px 35px;
  }

  .contact-button {
    padding: 15px 45px;
    font-size: 0.95rem;
  }

  .contact-button-container {
    padding: 60px 25px;
  }

  .secret-cmd {
    font-size: 0.7rem;
    bottom: 10px;
    left: 10px;
  }
}

@media (max-width: 480px) {
  .ascii-art {
    font-size: 0.25rem;
    line-height: 0.3rem;
  }

  .container {
    padding: 0 20px;
  }

  .controls {
    top: 10px;
    right: 10px;
    gap: 8px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .lang-btn {
    padding: 7px 10px;
    font-size: 0.8rem;
  }

  .header {
    padding: 50px 20px 40px;
  }

  .header-content {
    gap: 30px;
  }

  .header-text h1 {
    font-size: 1.2rem;
  }

  .typed-text {
    font-size: 0.95rem;
  }

  .section {
    padding: 50px 20px;
  }

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

  .projects-section .section-title {
    padding: 0 20px;
  }

  .projects-container {
    padding: 0 50px;
  }

  .project-card {
    min-width: 320px;
    max-width: 320px;
  }

  .project-image {
    height: 240px;
  }

  .project-info {
    padding: 20px;
  }

  .project-title {
    font-size: 1.1rem;
  }

  .project-description {
    font-size: 0.9rem;
  }

  .nav-arrow {
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }

  .nav-arrow-left {
    left: 5px;
  }

  .nav-arrow-right {
    right: 5px;
  }

  .contact-button {
    padding: 14px 35px;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
  }

  .contact-dialog-content {
    width: 95%;
    max-width: 450px;
  }

  .contact-terminal-header {
    padding: 16px 20px;
  }

  .terminal-title {
    font-size: 0.95rem;
  }

  .close-dialog {
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
  }

  .contact-terminal-body {
    padding: 25px 20px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .terminal-label {
    font-size: 0.9rem;
  }

  .terminal-input,
  .terminal-textarea {
    padding: 12px;
    font-size: 0.95rem;
  }

  .submit-button {
    padding: 12px 30px;
    font-size: 0.9rem;
    letter-spacing: 1.2px;
  }

  .secret-cmd {
    display: none;
  }
}
