@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), 0 0 40px rgba(61, 107, 31, 0.2); }
  50% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.5), 0 0 60px rgba(61, 107, 31, 0.3); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.6); }
}

/* IDE/Terminal Animations */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

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

@keyframes matrix-rain {
  0% { transform: translateY(-100%); opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

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

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

html {
  scroll-behavior: smooth;
}

/* Terminal/IDE Styles */
.terminal-window {
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
              0 0 40px rgba(78, 201, 176, 0.3);
  border: 1px solid rgba(78, 201, 176, 0.4);
  max-width: 900px;
  margin: 0 auto;
  animation: terminalGlow 4s ease-in-out infinite;
  will-change: box-shadow;
}

/* Mobile responsive terminal */
@media (max-width: 768px) {
  .terminal-window {
    max-width: 100%;
    margin: 0 0.75rem;
    border-radius: 8px;
    /* Disable glow animation on mobile for performance */
    animation: none;
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.5), 
                0 0 25px rgba(78, 201, 176, 0.25);
  }
}

@media (max-width: 480px) {
  .terminal-window {
    margin: 0 0.5rem;
    border-radius: 6px;
    box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(78, 201, 176, 0.2);
  }
}

/* Simplified terminal glow for performance */
@keyframes terminalGlow {
  0%, 100% { 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                0 0 40px rgba(78, 201, 176, 0.3);
  }
  50% { 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
                0 0 50px rgba(78, 201, 176, 0.4);
  }
}

.terminal-header {
  background: #2d2d2d;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

@media (max-width: 768px) {
  .terminal-header {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .terminal-header {
    padding: 8px 10px;
  }
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

@media (max-width: 480px) {
  .terminal-dots {
    gap: 6px;
  }
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

@media (max-width: 480px) {
  .terminal-dot {
    width: 10px;
    height: 10px;
  }
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  color: #d4d4d4;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  margin-left: auto;
}

@media (max-width: 768px) {
  .terminal-title {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .terminal-title {
    font-size: 10px;
  }
}

.terminal-body {
  background: linear-gradient(180deg, #0a0a0a 0%, #0d1410 100%);
  padding: 32px;
  min-height: 350px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  line-height: 2.2;
  color: #4ec9b0;
  position: relative;
}

/* Mobile responsive terminal body */
@media (max-width: 768px) {
  .terminal-body {
    padding: 16px 20px;
    min-height: 220px;
    font-size: 13px;
    line-height: 1.9;
  }
}

@media (max-width: 480px) {
  .terminal-body {
    padding: 12px 14px;
    min-height: 180px;
    font-size: 11px;
    line-height: 1.7;
  }
}

@media (max-width: 360px) {
  .terminal-body {
    padding: 10px 12px;
    min-height: 160px;
    font-size: 10px;
    line-height: 1.6;
  }
}

.terminal-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(78, 201, 176, 0.03) 100%);
  pointer-events: none;
}

.terminal-line {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@media (max-width: 768px) {
  .terminal-line {
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .terminal-line {
    margin-bottom: 10px;
  }
}

.terminal-prompt {
  color: #d4af37;
  margin-right: 8px;
  font-weight: 600;
}

@media (max-width: 480px) {
  .terminal-prompt {
    margin-right: 6px;
  }
}

.terminal-command {
  color: #5eead4;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #5eead4;
  animation: blink 0.8s step-end infinite;
  text-shadow: 0 0 10px rgba(94, 234, 212, 0.5);
}

@media (max-width: 768px) {
  .terminal-command {
    border-right-width: 2px;
    text-shadow: 0 0 8px rgba(94, 234, 212, 0.4);
  }
}

@media (max-width: 480px) {
  .terminal-command {
    border-right-width: 2px;
    text-shadow: 0 0 6px rgba(94, 234, 212, 0.3);
  }
}

.terminal-output {
  color: #d4d4d4;
  margin-left: 24px;
  opacity: 0.8;
}

.syntax-keyword { color: #569cd6; }
.syntax-string { color: #ce9178; }
.syntax-function { color: #dcdcaa; }
.syntax-comment { color: #6a9955; font-style: italic; }
.syntax-variable { color: #9cdcfe; }

.cursor-blink {
  display: inline-block;
  width: 10px;
  height: 20px;
  background: #d4af37;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

/* Matrix Background Effect - Enhanced */
.matrix-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.15;
  pointer-events: none;
  filter: blur(0.5px);
}

/* Reduce matrix opacity on mobile for better readability */
@media (max-width: 768px) {
  .matrix-bg {
    opacity: 0.1;
    filter: blur(1px);
  }
}

@media (max-width: 480px) {
  .matrix-bg {
    opacity: 0.08;
    filter: blur(1.5px);
  }
}

.matrix-char {
  position: absolute;
  color: #5eead4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  animation: matrix-rain linear infinite;
  text-shadow: 0 0 15px rgba(94, 234, 212, 0.8),
               0 0 30px rgba(94, 234, 212, 0.4);
}

/* Enhanced Scan Line Effect */
.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(transparent, rgba(94, 234, 212, 0.6), rgba(212, 175, 55, 0.4), transparent);
  animation: scan-line 6s linear infinite;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(94, 234, 212, 0.5);
  filter: blur(1px);
}

/* Simplify scan line on mobile */
@media (max-width: 768px) {
  .scan-line {
    height: 2px;
    box-shadow: 0 0 15px rgba(94, 234, 212, 0.4);
    animation: scan-line 8s linear infinite;
  }
}

@media (max-width: 480px) {
  .scan-line {
    height: 1px;
    box-shadow: 0 0 10px rgba(94, 234, 212, 0.3);
    animation: scan-line 10s linear infinite;
  }
}

/* PCB/Hardware Styles */
.pcb-card {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(20, 50, 30, 0.9));
  backdrop-filter: blur(10px);
  border: 2px solid rgba(94, 234, 212, 0.4);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(94, 234, 212, 0.1);
  opacity: 0;
  transform: translateY(30px);
}

.pcb-card.animate-in {
  animation: pcbEtching 1s ease-out forwards;
}

@keyframes pcbEtching {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: brightness(0.3);
  }
  30% {
    filter: brightness(1.5);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: brightness(1);
  }
}

.pcb-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(94, 234, 212, 0.1) 50%, 
    transparent 70%);
  transform: translateX(-100%);
  pointer-events: none;
}

.pcb-card.animate-in::after {
  animation: electricFlow 1.5s ease-out 0.3s;
}

@keyframes electricFlow {
  0% {
    transform: translateX(-100%) translateY(-100%);
  }
  100% {
    transform: translateX(100%) translateY(100%);
  }
}

/* Removed cardFloat animation for performance */

.pcb-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(78, 201, 176, 0.03) 2px, rgba(78, 201, 176, 0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(78, 201, 176, 0.03) 2px, rgba(78, 201, 176, 0.03) 4px);
  pointer-events: none;
}

.pcb-card:hover {
  border-color: rgba(94, 234, 212, 0.8);
  box-shadow: 0 0 60px rgba(94, 234, 212, 0.5), 
              0 25px 50px -12px rgba(0, 0, 0, 0.5),
              inset 0 0 30px rgba(94, 234, 212, 0.1);
  transform: translateY(-12px) scale(1.02);
  animation: none;
}

.pcb-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.2), rgba(212, 175, 55, 0.2));
  border: 2px solid rgba(94, 234, 212, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  box-shadow: 0 0 30px rgba(94, 234, 212, 0.3);
  transition: all 0.3s ease;
  will-change: transform;
}

/* Simplified icon pulse for performance */
@keyframes iconPulse {
  0%, 100% { 
    box-shadow: 0 0 30px rgba(94, 234, 212, 0.3);
  }
  50% { 
    box-shadow: 0 0 40px rgba(94, 234, 212, 0.4);
  }
}

.pcb-card:hover .pcb-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 50px rgba(94, 234, 212, 0.5);
}

.circuit-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(78, 201, 176, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 80% 50%, rgba(78, 201, 176, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 50% 20%, rgba(78, 201, 176, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 50% 80%, rgba(78, 201, 176, 0.3) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  animation: circuitPulse 4s ease-in-out infinite;
}

@keyframes circuitPulse {
  0%, 100% {
    opacity: 0.05;
    background-size: 50px 50px;
  }
  50% {
    opacity: 0.08;
    background-size: 52px 52px;
  }
}

#hardware.animate-in .circuit-pattern {
  animation: circuitPulse 4s ease-in-out infinite, circuitActivate 2s ease-out;
}

@keyframes circuitActivate {
  0% {
    opacity: 0;
    filter: blur(10px);
  }
  50% {
    opacity: 0.15;
    filter: blur(5px);
  }
  100% {
    opacity: 0.05;
    filter: blur(0);
  }
}

.tech-badge {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.15), rgba(94, 234, 212, 0.05));
  border: 1px solid rgba(94, 234, 212, 0.4);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #5eead4;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.2);
  text-shadow: 0 0 5px rgba(94, 234, 212, 0.3);
}

.tech-badge:hover {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.3), rgba(94, 234, 212, 0.15));
  border-color: rgba(94, 234, 212, 0.7);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(94, 234, 212, 0.4);
  text-shadow: 0 0 10px rgba(94, 234, 212, 0.6);
}

/* IDE Code Block Styles */
.code-block {
  background: #1e1e1e;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.code-line {
  display: flex;
  align-items: center;
  gap: 16px;
}

.line-number {
  color: #858585;
  user-select: none;
  min-width: 30px;
  text-align: right;
}

.code-content {
  color: #d4d4d4;
}

/* Simplified Glitch Effect for Headers */
.glitch-text {
  position: relative;
  display: inline-block;
}

/* Removed continuous glitch for performance - only on hover */
.glitch-text:hover {
  animation: glitch 0.3s ease-in-out;
}

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

.glitch-text:hover::before {
  color: #5eead4;
  animation: glitch 0.3s ease-in-out;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-3px, -3px);
  opacity: 0.9;
  text-shadow: 0 0 10px #5eead4;
}

.glitch-text:hover::after {
  color: #d4af37;
  animation: glitch 0.3s ease-in-out reverse;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  transform: translate(3px, 3px);
  opacity: 0.9;
  text-shadow: 0 0 10px #d4af37;
}

/* Simplified Hero Gradient - Static for performance */
.hero-gradient-ide {
  background: linear-gradient(135deg, #0a0a0a 0%, #0d1f1a 30%, #1a1a1a 50%, #0f2820 70%, #0a0a0a 100%);
  position: relative;
  padding-top: 120px; /* Space for fixed navbar */
  padding-bottom: 60px;
}

/* Mobile responsive hero padding */
@media (max-width: 768px) {
  .hero-gradient-ide {
    padding-top: 100px;
    padding-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .hero-gradient-ide {
    padding-top: 85px;
    padding-bottom: 30px;
  }
}

@media (max-width: 360px) {
  .hero-gradient-ide {
    padding-top: 80px;
    padding-bottom: 25px;
  }
}

/* Removed gradient shift for performance */

.hero-gradient-ide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(78, 201, 176, 0.03) 2px, rgba(78, 201, 176, 0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(78, 201, 176, 0.03) 2px, rgba(78, 201, 176, 0.03) 4px);
  pointer-events: none;
  opacity: 0.4;
}

.hero-gradient {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 30%, #2d5016 70%, #1a1a1a 100%);
}

.glass-effect {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.text-gradient {
  background: linear-gradient(135deg, #f4d03f 0%, #d4af37 50%, #f4d03f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-green {
  background: linear-gradient(135deg, #3d6b1f 0%, #2d5016 50%, #3d6b1f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 30px rgba(212, 175, 55, 0.3);
  cursor: pointer;
}

.glow-effect {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2), 0 0 40px rgba(61, 107, 31, 0.1);
}

.glow-border {
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2), inset 0 0 15px rgba(212, 175, 55, 0.1);
}

.glow-border:hover {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4), inset 0 0 20px rgba(212, 175, 55, 0.2);
}

/* Avatar Styles with Materialization Effect */
.avatar-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  opacity: 0;
}

