@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

/* --- Reset & Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #111111;
  background-color: #f6f5f3;
  background-image: radial-gradient(rgba(17, 17, 17, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 80px; /* Offset for fixed header */
  position: relative;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

h1, h2, h3, h4, .brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: #111111;
  letter-spacing: -0.02em;
}

/* --- Animated Background Blobs (Liquid Gradient Glow) --- */
.blob-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 750px;
  height: 750px;
  filter: blur(140px);
  opacity: 0.55;
}

.blob-left {
  background: radial-gradient(circle, rgba(168, 230, 207, 0.95) 0%, rgba(220, 237, 226, 0.1) 80%);
  left: -250px;
  top: 25%;
}

.blob-right {
  background: radial-gradient(circle, rgba(254, 219, 211, 0.95) 0%, rgba(255, 211, 182, 0.1) 80%);
  right: -250px;
  top: -5%;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

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

/* --- Header & Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(246, 245, 243, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.04);
  transition: background 0.3s ease, padding 0.3s ease;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 12px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(17, 17, 17, 0.04);
  border: 1px solid rgba(17, 17, 17, 0.09);
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.lang-option {
  color: #777777;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0 2px;
}

.lang-option:hover {
  color: #111111;
}

.lang-option.active {
  color: #2563EB;
  font-weight: 700;
}

.lang-divider {
  color: rgba(17, 17, 17, 0.25);
  font-size: 12px;
  user-select: none;
}

/* --- Buttons --- */
/* Transparent (Pill) Buttons: Header links, Back buttons */
.btn-trans {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid #111111;
  background: transparent;
  color: #111111;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-trans:hover {
  background: #111111;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Black (Solid) Buttons: "See more" */
.btn-black {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 24px;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-black:hover {
  background: transparent;
  color: #111111;
  transform: translateY(-1px);
}

/* --- Homepage Hero --- */
.hero {
  padding-top: 60px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-content {
  flex: 1;
  max-width: 680px;
}

/* Status Badge with Pulsing Dot */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(17, 17, 17, 0.04);
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #444444;
  margin-bottom: 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.status-dot-wrapper {
  position: relative;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.status-dot-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #10B981;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

.hero-main-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  color: #111111;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  font-family: 'Outfit', system-ui, sans-serif;
}

.accent-text {
  color: #2563EB;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: #555555;
  font-weight: 400;
  max-width: 620px;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-cta-group .btn-black {
  background: #2563EB;
  border-color: #2563EB;
  color: #ffffff;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
}

.hero-cta-group .btn-black:hover {
  background: #1D4ED8;
  border-color: #1D4ED8;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 100px;
  border: 1px solid rgba(17, 17, 17, 0.15);
  background: transparent;
  color: #111111;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline:hover {
  background: rgba(17, 17, 17, 0.05);
  border-color: #111111;
  transform: translateY(-1px);
}

.hero-image-wrapper {
  flex-shrink: 0;
  width: 400px;
  height: 400px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.09);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: left;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-main-title {
    font-size: 32px;
  }
  .hero-image-wrapper {
    width: 240px;
    height: 240px;
  }
}

/* --- Design Principles Section (5 Columns) --- */
.section-title {
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666666;
  margin-bottom: 24px;
  font-weight: 600;
}

.principles-grid,
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.principle-card.card-full {
  grid-column: span 2;
}

.principle-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 20px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  will-change: transform, box-shadow;
  cursor: pointer;
}

.principle-card.reveal.active {
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease !important;
}

.principle-card:hover,
.principle-card.reveal.active:hover {
  transform: perspective(1200px) translateY(-6px) rotateX(0deg) scale(1) !important;
  background: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.07) !important;
}

.principle-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.principle-card:hover .principle-icon-wrapper {
  background: rgba(37, 99, 235, 0.12);
  transform: scale(1.05);
}

.principle-title {
  font-size: 17px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 8px;
  line-height: 1.3;
}

.principle-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

@media (max-width: 1024px) {
  .principles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .principles-grid {
    grid-template-columns: 1fr;
  }
}

.approach-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(17, 17, 17, 0.04);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.approach-card:last-child {
  grid-column: span 2;
}

.approach-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #333333;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .approach-grid {
    grid-template-columns: 1fr;
  }
  .approach-card:last-child {
    grid-column: span 1;
  }
}

/* --- Project Cards Section --- */
.works-section {
  padding-bottom: 80px;
}

.project-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 28px;
  padding: 48px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.project-info {
  flex: 1;
  max-width: 480px;
}

.project-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
}

.project-desc-item {
  margin-bottom: 20px;
}

.project-desc-label {
  font-weight: 600;
  font-size: 14px;
  color: #111111;
  margin-bottom: 4px;
}

.project-desc-text {
  font-size: 14px;
  color: #555555;
  line-height: 1.5;
}

.project-img-wrapper {
  flex: 1;
  max-width: 520px;
  border-radius: 20px;
  overflow: hidden;
}

.project-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.03);
}

/* Specific Card Color Overrides (Matching Figma) */
.card-vdoma {
  background: #ffffff;
}
.card-citrus {
  background: #fdf5ea;
}
.card-claudify {
  background: #f0f0f0;
}
.card-control-car {
  background: #eef2fa;
}
.card-parkly {
  background: #eef2fa;
}

@media (max-width: 900px) {
  .project-card {
    flex-direction: column;
    padding: 32px;
    gap: 32px;
  }
  .project-info {
    max-width: 100%;
  }
  .project-img-wrapper {
    max-width: 100%;
  }
}

/* --- Case Study Details Layout --- */
.case-header-section {
  padding: 60px 0 40px;
  position: relative;
}

.case-header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.case-title {
  font-size: 38px;
  font-weight: 600;
}

.case-intro-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .case-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.case-overview-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  margin-bottom: 48px;
}

.meta-item-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #666666;
  margin-bottom: 8px;
}

.meta-item-value {
  font-size: 14px;
  font-weight: 500;
  color: #111111;
}

.meta-item-value ul {
  list-style: none;
}

.meta-item-value li {
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .case-overview-meta {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --- Banner Block Styles --- */
.case-banner {
  width: 100%;
  margin: 48px 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.case-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Case Sections text layout --- */
.case-content-section {
  max-width: 800px;
  margin: 48px auto;
}

.case-section-tag {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #777777;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.case-section-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.35;
}

.case-section-body {
  font-size: 15px;
  color: #444444;
  line-height: 1.65;
}

.case-section-body p {
  margin-bottom: 16px;
}

.case-section-body ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.case-section-body li {
  margin-bottom: 8px;
}

/* Feature grid for Claudify */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 48px 0;
}

/* --- Contact / Get in Touch Section --- */
.contact-section {
  padding-bottom: 80px;
}

.contact-card {
  background: #222222;
  color: #ffffff;
  border-radius: 32px;
  padding: 64px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.contact-title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  max-width: 640px;
  font-family: 'Outfit', system-ui, sans-serif;
  line-height: 1.15;
}

.contact-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 540px;
  line-height: 1.5;
  margin-bottom: 32px;
  font-weight: 400;
}

.contact-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-contact-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  background: #2563EB;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #2563EB;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-contact-primary:hover {
  background: #1D4ED8;
  border-color: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-contact-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  background: #ffffff;
  color: #111111;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #ffffff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-contact-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.btn-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-contact-icon:hover {
  background: #2563EB;
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Footer --- */
footer {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid rgba(17, 17, 17, 0.04);
  font-size: 14px;
  color: #777777;
  position: relative;
  z-index: 1;
}


/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.98);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- Mobile Layout Adjustments (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Turn off expensive animated background blobs on mobile to prevent CPU/GPU load and battery drain */
  .blob-container {
    display: none !important;
  }
  
  .reveal {
    will-change: auto !important;
  }
  
  .principle-card {
    will-change: auto !important;
  }
  /* Completely disable scroll-reveal hiding on mobile to guarantee 100% instant visibility */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    visibility: visible !important;
  }
  
  .reveal.active {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Header adjustment - Relative on mobile to prevent overlapping content */
  header {
    position: relative !important;
    top: auto;
    left: auto;
    width: 100%;
    z-index: 1000;
    background: #f6f5f3;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
    padding: 16px 0;
  }
  
  body {
    padding-top: 0 !important;
  }

  .nav-wrapper {
    flex-direction: column;
    height: auto;
    padding: 0 16px;
    gap: 8px;
    text-align: center;
  }

  .brand-name {
    font-size: 17px;
  }

  .nav-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .btn-trans {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 14px;
  }

  /* Hero Section adjustments */
  .hero {
    flex-direction: column-reverse;
    text-align: left;
    padding-top: 20px;
    padding-bottom: 40px;
    gap: 28px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-main-title {
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group a {
    width: 100%;
    text-align: center;
  }

  .hero-image-wrapper {
    width: 220px;
    height: 220px;
    border-radius: 24px;
  }

  /* Principles Grid adjustments */
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 48px;
  }

  .principle-card {
    padding: 20px 18px;
    border-radius: 16px;
  }

  /* Project Cards adjustments */
  .project-card {
    flex-direction: column-reverse;
    padding: 24px 20px;
    gap: 24px;
    border-radius: 20px;
    margin-bottom: 24px;
  }

  .project-info {
    max-width: 100%;
    width: 100%;
  }

  .project-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .btn-black {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    border-radius: 20px;
  }

  .project-img-wrapper {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
  }
  
  /* Case studies details adjustment */
  .case-title {
    font-size: 28px;
  }
  
  .case-banner {
    border-radius: 16px;
    margin: 24px 0;
  }
  
  .case-content-section {
    margin: 32px 0;
  }
  
  .case-section-title {
    font-size: 22px;
  }

  /* Contact section mobile adjustments */
  .contact-section {
    padding-bottom: 40px;
    width: 100%;
    overflow: hidden;
  }

  .contact-card {
    padding: 36px 20px;
    border-radius: 24px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .contact-title {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .contact-subtitle {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .contact-actions-row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-contact-primary, 
  .btn-contact-secondary {
    width: 100%;
    justify-content: center;
  }
}
