/* Custom animations and styles */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #4f46e5; }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-pulse-slow {
  animation: pulse 4s ease-in-out infinite;
}

.gradient-bg {
  background: linear-gradient(-45deg, #4f46e5, #7e22ce, #3b82f6, #06b6d4);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

.typing-effect {
  overflow: hidden;
  border-right: 2px solid;
  white-space: nowrap;
  margin: 0 auto;
  animation: typing 3.5s steps(40, end), blink 1s step-end infinite;
}

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.card-hover {
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.card-hover:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.floating-shapes {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

.shape-1 {
  width: 100px;
  height: 100px;
  background: #4f46e5;
  top: 10%;
  left: 5%;
  animation: float 6s ease-in-out infinite;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: #7e22ce;
  bottom: 15%;
  right: 10%;
  animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
  width: 80px;
  height: 80px;
  background: #3b82f6;
  top: 40%;
  right: 20%;
  animation: float 7s ease-in-out infinite 1s;
}

.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #4f46e5;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid #4f46e5;
  border-radius: 15px;
  display: flex;
  justify-content: center;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 10px;
  width: 4px;
  height: 10px;
  background: #4f46e5;
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(15px); opacity: 0; }
}

.tech-icon {
  display: inline-block;
  margin: 0 10px;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.tech-icon:hover {
  transform: scale(1.2) rotate(10deg);
  color: #4f46e5;
}

.section-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu styles */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  background-color: #f9fafb;
  color: #4f46e5;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* Form status styles */
#form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 500;
}

#form-status.success {
  background-color: #d1fae5;
  color: #065f46;
}

#form-status.error {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Project screenshot styles */
.project-screenshot {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-screenshot {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(79, 70, 229, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

/* Certificate styles */
.certificate-card {
  transition: all 0.3s ease;
  border-left: 4px solid #4f46e5;
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.certificate-link {
  color: #4f46e5;
  transition: all 0.3s ease;
}

.certificate-link:hover {
  color: #3730a3;
  text-decoration: underline;
}

.certificate-list {
  max-height: 400px;
  overflow-y: auto;
}