/* ==========================================================================
   NuGlue, LLC - Core Corporate Design System (nuglue-core.css)
   ========================================================================== */

/* --- Custom Fonts --- */
/* Google Fonts loaded via HTML head for performance optimization */

:root {
  /* Colors - Premium White & Light Grey Theme */
  --bg-light: #ffffff;
  --bg-subtle: #f8fafc; /* Ultra clean off-white */
  --bg-card: #ffffff;
  
  --border-glass: rgba(15, 23, 42, 0.06);
  --border-glass-hover: rgba(15, 23, 42, 0.12);
  
  --primary-red: #c22035; /* Crimson Red from corporate logo 'Nu' */
  --primary-red-glow: rgba(194, 32, 53, 0.12);
  --primary-red-hover: #e11d48;
  
  --primary-blue: #1e3a8a; /* Deep Royal from corporate logo 'Glue' */
  --accent-blue-bright: #2563eb; /* Technical highlight blue */
  --accent-blue-glow: rgba(37, 99, 235, 0.1);
  
  --accent-gold: #d4af37; /* Corporate Gold outline from logo */
  
  --text-primary: #0f172a; /* Deep slate charcoal for excellent readability */
  --text-secondary: #475569; /* Warm grey for secondary text */
  --text-muted: #64748b;
  
  /* Fonts */
  --font-header: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* --- Base Setup --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-light);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-subtle);
}
::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
  border-radius: 5px;
  border: 2px solid var(--bg-subtle);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.3);
}

/* --- Ambient Pastel Watercolors --- */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--bg-light);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.08; /* Subtly soft watercolor backdrops */
  mix-blend-mode: multiply;
  pointer-events: none;
}

.orb-red {
  top: -15%;
  right: 5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--primary-red) 0%, transparent 70%);
  animation: floatOrb 28s infinite alternate ease-in-out;
}

.orb-blue {
  bottom: -15%;
  left: 5%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, var(--accent-blue-bright) 0%, transparent 70%);
  animation: floatOrb 35s infinite alternate-reverse ease-in-out;
}

.orb-gold {
  top: 35%;
  left: 25%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
  opacity: 0.04;
  animation: floatOrb 22s infinite alternate ease-in-out 4s;
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6%, 8%) scale(1.1); }
}

/* --- Navigation Header (Seamless Solid White) --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 6%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
  background: #ffffff; /* SOLID WHITE to blend the white logo perfectly */
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

header.scrolled {
  padding: 0.8rem 6%;
  background: #ffffff; /* Keep it solid white when scrolled */
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: #ffffff; /* Solid white background wrapper for logo */
  padding: 4px;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
  background: #ffffff; /* Solid white logo background */
}

header.scrolled .logo-img {
  height: 40px;
}

/* Desktop Navigation Menu styling */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
  font-family: var(--font-header);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blue-bright);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-blue-bright));
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.cta-button {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--accent-blue-bright);
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-header);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.02);
  white-space: nowrap;
}

.cta-button:hover {
  background: var(--accent-blue-bright);
  color: var(--bg-light);
  border-color: var(--accent-blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.25);
}

/* Mobile Toggle Hamburger (Strictly hidden on desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 6px;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

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

/* --- Hero Section --- */
.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: center;
  padding: 10rem 6% 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  z-index: 10;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-family: var(--font-header);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-red);
  box-shadow: 0 0 10px var(--primary-red-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.hero-title {
  font-family: var(--font-header);
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-red) 15%, var(--accent-blue-bright) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2.75rem;
  font-weight: 400;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-red), #e11d48);
  color: var(--bg-light);
  border: none;
  padding: 1rem 2.25rem;
  border-radius: 50px;
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(194, 32, 53, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(194, 32, 53, 0.4);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-glass-hover);
  padding: 1rem 2.25rem;
  border-radius: 50px;
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 500px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 25px 50px -15px rgba(15, 23, 42, 0.1);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.hero-image-frame:hover .hero-image {
  transform: scale(1.05);
}

.hero-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, var(--accent-blue-bright) 0%, transparent 70%);
  z-index: -1;
  opacity: 0.08;
  filter: blur(20px);
}

/* --- Section Layouts --- */
.section {
  padding: 6rem 6%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.section-header {
  max-width: 750px;
  margin-bottom: 5rem;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-label {
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-red);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-header);
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.65;
}

/* --- Grid Systems --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px -15px rgba(15, 23, 42, 0.05);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-blue-bright));
  opacity: 0;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 25px 50px -20px rgba(15, 23, 42, 0.1);
}

.feature-card:hover::after {
  opacity: 1;
}

.card-num {
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-red);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.feature-card .cta-link {
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.feature-card .cta-link svg {
  transition: transform 0.2s ease;
}

.feature-card:hover .cta-link {
  color: var(--accent-blue-bright);
}

.feature-card:hover .cta-link svg {
  transform: translateX(5px);
}

/* --- Split Showcases --- */
.split-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-bottom: 7rem;
}

.split-showcase.reverse {
  direction: rtl;
}

.split-showcase.reverse .showcase-text {
  direction: ltr;
}

.showcase-text {
  z-index: 10;
}

.showcase-text .list-items {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.showcase-text .list-items li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: var(--text-secondary);
}

.showcase-text .list-items li strong {
  color: var(--text-primary);
  font-family: var(--font-header);
}

