@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Reset en basis */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* Dark Mode Styles */
body.dark-mode {
  background: #121212;
  color: #eee;
}
body.dark-mode .navbar,
body.dark-mode .footer {
  background: #1e1e1e;
}
body.dark-mode .btn {
  background: #eee;
  color: #111;
}
body.dark-mode .nav-links a {
  color: #fff;
}
body.dark-mode .nav-links a::after {
  background: transparent;
  border-bottom: 2px solid #fff;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.7); /* Light transparent background */
  backdrop-filter: blur(10px); /* Blur effect */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

body.dark-mode .navbar.scrolled {
  background-color: rgba(18, 18, 18, 0.7); /* Dark transparent background */
}

.section .text ul {
  padding-left: 1.2em;
  margin-left: 0;
  list-style-position: inside;
}

/* Default (light mode) */
.nav-links,
.nav-links.nav-open {
  background-color: #ffffff20;
}

/* Dark mode */
body.dark-mode .nav-links,
body.dark-mode .nav-links.nav-open {
  background-color: #00000010;
}


.section .text ul li {
  margin-left: 0;
}

/* Dark mode toggle button */
#darkModeToggle {
  position: fixed;
  bottom: 80px;
  right: 30px;
  padding: 10px;
  border: none;
  background: #222;
  color: white;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 1001;
}

/* Scroll Progress Bar */
#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: #00f2fe;
  width: 0%;
  z-index: 1001;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px 15px;
  font-size: 18px;
  border: none;
  background: #333;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  display: none;
  z-index: 1000;
}

/* Container */
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

/* Navbar */
.navbar {
  background-color: #fff;
  color: #000;
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 0.3rem 0.3rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Logo */
.nav-logo {
  width: 300px;
  height: 190px;
  order: 1;
}

/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  background-color: #ffffff20;
  order: 3;
  font-family: 'Roboto', sans-serif;
}

.nav-links a {
  position: relative;
  color: blue;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-bottom: 1px solid #ddd;
  border-radius: 4px;
  background: transparent;
  transition: all 0.3s ease;
  z-index: 1;
  font-family: 'Roboto', sans-serif;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

body.dark-mode .nav-links a::after {
  background: #fff;
}

body.dark-mode .nav-links a {
  border-bottom-color: #555;
}

/* Mobile Nav Toggle */
.nav-toggle {
  order: 2;
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hamburger bars */
.nav-toggle .hamburger {
  width: 25px;
  height: 3px;
  background: #333;
  display: block;
  position: relative;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background: #333;
  left: 0;
  transition: 0.3s;
}

.nav-toggle .hamburger::before {
  top: -8px;
}

.nav-toggle .hamburger::after {
  top: 8px;
}

/* Hamburger Animation */
.nav-toggle.open .hamburger {
  background: transparent;
}

.nav-toggle.open .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Open */
.nav-links.nav-open {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  background: #fff;
  padding: 10px 0;
}

/* Dark Mode Mobile Menu */
body.dark-mode .nav-links.nav-open {
  background: #000;
}

/* Hero */
.hero {
  background: white;
  text-align: center;
  padding: 60px 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  color: #fff;

}

/* Dark mode Hero */
body.dark-mode .hero {
  text-align: center;
  padding: 60px 20px;
  color: #fff;
}

.hero,
.section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  opacity: 0.85;
  z-index: 0;
}

.hero .hero-content {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
     background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
  display: flex;
  flex-direction: row;
  z-index: 1;
  padding: 40px 20px;
  font-family: 'Lato', sans-serif;
  border-radius: 8px;
  max-width: 900px;
  margin: auto;
  text-align: center;
  color: black;
    height: 300px;
}

.hero .hero-content .hero-text {
  display: flex;
  flex-direction: column;
  color: white;
  height: 300px;
  background: none;
  text-shadow: 0px 2px 2px #00000040;
}

body.dark-mode .hero .hero-content .hero-text {
  display: flex;
  flex-direction: column;
  color: white;
  height: 300px;
}

.hero .hero-content a{
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(255, 140, 0, 0.7));
  padding: 15px;
  color: white;
}

body.dark-mode .hero .hero-content {
  position: relative;
    background-size: cover;
  background-position: center;
   background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(255, 140, 0, 0.7));
  background-repeat: no-repeat;
  z-index: 1;
  padding: 40px 20px;
  font-family: 'Lato', sans-serif;
  border-radius: 8px;
  max-width: 900px;
  margin: auto;
  text-align: center;
  color: white;
}

body.dark-mode .hero .hero-content a{
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(255, 140, 0, 0.7));
  padding: 15px;
  color: white;
}


.hero .hero-content a::hover {
 border: 1px solid blue;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.6), rgba(255, 140, 0, 0.6));
  padding: 15px;
}

body.dark-mode .hero .hero-content {
  position: relative;
  background: #00000040;
  z-index: 1;
  padding: 40px 20px;
  font-family: 'Lato', sans-serif;
  border-radius: 8px;
  max-width: 900px;
  margin: auto;
  text-align: center;
  color: white;
}


