/* ============================================
   CSS Variables - Theme Configuration
   ============================================ */
:root {
  --bg-primary: #FAFAFA;
  --bg-white: #FFFFFF;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --accent-purple: #6366f1;
  --accent-purple-hover: #4f46e5;
  --border-color: #e5e7eb;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ============================================
   Banner Section
   ============================================ */
.banner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.banner-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  width: 100%;
  align-items: center;
}

/* ============================================
   Banner Left Side
   ============================================ */
.banner-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.banner-left h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  animation: fadeInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateX(-30px);
}

/* ============================================
   QR Share Tag
   ============================================ */
.qr-share-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  border: none;
  margin: 0;
  padding: 0.5rem 1rem;
}

.qr-share-tag svg {
  flex-shrink: 0;
}

.banner-left .subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  animation: fadeInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
  transform: translateX(-30px);
}

.banner-left .description {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
  animation: fadeInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  opacity: 0;
  transform: translateX(-30px);
}

/* ============================================
   Personality Tags
   ============================================ */
.personality-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  animation: fadeInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  opacity: 0;
  transform: translateX(-30px);
}

.tag {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.tag:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  background: rgba(99, 102, 241, 0.05);
  transform: translateY(-2px);
}

/* ============================================
   Banner Right Side - Timeline
   ============================================ */
.banner-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  animation: fadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
  transform: translateX(30px);
}

.timeline-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-header a {
  font-size: 0.875rem;
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.timeline-header a:hover {
  color: var(--accent-purple-hover);
}

/* ============================================
   Timeline Items
   ============================================ */

.timeline-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  animation: fadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateX(30px);
}

.timeline-item-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  align-items: stretch;
}

.timeline-item-featured:hover {
  transform: none;
  box-shadow: none;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.3s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.4s;
}

.timeline-item:nth-child(4) {
  animation-delay: 0.5s;
}

.timeline-item:hover {
  border-color: var(--accent-purple);
  transform: translateY(-4px);
}

.timeline-item-featured:hover {
  transform: translateY(-4px);
}

.timeline-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.timeline-item-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.timeline-item-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.timeline-item-org {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.timeline-item-org p {
  margin: 0 0 0.75rem 0;
}

.timeline-item-org p:last-child {
  margin-bottom: 0;
}


.featured-image-container {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-image-container:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.featured-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-image-container:hover img {
  transform: scale(1.03);
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  font-size: 4rem;
  opacity: 0.5;
}

.featured-info-box {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-item-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  align-items: center;
}

.meta-year {
  color: var(--text-secondary);
  font-weight: 500;
}

.meta-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-live {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.status-progress {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-purple);
}

.status-completed {
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-secondary);
}

.status-archived {
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-secondary);
}

.visit-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--accent-purple);
  text-decoration: none;
  border: 1px solid var(--accent-purple);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  width: fit-content;
}

.visit-button:hover {
  background: var(--accent-purple);
  color: white;
  transform: translateX(2px);
}

.visit-button svg {
  transition: transform 0.3s ease;
  width: 14px;
  height: 14px;
}

.visit-button:hover svg {
  transform: translateX(2px);
}


/* ============================================
   Animations
   ============================================ */
@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   Past Projects Section
   ============================================ */
.past-projects {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 2rem 8rem;
  background: var(--bg-primary);
}

.past-projects-container {
  width: 100%;
}

.past-projects-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.past-projects-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 4rem;
}

.past-projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .past-projects {
    padding: 4rem 2rem;
  }

  .past-projects-grid {
    gap: 1.5rem;
  }
}

/* ============================================
   Videos Section
   ============================================ */
.videos-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 2rem;
  background: var(--bg-primary);
  text-align: center;
}

.videos-container {
  max-width: 800px;
  margin: 0 auto;
}

.videos-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.videos-coming-soon {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
}

/* ============================================
   QR Code Modal
   ============================================ */
.qr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.qr-modal.active {
  display: flex;
}

.qr-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.qr-modal-content {
  position: relative;
  background: var(--bg-white);
  border-radius: 20px;
  padding: 3rem;
  max-width: 90vw;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.qr-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.qr-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-top: 3rem;
}

.qr-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  text-align: center;
}

.qr-code-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.qr-code-container canvas,
.qr-code-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.qr-modal-url {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .qr-modal-content {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .qr-modal-close {
    top: 1rem;
    right: 1rem;
  }

  .qr-modal-title {
    font-size: 1.25rem;
  }

  .qr-code-container {
    padding: 1.5rem;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 2rem 2rem;
  margin-top: 0;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  position: relative;
}

.footer-email {
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.01em;
  position: relative;
  padding: 0.5rem 0;
}

.footer-email::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-purple);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-email:hover {
  color: var(--accent-purple);
}

.footer-email:hover::after {
  width: 100%;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.8;
}

@media (max-width: 1200px) {
  .past-projects {
    padding: 6rem 2rem 6rem;
  }

  .footer {
    padding: 2rem 2rem 1.5rem;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-email {
    font-size: 1.1rem;
  }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
  .banner-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .banner {
    padding: 4rem 2rem;
  }

  .featured-image-container {
    min-height: 180px;
  }
}

@media (max-width: 700px) {
  .timeline-item-featured {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .featured-image-container {
    order: -1; /* Image appears first on mobile */
  }
}

