/*
Theme Name: Neasy Portfolio Theme
Theme URI: http://voorbeeld.com/
Author: Jesse Hardorff
Author URI: http://voorbeeld.com/
Description: Een portfolio theme voor een portfolio website.
Version: 1.0
*/

/* 
MARK: MAIN STYLES
*/

html {
  scroll-behavior: smooth;
}

html,
body {
  overscroll-behavior-y: none;
}

body {
  padding-top: 10vh;
  background-color: #f5f4f2;
}

#home {
  margin-top: -10vh;
  padding-top: 10vh;
}

.page-wrap {
  padding: 2rem 0;
}

.post-content {
  font-size: 1.3rem;
  background-color: #f8f8f8;
}

body.page-template-template-onepage {
  padding-top: 10vh;
  overflow-x: hidden;
}

/* 
MARK: DARK MODE & TRANSITIONS
*/

body.dark-mode {
  background-color: #1e293b;
  color: #9097a4;
}

/* Prefents Transitions in reload*/
.no-transition,
.no-transition * {
  transition: none !important;
}

/* Good transition between light and dark mode */
body,
header,
.card,
.card-body,
.btn,
.profile-circle::before,
.profile-circle::after {
  transition: all 0.5s ease;
}

/* 
MARK:HEADER & NAVIGATIE
*/

/* Light mode styles */
header {
  width: 100%;
  height: 10vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-size: 1.5rem;
}

header .top-bar {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
}

header .top-bar li {
  display: inline-block;
}

/* Colors of <a> tags */
header .top-bar li a {
  color: #000;
  padding: 0.25rem 1rem;
  text-decoration: none;
  position: relative;
}

header .top-bar li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  background-color: #000;
  bottom: 0;
  left: 50%;
  transition: width 0.3s ease, left 0.3s ease;
}

header .top-bar li a:hover::after {
  width: 100%;
  left: 0;
}

/* Dark mode styles */
body.dark-mode header {
  background: #1e293b;
}

body.dark-mode header .top-bar li a {
  color: #9097a4;
}

body.dark-mode header .top-bar li a::after {
  background-color: #9097a4;
}
/* 
MARK:HOME

*/
/* 
MARK:THEME SWITCH
*/

.theme-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.theme-switch img {
  position: absolute;
  width: 100%;
  height: 100%;
}

.theme-switch .sun {
  opacity: 0;
  transform: rotate(180deg);
}

