/* WEAVER STUDIO - Component System */

/* Project Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-12);
  margin-top: var(--space-16);
}

/* Project Card with Image Slideshow */
.project-card {
  position: relative;
  overflow: hidden;
  background-color: var(--color-surface);
  border-radius: 4px;
  cursor: pointer;
  transition: transform var(--transition-base);
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card__image-container {
  position: relative;
  width: 100%;
  padding-bottom: 66.67%; /* 3:2 aspect ratio */
  overflow: hidden;
  background-color: #e8e6e1;
  /* placeholder gradient shown while image loads */
  background-image: linear-gradient(135deg, #ece9e3 0%, #dedad3 100%);
}

.project-card__image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  color: transparent;
  font-size: 0;
  /* all images start invisible and scaled up — JS controls everything */
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease,
              transform 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

/* active = fully in, natural scale */
.project-card__image.active {
  opacity: 1;
  transform: scale(1);
}

/* leaving = fade out, drift slightly */
.project-card__image.leaving {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease,
              transform 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__content {
  padding: var(--space-6);
}

.project-card__title {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.project-card__description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.project-card__meta {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.project-card__tag {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-bg);
  border-radius: 2px;
  letter-spacing: 0.02em;
}

/* Featured Projects Grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.featured-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  height: 450px;
  cursor: pointer;
  background: linear-gradient(135deg, #ece9e3 0%, #dedad3 100%);
}

.featured-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
  font-size: 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s ease;
  will-change: transform;
}

.featured-card:hover .featured-card__image {
  transform: scale(1.04);
  filter: brightness(0.88);
}

.featured-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8);
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.8) 0%,
    rgba(26, 26, 26, 0) 100%
  );
  color: white;
}

.featured-card__title {
  font-family: var(--font-primary);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: white;
}

.featured-card__subtitle {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.06em;
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

/* liquid glass shine layer */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.08) 40%,
    rgba(255,255,255,0.0) 60%,
    rgba(255,255,255,0.12) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* specular edge highlight */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.55);
  background: transparent;
  pointer-events: none;
  z-index: 2;
}

.btn span, .btn a {
  position: relative;
  z-index: 3;
}

.btn--primary {
  background: rgba(15, 15, 15, 0.72);
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.18),
    0 2px 8px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}

.btn--primary::before {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.22) 0%,
    rgba(255,255,255,0.04) 45%,
    rgba(255,255,255,0.0) 55%,
    rgba(255,255,255,0.08) 100%
  );
}

.btn--primary:hover {
  background: rgba(15, 15, 15, 0.88);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.22),
    0 4px 12px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.25);
  transform: translateY(-2px) scale(1.01);
  opacity: 1;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.38);
  color: var(--color-text-primary);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.08),
    0 2px 8px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.06);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.10),
    0 4px 12px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,0.08);
  transform: translateY(-2px) scale(1.01);
  opacity: 1;
}

/* Philosophy Section */
.philosophy {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.philosophy__text {
  font-family: var(--font-primary);
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

/* CTA Section */
.cta {
  text-align: center;
  padding: var(--space-24) var(--space-6);
  background-color: var(--color-surface);
}

.cta__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-6);
}

.cta__description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.cta__buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-10);
  margin-top: var(--space-16);
}

.service-card {
  padding: var(--space-8);
  background-color: var(--color-surface);
  border-radius: 4px;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.service-card:hover {
  border-color: var(--color-text-primary);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  opacity: 0.8;
}

.service-card__title {
  font-family: var(--font-secondary);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.service-card__description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* About Content */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  margin-top: var(--space-16);
}

.about-content__image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 4px;
}

.about-content__text h3 {
  margin-bottom: var(--space-4);
}

.about-content__text p {
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
  line-height: 1.8;
}

/* Contact Form */
.contact-form {
  max-width: 700px;
  margin: var(--space-16) auto 0;
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.01em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.06),
    0 1px 4px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(0,0,0,0.04);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(0,0,0,0.28);
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.09),
    0 2px 8px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,0.03);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  border-radius: 100px;
  background: rgba(15, 15, 15, 0.72);
  color: #ffffff;
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.18),
    0 2px 8px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.22) 0%,
    rgba(255,255,255,0.04) 45%,
    rgba(255,255,255,0.0) 55%,
    rgba(255,255,255,0.08) 100%
  );
  pointer-events: none;
}

.form-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.55);
  pointer-events: none;
}

.form-submit:hover {
  background: rgba(15, 15, 15, 0.88);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.22),
    0 4px 12px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.25);
  transform: translateY(-2px);
}

/* Stats Section */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-10);
  margin-top: var(--space-16);
  text-align: center;
}

.stat {
  padding: var(--space-6);
}

.stat__number {
  font-family: var(--font-primary);
  font-size: var(--text-5xl);
  font-weight: 300;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Responsive Components */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .about-content__image {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .featured-card {
    height: 350px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  
  .cta__buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .project-card__content {
    padding: var(--space-4);
  }
  
  .featured-card {
    height: 300px;
  }
  
  .featured-card__overlay {
    padding: var(--space-6);
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════
   PREMIUM POLISH ADDITIONS
═══════════════════════════════════════════════ */

/* Hero parallax image */
.hero__image {
  will-change: transform;
  transition: transform 0.1s linear;
}



/* Project card — cursor added to base rule above */

/* Header liquid glass on scroll (set via JS, base state) */
.header {
  transition: background-color 0.4s ease,
              box-shadow 0.4s ease,
              backdrop-filter 0.4s ease;
}



/* Section titles — tighter tracking */
.section__title {
  letter-spacing: -0.03em;
}

/* Nav link active underline animation */
.header__nav-link {
  position: relative;
}
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.35s cubic-bezier(0.16,1,0.3,1);
}
.header__nav-link:hover::after,
.header__nav-link.active::after {
  width: 100%;
}



/* Scrollbar — minimal */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }

