/* ============================================
   Bold Horse - App Development Studio
   Color Scheme: Rust + Violet on Deep Navy
   Unique accent (#c2410c + #7c3aed) - not used
   in any previous deployed site.
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #0a0e1a;
  color: #e2e8f0;
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Colors --- */
:root {
  --bg: #0a0e1a;
  --bg-alt: #0f1322;
  --bg-card: #111827;
  --bg-card-hover: #1a2235;
  --accent: #c2410c;       /* Warm rust - primary */
  --accent-light: #ea580c;
  --accent-glow: rgba(194, 65, 12, 0.25);
  --secondary: #7c3aed;    /* Violet - secondary */
  --secondary-light: #a78bfa;
  --secondary-glow: rgba(124, 58, 237, 0.2);
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #475569;
  --border: #1e293b;
  --border-light: #334155;
  --gradient-1: linear-gradient(135deg, #c2410c, #7c3aed);
  --gradient-2: linear-gradient(135deg, #ea580c, #a78bfa);
}

/* --- Typography --- */
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; }
p { margin-bottom: 1rem; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(10, 14, 26, 0.95);
  border-bottom-color: var(--border);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.4rem; font-weight: 700; letter-spacing: -0.5px;
}
.logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--gradient-1);
  border-radius: 8px;
  font-size: 1.2rem; color: #fff;
}
.logo-text { color: #f1f5f9; }
.logo-text .accent { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  color: #fff; background: rgba(124, 58, 237, 0.1);
}
.nav-link.active { color: var(--secondary-light); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 30%, rgba(194, 65, 12, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 70%, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 6px 16px;
  border: 1px solid var(--accent); border-radius: 100px;
  font-size: 0.8rem; font-weight: 500; color: var(--accent-light);
  margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase;
}
.hero-title {
  font-size: 3.2rem; font-weight: 800; line-height: 1.1;
  margin-bottom: 20px; letter-spacing: -1px;
}
.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; max-width: 520px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600;
  transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--gradient-1); color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px var(--accent-glow); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border-light);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-light); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* --- Code Visual --- */
.hero-visual { display: flex; justify-content: center; }
.code-block {
  background: rgba(15, 19, 34, 0.9); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 32px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem; line-height: 2;
  width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
}
.code-keyword { color: var(--secondary-light); }
.code-str { color: var(--accent-light); }
.code-var { color: #fbbf24; }
.code-fn { color: #34d399; }
.code-comment { color: var(--text-dim); }
.code-space { display: inline-block; width: 20px; }

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.7rem; color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase;
}
.scroll-dot {
  width: 4px; height: 16px; border-radius: 2px;
  background: var(--gradient-1);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.5; }
}

