/* ============================================
   DataCore - Boutique BI Firm
   Professional Website Stylesheet
   ============================================ */

/* ─── CSS Custom Properties ─── */
:root {
  /* Colors */
  --primary-dark: #0a1628;
  --primary-navy: #0d1b2a;
  --primary-blue: #1b2d4a;
  --accent-blue: #0066ff;
  --accent-cyan: #00b4d8;
  --accent-teal: #00d4aa;
  --accent-gradient: linear-gradient(135deg, #0066ff 0%, #00b4d8 50%, #00d4aa 100%);
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-inverse: #ffffff;
  --bg-white: #ffffff;
  --bg-light: #f7f8fc;
  --bg-dark: #0a1628;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-dark: #1e3a5f;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(0,102,255,0.15);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-padding: 120px;
  --container-max: 1280px;
  --container-padding: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

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

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-white);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ─── Utilities ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding: var(--section-padding) 0;
}

.section__tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: rgba(0, 102, 255, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.btn--outline {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--text-inverse);
}

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

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ─── Scroll Animations ─── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-base);
  padding: 20px 0;
}

.header.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.nav__logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: all var(--transition-base);
}

.nav__logo-img:hover {
  opacity: 0.9;
}

.header.scrolled .nav__logo-img {
  height: 38px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav__link:hover {
  color: var(--text-inverse);
  background: rgba(255, 255, 255, 0.1);
}

.nav__link--cta {
  background: var(--accent-gradient);
  color: var(--text-inverse) !important;
  padding: 10px 24px;
  font-weight: 600;
}

.nav__link--cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
  background: var(--accent-gradient);
}

.nav__toggle,
.nav__close {
  display: none;
  color: var(--text-inverse);
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 102, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(0, 180, 216, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(0, 212, 170, 0.08) 0%, transparent 50%);
}

.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Hero Logo Watermark */
.hero__logo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.hero__logo-watermark img {
  width: 500px;
  height: auto;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.2);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 32px;
}

.badge__dot {
  width: 8px;
  height: 8px;
  background: var(--accent-teal);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-inverse);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
  text-align: center;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-inverse);
  letter-spacing: -0.03em;
}

.stat__suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-indicator__mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator__wheel {
  width: 3px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 3px;
  animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: var(--bg-light);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__content .section__title {
  text-align: left;
}

.about__text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about__highlights {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.highlight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.highlight__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 102, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}

.highlight strong {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.highlight p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* About Logo Showcase */
.about__logo-showcase {
  text-align: center;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.about__logo-showcase:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about__logo-img {
  width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-md);
  transition: transform var(--transition-base);
}

.about__logo-img:hover {
  transform: scale(1.03);
}

/* About Card Stack */
.about__visual {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.about__card-stack {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

.about__card--1 {
  position: relative;
}

.about__card--2 {
  position: relative;
}

.about__card--3 {
  position: relative;
}

.about__card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  margin-bottom: 16px;
}

.about__card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.about__card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  background: var(--bg-white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all var(--transition-base);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.service-card:hover::before {
  opacity: 1;
}

.service-card__number {
  position: absolute;
  top: 24px;
  right: 32px;
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0, 102, 255, 0.06);
  line-height: 1;
}

.service-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(0, 102, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 24px;
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
  background: var(--accent-gradient);
  color: var(--text-inverse);
}

.service-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-card__list {
  margin-bottom: 24px;
}

.service-card__list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gradient);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-blue);
  transition: gap var(--transition-base);
}

.service-card__link:hover {
  gap: 12px;
}

/* ============================================
   INDUSTRIES SECTION
   ============================================ */
.industries {
  background: var(--bg-dark);
}

.industries .section__tag {
  color: var(--accent-cyan);
  background: rgba(0, 180, 216, 0.1);
}

.industries .section__title {
  color: var(--text-inverse);
}

.industries .section__subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.industries__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.industry-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  transition: transform var(--transition-base);
}

.industry-card:hover {
  transform: translateY(-4px);
}

.industry-card__bg {
  position: absolute;
  inset: 0;
  transition: transform var(--transition-slow);
}

.industry-card:hover .industry-card__bg {
  transform: scale(1.05);
}

.industry-card__bg--banking {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b3a5c 50%, #0a2540 100%);
}

.industry-card__bg--airlines {
  background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0d2137 100%);
}

.industry-card__bg--telecom {
  background: linear-gradient(135deg, #0d1b2a 0%, #234e6f 50%, #0a2540 100%);
}

.industry-card__bg--fmcg {
  background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #0d2137 100%);
}

.industry-card__content {
  position: relative;
  z-index: 1;
  padding: 36px;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.6) 100%);
  width: 100%;
}

.industry-card__icon {
  color: var(--accent-cyan);
  margin-bottom: 16px;
  opacity: 0.8;
}

.industry-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: 10px;
}

.industry-card__desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 16px;
}

.industry-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.industry-card__tags span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 180, 216, 0.3);
  color: var(--accent-cyan);
  background: rgba(0, 180, 216, 0.05);
}

/* ============================================
   CASE STUDY SECTION
   ============================================ */
.case-study {
  background: var(--bg-light);
}

.case-study__wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.case-study__label {
  padding: 32px 48px 0;
}

.case-study__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.case-study__content {
  padding: 32px 48px 48px;
}

.case-study__client-logo {
  margin-bottom: 24px;
}

.case-study__client-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: rgba(0, 102, 255, 0.06);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
}

.case-study__content .section__title {
  text-align: left;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.case-study__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.case-study__results {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.result {
  text-align: center;
}

.result__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-blue);
}

