/* =====================
   BASE STYLES
===================== */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #333;
}

/* =====================
   HEADER & NAVIGATION
===================== */
header {
  background: #0d47a1;
  color: #fff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

header h1 {
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
  font-size: clamp(1.2rem, 4vw, 2rem);
}

nav a {
  margin-left: 20px;
  color: #fff;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
  position: absolute;
  right: 10px;
  top: 10px;
}

/* =====================
   intro SECTION
===================== */

.intro-section {
  max-width: 850px;
  margin: 0 auto;
  padding: 20px 15px;
}

.intro-section h2 {
  margin-bottom: 15px;
  font-size: 2rem;
  text-align: center;
}

.intro-text {
  font-size: 1.15rem;
  line-height: 1.65;
  margin-bottom: 15px;
  color: #333;
}


/* =====================
   HERO SECTION
===================== */
.hero {
  position: relative;
  background: url('./img/head.jpeg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
  z-index: 0;
}

.hero h2,
.hero p,
.hero .btn {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero .btn {
  padding: 12px 25px;
  background: #ffca28;
  color: #000;
  font-weight: bold;
  margin: 0 10px;
  border-radius: 5px;
}

/* =====================
   LAYOUT & CONTAINER
===================== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  display: flex;
  gap: 20px;
}

main {
  flex: 3;
}

aside {
  flex: 1;
}

section {
  margin-bottom: 60px;
}

section h3 {
  border-bottom: 2px solid #0d47a1;
  padding-bottom: 10px;
  margin-bottom: 20px;
  color: #0d47a1;
}

/* =====================
   CARDS
===================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  background: #fff;
}

.card img {
  width: calc(100% - 50px); /* 25px + 25px */
  margin: 25px 25px 0 25px; /* top right bottom left */
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 15px;
}

.card-content h4 {
  margin: 0 0 10px 0;
}

.card-content p {
  font-size: 0.95rem;
}

.cards a.card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.cards a.card:hover {
  transform: translateY(-5px);
  transition: 0.3s;
}

a.wide-card {
  display: block;
}

a.wide-card:hover  {
  transform: translateY(-5px);
  transition: 0.3s;
}

.wide-card img {
  width: 20%;
  height: auto;
  display: block;
  float: left;
  margin: 10px 25px 0 25px;
}

.wide-card {
 padding: 15px;
}

.click-label {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #0d47a1;
  font-weight: 500;
}

.cards a.card:hover .click-label {
  text-decoration: underline;
}

.card .btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #ffca28, #ffc107);
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.card .btn:hover {
  background: linear-gradient(135deg, #ffc107, #ffb300);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}


/* =====================
     Table
===================== */
   table { border-collapse: collapse; width: 100%; margin: 20px 0; }
   table th, table td { padding: 10px; border: 1px solid #ddd; }
   table th { background: #0d47a1; color: #fff; }

/* =====================
     Code block 
===================== */
.code-container {
  position: relative;
  background:#1e1e1e;
  color:#f5f5f5;
  border-radius:8px;
  padding:20px;
  margin-bottom:30px;
  overflow:auto;
  font-family:'Courier New', monospace;
}
.copy-btn {
  position:absolute;
  top:10px;
  right:10px;
  background:#ffca28;
  border:none;
  border-radius:5px;
  padding:5px 10px;
  font-weight:bold;
  cursor:pointer;
  transition: background 0.3s;
}
.copy-btn:hover { background:#ffc107; }
.code-label { display:block; margin-top:5px; color:#aaa; font-size:0.85rem; }

/* =====================
   image
===================== */

.project-images img {
  width: 100%;       /* past de afbeelding aan de container aan */
  height: auto;      /* behoudt de aspect ratio */
  display: block;    /* verwijdert extra ruimte onder de afbeelding */
  max-width: 100%;   /* voorkomt dat hij breder wordt dan container */
}

.project-images {
  width: 100%;
  overflow: hidden;
}

/* =====================
   button
===================== */
    .btn {
    display: inline-block;
    padding: 12px 25px;
    background: #ffca28;
    color: #000;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
  }
  .btn:hover {
    background: #fdd835;
  }

/* =====================
  Basisstijl voor menu-items 
  ===================== */
.side-menu ul li a {
  display: block;
  font-weight: 400;
  color: #333;
  text-decoration: none;
  padding: 6px 0;
  transition: all 0.2s ease;
}

.side-menu ul li a:hover {
  font-weight: 600;
  color: #000;
  background: #f2f2f2;
  padding-left: 8px;
  border-radius: 6px;
}




/* =====================
   ASIDE / ADS
===================== */
.btn-ads {
  display: block;
  margin: 20px 0;
  background: #eee;
  padding: 15px;
  text-align: center;
  border: 1px dashed #aaa;
}

/* =====================
   FOOTER
===================== */
footer {
  background: #0d47a1;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  margin-top: 40px;
}

/* =====================
   ICONS & INFO BOX
===================== */
.info-box {
  background: #f9f9f9;
  border-left: 4px solid #0d47a1;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 5px;
}

.icon-text {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 12px 0;
  font-size: 1.05rem;
}

.icon-text i {
  font-size: 1.5rem;
  color: #0d47a1;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  /* Header */
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 20px;
  }

  nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #0d47a1;
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    z-index: 9999;
  }

  nav.open {
    max-height: 400px;
  }

  nav a {
    display: block;
    margin: 12px 20px;
    font-size: 1.1rem;
  }

  .menu-toggle {
    display: block;
  }

  /* Hero adjustments */
  .hero {
    padding: 60px 20px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero .btn {
    display: block;
    margin: 10px auto;
  }

  /* Container adjustments */
  .container {
    flex-direction: column;
    padding: 20px;
  }

  main, aside {
    flex: 1 1 100%;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .wide-card img {
    display:  none;
  }
}
