/* ============================================
   Ali Raza — Portfolio — Custom Styles
   ============================================ */

:root {
  --color-primary: #F14F26;
  --color-primary-dark: #CC3F1A;
  --color-primary-light: #FDEAE3;
  --color-black: #0E0E0E;
  --color-white: #FFFFFF;
  --color-surface: #F5F5F5;
  --color-text-muted: #6B6B6B;
  --color-border: #ECECEC;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-black);
  background: var(--color-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Sora', sans-serif;
}

.font-accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--color-primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---------- Liquid Glass Nav ---------- */
.glass-nav {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(14, 14, 14, 0.08);
  transition: box-shadow 0.4s ease, padding 0.4s ease, background 0.4s ease;
}

.glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 40px rgba(14, 14, 14, 0.14);
}

/* ---------- Split Pill CTA Button ---------- */
.btn-split {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-primary);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-split:hover { transform: scale(1.03); }

.btn-split__label {
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 1.6rem;
  white-space: nowrap;
}

.btn-split__arrow {
  background: var(--color-black);
  color: #fff;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-split:hover .btn-split__arrow {
  transform: rotate(45deg);
}

.btn-ghost {
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  font-weight: 600;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  display: inline-block;
}

/* ---------- Marquee ---------- */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee-track.marquee-reverse {
  animation-direction: reverse;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Cards ---------- */
.card-soft {
  background: var(--color-surface);
  border-radius: 28px;
  padding: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-soft:hover {
  box-shadow: 0 20px 40px rgba(14, 14, 14, 0.08);
  transform: translateY(-4px);
}

/* ---------- Award card hover ---------- */
.award-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.award-card:hover {
  transform: scale(1.04);
  box-shadow: 0 20px 40px rgba(14, 14, 14, 0.1);
}
.award-card .award-index {
  position: absolute;
  right: 10px;
  bottom: -20px;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(241, 79, 38, 0.06);
  line-height: 1;
  font-family: 'Sora', sans-serif;
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  background: var(--color-surface);
  border-radius: 999px;
  transition: background 0.35s ease, color 0.35s ease, border-radius 0.35s ease;
  overflow: hidden;
}
.faq-item.open {
  background: var(--color-primary);
  color: #fff;
  border-radius: 28px;
}
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-icon { transition: transform 0.35s ease; }
.faq-item.open .faq-icon-plus { display: none; }
.faq-item:not(.open) .faq-icon-minus { display: none; }

/* ---------- Testimonial dots ---------- */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-border);
  transition: width 0.3s ease, background 0.3s ease;
}
.dot.active {
  width: 26px;
  background: var(--color-primary);
}

/* ---------- Hero blob ---------- */
.hero-blob {
  background: radial-gradient(circle at 30% 30%, #FF8A5C, var(--color-primary));
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
}

.float-badge {
  animation: float-y 4s ease-in-out infinite;
}
.float-badge.delay {
  animation-delay: 1.4s;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Timeline ---------- */
.timeline-line {
  background: linear-gradient(to bottom, var(--color-primary), rgba(241,79,38,0.1));
}
.timeline-dot {
  background: var(--color-primary);
  box-shadow: 0 0 0 6px var(--color-primary-light);
}

/* ---------- Utility ---------- */
.section-pad { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) {
  .section-pad { padding-top: 7rem; padding-bottom: 7rem; }
}

.reveal { opacity: 0; transform: translateY(40px); }

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
#mobile-menu.open { max-height: 480px; }

::selection {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- Skills marquee pill ---------- */
.skill-pill {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Favorite tools ---------- */
.tool-card {
  background: var(--color-surface);
  border-radius: 24px;
  padding: 1.75rem 1rem;
  text-align: center;
}
.tool-pct {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-primary);
}
.tool-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

/* ---------- Service icon ---------- */
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Project cards ---------- */
.project-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(14, 14, 14, 0.08);
}
.project-thumb {
  background: var(--color-surface);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.tag-pill {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ---------- Award stars ---------- */
.award-card {
  background: #fff;
  border-radius: 28px;
  padding: 2rem;
  width: 280px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}
.award-stars {
  color: #FFB020;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

/* ---------- Pricing ---------- */
.pricing-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.pricing-head {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
}
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex: 1;
}
.pricing-list li {
  padding: 0.4rem 0;
}
.pricing-btn {
  display: block;
  text-align: center;
  background: var(--color-black);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.9rem;
  font-size: 0.9rem;
  transition: background 0.3s ease, transform 0.3s ease;
}
.pricing-btn:hover { transform: scale(1.02); }
.pricing-featured {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.03);
}
.pricing-featured .pricing-head { border-bottom-color: rgba(255,255,255,0.25); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--color-surface);
  border-radius: 28px;
  padding: 2rem;
  min-width: 320px;
  max-width: 380px;
  flex-shrink: 0;
}

/* ---------- Social icon ---------- */
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.3s ease, transform 0.3s ease;
}
.social-icon:hover {
  background: var(--color-black);
  transform: translateY(-2px);
}
