/* ========================================
   NEXIS STUDIO - Design System
   Brand Identity Guide v1.0
   ======================================== */

/* ========================================
   1. GOOGLE FONTS IMPORT
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* ========================================
   2. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ======================================== */
:root {
  /* Brand Colors */
  --nexis-navy: #0F172A;
  --trust-blue: #3B82F6;
  --fresh-mint: #10B981;
  --paper-white: #F8FAFC;

  /* Extended Palette */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border-light: #E2E8F0;
  --bg-card: rgba(255, 255, 255, 0.7);
  /* Glass-like base */

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;

  /* Spacing - Increased for Premium Feel */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 6rem;
  --space-24: 8rem;
  --space-32: 10rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows (Soft Shadows for Premium Feel) */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--paper-white);
  overflow-x: hidden;
}

.backgroundsplit {
  background: linear-gradient(to top, #fff 50%, #020617 50%);
}

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

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

a:hover {
  color: var(--nexis-navy);
}

ul,
ol {
  list-style: none;
}

/* ========================================
   4. TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  /* Tighter for premium feel */
  color: var(--nexis-navy);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
}

h2 {
  font-size: var(--text-4xl);
  font-weight: 700;
}

h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
}

h4 {
  font-size: var(--text-xl);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 400;
}

.text-gradient {
  background: linear-gradient(135deg, var(--nexis-navy) 0%, var(--trust-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   5. LAYOUT UTILITIES
   ======================================== */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-16) 0;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* ========================================
   6. NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  padding: var(--space-4) 0;
  transition: all var(--transition-base);
}

.navbar:hover {
  background: rgba(255, 255, 255, 0.95);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--nexis-navy);
}

.logo-icon {
  width: 36px;
  height: 36px;
  transition: transform var(--transition-base);
  margin-right: var(--space-3);
}

.logo:hover .logo-icon {
  transform: rotate(-10deg) scale(1.1);
}

.logo span {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-links a:not(.btn) {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-links a:not(.btn):hover {
  color: var(--nexis-navy);
  background: rgba(15, 23, 42, 0.03);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--nexis-navy);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  padding: var(--space-20) var(--space-6);
  flex-direction: column;
  gap: var(--space-6);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-nav.active {
  display: flex;
  opacity: 1;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--nexis-navy);
}

/* ========================================
   7. BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--nexis-navy);
  color: white;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  background: #24344d;
  /* Slightly lighter navy */
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--nexis-navy);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--paper-white);
  border-color: var(--nexis-navy);
  color: var(--nexis-navy);
}

.btn-accent {
  background: var(--fresh-mint);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-accent:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ========================================
   8. ANIMATIONS & SCROLL REVEAL
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Delay modifiers */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

/* ========================================
   9. HERO SECTION (Untouched Mostly)
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--space-16);
  position: relative;
  overflow: hidden;
  background: white;
}

.hero-orbs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  /* Softened blur */
  opacity: 0.6;
  will-change: transform;
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
  top: -20%;
  right: -10%;
  animation: float-1 25s ease-in-out infinite;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(16, 185, 129, 0) 70%);
  bottom: -10%;
  left: -10%;
  animation: float-2 30s ease-in-out infinite;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
  top: 40%;
  right: 15%;
  animation: float-3 20s ease-in-out infinite;
}

.orb-cursor {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(50px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

@keyframes float-1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(0.95);
  }
}

@keyframes float-2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-30px, 30px) scale(1.05);
  }
}

@keyframes float-3 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(-20px, 20px) rotate(10deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--trust-blue);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(4px);
}

.hero h1 {
  margin-bottom: var(--space-6);
  background: linear-gradient(to right, var(--nexis-navy), #334155);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  margin-bottom: var(--space-8);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
}

/* ========================================
   10. SERVICES SECTION (REIMAGINED)
   ======================================== */
.services-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  overflow: hidden;
}

.section-header {
  max-width: 600px;
  margin-bottom: var(--space-12);
  position: relative;
  z-index: 2;
}

/* Premium Card Styles */
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  /* Start subtle */
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card::before {
  /* Subtle glow blob inside card on hover */
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  transition: transform 0.6s ease;
  transform: scale(0.5);
  opacity: 0;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(59, 130, 246, 0.1);
  /* Border glow */
}

.card:hover::before {
  opacity: 1;
  transform: scale(2);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--nexis-navy) 0%, #1E293B 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, var(--trust-blue) 0%, var(--nexis-navy) 100%);
}

.card-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  position: relative;
  z-index: 2;
}

/* Background blob for section */
.services-section::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ========================================
   11. WHY NEXIS (DARK GLASS)
   ======================================== */
.why-nexis {
  background: var(--nexis-navy);
  color: white;
  position: relative;
  overflow: hidden;
}

.why-nexis-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Moving gradient blobs in background */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.blob-1 {
  top: -20%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: #3B82F6;
}

.blob-2 {
  bottom: -20%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: #10B981;
}

.why-header {
  max-width: 600px;
  margin-bottom: var(--space-16);
  position: relative;
  z-index: 2;
}

.why-header h2 {
  color: white;
}

.why-header .lead {
  color: rgba(255, 255, 255, 0.7);
}

.pain-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  position: relative;
  z-index: 2;
}

.pain-point {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Subtle border */
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.pain-point:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pain-point-icon {
  width: 56px;
  height: 56px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--fresh-mint);
  transition: all var(--transition-base);
}

.pain-point:hover .pain-point-icon {
  background: var(--fresh-mint);
  color: white;
  transform: scale(1.1);
}

.pain-point h4 {
  margin-bottom: var(--space-2);
  color: white;
}

.pain-point p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

/* ========================================
   12. CTA SECTION (POP)
   ======================================== */
.cta-section {
  position: relative;
  padding: var(--space-32) 0;
  overflow: hidden;
  background: white;
}

/* cta-grid removed */

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* cta-decor removed */

.cta-section h2 {
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--nexis-navy) 0%, var(--trust-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-section .lead {
  margin-bottom: var(--space-10);
}

/* ========================================
   13. FOOTER
   ======================================== */
.footer {
  background: #020617;
  /* Even darker for footer */
  color: white;
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand .logo {
  color: white;
  margin-bottom: var(--space-4);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
  max-width: 300px;
}

.footer-column h4 {
  color: white;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.footer-column ul li {
  margin-bottom: var(--space-3);
}

.footer-column a {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  transition: all 0.2s;
}

.footer-column a:hover {
  color: white;
  padding-left: 4px;
  /* Tiny nudge */
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-xs);
}

/* ========================================
   14. MEDIA QUERIES
   ======================================== */
@media (max-width: 1024px) {
  .pain-points {
    gap: var(--space-4);
  }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --space-24: 5rem;
    --space-32: 6rem;
  }

  .navbar .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding-top: var(--space-16);
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

  .features-grid,
  .pain-points,
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-content {
    gap: var(--space-10);
  }
}

/* ========================================
   15. FORMS
   ======================================== */
/* ========================================
   15. FORMS
   ======================================== */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--nexis-navy);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.form-input,
.form-textarea,
.form-select,
select.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--nexis-navy);
  background: #F1F5F9;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

/* Specific Select Styling to override default appearance */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233B82F6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 3rem;
  /* Make room for arrow */
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
select.form-input:focus {
  outline: none;
  background-color: white;
  border-color: var(--trust-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

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

/* Optional: invalid state */
.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: #EF4444;
  background-color: #FEF2F2;
}

.form-input.error:focus,
.form-textarea.error:focus,
.form-select.error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Placeholder styling */
::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

#diensten,
#waarom {
  scroll-margin-top: 0;
}