/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --orange:       #E85D04;
  --orange-dark:  #C44D02;
  --orange-light: #FF7A2F;
  --orange-dim:   rgba(232,93,4,0.12);
  --black:        #080808;
  --dark:         #0E0E0E;
  --dark-2:       #181818;
  --dark-3:       #242424;
  --dark-4:       #2e2e2e;
  --text:         #111111;
  --text-2:       #444444;
  --text-3:       #777777;
  --border:       #e8e8e8;
  --border-dark:  rgba(255,255,255,0.08);
  --bg:           #ffffff;
  --bg-alt:       #f7f7f7;
  --white:        #ffffff;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--orange);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right {
  transform: translateY(28px) translateX(20px);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ===== TYPOGRAPHY UTILITIES ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.section-label.light { color: rgba(255,255,255,0.5); }

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}
h2.light { color: var(--white); }

.section-sub {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 540px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 3.5rem;
}
.section-header.center,
.section-header .section-label.center {
  text-align: center;
}
.section-header.center h2,
.section-header.center .section-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section { padding: 6rem 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.78rem 1.75rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.1px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.22s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,93,4,0.3);
}
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border-color: transparent;
  padding-left: 0;
}
.btn-ghost:hover { color: var(--white); }
.btn-full { width: 100%; text-align: center; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; width: 100%;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s;
}
.navbar.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 38px; width: auto; filter: brightness(0) invert(1); }

.nav-links {
  display: flex; align-items: center; gap: 2.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.22s ease;
  border-radius: 2px;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 6px !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--orange-dark) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: white; border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 8rem 2rem 6rem;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(232,93,4,0.12) 0%, transparent 65%);
  top: -150px; right: -100px;
  pointer-events: none; z-index: 0;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  max-width: 1160px; margin: 0 auto;
}
.eyebrow {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%; flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,93,4,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(232,93,4,0); }
}
.hero-content h1 {
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--white);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.text-orange { color: var(--orange); }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75; max-width: 460px;
  margin-bottom: 2.5rem;
}
.hero-cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

/* Hero floating cards */
.hero-visual {
  position: relative; height: 340px;
}
.hero-orb {
  position: absolute;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(232,93,4,0.15) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(232,93,4,0.1);
}
.hero-card {
  position: absolute;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  display: flex; align-items: center; gap: 1rem;
  min-width: 185px;
  animation: floatCard 4s ease-in-out infinite;
}
.hc-1 { top: 10%; left: 5%; animation-delay: 0s; }
.hc-2 { top: 42%; right: 0%; animation-delay: 1.3s; }
.hc-3 { bottom: 8%; left: 15%; animation-delay: 0.7s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hc-icon {
  width: 40px; height: 40px;
  background: var(--orange-dim);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange); flex-shrink: 0;
}
.hc-label { font-size: 0.7rem; color: rgba(255,255,255,0.45); font-weight: 500; margin-bottom: 0.15rem; }
.hc-val { font-size: 1.4rem; font-weight: 800; color: var(--white); line-height: 1; }

.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  z-index: 2;
}
.hero-scroll-hint span {
  font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ===== SERVICES ===== */
.section-header { margin-bottom: 3.5rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.svc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--orange);
  transition: height 0.3s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d8d8d8; }
.svc-card:hover::before { height: 100%; }

.svc-card.svc-featured {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}
.svc-card.svc-featured::before { display: none; }
.svc-card.svc-featured:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(232,93,4,0.35); }
.svc-card.svc-featured h3,
.svc-card.svc-featured p { color: white; }
.svc-card.svc-featured .svc-num { color: rgba(255,255,255,0.25); }
.svc-card.svc-featured .svc-icon { background: rgba(255,255,255,0.15); color: white; }