.avatar-container.animate-in {
  animation: avatarMaterialize 1.2s ease-out forwards;
}

@keyframes avatarMaterialize {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-180deg);
    filter: blur(20px) brightness(2);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1) rotate(10deg);
    filter: blur(5px) brightness(1.5);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
    filter: blur(0) brightness(1);
  }
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4), 0 0 60px rgba(61, 107, 31, 0.3);
  animation: pulse-glow 3s ease-in-out infinite;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d5016 0%, #3d6b1f 50%, #2d5016 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #d4af37;
  border: 4px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4), 0 0 60px rgba(61, 107, 31, 0.3);
  animation: pulse-glow 3s ease-in-out infinite;
}

/* About Section Text Animation */
#about .space-y-4 > * {
  opacity: 0;
  transform: translateX(-30px);
}

#about.animate-in .space-y-4 > * {
  animation: typewriterSlide 0.6s ease-out forwards;
}

@keyframes typewriterSlide {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

#about .space-y-4 > *:nth-child(1) { animation-delay: 0.2s; }
#about .space-y-4 > *:nth-child(2) { animation-delay: 0.4s; }
#about .space-y-4 > *:nth-child(3) { animation-delay: 0.6s; }

/* Skill Badges Wave Animation */
#about .flex-wrap span {
  opacity: 0;
  transform: translateY(20px) scale(0.8);
}