.section .text {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.2), rgba(0, 124, 255, 0.4));
  border-radius: 8px;
  max-width: 900px;
  margin: auto;
  text-align: center;

  font-family: 'Lato', sans-serif;
}

.hero .hero-content p,
.section .text p {
  font-family: 'Lato', sans-serif;
    text-shadow: 0px 2px 2px 2px black;
}

h3 {
  font-family: 'Roboto', sans-serif;
}

/* Buttons */
.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #fff;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
  font-family: 'Lato', sans-serif;
}

.btn:hover {
  background: #ddd;
}

/* Sections */
.section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 20px;
  margin: auto;
  scroll-margin-top: 90px;
}

/* Fix alternating left-right section layout */
.section.split {
  flex-direction: row;
}

.section.split .text {
  text-align: left;
  margin-left: 40px;
  margin-right: 0;
  max-width: 600px;
}

.section.split .text p, h3, blockquote {
    text-shadow: 0px 2px #00000060;
}

.section.split.reverse {
  flex-direction: row-reverse;
}

.section.split.reverse .text {
  text-align: right;
  margin-right: 40px;
  margin-left: 0;
  max-width: 600px;
}

.section.split.reverse .text p, h3, blockquote {
 text-shadow: 0px 2px #00000060;
}

.section.split.reverse .text li {

 text-shadow: 0px 2px #00000060;
}

.section .text,
.section .image {
  flex: 1;
  padding: 20px;
}

.section .image img {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
}

/* Footer */
.footer {

background: linear-gradient(135deg, rgba(0, 0, 80, 0.9), rgba(0, 0, 120, 1));

  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

/* Scroll Animations */
.section-scroll {
  min-height: 80vh;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.section-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left { animation: fadeInLeft 0.8s ease forwards; }
.fade-in-right { animation: fadeInRight 0.8s ease forwards; }
.fade-in-up { animation: fadeInUp 0.8s ease forwards; }
.fade-in-down { animation: fadeInDown 0.8s ease forwards; }

@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-40px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .section.split,
  .section.split.reverse {
    flex-direction: column !important;
    text-align: center !important;
    margin: 0 !important;
  }

.hero .hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 1;
  padding: 40px 20px;
  font-family: 'Lato', sans-serif;
  border-radius: 8px;
  max-width: 900px;
  margin: auto;
  text-align: center;
  color: black;
    height: 100vh;
}

.hero .hero-content .hero-text {
  display: flex;
  flex-direction: column;
  color: white;
  height: 300px;
    text-shadow: 0px 2px 2px #00000040;
}
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    order: 3;
    width: 100%;
    background: #fff;
    padding: 0;
    text-align: center;
  }

  .nav-links.nav-open {
    display: flex !important;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #ddd;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 15px 20px;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    border-radius: 0;
    border-bottom: none;
  }

  /* Dark mode mobile borders */
  body.dark-mode .nav-links li {
    border-bottom-color: #444;
  }

  .navbar {
    padding: 2px 4px;
  }

  .navbar .container {
    flex-wrap: nowrap;
  }

  .nav-logo {
    position: relative;
    width: 240px;
    height: 180px;
    left: -30px;
  }
}

/* Modal background overlay */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0,0,0,0.6);
}

/* Modal box */
.modal-content {
  background-color: #fff;
  margin: 5vh auto; /* centers modal */
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  height: 80vh;             /* modal height */
  display: flex;
  flex-direction: column;
  overflow: hidden;         /* prevent full scroll */
  position: relative;
}

/* Fixed header (logo + title + close button) */
.modal-header {
  flex-shrink: 0;
  padding: 20px;
  border-bottom: 1px solid #ddd;
  text-align: center;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.modal-header img {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

/* Scrollable inner body */
.modal-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}


.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 20; /* keeps it above sticky header */
}

/* Dark mode styles for modals */
body.dark-mode .modal-content {
  background-color: #1e1e1e;
  color: #eee;
}

body.dark-mode .modal-header {
  background-color: #1e1e1e;
  border-bottom-color: #444;
}

body.dark-mode .close {
  color: #eee;
}

body.dark-mode .close:hover {
  color: #ccc;
}

/* Mobile responsive styles for modals */
@media (max-width: 768px) {
  .modal-content {
    margin: 2vh auto;
    width: 95%;
    height: 90vh;
    border-radius: 8px;
  }
  
  .modal-header {
    padding: 15px;
  }
  
  .modal-header h2 {
    font-size: 1.2rem;
  }
  
  .modal-header img {
    max-width: 100px;
  }
  
  .modal-body {
    padding: 15px;
    font-size: 0.9rem;
  }
  
  .close {
    right: 15px;
    top: 15px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 1vh auto;
    width: 98%;
    height: 95vh;
    border-radius: 4px;
  }
  
  .modal-header {
    padding: 10px;
  }
  
  .modal-header h2 {
    font-size: 1.1rem;
  }
  
  .modal-header img {
    max-width: 80px;
    margin-bottom: 5px;
  }
  
  .modal-body {
    padding: 10px;
    font-size: 0.85rem;
  }
  
  .close {
    right: 10px;
    top: 10px;
    font-size: 22px;
  }
}


