/* Project Details in FlavorStack Style */

:root {
  --primary-color: #0077ff;
  --secondary-color: #121212;
  --accent-color: #ff3a00;
  --text-color: #333;
  --light-text: #777;
  --light-bg: #f8f9fa;
  --dark-bg: #121212;
  --border-color: #e0e0e0;
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --transition: all 0.3s ease;
  --paragraph-spacing: 1.8em;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
}

.portfolio-details-page {
  overflow-x: hidden;
}

/* Loading Spinner */
.spinner-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.spinner-wrapper.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 119, 255, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

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

/* Header */
.project-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  transition: var(--transition);
}

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

.back-link {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--primary-color);
}

.back-link i {
  margin-right: 8px;
  font-size: 20px;
}

.logo-link {
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

.logo-link:hover {
  color: var(--primary-color);
}

.nav-extras {
  display: flex;
  gap: 15px;
}

.nav-extra-link {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.nav-extra-link:hover {
  color: var(--primary-color);
}

.nav-extra-link i {
  margin-right: 6px;
  font-size: 18px;
}

/* Project Gallery */
.project-slider {
  padding: 0;
  margin: 0;
  overflow: hidden;
  background-color: var(--light-bg);
}

.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.swiper-container {
  width: 100%;
  height: 500px;
}

.swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Portrait mode for mobile app screenshots */
.mobile-app-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-app-slide img {
  width: auto;
  max-width: 60%;
  height: 100%;
  max-height: 700px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 
              0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(220, 220, 220, 0.5);
}

/* Hero Section */
.hero-section {
  padding: 60px 0 40px;
  text-align: center;
  background-color: #fff;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 15px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-secondary);
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.hero-description {
  font-size: 18px;
  color: var(--light-text);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Project Details */
.project-details {
  padding: 60px 0;
  background-color: var(--light-bg);
}

.details-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

/* Tech Stack */
.tech-stack {
  width: 25%;
  padding-right: 20px;
}

.top-tech {
  margin-top: 0;
}

.tech-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  display: inline-block;
  padding: 6px 15px;
  background-color: #e9f2ff;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 500;
  border-radius: 20px;
  transition: var(--transition);
}

.tech-tag:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.project-website {
  margin-top: 30px;
}

.website-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
}

.website-button:hover {
  background-color: #0062cc;
  color: #fff;
}

.website-button i {
  margin-right: 8px;
  font-size: 18px;
}

/* Project Content */
.project-content {
  width: 65%;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-subtitle {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 20px;
  color: var(--secondary-color);
}

.content-text {
  margin-bottom: 30px;
  line-height: var(--paragraph-spacing);
}

.features-list, .challenges-list, .results-list {
  padding-left: 20px;
  margin-bottom: 30px;
}

.features-list li, .challenges-list li, .results-list li {
  margin-bottom: 15px;
  position: relative;
}

.features-list li::before {
  content: '\f058';
  font-family: 'bootstrap-icons';
  color: var(--primary-color);
  position: absolute;
  left: -20px;
}

.challenges-list li::before {
  content: '\f1f6';
  font-family: 'bootstrap-icons';
  color: var(--primary-color);
  position: absolute;
  left: -20px;
}

.results-list li::before {
  content: '\f633';
  font-family: 'bootstrap-icons';
  color: var(--primary-color);
  position: absolute;
  left: -20px;
}

/* Project Navigation */
.project-navigation {
  padding: 40px 0;
  background-color: #fff;
  border-top: 1px solid var(--border-color);
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: #f8f9fa;
}

.nav-link.prev i {
  margin-right: 8px;
}

.nav-link.next i {
  margin-left: 8px;
}

/* Footer */
.footer {
  padding: 30px 0;
  background-color: var(--dark-bg);
  color: #fff;
  text-align: center;
}

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

.copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Scroll To Top */
.scroll-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 5px;
  transition: var(--transition);
  z-index: 999;
  text-decoration: none;
}

.scroll-top:hover {
  background-color: #0062cc;
  color: #fff;
}

.scroll-top i {
  font-size: 24px;
}

/* Error alert */
.error-alert {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 20px;
}

.alert-danger {
  background-color: rgba(255, 0, 0, 0.1);
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: 500;
  text-align: center;
}

/* Social Links */
.social-links a {
  font-size: 18px;
  color: #fff;
  margin-left: 15px;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Responsive styles */
@media (max-width: 992px) {
  .tech-stack, .project-content {
    width: 100%;
    padding-right: 0;
  }

  .tech-stack {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-description {
    font-size: 16px;
  }

  .swiper-container {
    height: 350px;
  }

  .back-link span, .nav-extra-link .extra-text {
    display: none;
  }

  .mobile-app-slide img {
    max-width: 70%;
    max-height: 500px;
  }
}

@media (max-width: 576px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 20px;
  }

  .swiper-container {
    height: 250px;
  }
  
  .project-website {
    width: 100%;
    text-align: left;
  }
}

/* Slider container positioning */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive adjustments for mobile apps */
@media (max-width: 768px) {
  .mobile-app-slide img {
    max-width: 70%;
    max-height: 500px;
  }
}

@media (max-width: 480px) {
  .mobile-app-slide img {
    max-width: 85%;
    max-height: 400px;
  }
}

/* Darker background for mobile app slider */
.mobile-app-slider-container {
  background: #f5f5f5;
  padding: 20px 0;
  border-radius: 8px;
}
