/* ========================================
   DataQuorum — Modern Scientific Consulting
   v2.0 — Vistoso, impactante, premium
   ======================================== */

/* CSS Variables */
:root {
  --primary: #0f766e;
  --primary-light: #14b8a6;
  --primary-dark: #0d5e58;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;
  --dark: #0a1210;
  --dark-card: #111a18;
  --text: #0f1a17;
  --text-secondary: #4a635e;
  --text-light: #c8d6d3;
  --bg: #ffffff;
  --bg-alt: #f4f8f7;
  --bg-dark: #0a1210;
  --border: #d5e0dd;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 1.25rem 0;
}

.nav.scrolled {
  background: rgba(10, 18, 16, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.03em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: #fff;
}

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

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

.nav-links .nav-cta {
  background: var(--accent);
  color: var(--dark) !important;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  transition: var(--transition);
}

.nav-links .nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.nav-links .nav-cta::after {
  display: none;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 16, 0.65) 0%, rgba(10, 18, 16, 0.8) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(15, 118, 110, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 45%),
    url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 1rem;
  animation: fadeInUp 1.2s ease-out;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(15, 118, 110, 0.15);
  border: 1px solid rgba(15, 118, 110, 0.3);
  border-radius: 100px;
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  animation: fadeInUp 1s ease-out 0.2s both;
  max-width: 100%;
  word-wrap: break-word;
}

.hero-title {
  font-size: clamp(2rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  animation: fadeInUp 1s ease-out 0.3s both;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Text Rotator */
.hero-rotator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: clamp(0.85rem, 2.5vw, 1.35rem);
  animation: fadeInUp 1s ease-out 0.5s both;
  flex-wrap: wrap;
  min-height: 2em;
}

.rotator-prefix {
  color: var(--text-light);
  font-weight: 400;
  flex-shrink: 0;
}

.rotator-text {
  color: var(--primary-light);
  font-weight: 700;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.rotator-text .ghost {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.rotator-text .type {
  position: absolute;
  top: 0;
  left: 0;
}

.rotator-text .type::after {
  content: '|';
  position: absolute;
  right: -10px;
  color: var(--accent);
  animation: blink 1s infinite;
}

.hero-desc {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  opacity: 0.85;
  animation: fadeInUp 1s ease-out 0.6s both;
  padding: 0 0.5rem;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.7s both;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--dark);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.25);
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

.btn-full {
  width: 100%;
}

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: fadeInUp 1s ease-out 1s both;
  text-align: center;
}

.scroll-indicator {
  display: inline-block;
}

.scroll-mouse {
  display: block;
  width: 24px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  position: relative;
  margin: 0 auto;
}

.scroll-wheel {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollBounce 2.5s infinite;
}

/* ========================================
   Stats
   ======================================== */
.stats {
  background: var(--dark-card);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(15, 118, 110, 0.08) 0%, transparent 60%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  min-width: 0;
}

.stat-item:hover {
  background: rgba(255,255,255,0.03);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  transition: var(--transition);
}

.stat-item:hover .stat-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.stat-number {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  opacity: 0.7;
  font-weight: 500;
}

.stat-highlight {
  border-left: 1px solid rgba(255,255,255,0.08);
}

.stat-highlight .stat-icon {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-light);
}

.stat-highlight:hover .stat-icon {
  background: var(--accent);
  color: var(--dark);
}

