/* ============================================================
   Home Page Styles
   ============================================================ */

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(201,168,76,0.04) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-gold);
  background: var(--gold-glow);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-tag .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
}
.hero h1 .gold-word { color: var(--gold); }
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
@keyframes scrollBounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ─── Floating Icons ─────────────────────────────────────── */
.tech-float {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.tech-float-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
}
.tech-orbit {
  position: relative;
  width: 520px;
  height: 520px;
  margin: 0 auto;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.orbit-ring-1 { width: 200px; height: 200px; }
.orbit-ring-2 { width: 340px; height: 340px; animation: rotateRing 20s linear infinite; }
.orbit-ring-3 { width: 480px; height: 480px; animation: rotateRing 35s linear infinite reverse; }

.orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 800;
  color: #000;
  letter-spacing: -0.02em;
  box-shadow: 0 0 40px rgba(201,168,76,0.4);
}

.tech-icon {
  position: absolute;
  width: 52px; height: 52px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: default;
}
.tech-icon:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  transform: scale(1.15);
  z-index: 10;
}
.tech-icon .tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.tech-icon:hover .tip { opacity: 1; }

@keyframes rotateRing { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }

/* icons on ring-2: counter-rotate to stay upright */
.ring2-group { animation: rotateRing 20s linear infinite; }
.ring2-group .tech-icon { animation: rotateRingReverse 20s linear infinite; }
.ring3-group { animation: rotateRing 35s linear infinite reverse; }
.ring3-group .tech-icon { animation: rotateRing 35s linear infinite; }
@keyframes rotateRingReverse { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(-360deg); } }

/* ─── Stats ──────────────────────────────────────────────── */
.stats-bar {
  padding: 80px 0;
  background: var(--bg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: var(--card);
  padding: 44px 32px;
  text-align: center;
  transition: var(--transition);
}
.stat-item:hover { background: var(--card-hover); }
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }

/* ─── Featured Projects ──────────────────────────────────── */
.featured-section { padding: 100px 0; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-6px);
}
.project-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.project-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-img img { transform: scale(1.05); }
.project-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.6), transparent);
}
.project-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--white); line-height: 1.3; }
.project-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.65; flex: 1; }
.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.project-price { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--gold); }

/* ─── CTA Section ────────────────────────────────────────── */
.cta-section {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.cta-box {
  background: linear-gradient(145deg, #0d0d0d, #1a1505);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 20px rgba(201,168,76,0.1);
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-box::after {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.1) 0%, transparent 70%);
}
.cta-box h2 { color: #ffffff; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 20px; position: relative; }
.cta-box p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 40px; max-width: 580px; margin-left: auto; margin-right: auto; position: relative; line-height: 1.6; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; }

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header { flex-direction: column; align-items: flex-start; }
  .cta-box { padding: 48px 24px; }
  .tech-orbit { width: 320px; height: 320px; }
  .orbit-ring-1 { width: 130px; height: 130px; }
  .orbit-ring-2 { width: 220px; height: 220px; }
  .orbit-ring-3 { width: 300px; height: 300px; }
}
