/* AminTechs - Premium AI Expert Styling */
/* Advanced animations and effects for a senior data scientist portfolio */

/* Advanced gradient animations */
@keyframes gradient-x {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

@keyframes gradient-xy {
  0%, 100% { background-position: 0% 0%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

/* Glitch effect for tech aesthetic */
@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); }
}

.glitch-text:hover {
  animation: glitch 0.3s infinite;
}

/* Matrix rain effect (optional) */
.matrix-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.1;
  z-index: 1;
}

/* Holographic card effect */
.holographic-card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(26, 31, 58, 0.8) 0%,
    rgba(21, 25, 55, 0.6) 100%
  );
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 245, 255, 0.2);
  transition: all 0.3s ease;
}

.holographic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 245, 255, 0.1),
    rgba(139, 92, 246, 0.1),
    rgba(236, 72, 153, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.holographic-card:hover::before {
  opacity: 1;
}

/* Code editor theme */
.code-editor {
  background: #0a0e27;
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #e0e0e0;
  overflow-x: auto;
  position: relative;
}

.code-editor::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(0, 245, 255, 0.1), transparent);
  border-radius: 12px 12px 0 0;
}

/* Terminal window effect */
.terminal {
  background: #0a0e27;
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
  color: #00f5ff;
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.2);
}

.terminal-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 245, 255, 0.2);
}

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

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

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

/* Typing animation */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

.typing-effect {
  overflow: hidden;
  border-right: 2px solid #00f5ff;
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

/* Neural network visualization */
.neural-node {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #00f5ff 0%, transparent 70%);
  border-radius: 50%;
  position: absolute;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.5);
    opacity: 0.5;
  }
}

/* Data visualization bars */
.data-bar {
  height: 8px;
  background: linear-gradient(90deg, #00f5ff 0%, #8b5cf6 100%);
  border-radius: 4px;
  transition: width 1s ease-out;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* AI chip icon styling */
.ai-chip {
  position: relative;
  display: inline-block;
}

.ai-chip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.3) 0%, transparent 70%);
  animation: pulse-glow 2s ease-in-out infinite;
  border-radius: 50%;
}

/* Hexagonal grid pattern */
.hex-grid {
  background-image: 
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='rgba(0,245,255,0.1)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* Scanline effect */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.scanline-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 245, 255, 0.5);
  animation: scanline 3s linear infinite;
  pointer-events: none;
}

/* Skill progress bars */
.skill-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00f5ff 0%, #8b5cf6 50%, #ec4899 100%);
  background-size: 200% 100%;
  animation: gradient-x 3s ease infinite;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cyber grid background */
.cyber-grid {
  background-color: #0a0e27;
  background-image: 
    linear-gradient(rgba(0, 245, 255, 0.05) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.05) 2px, transparent 2px),
    linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
}

/* Loading animation for AI models */
@keyframes ai-loading {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 0.7; }
}

.ai-loading {
  animation: ai-loading 2s ease-in-out infinite;
}

/* Neon border effect */
.neon-border {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(#0a0e27, #0a0e27) padding-box,
              linear-gradient(135deg, #00f5ff, #8b5cf6, #ec4899) border-box;
  animation: gradient-xy 5s ease infinite;
}

/* Circuit board pattern */
.circuit-board {
  background-color: #0a0e27;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 245, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .holographic-card {
    backdrop-filter: blur(10px);
  }
  
  .code-editor {
    font-size: 0.75rem;
    padding: 1rem;
  }
}

/* Print styles */
@media print {
  .gradient-text,
  .gradient-bg {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Enhanced Contact Form Styles */
.form-input-enhanced {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 2px solid rgba(0, 245, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-input-enhanced:focus {
  outline: none;
  border-color: #00f5ff;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3), inset 0 0 10px rgba(0, 245, 255, 0.1);
  transform: translateY(-2px);
}

.form-input-enhanced::placeholder {
  color: rgba(156, 163, 175, 0.5);
}

/* Animated submit button */
.submit-btn-enhanced {
  position: relative;
  overflow: hidden;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #00f5ff 0%, #8b5cf6 50%, #ec4899 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  animation: gradient-x 3s ease infinite;
}

.submit-btn-enhanced::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.submit-btn-enhanced:hover::before {
  width: 300px;
  height: 300px;
}

.submit-btn-enhanced:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.4);
}

.submit-btn-enhanced:active {
  transform: translateY(-1px);
}

/* Select dropdown enhanced */
select.form-input-enhanced {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 3rem;
}

/* Checkbox enhanced */
input[type="checkbox"].form-checkbox-enhanced {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(0, 245, 255, 0.3);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="checkbox"].form-checkbox-enhanced:checked {
  background: linear-gradient(135deg, #00f5ff, #8b5cf6);
  border-color: #00f5ff;
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
}

/* Floating label effect */
.form-group-floating {
  position: relative;
}

.form-group-floating label {
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  color: rgba(156, 163, 175, 0.7);
  font-size: 1rem;
  transition: all 0.3s ease;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 50%, rgba(15, 23, 42, 0.6) 50%);
  padding: 0 0.5rem;
}

.form-input-enhanced:focus + label,
.form-input-enhanced:not(:placeholder-shown) + label {
  top: -0.5rem;
  font-size: 0.75rem;
  color: #00f5ff;
  font-weight: 600;
}

/* Pulse animation for focused inputs */
@keyframes input-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 245, 255, 0.3); }
  50% { box-shadow: 0 0 30px rgba(0, 245, 255, 0.5); }
}

.form-input-enhanced:focus {
  animation: input-pulse 2s ease-in-out infinite;
}