.stat-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 100px;
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* ========================================
   Sections Common
   ======================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.section-header.light {
  color: #fff;
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(15, 118, 110, 0.08);
  border-radius: 100px;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-tag.light {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-light);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

.light .section-title {
  color: #fff;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.7;
}

/* ========================================
   Services
   ======================================== */
.services {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:nth-child(3)::before,
.service-card:nth-child(4)::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-number {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--border);
  letter-spacing: 0.05em;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.service-card:nth-child(3) .service-icon,
.service-card:nth-child(4) .service-icon {
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent-dark);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
}

.service-card:nth-child(3):hover .service-icon,
.service-card:nth-child(4):hover .service-icon {
  background: var(--accent);
  color: var(--dark);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   About
   ======================================== */
.about {
  padding: 5rem 0;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.about-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
}

.about-accent-bar-alt {
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
}

.about-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding-left: 1rem;
}

.about-card ul {
  padding-left: 1rem;
}

.about-card li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.about-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.about-card-alt li::before {
  color: var(--accent);
}

.about-content {
  padding-top: 0.5rem;
}

.about-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-meta {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.meta-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.collaborations {
  margin-top: 1.5rem;
}

.collab-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.collab-flags {
  display: flex;
  gap: 0.5rem;
  font-size: 1.4rem;
  flex-wrap: wrap;
}

.flag {
  display: inline-block;
  transition: var(--transition);
  cursor: default;
}

.flag:hover {
  transform: scale(1.25) rotate(-5deg);
}

/* ========================================
   Stack Técnico
   ======================================== */
.stack {
  padding: 5rem 0;
  background: #fff;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.stack-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.stack-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.stack-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.stack-card:hover .stack-icon {
  background: var(--primary);
  color: #fff;
}

.stack-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(15, 118, 110, 0.08);
  border-radius: 100px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 500;
  transition: var(--transition);
}

.tag:hover {
  background: var(--primary);
  color: #fff;
}

/* ========================================
   Projects
   ======================================== */
.projects {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}

.project-card:hover .project-placeholder {
  transform: scale(1.05);
}

.project-placeholder svg {
  opacity: 0.6;
  transition: var(--transition);
}

.project-card:hover .project-placeholder svg {
  opacity: 1;
  transform: scale(1.15);
}

.project-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.project-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   Process
   ======================================== */
.process {
  padding: 5rem 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(15, 118, 110, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 55%);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.step {
  flex: 1;
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.75;
  line-height: 1.7;
}

.step-connector {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-top: 4rem;
  flex-shrink: 0;
  opacity: 0.35;
}

/* ========================================
   Contact
   ======================================== */
.contact {
  padding: 5rem 0;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 1rem 0 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.contact-item:hover {
  background: var(--bg-alt);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.contact-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* Contact CTA */
.contact-cta-wrapper {
  display: flex;
  align-items: stretch;
}

.contact-cta-box {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.contact-cta-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.contact-cta-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.btn-email {
  margin-bottom: 1.5rem;
}

.contact-cta-meta {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.contact-cta-meta p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.contact-cta-meta ul {
  list-style: none;
  padding: 0;
}

.contact-cta-meta li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.contact-cta-meta li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--dark);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

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

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.4; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

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

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========================================
   Scroll Reveal
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive — Tablet (max-width: 992px)
   ======================================== */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-highlight {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    grid-column: span 3;
    margin-top: 1rem;
  }

  .process-steps {
    flex-direction: column;
    gap: 0;
  }

  .step-connector {
    width: 2px;
    height: 30px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--primary), var(--accent));
  }

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

  .footer-brand {
    grid-column: span 2;
  }
}

/* ========================================
   Responsive — Mobile (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
  /* Base */
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 1rem;
  }

  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark-card);
    flex-direction: column;
    padding: 4.5rem 1.5rem 2rem;
    gap: 1.25rem;
    transition: right 0.3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.4);
    align-items: flex-start;
  }

  .nav-links.active {
    right: 0;
  }

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

  /* Hero */
  .hero-content {
    padding: 0 1rem;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 0.4rem 0.85rem;
    margin-bottom: 1rem;
    max-width: 100%;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
  }

  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.15;
  }

  .hero-rotator {
    flex-direction: column;
    gap: 0.25rem;
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .btn {
    width: 100%;
    max-width: 260px;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .hero-scroll {
    bottom: 1.5rem;
  }

  /* Stats */
  .stats {
    padding: 2.5rem 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-item {
    padding: 0.75rem 0.25rem;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
  }

  .stat-icon svg {
    width: 20px;
    height: 20px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .stat-highlight {
    grid-column: span 2;
    padding: 0.75rem;
  }

  .stat-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }

  /* Sections */
  .services,
  .about,
  .stack,
  .projects,
  .process,
  .contact {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-desc {
    font-size: 0.9rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-number {
    top: 1rem;
    right: 1rem;
  }

  .service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
  }

  .service-card h3 {
    font-size: 1.05rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }

  /* About */
  .about-grid {
    gap: 2rem;
  }

  .about-card {
    padding: 1.25rem;
  }

  .about-card h3 {
    font-size: 0.95rem;
  }

  .about-card li {
    font-size: 0.8rem;
  }

  .about-content p {
    font-size: 0.9rem;
  }

  .about-meta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
  }

  .meta-item {
    text-align: center;
    flex: 0 0 calc(33.333% - 1rem);
  }

  .meta-value {
    font-size: 1.3rem;
  }

  .meta-label {
    font-size: 0.65rem;
  }

  .collab-flags {
    gap: 0.4rem;
    font-size: 1.2rem;
  }

  /* Stack */
  .stack-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stack-card {
    padding: 1.25rem;
  }

  .stack-icon {
    width: 40px;
    height: 40px;
  }

  .stack-card h3 {
    font-size: 0.95rem;
  }

  .tag {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-image {
    height: 180px;
  }

  .project-info {
    padding: 1.25rem;
  }

  .project-info h3 {
    font-size: 1rem;
  }

  .project-info p {
    font-size: 0.82rem;
  }

  /* Process */
  .step {
    padding: 1rem;
  }

  .step-number {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .step h3 {
    font-size: 1rem;
  }

  .step p {
    font-size: 0.85rem;
  }

  /* Contact */
  .contact-grid {
    gap: 2rem;
  }

  .contact-item {
    padding: 0.75rem;
  }

  .contact-icon {
    width: 36px;
    height: 36px;
  }

  .contact-icon svg {
    width: 18px;
    height: 18px;
  }

  .contact-label {
    font-size: 0.65rem;
  }

  .contact-value {
    font-size: 0.9rem;
  }

  .contact-cta-box {
    padding: 1.5rem;
  }

  .contact-cta-box h3 {
    font-size: 1.1rem;
  }

  .contact-cta-desc {
    font-size: 0.9rem;
  }

  .contact-cta-meta li {
    font-size: 0.8rem;
  }

  /* Footer */
  .footer {
    padding: 2.5rem 0 1.25rem;
  }

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

  .footer-brand {
    grid-column: span 1;
  }
}

/* ========================================
   Responsive — Small Mobile (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .hero-badge {
    font-size: 0.6rem;
    padding: 0.35rem 0.7rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.6rem;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
  }

  .stat-icon svg {
    width: 18px;
    height: 18px;
  }

  .about-meta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1rem 0.5rem;
  }

  .meta-item {
    flex: 0 0 30%;
    min-width: 80px;
  }

  .meta-value {
    font-size: 1.2rem;
  }

  .collab-flags {
    gap: 0.3rem;
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .service-card,
  .stack-card,
  .project-card {
    border-radius: 12px;
  }
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}
