/* ========================================
   HOME PAGE STYLES
   ======================================== */

/* High Impact Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image,
.hero-video {
  width: 100%;
  height: 120%;
  top: -10%;
  position: absolute;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0) contrast(1.2);
  transition: opacity 1s ease;
}

.hero-video.fade-out {
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(4, 4, 5, 1) 0%,
    rgba(4, 4, 5, 0.8) 50%,
    rgba(4, 4, 5, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-text-wrapper {
  max-width: 700px;
  position: relative;
  z-index: 3;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: #d1d5db;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-actions .btn {
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 2rem 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.h-stat h3 {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 0.2rem;
}

.h-stat p {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

/* About Section */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
}

.about-list {
  list-style: none;
  margin-top: 2rem;
}

.about-list li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  font-size: 1.1rem;
  font-weight: 600;
}

.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.about-images {
  position: relative;
  height: 500px;
}

.img-box {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.4s ease;
}

.img-box:hover img {
  filter: grayscale(0);
}

.img-1 {
  width: 70%;
  height: 80%;
  top: 0;
  right: 0;
  border: 1px solid var(--glass-border);
}

.img-2 {
  width: 60%;
  height: 60%;
  bottom: 0;
  left: 0;
  border: 4px solid var(--bg-main);
}

/* Services Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 1.5rem;
}

.bento-item {
  background-color: var(--bg-surface);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
}

.bento-item:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  background-color: var(--bg-surface-solid);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
  padding: 3rem;
}

.bento-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bento-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: grayscale(1);
  transition:
    opacity var(--transition-smooth),
    filter 0.4s ease;
}

.bento-large:hover .bento-bg img {
  opacity: 0.6;
  filter: grayscale(0);
}

.bento-large::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(4, 4, 5, 1) 0%,
    rgba(4, 4, 5, 0.2) 100%
  );
  z-index: 1;
}

.bento-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bento-icon {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.bento-large .bento-icon {
  margin-bottom: auto;
}

.bento-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.bento-large h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  margin-top: auto;
}

.bento-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.bento-large p {
  font-size: 1.1rem;
  max-width: 400px;
  margin-bottom: 2rem;
}

.bento-gradient {
  background: var(--accent-gradient);
  border: none;
}

.bento-gradient h3,
.bento-gradient p,
.bento-gradient .bento-icon {
  color: var(--bg-main);
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.2);
}

.bento-gradient .bento-link {
  color: var(--bg-main);
}

.bento-link {
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: auto;
}

.bento-large .bento-link {
  background: var(--bg-main);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  align-self: flex-start;
}

/* Instagram Feed */
.ig-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ig-item {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  flex: 1 1 200px;
  max-width: 300px;
}

.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition:
    transform var(--transition-smooth),
    filter 0.4s ease;
}

.ig-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 248, 207, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--bg-main);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.ig-item:hover img {
  transform: scale(1.1);
  filter: grayscale(0);
}

.ig-item:hover .ig-overlay {
  opacity: 1;
}

/* Dynamic Marquee */
.marquee-section {
  padding: 4rem 0;
  background-color: var(--accent-color);
  transform: rotate(-2deg) scale(1.05);
  margin: 4rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: marquee 20s linear infinite;
  will-change: transform;
}

.marquee-content span {
  font-size: 3rem;
  font-weight: 900;
  color: var(--bg-main);
  -webkit-text-fill-color: var(--bg-main);
  text-transform: uppercase;
}

.marquee-content .dot {
  width: 15px;
  height: 15px;
  background-color: var(--bg-main);
  border-radius: 50%;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-content {
    animation: none;
    transform: translateX(0);
  }
}

/* Masonry Gallery Grid */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
}

/* Testimonials */
.testimonial-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-surface);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  display: flex;
  flex-direction: column;
}

.quote-icon {
  font-family: serif;
  font-size: 6rem;
  color: var(--accent-color);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.quote {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
  flex-grow: 1;
}

.author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color);
}

/* ---- Homepage Responsive ---- */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.wide {
    grid-column: span 1;
  }
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-images {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100svh;
    padding-top: 120px;
    padding-bottom: 2.5rem;
    overflow: visible;
  }
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
  }
  .hero-text-wrapper {
    width: 100%;
  }
  .hero-title {
    font-size: clamp(2.8rem, 10vw, 4rem);
  }
  .hero-stats {
    width: 100%;
    justify-content: space-between;
    padding: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .h-stat {
    flex: 1;
    min-width: 30%;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 4;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 360px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-large {
    grid-column: span 1;
    grid-row: span 1;
    padding: 2.5rem;
  }
  .testimonial-slider {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item.tall {
    grid-row: span 1;
    height: 250px;
  }
  .marquee-content span {
    font-size: 2rem;
  }
}