#about.animate-in .flex-wrap span {
  animation: skillWave 0.5s ease-out forwards;
}

@keyframes skillWave {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  50% {
    transform: translateY(-5px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#about .flex-wrap span:nth-child(1) { animation-delay: 0.1s; }
#about .flex-wrap span:nth-child(2) { animation-delay: 0.15s; }
#about .flex-wrap span:nth-child(3) { animation-delay: 0.2s; }
#about .flex-wrap span:nth-child(4) { animation-delay: 0.25s; }
#about .flex-wrap span:nth-child(5) { animation-delay: 0.3s; }
#about .flex-wrap span:nth-child(6) { animation-delay: 0.35s; }
#about .flex-wrap span:nth-child(7) { animation-delay: 0.4s; }
#about .flex-wrap span:nth-child(8) { animation-delay: 0.45s; }
#about .flex-wrap span:nth-child(9) { animation-delay: 0.5s; }
#about .flex-wrap span:nth-child(10) { animation-delay: 0.55s; }

/* Modern Form Styles */
.contact-form-modern {
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
  transition: all 0.4s ease;
}

.form-group {
  position: relative;
}

.form-label {
  display: block;
  color: #d4af37;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-input-modern {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(212, 175, 55, 0.2);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  width: 100%;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input-modern:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1), 0 0 25px rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.form-input-modern::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-select-modern {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(212, 175, 55, 0.2);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  width: 100%;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.form-select-modern:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1), 0 0 25px rgba(212, 175, 55, 0.2);
  background-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.form-select-modern option {
  background: #1a1a1a;
  color: white;
  padding: 1rem;
}

.form-textarea-modern {
  min-height: 180px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}

.submit-button-modern {
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
  background-size: 200% 100%;
  color: #0a0a0a;
  font-weight: 700;
  padding: 1.25rem 3rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  letter-spacing: 0.5px;
}

.submit-button-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.submit-button-modern:hover::before {
  left: 100%;
}

.submit-button-modern:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
  background-position: 100% 0;
}

.submit-button-modern:active {
  transform: translateY(-1px) scale(0.98);
}

.button-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.submit-button-modern:hover .button-icon {
  transform: translateX(5px);
}

/* Contact Info Cards */
.contact-info-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-link {
  color: #f4d03f;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
}

.contact-link:hover {
  color: #d4af37;
  transform: scale(1.05);
}

.contact-text {
  color: #d4af37;
  font-weight: 500;
}

/* Service Card Styles with Code Compilation Animation */
.service-card {
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
}

.service-card.animate-in {
  animation: codeCompile 0.8s ease-out forwards;
}

@keyframes codeCompile {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(5px);
  }
  50% {
    opacity: 0.5;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  transition: left 0.6s ease;
}

.service-card.animate-in::before {
  animation: codeScanning 1.2s ease-out;
}

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

.service-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(10, 10, 10, 0.6);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3), 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.service-icon {
  background: linear-gradient(135deg, #2d5016 0%, #3d6b1f 100%);
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 0 20px rgba(61, 107, 31, 0.4);
  position: relative;
}

.service-card.animate-in .service-icon {
  animation: iconBoot 0.6s ease-out 0.3s backwards;
}

@keyframes iconBoot {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

/* Portfolio Card Styles */
.portfolio-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s ease;
}

.portfolio-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
  transform: translateY(-8px);
}

/* Language Switcher */
.lang-switcher {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 2rem;
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.lang-btn {
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.lang-btn.active {
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  color: #0a0a0a;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.lang-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(212, 175, 55, 0.1);
}

/* Pricing Badge */
.pricing-badge {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  color: #0a0a0a;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.25rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  animation: glow 2s ease-in-out infinite;
  margin-right: 1rem;
}

/* VAT Badge */
.vat-badge {
  display: inline-block;
  background: rgba(94, 234, 212, 0.15);
  color: #5eead4;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid rgba(94, 234, 212, 0.4);
  box-shadow: 0 0 15px rgba(94, 234, 212, 0.3);
  animation: vatPulse 3s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(94, 234, 212, 0.5);
}

@keyframes vatPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(94, 234, 212, 0.3);
    border-color: rgba(94, 234, 212, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(94, 234, 212, 0.5);
    border-color: rgba(94, 234, 212, 0.6);
  }
}

/* Loading Spinner */
.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(212, 175, 55, 0.2);
  border-top-color: #d4af37;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Line Clamp Utility */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Project Image Container */
.project-image-container {
  position: relative;
  overflow: hidden;
}

.project-image-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.project-image-container:hover::before {
  opacity: 1;
}

/* Enhanced Portfolio Card Styles */
.portfolio-card {
  position: relative;
  overflow: hidden;
}

.portfolio-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.portfolio-card:hover::after {
  left: 100%;
}

/* Featured Badge Animation */
@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
  }
}

.portfolio-card .bg-gold-500 {
  animation: badge-pulse 2s ease-in-out infinite;
}

/* Smooth Image Loading */
.portfolio-card img {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

/* Cursor Pointer Enhancement */
.cursor-pointer {
  cursor: pointer;
  user-select: none;
}

.cursor-pointer:active {
  transform: scale(0.98);
}

/* URL Link Styling */
.portfolio-card a {
  position: relative;
}

.portfolio-card a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d4af37, #f4d03f);
  transition: width 0.3s ease;
}

.portfolio-card a:hover::after {
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .avatar-container {
    width: 150px;
    height: 150px;
  }
  
  .lang-switcher {
    top: 80px;
    right: 10px;
  }

  .loading-spinner {
    width: 50px;
    height: 50px;
  }

  .project-image-container {
    height: 200px;
  }

  /* Hero section text sizes */
  h1.text-6xl.md\:text-8xl {
    font-size: 3rem !important;
  }

  /* Terminal command text */
  .terminal-command {
    font-size: 14px;
  }

  /* Pricing badge */
  .pricing-badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .vat-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  /* Service cards */
  .service-card {
    padding: 24px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  /* Contact form */
  .contact-form-modern {
    padding: 2rem;
  }

  .form-input-modern,
  .form-select-modern,
  .form-textarea-modern {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }

  .submit-button-modern {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile devices */
  h1.text-6xl.md\:text-8xl {
    font-size: 2.5rem !important;
  }

  .terminal-window {
    margin: 0 0.5rem;
  }

  .pricing-badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
  }

  .vat-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }

  /* Stack buttons vertically on very small screens */
  .flex.flex-col.sm\:flex-row {
    gap: 1rem !important;
  }

  .flex.flex-col.sm\:flex-row a {
    padding: 0.875rem 1.5rem !important;
    font-size: 0.9375rem !important;
  }

  .service-card {
    padding: 20px;
  }

  .service-icon {
    width: 50px;
    height: 50px;
  }

  .service-icon span {
    font-size: 1.5rem;
  }

  .contact-form-modern {
    padding: 1.5rem;
  }

  .form-input-modern,
  .form-select-modern,
  .form-textarea-modern {
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
  }

  .submit-button-modern {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }

  /* PCB cards */
  .pcb-card {
    padding: 24px;
  }

  .pcb-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  /* Footer contact grid */
  .footer-contact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-contact-item {
    padding: 1rem;
  }
}

/* Scroll indicator - positioned on right side with responsive icons */
.scroll-indicator {
  position: fixed;
  right: 2rem;
  bottom: 50%;
  transform: translateY(50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Desktop: Mouse scroll icon */
.scroll-icon-desktop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 1s ease-out 2s backwards;
}

/* Mobile: Swipe icon */
.scroll-icon-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 1s ease-out 2s backwards;
}

/* Scroll wheel animation */
@keyframes scrollWheel {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.5;
  }
}

