/* Rounded Card Styles */
.card2 {
  border-color : #292929;
  width: 40%;
  border-radius: 25px !important;
  background-color: #232323;
}

.cardd h3 {
  font-size:20px;
}

.card-body {
  padding: 1rem; /* Reduce the padding */
  border-radius: 25px;
}

.cardexp {
  border-color : #292929;
  width: 60%;
  border-radius: 25px !important;
}

.photopop:hover{
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.card3 {
  border-color : #292929;
  width: 60%;
  border-radius: 25px !important;
}

/* Additional rounded elements */
.card {
  border-radius: 25px !important;
}

.modal-content {
  border-radius: 25px !important;
}

/* Navigation Pills Styling */
.nav-pills {
  background-color: #292929;
  border-radius: 50px;
  padding: 5px;
  display: inline-block;
  border: 1px solid #444;
}

.nav-pill-container {
  display: flex;
}

.nav-pills .nav-link {
  border-radius: 50px;
  padding: 8px 20px;
  margin: 0 4px;
  color: white;
  transition: all 0.3s ease;
}

.nav-pills .nav-link:hover:not(.active) {
  background-color: #383838;
}

.nav-pills .nav-link.active {
  background-color: #6c757d !important; 
  color: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Mobile Close Button */
.btn-close-mobile {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #232323;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 30px;
  display: none;
  z-index: 1060;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Only show on mobile devices */
@media (max-width: 991px) {
  .nav-pills {
    background-color: transparent;
    border: none;
    width: 100%;
    padding: 0;
  }
  
  .nav-pill-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .nav-pills .nav-link {
    border-radius: 0;
    padding: 8px 15px;
    margin: 5px 0;
    background-color: transparent !important;
    box-shadow: none;
  }
  
  .nav-pills .nav-link.active {
    background-color: transparent !important;
    font-weight: bold;
    color: #fff;
  }
  
  .navbar-nav {
    text-align: center;
    width: 100%;
  }
  
  /* Adjust spacing for the CV button on mobile */
  .navbar-nav .btn {
    margin: 15px 0 5px;
  }
  .remove {
    display: block;
  }

  .btn-close-mobile {
    display: block;
  }


  .card2 {
    width: 90%;
    margin: 0 auto;
  }
}

/* Education Timeline Styles */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.582)
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 80px;
}

.timeline-marker {
  position: absolute;
  left: 20px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #fff;
  z-index: 2;
}

.timeline-marker.current {
  background-color: #d3d3d3;
  box-shadow: 0 0 0 4px rgb(0, 0, 0);
  animation: pulse 2s infinite;
}

.timeline-marker.completed {
  background-color: #414141;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

.timeline-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 20px;
  border-left: 4px solid #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.timeline-period {
  display: inline-block;
  background: #707377;
  color: white;
  padding: 4px 12px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-content h4 {
  margin: 10px 0 5px 0;
  color: #fff;
  font-weight: 600;
}

.timeline-content h6 {
  margin: 5px 0 10px 0;
  color: #bbb;
}

.timeline-content p {
  color: #ddd;
  line-height: 1.5;
}

/* Responsive adjustments for timeline */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  .timeline-marker {
    left: 10px;
    width: 16px;
    height: 16px;
  }
  
  .timeline-content {
    padding: 15px;
  }
}

/* Modal Design Animation Styles */
.design-container {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.design-container.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.design-image {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.2s;
}

.design-image.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.design-content {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease 0.4s;
}

.design-content.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.design-tech-list {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease 0.6s;
}

.design-tech-list.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.design-description {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease 0.8s;
}

.design-description.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Form Styles */
.contact-form {
  max-width: 100%;
}

.contact-form .form-control {
  background-color: #343a40 !important;
  border: 1px solid #495057;
  color: white;
  transition: all 0.3s ease;
  border-radius: 15px !important;
}

.contact-form .form-control:focus {
  background-color: #495057;
  border-color: #6c757d;
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.contact-form .form-control::placeholder {
  color: #adb5bd;
}

.contact-form .form-label {
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-form .btn-outline-light {
  border-width: 2px;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 120px;
  border-radius: 20px !important;
}

.contact-form .btn-outline-light:hover {
  background-color: #f8f9fa;
  color: #212529;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Responsive adjustments for contact form */
@media (max-width: 768px) {
  .contact-form {
    padding: 0 10px;
  }
  
  .contact-form .btn-lg {
    width: 100%;
    margin-top: 10px;
  }
}

/* Project Filter Styles */
#techFilter .btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  transition: all 0.3s ease;
}

#techFilter .btn.active {
  background-color: #fff;
  color: #232323;
}

#techFilter .btn:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Project Card Styles */
.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
}

.tech-badges .badge {
  font-size: 0.7rem;
  font-weight: normal;
}

.project-section {
  margin-bottom: 2rem;
}

.project-section h3 {
  border-bottom: 1px solid #444;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Responsive Project Cards */
@media (max-width: 992px) {
  .cardexp {
    width: 90%;
  }
  
  #projects .row {
    justify-content: center;
  }
  
  .project-card {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .project-card img {
    max-width: 150px !important;
  }
  
  .search-filter-container {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .cardexp {
    width: 95%;
  }
  
  #projects .card-body {
    padding: 1rem 0.5rem;
  }
  
  .project-section h3 {
    font-size: 1.2rem;
  }
  
  .project-section h5 {
    font-size: 1rem;
  }
  
  .project-card {
    max-width: 100%;
    padding: 0.5rem;
  }
  
  .project-card h5 {
    font-size: 0.95rem;
  }
  
  .project-card img {
    max-width: 120px !important;
  }
  
  .tech-badges .badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
  }
  
  .search-filter-container {
    width: 100%;
    padding: 0 0.5rem;
  }
  
  #techSearchInput {
    font-size: 0.9rem;
  }
  
  #clearFilter {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

@media (max-width: 576px) {
  .cardexp {
    width: 98%;
    margin-left: 1%;
    margin-right: 1%;
  }
  
  #projects .row {
    margin: 0;
  }
  
  .project-card {
    padding: 0.25rem;
  }
  
  .project-card img {
    max-width: 100px !important;
  }
  
  .project-card h5 {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }
  
  .tech-badges {
    gap: 0.2rem;
  }
  
  .tech-badges .badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.3rem;
  }
  
  .project-section {
    margin-bottom: 1.5rem;
  }
  
  .project-section h3 {
    font-size: 1rem;
    padding-bottom: 0.3rem;
  }
  
  .project-section h5 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem !important;
  }
  
  .suggestions-dropdown {
    max-height: 150px;
  }
  
  .suggestion-item {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* Search Filter Styles */
.search-filter-container {
  position: relative;
}

#techSearchInput {
  padding-right: 40px;
}

