/* projects-style.css */
/* Project Detail Page Styles - Optimized for Large Screenshots */

/* Modern Color Scheme - Consistent with main site */
:root {
  --primary: #6366f1;
  --primary-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
  --secondary: #1e293b;
  --dark: #0f172a;
  --darker: #020617;
  --light: #f1f5f9;
  --lighter: #f8fafc;
  --gray: #94a3b8;
  --gray-light: #cbd5e1;
  --success: #10b981;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.2);
  --shadow-large: 0 25px 50px rgba(0, 0, 0, 0.15);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --border-radius: 20px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--darker);
  color: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--light);
  transition: var(--transition);
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section */
.section {
  padding: 120px 0;
  min-height: 100vh;
}

/* Project Header */
.project-header {
  text-align: center;
  margin-bottom: 80px;
  padding: 60px 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05) 0%,
    rgba(139, 92, 246, 0.05) 100%
  );
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.project-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  line-height: 1.2;
}

.project-description {
  font-size: 1.3rem;
  color: var(--gray);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Tech Stack */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 40px 0;
  padding: 30px;
  background: var(--glass);
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.tech-tag {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.3);
  transition: var(--transition);
}

.tech-tag:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Screenshot Gallery - Column Layout */
.screenshot-gallery {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin: 80px 0;
}

.screenshot-item {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
}

.screenshot-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.screenshot-item:hover::before {
  transform: scaleX(1);
}

.screenshot-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* Large Screenshots */
.screenshot-image {
  width: 100%;
  height: auto;
  min-height: 500px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
  cursor: pointer;
}

.screenshot-item:hover .screenshot-image {
  transform: scale(1.02);
}

/* Screenshot Content */
.screenshot-content {
  padding: 40px;
  position: relative;
}

.screenshot-number {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-gradient);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.screenshot-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--light);
}

.screenshot-description {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.screenshot-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.feature-tag {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Project Navigation */
.project-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 80px 0;
  padding: 40px;
  background: var(--glass);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.nav-btn i {
  font-size: 1.1rem;
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.project-index {
  color: var(--gray);
  font-size: 0.9rem;
  text-align: center;
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 1rem;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(20px);
  padding: 18px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--glass-border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
}

.logo span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 5px;
}

.project-nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.project-nav-links a {
  color: var(--light);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

.project-nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  left: 0;
  bottom: 0;
  transition: var(--transition);
}

.project-nav-links a:hover::after {
  width: 100%;
}

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

/* Footer */
footer {
  background: var(--dark);
  padding: 60px 0 30px;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.footer-logo {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  display: inline-block;
}

.footer-logo span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: flex;
  justify-content: center;
  list-style: none;
  margin-bottom: 30px;
  gap: 30px;
}

.footer-links a {
  color: var(--light);
  transition: var(--transition);
}

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

.copyright {
  color: var(--gray);
  font-size: 1rem;
  margin-top: 30px;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-header {
  animation: fadeIn 1s ease-out;
}

.screenshot-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.screenshot-item.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox/Modal for Fullscreen Screenshots */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
  background: rgba(99, 102, 241, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Responsive Design */
@media (max-width: 1100px) {
  .project-title {
    font-size: 3rem;
  }

  .screenshot-image {
    min-height: 400px;
  }
}

@media (max-width: 992px) {
  .section {
    padding: 100px 0;
  }

  .project-header {
    padding: 40px 0;
    margin-bottom: 60px;
  }

  .project-title {
    font-size: 2.5rem;
  }

  .project-description {
    font-size: 1.1rem;
  }

  .screenshot-content {
    padding: 30px 25px;
  }

  .screenshot-title {
    font-size: 1.6rem;
  }

  .tech-stack {
    padding: 20px;
    gap: 10px;
  }

  .project-navigation {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0 15px;
  }

  .section {
    padding: 80px 0;
  }

  .project-title {
    font-size: 2.2rem;
  }

  .project-description {
    font-size: 1rem;
    padding: 0 20px;
  }

  .screenshot-gallery {
    gap: 40px;
  }

  .screenshot-image {
    min-height: 300px;
  }

  .screenshot-content {
    padding: 25px 20px;
  }

  .screenshot-title {
    font-size: 1.4rem;
  }

  .project-nav-links {
    gap: 20px;
  }

  .project-nav-links a {
    font-size: 0.9rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .project-title {
    font-size: 2rem;
  }

  .project-description {
    font-size: 0.95rem;
    padding: 0 15px;
  }

  .screenshot-gallery {
    gap: 30px;
  }

  .screenshot-image {
    min-height: 250px;
  }

  .screenshot-content {
    padding: 20px 15px;
  }

  .screenshot-title {
    font-size: 1.3rem;
  }

  .tech-stack {
    padding: 15px;
    flex-direction: column;
    align-items: center;
  }

  .tech-tag {
    width: 100%;
    text-align: center;
    max-width: 200px;
  }

  .nav-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .screenshot-image {
    max-height: 400px;
    page-break-inside: avoid;
  }

  header,
  footer,
  .lightbox {
    display: none;
  }
}
/* End of projects-style.css */
