/* ===========================================
   MAC STYLE PORTFOLIO - GLASMORPHISM
   Kleurthema: Sky Blue, Muted Teal, Pale Slate
   =========================================== */

:root {
  --sky-blue: #87ceeb;
  --muted-teal: #5a9fa5;
  --pale-slate: #c5d3d8;
  --white: #ffffff;
  --light-gray: #f5f5f7;
  --dark-text: #1d1d1f;
  --accent: #87ceeb;
  --dark-bg: #0a0e27;
  --dark-card: #1a1f3a;
  --light-text: #e8e8f0;
  --secondary-text: #b0b0c0;
  --glass-bg: rgba(26, 31, 58, 0.5);
  --glass-border: rgba(135, 206, 235, 0.2);
}

/* ===========================================
   GLOBALE STIJLEN
   =========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  color: var(--light-text);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--dark-bg);
}

/* MAC ACHTERGROND - DARK VERSION */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1620121692029-d088224ddc74?q=80&w=3132&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
  filter: brightness(0.3) blur(3px) contrast(0.8);
}

/* DARK OVERLAY VOOR BETER CONTRAST */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(10, 14, 39, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: -1;
  pointer-events: none;
}

/* ===========================================
   NAVBAR - DARK GLASMORPHISM
   =========================================== */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  margin: 0;
}

.navbar-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: auto;
  backdrop-filter: blur(20px) saturate(150%);
  background: linear-gradient(
    135deg,
    rgba(26, 31, 58, 0.5) 0%,
    rgba(10, 14, 39, 0.4) 100%
  );
  border-bottom: 1px solid rgba(135, 206, 235, 0.15);
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.3),
    inset 0 1px 0 0 rgba(135, 206, 235, 0.1);
  animation: navSlideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes navSlideDown {
  from {
    transform: translateY(-100px);
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    transform: translateY(0);
    opacity: 1;
    backdrop-filter: blur(20px);
  }
}

.logo {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sky-blue) 0%, var(--muted-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -1px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 800;
  filter: drop-shadow(0 0 15px rgba(135, 206, 235, 0.3));
}

.logo:hover {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 0 25px rgba(135, 206, 235, 0.5));
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary-text);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 10px 18px;
  border-radius: 10px;
  position: relative;
  display: inline-block;
  background: rgba(135, 206, 235, 0);
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sky-blue), var(--muted-teal));
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 2px;
}

.nav-links a:hover {
  background: rgba(135, 206, 235, 0.15);
  color: var(--sky-blue);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(135, 206, 235, 0.25);
  transform: translateY(-2px);
}

.nav-links a:hover::before {
  width: 100%;
}

.nav-links a.active {
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.25), rgba(90, 159, 165, 0.15));
  color: var(--sky-blue);
  box-shadow: 0 0 25px rgba(135, 206, 235, 0.35);
}

.nav-links a.active::before {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--dark-text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ===========================================
   PAGE TRANSITION
   =========================================== */

main {
  animation: pageIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 1;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

main.exiting {
  animation: pageOut 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ===========================================
   MAIN CONTENT
   =========================================== */

main {
  margin-top: 0;
  min-height: 100vh;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

h1 {
  font-size: 56px;
}

h2 {
  font-size: 44px;
  text-align: center;
  color: var(--dark-text);
}

h3 {
  font-size: 26px;
}

p {
  color: rgba(29, 29, 31, 0.8);
}

/* ===========================================
   HERO SECTION
   =========================================== */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  gap: 30px;
  position: relative;
  padding-top: 60px;
}

.hero h1 {
  font-size: 72px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sky-blue) 0%, var(--muted-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 900px;
  line-height: 1.3;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  letter-spacing: -2px;
}

.hero .subtitle {
  font-size: 20px;
  color: var(--secondary-text);
  max-width: 600px;
  animation: fadeInUp 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  animation: fadeInUp 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===========================================
   BUTTONS - DARK MODE
   =========================================== */

.btn {
  padding: 14px 40px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.5s ease;
  z-index: 0;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sky-blue) 0%, var(--muted-teal) 100%);
  color: var(--dark-bg);
  box-shadow: 0 8px 32px 0 rgba(135, 206, 235, 0.4),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(135, 206, 235, 0.3);
  backdrop-filter: blur(10px);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 45px 0 rgba(135, 206, 235, 0.5),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.6), rgba(10, 14, 39, 0.4));
  color: var(--sky-blue);
  border: 2px solid var(--sky-blue);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3),
              inset 0 1px 0 0 rgba(135, 206, 235, 0.1);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.8), rgba(10, 14, 39, 0.6));
  border-color: var(--muted-teal);
  color: var(--muted-teal);
  transform: translateY(-4px);
  box-shadow: 0 15px 45px 0 rgba(135, 206, 235, 0.3),
              inset 0 1px 0 0 rgba(135, 206, 235, 0.2);
}

.btn-secondary:active {
  transform: translateY(-1px);
}

/* ===========================================
   CARDS MET ULTRA GLASMORPHISM - DARK MODE
   =========================================== */