#techSearchInput::placeholder {
  color: #888;
}

.suggestions-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #333;
  border: 1px solid #444;
  border-radius: 0 0 0.375rem 0.375rem;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

.suggestion-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: #fff;
  transition: background-color 0.2s ease;
}

.suggestion-item:hover {
  background-color: #444;
}

.suggestion-item:not(:last-child) {
  border-bottom: 1px solid #444;
}

#clearFilter {
  font-size: 0.8rem;
}

/* Experience Card Styles */
.experience-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.experience-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.experience-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.experience-logo {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.experience-logo img {
  max-height: 100%;
  object-fit: contain;
}

.experience-period {
  font-size: 0.85rem;
}

.experience-role {
  font-size: 0.9rem;
  color: #adb5bd;
  font-style: italic;
}

/* Responsive Experience Cards */
@media (max-width: 992px) {
  .experience-logo {
    height: 100px;
  }
  
  .experience-logo img {
    max-width: 150px !important;
  }
  
  .experience-card h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .experience-card {
    padding: 1rem !important;
  }
  
  .experience-logo {
    height: 80px;
  }
  
  .experience-logo img {
    max-width: 120px !important;
  }
  
  .experience-card h4 {
    font-size: 1rem;
  }
  
  .experience-period,
  .experience-role {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .experience-card {
    padding: 0.75rem !important;
  }
  
  .experience-logo {
    height: 70px;
  }
  
  .experience-logo img {
    max-width: 100px !important;
  }
}