/* ============================================
   Orbis Tours — Travel Booking Platform
   Portfolio Project Stylesheet
   ============================================ */

/* ============================================
   CSS Variables & Theme
   ============================================ */
:root {
  --project-accent: #00A85A;
  --project-accent-light: #36C77B;
  --project-accent-dark: #0a3d2a;
  --color-text-primary: #e5f4f0;
  --color-text-muted: rgba(229, 244, 240, 0.75);
  --color-text-light: rgba(229, 244, 240, 0.92);
  --color-bg-dark: #0a1a14;
  --color-bg-dark-alt: #163830;
  --color-border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 12px 26px -18px rgba(0, 168, 90, 0.5);
  --shadow-md: 0 18px 36px -24px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 20px 40px -28px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 30px 60px rgba(10, 26, 20, 0.35);
  --transition-base: 250ms ease;
  --border-radius-sm: 0.75rem;
  --border-radius-md: 1rem;
  --border-radius-lg: 1.25rem;
  --border-radius-full: 999px;
}

/* ============================================
   Base Styles
   ============================================ */
#main {
  color: var(--color-text-primary);
}

#main h1, #main h2, #main h3, #main h4, #main h5, #main h6 {
  color: var(--color-text-primary);
}

#main p {
  color: var(--color-text-muted);
}

/* ============================================
   Project Hero Section
   ============================================ */
.project-hero {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(0, 168, 90, 0.1), rgba(0, 0, 0, 0));
}

.project-hero .hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .project-hero .hero-inner {
    grid-template-columns: 1fr auto;
  }
}

.project-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  line-height: 1.2;
}

.project-hero .hero-subtitle {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);
  line-height: 1.6;
  max-width: 720px;
}

.project-hero .badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 168, 90, 0.12);
  color: var(--project-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--border-radius-full);
  margin-bottom: 1rem;
}

.hero-logo-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-side img {
  width: min(180px, 30vw);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0, 168, 90, 0.3));
  transition: transform var(--transition-base);
}

.hero-logo-side img:hover {
  transform: scale(1.05);
}

/* ============================================
   Project Details
   ============================================ */
.project-details .card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.meta-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem 2rem;
  margin: 0;
}

.meta-grid dt {
  font-weight: 600;
  color: var(--project-accent);
  margin: 0;
}

.meta-grid dd {
  margin: 0;
  color: var(--color-text-muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--project-accent-dark);
  border-radius: var(--border-radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--project-accent);
  background: rgba(0, 168, 90, 0.05);
  transition: all var(--transition-base);
}

.pill:hover {
  background: rgba(0, 168, 90, 0.15);
  transform: translateY(-2px);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--project-accent-dark);
  border-radius: var(--border-radius-full);
  color: var(--project-accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-base);
}

.link-row a:hover {
  background: var(--project-accent);
  color: var(--color-bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 168, 90, 0.25);
}

/* ============================================
   Project Overview
   ============================================ */
.project-overview .project-story {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .project-overview .project-story {
    grid-template-columns: 1.25fr 1fr;
  }
}

.story-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  line-height: 1.3;
}

.story-copy p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.story-image {
  margin: 0;
  position: relative;
}

.story-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.story-image:hover img {
  transform: scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.project-features {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  display: grid;
  gap: 0.875rem;
  list-style: none;
  position: relative;
}

.project-features li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.project-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--project-accent);
  border-radius: 50%;
}

/* ============================================
   Section Intro
   ============================================ */
.section-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-intro h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  line-height: 1.3;
}

.section-intro p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ============================================
   Platform Showcase
   ============================================ */
.platform-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}

.platform-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.platform-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--project-accent), var(--project-accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 168, 90, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.platform-card:hover::before {
  transform: scaleX(1);
}

/* Platform Icon */
.platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 168, 90, 0.1);
  border: 1px solid rgba(0, 168, 90, 0.2);
  margin-bottom: 1.25rem;
  transition: all 0.4s ease;
  animation: iconFloat 4s ease-in-out infinite;
  flex-shrink: 0;
}

.platform-card:nth-child(2) .platform-icon { animation-delay: -0.7s; }
.platform-card:nth-child(3) .platform-icon { animation-delay: -1.4s; }
.platform-card:nth-child(4) .platform-icon { animation-delay: -2.1s; }
.platform-card:nth-child(5) .platform-icon { animation-delay: -2.8s; }
.platform-card:nth-child(6) .platform-icon { animation-delay: -3.5s; }

