/* ==========================================================================
   Techmines — Redox-Inspired Dark Agency Homepage
   Colors: Primary #12132E | Gold #C9A227 | Dark Theme
   Responsive | Gujarat · NYC · USA
   ========================================================================== */

:root {
  --primary: #12132E;
  --primary-light: #1e2048;
  --dark: #0c0d1a;
  --dark-soft: #16172e;
  --accent: #C9A227;
  --accent-soft: rgba(201, 162, 39, 0.15);
  --text: #FFFFFF;
  --text-muted: #a3a3a3;
  --text-dark: #0F172A;
  --bg: #FFFFFF;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --anim: 1.2s var(--ease-out);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  word-wrap: break-word;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(12, 13, 26, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: 100%;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.nav a:hover { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-cta {
  background: var(--accent);
  color: var(--primary);
  border: none;
}

.btn-cta:hover {
  background: #b8921f;
  transform: translateY(-1px);
}

.header-inner > .btn-cta { display: none; }

.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.header.menu-open .mobile-toggle .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.menu-open .mobile-toggle .bar:nth-child(2) { opacity: 0; }

.header.menu-open .mobile-toggle .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dark);
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease), transform 0.5s var(--ease);
  z-index: 999;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.3s var(--ease);
}

.mobile-nav a:hover { color: var(--accent); }

.mobile-nav .btn-cta { display: inline-flex; margin-top: 1rem; width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 6rem 1rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--primary) 0%, var(--dark) 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 20%, var(--accent-soft) 0%, transparent 60%);
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-title .highlight { color: var(--accent); }

.hero-sub {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.hero-social {
  display: flex;
  gap: 1.5rem;
}

.hero-social a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.hero-social a:hover { color: var(--accent); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.hero .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero .reveal:nth-child(2) { transition-delay: 0.2s; }
.hero .reveal:nth-child(3) { transition-delay: 0.35s; }
.hero .reveal:nth-child(4) { transition-delay: 0.5s; }
.hero .reveal:nth-child(5) { transition-delay: 0.65s; }
.hero .reveal:nth-child(6) { transition-delay: 0.8s; }
.hero .reveal:nth-child(7) { transition-delay: 0.95s; }

/* --------------------------------------------------------------------------
   SECTIONS
   -------------------------------------------------------------------------- */
.section-head { margin-bottom: 2.5rem; }

.section-label {
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-cta { margin-top: 2rem; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  border: none;
}

.btn-primary:hover {
  background: #b8921f;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.25);
}

/* --------------------------------------------------------------------------
   FEATURED WORK
   -------------------------------------------------------------------------- */
.featured {
  padding: 5rem 0;
  background: var(--primary);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.work-card {
  background: var(--dark-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}

.work-card:hover { transform: translateY(-4px); }

.work-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--dark-soft) 0%, var(--primary-light) 100%);
}

.work-meta {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.work-meta h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
}

.work-meta span { font-size: 0.875rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   SERVICES (Numbered)
   -------------------------------------------------------------------------- */
.services {
  padding: 5rem 0;
  background: var(--dark);
}

.services-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-item {
  padding: 2rem;
  background: var(--dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  transition: all 0.5s var(--ease);
}

.service-item:hover {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}

.service-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-item ul {
  list-style: none;
}

.service-item li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* --------------------------------------------------------------------------
   CAPABILITIES
   -------------------------------------------------------------------------- */
.capabilities {
  padding: 5rem 0;
  background: var(--primary);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cap-item {
  padding: 1.25rem;
  background: var(--dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.4s var(--ease);
}

.cap-item:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   STORY
   -------------------------------------------------------------------------- */
.story {
  padding: 5rem 0;
  background: var(--dark);
}

.story-inner {
  max-width: 700px;
}

.story-inner p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.story-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.story-stats .stat {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.story-stats .stat-label {
  width: 100%;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   INDUSTRIES
   -------------------------------------------------------------------------- */
.industries {
  padding: 5rem 0;
  background: var(--primary);
}

.industries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.industry-tag {
  padding: 0.5rem 1rem;
  background: var(--dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}

.industry-tag:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   AWARDS
   -------------------------------------------------------------------------- */
.awards {
  padding: 5rem 0;
  background: var(--dark);
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.award-item {
  padding: 1.5rem;
  background: var(--dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
}

.award-item:hover {
  border-color: var(--accent-soft);
  transform: scale(1.02);
}

.award-name { font-weight: 600; display: block; margin-bottom: 0.25rem; }

.award-detail { font-size: 0.875rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonials {
  padding: 5rem 0;
  background: var(--primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial {
  padding: 2rem;
  background: var(--dark-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease);
}

.testimonial:hover { transform: translateX(4px); }

.testimonial p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.testimonial footer { font-size: 0.875rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   NEWSLETTER
   -------------------------------------------------------------------------- */
.newsletter {
  padding: 5rem 0;
  background: var(--dark);
}

.newsletter-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.newsletter-inner p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 480px;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.875rem 1.25rem;
  background: var(--dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
}

.newsletter-form input::placeholder { color: var(--text-muted); }

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   CONTACT CTA
   -------------------------------------------------------------------------- */
.contact-cta {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--primary) 0%, var(--dark) 100%);
}

.contact-inner {
  text-align: center;
}

.contact-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-inner p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  padding: 3rem 0 1.5rem;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p { font-size: 0.9375rem; color: var(--text-muted); }

.footer-contact { margin-top: 0.5rem; color: var(--accent) !important; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.footer-links a:hover { color: var(--accent); }

.footer-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.7;
  padding-top: 1rem;
}

/* --------------------------------------------------------------------------
   FLOATING CTA
   -------------------------------------------------------------------------- */
.floating-cta {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 998;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
  transition: transform 0.3s var(--ease);
}

.floating-cta:hover { transform: translateY(-2px) scale(1.02); }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (min-width: 320px) {
  .header-inner { padding-left: 0.875rem; padding-right: 0.875rem; }
  .container { padding-left: 0.875rem; padding-right: 0.875rem; }
  .logo { font-size: 1.25rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (min-width: 480px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: repeat(3, 1fr); }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav { display: flex; }
  .mobile-toggle { display: none; }
  .header-inner > .btn-cta { display: inline-flex; }
  .header-inner { padding: 1rem 2rem; }
  .container { padding-left: 2rem; padding-right: 2rem; max-width: 720px; }
  .services-row { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
}

@media (min-width: 1024px) {
  .container { max-width: 960px; padding-left: 2.5rem; padding-right: 2.5rem; }
  .work-grid { grid-template-columns: repeat(4, 1fr); }
  .services-row { grid-template-columns: repeat(4, 1fr); }
  .cap-grid { grid-template-columns: repeat(4, 1fr); }
  .awards-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .container { max-width: 1200px; padding-left: 3rem; padding-right: 3rem; }
}

/* Overflow safety */
html, body { overflow-x: hidden; width: 100%; }
body { min-width: 0; }
.header { width: 100%; min-width: 0; }
main { width: 100%; min-width: 0; overflow-x: hidden; }
.container { width: 100%; min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
