/* ===========================
   HOME PAGE — index.css
   =========================== */

/* === HERO SECTION === */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at var(--mx, 50%) var(--my, 30%), rgba(124,58,237,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(168,85,247,0.08) 0%, transparent 50%),
    var(--bg-primary);
  transition: background 0.1s ease;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.15), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin: 20px 0 32px;
}

.hero-line {
  display: block;
}

.hero-line:nth-child(2) {
  padding-left: 80px;
}

.hero-line:nth-child(3) {
  padding-left: 0;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  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: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--accent-light);
  border-radius: 100px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

/* Hero Visual Side */
.hero-visual {
  position: absolute;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.hero-orb-main {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.25), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: heroOrbPulse 4s ease-in-out infinite;
}

.hero-orb-secondary {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(192,132,252,0.15), transparent 70%);
  top: 20%;
  right: 10%;
  animation: heroOrbPulse 4s ease-in-out infinite 2s;
}

@keyframes heroOrbPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168,85,247,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, white 20%, transparent 70%);
}

/* === ABOUT SECTION === */
.about-section { background: var(--bg-primary); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all var(--transition-mid);
}

.stat-item:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* About Card */
.about-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
}

.about-card-inner { position: relative; z-index: 1; }

.brand-mark {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 32px;
  box-shadow: 0 8px 32px rgba(124,58,237,0.4);
}

.about-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--accent-border);
  color: var(--accent-light);
  background: var(--accent-subtle);
}

/* === FEATURED WORK === */
.featured-section { background: var(--bg-primary); }

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  margin-top: 16px;
}

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

.work-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-mid);
  backdrop-filter: blur(10px);
}

.work-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.work-card-visual {
  height: 220px;
  background: var(--bg-surface-2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.work-card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--work-color) 20%, transparent), transparent 70%);
}

.work-card-info {
  padding: 28px 32px;
}

.work-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 12px;
}

.work-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.work-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Browser Mockup */
.mockup-browser {
  width: 85%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.browser-bar {
  background: rgba(255,255,255,0.05);
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.browser-bar span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.browser-bar span:nth-child(1) { background: rgba(255,100,100,0.5); }
.browser-bar span:nth-child(2) { background: rgba(255,200,50,0.5); }
.browser-bar span:nth-child(3) { background: rgba(80,200,80,0.5); }

.browser-content { padding: 12px; }
.browser-line { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; margin-bottom: 8px; }
.bw-70 { width: 70%; }
.bw-50 { width: 50%; }
.bw-80 { width: 80%; }
.bw-60 { width: 60%; }
.browser-block { height: 40px; background: rgba(124,58,237,0.2); border-radius: 4px; margin: 10px 0; }
.browser-hero-block { height: 50px; background: rgba(124,58,237,0.25); border-radius: 4px; margin-bottom: 10px; }
.browser-cards { display: flex; gap: 6px; }
.bc { flex: 1; height: 30px; background: rgba(255,255,255,0.05); border-radius: 4px; }

/* Phone Mockup */
.mockup-phone {
  width: 90px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.phone-notch {
  width: 40px;
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  margin: 8px auto 0;
}

.phone-content { padding: 12px; }
.phone-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(168,85,247,0.3);
  margin: 0 auto 8px;
}
.phone-line { height: 5px; background: rgba(255,255,255,0.1); border-radius: 3px; margin-bottom: 6px; }
.pw-70 { width: 70%; }
.phone-row { display: flex; gap: 6px; margin-top: 8px; }
.phone-btn { flex: 1; height: 20px; background: rgba(124,58,237,0.3); border-radius: 4px; }

.section-footer {
  margin-top: 48px;
  text-align: center;
}

/* === CTA SECTION === */
.cta-section {
  padding: 160px 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-heading {
  margin: 20px 0 20px;
}

.cta-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.7;
}

.btn-lg { padding: 18px 36px; font-size: 1rem; }

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.12), transparent 70%);
  pointer-events: none;
  animation: ctaGlow 4s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* === Responsive === */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { opacity: 0.4; right: -200px; }
}

@media (max-width: 768px) {
  .hero-line:nth-child(2) { padding-left: 32px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .work-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