.result__suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.result__label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.case-study__highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cs-highlight svg {
  flex-shrink: 0;
  color: var(--accent-teal);
}

/* Dashboard Mockup */
.case-study__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--bg-dark);
}

.cs-dashboard {
  width: 100%;
  max-width: 420px;
  background: #111c2e;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cs-dashboard__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cs-dashboard__dots {
  display: flex;
  gap: 6px;
}

.cs-dashboard__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.cs-dashboard__dots span:nth-child(1) { background: #ff5f57; }
.cs-dashboard__dots span:nth-child(2) { background: #ffbd2e; }
.cs-dashboard__dots span:nth-child(3) { background: #28c840; }

.cs-dashboard__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.cs-dashboard__body {
  padding: 20px;
}

.cs-dashboard__row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.cs-metric {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.cs-metric__label {
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.cs-metric__value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-inverse);
}

.cs-metric__change {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 4px;
}

.cs-metric__change--up {
  color: #28c840;
  background: rgba(40, 200, 64, 0.1);
}

.cs-metric--small {
  padding: 10px;
}

.cs-metric--small .cs-metric__value {
  font-size: 0.95rem;
}

/* Dashboard Chart */
.cs-dashboard__chart {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
}

.cs-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}

.cs-bar {
  flex: 1;
  height: var(--height);
  background: var(--accent-gradient);
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  animation: grow-bar 1s ease-out forwards;
}

.cs-bar:hover {
  opacity: 1;
}

@keyframes grow-bar {
  from { height: 0; }
  to { height: var(--height); }
}

/* ============================================
   WHY US SECTION
   ============================================ */
.why-us {
  background: var(--bg-white);
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: all var(--transition-base);
}

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

.why-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0, 102, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 20px;
  transition: all var(--transition-base);
}

.why-card:hover .why-card__icon {
  background: var(--accent-gradient);
  color: var(--text-inverse);
}

.why-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   TECH STACK SECTION
   ============================================ */
.tech-stack {
  background: var(--bg-light);
  padding: 80px 0;
}

.tech__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.tech-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 140px;
  max-width: 170px;
  height: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  padding: 20px;
  text-align: center;
  gap: 8px;
}

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

.tech-logo__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}

.tech-logo:hover .tech-logo__icon {
  transform: scale(1.15);
}

.tech-logo span {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.tech-logo small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  background: var(--bg-dark);
}

.contact .section__tag {
  color: var(--accent-cyan);
  background: rgba(0, 180, 216, 0.1);
}

.contact .section__title {
  color: var(--text-inverse);
  text-align: left;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.contact__detail svg {
  flex-shrink: 0;
  color: var(--accent-cyan);
}

.contact__detail a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.contact__detail a:hover {
  color: var(--accent-cyan);
}

.contact__social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

/* Contact Form */
.contact__form-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.form__input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-inverse);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form__input:focus {
  border-color: var(--accent-blue);
  background: rgba(0, 102, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form__select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255,255,255,0.4)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form__select option {
  background: var(--primary-navy);
  color: var(--text-inverse);
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__form .btn--primary {
  margin-top: 8px;
  padding: 16px 32px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #060e1a;
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo-link {
  display: inline-block;
}

.footer__logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition-fast);
}

.footer__logo-img:hover {
  opacity: 0.85;
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.6;
}

.footer__links h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--accent-cyan);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.footer__bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--accent-cyan);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__visual {
    order: -1;
  }

  .about__card-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

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

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

  .case-study__grid {
    grid-template-columns: 1fr;
  }

  .case-study__visual {
    padding: 32px;
  }

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

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --container-padding: 20px;
  }

  /* Mobile Navigation */
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right var(--transition-base);
    z-index: 1000;
  }

  .nav__menu.show {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .nav__link {
    font-size: 1.2rem;
    padding: 12px 24px;
  }

  .nav__toggle {
    display: block;
    z-index: 1001;
  }

  .nav__close {
    display: block;
    position: absolute;
    top: 24px;
    right: 24px;
  }

  /* Nav logo mobile */
  .nav__logo-img {
    height: 40px;
  }

  .header.scrolled .nav__logo-img {
    height: 32px;
  }

  .hero__logo-watermark img {
    width: 300px;
  }

  /* Hero Mobile */
  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .stat__number {
    font-size: 2rem;
  }

  /* About Mobile */
  .about__card-stack {
    grid-template-columns: 1fr;
  }

  /* Services Mobile */
  .service-card {
    padding: 28px;
  }

  /* Case Study Mobile */
  .case-study__content {
    padding: 24px;
  }

  .case-study__results {
    flex-direction: column;
    gap: 16px;
  }

  .result {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .result__label {
    margin-top: 0;
  }

  /* Why Us Mobile */
  .why-us__grid {
    grid-template-columns: 1fr;
  }

  /* Tech Stack Mobile */
  .tech__logos {
    gap: 12px;
  }

  .tech-logo {
    width: calc(50% - 6px);
  }

  /* Contact Mobile */
  .contact__form-wrapper {
    padding: 24px;
  }

  /* Footer Mobile */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .section__title {
    font-size: 1.75rem;
  }

  .hero__badge {
    font-size: 0.7rem;
    padding: 6px 14px;
  }

  .hero__subtitle {
    font-size: 1rem;
  }
}

/* ─── Particle Animation ─── */
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(0, 180, 216, 0.4);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
  }
}

/* ─── Selection ─── */
::selection {
  background: rgba(0, 102, 255, 0.2);
  color: var(--text-primary);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}
