/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Khula', sans-serif;
  background: linear-gradient(135deg, #0a192f 0%, #112240 50%, #1a365d 100%);
  color: white;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Animated Background Orbs */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(100, 255, 218, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.1) 0%, transparent 60%);
  pointer-events: none;
  animation: moveGradient 15s ease infinite;
  z-index: 0;
}

@keyframes moveGradient {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  margin-bottom: 40px;
}

.back-btn,
.home-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(100, 255, 218, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(100, 255, 218, 0.3);
  border-radius: 50px;
  color: #64ffda;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: 'Space Grotesk', sans-serif;
  position: relative;
  overflow: hidden;
}

.back-btn:hover,
.home-btn:hover {
  background: rgba(100, 255, 218, 0.2);
  border-color: #64ffda;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.back-btn svg {
  transition: transform 0.3s ease;
}

.back-btn:hover svg {
  transform: translateX(-3px);
}

.home-btn svg {
  transition: transform 0.3s ease;
}

.home-btn:hover svg {
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 0;
  margin-bottom: 80px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 50px;
  color: #64ffda;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  background: linear-gradient(120deg, #64ffda, #00d4ff, #a78bfa);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite, fadeInUp 0.8s ease;
  margin-bottom: 15px;
  line-height: 1.2;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #8892b0;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease;
}

.project-meta {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s ease;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meta-label {
  font-size: 0.85rem;
  color: #8892b0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.meta-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #64ffda;
}

/* Section Styling */
section {
  margin-bottom: 100px;
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.title-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #64ffda, #00d4ff);
  border-radius: 2px;
}

/* Overview */
.overview-text {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #8892b0;
  max-width: 900px;
}

/* Gallery */
.gallery {
  margin-bottom: 100px;
}

.image-container {
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.image-container[data-aos="fade-up"]:nth-child(2) {
  animation-delay: 0.2s;
}

.image-container[data-aos="fade-up"]:nth-child(3) {
  animation-delay: 0.4s;
}

.image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  background: rgba(17, 25, 40, 0.6);
  border: 1px solid rgba(100, 255, 218, 0.2);
  max-height: 400px;
}

.image-wrapper:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(100, 255, 218, 0.2);
  border-color: rgba(100, 255, 218, 0.5);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.image-wrapper:hover .project-image {
  transform: scale(1.02);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-overlay {
  opacity: 1;
}

.zoom-btn {
  background: rgba(100, 255, 218, 0.2);
  border: 2px solid #64ffda;
  color: #64ffda;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-btn:hover {
  background: rgba(100, 255, 218, 0.3);
  transform: scale(1.1);
}

.image-caption {
  margin-top: 20px;
}

.image-caption h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 8px;
}

.image-caption p {
  color: #8892b0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: rgba(17, 25, 40, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 15px;
  padding: 30px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(100, 255, 218, 0.5);
  box-shadow: 0 15px 40px rgba(100, 255, 218, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 10px;
}

.feature-card p {
  color: #8892b0;
  line-height: 1.7;
}

/* Process Timeline */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.process-step {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #64ffda, #00d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  min-width: 80px;
}

.step-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.step-content p {
  color: #8892b0;
  line-height: 1.7;
}

/* Next Project */
.next-project {
  text-align: center;
  padding: 80px 0;
}

.next-project h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 30px;
}

.next-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 18px 40px;
  background: rgba(100, 255, 218, 0.1);
  border: 2px solid rgba(100, 255, 218, 0.3);
  border-radius: 50px;
  color: #64ffda;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  font-family: 'Space Grotesk', sans-serif;
  position: relative;
  overflow: hidden;
}

.next-btn:hover {
  background: rgba(100, 255, 218, 0.2);
  border-color: #64ffda;
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#modalImage {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(100, 255, 218, 0.1);
  border: 2px solid rgba(100, 255, 218, 0.3);
  color: #64ffda;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(100, 255, 218, 0.2);
  transform: rotate(90deg);
}

.modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  transform: translateY(-50%);
  pointer-events: none;
}

.modal-prev,
.modal-next {
  background: rgba(100, 255, 218, 0.1);
  border: 2px solid rgba(100, 255, 218, 0.3);
  color: #64ffda;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.modal-prev:hover,
.modal-next:hover {
  background: rgba(100, 255, 218, 0.2);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 15px;
  }

  .back-btn,
  .home-btn {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 40px 0;
    margin-bottom: 60px;
  }

  .project-meta {
    gap: 30px;
  }

  section {
    margin-bottom: 60px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    flex-direction: column;
    gap: 15px;
  }

  .step-number {
    font-size: 2rem;
  }

  .modal-nav {
    padding: 0 15px;
  }

  .modal-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }

  .modal-prev,
  .modal-next {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 16px;
  }

  .project-meta {
    gap: 20px;
  }

  .meta-label {
    font-size: 0.75rem;
  }

  .meta-value {
    font-size: 1rem;
  }

  .overview-text {
    font-size: 1rem;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-icon {
    font-size: 2.5rem;
  }
}