:root {
  --brand: #FF6B00;
  --brand-2: #FFD65C;
  --ink: #e5e7eb;
  --ink-dim: #94a3b8;
  --bg: #0b0b0f;
  --panel: #11121a;
  --line: rgba(255,255,255,.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

/* Hero background image */
.hero-bg {
  position: relative;
  background-image: url('./aboutme.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.7); /* tint color (BornCreative violet with 50% opacity) */
  background-blend-mode: overlay;
}

/* Light theme zone for post-hero content */
.theme-light {
  --bg: #ffffff;
  --panel: #f8fafc; /* slate-50 */
  --line: rgba(0,0,0,.12);
  --ink: #0b0b0f;   /* near-black */
  --ink-dim: #475569; /* slate-600 */
  background: var(--bg);
  color: var(--ink);
}

.hero-bg::before {
  content: none;
}

/* Bottom fade to black for hero */
.hero-bg::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.6));
  pointer-events: none;
}
/* === BornCreative Hero Animations === */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeUp {
  animation: fadeUp 1.2s ease-out forwards;
}

@keyframes fadeInSoft {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeInSoft 1s ease-out forwards;
}

/* Scroll reveal (left/right) */
.reveal {
  opacity: 0;
  transform: translateX(var(--reveal-x, 0));
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
  will-change: opacity, transform;
}
.reveal-left { --reveal-x: -24px; }
.reveal-right { --reveal-x: 24px; }
.reveal.in-view {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.typewriter {
  position: relative;
}

.typewriter .typewriter-content {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding-right: 0.2em;
  clip-path: inset(0 100% 0 0);
  animation: typeReveal 3.6s steps(40, end) forwards;
}

.typewriter .typewriter-content::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0.08em;
  height: 100%;
  background: var(--brand-2);
  animation: caretBlink 0.75s steps(1, end) infinite;
}

@keyframes typeReveal {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes caretBlink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

/* Header brand typing cursor */
.brand-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--brand-2);
  margin-left: 3px;
  animation: caretBlink 0.75s steps(1, end) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .typewriter .typewriter-content {
    animation: none;
    clip-path: none;
  }

  .typewriter .typewriter-content::after {
    animation: none;
    opacity: 0;
  }
}


/* Services pricing color override: white prices */
#services .text-3xl span {
  color: #ffffff !important;
}

/* Tighten spacing in key sections */
#home .max-w-7xl.relative { padding-top: 1.5rem; padding-bottom: 4rem; }

@media (min-width: 768px) {
  #home .max-w-7xl.relative { padding-top: 3rem; }
}

#why .grid { gap: .75rem; }
#why .rounded-xl { padding: 1rem; }

#services .grid { gap: 1rem; }
#services .text-3xl { margin-top: .75rem !important; }
#services ul { margin-top: .75rem !important; }
#services article a { margin-top: 1rem !important; }

#logo .rounded-2xl { padding: 1.5rem; }
#logo .flex { gap: .5rem; margin-top: 1rem; }

#contact .grid { gap: 1.25rem; }
#contact .w-20.h-1 { margin-top: .5rem; }
#contact p.text-\[var\(--ink-dim\)\] { margin-top: .25rem; }
#contact .space-y-4 > * + * { margin-top: .75rem; }
#contact .space-y-3 > * + * { margin-top: .75rem; }
#contact form { row-gap: .75rem; }

#privacy-policy .rounded-2xl { padding: 1.5rem; }

/* Decorative moving image for writing box */
@keyframes driftFloat {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(-12px, 8px) rotate(2deg) scale(1.02); }
  100% { transform: translate(-24px, 16px) rotate(-2deg) scale(1); }
}

/* Portfolio horizontal scroller */
.portfolio-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  touch-action: pan-x pan-y pinch-zoom;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.portfolio-scroller[data-dragging="true"] {
  scroll-behavior: auto;
}

@media (hover: hover) {
  .portfolio-scroller {
    cursor: grab;
  }

  .portfolio-scroller[data-dragging="true"] {
    cursor: grabbing;
  }
}

@media (hover: none) {
  .portfolio-scroller {
    cursor: auto;
  }
}

.portfolio-scroller::-webkit-scrollbar {
  height: 8px;
}

.portfolio-scroller::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

.theme-light .portfolio-scroller::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.25);
}

.portfolio-card {
  flex: 0 0 clamp(260px, 78vw, 360px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

@media (min-width: 1024px) {
  .portfolio-card {
    flex-basis: clamp(300px, 32vw, 360px);
  }
}

.portfolio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.portfolio-controls[data-inactive="true"] {
  display: none;
}

@media (min-width: 768px) {
  .portfolio-controls {
    justify-content: flex-end;
  }
}

.portfolio-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.55);
  color: white;
  box-shadow: 0 10px 30px rgba(8, 15, 40, 0.35);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.portfolio-nav-btn:hover:not(:disabled),
.portfolio-nav-btn:focus-visible:not(:disabled) {
  border-color: rgba(255, 107, 0, 0.6);
  background: rgba(15, 23, 42, 0.8);
  transform: translateY(-1px);
}

.portfolio-nav-btn:focus-visible {
  outline: 2px solid rgba(255, 214, 92, 0.6);
  outline-offset: 2px;
}

.portfolio-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.moving-object {
  /* Disable movement globally */
  animation: none;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.12));
}

/* Mobile & tablet: stack portfolio items vertically */
@media (max-width: 1023.98px) {
  .portfolio-scroller {
    display: grid;
    grid-auto-flow: row;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  .portfolio-card {
    flex: 1 1 auto;
    width: 100%;
  }

  /* Hide nav controls on mobile since items are stacked */
  .portfolio-controls {
    display: none !important;
  }
}

/* Offer section: match hero look */
.offer {
  position: relative;
  background-image: url('./offer-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.7);
  background-blend-mode: overlay;
  color: #fff;
}

.offer h1,
.offer h2,
.offer h3 {
  color: #fff;
}

.offer-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.offer-btn {
  background: var(--brand);
  color: #0b0b0f;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(8, 15, 40, 0.35);
}

.offer-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Add desktop spacing before portfolio */
@media (min-width: 1024px) {
  #portfolio {
    margin-top: 20px;
  }
}

/* Add mobile spacing before portfolio */
@media (max-width: 767.98px) {
  #portfolio {
    margin-top: 16px;
  }
}

/* Add tablet spacing before portfolio */
@media (min-width: 768px) and (max-width: 1023.98px) {
  #portfolio {
    margin-top: 18px;
  }
}

/* Generic outline button variant to reuse across sections */
.offer-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.offer-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 107, 0, 0.6);
}

/* Limited offer section: special background + themed text */
#limited-offer {
  position: relative;
  background-image: url('./special-offer-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.65);
  background-blend-mode: overlay;
}

/* Default text to light to match hero styling */
#limited-offer h1,
#limited-offer h2,
#limited-offer h3,
#limited-offer p,
#limited-offer li,
#limited-offer span,
#limited-offer strong { color: #fff !important; }

/* Preserve readability inside white/light badges and panels */
#limited-offer .bg-white, 
#limited-offer .bg-white\/80 { color: #0b0b0f !important; }

/* Convert white feature panel to dark glass */
#limited-offer .grid.max-w-4xl {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Add breathing room below the section */
#limited-offer {
  padding-bottom: 2rem;
}

/* Slight dark overlay for readability */
#limited-offer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
#limited-offer > * { position: relative; z-index: 1; }

/* Harmonize CTAs with brand styling */
#limited-offer .offer-btn {
  background: var(--brand);
  color: #0b0b0f;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(8, 15, 40, 0.35);
}
#limited-offer .offer-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
#limited-offer .offer-btn:focus-visible {
  outline: 2px solid rgba(255, 214, 92, 0.6);
  outline-offset: 2px;
}

#limited-offer .offer-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
#limited-offer .offer-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 107, 0, 0.6);
}

/* Why Choose Us: badge styling to match theme */
#why-choose-us .choose-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-dim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Why Website: background + overlay + frosted panel */
#why-website {
  position: relative;
  background-image: url('./why-website.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.65);
  background-blend-mode: overlay;
}

#why-website::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

#why-website > * { position: relative; z-index: 1; }

/* Ensure text is light over the image */
#why-website h1,
#why-website h2,
#why-website h3,
#why-website p,
#why-website li,
#why-website span,
#why-website strong { color: #fff; }

/* Badge style consistent with theme */
#why-website .website-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Mobile drawer navigation */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(80vw, 320px);
  background: var(--bg);
  border-left: 1px solid var(--line);
  padding: 1rem;
  transform: translateX(100%);
  transition: transform 220ms ease;
  box-shadow: -20px 0 40px rgba(0,0,0,0.35);
}
.mobile-nav[data-open="true"] .mobile-nav-panel { transform: translateX(0); }
