@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: #f6f5f3;
  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; /* Increased size for more coverage */
  height: 750px;
  filter: blur(140px); /* Softened blur */
  opacity: 0.6; /* Made slightly more visible */
  animation: float 16s infinite alternate ease-in-out;
}

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

.blob-right {
  background: radial-gradient(circle, rgba(254, 219, 211, 0.95) 0%, rgba(255, 211, 182, 0.1) 80%);
  right: -250px;
  top: -5%;
  animation-duration: 12s; /* Faster animation for right blob */
  animation-delay: -3s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 50% 50% 50% 50%;
  }
  33% {
    transform: translate(100px, -120px) scale(1.25) rotate(120deg);
    border-radius: 40% 60% 40% 60% / 50% 40% 60% 50%; /* Liquid morph */
  }
  66% {
    transform: translate(-70px, 80px) scale(0.85) rotate(240deg);
    border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%; /* Liquid morph */
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(360deg);
    border-radius: 50% 50% 50% 50%;
  }
}

/* --- 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;
}

/* --- 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: 80px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

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

.hero-title {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.5;
  color: #333333;
}

.hero-title strong {
  font-weight: 600;
  color: #111111;
}

.hero-title a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-image-wrapper {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-image-wrapper {
    width: 220px;
    height: 220px;
  }
}

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

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

.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;
}

/* --- 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(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* --- Mobile Layout Adjustments (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Header adjustment */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(246, 245, 243, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  }
  
  body {
    padding-top: 160px; /* Offset to prevent header from covering hero content */
  }

  .nav-wrapper {
    flex-direction: column;
    height: auto;
    padding: 12px 0; /* Compact padding to save vertical space on mobile */
    gap: 10px;       /* Compact gap */
    text-align: center;
  }

  .brand-name {
    font-size: 18px; /* Slightly smaller name to look neat */
  }

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

  .btn-trans {
    padding: 5px 12px; /* Slightly smaller buttons to fit nicely */
    font-size: 12px;
    border-radius: 14px;
  }

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

  .hero-title {
    font-size: 20px;
    line-height: 1.5;
  }

  .hero-image-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
  }

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

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

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

  .project-img-wrapper {
    border-radius: 14px;
  }

  /* Approach Grid */
  .approach-grid {
    gap: 12px;
  }

  .approach-card {
    padding: 16px;
    font-size: 14px;
    border-radius: 12px;
  }
  
  /* 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;
  }
}
