/* Project Page Styles */

.project-container {
  background: linear-gradient(120deg, #1A1A1A 0%, #0D0D0D 100%);
  min-height: 90vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem 2rem 1rem;
}

.project-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.project-content h1,
.project-content h2 {
  color: #FFD166;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(255,209,102,0.08);
}

.project-item {
  display: flex;
  align-items: center;
  background: rgba(34, 34, 34, 0.97);
  border-radius: 1.5rem;
  box-shadow: 0 6px 32px rgba(0,0,0,0.25);
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  gap: 2.2rem;
  transition: transform 0.18s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}

.project-item:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 12px 48px rgba(255,107,107,0.13), 0 2px 24px rgba(255,209,102,0.10);
}

.image-project {
  flex: 0 0 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(255,107,107,0.10);
  background: #232323;
}

.image-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.2rem;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-item:hover .image-project img {
  transform: scale(1.08) rotate(-2deg);
}

.project-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.project-text h3 {
  color: #FF6B6B;
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
  letter-spacing: 0.5px;
}

.project-text p {
  color: #F1F1F1;
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
  opacity: 0.92;
}

.link-btn {
  display: inline-block;
  background: linear-gradient(90deg, #FF6B6B 0%, #FFD166 100%);
  color: #181818;
  font-weight: 600;
  text-align: center;
  padding: 0.55rem 1.3rem;
  border-radius: 2rem;
  margin-right: 0.7rem;
  margin-top: 0.3rem;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 2px 12px rgba(255,107,107,0.10);
  transition: background 0.2s, color 0.2s, transform 0.18s;
}

.link-btn:hover {
  background: linear-gradient(90deg, #FFD166 0%, #FF6B6B 100%);
  color: #232323;
  transform: scale(1.07);
  box-shadow: 0 4px 24px rgba(255,209,102,0.18);
}

/* --- Active Link Indicator Styles --- */
.nav-link {
  position: relative;
  overflow: visible;
}

.nav-text {
  position: relative;
  z-index: 2;
}

.nav-indicator {
  position: relative;
  width: 100%;
  height: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.indicator-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0);
}

.indicator-line {
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #FF6B6B, #FFA500);
  border-radius: 1px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.active-link {
  color: #FF6B6B;
}

.active-link .indicator-dot {
  background: linear-gradient(135deg, #FF6B6B, #FFA500);
  transform: scale(1);
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.active-link .indicator-line {
  width: 100%;
}

.active-link:hover {
  background: rgba(255, 107, 107, 0.15);
}

.nav-link:hover .indicator-dot {
  transform: scale(0.7);
  background: rgba(255, 107, 107, 0.6);
}

.nav-link:hover .indicator-line {
  width: 50%;
  background: rgba(255, 107, 107, 0.6);
}

@media (max-width: 600px) {
  .nav-indicator {
    height: 12px;
  }
  .indicator-dot {
    width: 3px;
    height: 3px;
  }
  .indicator-line {
    height: 1px;
  }
}
@media (max-width: 480px) {
  .nav-indicator {
    height: 10px;
  }
  .indicator-dot {
    width: 2px;
    height: 2px;
  }
  .indicator-line {
    height: 1px;
  }
}
@media (max-width: 900px) {
  .nav-indicator {
    display: none;
  }
  
  /* Ensure active link is still visible on mobile */
  .active-link {
    color: #FF6B6B !important;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 0.5rem;
  }
}

/* Base mobile-first approach */
@media (max-width: 768px) {
  .project-container {
    padding: 2rem 1rem 1.5rem 1rem;
  }
  
  .project-content {
    gap: 2rem;
    padding: 0 0.5rem;
  }
  
  .project-content h1,
  .project-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .project-item {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-direction: column;
    text-align: center;
  }
  
  .image-project {
    width: 100%;
    height: 180px;
    margin-bottom: 1rem;
    border-radius: 1rem;
  }
  
  .project-text {
    gap: 0.8rem;
    align-items: center;
  }
  
  .project-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
  }
  
  .project-text p {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .link-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 1.5rem;
    min-width: 120px;
    display: inline-block;
  }
}

@media (max-width: 600px) {
  .project-container {
    padding: 1.5rem 0.5rem 1rem 0.5rem;
  }
  
  .project-content {
    gap: 1.5rem;
    padding: 0 0.3rem;
  }
  
  .project-content h1,
  .project-content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  
  .project-item {
    padding: 1rem 0.8rem;
    gap: 1rem;
    margin-bottom: 1.2rem;
  }
  
  .image-project {
    height: 150px;
    margin-bottom: 0.8rem;
  }
  
  .project-text {
    gap: 0.6rem;
  }
  
  .project-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
  }
  
  .project-text p {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }
  
  .link-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    margin-right: 0.3rem;
    margin-bottom: 0.4rem;
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .project-container {
    padding: 1rem 0.3rem 0.8rem 0.3rem;
  }
  
  .project-content {
    gap: 1.2rem;
    padding: 0 0.2rem;
  }
  
  .project-content h1,
  .project-content h2 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
  }
  
  .project-item {
    padding: 0.8rem 0.6rem;
    gap: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .image-project {
    height: 120px;
    margin-bottom: 0.6rem;
  }
  
  .project-text {
    gap: 0.5rem;
  }
  
  .project-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
  }
  
  .project-text p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .link-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    margin-right: 0.2rem;
    margin-bottom: 0.3rem;
    min-width: 90px;
  }
}

@media (max-width: 360px) {
  .project-container {
    padding: 0.8rem 0.2rem 0.6rem 0.2rem;
  }
  
  .project-content {
    gap: 1rem;
    padding: 0 0.1rem;
  }
  
  .project-content h1,
  .project-content h2 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }
  
  .project-item {
    padding: 0.6rem 0.4rem;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
  }
  
  .image-project {
    height: 100px;
    margin-bottom: 0.5rem;
  }
  
  .project-text {
    gap: 0.4rem;
  }
  
  .project-text h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }
  
  .project-text p {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }
  
  .link-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    margin-right: 0.2rem;
    margin-bottom: 0.3rem;
    min-width: 80px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .link-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .project-item {
    cursor: pointer;
  }
  
  .project-item:active {
    transform: scale(0.98);
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .project-container {
    padding: 1rem 1rem 0.5rem 1rem;
  }
  
  .project-content {
    gap: 1rem;
  }
  
  .project-content h1,
  .project-content h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .project-item {
    padding: 0.8rem 1rem;
    gap: 1rem;
    margin-bottom: 0.8rem;
    flex-direction: row;
    text-align: left;
  }
  
  .image-project {
    height: 80px;
    width: 80px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .project-text h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }
  
  .project-text p {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }
  
  .link-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    margin-right: 0.2rem;
    margin-bottom: 0.2rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .image-project img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .project-item:hover {
    transform: none;
  }
  
  .link-btn:hover {
    transform: none;
  }
  
  .project-item:active {
    transform: none;
  }
}

/* Better spacing for very small screens */
@media (max-width: 320px) {
  .project-container {
    padding: 0.6rem 0.1rem 0.4rem 0.1rem;
  }
  
  .project-content {
    gap: 0.8rem;
  }
  
  .project-content h1,
  .project-content h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .project-item {
    padding: 0.5rem 0.3rem;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
  }
  
  .image-project {
    height: 80px;
    margin-bottom: 0.4rem;
  }
  
  .project-text h3 {
    font-size: 0.95rem;
  }
  
  .project-text p {
    font-size: 0.8rem;
  }
  
  .link-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    min-width: 70px;
  }
}
