/* Custom CSS for Shafira's Portfolio */

/* Global Styles */
:root {
  --primary-color: #8E3E63;
  --secondary-color: #2c3e50;
  --accent-color: #f39c12;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

body {
  font-family: 'Poppins', sans-serif;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-section {
  animation: fadeIn 0.8s ease-out;
}

/* Portfolio Items */
.portfolio-item {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.portfolio-item-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.portfolio-item-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
  height: 250px;
  object-fit: cover;
  transition: all 0.5s ease;
  width: 100%;
}

.portfolio-item-wrapper:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-item-caption {
  background-color: rgba(142, 62, 99, 0.85);
  transition: all 0.3s ease;
  opacity: 0;
}

.portfolio-item-wrapper:hover .portfolio-item-caption {
  opacity: 1;
}

.portfolio-item-caption-content h5 {
  font-weight: 600;
  margin-top: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.portfolio-item-tags {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
}

.portfolio-item-tags .badge {
  margin-right: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Portfolio Filters */
.portfolio-filter {
  margin-bottom: 30px;
}

.portfolio-filter .btn {
  border-radius: 30px;
  padding: 8px 20px;
  margin: 0 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.portfolio-filter .btn:hover {
  transform: translateY(-3px);
}

.portfolio-filter .btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Skill Badges */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 0 auto;
  max-width: 800px;
  padding: 20px 0;
}

.skill-badge {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  opacity: 1 !important;
  transform: translateY(0) !important;
  border: 1px solid #ffffff;
}

.skill-badge:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #ffffff;
}

/* Experience Section */
.experience-timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.2);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.experience-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.experience-container::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--primary-color);
  border: 4px solid #ffffff;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.experience-left {
  left: 0;
}

.experience-right {
  left: 50%;
}

.experience-left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.1);
}

.experience-right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
}

.experience-right::after {
  left: -10px;
}

.experience-content {
  padding: 20px 30px;
  background-color: rgba(255, 255, 255, 0.1);
  position: relative;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.experience-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.15);
}

.experience-date {
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.experience-title {
  font-weight: 700;
  margin-bottom: 5px;
  color: #ffffff;
}

.experience-company {
  font-weight: 500;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.experience-description {
  color: rgba(255, 255, 255, 0.9);
  padding-left: 20px;
  margin-top: 15px;
}

.experience-description li {
  margin-bottom: 8px;
  position: relative;
}

.experience-description li::before {
  content: "•";
  position: absolute;
  left: -20px;
  color: var(--accent-color);
  font-weight: bold;
}

/* Education Section */
.education-item {
  transition: all 0.3s ease;
}

.education-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.15) !important;
}

.education-year {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Contact Cards */
.card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Social Icons */
.social-icons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.btn-social {
  border-radius: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  border: 2px solid #ffffff;
  background-color: transparent;
  color: #ffffff;
  margin: 0 10px;
}

.btn-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  color: var(--primary-color);
}

.btn-social i {
  line-height: 1;
}

/* Masthead */
.masthead {
  padding-top: calc(6rem + 74px);
  padding-bottom: 6rem;
  background: linear-gradient(135deg, #8E3E63 0%, #2c3e50 100%);
  position: relative;
}

.masthead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="smallGrid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255, 255, 255, 0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23smallGrid)" /></svg>');
  opacity: 0.5;
}

.masthead-avatar {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 5px solid white;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.masthead-avatar:hover {
  transform: scale(1.05);
}

.masthead-heading {
  font-weight: 700;
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.masthead-subheading {
  font-size: 1.5rem;
  font-weight: 300;
  margin-top: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  min-height: 60px;
}

/* Navigation */
.navbar {
  transition: all 0.3s ease;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.navbar-shrink {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: white;
  transition: all 0.3s ease;
}

.nav-link:hover::after {
  width: 80%;
  left: 10%;
}

/* Portfolio Modal */
.portfolio-modal .modal-content {
  border-radius: 15px;
  overflow: hidden;
}

.portfolio-modal-title {
  font-weight: 700;
  letter-spacing: 1px;
}

/* Footer */
.footer {
  padding: 5rem 0;
}

.copyright {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Typed.js cursor */
.typed-cursor {
  font-size: 1.5rem;
  color: var(--accent-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .masthead-heading {
    font-size: 2.5rem;
  }
  
  .masthead-subheading {
    font-size: 1.2rem;
  }
  
  .masthead-avatar {
    width: 150px;
    height: 150px;
  }
  
  .page-section {
    padding: 4rem 0;
  }
  
  .portfolio-filter .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    margin: 0 2px;
  }
  
  .skill-badge {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  .experience-timeline::before {
    left: 31px;
  }
  
  .experience-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .experience-container::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
  }

  .experience-left::after, .experience-right::after {
    left: 15px;
  }
  
  .experience-right {
    left: 0%;
  }
}
