/* =====================================================
   Rodney Mackenbach Portifolio
   CSS - VOLLEDIGE VERSIE
   ===================================================== */

/* 1. VARIABELEN */
:root {
  --cyan-glow: #20B2AA;    
  --cyan-deep: #008B8B;    
  --dark-surface: #121212; 
  --light-bg: #f4f7f6;     
  --text-dark: #2d3436;    
  --text-muted: #636e72;   
  --white: #ffffff;
}

/* 2. BASIS & SCROLL FIX */
html, body {
  max-width: 100%;
  overflow-x: hidden; /* Fix: Geen horizontaal scrollen meer */
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
}

/* 3. NAVIGATIE & CV-BAL */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(33, 37, 41, 0.95) !important;
}

.text-cyan { color: var(--cyan-glow) !important; }

.nav-cv-ball {
  width: 45px; 
  height: 45px;
  display: flex !important; 
  align-items: center !important; 
  justify-content: center !important; 
  text-align: center;
  font-weight: 900; 
  font-size: 13px;
  background: linear-gradient(45deg, var(--cyan-glow), var(--cyan-deep));
  color: white !important;
  border-radius: 50%;
  border: none;
  transition: transform 0.3s ease;
  text-decoration: none;
  /* Mobiel: Midden in hamburger menu */
  margin: 15px auto 5px auto; 
}

/* Fix: Zet CV bal */
@media (min-width: 992px) { 
  .nav-cv-ball { margin: 0 0 0 15px !important; } 
}

.nav-cv-ball:hover { transform: scale(1.1); filter: brightness(1.1); }

/* 4. ALGEMENE KNOPPEN */
.btn-custom {
  background: linear-gradient(45deg, var(--cyan-glow), var(--cyan-deep)) !important;
  border: none !important;
  border-radius: 10px;
  padding: 12px 25px;
  color: var(--white) !important;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(32, 178, 170, 0.4);
  filter: brightness(1.1);
}

/* 5. HERO SECTIE (MOBILE-FIRST) */
.hero {
  background: radial-gradient(circle at top right, #2c3e50, #1a1a1a);
  padding: 100px 15px 60px 15px; /* Mobiel padding */
  color: var(--white);
  border-bottom: 5px solid var(--cyan-deep);
  text-align: center;
}

@media (min-width: 768px) { 
  .hero { padding: 140px 0 80px 0; } 
}

.rk-badge {
  background: rgba(32, 178, 170, 0.1);
  color: var(--cyan-glow);
  border: 1px solid var(--cyan-glow);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* 6. HOME: FOTO & SKILLS */
.profile-img-container {
  position: relative;
  display: inline-block;
  z-index: 1;
  /* NIEUW: Zorgt dat de container ook de afgeronde hoeken vorm heeft */
  border-radius: 1.5rem; 
}

/* De bewegende stippellijn ring */
.profile-img-container::after {
  content: "";
  position: absolute;
  /* Ruimte tussen de foto en de stippellijn */
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  border: 2px dashed var(--cyan-glow);
  /* AANGEPAST: border-radius van 50% naar 1.5rem (24px) om de vorm van de foto te volgen */
  border-radius: 1.5rem; 
  animation: rotateRing 20s linear infinite;
  z-index: -1;
}

@keyframes rotateRing { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* DE SKILL LIJNEN (VOOR HTML, CSS, JS) */
.skill-label { 
  font-weight: 700; 
  margin-bottom: 8px; 
  display: flex;
  justify-content: space-between;
}

.skill-track {
  height: 10px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 25px;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-glow), var(--cyan-deep)) !important;
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.1, 0.5, 0.2, 1);
}

/* 7. CARDS & GRID */
.rk-card {
  background: var(--white) !important;
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: auto !important;
  color: var(--text-dark) !important;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .rk-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 139, 139, 0.12); }
}

/* 8. PROJECT FILTERS */
.filter-container .btn {
  border: none !important;
  outline: none !important;
  transition: all 0.3s ease;
  margin: 5px;
}

.active-filter {
  background: linear-gradient(45deg, var(--cyan-glow), var(--cyan-deep)) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(0, 139, 139, 0.3) !important;
  border-radius: 10px;
}

/* 9. WERK ERVARING & WITTE VLAKKEN */
.main-white-bg {
  background-color: #ffffff !important;
  border-top: 5px solid var(--cyan-glow);
  border-radius: 0;
  padding-bottom: 60px;
}

.experience-grid { align-items: flex-start !important; }
.rk-card-school { border-left: 5px solid var(--cyan-glow) !important; }

/* 10. CONTACT FORMULIER */
.form-control {
  background-color: #f8f9fa;
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 12px 15px;
}

.form-control:focus {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 0 0.25rem rgba(32, 178, 170, 0.1);
  background-color: white;
}

/* 11. FOOTER & TOOLS */
pre {
  background: #1a1a1a !important;
  color: #a9b7c6 !important;
  padding: 20px !important;
  border-radius: 15px;
  overflow-x: auto;
  border: 1px solid var(--cyan-deep);
}

.back-to-top {
  position: fixed;
  bottom: 25px; right: 25px;
  width: 45px; height: 45px;
  background: linear-gradient(45deg, var(--cyan-deep), var(--cyan-glow));
  border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  z-index: 1000; color: white !important; border: none;
}

footer {
  background-color: #1a1a1a !important;
  color: white;
  padding: 40px 0;
}