.animate-scroll-wheel {
  animation: scrollWheel 1.5s ease-in-out infinite;
}

/* Swipe arrow animation */
@keyframes swipeDown {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.5;
  }
}

.swipe-arrow {
  animation: swipeDown 1.5s ease-in-out infinite;
}

.swipe-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Space Grotesk', sans-serif;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Responsive behavior */
@media (max-width: 768px) {
  .scroll-indicator {
    right: 1rem;
  }
  
  /* Hide desktop icon, show mobile icon */
  .scroll-icon-desktop {
    display: none;
  }
  
  .scroll-icon-mobile {
    display: flex;
  }
}

@media (max-width: 480px) {
  .scroll-indicator {
    right: 0.75rem;
    bottom: 45%;
  }
  
  .scroll-text {
    font-size: 0.625rem;
  }
  
  .swipe-icon svg {
    width: 32px;
    height: 32px;
  }
}

/* Hide scroll indicator when not on hero section */
body:not(.on-hero) .scroll-indicator {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.on-hero .scroll-indicator {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Skeleton Loading Animation */
@keyframes skeleton-loading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(212, 175, 55, 0.1) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Enhanced Provider Card Styles */
.provider-card {
  position: relative;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  overflow: hidden;
}

.provider-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d4af37, #f4d03f, #d4af37);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

.provider-card:hover::before {
  height: 6px;
}

.provider-logo-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(61, 107, 31, 0.1));
  border: 3px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.provider-card:hover .provider-logo-container {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.4);
  border-color: rgba(212, 175, 55, 0.6);
}

.provider-logo-container::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(45deg, #d4af37, #f4d03f, #d4af37);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.provider-card:hover .provider-logo-container::after {
  opacity: 0.3;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.provider-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(61, 107, 31, 0.2));
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #f4d03f;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.provider-card:hover .provider-badge {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(61, 107, 31, 0.3));
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.provider-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(61, 107, 31, 0.1));
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 0.75rem;
  color: #f4d03f;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.provider-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  transition: left 0.5s ease;
}

.provider-link:hover::before {
  left: 100%;
}

.provider-link:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(61, 107, 31, 0.2));
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

/* Footer Contact Info Styles */
.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-contact-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.footer-contact-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.footer-contact-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.footer-contact-label {
  font-size: 0.875rem;
  color: #d4af37;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.footer-contact-value {
  color: #f4d03f;
  font-weight: 500;
  font-size: 1.125rem;
}

.footer-contact-value a {
  color: #f4d03f;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-value a:hover {
  color: #d4af37;
}
