/* ==========================================
   SAAD VISUALS — HERO & PORTRAIT MOTION STYLES
   ========================================== */

.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding-top: calc(var(--header-height) + 30px);
  padding-bottom: 50px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: transparent;
}

/* Subtle Grid Accent Background */
.hero-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 60% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, black 20%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background-color: rgba(162, 237, 162, 0.08);
  border: 1px solid rgba(162, 237, 162, 0.25);
  border-radius: 6px;
  font-size: 0.785rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-mint);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-mint);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(162, 237, 162, 0.6); }
  50% { transform: scale(1.2); opacity: 0.8; box-shadow: 0 0 0 8px rgba(162, 237, 162, 0); }
}

.hero-descriptor {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  line-height: 1.05;
}

.hero-descriptor .highlight {
  background: linear-gradient(135deg, #A2EDA2 0%, #60E6A8 45%, #70F3FF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
}

.hero-copy {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 30px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Portrait Visual Area */
.hero-portrait-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Canvas Animation Overlay Behind Portrait */
.portrait-canvas {
  position: absolute;
  top: -15%;
  left: -15%;
  width: 130%;
  height: 130%;
  pointer-events: none;
  z-index: 1;
}

/* Editorial Frame & Floating Image Animation Container */
.portrait-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid rgba(162, 237, 162, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(162, 237, 162, 0.15);
  animation: float-portrait 6s ease-in-out infinite;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

@keyframes float-portrait {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}

.portrait-container:hover {
  border-color: var(--accent-mint);
  box-shadow: 0 25px 70px rgba(162, 237, 162, 0.3);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.05) brightness(1);
  transition: transform var(--transition-slow);
}

.portrait-container:hover .portrait-img {
  transform: scale(1.03);
}

/* Editorial Overlay Gradient */
.portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.75) 0%, rgba(17, 17, 17, 0.05) 50%, transparent 100%);
  pointer-events: none;
}

/* Floating Motion Tags on Portrait */
.portrait-tag {
  position: absolute;
  z-index: 4;
  padding: 10px 16px;
  background-color: rgba(36, 36, 36, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(162, 237, 162, 0.3);
  border-radius: 6px;
  color: var(--text-white);
  font-size: 0.785rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portrait-tag-1 {
  bottom: 28px;
  left: -16px;
  animation: float-tag-1 5s ease-in-out infinite;
}

.portrait-tag-2 {
  top: 36px;
  right: -16px;
  animation: float-tag-2 5s ease-in-out infinite 2.5s;
}

@keyframes float-tag-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes float-tag-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.tag-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background-color: rgba(162, 237, 162, 0.15);
  color: var(--accent-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-copy {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .portrait-tag-1 {
    left: 10px;
  }
  .portrait-tag-2 {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 36px;
  }
  .hero-eyebrow {
    font-size: 0.72rem;
    padding: 6px 14px;
    letter-spacing: 0.14em;
  }
  .hero-copy {
    font-size: 1rem;
  }
  .hero-portrait-wrapper {
    max-width: 340px;
  }
  .portrait-tag {
    padding: 8px 12px;
    font-size: 0.72rem;
  }
  .tag-icon {
    width: 20px;
    height: 20px;
    font-size: 0.68rem;
  }
}

@media (max-width: 480px) {
  .hero-portrait-wrapper {
    max-width: 290px;
  }
  .hero-descriptor {
    font-size: clamp(1.75rem, 7vw, 2.6rem);
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .portrait-tag-1 {
    left: -6px;
    bottom: 14px;
  }
  .portrait-tag-2 {
    right: -6px;
    top: 20px;
  }
}
