/* AJH Digital Marketing — Shared Styles
   ajhdigitalmarketing.com
*/

:root {
  --cyan: #00d4ff;
  --blue: #4a6cf7;
  --purple: #7c3aed;
  --dark: #0a0a0f;
  --dark-2: #111118;
  --dark-3: #1a1a24;
  --dark-4: #22222f;
  --border: rgba(255,255,255,0.08);
  --text: #f0f0f8;
  --text-muted: #9090a8;
  --text-dim: #606078;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--cyan), var(--blue), var(--purple));
  --gradient-text: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
  --shadow: 0 20px 60px rgba(0,0,0,0.4);
  --card-bg: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.07);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─────────────────────────────── */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* ─── LAYOUT ─────────────────────────────────── */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
}

/* ─── NAV ────────────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

nav.scrolled {
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  background: var(--gradient) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.nav-cta:hover {
  opacity: 0.88;
  transform: scale(1.02) !important;
}

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

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── BUTTONS ────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(74,108,247,0.35);
}

.btn-primary:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 10px 36px rgba(74,108,247,0.55);
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--white);
  background: rgba(74,108,247,0.08);
  transform: scale(1.02);
}

/* ─── CARDS ──────────────────────────────────── */

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(74,108,247,0.35);
  box-shadow: 0 12px 40px rgba(74,108,247,0.18);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(74,108,247,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* ─── GRADIENT LINE ──────────────────────────── */

.gradient-line {
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  margin-bottom: 2.5rem;
  width: 60px;
}

/* ─── HERO ───────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(74,108,247,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 85% 85%, rgba(124,58,237,0.2) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 10% 60%, rgba(0,212,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Animated shimmer overlay for hero */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,212,255,0.04) 0%,
    rgba(74,108,247,0.06) 40%,
    rgba(124,58,237,0.04) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  animation: heroFadeUp 0.9s ease both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(74,108,247,0.12);
  border: 1px solid rgba(74,108,247,0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 1.75rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 500px;
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ─── SECTIONS ───────────────────────────────── */

.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered p {
  margin: 0 auto;
}

/* ─── SERVICES GRID ──────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card .card-icon {
  font-size: 1.75rem;
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── SOCIAL PROOF ───────────────────────────── */

.proof-section {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--dark-3);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.75rem;
}

.stars {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}

.author-biz {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── CTA BANNER ─────────────────────────────── */

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

.cta-box {
  background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(74,108,247,0.12), rgba(124,58,237,0.08));
  border: 1px solid rgba(74,108,247,0.2);
  border-radius: 24px;
  padding: 4rem 2rem;
}

.cta-box h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ─── SERVICES PAGE ──────────────────────────── */

.page-hero {
  padding: 10rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(74,108,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-detail-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: start;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.service-detail-card:hover {
  border-color: rgba(74,108,247,0.35);
  box-shadow: 0 10px 40px rgba(74,108,247,0.15);
  transform: translateY(-3px);
}

.service-detail-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(74,108,247,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.service-detail-body h3 {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.service-detail-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feature-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

.service-pricing {
  text-align: right;
  flex-shrink: 0;
}

.price-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.price-range {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

/* ─── ABOUT PAGE ─────────────────────────────── */

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual-card {
  background: var(--dark-3);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
}

.about-visual-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.about-visual-tagline {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.about-visual-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.about-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(74,108,247,0.12), transparent 70%);
  border-radius: 30px;
  z-index: -1;
}

.about-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.value-card {
  background: var(--dark-3);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.5rem;
}

.value-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.value-card h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

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

/* ─── CONTACT PAGE ───────────────────────────── */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(74,108,247,0.1);
  border: 1px solid rgba(74,108,247,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.1rem;
}

.contact-item-value {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}

.contact-item-value:hover {
  color: var(--cyan);
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.5rem;
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: rgba(74,108,247,0.04);
}

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

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group select option {
  background: var(--dark-3);
}

.form-submit {
  width: 100%;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ─── FOOTER ─────────────────────────────────── */

footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ─── FADE-IN ANIMATIONS ─────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings */
.services-grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.services-grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.services-grid .fade-in:nth-child(4) { transition-delay: 0.24s; }

.proof-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.proof-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }

.values-grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.values-grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.values-grid .fade-in:nth-child(4) { transition-delay: 0.24s; }

.services-list .fade-in:nth-child(2) { transition-delay: 0.08s; }
.services-list .fade-in:nth-child(3) { transition-delay: 0.16s; }
.services-list .fade-in:nth-child(4) { transition-delay: 0.24s; }

/* ─── UTILITIES ──────────────────────────────── */

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* ─── MOBILE ─────────────────────────────────── */

@media (max-width: 768px) {
  section { padding: 4rem 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .nav-links li:last-child a { border-bottom: none; }

  .nav-hamburger { display: flex; }

  .hero { padding-top: 100px; }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
  }

  .about-story {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .service-detail-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .service-pricing {
    grid-column: 2;
    text-align: left;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .service-detail-card {
    grid-template-columns: 1fr;
  }
  .service-detail-icon { margin-bottom: 0.5rem; }
  .service-pricing { text-align: left; }
}
