/* ============================================================
   HOME PAGE CSS
   ============================================================ */

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

.hero__bg-text {
  position: absolute;
  bottom: -0.15em;
  left: -0.05em;
  font-family: var(--font-heading);
  font-size: clamp(8rem, 20vw, 26rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,0,0,0.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: 80px;
  width: 100%;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  opacity: 0;
}

.hero__label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-primary);
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(3rem, 7.5vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 48px;
  overflow: hidden;
}

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__title .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-primary);
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.hero__desc {
  max-width: 460px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0;
  text-align: justify;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
}

@media (max-width: 900px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@media (max-width: 768px) {
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .hero__scroll-hint { display: none; }
  .hero__title { font-size: clamp(3rem, 14vw, 6rem); }
}

/* ---- Services Grid (Home) ---- */
.services-grid-section {
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 80px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-fast) ease, box-shadow var(--dur-med) ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--text-primary);
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.service-card__num {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-primary);
  letter-spacing: 0.1em;
}

.service-card__title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.service-card__desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 90%;
}

@media (max-width: 991px) {
  .services-grid { gap: 24px; }
  .service-card { padding: 32px; }
  .service-card__title { font-size: 1.75rem; }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---- Why Choose Us ---- */
.why-us__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.why-us__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why-us__item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--dur-med) ease;
}

.why-us__item:first-child { border-top: 1px solid var(--border); }

.why-us__item:hover { padding-left: 8px; }

.why-us__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-primary);
}

.why-us__item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.why-us__item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.why-us__visual {
  position: relative;
  height: 600px;
}

.why-us__big-num {
  font-family: var(--font-heading);
  font-size: clamp(8rem, 18vw, 20rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-light);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.why-us__card-float {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  min-width: 180px;
}

.why-us__card-float--tl { top: 8%; left: 0; }
.why-us__card-float--br { bottom: 8%; right: 0; }

.why-us__card-float .stat-item__number { font-size: 2.5rem; margin-bottom: 4px; }
.why-us__card-float .stat-item__label { font-size: 0.8rem; }

@media (max-width: 900px) {
  .why-us__split { grid-template-columns: 1fr; gap: 60px; }
  .why-us__visual { height: 300px; }
}

/* ---- Portfolio Preview ---- */
.portfolio-preview__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.portfolio-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  cursor: none;
}

.portfolio-card:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

.portfolio-card__bg {
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  /* transition: transform var(--dur-slow) var(--ease-out); */
}

/* Hover effect removed 
.portfolio-card:hover .portfolio-card__bg { transform: scale(1.06); }
*/

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
  opacity: 1;
}

/* Hover effect removed 
.portfolio-card:hover .portfolio-card__overlay { opacity: 1; }
*/

.portfolio-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  transform: translateY(0);
}

/* Hover effect removed 
.portfolio-card:hover .portfolio-card__info { transform: translateY(0); }
*/

.portfolio-card__cat {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.portfolio-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

/* Portfolio card color accents */
.portfolio-card--1 .portfolio-card__bg { background: linear-gradient(135deg, #111 0%, #1a1a1a 100%); }
.portfolio-card--2 .portfolio-card__bg { background: linear-gradient(135deg, #0d0d0d 0%, #141414 100%); }
.portfolio-card--3 .portfolio-card__bg { background: linear-gradient(135deg, #121212 0%, #181818 100%); }

@media (max-width: 768px) {
  .portfolio-preview__grid { grid-template-columns: 1fr; }
  .portfolio-card:first-child { grid-row: auto; aspect-ratio: 4/3; }
}

/* ---- Clients Grid ---- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 60px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.client-item {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  overflow: hidden;
  text-decoration: none;
  padding: 32px;
}

.client-item__logo {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 1.0;
  transition: all var(--dur-med) var(--ease-out);
}

.client-item__name {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--dur-med) var(--ease-out);
  pointer-events: none;
  text-align: center;
  width: 90%;
}

/* Hover effects for desktop */
@media (hover: hover) {
  .client-item:hover .client-item__logo {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(0.8) translateY(-12px);
  }
  
  .client-item:hover .client-item__name {
    opacity: 1;
    transform: translateY(24px);
  }
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .client-item { height: 120px; padding: 24px; }
  .client-item__logo { max-height: 80px; }
}

@media (max-width: 480px) {
  .client-item { height: 100px; padding: 20px; }
  .client-item__logo { max-height: 50px; }
}
