/* =============================
   Custom Variables & Base Styles
   ============================= */
:root {
  --accent: #041728;
  --off-white: #F8F9FA;
  --highlight: #EFEFEF;
  --joker: #A020F0;
}
section {
  scroll-margin-top: 80px;
}

#mystory {
  padding-top: 80px!important;
  margin-top: -80px!important;
  scroll-margin-top: 80px !important; /* still good to have */
  scroll-snap-align: start;
  position: relative;
  z-index: 2;
}



body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--off-white);
  color: var(--accent);
  margin: 0;
  padding: 0;
  scroll-snap-type: y mandatory;
}

/* =============================
   Custom Navigation Styles
   ============================= */

/* Default Navbar (Hero State) */
.navbar.hero-nav {
  background: linear-gradient(135deg, #041728, #082340);
  transition: background 0.75s ease, box-shadow 0.75s ease, padding 0.75s ease;
  padding: 1.5rem 1rem; /* Larger padding for a bold look */
}

.navbar.hero-nav .navbar-brand {
  font-size: 2rem; /* Larger brand/logo */
  transition: font-size 0.75s ease, color 0.75s ease;
  color: #fff;
  z-index: 0 !important;
}

.navbar .navbar-toggler-icon{
    color: #fff;
}

.navbar.hero-nav .nav-link {
  font-size: 1.2rem; /* Larger nav items */
  color: #fff;
  transition: font-size 0.75s ease, color 0.75s ease;
}

/* Scrolled Navbar (When Not in Hero Section) */
.navbar.scrolled {
  background: var(--off-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Added depth */
  transition: background 0.75s ease, box-shadow 0.75s ease, padding 0.75s ease;
  padding: 0.75rem 1rem; /* Smaller padding */
}

.navbar-logo {
  width: 50px; /* Adjust as needed */
  height: auto;
  transition: transform 0.75s ease; /* Smooth transition */
  margin-right: 0;
}

/* Default (Hero Navbar) - White Logo */
.navbar.hero-nav .navbar-logo {
  filter: none;
  transform: scale(1.5);
}

/* When Scrolled - Change to Blue (var(--accent)) */
.navbar.scrolled .navbar-logo {
  
  filter: brightness(0) saturate(100%) invert(8%) sepia(29%) saturate(1676%) hue-rotate(170deg) brightness(95%) contrast(101%);
}

.navbar.scrolled .navbar-brand {
  font-size: 1.5rem;
  color: var(--accent);
  transition: font-size 0.75s ease, color 0.75s ease;
}

.navbar.scrolled .nav-link {
  font-size: 1rem;
  color: var(--accent);
  transition: font-size 0.75s ease, color 0.75s ease;
}

/* Make nav links display as vertical flex items */
.navbar-nav .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Nav icon styling */
.nav-icon {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Nav text styling remains inherited */
.nav-text {
  font-size: inherit;
}

/* Hover effect: Slight upward movement and color shift */
.navbar-nav .nav-link:hover .nav-icon {
  transform: translateY(-3px);
  color: var(--joker);
}

/* Optional: Add a subtle scale effect on hover for the entire nav-link */
.navbar-nav .nav-link:hover {
  transform: scale(1.05);
}


/* =============================
   Hero Section Styles
   ============================= */
#hero {
  background: linear-gradient(135deg, #041728, #082340);
  color: #fff;
  min-height: 100vh;
  position: relative;
  z-index: 3; 
}

/* For larger screens, slightly scale down the image and code text */
@media (min-width: 768px) {
  .hero-img {
    max-height: 500px;
    object-fit: contain;
  }
  
  .code-snippet {
    font-size: 1.2rem;
    /* Removed max-height and overflow properties to avoid scrollbars */
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .code-snippet {
    font-size: 1.1rem;
    padding: 15px;
    color: var(--accent); /* Ensuring the text color remains accent */
  }
}

/* =============================
   Hero Text & Code Snippet Styling
   ============================= */
.hero-text {
  font-family: 'Courier New', Courier, monospace;
}

.code-snippet {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  white-space: pre-wrap;
  color: var(--off-white); /* Use our accent color for the base text */
  font-size: 1.2rem;
  font-family: 'Courier New', Courier, monospace;
}

/* Increase and recolor highlighted text within the hero text */
.hero-text strong {
  font-size: 1.4em;
  color: var(--highlight); /* Use the joker color for highlighted strings */
}



/* =============================
   CTA Button & Social Links
   ============================= */
.cta-btn {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background: linear-gradient(135deg, #041728, #082340);
  color: var(--off-white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.cta-btn:hover {
  background-color: var(--accent);
  color: var(--off-white);
  transform: scale(1.1);
}

.cta-inverse-btn {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  background-color: var(--off-white);
  color: var(--accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.cta-inverse-btn:hover {
  background-color: var(--off-white);
  color: var(--accent);
  transform: scale(1.1);
}

.social-links a {
  display: inline-block;
}

.social-icon {
  width: 32px;
  height: 32px;
  background-color: var(--highlight); /* Background for contrast */
  padding: 5px;
  border-radius: 50%;
  transition: transform 0.3s;
}

.social-icon:hover {
  transform: scale(1.2);
}
/* =============================
   My Story Section Styles
   ============================= */
.mystory-section {
  position: relative;
  overflow: hidden;
  color: var(--accent);
  background: #f9f9f9;
}

/* Sticky Title: Always visible */
.mystory-title {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--off-white);
  padding: 1rem;
}

/* Scrolling container for chapters */
.story-container {
  height: calc(80vh - 80px); /* Reserve space for the sticky title */
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  scroll-padding-bottom: 100px;
}


.story-chapter {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}


/* Active chapter state */
.story-chapter.active {
  opacity: 1;
  transform: translateY(0);
}

/* Chapter Content Base */
.chapter-content {
  max-width: 800px;
  text-align: center;
}

/* Chapter Icon */
.chapter-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--accent);
  transform: scale(2);
  text-align: center;
}

/* Chapter Title and Text */
.chapter-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.chapter-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--accent);
}

/* =============================
   Story Navigation Styles
   ============================= */
.story-nav {
  position: absolute;
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  z-index: 15;
}

.story-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.story-nav ul li {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.story-nav ul li:hover {
  background: var(--accent);
  color: var(--off-white);
  transform: scale(1.1);
}

.story-nav ul li.active {
  background: var(--accent);
  color: var(--off-white);
  transform: scale(1.1);
}








/* =============================
   My Roles Section Styles (Updated)
   ============================= */

.highlight-text {
  color: var(--accent); /* Example highlight color - you can adjust */
  font-weight: bold; /* Make it bold to stand out further */
  /* Optionally, add background-color or other styling */
}

.experience-section {
  background-color: #f2f8fc;
  color: var(--accent);
  font-family: 'Roboto', sans-serif;
  padding-bottom: 3rem;
}

/* Section Title & Decorative Line */
.section-title {
  font-size: 2rem;
  display: inline-block;
  position: relative;
}
.title-line {
  display: inline-block;
  width: 40vw;
  max-width: 500px;
  height: 3px;
  background-color: var(--accent);
  vertical-align: middle;
  margin-left: 10px;
}

.scroll-prompt {
  text-align: center;
  margin-top: 50px;
  cursor: pointer;
  animation: bounce 2s infinite;
}

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

/* Roles Grid - Using Bootstrap row/column system, so no additional grid CSS needed */


/* Role Card Styling */
.role-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

:not(.active).role-card:hover{
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
}

/* Subtle “Click to Expand” indication at bottom of the card */
.click-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  width: fit-content;
  margin: 0.5rem auto 0 auto; /* center horizontally */
}


/* Hide indicator when card is active (expanded), if desired */
.role-card.active .click-indicator {
  display: none;
}


/* Default state: hide description, show trigger text */
.role-description {
  display: none;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--accent);
  margin-top: 1rem;
}
.trigger-text {
  font-style: italic;
  color: var(--accent);
  margin-top: 0.5rem;
}

/* Active state: show description and hide trigger text */
.role-card.active .role-description {
  display: block;
  animation: fadeIn 0.7s ease forwards;
}
.role-card.active .role-icon{
  transform: scale(1.7);
  transition: transform 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Role Icon */
.role-icon {
  font-size: 1.7rem !important;
  color: var(--joker);
  margin-bottom: 1rem;
}

/* Role Title */
.role-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: bold;
  color: var(--accent);
}


/* =============================
   Subsection Separator Styles
   ============================= */
.subsection-separator {
  text-align: center;
  margin: 3rem 0;
  position: relative;
}

.separator-line {
  border: none;
  height: 3px;
  background-color: var(--accent) !important;
  margin: 0 auto;
  max-width: 40%;
}

.separator-text {
  font-size: 1.7em;
  color: var(--accent);
  margin: 0.5rem 0;
  display: inline-block;
  padding: 0 1rem;
}






/* Accordion Item Modernization */
.accordion-item {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background-color: #ffffff;
}

/* Accordion Button & Header Content */
.accordion-button {
  background-color: transparent;
  border: none;
  color: var(--accent);
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  box-shadow: none;
  border-bottom: 1px solid #e0e0e0;
}
.accordion-button:not(.collapsed) {
  color: var(--accent);
  background-color: transparent;
}
.accordion-button:focus {
  box-shadow: none;
}

/* New Header Content Styling */
.header-content {
  width: 100%;

}
.experience-header {

}

.experience-logo {
  width: 70px;
  height: auto;
  margin-right: 15px;
  transition: width 0.3s;
  padding: 0.75rem 1rem;
}
@media (min-width: 768px) {
  .experience-logo {
    width: 250px;
  }
}

/* Mobile-specific adjustments for the experience header */
@media (max-width: 767px) {
  .experience-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  /* Increase the mobile logo size and adjust spacing */
  .experience-logo {
    width: 150px;  /* Increase logo size for mobile */
    margin-right: 0;
    margin-bottom: 0.75rem;
  }
  /* Center the dates and move them below the job info */
  .experience-dates {
    margin-top: 0.5rem;
    text-align: center;
    width: 100%;
  }
}
.experience-info {
  flex: 1;
}
.job-title {
  font-weight: bold;
  margin: 0;
  color: var(--accent);
}
.company {
  padding: 0.75rem 0rem;
  margin: 0;
  font-size: 0.9rem;
}
.experience-dates {
  text-align: right;
}
.dates {
  font-size: 1rem;
  color: var(--accent);
  font-weight: bold;
}

/* Quote Teaser Styling */
.quote-teaser {
  font-style: italic;
  margin: 1rem 0 0;
  color: var(--accent);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quote Teaser - on mobile, allow wrapping */
@media (max-width: 767px) {
  .quote-teaser {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }
}

/* Accordion Body */
.accordion-body {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  background-color: #ffffff;
}
.accordion-body ul {
  list-style-type: disc;
  margin-left: 20px;
}
.accordion-body a {
  color: var(--accent);
  text-decoration: underline;
}

/* Tools Used Pills */
.tools-used {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tools-used ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tools-used ul li {
  background-color: var(--highlight);
  color: var(--accent);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.tools-used ul li:hover{
  transform: translateY(-5px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
/* Mini Icon for Data Easter Eggs */
.mini-icon {
  font-size: 1rem;
  vertical-align: middle;
  margin-right: 3px;
  color: var(--accent);
}


/* =============================
   Projects Section Styles (Carousel)
   ============================= */
.projects-section {
  background-color: #ffffff;
  color: var(--accent);
  font-family: 'Roboto', sans-serif;
  padding-top: 3rem;
  padding-bottom: 3rem;
  min-height: 60vh;
}

.projects-section .section-title {
  font-size: 2rem;
  display: inline-block;
  position: relative;
}
.projects-section .title-line {
  display: inline-block;
  width: 40vw;
  max-width: 500px;
  height: 3px;
  background-color: var(--accent);
  vertical-align: middle;
  margin-left: 10px;
}

/* Swiper Container */
.projects-swiper {
  width: 100%;
  height: 65vh; /* Adjust height as needed for impact */
  height: 65vh; /* Adjust height as needed for impact */
  position: relative;
  overflow: hidden;
}

/* Each Slide: Only one slide visible (active) */
.project-slide {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

/* Background Image */
.project-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* Overlay for Active Slide */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4,23,40,0.6);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Ensure active slide overlay is fully visible */
.swiper-slide-active .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Project Title and Quote in Overlay */
.project-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--off-white);
}
.project-quote {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding:2rem;
  color: var(--off-white);
}


.project-cta:hover {
  background: var(--accent);
  color: var(--off-white);
  transform: scale(1.05);
}

/* Tools Skills: Animate in with bounce */
.project-skills {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.swiper-slide-active .project-overlay {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.9s, transform 0.5s ease 0.9s;
}

.swiper-slide-active .project-skills {
  opacity: 1;
  transition: opacity 1s ease 1s;
}
.project-skills ul {
  list-style: none;
  padding: 1em 0;
  margin: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.project-skills ul li {
  background-color: var(--highlight);
  color: var(--accent);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Minimalist Navigation Arrows */
.swiper-button-prev,
.swiper-button-next {
  /* Remove backgrounds, show only icons */
  background: none;
  border: none;
  font-size: 2rem;
  color: rgba(248,249,250,0.5) !important; /* Using off-white at 50% opacity */
  text-shadow: 0 0 2px rgba(0,0,0,0.5);
  width: auto;
  height: auto;
  padding: 0.5rem;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
  color: rgba(248,249,250,0.8);
  transform: scale(1.1);
}

.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: bold;
  background: var(--off-white);
  color: var(--accent);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.github-btn:hover {
  background: var(--accent);
  color: var(--off-white);
  transform: scale(1.05);
}

.github-btn .material-icons {
  font-size: 1rem;
}



/* =============================
   Wrap-Up Section (Get in Touch)
   ============================= */
.wrapup-section {
  background: linear-gradient(135deg, #041728, #082340);
  color: #fff;
  padding-top: 4rem;
  padding-bottom: 4rem;
  min-height: 75vh;

}

.wrapup-container {
  max-width: 1200px;
  margin: 0 auto;
}


.wrapup-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.wrapup-section.visible .wrapup-content {
  opacity: 1;
  transform: translateY(0);
}

.wrapup-image-col {
  margin-bottom: 2rem;
}
.wrapup-image {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


.wrapup-text-col {
  text-align: left;
}
.wrapup-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: var(--off-white);
}
.wrapup-message {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--off-white);
}
.wrapup-social a {
  margin-right: 1rem;
  margin-top: 2rem;
  text-decoration: none;
}
.wrapup-social .social-icon {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease;
}
.wrapup-social .social-icon:hover {
  transform: scale(1.1);
}

  /* For images, they’ll naturally display; for icons, we set font-size */

.email-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--accent);
  background: var(--off-white);
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.email-icon:hover {
  transform: scale(1.1);
}


.wrapup-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================
   Footer Styles
   ============================= */
.site-footer {
  background: var(--off-white);
  color: var(--accent);
  padding: 1.5rem 0;
  font-size: 0.9rem;
  border-top: 1px solid #e0e0e0;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: inline-flex;
  gap: 1rem;
}
.footer-links li a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links li a:hover {
  font-weight: bold;
  text-underline: #082340;
}


/* ====================================
   General Styling for Impressum & Datenschutz
   ==================================== */

.legal-page {
    background-color: var(--off-white);
    color: var(--accent);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.legal-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Headings */
.legal-container h1 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.legal-container h2 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 20px;
}

/* Links */
.legal-container a {
    color: var(--joker);
    text-decoration: none;
    font-weight: bold;
}

.legal-container a:hover {
    text-decoration: underline;
}

/* Back to Home Link */
.back-to-home {
    margin-bottom: 20px;
}

.back-to-home a {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1rem;
}
