/* ============================================================
   BLUEBOX CREATIVE MEDIA GROUP — Stylesheet
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:           #060d1f;
  --surface:      #0d1b3e;
  --surface-2:    #0f2050;
  --accent:       #2563eb;
  --accent-light: #3b82f6;
  --accent-glow:  rgba(37, 99, 235, 0.18);
  --text:         #f1f5f9;
  --text-muted:   #94a3b8;
  --border:       #1e3a6e;
  --border-light: #2a4a80;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:       10px;
  --radius-lg:    16px;
  --transition:   0.22s ease;
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg:    0 8px 48px rgba(0, 0, 0, 0.5);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img { display: block; max-width: 100%; }

.hidden { display: none; }

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-light);
}
.btn--ghost:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: var(--accent-glow);
}

.btn--sm {
  padding: 9px 20px;
  font-size: 0.875rem;
  background: var(--accent);
  color: #fff;
}
.btn--sm:hover {
  background: var(--accent-light);
}

.btn--full {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}

.btn--linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: #0a66c2;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}
.btn--linkedin:hover {
  background: #0856a8;
  transform: translateY(-1px);
}

/* ---------- SECTION COMMON ---------- */
.section {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 14px;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 100px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}

.section-title--center { text-align: center; }

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 56px;
  text-align: center;
  line-height: 1.7;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: rgba(6, 13, 31, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 0;
}

.nav__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: #4a7cbf;
  padding: 7px 13px 7px 11px;
  border-radius: 6px;
  line-height: 1;
  gap: 3px;
}

.nav__logo-mark-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav__logo-mark-sub {
  font-size: 0.52rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 235, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(30, 58, 110, 0.35) 0%, transparent 60%),
    var(--bg);
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding-top: 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  padding: 6px 14px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.08);
  margin-bottom: 28px;
}

.hero__badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero__headline {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--text);
}

.text-accent { color: var(--accent-light); }

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent-light);
  border-radius: 2px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

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

/* ---------- ABOUT ---------- */
.about {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about__copy h2 {
  margin-bottom: 20px;
}

.about__copy p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}

.about__pillars {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.pillar {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.pillar__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
}

.pillar h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.pillar p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- SERVICES ---------- */
.services {
  background: var(--bg);
}

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__list li {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.contact__form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #4a6080;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 8px;
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.form-success.visible {
  display: block;
}

.contact__aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.contact__info-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.contact__info-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer__logo {
  font-size: 1.1rem;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--accent-light);
}

.footer__copy {
  font-size: 0.8rem;
  color: #4a6080;
}

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .section { padding: 72px 0; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 13, 31, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links li {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav__links li:last-child {
    border-bottom: none;
    padding-top: 16px;
  }

  .nav__links a:not(.btn) {
    font-size: 1rem;
  }

  .btn--sm {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.95rem;
  }

  .nav__hamburger { display: flex; }

  .hero__content { padding-top: 100px; }

  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; text-align: center; }

  .form-row { grid-template-columns: 1fr; }

  .contact__form { padding: 28px 20px; }
}
