/* =========================================
   HOME.CSS
   - Homepage-specific layout & styling
   - Hero with 3D logo
   - Experience / platforms / projects tweaks
========================================= */

/* ------------------------------
   HERO SECTION
   ------------------------------ */

.hero {
  position: relative;
  padding-block: 4.5rem 4rem;
  background:
    radial-gradient(circle at top left, rgba(44, 59, 255, 0.35), transparent 60%),
    radial-gradient(circle at bottom right, rgb(85 10 52 / 48%), transparent 55%),
    linear-gradient(135deg, var(--color-hero-gradient-start), var(--color-hero-gradient-end));
  color: #e5e7eb;
}
.experience-skills {
  position: sticky;
  top: 0; /* or 10px */
  
}

.hero::before {
  /* soft glow grid overlay */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 90px 90px;
  mix-blend-mode: soft-light;
  opacity: 0.28;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  z-index: 1;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  }
}

/* Hero content card */

.hero-content {
  padding: 1.8rem 1.8rem 1.9rem;
  border-radius: 1.8rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.98));
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.7);
}

/* Typo scale (hero + sections) */

.hero-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a5b4fc;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(1.9rem, 2.6vw + 1.3rem, 2.7rem);
  line-height: 1.15;
  color: #f9fafb;
  margin-bottom: 0.85rem;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: #e5e7eb;
  line-height: 1.7;
}

.hero-subtitle--secondary {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #cbd5f5;
}

/* CTA buttons */

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

/* Meta blocks */

.hero-meta {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

@media (min-width: 640px) {
  .hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hero-meta-block {
  padding: 0.55rem 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
}

.hero-meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.hero-meta-value {
  font-size: 0.83rem;
  color: #e5e7eb;
}

/* Hero social override (dark background) */

.hero .social-label {
  color: #9ca3af;
}

.hero .social-link {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.65);
  color: #e5e7eb;
}

/* Float animation (disabled by prefers-reduced-motion in base.css) */

@keyframes heroFloat {
  0% {
    transform: translateY(0px) translateZ(0);
  }
  50% {
    transform: translateY(-8px) translateZ(0);
  }
  100% {
    transform: translateY(-4px) translateZ(0);
  }
}

/* ===========================
   HERO 3D LOGO AREA
   =========================== */

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  /* grid child – let grid control width */
  justify-self: center;
}

.hero-3d-logo {
  width: min(480px, 100%);
  aspect-ratio: 1 / 1;
  position: relative;

  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible; /* no cropping */
}

/* Canvas fills the wrapper */
.hero-3d-logo canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Placeholder only while loading */
.hero-3d-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5f5;
  font-size: 0.9rem;
  background: transparent;
  backdrop-filter: none;
}

/* ------------------------------
   EXPERIENCE SECTION (TWEAKS)
   ------------------------------ */

#experience.section {
  padding-block: 4.5rem 4.2rem;
}

#experience .section-inner {
  position: relative;
}

/* ------------------------------
   PERSONAL PROJECTS / PLATFORMS
   ------------------------------ */

#personal-projects.section {
  padding-block: 4.5rem 4.3rem;
}

#personal-projects .section-title {
  color: #f9fafb;
}

#personal-projects .section-description {
  color: #e5e7eb;
}

/* Extra breathing room under grid on small screens */
#personal-projects .platform-grid {
  margin-top: 0.5rem;
}

/* Screenshot-specific placeholder styles.
   Replace backgrounds later with real images using background-image. */

.platform-screenshot--pxigo {
  background:
    radial-gradient(circle at 10% 0, rgba(248, 250, 252, 0.18), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(248, 113, 113, 0.5), transparent 55%),
    #020617;
}

.platform-screenshot--advtut {
  background:
    radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.18), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.55), transparent 55%),
    #020617;
}

.platform-screenshot--mqally {
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.45), rgba(49, 46, 129, 0.95)),
    #020617;
}

.platform-screenshot--infopulse {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.55), rgba(15, 23, 42, 0.98)),
    #020617;
}

.platform-screenshot--topdailyblog {
  background:
    linear-gradient(135deg, rgba(244, 114, 182, 0.45), rgba(37, 99, 235, 0.85)),
    #020617;
}

/* On hover, also brighten label a bit */
.platform-card:hover .platform-screenshot-label {
  text-shadow: 0 0 12px rgba(248, 250, 252, 0.95);
}

/* ------------------------------
   CLIENT PROJECTS SECTION
   ------------------------------ */

#client-projects.section {
  padding-block: 4.4rem 4.2rem;
}

#client-projects .section-description {
  margin-top: 0.4rem;
}

/* ------------------------------
   CTA / CONTACT SECTION TWEAKS
   ------------------------------ */

#contact.section--cta {
  padding-block: 4.6rem 4.2rem;
}

#contact .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.6rem;
}

#contact .cta-footnote {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: #cbd5f5;
}

/* ------------------------------
   PROJECT CARD THUMBNAILS
   ------------------------------ */

/* Override project-card-thumb for home cards so all cards align nicely */
.project-card-thumb {
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--color-bg-elevated, #050816);
  height: 190px;          /* unified thumb height */
  padding: 0;
}

/* Image fills the thumb and can crop edges a bit if aspect ratio differs */
.project-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* no empty space, light zoom if needed */
}

/* ------------------------------
   RESPONSIVE TWEAKS
   ------------------------------ */

@media (max-width: 1024px) {
  .hero {
    padding-block: 4.2rem 3.6rem;
  }
}

@media (max-width: 899px) {
  .hero {
    padding-block: 4.2rem 3.4rem;
  }

  .hero-content {
    padding: 1.5rem 1.4rem 1.6rem;
    border-radius: 1.5rem;
  }

  .hero-visual {
    margin-top: 1.5rem;
    justify-self: stretch;
  }

  .hero-3d-logo {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }

  .experience-layout {
    gap: 2.2rem;
  }

  .platform-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .hero-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding-block: 3.4rem;
  }

  #personal-projects.section,
  #client-projects.section,
  #experience.section {
    padding-block: 3.4rem;
  }

  .hero-content {
    padding: 1.35rem 1.15rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-block: 3.8rem 3.1rem;
  }

  .hero-inner {
    gap: 2rem;
  }

  .hero-meta {
    gap: 0.6rem;
  }

  .hero-3d-logo {
    max-width: 300px;
  }
}

/* Slight polish for very large screens */

@media (min-width: 1440px) {
  .hero {
    padding-block: 5rem 4.5rem;
  }

  .hero-inner {
    gap: 3rem;
  }

  #experience.section,
  #personal-projects.section,
  #client-projects.section {
    padding-block: 4.8rem 4.4rem;
  }
}
