/* =========================================================
   IRIS BUILDS — HOMEPAGE
   Loaded after global.css
========================================================= */


/* =========================================================
   HERO SECTION
========================================================= */

.hero-section {
  padding-top: 86px;
  padding-bottom: 96px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 72px;
}

.hero-content {
  max-width: 760px;
}

.hero-content h1 {
  max-width: 760px;
}

.hero-tagline {
  max-width: 700px;
  margin-bottom: 20px;

  color: var(--color-accent-light);

  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.5;
}

.hero-description {
  max-width: 720px;
  margin-bottom: 30px;

  color: var(--color-text-soft);

  font-size: 1.02rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  margin-bottom: 28px;
}

.hero-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--color-muted);

  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;

  transition:
    transform var(--transition-fast),
    color var(--transition-fast);
}

.hero-social-links a:hover {
  transform: translateY(-2px);
  color: var(--color-accent-light);
}


/* =========================================================
   HERO PROFILE CARD
========================================================= */

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.profile-frame {
  position: relative;

  width: min(100%, 390px);
  padding: 18px;

  overflow: hidden;
}

.profile-frame::before {
  content: "";
  position: absolute;
  inset: -35% auto auto -25%;

  width: 230px;
  height: 230px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(169, 213, 239, 0.22),
      transparent 70%
    );

  pointer-events: none;
}

.profile-image-wrapper {
  position: relative;
  z-index: 1;

  overflow: hidden;

  border: 1px solid rgba(210, 232, 245, 0.2);
  border-radius: 21px;

  background: rgba(255, 255, 255, 0.03);

  aspect-ratio: 4 / 5;
}

.hero-profile-image {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center top;

  transition:
    transform var(--transition-slow),
    filter var(--transition-slow);
}

.profile-frame:hover .hero-profile-image {
  transform: scale(1.035);
  filter: brightness(1.04);
}

.profile-status {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 16px;
  padding: 12px 14px;

  border: 1px solid rgba(190, 219, 239, 0.16);
  border-radius: 16px;

  background: rgba(6, 13, 24, 0.4);

  color: var(--color-text-soft);

  font-size: 0.84rem;
  font-weight: 700;
}

.status-indicator {
  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: var(--color-pastel-green);

  box-shadow:
    0 0 0 5px rgba(185, 232, 210, 0.09),
    0 0 18px rgba(185, 232, 210, 0.4);
}


/* =========================================================
   QUICK HIGHLIGHTS
========================================================= */

.highlights-section {
  padding-top: 82px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.highlight-card {
  display: flex;
  flex-direction: column;

  min-height: 100%;
  padding: 25px;
}

.highlight-card h3 {
  margin-top: 20px;
}

.highlight-card p,
.highlight-card .highlight-list {
  margin-bottom: 24px;
}

.highlight-card .text-link {
  margin-top: auto;
}

.highlight-list {
  display: grid;
  gap: 9px;

  padding: 0;

  list-style: none;
}

.highlight-list li {
  position: relative;

  padding-left: 18px;

  color: var(--color-text-soft);

  font-size: 0.92rem;
}

.highlight-list li::before {
  content: "";

  position: absolute;
  top: 0.78em;
  left: 0;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--color-accent);
}


/* =========================================================
   FEATURED PROJECTS
========================================================= */

.featured-projects-section {
  padding-top: 90px;
}

.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.featured-project-card {
  display: flex;
  flex-direction: column;

  min-height: 100%;
  padding: 28px;
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 24px;
}

.featured-project-card .project-icon {
  margin-bottom: 22px;
}

.featured-project-card h3 {
  margin-bottom: 14px;
}

.featured-project-card > p {
  margin-bottom: 22px;
}

.featured-project-card .technology-list {
  margin-bottom: 26px;
}

.project-card-actions {
  margin-top: auto;
}


/* =========================================================
   CURRENT FOCUS PANEL
========================================================= */

.focus-section {
  padding-top: 82px;
}

.focus-panel {
  overflow: hidden;
}

.focus-panel::before {
  content: "";

  position: absolute;
  top: -120px;
  right: -100px;

  width: 300px;
  height: 300px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(201, 188, 245, 0.18),
      transparent 70%
    );

  pointer-events: none;
}

.focus-panel {
  position: relative;
}

.focus-content,
.focus-tags {
  position: relative;
  z-index: 1;
}

.focus-tags {
  justify-content: flex-end;
  max-width: 440px;
}


/* =========================================================
   HOMEPAGE CTA
========================================================= */

.cta-section {
  padding-top: 78px;
  padding-bottom: 108px;
}

.cta-card {
  position: relative;

  overflow: hidden;
}

.cta-card::before {
  content: "";

  position: absolute;
  right: -120px;
  bottom: -170px;

  width: 360px;
  height: 360px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(169, 213, 239, 0.17),
      transparent 70%
    );

  pointer-events: none;
}

.cta-card > * {
  position: relative;
  z-index: 1;
}


/* =========================================================
   SUBTLE ENTRANCE ANIMATION
========================================================= */

.hero-content,
.hero-visual,
.highlights-section .section-heading,
.highlight-card,
.featured-projects-section .section-heading,
.featured-project-card,
.focus-panel,
.cta-card {
  animation: home-fade-up 720ms ease both;
}

.hero-visual {
  animation-delay: 100ms;
}

.highlight-card:nth-child(1) {
  animation-delay: 80ms;
}

.highlight-card:nth-child(2) {
  animation-delay: 150ms;
}

.highlight-card:nth-child(3) {
  animation-delay: 220ms;
}

.highlight-card:nth-child(4) {
  animation-delay: 290ms;
}

.featured-project-card:nth-child(1) {
  animation-delay: 100ms;
}

.featured-project-card:nth-child(2) {
  animation-delay: 180ms;
}

.featured-project-card:nth-child(3) {
  animation-delay: 260ms;
}

@keyframes home-fade-up {
  from {
    transform: translateY(24px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* =========================================================
   DESKTOP REFINEMENTS
========================================================= */

@media (min-width: 1100px) {
  .hero-section {
    min-height: calc(100vh - 94px);
  }

  .hero-layout {
    min-height: 690px;
  }
}


/* =========================================================
   MEDIUM SCREENS
========================================================= */

@media (max-width: 1050px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 48px;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-project-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    justify-self: center;
  }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 820px) {
  .hero-section {
    padding-top: 68px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero-content {
    max-width: none;
  }

  .hero-content h1,
  .hero-description,
  .hero-tagline {
    max-width: none;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .profile-frame {
    width: min(100%, 440px);
  }

  .featured-projects-grid {
    grid-template-columns: 1fr;
  }

  .featured-project-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .focus-tags {
    justify-content: flex-start;
    max-width: none;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 620px) {
  .hero-section {
    padding-top: 54px;
    padding-bottom: 64px;
  }

  .hero-actions,
  .hero-social-links {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-social-links {
    gap: 10px;
  }

  .hero-social-links a {
    justify-content: flex-start;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .highlight-card,
  .featured-project-card {
    padding: 22px;
  }

  .project-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-frame {
    padding: 14px;
  }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {
  .hero-tagline {
    font-size: 1.08rem;
  }

  .hero-description {
    font-size: 0.96rem;
  }

  .profile-status {
    align-items: flex-start;
  }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-visual,
  .highlights-section .section-heading,
  .highlight-card,
  .featured-projects-section .section-heading,
  .featured-project-card,
  .focus-panel,
  .cta-card {
    animation: none;
  }

  .profile-frame:hover .hero-profile-image {
    transform: none;
  }
}