.theme-switch .sun,
.theme-switch .moon {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

body.dark-mode .theme-switch .moon {
  opacity: 0;
  transform: rotate(-180deg);
}

body.dark-mode .theme-switch .sun {
  opacity: 1;
  transform: rotate(0);
}

.theme-switch.rotating img {
  animation: rotate 0.5s linear;
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Zorg dat menu-items horizontaal blijven op mobiel */

@media (max-width: 768px) {
  header .top-bar {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
  }

  header .top-bar li {
    display: inline-block;
    margin: 5px 8px;
    font-size: 1rem;
  }

  /* Voorkom dat het menu verticaal wordt */
  header .top-bar.responsive {
    position: relative;
    flex-direction: row !important;
    height: auto;
  }

  /* Zorg dat er geen hamburger menu verschijnt */
  header .menu-toggle {
    display: none !important;
  }
  body:not(.dark-mode) header {
    background-color: #ededed !important;
  }
}

/* 
MARK:CARDS & CONTENT
*/

.card-body {
  color: #000000;
}

.card .btn {
  color: #000000;
  border-color: #000000;
  font-size: 1rem;
  padding: 8px 16px;
}

body.dark-mode .card {
  background-color: #2d3748;
}

body.dark-mode .card-body {
  color: #e2e8f0;
}

body.dark-mode .card .btn {
  color: #e2e8f0;
  border-color: #e2e8f0;
}
/* Styling voor de knoppen */
.btn-github,
.btn-website {
  margin-left: 5px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 8px 15px;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  color: white;
}

.btn-github {
  background-color: #6e5494;
  color: white;
  margin-left: 5px;
  transition: all 0.3s ease;
}

.btn-github:hover {
  background-color: #8a6db1;
  color: white;
}

.btn-website {
  background-color: #4caf50;
  color: white;
  margin-left: 5px;
  transition: all 0.3s ease;
}

.btn-website:hover {
  background-color: #66bb6a;
  color: white;
}

/* Algemene knop styling verbeteren */
.card .btn {
  margin-right: 5px;
  margin-bottom: 5px;
  border-radius: 5px;
  padding: 8px 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

/* 
MARK:PAGINATION & COMMENTS
*/

.pagination {
  display: flex;
  align-items: center;
  margin: 20px 0;
  font-size: 1.2rem;
}

.pagination a {
  color: orange;
  text-decoration: none;
  padding: 10px 15px;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.pagination a:hover {
  color: rgb(176, 117, 6);
  border-color: #db8e08;
}

.gitation {
  display: flex;
  align-items: center;
  margin: 20px 0;
  font-size: 1.2rem;
}

.gitation a {
  color: rgb(218, 13, 249);
  text-decoration: none;
  padding: 10px 15px;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.gitation a:hover {
  color: rgb(158, 12, 181);
  border-color: rgb(218, 13, 249);
}

form#commentform a {
  color: rgb(176, 117, 6);
}

body.dark-mode form#commentform input {
  background-color: #606f88;
  color: white;
}

body.dark-mode form#commentform textarea {
  background-color: #606f88;
  color: white;
}

/* 
MARK:BUTTONS & LINKS
*/

body .btn {
  font-size: 1.5rem;
  padding: 0.8rem 1.6rem;
  color: #000000;
  border: 2px solid #000000;
}

body .btn:hover {
  background-color: #000000;
  color: #ffffff;
}

body.dark-mode .btn {
  color: #ffffff;
  background-color: #3d4b61;
  border-color: #3d4b61;
}

body.dark-mode .btn:hover {
  background-color: #4a5b76;
  border-color: #4a5b76;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.linkedin-btn img {
  transition: transform 0.3s ease;
}

.linkedin-btn:hover img {
  transform: scale(1.2);
}

#linkedin-btn {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* 
MARK:ABOUT ME SECTIE
*/

/*MARK: NAME HIGHLIGHT EFFECT*/

.name-highlight {
  display: inline-block;
  font-weight: bold;
  background: linear-gradient(45deg, #ff8a00, #e52e71, #ff8a00);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradient-text 3s ease infinite;
  text-shadow: 0 0 10px rgba(255, 138, 0, 0.3);
  transition: transform 0.3s ease;
}

.name-highlight:hover {
  transform: scale(1.05);
  animation: gradient-text 1s ease infinite;
}

@keyframes gradient-text {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Dark mode adjustment */
body.dark-mode .name-highlight {
  background: linear-gradient(45deg, #00dbde, #fc00ff, #00dbde);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 10px rgba(0, 219, 222, 0.3);
}
body.dark-mode .name-highlight {
  background: linear-gradient(45deg, #00dbde, #fc00ff, #00dbde);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 10px rgba(0, 219, 222, 0.3);
}

.highlight {
  color: orange; /* Orange color in light mode */
  transition: color 0.3s ease, font-size 0.3s ease;
}

.highlight:hover {
  color: #c07c05; /* Darker orange on hover */
  font-size: calc(1.2rem * 1.1);
}

.highlight-primary {
  color: orange; /* Orange color in light mode */
  transition: color 0.3s ease, font-size 0.3s ease;
}

.highlight-primary:hover {
  color: #c07c05; /* Darker orange on hover */
  font-size: calc(1.75rem * 1.1);
}

/* Purple for dark mode */
body.dark-mode .highlight,
body.dark-mode .highlight-primary {
  color: #8a2be2; /* Purple color in dark mode */
}

body.dark-mode .highlight:hover {
  color: #6a1fb1; /* Darker purple on hover in dark mode */
}

body.dark-mode .highlight-primary:hover {
  color: #6a1fb1; /* Darker purple on hover in dark mode */
}
.about-me-container {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 5vh;
}

.about-me-image {
  flex: 0 0 30%;
}

.about-me-image img {
  max-width: 80%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-me-content {
  flex: 1;
  font-size: 1.2rem;
}

.about-me-content h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

/* 
MARK: PROFILE CIRCLE EFFECT
*/
.project-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary-color);
  color: black; /* Black text in light mode */
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 1;
}

body.dark-mode .project-date {
  color: white; /* White text in dark mode */
}

.profile-circle {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
}

.profile-circle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  position: relative;
  z-index: 2; /* Img is above colors */
}

.profile-circle::before,
.profile-circle::after {
  position: absolute;
  z-index: 1;
  content: "";
  inset: -7px;
  border-radius: inherit;
  background-image: conic-gradient(#ff8a00, #e52e71, #ff8a00);
  animation: rotate-profile 6s linear infinite;
  transition: background-image 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
}

/* Light effect */
.profile-circle::after {
  filter: blur(2rem);
  opacity: 0.5;
}

/* Color change for dark mode */
body.dark-mode .profile-circle::before,
body.dark-mode .profile-circle::after {
  background-image: conic-gradient(#00dbde, #fc00ff, #00dbde);
}

/* 
MARK: SECTION DIVIDERS
*/

section[id]:not(:last-child):not(.no-divider) {
  position: relative;
}

section[id]:not(:last-child):not(.no-divider)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 3px;
  background-color: rgba(0, 0, 0, 0.2); /* Zwarte lijn in light mode */
  transition: background-color 0.5s ease;
}

/* Dark mode for lines*/
body.dark-mode section[id]:not(:last-child):not(.no-divider)::after {
  background-color: rgba(255, 255, 255, 0.1); /* Witte lijn in dark mode */
}

/* 
MARK: ANIMATIONS
*/

/* Rotates Colors */
@keyframes rotate-profile {
  to {
    transform: rotate(360deg);
  }
}

/* Waving emoji animation */
.waving-emoji {
  display: inline-block;
  animation: wave 2.5s ease-in-out infinite;
  transform-origin: 70% 70%; /* good hand movement */
}

@keyframes wave {
  0% {
    transform: rotate(-0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(14deg);
  }
  60% {
    transform: rotate(-6deg);
  }
  70% {
    transform: rotate(8deg);
  }
  80% {
    transform: rotate(-2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* 
MARK:MEDIA QUERIES
*/

@media (min-height: 800px) {
  .about-me-container {
    margin-top: 10vh;
  }
}

@media (max-width: 768px) {
  .about-me-container {
    flex-direction: column;
  }
  .about-me-image img {
    display: block;
    margin: 0 auto;
  }
}

/* 
MARK:SCROLL INDICATOR
*/

.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 165, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 100;
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  color: white;
  font-size: 20px;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Hide scroll indicator when at bottom of page */
.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}
/* === RESPONSIVE FIXES VOOR MOBIEL (max-width: 768px) === */
@media (max-width: 768px) {
  /* Cards in carousels één per rij */
  .carousel-item .row .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .card {
    margin-bottom: 20px;
  }

  .project-date {
    top: 5px;
    right: 5px;
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .profile-circle {
    width: 250px;
    height: 250px;
  }

  .about-me-content {
    text-align: center;
  }

  .about-me-content p,
  .about-me-content h2 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  header .top-bar {
    flex-direction: column;
    align-items: center;
  }

  header .top-bar li a {
    padding: 0.5rem 0.75rem;
  }

  .btn {
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
  }

  h1,
  h2,
  h3 {
    font-size: 1.8rem !important;
  }

  .carousel-control-prev,
  .carousel-control-next {
    background-color: rgba(0, 0, 0, 0.7);
  }

  .card-body {
    height: auto !important;
  }

  .card-img-top {
    height: auto !important;
    max-height: 300px;
  }
  .card .mt-auto {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
  }
  .card .btn,
  .card .btn-github,
  .card .btn-website {
    min-width: 110px;
  }
  .carousel-item .col-md-4 {
    margin-bottom: 2rem;
  }
  /* === Pijltjes zwart in light mode === */

  /* === Pijltjes naast titel op mobiel === */
  @media (max-width: 768px) {
    .section-heading-wrapper {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .section-heading-wrapper h3 {
      font-size: 1.5rem;
      margin: 0;
    }

    .section-heading-wrapper .carousel-nav {
      display: flex;
      gap: 0.5rem;
    }
  }
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none !important; /* Override Bootstrap's default background image */
}

/* Then style your custom SVG arrows */
.carousel-control-prev-icon svg,
.carousel-control-next-icon svg {
  width: 40px;
  height: 40px;
  display: block;
  margin: auto;
}

.carousel-nav {
  display: flex;
  gap: 0.5rem;
}
body:not(.dark-mode) .carousel-control-prev-icon svg,
body:not(.dark-mode) .carousel-control-next-icon svg {
  fill: black;
}

/* Make sure these styles are applied */
body.dark-mode .carousel-control-prev-icon svg,
body.dark-mode .carousel-control-next-icon svg {
  fill: white !important; /* Add !important to override any other styles */
}
/* Zorg dat de pijltjes in dark mode wit zijn op mobiel */
body.dark-mode .carousel-title-nav .carousel-control-prev-icon svg,
body.dark-mode .carousel-title-nav .carousel-control-next-icon svg {
  fill: white;
}

.btn-carousel-prev,
.btn-carousel-next {
  background: transparent;
  border: none;
  padding: 0;
}

.btn-carousel-prev svg,
.btn-carousel-next svg {
  fill: black;
}

body.dark-mode .btn-carousel-prev svg,
body.dark-mode .btn-carousel-next svg {
  fill: white;
}
/* Mobiele stijl voor carousel header */
/* Hide external carousel controls on mobile */
@media (max-width: 768px) {
  #favoriteProjectsPrev,
  #favoriteProjectsNext,
  #otherProjectsPrev,
  #otherProjectsNext {
    display: none !important;
  }

  /* Ensure mobile navigation is properly displayed */
  .carousel-title-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .carousel-title-nav .carousel-control-prev,
  .carousel-title-nav .carousel-control-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0;
  }

  .carousel-title-nav .carousel-control-prev-icon,
  .carousel-title-nav .carousel-control-next-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  /* Zorg dat de SVG gecentreerd is binnen de icon */
  .carousel-title-nav .carousel-control-prev-icon svg,
  .carousel-title-nav .carousel-control-next-icon svg {
    position: relative;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
  }

  /* Dark mode aanpassingen */
  body.dark-mode .carousel-title-nav .carousel-control-prev,
  body.dark-mode .carousel-title-nav .carousel-control-next {
    background-color: rgba(255, 255, 255, 0.5);
  }
}

/* Show external carousel controls only on desktop */
@media (min-width: 769px) {
  .carousel-title-nav {
    display: none !important;
  }

  #favoriteProjectsPrev,
  #favoriteProjectsNext,
  #otherProjectsPrev,
  #otherProjectsNext {
    display: block;
  }
}

/* Fix the overlapping arrows issue by hiding Bootstrap's default icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none !important;
}
header.container {
  font-size: 2rem;
}
