/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange: #ff662d;
  --dark: #1a1a1a;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: white;
  background-color: #1a1a1a;
  position: relative;
  min-height: 100vh;
  width: 100%;
}

/* Barcelona banner bovenaan op elke pagina */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px;
  background-image: url("../images/barcelona.jpg");
  background-repeat: no-repeat;
  background-position: center 35%;
  background-size: cover;
  opacity: 40%;
  z-index: -2;
}

/* Donkere overlay van ongeveer 20% */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px;
  background: rgba(0, 0, 0, 0.2);
  z-index: -1;
}

/* Logo styling */
.logo {
  display: flex;
  align-items: center;
  padding: 6px;
  margin-left: 14px;
  text-decoration: none;
}

.logo-img {
  width: 72px;
  height: auto;
  padding: 0;
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.36rem 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.44rem;
  margin-right: 1.44rem;
}

.nav-social-links {
  display: flex;
  gap: 1.02rem;
}

.nav-links {
  display: flex;
  gap: 0.72rem;
}

.nav-button {
  background-color: var(--orange);
  color: var(--dark);
  padding: 0.36rem 1.08rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.02rem;
  line-height: 1.2;
  transition: all 0.3s ease;
}

.nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-button.active {
  background-color: var(--dark);
  color: var(--orange);
  border: 2px solid var(--orange);
}

/* Active state for nav buttons */
.nav-button.active {
  background-color: var(--dark);
  color: var(--orange);
  border: 2px solid var(--orange);
}

.nav-social-links a {
  color: var(--orange);
  font-size: 1.14rem;
  transition: transform 0.3s ease;
}

.nav-social-links a:hover {
  transform: translateY(-2px);
}

/* Hero section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 10rem 2rem 2rem;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-top: 4rem;
}

.hero-text h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 2rem;
}

.profile-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin-left: auto;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid var(--orange);
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-font-smoothing: antialiased;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--orange);
  color: var(--dark);
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.button.outline {
  background-color: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.info-card {
  background-color: var(--orange);
  padding: 2rem;
  border-radius: 15px;
  color: var(--dark);
  margin: 4rem auto;
  max-width: 1200px;
  width: calc(100% - 4rem);
}

.info-card h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-container {
    margin: 0 auto;
    width: 300px;
    height: 300px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
  }

  .hamburger {
    display: block;
  }
}

@media (max-width: 968px) {
  .hero {
    padding: 8rem 1rem 1rem;
  }

  .hero-content {
    padding-top: 2rem;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 6rem 1rem 1rem;
  }

  .profile-container {
    margin: 0 auto;
    width: 300px;
    height: 300px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
  }

  .hamburger {
    display: block;
  }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-font-smoothing: subpixel-antialiased;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  margin-top: 80px;
}

.portfolio-item {
  position: relative;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-overlay h3 {
  color: var(--orange);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: #1a1a1a;
  font-size: 1rem;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Responsive adjustments for portfolio preview */
@media (max-width: 968px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

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

  .portfolio-preview {
    padding: 2rem 1rem;
  }
}

/* About page */
.about-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 12rem 2rem 2rem;
  position: relative;
}

.about-sections {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 0 auto;
  padding-top: 2rem;
}

.about-content {
  width: 100%;
  padding: 30px;
  background-color: #23232a;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 8px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #000000;
}

.about-content:first-child {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3rem;
  align-items: center;
  justify-items: center;
}

.about-image {
  position: relative;
  width: 350px;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}

.about-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.about-text {
  padding-right: 20px;
}

.about-text h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--orange);
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  color: white;
}

.cta-button {
  margin-top: 2.5rem;
}

.cta-button .button {
  background-color: var(--orange);
  color: var(--dark);
  padding: 0.8rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
}

.cta-button .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Skills section styles */
.skills-section {
  color: white;
}

.skills-section h2 {
  font-size: 2.2rem;
  color: var(--orange);
  margin-bottom: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.skill-category h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--orange);
}

.skill-category ul {
  list-style: none;
  padding: 0;
}

.skill-category li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

/* Tool icons grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
  justify-content: start;
}

.tool-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  width: 60px;
  height: 60px;
}

.tool-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.tool-icon:hover {
  transform: translateY(-5px);
}

.tool-icon:hover img {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 968px) {
  .about-content:first-child {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  .about-text {
    padding-right: 0;
    text-align: center;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-text,
  .skills-section {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(3, 60px);
    gap: 1.5rem;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .about-sections {
    gap: 30px;
  }

  .about-content {
    padding: 25px;
  }

  .about-text h1 {
    font-size: 2rem;
  }

  .skills-section h2 {
    font-size: 1.8rem;
  }

  .skill-category h3 {
    font-size: 1.2rem;
  }

  .skill-category li {
    font-size: 1rem;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 60px);
    gap: 1.5rem;
  }
}

/* Footer */
footer {
  background: #333;
  color: white;
  padding: 2rem;
  text-align: center;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #999;
}

/* Responsive hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 2px 0;
  transition: 0.3s;
}

/* Contact page styles */
.contact-page {
  min-height: 100vh;
  padding: 12rem 20px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-intro {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 2.5rem;
  line-height: 1.4;
  font-weight: normal;
  text-align: center;
  max-width: 800px;
}

.contact-container {
  width: 100%;
  max-width: 600px;
  background: #23232a;
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 8px 12px rgba(0, 0, 0, 0.1);
}

.contact-container h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.contact-form label {
  color: white;
  font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  width: 100%;
  transition: all 0.3s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--orange);
}

.submit-button {
  background-color: var(--orange);
  color: var(--dark);
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  width: 100%;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Adjust padding for mobile */
@media (max-width: 768px) {
  .contact-container {
    padding: 30px 25px;
    margin: 0 15px;
  }

  .form-row {
    gap: 1rem;
  }
}

/* Eigenschappen section */
.eigenschappen {
  padding: 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 100px auto 4rem;
  width: 100%;
  position: relative;
}

.eigenschappen h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 3rem;
}

.eigenschappen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  width: 100%;
}

.eigenschap {
  color: white;
  padding: 1rem;
}

.eigenschap h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.eigenschap p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 350px;
  margin: 0 auto;
}

/* Responsive adjustments for eigenschappen */
@media (max-width: 968px) {
  .eigenschappen-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .eigenschap {
    max-width: 600px;
    margin: 0 auto;
  }

  .eigenschap p {
    max-width: 100%;
  }

  .eigenschappen {
    margin-top: 80px;
  }
}

@media (max-width: 480px) {
  .eigenschappen {
    margin-top: 60px;
    padding: 4rem 1rem;
  }

  .eigenschappen h2 {
    font-size: 2rem;
  }

  .eigenschap h3 {
    font-size: 1.75rem;
  }
}

/* Portfolio Preview Section */
.portfolio-preview {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

.portfolio-item {
  position: relative;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-overlay h3 {
  color: var(--orange);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: #1a1a1a;
  font-size: 1rem;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Responsive adjustments for portfolio preview */
@media (max-width: 968px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

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

  .portfolio-preview {
    padding: 2rem 1rem;
  }
}

/* Contact form section on homepage */
.contact-form-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  width: 100%;
}

.contact-form-section .contact-container {
  width: 100%;
  max-width: 600px;
  background: #23232a;
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 auto;
}

.contact-form-section h1 {
  text-align: center;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .contact-form-section {
    padding: 3rem 1rem;
  }

  .contact-form-section .contact-container {
    padding: 30px 25px;
  }
}

@media (max-width: 480px) {
  .contact-form-section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 968px) {
  .nav-right {
    display: none;
  }

  .nav-links.active {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
  }

  .hamburger {
    display: block;
  }
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 800px;
  margin: 50px auto;
  background-color: white;
  padding: 20px;
  border-radius: 15px;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 20px;
}

.modal-text {
  color: #1a1a1a;
  padding: 20px 0;
}

.modal-text h2 {
  color: var(--orange);
  margin-bottom: 15px;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  color: #1a1a1a;
  font-size: 30px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--orange);
}

@media (max-width: 850px) {
  .modal-content {
    margin: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }
}

.portfolio-page {
  min-height: 100vh;
  padding: 12rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-page .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

@media (max-width: 768px) {
  .portfolio-page {
    padding: 8rem 1rem 2rem;
  }
}

.contact-intro {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 2.5rem;
  line-height: 1.4;
  font-weight: normal;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .contact-intro {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
}

/* Extra responsive voor banner */
@media (max-width: 768px) {
  body::before,
  body::after {
    height: 340px;
    background-position: center 40%;
  }

  .navbar {
    background: rgba(0, 0, 0, 0.28);
  }
}
