/*
Theme Name: NextFinding
Theme URI: https://nextfinding.com
Author: Studio Yurang
Description: 넥스트파인딩 기업 홈페이지 커스텀 테마 - ABMLab 스타일 리디자인
Version: 2.0.0
Text Domain: nextfinding
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
  /* Colors */
  --nf-bg: #080810;
  --nf-bg-alt: #0d0d18;
  --nf-surface: #12121f;
  --nf-border: rgba(255,255,255,0.06);
  --nf-border-hover: rgba(255,255,255,0.12);
  --nf-text: #ffffff;
  --nf-text-secondary: #8b8b9e;
  --nf-text-muted: #555566;
  --nf-accent: #2E5BFF;
  --nf-accent-hover: #5a7fff;
  --nf-accent-glow: rgba(46,91,255,0.15);

  /* Typography */
  --nf-font-display: 'Outfit', sans-serif;
  --nf-font-body: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --nf-section-y: clamp(100px, 14vh, 180px);
  --nf-max-w: 1200px;
  --nf-side-pad: clamp(24px, 5vw, 80px);

  /* Motion */
  --nf-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nf-dur: 0.7s;
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

body {
  font-family: var(--nf-font-body);
  color: var(--nf-text);
  background: var(--nf-bg);
  line-height: 1.6;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }

.nf-container {
  max-width: var(--nf-max-w);
  margin: 0 auto;
  padding: 0 var(--nf-side-pad);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.nf-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 32px 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
}

.nf-header.scrolled {
  background: rgba(8, 8, 16, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nf-header .nf-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nf-logo {
  display: flex;
  align-items: center;
}

.nf-logo img {
  max-height: 25px;
  width: auto;
  display: block;
}

.nf-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nf-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--nf-text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nf-nav a.has-icon {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nf-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--nf-text);
  transition: width 0.4s var(--nf-ease);
}

.nf-nav a:hover { color: var(--nf-text); }
.nf-nav a:hover::after { width: 100%; }

/* Default Header Actions Group */
.nf-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.nf-nav-btn {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 100px;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nf-nav-btn-outline {
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--nf-text);
  background: transparent;
}

.nf-nav-btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}

.nf-nav-btn-filled {
  background: var(--nf-accent);
  color: var(--nf-white);
  border: none;
}

.nf-nav-btn-filled:hover {
  background: #1a3fd4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43,108,255,0.3);
}

/* Mobile Nav Toggle */
.nf-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.nf-menu-toggle span {
  width: 22px; height: 2px;
  background: var(--nf-text);
  transition: all 0.3s ease;
  display: block;
}

/* ============================================
   HERO SECTION - Immersive ABMLab Style
   ============================================ */

.nf-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* --- Hero Background Layers --- */
.nf-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #000;
}

.nf-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.nf-hero-video.nf-video-active {
  opacity: 0.6;
}

.nf-hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, rgba(0,0,0,0.7) 100%),
    linear-gradient(180deg, rgba(8,8,16,0.3) 0%, rgba(8,8,16,0.8) 85%, var(--nf-bg) 100%);
}

.nf-hero-bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  pointer-events: none;
}

/* --- Hero Content --- */
.nf-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1100px;
  padding: 0 var(--nf-side-pad);
}

/* Hero Tag */
.nf-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 24px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nf-tag-dot {
  width: 7px; height: 7px;
  background: var(--nf-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--nf-accent), 0 0 20px rgba(46,91,255,0.3);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--nf-accent), 0 0 20px rgba(46,91,255,0.3); }
  50% { opacity: 0.5; box-shadow: 0 0 6px var(--nf-accent); }
}

/* --- Hero Headline --- */
.nf-hero-headline {
  font-family: var(--nf-font-display);
  font-size: clamp(48px, 7.5vw, 96px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -3px;
  margin-bottom: 24px;
  text-shadow: 0 4px 60px rgba(0,0,0,0.5);
}

.nf-hero-line1,
.nf-hero-line2 {
  display: block;
}

/* --- Word-by-word slide up animation --- */
.nf-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: slideUpWord 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpWord {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nf-hero-line1 .nf-word:nth-child(1) { animation-delay: 0.2s; }
.nf-hero-line1 .nf-word:nth-child(2) { animation-delay: 0.4s; }
.nf-hero-line2 .nf-word:nth-child(1) { animation-delay: 0.8s; }
.nf-hero-line2 .nf-word:nth-child(2) { animation-delay: 1.0s; }

.nf-hero-line1 {
  color: rgba(255,255,255,0.85);
}

.nf-text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #8abaff 40%, var(--nf-accent) 70%, #1a3fd4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease-in-out infinite;
}

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

/* Legacy support */
.nf-text-accent {
  background: linear-gradient(135deg, #ffffff 0%, var(--nf-accent-hover) 50%, var(--nf-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nf-hero-desc {
  font-size: clamp(15px, 1.6vw, 19px);
  color: rgba(255,255,255,0.55);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.9;
  letter-spacing: 0.2px;
}

.nf-hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* --- Buttons --- */
.nf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  transition: all 0.4s var(--nf-ease);
  font-family: var(--nf-font-body);
}

.nf-btn-primary {
  background: linear-gradient(135deg, var(--nf-accent) 0%, #1e3a8a 50%, var(--nf-accent) 100%);
  background-size: 200% auto;
  color: var(--nf-text);
  box-shadow: 0 4px 20px rgba(46,91,255,0.25);
}

.nf-btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(46,91,255,0.45);
}

.nf-btn-outline {
  background: rgba(255,255,255,0.04);
  color: var(--nf-text);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nf-btn-outline:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
}

/* Rectangular Button (New) */
.nf-btn-rect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 40px;
  background-color: var(--nf-accent);
  color: var(--nf-white);
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}
.nf-btn-rect:hover {
  background-color: #1a3fd4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43,108,255,0.3);
}

/* --- Hero Marquee Ribbon --- */
.nf-hero-marquee {
  position: absolute;
  bottom: calc(100px + 3vh); /* Move up 2~3vh to avoid scroll indicator */
  left: 0;
  width: 100%;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nf-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.nf-marquee-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px 0;
  white-space: nowrap;
}

.nf-marquee-inner span {
  font-family: var(--nf-font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 0 20px;
}

.nf-marquee-dot {
  font-size: 6px !important;
  color: var(--nf-accent) !important;
  opacity: 0.5;
  padding: 0 8px !important;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Hero Scroll Indicator --- */
.nf-hero-scroll-indicator {
  position: absolute;
  bottom: 40px; 
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 60px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeInUp 1s var(--nf-ease) 1.6s forwards;
}

.nf-scroll-text {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.25);
}

.nf-scroll-bar {
  width: 1px; height: 48px;
  background: rgba(255,255,255,0.06);
  border-radius: 1px;
  overflow: hidden;
}

.nf-scroll-bar-fill {
  width: 100%; height: 50%;
  background: var(--nf-accent);
  animation: scrollFill 2s ease-in-out infinite;
}

@keyframes scrollFill {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* --- Fade In Animations --- */
.nf-fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.9s var(--nf-ease) forwards;
}
.nf-fade-in-d1 { animation-delay: 0.3s; }
.nf-fade-in-d2 { animation-delay: 0.6s; }
.nf-fade-in-d3 { animation-delay: 0.9s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SECTIONS: BASE STYLES
   ============================================ */

.nf-section {
  padding: var(--nf-section-y) 0;
  position: relative;
  background: var(--nf-bg);
}

.nf-section-alt {
  background: var(--nf-bg-alt);
}

.nf-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--nf-accent);
  margin-bottom: 24px;
}

.nf-heading-lg {
  font-family: var(--nf-font-display);
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.nf-text-body {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--nf-text-secondary);
  line-height: 1.8;
}

.nf-text-sub {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--nf-text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-top: 20px;
}

.nf-section-header {
  margin-bottom: 64px;
}

/* ============================================
   ABOUT SECTION - Immersive
   ============================================ */

.nf-about-immersive {
  position: relative;
  padding: 160px 0 120px;
  background: var(--nf-bg);
  overflow: hidden;
  border-bottom: 1px solid var(--nf-border);
}