/* --- Section Shared --- */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-label {
  display: inline-block; padding: 4px 14px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; color: var(--secondary-light);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.section-title {
  font-size: 2.4rem; font-weight: 700; margin-bottom: 16px;
  background: linear-gradient(135deg, #f1f5f9, #94a3b8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

/* --- Services Grid --- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  transition: all 0.4s ease;
  opacity: 0; transform: translateY(30px);
}
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(194, 65, 12, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(194, 65, 12, 0.08);
}
.service-icon { width: 52px; height: 52px; margin-bottom: 20px; color: var(--accent-light); }
.service-icon svg { width: 100%; height: 100%; }
.service-title { font-size: 1.2rem; margin-bottom: 12px; }
.service-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* --- Stats --- */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.04), rgba(124, 58, 237, 0.04));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat-item { position: relative; }
.stat-number {
  font-size: 3rem; font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-plus, .stat-percent {
  font-size: 1.8rem; font-weight: 700;
  background: var(--gradient-2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { display: block; color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }

/* --- Projects --- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: all 0.4s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 12px 40px var(--secondary-glow);
}
.project-preview {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.project-preview-content { display: flex; gap: 12px; }
.app-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: #fff;
}
.project-info { padding: 24px; }
.project-tag {
  display: inline-block; padding: 3px 10px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 6px;
  font-size: 0.7rem; color: var(--secondary-light); font-weight: 500;
  margin-bottom: 10px;
}
.project-name { font-size: 1.15rem; margin-bottom: 8px; }
.project-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

/* --- About --- */
.about-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start;
}
.about-text p { color: var(--text-muted); margin-bottom: 1.2rem; }
.about-details { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.detail-item { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-muted); }
.detail-item strong { color: var(--text); display: inline-block; min-width: 130px; }
.about-visual { display: flex; justify-content: center; }
.tech-stack { width: 100%; max-width: 400px; }
.tech-label { font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; color: var(--text); }
.tech-items { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-item {
  padding: 8px 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem; color: var(--text-muted);
  transition: all 0.3s ease;
}
.tech-item:hover { border-color: var(--accent); color: var(--accent-light); }

/* --- Contact Section --- */
.contact-section { background: var(--bg-alt); }
.contact-wrapper {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px;
  max-width: 900px; margin: 0 auto;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 12px;
}
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(194, 65, 12, 0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--accent-light);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item strong { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-item a { color: var(--text); font-size: 0.9rem; transition: color 0.2s; }
.contact-item a:hover { color: var(--accent-light); }
.contact-item span { color: var(--text); font-size: 0.9rem; }

/* --- Form --- */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { position: relative; }
.form-input {
  width: 100%; padding: 14px 18px;
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 0.95rem;
  outline: none; transition: all 0.3s ease;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-textarea { resize: vertical; min-height: 120px; }

/* --- CTA Section --- */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.06), rgba(124, 58, 237, 0.06));
  text-align: center;
}
.cta-title { font-size: 2rem; font-weight: 700; margin-bottom: 12px; background: linear-gradient(135deg, #f1f5f9, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cta-desc { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 28px; }

/* --- Footer --- */
.footer { padding: 60px 0 30px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-desc { color: var(--text-muted); font-size: 0.9rem; margin-top: 16px; max-width: 360px; }
.footer-links h4 { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links a { display: block; color: var(--text); font-size: 0.9rem; padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; color: var(--text-dim); font-size: 0.85rem; }

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 140px 0 60px; text-align: center;
  background: linear-gradient(180deg, rgba(194, 65, 12, 0.04), transparent);
}
.page-title {
  font-size: 2.8rem; font-weight: 800;
  margin-bottom: 16px; letter-spacing: -1px;
  background: linear-gradient(135deg, #f1f5f9, #94a3b8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* --- Detailed Services Page --- */
.services-detailed { display: flex; flex-direction: column; gap: 24px; }
.service-detailed-card {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px;
  padding: 28px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 14px;
  transition: all 0.3s ease;
}
.service-detailed-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 8px 30px var(--secondary-glow);
}
.service-detailed-icon { width: 64px; color: var(--accent-light); }
.service-detailed-icon svg { width: 100%; height: 100%; }
.service-detailed-body h3 { font-size: 1.2rem; margin-bottom: 12px; }
.service-detailed-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin: 0; }

/* --- About Full Page --- */
.about-full { max-width: 800px; margin: 0 auto; }
.about-full-text h2 { font-size: 1.6rem; margin: 32px 0 16px; color: var(--text); }
.about-full-text h2:first-child { margin-top: 0; }
.about-full-text p { color: var(--text-muted); line-height: 1.8; font-size: 0.95rem; }
.about-list { list-style: none; }
.about-list li {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; color: var(--text-muted);
}
.about-list li strong { color: var(--text); min-width: 150px; display: inline-block; }
.about-list li a { color: var(--secondary-light); }
.about-list li a:hover { text-decoration: underline; }

/* --- Privacy / Terms Page --- */
.policy-content { max-width: 800px; margin: 0 auto; }
.policy-content h2 { font-size: 1.4rem; margin: 36px 0 14px; color: var(--text); }
.policy-content h2:first-of-type { margin-top: 0; }
.policy-content p { color: var(--text-muted); line-height: 1.8; font-size: 0.95rem; margin-bottom: 1rem; }
.policy-content ul { margin: 0 0 1.5rem 1.5rem; }
.policy-content li { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 4px; }
.policy-content li strong { color: var(--text); }

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .hero-title { font-size: 2.4rem; }
  .section-title { font-size: 2rem; }
  .page-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column; padding: 20px; gap: 4px;
    transform: translateY(-120%); opacity: 0;
    transition: all 0.3s ease; pointer-events: none;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { width: 100%; padding: 14px 16px; font-size: 1rem; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 2.2rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 1.8rem; }
  .service-detailed-card { grid-template-columns: 1fr; }
  .service-detailed-icon { width: 48px; }
}

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }