/* Additional Modern UI Styles */

/* Animate on scroll classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Card styles */
.card {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  height: 100%;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f0f0f0;
}

.card-text {
  color: #cccccc;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Project Cards */
.project-card {
  position: relative;
  border-radius: 15px;
  background: rgba(20, 20, 20, 0.8);
  overflow: hidden;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #0d6efd, #00d4ff, #0d6efd);
  z-index: -1;
  transform: scale(0.98);
  opacity: 0;
  border-radius: 16px;
}

.project-card .card-img {
  height: 250px;
  overflow: hidden;
}

.project-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card .card-content {
  padding: 20px;
  background: rgba(20, 20, 20, 0.9);
  position: relative;
}

.project-card .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
}

.project-card .card-title:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #0d6efd;
}

.project-card .tech-stack {
  margin: 15px 0;
}

.project-card .tech {
  display: inline-block;
  padding: 5px 10px;
  background: rgba(13, 110, 253, 0.2);
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 8px;
  margin-bottom: 8px;
}

.project-card .btn-project {
  background: transparent;
  color: #0d6efd;
  border: 1px solid #0d6efd;
  border-radius: 25px;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 15px;
}

/* Footer styles */
footer {
  background: rgba(10, 10, 10, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
  text-align: center;
  position: relative;
}

footer .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

footer .footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}

footer .footer-social {
  margin: 15px 0;
}

footer .footer-social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 5px;
  border-radius: 50%;
  line-height: 40px;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

footer .footer-social a:hover {
  background: #0d6efd;
  transform: translateY(-5px);
}

footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 20px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #0d6efd, #00d4ff);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline Component */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 50px auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background: #0d6efd;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.5s ease;
}

.timeline-item.animated {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #0d6efd;
  border: 4px solid #0a0a0a;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item.left::after {
  right: -13px;
}

.timeline-item.right::after {
  left: -13px;
}

.timeline-content {
  padding: 20px 30px;
  background: rgba(20, 20, 20, 0.8);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  border: 10px solid transparent;
  top: 15px;
}

.timeline-item.left .timeline-content::before {
  right: -20px;
  border-left-color: rgba(255, 255, 255, 0.1);
}

.timeline-item.right .timeline-content::before {
  left: -20px;
  border-right-color: rgba(255, 255, 255, 0.1);
}

.timeline-date {
  background: #0d6efd;
  color: #fff;
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Skills Section */
.skill-container {
  margin-bottom: 20px;
}

.skill-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.skill-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.skill-percentage {
  height: 100%;
  background: linear-gradient(45deg, #0d6efd, #00d4ff);
  border-radius: 10px;
  width: 0;
  transition: width 1.5s ease;
}

/* Contact Form */
.form-control {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(30, 30, 30, 0.8);
  border-color: #0d6efd;
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.2);
}

.form-label {
  color: #e0e0e0;
  font-weight: 500;
}

.btn-contact {
  background: linear-gradient(45deg, #0d6efd, #00d4ff);
  border: none;
  color: white;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
  transition: all 0.3s ease;
  width: 100%;
}

.btn-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.5);
}

/* Media Queries */
@media (max-width: 992px) {
  .navbar-collapse {
    background: rgba(10, 10, 10, 0.95);
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item.right {
    left: 0;
  }
  
  .timeline-item.left::after,
  .timeline-item.right::after {
    left: 18px;
  }
  
  .timeline-item.left .timeline-content::before,
  .timeline-item.right .timeline-content::before {
    left: -20px;
    border-right-color: rgba(255, 255, 255, 0.1);
    border-left-color: transparent;
  }
}

@media (max-width: 768px) {
  .bannerTitle {
    font-size: 2.5rem;
  }
  
  .bannerTitle2 {
    font-size: 2.8rem;
  }
  
  .typing-text {
    font-size: 1.8rem;
  }
  
  .banner-buttons .btn-banner {
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .bannerTitle {
    font-size: 2rem;
  }
  
  .bannerTitle2 {
    font-size: 2.2rem;
  }
  
  .typing-text {
    font-size: 1.5rem;
  }
}