.nf-about-bg {
  position: absolute;
  top: 0; right: 0; left: 0; bottom: 0;
  background: radial-gradient(ellipse at center right, rgba(46,91,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.nf-about-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.nf-about-header {
  margin-bottom: 40px;
}

.nf-about-title {
  font-family: var(--nf-font-display);
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--nf-text);
  line-height: 1;
  margin-top: 10px;
  background: linear-gradient(135deg, #fff 0%, #8b8b9e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nf-about-text-large {
  font-family: var(--nf-font-body);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -1px;
  margin-bottom: 40px;
  color: var(--nf-text);
  word-break: keep-all;
}

.nf-about-description {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--nf-text-secondary);
  line-height: 1.8;
  max-width: 700px;
  word-break: keep-all;
}

.nf-about-description p + p {
  margin-top: 20px;
}

/* Stats Grid for About */
.nf-about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 100px;
  position: relative;
  z-index: 2;
  padding-top: 60px;
  border-top: 1px solid var(--nf-border);
}

.nf-stat-box {text-align: left;}

.nf-stat-num {
  font-family: var(--nf-font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--nf-text);
  display: inline;
}

.nf-stat-unit {
  font-family: var(--nf-font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  color: var(--nf-accent);
  display: inline;
}

.nf-stat-label {
  font-size: 14px;
  color: var(--nf-text-muted);
  margin-top: 8px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .nf-about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
  }
}

/* ============================================
   SERVICES SECTION - Card Grid Style
   ============================================ */

.nf-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.nf-svc-card {
  position: relative;
  background: var(--nf-surface);
  border: 1px solid var(--nf-border);
  border-radius: 20px;
  padding: 40px 30px;
  overflow: hidden;
  transition: all 0.5s var(--nf-ease);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.nf-svc-card-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(46,91,255,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.nf-svc-card:hover {
  transform: translateY(-8px);
  border-color: rgba(46,91,255,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.nf-svc-card:hover .nf-svc-card-bg {
  opacity: 1;
}

.nf-svc-icon {
  width: 64px; height: 64px;
  background: rgba(46,91,255,0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nf-accent);
  margin-bottom: 30px;
  transition: transform 0.5s var(--nf-ease);
}

.nf-svc-card:hover .nf-svc-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--nf-accent);
  color: var(--nf-text);
  box-shadow: 0 10px 20px rgba(46,91,255,0.2);
}

.nf-svc-num {
  position: absolute;
  top: 30px; right: 30px;
  font-family: var(--nf-font-display);
  font-size: 40px;
  font-weight: 800;
  color: rgba(255,255,255,0.05);
  transition: color 0.4s ease;
}

.nf-svc-card:hover .nf-svc-num {
  color: rgba(46,91,255,0.2);
}

.nf-svc-content {
  flex: 1;
}

.nf-svc-content h3 {
  font-family: var(--nf-font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.nf-svc-content p {
  font-size: 15px;
  color: var(--nf-text-secondary);
  line-height: 1.7;
  word-break: keep-all;
}

.nf-svc-arrow {
  margin-top: 30px;
  color: var(--nf-text-muted);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--nf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--nf-ease);
}

.nf-svc-card:hover .nf-svc-arrow {
  background: var(--nf-accent);
  border-color: var(--nf-accent);
  color: var(--nf-text);
  transform: translateX(5px);
}

@media (max-width: 1024px) {
  .nf-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nf-services-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SERVICE SECTIONS — Full Layout Pattern
   (Left heading + Right cards + Bottom process)
   ============================================ */

.nf-ss {
  padding: 120px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

/* Subtle radial gradient glow per section */
.nf-ss::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.nf-ss > .nf-container {
  position: relative;
  z-index: 1;
}

/* Section 1: top-right blue */
#ipo-solution::before {
  background: radial-gradient(ellipse 60% 50% at 80% 20%, rgba(30,80,200,0.5) 0%, rgba(20,60,160,0.15) 40%, transparent 70%);
}

/* Section 2: bottom-left cyan-blue */
#ir-solution::before {
  background: radial-gradient(ellipse 50% 60% at 15% 85%, rgba(20,100,220,0.5) 0%, rgba(15,70,180,0.15) 40%, transparent 65%),
              radial-gradient(ellipse 45% 45% at 75% 30%, rgba(30,60,170,0.35) 0%, rgba(20,50,140,0.1) 35%, transparent 60%);
}

/* Section 3: center blue */
#data-solution::before {
  background: radial-gradient(ellipse 70% 45% at 50% 50%, rgba(25,70,190,0.45) 0%, rgba(20,55,150,0.12) 40%, transparent 70%);
}

/* Section 4: top-left + bottom-right */
#analysis-planning::before {
  background: radial-gradient(ellipse 50% 50% at 20% 25%, rgba(15,80,210,0.45) 0%, rgba(10,60,170,0.12) 35%, transparent 60%),
              radial-gradient(ellipse 45% 45% at 85% 80%, rgba(30,100,230,0.4) 0%, rgba(20,70,180,0.1) 35%, transparent 60%);
}

.nf-ss-alt {
  background: rgba(255,255,255,0.03);
}

/* --- Top Row: Intro (L) + Cards (R) --- */
.nf-ss-top {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.nf-ss-intro {
  position: sticky;
  top: 120px;
}

.nf-ss-title {
  font-family: var(--nf-font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--nf-text);
  line-height: 1.25;
  margin-bottom: 24px;
}

.nf-ss-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--nf-text-secondary);
  word-break: keep-all;
  margin-bottom: 8px;
}

.nf-ss-cta {
  margin-top: 28px;
  display: inline-flex;
}

/* --- Card Grid: 1-col vertical stack (wide/short) --- */
.nf-ss-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nf-ss-card {
  padding: 24px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  cursor: default;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nf-ss-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}

/* Active / Highlight card */
.nf-ss-card-highlight {
  background: rgba(46,91,255,0.1);
  border-color: rgba(46,91,255,0.25);
}

.nf-ss-card-highlight .nf-ss-card-icon {
  background: var(--nf-accent);
  color: #fff;
}

.nf-ss-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--nf-accent);
  transition: all 0.4s ease;
}

.nf-ss-card h4 {
  font-family: var(--nf-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--nf-text);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.nf-ss-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--nf-text-secondary);
  flex: 1;
  word-break: keep-all;
}

.nf-ss-card-quote {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-style: italic;
  color: var(--nf-accent);
  opacity: 0.8;
  letter-spacing: 0.2px;
}

/* --- Flow section: horizontal card rows --- */
.nf-ss-flow-section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--nf-accent);
  background: rgba(108, 155, 255, 0.08);
  border: 1px solid rgba(108, 155, 255, 0.2);
  border-radius: 6px;
  padding: 6px 16px;
  margin-bottom: 16px;
}

.nf-ss-cards-row {
  display: grid;
  gap: 16px;
}

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

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

.nf-ss-card-placeholder {
  visibility: hidden;
}

/* --- Flowchart: 5-col grid with arrows --- */
.nf-ss-flowchart-row {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  align-items: stretch;
}

.nf-ss-fc-harrow {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

.nf-ss-fc-connector {
  width: 100%;
  height: 48px;
  display: block;
  overflow: visible;
  margin-top: -4px;
  margin-bottom: -4px;
}

.nf-ss-fc-grid {
  position: relative;
}

.nf-ss-fc-gap {
  padding: 32px 0 12px;
}

.nf-ss-fc-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.nf-ss-flowchart .nf-ss-flow-section-label {
  margin-top: 0;
  margin-bottom: 12px;
}

/* --- Flow layout: rows with arrows --- */
.nf-ss-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nf-ss-flow-row {
  display: flex;
  align-items: stretch;
  padding: 24px 0;
  gap: 0;
}

.nf-ss-flow-row-alt {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
}

.nf-ss-flow-label {
  flex-shrink: 0;
  width: 100px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--nf-text-primary);
  letter-spacing: 0.3px;
  padding-left: 8px;
}

.nf-ss-flow-cells {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.nf-ss-flow-cell {
  flex: 1;
  min-width: 0;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}

.nf-ss-flow-cell h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--nf-text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.nf-ss-flow-cell p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--nf-text-secondary);
  margin: 0;
}

.nf-ss-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 10px;
  opacity: 0.5;
}

/* Pill tags */
.nf-ss-offerings {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.nf-ss-pill {
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--nf-accent);
  border: 1px solid rgba(46,91,255,0.25);
  border-radius: 100px;
  letter-spacing: 0.2px;
}



/* --- Focus / Capabilities showcase --- */
.nf-ss-focus {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.nf-ss-focus-header {
  margin-bottom: 48px;
}

.nf-ss-focus-title {
  font-family: var(--nf-font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--nf-text);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.nf-ss-focus-sub {
  font-size: 14px;
  line-height: 1.7;
  color: var(--nf-text-secondary);
  max-width: 500px;
  word-break: keep-all;
}

/* Progress bar track */
.nf-ss-focus-track {
  position: relative;
}

.nf-ss-focus-bar {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0;
}

.nf-ss-focus-bar-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--nf-accent) 0%, #60a5fa 100%);
  border-radius: 2px;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nf-ss-bar-active {
  width: 100%;
}

/* Focus items row */
.nf-ss-focus-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.nf-ss-focus-item {
  padding-top: 28px;
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nf-ss-focus-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dot on the bar */
.nf-ss-focus-dot {
  position: absolute;
  top: -5px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nf-accent);
  box-shadow: 0 0 0 4px rgba(46,91,255,0.12);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nf-ss-focus-item:hover .nf-ss-focus-dot {
  box-shadow: 0 0 0 8px rgba(46,91,255,0.2);
  transform: scale(1.3);
}

.nf-ss-focus-item h5 {
  font-family: var(--nf-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--nf-text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.nf-ss-focus-item p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--nf-text-secondary);
  word-break: keep-all;
}

/* CTA Banner */
.nf-svc-cta-banner {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(135deg, #0a0e1a 0%, #111d3a 50%, #1a2d5a 100%);
  overflow: hidden;
}

.nf-svc-cta-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(46,91,255,0.1) 0%, transparent 70%);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .nf-ss-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nf-ss-intro {
    position: static;
  }
}

@media (max-width: 768px) {
  .nf-ss {
    padding: 80px 0;
  }
  .nf-ss-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .nf-ss-flow-row {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .nf-ss-flow-label {
    width: auto;
    padding-left: 0;
    margin-bottom: 4px;
  }
  .nf-ss-flow-cells {
    flex-direction: column;
    gap: 12px;
  }
  .nf-ss-flow-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }
  .nf-ss-cards-3,
  .nf-ss-cards-2 {
    grid-template-columns: 1fr;
  }
  .nf-ss-card-placeholder {
    display: none;
  }
  .nf-ss-flowchart-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .nf-ss-fc-harrow,
  .nf-ss-fc-connector,
  .nf-ss-fc-overlay {
    display: none;
  }
  .nf-ss-focus-items {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .nf-ss-focus-item {
    opacity: 1;
    transform: none;
  }
  .nf-svc-cta-banner {
    padding: 80px 0;
  }
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.nf-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.nf-btn-text {
  background: transparent;
  border: none;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}
.nf-btn-text:hover {
  opacity: 0.7;
}

.nf-portfolio-item {
  cursor: pointer;
}

.nf-portfolio-visual {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: var(--nf-bg);
}
.nf-portfolio-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.nf-visual-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.nf-visual-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.nf-portfolio-item:hover .nf-visual-bg {
  transform: scale(1.05);
}

.nf-portfolio-client-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  max-height: 40%;
  object-fit: contain;
  z-index: 2;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.nf-portfolio-item:hover .nf-portfolio-client-logo {
  transform: translate(-50%, -50%) scale(1.05);
}

.nf-portfolio-badge {
  position: absolute;
  top: 24px; left: 24px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
}

.nf-portfolio-info {
  padding: 0 8px;
  margin-top: 24px;
}

.nf-portfolio-client {
  font-size: 13px;
  font-weight: 600;
  color: var(--nf-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.nf-portfolio-title {
  font-family: var(--nf-font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: var(--nf-text);
  transition: color 0.3s ease;
  word-break: keep-all;
}

.nf-portfolio-item:hover .nf-portfolio-title {
  color: var(--nf-text-secondary);
}

@media (max-width: 768px) {
  .nf-portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TRUST SECTION
   ============================================ */

.nf-trust-section {
  background: var(--nf-bg-alt);
  padding: 80px 0;
  border-top: 1px solid var(--nf-border);
  border-bottom: 1px solid var(--nf-border);
}

.nf-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 60px);
  flex-wrap: wrap;
}

.nf-trust-logo {
  font-family: var(--nf-font-display);
  font-size: clamp(15px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.25);
  transition: color 0.4s var(--nf-ease), transform 0.4s var(--nf-ease);
  cursor: default;
  white-space: nowrap;
}

.nf-trust-logo:hover {
  color: rgba(255,255,255,0.9);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .nf-trust-bar {
    gap: 30px 40px;
  }
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.nf-section-contact {
  background: linear-gradient(180deg, var(--nf-bg-alt) 0%, var(--nf-bg) 100%);
  position: relative;
  overflow: hidden;
}

.nf-section-contact::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,91,255,0.05) 0%, transparent 70%);
}

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

.nf-contact-info {
  position: sticky;
  top: 120px;
}

.nf-contact-meta {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nf-contact-meta-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nf-contact-meta-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(46,91,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nf-accent);
  flex-shrink: 0;
}

.nf-contact-meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nf-text-muted);
  margin-bottom: 2px;
}

.nf-contact-meta-item a,
.nf-contact-meta-item span {
  font-size: 15px;
  color: var(--nf-text-secondary);
}

.nf-contact-meta-item a:hover {
  color: var(--nf-accent);
}

/* Form Card */
.nf-form-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--nf-border);
  border-radius: 24px;
  padding: 48px 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nf-form-card h3 {
  font-family: var(--nf-font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.nf-form-card-sub {
  font-size: 14px;
  color: var(--nf-text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* CF7 Form Styling */
.nf-form-card .wpcf7 { width: 100%; }
.nf-form-card .wpcf7-form { display: flex; flex-direction: column; gap: 0; }

.nf-form-row { margin-bottom: 18px; }
.nf-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.nf-form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--nf-text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.nf-form-field label .required { color: var(--nf-accent); }
.nf-form-field label .file-note {
  font-weight: 400;
  color: var(--nf-text-muted);
  font-size: 11px;
}

.nf-form-card .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
  padding: 12px 0;
  font-size: 15px;
  font-family: var(--nf-font-body);
  color: var(--nf-text);
  transition: all 0.4s ease;
  outline: none;
}

.nf-form-card .wpcf7-form-control:not(.wpcf7-submit):focus {
  border-bottom-color: var(--nf-accent);
  box-shadow: 0 1px 0 0 var(--nf-accent);
}

.nf-form-card .wpcf7-form-control:not(.wpcf7-submit)::placeholder {
  color: var(--nf-text-muted);
  font-weight: 300;
}

.nf-form-card select.wpcf7-form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 24px;
  cursor: pointer;
}

.nf-form-card select.wpcf7-form-control option {
  background: var(--nf-surface);
  color: var(--nf-text);
}

.nf-form-card textarea.wpcf7-form-control {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.nf-form-card input[type="file"].wpcf7-form-control {
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(255,255,255,0.2);
  border-radius: 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--nf-text-muted);
}

.nf-form-card input[type="file"].wpcf7-form-control:hover {
  border-bottom-color: var(--nf-accent);
  color: var(--nf-text);
}

.nf-form-card input[type="file"].wpcf7-form-control::file-selector-button {
  background: var(--nf-surface);
  color: var(--nf-text);
  border: 1px solid var(--nf-border);
  border-radius: 100px;
  padding: 8px 16px;
  margin-right: 12px;
  cursor: pointer;
  font-family: var(--nf-font-body);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nf-form-card input[type="file"].wpcf7-form-control::file-selector-button:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.nf-form-submit { margin-top: 24px; }

.nf-form-card .wpcf7-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--nf-accent) 0%, #1e3a8a 50%, var(--nf-accent) 100%);
  background-size: 200% auto;
  color: var(--nf-text);
  border: none;
  border-radius: 8px;
  padding: 18px 32px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--nf-font-body);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.5px;
}