.list-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(194, 32, 53, 0.08);
  border: 1px solid rgba(194, 32, 53, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.split-showcase.reverse .list-icon {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent-blue-bright);
}

.showcase-frame {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.06);
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Stats Banner --- */
.stats-banner {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  padding: 4rem 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  text-align: center;
  box-shadow: inset 0 1px 0 #ffffff, 0 10px 30px -10px rgba(15, 23, 42, 0.04);
}

.stat-item h3 {
  font-family: var(--font-header);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- IP Security CTA --- */
.security-banner {
  background: radial-gradient(circle at top right, rgba(194, 32, 53, 0.05) 0%, transparent 60%),
              radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
              #f8fafc;
  border: 1px solid var(--border-glass);
  border-radius: 32px;
  padding: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 4rem auto 0;
  box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.05);
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #065f46;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-header);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.security-banner h2 {
  font-family: var(--font-header);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.security-banner p {
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.65;
}

/* --- Contact & Lead Form --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(1.5rem, 5vw, 6rem);
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: 36px;
  padding: clamp(1.5rem, 5vw, 5rem);
  box-shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.06);
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: clamp(1.5rem, 5vw, 3.5rem);
  }
}


.contact-info h3 {
  font-family: var(--font-header);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 3.5rem;
  font-weight: 400;
  font-size: 1.05rem;
}

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

.detail-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue-bright);
}

.detail-text h5 {
  font-family: var(--font-header);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.detail-text p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Tech Lead Form */
.tech-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-subtle);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.9rem 1.3rem;
  border-radius: 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  width: 100%;
  max-width: 100%;
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background-color: var(--bg-light);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-blue-bright);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #ffffff;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.checkbox-group {
  grid-column: span 2;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
  cursor: pointer;
}

.checkbox-group input {
  margin-top: 4px;
  cursor: pointer;
  accent-color: var(--accent-blue-bright);
}

.checkbox-group label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
  font-weight: 500;
}

.btn-submit {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--accent-blue-bright), #1d4ed8);
  color: var(--bg-light);
  border: none;
  padding: 1.1rem;
  border-radius: 14px;
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 1rem;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
  filter: brightness(1.05);
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border-glass);
  padding: 6rem 6% 3.5rem;
  position: relative;
  z-index: 10;
  background: #f8fafc;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 5rem;
  max-width: 1400px;
  margin: 0 auto 4rem;
}

.footer-brand .logo-img {
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
  display: inline-block;
  transition: var(--transition-smooth);
}

.footer-brand .logo-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 1.5rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-header);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition-fast);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary-red);
  padding-left: 4px;
}

.footer-newsletter h4 {
  font-family: var(--font-header);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  color: var(--text-primary);
}

.footer-newsletter p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  flex-grow: 1;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent-blue-bright);
}

.btn-newsletter {
  background: var(--text-primary);
  color: var(--bg-light);
  border: none;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-family: var(--font-header);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-newsletter:hover {
  background: var(--primary-red);
  color: var(--bg-light);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--border-glass);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.social-icon {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.social-icon:hover {
  color: var(--text-primary);
}

/* --- Tablet & Medium Screen Navigation Optimization --- */
@media (min-width: 601px) and (max-width: 1024px) {
  header {
    padding: 1rem 4%;
  }
  .nav-links {
    gap: 1.25rem;
  }
  .nav-link {
    font-size: 0.9rem;
  }
  .cta-button {
    padding: 0.55rem 1.15rem;
    font-size: 0.82rem;
  }
  .logo-img {
    height: 38px;
  }
}

/* --- Mobile Navigation and Breakpoints (Strictly Phone viewports) --- */
@media (max-width: 600px) {
  header {
    padding: 1.1rem 5%;
  }
  
  .menu-toggle {
    display: flex; /* Hamburger menu is visible ONLY on phones */
  }

  .nav-container {
    display: block;
    flex-grow: 0;
  }
  
  .nav-links {
    position: fixed;
    top: 72px;
    right: -100%;
    width: 320px;
    height: calc(100vh - 72px);
    background: #ffffff; /* SOLID WHITE background to perfectly blend white logo backing */
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 3.5rem 3rem;
    gap: 2rem;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--border-glass);
    box-shadow: -10px 10px 30px rgba(15, 23, 42, 0.05);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.25rem;
    width: 100%;
    padding: 0.5rem 0;
  }
  
  .cta-button {
    margin-left: auto;
    margin-right: 1.5rem;
    padding: 0.55rem 1.15rem;
    font-size: 0.82rem;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 9rem;
    gap: 3.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image-frame {
    max-width: 320px;
    height: 320px;
  }

  .split-showcase {
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
  }

  .split-showcase.reverse {
    direction: ltr;
  }

  .showcase-frame {
    height: 380px;
  }

  .stats-banner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 3.5rem;
  }

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

  .section {
    padding: 6rem 5%;
  }

  .section-header {
    margin-bottom: 3.5rem;
  }

  .security-banner {
    padding: 3.5rem 2rem;
  }

  .tech-form {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .checkbox-group {
    grid-column: span 1;
  }

  .btn-submit {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1.1rem 4%;
  }
  .cta-button {
    display: none;
  }
  .hero {
    padding-top: 8rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .contact-container {
    padding: 2rem 1.25rem;
  }
}
