/* ============================================
   SCOPECOVE AGENCY - PAGE SPECIFIC STYLES
   Homepage and agency-wide styling
   ============================================ */

/* ============================================
   AGENCY HERO SECTION
   ============================================ */
.agency-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
  background: var(--bg-gradient-mesh);
}

.agency-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(16, 185, 129, 0.1), transparent);
  pointer-events: none;
}

/* Decorative floating shapes */
.agency-hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
  animation: floatSlow 15s ease-in-out infinite;
}

.agency-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.agency-hero-content {
  position: relative;
  z-index: 2;
}

.agency-hero-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--sc-primary) 0%, var(--sc-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.agency-hero-title .highlight {
  display: block;
  background: linear-gradient(135deg, var(--sc-secondary) 0%, var(--sc-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.agency-hero-description {
  font-size: var(--text-xl);
  color: var(--text-medium);
  max-width: 500px;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.agency-hero-buttons {
  display: flex;
  gap: var(--space-md);
}

.agency-hero-mockups {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.agency-hero-phone {
  position: absolute;
  border-radius: 40px;
  box-shadow: var(--shadow-2xl);
  transition: all 0.5s var(--ease-out-expo);
}

.agency-hero-phone:nth-child(1) {
  width: 260px;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.agency-hero-phone:nth-child(2) {
  width: 220px;
  left: -60px;
  top: 40px;
  z-index: 2;
  animation: float 6s ease-in-out infinite 0.5s;
  opacity: 0.9;
}

.agency-hero-phone:nth-child(3) {
  width: 220px;
  right: -60px;
  top: 40px;
  z-index: 2;
  animation: float 6s ease-in-out infinite 1s;
  opacity: 0.9;
}

/* Phone mockup placeholder styling */
.phone-mockup-placeholder {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-off-white) 100%);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.phone-mockup-placeholder .phone-screen {
  flex: 1;
  background: white;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  min-height: 400px;
}

@media (max-width: 1024px) {
  .agency-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .agency-hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .agency-hero-buttons {
    justify-content: center;
  }

  .agency-hero-mockups {
    display: none;
  }
}

/* ============================================
   STATS SECTION
   ============================================ */
.agency-stats {
  position: relative;
  margin-top: calc(var(--space-3xl) * -1);
  z-index: 10;
}

.agency-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.agency-stat {
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
}

.agency-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-light);
}

.agency-stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--sc-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.agency-stat-label {
  font-size: var(--text-sm);
  color: var(--text-light);
  font-weight: 500;
}

@media (max-width: 768px) {
  .agency-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .agency-stat:nth-child(2)::after {
    display: none;
  }

  .agency-stat:nth-child(1),
  .agency-stat:nth-child(2) {
    border-bottom: 1px solid var(--border-light);
  }
}

/* ============================================
   APPS PORTFOLIO SECTION
   ============================================ */
.agency-apps {
  padding: var(--space-5xl) 0;
  background: var(--bg-off-white);
}

.agency-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.agency-app-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  border: 2px solid transparent;
  transition: all var(--transition-base) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.agency-app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(59, 130, 246, 0.03) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.agency-app-card:hover {
  transform: translateY(-8px);
  border-color: var(--sc-secondary);
  box-shadow: var(--shadow-xl);
}

.agency-app-card:hover::before {
  opacity: 1;
}

.agency-app-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-lg);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.agency-app-icon.scanzio {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
}

.agency-app-icon.carsnap {
  background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
}

.agency-app-icon.wifiqr {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
}

.agency-app-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.agency-app-tagline {
  font-size: var(--text-base);
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.agency-app-status {
  margin-top: auto;
}

@media (max-width: 768px) {
  .agency-apps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.agency-services {
  padding: var(--space-5xl) 0;
}

.agency-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.agency-service-card {
  background: var(--bg-off-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base) var(--ease-out-expo);
  border: 1px solid transparent;
}

.agency-service-card:hover {
  background: white;
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.agency-service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--sc-primary) 0%, var(--sc-secondary) 100%);
  border-radius: var(--radius-md);
  color: white;
}

.agency-service-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.agency-service-description {
  font-size: var(--text-sm);
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .agency-services-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.agency-contact {
  padding: var(--space-5xl) 0;
  background: linear-gradient(135deg, var(--sc-primary) 0%, var(--sc-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.agency-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.agency-contact-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.agency-contact-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.agency-contact-description {
  font-size: var(--text-xl);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.agency-contact-email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-xl);
  opacity: 0.95;
}

.agency-contact-email svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.floating-shape-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  top: 10%;
  left: -100px;
  animation: floatSlow 20s ease-in-out infinite;
}

.floating-shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  bottom: 20%;
  right: -50px;
  animation: floatSlow 15s ease-in-out infinite reverse;
}

/* Geometric grid pattern for backgrounds */
.geometric-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