.nf-form-card .wpcf7-submit:hover {
  background-position: right center;
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(46,91,255,0.4);
}

.nf-form-card .wpcf7-submit:active { transform: translateY(0); }

.nf-form-card .wpcf7-response-output {
  margin: 14px 0 0 !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  border: 1px solid rgba(46,91,255,0.25) !important;
  background: rgba(46,91,255,0.04) !important;
  color: var(--nf-accent-hover) !important;
}

.nf-form-card .wpcf7-not-valid-tip {
  font-size: 11px;
  color: #ff6b6b;
  margin-top: 5px;
  display: block;
}

.nf-form-card .wpcf7 form.sent .wpcf7-response-output {
  border-color: rgba(0,200,83,0.3) !important;
  background: rgba(0,200,83,0.05) !important;
  color: #69db7c !important;
}

.nf-form-card .wpcf7 form.failed .wpcf7-response-output,
.nf-form-card .wpcf7 form.aborted .wpcf7-response-output {
  border-color: rgba(255,107,107,0.3) !important;
  background: rgba(255,107,107,0.05) !important;
  color: #ff6b6b !important;
}

.nf-form-card .wpcf7-spinner {
  margin: 10px auto 0;
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */

.nf-footer {
  background: #000;
  padding: 100px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.nf-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--nf-accent) 50%, transparent 100%);
  opacity: 0.3;
}