.card {
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.6) 0%, rgba(10, 14, 39, 0.4) 100%);
  backdrop-filter: blur(15px) saturate(120%);
  border: 1px solid rgba(135, 206, 235, 0.2);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.4),
    inset 0 1px 0 0 rgba(135, 206, 235, 0.1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(135, 206, 235, 0.15) 0%, transparent 70%);
  transition: all 0.5s ease;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-15px);
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.8) 0%, rgba(10, 14, 39, 0.6) 100%);
  backdrop-filter: blur(25px) saturate(150%);
  box-shadow: 
    0 25px 50px 0 rgba(135, 206, 235, 0.25),
    inset 0 1px 0 0 rgba(135, 206, 235, 0.2);
  border-color: rgba(135, 206, 235, 0.35);
}

.card:hover::before {
  top: -25%;
  right: -25%;
  background: radial-gradient(circle, rgba(135, 206, 235, 0.25) 0%, transparent 70%);
}

/* ===========================================
   PROJECTEN SECTIE
   =========================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 60px;
  width: 100%;
}

.project-card {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: brightness(0.95);
}

.project-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.project-info h3 {
  margin-bottom: 10px;
  color: var(--muted-teal);
  font-size: 22px;
}

.project-info p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(29, 29, 31, 0.75);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tech-tag {
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.2), rgba(90, 159, 165, 0.15));
  color: var(--sky-blue);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(135, 206, 235, 0.3);
  backdrop-filter: blur(5px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tech-tag:hover {
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.35), rgba(90, 159, 165, 0.25));
  border-color: rgba(135, 206, 235, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(135, 206, 235, 0.2);
}

/* ===========================================
   SKILL BARS - DARK MODE
   =========================================== */

.skill-bar {
  margin: 25px 0;
}

.skill-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  color: var(--light-text);
}

.skill-progress {
  background: linear-gradient(90deg, rgba(135, 206, 235, 0.1), rgba(90, 159, 165, 0.08));
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(135, 206, 235, 0.15);
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sky-blue), var(--muted-teal));
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 20px rgba(135, 206, 235, 0.5);
}

/* ===========================================
   CONTACT PAGINA
   =========================================== */

.contact-section {
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 60px 0;
}

.contact-form {
  max-width: 650px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.6) 0%, rgba(10, 14, 39, 0.4) 100%);
  backdrop-filter: blur(15px) saturate(120%);
  border: 1px solid rgba(135, 206, 235, 0.2);
  padding: 50px;
  border-radius: 24px;
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.4),
    inset 0 1px 0 0 rgba(135, 206, 235, 0.1);
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--light-text);
  font-size: 15px;
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border: 1px solid rgba(135, 206, 235, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.4) 0%, rgba(10, 14, 39, 0.3) 100%);
  backdrop-filter: blur(10px);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--light-text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(176, 176, 192, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sky-blue);
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.6) 0%, rgba(10, 14, 39, 0.5) 100%);
  box-shadow: 
    0 0 0 4px rgba(135, 206, 235, 0.15),
    inset 0 1px 0 0 rgba(135, 206, 235, 0.2);
  backdrop-filter: blur(12px);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.submit-btn {
  margin-top: 15px;
  width: 100%;
}

/* ===========================================
   ANIMATIES
   =========================================== */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-25px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(135, 206, 235, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(135, 206, 235, 0.6);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.float {
  animation: float 3s ease-in-out infinite;
}

.loading {
  animation: spin 1s linear infinite;
}

/* ===========================================
   PARTICLES ACHTERGROND
   =========================================== */

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
  .navbar-container {
    padding: 10px 15px;
  }

  .logo {
    font-size: 22px;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    font-size: 13px;
    padding: 6px 12px;
  }

  .hero {
    padding-top: 90px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero .subtitle {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 32px;
  }

  section {
    padding: 60px 0;
  }

  .card {
    padding: 30px;
  }

  .contact-form {
    padding: 30px;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero .subtitle {
    font-size: 16px;
  }

  h2 {
    font-size: 26px;
  }

  .card {
    padding: 20px;
  }

  .nav-links a {
    font-size: 12px;
    padding: 5px 10px;
  }
}

/* ===========================================
   SCROLL BAR HIDDEN
   =========================================== */

::-webkit-scrollbar {
  display: none;
}

html {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===========================================
   TEXT READABILITY IMPROVEMENTS
   =========================================== */

p {
  color: var(--secondary-text);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--light-text);
  letter-spacing: -0.5px;
  font-weight: 700;
}

h1 {
  font-size: 56px;
  line-height: 1.3;
  margin-bottom: 25px;
}

h2 {
  font-size: 44px;
  text-align: center;
  color: var(--light-text);
  margin-bottom: 25px;
  letter-spacing: -1px;
}

h3 {
  font-size: 26px;
  margin-bottom: 15px;
  color: var(--sky-blue);
}

h4 {
  font-size: 20px;
  color: var(--light-text);
}

.subtitle {
  font-size: 20px !important;
  color: var(--secondary-text) !important;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.7;
}