/* ==========================================================================
   Rnhn Brand Identity & Design System
   Core Theme: Atmospheric Dark Tech
   Signatuur Kleur: Vibrant Neon Green (#00ff55)
   ========================================================================== */

:root {
  /* Colors */
  --bg-color: #060608;
  --bg-color-rgb: 6, 6, 8;
  --card-bg: rgba(14, 14, 20, 0.45);
  --card-border: rgba(255, 255, 255, 0.04);
  --card-border-hover: rgba(0, 255, 85, 0.25);
  
  --accent-green: #00ff55;
  --accent-green-rgb: 0, 255, 85;
  --accent-green-glow: rgba(0, 255, 85, 0.08);
  --accent-green-glow-strong: rgba(0, 255, 85, 0.35);
  
  --text-primary: #f3f4f6;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  
  /* Dimensions & Durations */
  --header-height: 80px;
  --transition-speed: 0.35s;
  --transition-timing: cubic-bezier(0.16, 1, 0.3, 1); /* ultra smooth ease-out */
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Premium Selection */
::selection {
  background-color: var(--accent-green);
  color: #000000;
}

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

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green-glow-strong);
}

/* ==========================================================================
   Background Dynamics
   ========================================================================== */

/* Interactive Ambient Glow Spotlight (JavaScript tracks mouse) */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 40%),
    rgba(0, 255, 85, 0.07),
    transparent 80%
  );
  z-index: -2;
  pointer-events: none;
  transition: background 0.15s ease;
}

/* Subtiele Technische Grid Achtergrond */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  z-index: -1;
  pointer-events: none;
}

/* Masker om grid zacht te faden naar de randen */
.grid-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, var(--bg-color) 85%);
  pointer-events: none;
}

/* ==========================================================================
   Typography & Headers
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* ==========================================================================
   Navigation Header (Glassmorphic)
   ========================================================================== */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: all var(--transition-speed) var(--transition-timing);
  display: flex;
  align-items: center;
}

.main-header.scrolled {
  height: 68px;
  background: rgba(6, 6, 8, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* CSS Recreatie van het Logo */
.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

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

.brand-logo-box {
  background-color: var(--accent-green);
  color: #0b0b0e;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  padding: 8px 14px;
  border-radius: 6px;
  line-height: 1;
  text-transform: none;
  box-shadow: 0 0 15px rgba(0, 255, 85, 0.15);
  transition: all var(--transition-speed) var(--transition-timing);
}

.brand-logo-box:hover {
  box-shadow: 0 0 25px rgba(0, 255, 85, 0.4);
  transform: translateY(-1px);
}

.brand-logo-subtitle {
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-left: 18px;
  opacity: 0.8;
  transition: opacity var(--transition-speed) var(--transition-timing);
  display: inline-block;
}

.logo-link:hover .brand-logo-subtitle {
  opacity: 1;
}

/* Navigatie links */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: var(--accent-green);
}

/* Navigatie Link Underline Effect */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background-color: var(--accent-green);
  transition: all 0.3s var(--transition-timing);
  transform: translateX(-50%);
}

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

.nav-link.active::after {
  width: 100%;
  box-shadow: 0 0 8px var(--accent-green);
}

/* Beschikbaarheid Badge */
.availability-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 255, 85, 0.7);
  animation: dot-pulse 1.8s infinite;
}

@keyframes dot-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 255, 85, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(0, 255, 85, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 255, 85, 0);
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
}

.hero-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fade-up 1s var(--transition-timing);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  background: rgba(0, 255, 85, 0.06);
  border: 1px solid rgba(0, 255, 85, 0.15);
  color: var(--accent-green);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 0 10px rgba(0, 255, 85, 0.05);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title .highlight {
  color: var(--accent-green);
  position: relative;
  white-space: nowrap;
}

.hero-description {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 680px;
  margin-bottom: 40px;
}