.nf-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.nf-footer-brand { max-width: 320px; }
.nf-footer-brand .nf-logo { margin-bottom: 24px; font-size: 24px; }
.nf-footer-brand p {
  font-size: 14px;
  color: var(--nf-text-secondary);
  line-height: 1.8;
}

.nf-footer-col h4 {
  font-family: var(--nf-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #fff;
}

.nf-footer-col a, .nf-footer-col {
  display: block;
  font-size: 14px;
  color: var(--nf-text-muted);
  padding: 6px 0;
  transition: color 0.3s ease;
  line-height: 1.6;
}

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

.nf-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  color: var(--nf-text-muted);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */

.nf-reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(10px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nf-reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.nf-reveal-delay-1 { transition-delay: 0.1s; }
.nf-reveal-delay-2 { transition-delay: 0.2s; }
.nf-reveal-delay-3 { transition-delay: 0.3s; }
.nf-reveal-delay-4 { transition-delay: 0.4s; }

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

@media (max-width: 1024px) {
  .nf-about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nf-stats-bar {
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
  }

  .nf-stat-divider { display: none; }

  .nf-stat { min-width: 140px; }

  .nf-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .nf-contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .nf-contact-info { position: static; }

  .nf-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .nf-service-item {
    grid-template-columns: 60px 1fr 40px;
    gap: 20px;
    padding: 32px 0;
  }
}

.hide-pc { display: none !important; }

@media (max-width: 768px) {
  .nf-nav {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(8,8,16,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 1000;
  }

  .nf-nav.active { display: flex; }

  .nf-nav a {
    font-size: 18px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.8);
  }

  .nf-header-actions {
    display: none !important;
  }

  .nf-menu-toggle { display: flex; }

  .nf-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nf-menu-toggle.active span:nth-child(2) { opacity: 0; }
  .nf-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nf-hero-headline { letter-spacing: -2px; font-size: clamp(40px, 12vw, 72px); }
  .nf-hero-desc { font-size: 16px; margin-bottom: 32px; }
  .hide-mobile { display: none !important; }
  .hide-pc { display: inline !important; }

  .nf-hero-cta { 
    flex-direction: row; 
    align-items: center; 
    justify-content: center;
    gap: 8px;
  }
  .nf-hero-cta .nf-btn {
    padding: 12px 22px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
  .nf-hero-marquee { bottom: calc(80px + 3vh); }
  .nf-marquee-inner span { font-size: 11px; letter-spacing: 1.5px; padding: 0 14px; }
  .nf-hero-tag { font-size: 10px; letter-spacing: 2px; padding: 8px 16px; margin-bottom: 28px; }

  .nf-service-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }

  .nf-service-num { font-size: 12px; }
  .nf-service-arrow { display: none; }

  .nf-stats-bar {
    flex-direction: column;
    gap: 24px;
  }

  .nf-portfolio-grid { grid-template-columns: 1fr !important; }

  .nf-portfolio-visual {
    height: auto !important;
  }

  .nf-services-grid .nf-svc-card {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 32px 24px !important;
  }

  .nf-form-row-2 { grid-template-columns: 1fr; }
  .nf-form-card { padding: 28px 20px; }

  .nf-trust-bar {
    flex-direction: column;
    gap: 16px;
  }
  .nf-trust-sep { width: 48px; height: 1px; }

  .nf-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nf-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ============================================
   SUBPAGE STYLES
   ============================================ */
.nf-sub-page {
  padding-top: 140px; /* Header offset */
  min-height: calc(100vh - 300px);
}

.nf-sub-hero {
  padding: 130px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nf-sub-hero .nf-hero-bg {
  clip-path: inset(0 50%);
  animation: curtainOpen 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes curtainOpen {
  0% {
    clip-path: inset(0 50%);
  }
  100% {
    clip-path: inset(0 0);
  }
}

.nf-sub-hero .nf-label {
  display: inline-block;
  margin-bottom: 16px;
}

.nf-sub-hero-desc {
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--nf-text-secondary);
}

@media (max-width: 768px) {
  .nf-sub-hero {
    padding: 90px 0 70px;
  }
  .nf-sub-hero-desc {
    font-size: 16px;
  }
}
