@font-face {
  font-family: 'Code New Roman';
  src: url('fonts/Code New Roman.otf') format('opentype');
}

@font-face {
  font-family: 'Perfect DOS VGA 437';
  src: url('fonts/Perfect DOS VGA 437.ttf') format('truetype');
}

@font-face {
  font-family: 'Speculum';
  src: url('fonts/speculum.ttf') format('truetype');
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #000000;
  color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
}

/* Glassmorphism for sections */
header, section, footer {
  margin-bottom: 2em;
  background: rgba(0, 31, 63, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: 2em;
  border-radius: 15px;
  color: #fff;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
}

header:hover, section:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* Gradient text for headers */
h1, h2 {
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 0.5em;
  background: linear-gradient(135deg, #00ff88 0%, #00a8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

h3 {
  font-family: 'Roboto', Arial, sans-serif;
  color: #00ff88;
  margin-bottom: 1em;
}

p, ul {
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 1em;
}

/* Convert skills to pill badges */
ul.tight {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

ul.tight li {
  display: inline-block;
  padding: 0.4em 1em;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 25px;
  font-size: 0.9em;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

ul.tight li:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Regular list styling */
ul:not(.tight) {
  list-style-type: none;
  padding: 0;
}

ul:not(.tight) li {
  margin: 0.5em 0;
  padding: 0.5em;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

ul:not(.tight) li:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.center {
  text-align: center;
}

/* Enhanced link colors */
a {
  color: #00ff88;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: #00a8ff;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #00ff88;
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

a.plain {
  text-decoration: none;
  color: white;
}

a.plain::after {
  display: none;
}

/* Container glassmorphism */
.container {
  max-width: 800px;
  background: rgba(0, 31, 63, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2em;
  animation: fadeIn 0.8s ease-out;
  overflow: visible !important;
}

/* Form styling */
#contactForm .form-label {
  margin-top: 1em;
  color: #00ff88;
}

#contactForm .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: all 0.3s ease;
}

#contactForm .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #00ff88;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
  color: #fff;
}

#contactForm .btn-primary {
  background: linear-gradient(135deg, #00ff88 0%, #00a8ff 100%);
  border: none;
  padding: 0.75em 2em;
  font-weight: bold;
  transition: all 0.3s ease;
}

#contactForm .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}

/* Profile picture */
.profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 3px solid #00ff88;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
  object-fit: cover;
  object-position: 40% 30%;
  margin-bottom: 1em;
  cursor: pointer;
  z-index: 10;
  position: relative;
  background: #000;
  transition: all 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(0, 255, 136, 0.5);
}

.profile-pic-large {
  width: 650px;
  height: auto;
  border-radius: 5px;
  cursor: default;
  transform: none;
}

.profile-pic-large:hover {
  transform: none;
}

.angle-bg {
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.9) 50%, rgba(0, 51, 102, 0.9) 50%);
  backdrop-filter: blur(10px);
  padding: 2em;
  border-radius: 15px;
  margin-bottom: 2em;
}

.dotted-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(to right, #00ff88 0, #00ff88 5px, transparent 5px, transparent 10px);
  transform-origin: left;
  z-index: 5;
  pointer-events: none;
}

/* Dark theme modal - removed duplicate to avoid conflicts */

#submitModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

#submitModal .modal-content {
  background: rgba(0, 31, 63, 0.95) !important;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2em;
  width: 80%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
  animation: slideInUp 0.3s ease;
  color: #fff !important;
}

#submitModal .close {
  color: #00ff88;
  float: right;
  font-size: 28px;
  font-weight: bold;
  transition: all 0.3s ease;
}

#submitModal .close:hover,
#submitModal .close:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transform: rotate(90deg);
}

/* Ensure all modal content is styled correctly */
#submitModal h2,
#submitModal h3,
#submitModal h4,
#submitModal p,
#submitModal div {
  color: #fff !important;
}

#submitModal a {
  color: #00ff88 !important;
}

/* Bootstrap Modal Dark Theme Override - Force z-index hierarchy */
.modal-backdrop {
  z-index: 1040 !important;
  background-color: rgba(0, 0, 0, 0.8) !important;
}

.modal {
  z-index: 1050 !important;
}

.modal.show {
  z-index: 1050 !important;
}

.modal.fade.show {
  z-index: 1050 !important;
}

.modal .modal-dialog {
  z-index: 1051 !important;
}

.modal .modal-dialog {
  transition: transform 0.3s ease-out;
  position: relative;
}

.modal .modal-content {
  background: rgba(0, 31, 63, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 136, 0.3) !important;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
  color: #fff !important;
  position: relative;
  z-index: 1052 !important;
}

.modal .modal-header {
  border-bottom: 1px solid rgba(0, 255, 136, 0.2) !important;
  background: transparent !important;
}

.modal .modal-title {
  color: #00ff88 !important;
  font-weight: bold;
}

.modal .modal-body {
  color: #fff !important;
  background: transparent !important;
}

.modal .modal-footer {
  border-top: 1px solid rgba(0, 255, 136, 0.2) !important;
  background: transparent !important;
}

.modal .btn-close {
  filter: invert(1) brightness(2);
  opacity: 0.8;
}

.modal .btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
  transition: all 0.3s ease;
}

/* Mobile pulse animation */
@media (max-width: 768px) {
  .profile-pic-pulse {
    animation: pulse 3s infinite;
  }
  
  ul.tight {
    justify-content: center;
  }
}

/* Animations */
@keyframes pulse {
  0%, 35%, 55%, 100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.1);
  }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Background snippets (keep original) */
.snippet-margins {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background-color: black;
  color: white;
  overflow: hidden;
  z-index: -1;
  perspective: 1px;
  transform-style: preserve-3d;
}

@keyframes moveRight {
  0% {
    transform: translateX(-30%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(70%);
    opacity: 0;
  }
}

@keyframes moveLeft {
  0% {
    transform: translateX(70%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(-30%);
    opacity: 0;
  }
}

.code-snippet {
  position: absolute;
  white-space: pre;
  color: #00ff88;
  text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.code-snippet.move-right {
  animation: moveRight 10s linear forwards;
}

.code-snippet.move-left {
  animation: moveLeft 10s linear forwards;
}

.code1 {
  font-family: 'Perfect DOS VGA 437', monospace;
}

.code2 {
  font-family: 'Code New Roman', monospace;
}

.code3 {
  font-family: 'Speculum', monospace;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 31, 63, 0.3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00ff88 0%, #00a8ff 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #00ff88 0%, #667eea 100%);
}

/* Loading state for form */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 255, 136, 0.3);
  border-radius: 50%;
  border-top-color: #00ff88;
  animation: spin 1s ease-in-out infinite;
}

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

/* Initially hide reCAPTCHA badge to prevent visual jump when repositioning */
.grecaptcha-badge {
  visibility: hidden !important;
}

