/* ============================================================
   CB AGENCY — Home Page Styles
   home.css
   ============================================================ */

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--sp-16) var(--sp-4) var(--sp-8);
}

/* Radial glow background */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245,200,0,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: hero-glow-pulse 4s ease-in-out infinite;
}

/* Grid overlay */
.hero::after {
  content: '';
  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: 40px 40px;
  mask-image: radial-gradient(ellipse at center, transparent 40%, black 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  animation: fadeIn 0.8s ease 0.2s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 16px;
  background: var(--c-accent-dim);
  border: 1px solid rgba(245,200,0,0.3);
  border-radius: var(--r-full);
  color: var(--c-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  animation: pulse-accent 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: var(--sp-6);
}

.hero-title .line-accent {
  display: block;
  background: linear-gradient(135deg, #F5C800 0%, #FF8C00 50%, #F5C800 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--c-text-secondary);
  max-width: 560px;
  margin: 0 auto var(--sp-8);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  align-items: center;
}

/* Floating scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: calc(var(--nav-bottom) + var(--sp-6));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* === STATS BAR === */
.stats-bar {
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  text-align: center;
}

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  padding: var(--sp-4) var(--sp-2);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--c-accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  font-weight: 500;
  margin-top: var(--sp-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === SERVICES SECTION === */
.services-section {
  padding: var(--sp-20) 0;
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,200,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-3);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-10);
}

@media (min-width: 600px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .services-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
  transition: all var(--t-base);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

.service-card:hover {
  border-color: rgba(245,200,0,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(245,200,0,0.08);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--c-accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  transition: all var(--t-base);
  border: 1px solid rgba(245,200,0,0.2);
}

.service-card:hover .service-icon {
  background: rgba(245,200,0,0.25);
  transform: scale(1.1) rotate(-5deg);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--c-accent);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-text-primary);
  margin-bottom: var(--sp-2);
}

.service-desc {
  font-size: 0.875rem;
  color: var(--c-text-secondary);
  line-height: 1.6;
}

.service-number {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-6);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color var(--t-base);
}

.service-card:hover .service-number {
  color: rgba(245,200,0,0.06);
}

/* === REEL PREVIEW SECTION === */
.reels-preview-section {
  padding: var(--sp-20) 0;
  background: var(--c-surface);
  position: relative;
  overflow: hidden;
}

.reels-preview-section::before {
  content: '';
  position: absolute;
  left: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,200,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.preview-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}

@media (min-width: 900px) {
  .preview-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
  }
}

.preview-text .section-label {
  margin-bottom: var(--sp-4);
}

.preview-text h2 {
  margin-bottom: var(--sp-4);
}

.preview-text p {
  color: var(--c-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.9rem;
  color: var(--c-text-secondary);
}

.feature-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
}

/* Phone mockup showing reel */
.phone-mockup {
  position: relative;
  max-width: 280px;
  margin: 0 auto;
}

.phone-frame {
  position: relative;
  aspect-ratio: 9/19;
  background: #1A1A1A;
  border-radius: 36px;
  border: 2px solid var(--c-border-hover);
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: #0A0A0A;
  border-radius: 0 0 12px 12px;
  z-index: 10;
}

.phone-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: var(--sp-4);
}

.phone-reel-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #1a0a2e 0%,
    #0d1a0d 30%,
    #1a1a0a 60%,
    #0a0a1a 100%
  );
}

.phone-reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
}

.phone-reel-info {
  position: relative;
  z-index: 2;
  width: 100%;
}

.phone-reel-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.phone-reel-cat {
  font-size: 0.65rem;
  color: var(--c-accent);
  margin-bottom: 8px;
}

.phone-actions {
  position: absolute;
  right: var(--sp-2);
  bottom: var(--sp-10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  z-index: 2;
}

.phone-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
}

.phone-action-btn svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.phone-action-btn span {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.8);
}

.phone-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245,200,0,0.2);
  border: 2px solid var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  animation: phone-play-pulse 2s ease-in-out infinite;
}

@keyframes phone-play-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,200,0,0.3); }
  50%       { box-shadow: 0 0 0 16px rgba(245,200,0,0); }
}

.phone-float-badge {
  position: absolute;
  top: -20px;
  right: -30px;
  background: var(--c-accent);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--r-full);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(245,200,0,0.4);
  animation: float-badge 3s ease-in-out infinite;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-6px) rotate(-3deg); }
}

/* === ABOUT SECTION === */
.about-section {
  padding: var(--sp-20) 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  align-items: center;
}

@media (min-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
  }
}

.about-visual {
  position: relative;
}

.about-logo-display {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.about-logo-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(245,200,0,0.2) 0%, transparent 70%);
  border-radius: var(--r-xl);
}

.about-logo-img {
  width: 200px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 32px rgba(245,200,0,0.3));
  animation: float-logo 4s ease-in-out infinite;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}

.about-tag {
  padding: 6px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  color: var(--c-text-secondary);
  font-weight: 500;
  transition: all var(--t-base);
}

.about-tag:hover {
  border-color: rgba(245,200,0,0.4);
  color: var(--c-accent);
  background: var(--c-accent-dim);
}

.about-text h2 {
  margin-bottom: var(--sp-4);
}

.about-text p {
  color: var(--c-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}

/* === CTA SECTION === */
.cta-section {
  padding: var(--sp-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245,200,0,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid rgba(245,200,0,0.2);
  border-radius: var(--r-xl);
  padding: var(--sp-12) var(--sp-6);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #F5C800, transparent);
}

.cta-card h2 {
  margin-bottom: var(--sp-4);
}

.cta-card p {
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-8);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}

/* === HERO GLOW ANIMATION === */
@keyframes hero-glow-pulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}
