/* ============================================
   Winners Talking Creatives - Page Styles
   ============================================ */

/* --- Navbar Override (remove red) --- */
.navbar {
  background: #1a1a1a;
}

.navbar.scrolled {
  background: rgba(26, 26, 26, 0.95);
}

/* --- Button Override (remove red) --- */
.demo-hero .btn-primary {
  background: var(--white);
  color: #1a1a1a;
}

.demo-hero .btn-primary:hover {
  background: #e0e0e0;
}

/* --- Demo Hero --- */
.demo-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.demo-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 800px at 20% 60%, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
    radial-gradient(circle 600px at 80% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle 400px at 50% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 45%);
  animation: creativesSpotlight 10s ease-in-out infinite;
}

@keyframes creativesSpotlight {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(3%, -4%) scale(1.05); }
  66%  { transform: translate(-4%, 3%) scale(0.97); }
  100% { transform: translate(0, 0) scale(1); }
}

.demo-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  padding: 2rem;
  margin: 0 auto;
}

.demo-hero-text {
  flex: 0 0 35%;
  animation: fadeInUp 0.6s ease-out;
}

.creatives-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #999;
  margin-bottom: 0.5rem;
}

.creatives-title {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.creatives-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.demo-hero-showcase {
  flex: 1;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* --- Device Frames --- */
.demo-devices {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  justify-content: center;
}

.demo-desktop-frame {
  width: 480px;
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

.demo-desktop-toolbar {
  height: 32px;
  background: #333;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.toolbar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.toolbar-url {
  margin-left: 12px;
  background: #444;
  border-radius: 4px;
  padding: 3px 12px;
  font-size: 0.6rem;
  color: #aaa;
  font-family: var(--font-body);
  flex: 1;
  max-width: 200px;
}

.demo-desktop-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}

.demo-mobile-frame {
  width: 160px;
  background: #2a2a2a;
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.demo-mobile-notch {
  width: 60px;
  height: 6px;
  background: #444;
  border-radius: 3px;
  margin: 4px auto 6px;
}

.demo-mobile-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
}

/* --- Slides --- */
.demo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.demo-slide.active {
  opacity: 1;
  z-index: 1;
}

/* --- Mini Website Styles (inside device frames) --- */
.demo-site {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  line-height: 1.4;
  color: #333;
  overflow: hidden;
}

.demo-site.ds-mobile {
  font-size: 7px;
}

.ds-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  flex-shrink: 0;
}

.ds-logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.1em;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ds-nav-links {
  display: flex;
  gap: 4px;
}

.ds-nav-links span {
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.5);
  border-radius: 1px;
}

.ds-menu-icon {
  font-size: 1em;
  color: #fff;
}

.ds-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  min-height: 0;
}

.ds-hero-text {
  text-align: center;
  color: #fff;
}

.ds-hero-text h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 4px 0;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.ds-hero-text p {
  font-size: 0.85em;
  opacity: 0.85;
  margin-bottom: 6px;
}

.ds-badge {
  display: inline-block;
  font-size: 0.65em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 3px;
  color: #fff;
  margin-bottom: 4px;
}

.ds-cta {
  display: inline-block;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  margin-top: 4px;
  cursor: default;
}

.ds-cta i {
  font-size: 0.8em;
  margin-left: 2px;
}

.ds-services {
  display: flex;
  gap: 4px;
  padding: 8px 8px;
  background: #fff;
  flex-shrink: 0;
}

.ds-service-item {
  flex: 1;
  background: #fff;
  border-radius: 4px;
  padding: 6px 4px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.ds-service-item i {
  font-size: 1.2em;
  display: block;
  margin-bottom: 3px;
}

.ds-service-item span {
  font-size: 0.7em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #555;
}

.ds-stats {
  display: flex;
  justify-content: space-around;
  padding: 6px 8px;
  flex-shrink: 0;
}

.ds-stats div {
  text-align: center;
  color: #fff;
}

.ds-stats strong {
  display: block;
  font-size: 1.1em;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
}

.ds-stats span {
  font-size: 0.6em;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* --- Demo Indicators --- */
.demo-indicators {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.demo-indicator {
  flex: 1;
  background: var(--dark-card);
  border: 1px solid #333;
  border-radius: 10px;
  padding: 0.75rem 0.6rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: left;
  transition: border-color 0.3s ease, background 0.3s ease;
  color: var(--white);
  font-family: var(--font-body);
}

.demo-indicator:hover {
  border-color: #555;
  background: #2a2a2a;
}

.demo-indicator.active {
  border-color: #fff;
}

.indicator-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: #999;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.indicator-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.indicator-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #fff;
  width: 0%;
  border-radius: 0 0 10px 10px;
}

/* --- Services --- */
.creatives-services {
  padding: 5rem 0;
  background: var(--dark-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.service-card {
  background: var(--dark-card);
  border: 1px solid #333;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #fff;
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.08);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #444, #333);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-icon i {
  font-size: 1.6rem;
  color: var(--white);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--grey-light);
  line-height: 1.7;
}

/* --- Live Demonstrations --- */
.live-demos {
  padding: 5rem 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.live-demos::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
  pointer-events: none;
}

.live-demos > .container {
  position: relative;
  z-index: 1;
}

.demos-subtitle {
  text-align: center;
  color: var(--grey);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.demos-carousel-wrapper {
  position: relative;
}

.demos-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0 1.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.demos-carousel::-webkit-scrollbar {
  display: none;
}

.demos-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark-card);
  border: 1px solid #444;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demos-scroll-btn:hover {
  background: #fff;
  border-color: #fff;
  color: #1a1a1a;
}

.scroll-left { left: -22px; }
.scroll-right { right: -22px; }

.demo-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--dark-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #333;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.demo-card:hover {
  transform: translateY(-6px);
  border-color: #fff;
  box-shadow: 0 16px 48px rgba(255, 255, 255, 0.08);
}

.demo-card-device {
  background: #1a1a1a;
  border-radius: 8px;
  margin: 1rem;
  overflow: hidden;
}

.demo-card-toolbar {
  height: 24px;
  background: #333;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}

.demo-card-toolbar .toolbar-dot {
  width: 7px;
  height: 7px;
}

.demo-card-screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.demo-card-screen .demo-site {
  font-size: 7px;
}

.demo-card-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.demo-card-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  margin-bottom: 0.5rem;
}

.demo-card-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.demo-card-info p {
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.6;
}

/* --- Contact --- */
.creatives-contact {
  padding: 5rem 0;
  background: var(--dark-surface);
}

.creatives-contact .section-title {
  color: var(--white);
}

.creatives-contact .contact-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.creatives-contact .form-group label {
  color: rgba(255, 255, 255, 0.9);
}

.creatives-contact .form-group input,
.creatives-contact .form-group select,
.creatives-contact .form-group textarea {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.creatives-contact .form-group input::placeholder,
.creatives-contact .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.creatives-contact .form-group input:focus,
.creatives-contact .form-group select:focus,
.creatives-contact .form-group textarea:focus {
  border-color: var(--white);
}

.creatives-contact .form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
  cursor: pointer;
}

.creatives-contact .form-group select option {
  background: var(--dark-card);
  color: var(--white);
}

.creatives-contact .contact-submit {
  background: var(--white);
  color: #1a1a1a;
}

.creatives-contact .contact-submit:hover {
  background: #f0f0f0;
}

.creatives-contact .form-success {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .demo-desktop-frame {
    width: 380px;
  }

  .demo-mobile-frame {
    width: 130px;
  }

  .demo-hero-inner {
    gap: 2.5rem;
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .demo-hero-text {
    flex: none;
    max-width: 600px;
  }

  .demo-hero-showcase {
    width: 100%;
    max-width: 700px;
  }

  .demo-desktop-frame {
    width: 420px;
  }

  .demo-mobile-frame {
    width: 140px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    background: #1a1a1a;
  }

  .demo-hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 2rem;
  }

  .creatives-title {
    font-size: 3rem;
  }

  .creatives-subtitle {
    font-size: 1rem;
  }

  .demo-desktop-frame {
    width: 100%;
    max-width: 340px;
  }

  .demo-mobile-frame {
    display: none;
  }

  .demo-devices {
    justify-content: center;
  }

  .demo-indicators {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 1rem auto 0;
  }

  .demo-card {
    flex: 0 0 280px;
  }

  .scroll-left { left: -10px; }
  .scroll-right { right: -10px; }

  .demos-scroll-btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .demo-hero-inner {
    padding: 1rem;
  }

  .demo-indicators {
    grid-template-columns: 1fr 1fr;
  }

  .indicator-label {
    font-size: 0.6rem;
  }

  .demo-card {
    flex: 0 0 260px;
  }
}