.platform-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--project-accent);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.4s ease;
}

.platform-card:hover .platform-icon {
  background: rgba(0, 168, 90, 0.18);
  border-color: rgba(0, 168, 90, 0.4);
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 8px 24px rgba(0, 168, 90, 0.2);
  animation-play-state: paused;
}

.platform-card:hover .platform-icon svg {
  stroke: var(--project-accent-light);
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .platform-icon { animation: none; }
}

.platform-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--project-accent);
}

.platform-card p {
  color: var(--color-text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

/* ============================================
   Tours Mosaic
   ============================================ */
.tours-mosaic {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.mosaic-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  aspect-ratio: 3 / 2;
}

.mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.mosaic-card:hover img {
  transform: scale(1.08);
}

.mosaic-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(10, 26, 20, 0.92), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
}

/* ============================================
   Tech Stack
   ============================================ */
.tech-stack {
  margin-top: 2.5rem;
  text-align: center;
  background: linear-gradient(120deg, rgba(10, 26, 20, 0.95), rgba(22, 56, 48, 0.85));
  color: #f5f7f7;
  padding: 2rem;
  border: 1px solid rgba(0, 168, 90, 0.2);
}

.tech-stack h3 {
  margin: 0 0 0.75rem;
  color: var(--project-accent);
}

.tech-stack p {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================================
   Architecture / Module Cards
   ============================================ */
.architecture-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.module-card {
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.module-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 168, 90, 0.08), rgba(22, 56, 48, 0.12));
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(0, 168, 90, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.module-card:hover::after {
  opacity: 1;
}

.module-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--project-accent);
}

.module-card p {
  position: relative;
  z-index: 1;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   Stats Bar
   ============================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 168, 90, 0.3);
}

.stat-value {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--project-accent);
  line-height: 1.2;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Iconography Pills
   ============================================ */
.iconography {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-full);
  background: rgba(0, 168, 90, 0.1);
  border: 1px solid rgba(0, 168, 90, 0.3);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
  transition: all var(--transition-base);
}

.icon-pill:hover {
  background: rgba(0, 168, 90, 0.2);
  transform: translateY(-2px);
}

/* ============================================
   Project Highlights
   ============================================ */
.project-highlights {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .project-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.highlight {
  height: 100%;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.highlight:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 168, 90, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.highlight h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--project-accent);
}

.highlight p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   Closing Quote
   ============================================ */
.closing-quote .card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.closing-quote blockquote {
  font-size: clamp(1.15rem, 2vw + 0.5rem, 1.5rem);
  line-height: 1.6;
  font-style: italic;
  color: var(--color-text-primary);
  margin: 0;
}

.closing-quote .attribution {
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--project-accent);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-travel {
  background: linear-gradient(120deg, var(--color-bg-dark) 0%, var(--color-bg-dark-alt) 100%);
  color: #f5f7f7;
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0, 168, 90, 0.2);
}

.cta-travel h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  line-height: 1.3;
  color: #f5f7f7;
}

.cta-travel p {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.6;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: var(--border-radius-full);
  background: var(--project-accent);
  color: var(--color-bg-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 200ms ease;
  box-shadow: 0 4px 12px rgba(0, 168, 90, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--project-accent-light);
  box-shadow: 0 18px 30px rgba(0, 168, 90, 0.35);
}

/* ============================================
   Utility
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

/* ============================================
   Animation
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-parallax] {
  transition: transform 0.3s ease-out;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .card {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .meta-grid {
    display: block;
  }

  .meta-grid dt {
    display: block;
    margin-top: 1.25rem;
    font-weight: 600;
  }

  .meta-grid dt:first-of-type {
    margin-top: 0;
  }

  .meta-grid dd {
    display: block;
    margin: 0.5rem 0 0.75rem;
  }

  .project-hero {
    padding: 2.5rem 1.25rem;
  }

  .project-hero h1 {
    font-size: 2rem;
  }

  .platform-grid,
  .architecture-grid,
  .tours-mosaic,
  .stats-bar,
  .project-highlights {
    grid-template-columns: 1fr;
  }

  .cta-travel {
    padding: 2.5rem 1.25rem;
  }

  .container {
    padding: 0 1rem;
  }
}

/* ============================================
   Print
   ============================================ */
@media print {
  .project-hero {
    background: none;
    border-bottom: 2px solid #000;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
