/* ============================================
   TaskThread - Global Styles
   AI Automation Agency
   ============================================ */

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

:root {
  --color-bg: #fafafa;
  --color-bg-dark: #0a0a0a;
  --color-text: #1a1a1a;
  --color-text-light: #f5f5f5;
  --color-text-muted: #6b6b6b;
  --color-accent: #3b5cff;
  --color-accent-glow: rgba(59, 92, 255, 0.15);
  --color-border: #e0e0e0;
  --color-card-bg: #ffffff;
  --font-heading: 'Inter Tight', 'Inter', -apple-system, sans-serif;
  --font-body: 'DM Sans', 'Inter', -apple-system, sans-serif;
  --transition-smooth: 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
  --transition-fast: 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
  --max-width: 1280px;
  --nav-height: 80px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.section-number {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  display: block;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.nav.scrolled {
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-text);
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active:not(.btn) {
  color: var(--color-text-muted);
}

.nav-links a.active:not(.btn)::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

/* Bigger Let's Talk nav bubble */
.nav-links .btn.btn-primary {
  padding: 0.75rem 2.25rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff !important;
}

.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--color-accent-glow);
}

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

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1.125rem 2.75rem;
  font-size: 1rem;
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- Mobile Menu --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-fast);
  display: block;
}

/* --- Cards --- */
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all var(--transition-fast);
}

.card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.card-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(59, 92, 255, 0.08);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.card h3 {
  margin-bottom: 1rem;
}

.card p {
  font-size: 1rem;
}

/* --- Geometric Decorations (Model Workshop inspired) --- */
.geo-shape {
  position: absolute;
  overflow: hidden;
  opacity: 0.9;
}

.geo-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.geo-chevron {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.geo-arrow {
  clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%);
}

.geo-triangle {
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px var(--color-accent-glow); }
  50% { box-shadow: 0 0 60px var(--color-accent-glow); }
}

.animate-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.65, 0.05, 0.36, 1),
              transform 0.8s cubic-bezier(0.65, 0.05, 0.36, 1);
}

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

/* --- Footer --- */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
}

.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links a:hover {
  color: var(--color-accent);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  section {
    padding: 5rem 0;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
  }

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

  .nav-links a {
    font-size: 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .container {
    padding: 0 1.25rem;
  }

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

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