/* Buttons */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition-speed) var(--transition-timing);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: var(--accent-green);
  color: #060608;
  border: 1px solid var(--accent-green);
  box-shadow: 0 4px 20px rgba(0, 255, 85, 0.15);
}

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

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.02);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ==========================================================================
   Section Layout Patterns
   ========================================================================== */

section[id] {
  padding: 120px 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  margin-bottom: 60px;
  text-align: left;
}

.section-tag {
  color: var(--accent-green);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
}

/* ==========================================================================
   Philosophy Section
   ========================================================================== */

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.philosophy-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 40px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-speed) var(--transition-timing);
  position: relative;
}

.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.03), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-speed) var(--transition-timing);
}

.philosophy-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: 0 10px 30px rgba(0, 255, 85, 0.03);
}

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

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */

.projects-section {
  padding: 40px 0 !important;
}

.projects-section .section-header {
  margin-bottom: 16px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

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

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-speed) var(--transition-timing);
  padding: 16px;
  min-height: 90px;
}

a.project-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 10px 30px rgba(0, 255, 85, 0.04);
}

/* Status Indicator Pill */
.project-status {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.project-status.completed {
  background: rgba(0, 255, 85, 0.06);
  border: 1px solid rgba(0, 255, 85, 0.2);
  color: var(--accent-green);
}

.project-status.completed::before {
  content: '';
  width: 5px;
  height: 5px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-green);
}

.project-status.dev {
  background: rgba(255, 170, 0, 0.06);
  border: 1px solid rgba(255, 170, 0, 0.2);
  color: #ffaa00;
}

.project-status.dev::before {
  content: '';
  width: 5px;
  height: 5px;
  background-color: #ffaa00;
  border-radius: 50%;
  box-shadow: 0 0 6px #ffaa00;
  animation: dot-pulse-orange 1.5s infinite;
}

@keyframes dot-pulse-orange {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.project-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-meta {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.project-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 32px;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.project-tech span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 4px;
}

.project-link-wrapper {
  margin-top: auto;
}

.project-link {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-speed);
}

.project-link:hover {
  color: var(--accent-green);
}

.project-link .arrow {
  transition: transform 0.25s var(--transition-timing);
}

.project-link:hover .arrow {
  transform: translateX(4px);
}

.project-link-disabled {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pulse-indicator {
  width: 5px;
  height: 5px;
  background-color: var(--text-muted);
  border-radius: 50%;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 40px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 255, 85, 0.04), transparent 50%), var(--card-bg);
  border: 1px solid var(--card-border);
  text-align: center;
  position: relative;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.contact-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 100px;
  background: var(--accent-green);
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.contact-tag {
  color: var(--accent-green);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.contact-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-description {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 36px;
  font-size: 0.95rem;
}

.contact-btn {
  font-size: 1rem;
  padding: 16px 36px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.main-footer {
  background-color: #040406;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  padding: 80px 0 40px;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .brand-logo-container {
  margin-bottom: 20px;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-green);
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 30px;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

/* Status in Footer */
.vibe-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 85, 0.03);
  border: 1px solid rgba(0, 255, 85, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
}

.vibe-status-dot {
  width: 5px;
  height: 5px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-green);
}

.vibe-status-text {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 768px) {
  .main-header {
    height: 70px;
  }
  
  .header-container {
    padding: 0 16px;
  }
  
  .main-nav {
    display: none; /* simple hidden for standard minimalist burger/compact layouts if needed, but for 'less is more' we keep a simplified view on mobile or hide unnecessary items */
  }
  
  .availability-badge {
    padding: 4px 8px;
  }
  
  .availability-badge .badge-text {
    display: none; /* hide text on tiny mobile, just keep pulse */
  }
  
  .availability-badge {
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
  }
  
  section[id] {
    padding: 80px 0;
  }
  
  .contact-container {
    padding: 40px 20px;
    margin: 0 16px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }
}