.svc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.1rem; }
.svc-num { font-size: 0.7rem; font-weight: 800; letter-spacing: 1px; color: var(--border); }
.svc-icon {
  width: 38px; height: 38px;
  background: var(--orange-dim);
  color: var(--orange);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.svc-card h3 {
  font-size: 0.97rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.5rem;
  line-height: 1.3;
}
.svc-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }
.svc-badge {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

/* ===== ABOUT ===== */
.about-section { background: var(--bg-alt); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-left p {
  color: var(--text-2); margin-bottom: 1rem;
  font-size: 1.02rem; line-height: 1.7;
}
.about-metrics {
  display: flex; gap: 2.5rem;
  margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.metric { display: flex; flex-direction: column; gap: 0.25rem; }
.metric-val {
  font-size: 2.2rem; font-weight: 900;
  color: var(--orange); letter-spacing: -0.03em; line-height: 1;
}
.metric-label { font-size: 0.78rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }

.capabilities-box {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}
.capabilities-box h3 {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1.5rem;
}
.cap-list { display: flex; flex-direction: column; gap: 0; }
.cap-list li {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.88rem; color: rgba(255,255,255,0.65);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-dark);
  line-height: 1.4;
}
.cap-list li:last-child { border-bottom: none; }
.cap-dot {
  width: 5px; height: 5px;
  background: var(--orange);
  border-radius: 50%; flex-shrink: 0;
}

/* ===== DELIVERY ===== */
.delivery-section { background: var(--dark); }

.timeline {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 3rem;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 26px; left: 0; right: 0;
  height: 1px; background: var(--border-dark);
}
.tl-item {
  padding: 0 1.5rem 0 0;
  position: relative;
}
.tl-phase {
  display: inline-block;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange);
  background: var(--dark);
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(232,93,4,0.3);
  border-radius: 20px;
  position: relative; z-index: 2;
  margin-bottom: 1.75rem;
}
.tl-connector {
  display: none;
}
.tl-duration {
  font-size: 0.75rem; font-weight: 600;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}
.tl-body h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.5rem;
  line-height: 1.3;
}
.tl-body p {
  font-size: 0.86rem; color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.port-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.22s, box-shadow 0.22s;
}
.port-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.port-card.port-featured {
  grid-column: span 2;
  background: var(--dark);
  border-color: var(--dark-3);
}
.port-card.port-featured h3,
.port-card.port-featured p { color: white; }
.port-card.port-featured p { color: rgba(255,255,255,0.55); }
.port-card.port-featured .port-tag { background: var(--orange-dim); color: var(--orange-light); }

.port-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--orange); background: var(--orange-dim);
  padding: 0.22rem 0.6rem; border-radius: 4px;
  margin-bottom: 0.85rem;
}
.port-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--text); line-height: 1.3; }
.port-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

.port-stat {
  display: flex; align-items: baseline; gap: 0.75rem;
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
}
.port-stat-num { font-size: 3rem; font-weight: 900; color: var(--orange); line-height: 1; letter-spacing: -0.03em; }
.port-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ===== WHY TEXSPHERE ===== */
.why-section { background: var(--bg-alt); }
.why-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 5rem; align-items: start;
}
.why-left p { color: var(--text-2); font-size: 1.02rem; line-height: 1.7; margin-bottom: 0.75rem; }
.why-list {
  display: flex; flex-direction: column; gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why-list li {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.18s;
}
.why-list li:last-child { border-bottom: none; }
.why-list li:hover { background: var(--bg-alt); }
.why-check {
  width: 26px; height: 26px; flex-shrink: 0;
  background: var(--orange); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 0.1rem;
}
.why-list li > div:last-child { display: flex; flex-direction: column; gap: 0.15rem; }
.why-list strong { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.why-list span { font-size: 0.84rem; color: var(--text-2); line-height: 1.5; }

/* ===== CONTACT ===== */
.contact-section { background: var(--dark); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 5rem; align-items: start;
}
.contact-left h2 { margin-bottom: 1rem; }
.contact-left p { color: rgba(255,255,255,0.5); font-size: 1.02rem; line-height: 1.7; margin-bottom: 2rem; }
.contact-detail {
  display: flex; align-items: center; gap: 0.85rem;
}
.cd-icon {
  width: 42px; height: 42px;
  background: var(--orange-dim);
  border: 1px solid rgba(232,93,4,0.2);
  border-radius: 9px; color: var(--orange);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-detail a { color: rgba(255,255,255,0.8); font-size: 1rem; font-weight: 500; }
.contact-detail a:hover { color: var(--orange-light); }

.contact-form {
  background: var(--dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.15rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 0.3px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
  border-radius: 7px;
  font-size: 0.9rem; font-family: inherit;
  color: var(--white); outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  background: var(--dark-4);
}

/* ===== FOOTER ===== */
.footer { background: var(--black); padding: 4rem 0 2rem; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 2rem;
}
.footer-brand img { height: 34px; filter: brightness(0) invert(1); margin-bottom: 0.75rem; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.85rem; font-weight: 500; }
.footer-tagline { color: rgba(255,255,255,0.25) !important; font-size: 0.78rem !important; margin-top: 0.25rem; }

.footer-nav h4,
.footer-contact h4 {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 1.25rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { color: rgba(255,255,255,0.5); font-size: 0.875rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--white); }
.footer-contact a { color: rgba(255,255,255,0.5); font-size: 0.875rem; transition: color 0.2s; }
.footer-contact a:hover { color: var(--orange-light); }
.footer-bottom { text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.2); font-size: 0.8rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .port-card.port-featured { grid-column: span 2; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .timeline::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; width: 100%;
    background: rgba(8,8,8,0.97);
    backdrop-filter: blur(16px);
    padding: 1.5rem 2rem; gap: 1.25rem;
    border-top: 1px solid var(--border-dark);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-metrics { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }

  h2 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .section { padding: 4.5rem 0; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .port-card.port-featured { grid-column: span 1; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}
