/* styles.css - Mobile First Responsive Design */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #34495e;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
}

/* Base Styles - Mobile First */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--light-color);
}

/* Header & Navigation - Mobile (Hamburger Menu) */
header {
  background-color: var(--primary-color);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
}

/* Logo styling */
.logo {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 101;
}

.logo span {
  color: var(--secondary-color);
}

/* Mobile Navigation - Using checkbox hack */
.nav-container {
  display: flex;
  align-items: center;
}

/* Hide checkbox */
#nav-toggle {
  display: none;
}

/* Hamburger Menu Button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  position: relative;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* Animate hamburger to X when menu is open */
#nav-toggle:checked ~ .hamburger span:nth-child(1) {
  transform: rotate(45deg);
}

#nav-toggle:checked ~ .hamburger span:nth-child(2) {
  opacity: 0;
}

#nav-toggle:checked ~ .hamburger span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Mobile Navigation Menu */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--primary-color);
  padding: 6rem 2rem 2rem;
  transition: right 0.3s ease-in-out;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  z-index: 100;
}

/* Show menu when checkbox is checked */
#nav-toggle:checked ~ .nav-menu {
  right: 0;
}

.nav-links {
  list-style: none;
}

.nav-links li {
  margin-bottom: 1rem;
}

.nav-links a {
  display: block;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a:active,
.nav-links a:focus {
  background-color: var(--secondary-color);
  color: white;
}

/* Close button for mobile menu - using label as close button */
.close-menu {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

#nav-toggle:checked ~ .nav-menu .close-menu {
  display: block;
}

/* Close menu when clicking on close button or overlay */
.close-menu-label {
  cursor: pointer;
}

/* Overlay when menu is open */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#nav-toggle:checked ~ .menu-overlay {
  opacity: 1;
  visibility: visible;
}

/* Close menu when clicking on overlay */
.menu-overlay-label {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Hero Section - Mobile */
.hero {
  position: relative;
  height: 50vh;
  overflow: hidden;
}

.myVideo {
    position: relative;
    width: 100%;
    height: 100vh; /* Of een andere gewenste hoogte */
    object-fit: cover; /* Zorgt dat de video het gebied goed vult */
}

.overlayText {
  position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%; /* Neemt volledige breedte van parent */
    z-index: 2; /* Zorgt dat tekst boven de video staat */
}

.topText {
  color: white;
  font-size: 1.8rem;
  text-align: center;
  font-weight: 300;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

/* Main Content - Mobile */
main {
  width: 100%;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.card h2 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-weight: 500;
  font-size: 1.3rem;
}

.card p {
  color: #555;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.card a {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.card a:hover {
  background-color: #2980b9;
}

/* Form - Mobile */
.contactform {
  width: 100%;
  margin: 1.5rem auto;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.contactform h2 {
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  text-align: center;
  font-weight: 500;
  font-size: 1.3rem;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
  color: var(--dark-color);
  font-weight: 500;
  font-size: 0.9rem;
}

input,
textarea {
  padding: 0.7rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

input[type="submit"] {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.8rem;
  margin-top: 1.2rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.3s;
}

input[type="submit"]:hover {
  background-color: #2980b9;
}

/* Details/Summary - Mobile */
details {
  margin-bottom: 1rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  padding: 0.5rem;
}

summary {
  padding: 1.2rem;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.3s;
}

summary:hover {
  background-color: #1a252f;
}

details p {
  padding: 1.2rem;
  color: #555;
  font-size: 0.95rem;
}

/* Footer - Mobile */
footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}

footer p {
  font-size: 0.9rem;
}

/* Project Details - Mobile */
.project-details {
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

.project-info {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-light);
}

.project-info h2 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.project-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #555;
}

.project-specs h3 {
  color: var(--secondary-color);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.project-specs ul {
  list-style-type: none;
  padding: 0;
}

.project-specs li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.project-specs li:before {
  content: "▸";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
}

.screenshot-gallery {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-light);
}

.screenshot-gallery h3 {
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.screenshot-item {
  text-align: center;
}

.screenshot-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--border-radius);
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--light-color), #dde1e7);
}

.screenshot-item img:hover {
  transform: scale(1.02);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-medium);
}

.screenshot-item p {
  color: #555;
  font-size: 0.85rem;
  margin: 0.8rem 0 0 0;
  font-weight: 500;
}

.download-section {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-light);
}

.download-section h3 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.download-section p {
  color: #555;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.download-btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.download-btn:hover {
  background-color: white;
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Tablet Styles (min-width: 768px) */
@media (min-width: 768px) {
  html {
    font-size: 15px;
  }

  header {
    padding: 1rem 1.5rem;
  }

  .hero {
    height: 60vh;
  }

  .topText {
    font-size: 2.5rem;
  }

  main {
    max-width: 720px;
    padding: 0 1.5rem;
  }

  .content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .contactform {
    max-width: 600px;
    padding: 2rem;
  }

  .project-details {
    max-width: 720px;
    padding: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .screenshot-item img {
    height: 180px;
  }

  .project-info h2 {
    font-size: 1.8rem;
  }

  .topText {
    font-size: 1.8rem;
}
}

/* Desktop Navigation Styles (min-width: 1024px) */
@media (min-width: 1024px) {
  html {
    font-size: 16px;
  }

  /* Hide hamburger menu and checkbox on desktop */
  #nav-toggle,
  .hamburger,
  .close-menu,
  .menu-overlay {
    display: none !important;
  }

  /* Desktop Navigation */
  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    transition: none;
    overflow: visible;
    right: 0 !important;
  }

  .nav-links {
    display: flex;
    gap: 0.5rem;
    margin: 0;
  }

  .nav-links li {
    margin-bottom: 0;
  }

  .nav-links a {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }

  .nav-links a:hover,
  .nav-links a:active,
  .nav-links a:focus {
    background-color: var(--secondary-color);
  }

  .hero {
    height: 70vh;
  }

  .topText {
    font-size: 3rem;
  }

  main {
    max-width: 1000px;
  }

  .content-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
  }

  .project-details {
    max-width: 1000px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .screenshot-item img {
    height: 200px;
  }

  .project-info h2 {
    font-size: 2rem;
  }

  footer {
    padding: 2rem;
  }
}

/* Large Desktop Styles (min-width: 1200px) */
@media (min-width: 1200px) {
  main {
    max-width: 1200px;
  }

  .project-details {
    max-width: 1200px;
  }

  /* Larger desktop navigation */
  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
  }

  .card a:active,
  input[type="submit"]:active,
  .download-btn:active {
    transform: scale(0.98);
  }

  /* Increase tap target size for mobile */
  .nav-links a {
    padding: 1rem 1.2rem;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .card,
  .contactform,
  .project-info,
  .screenshot-gallery,
  .download-section {
    border: 2px solid #000;
  }

  .hamburger span {
    background-color: #000;
    border: 1px solid #fff;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
summary:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}


