:root {
  --primary: #ffeb3b;
  --secondary: #000000;
  --tertiary: #ffffff;

  --primary-contrast: #000000;
  --secondary-contrast: #ffffff;
  --tertiary-contrast: #000000;
}

:root {
  --bs-primary: var(--primary);
  --bs-secondary: var(--secondary);
  --bs-light: var(--tertiary);

  --bs-body-bg: #ffffff;
  --bs-body-color: #000000;
}

body {
  font-family: 'Raleway', sans-serif;
}

.btn-primary {
  color: var(--primary-contrast);
}

.bg-primary {
  color: var(--primary-contrast);
}

body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark {
  --primary: #ffed4f;
  --secondary: #1a1a1a;
  --tertiary: #ffffff;

  --bs-body-bg: #000000;
  --bs-body-color: #ffffff;
}

.navbar-custom {
  background-color: var(--primary);
  color: var(--primary-contrast);
}

.navbar-custom .nav-link,
.navbar-custom .navbar-brand {
  color: var(--primary-contrast);
}

.navbar-custom .nav-link {
  font-size: 14px;
  font-weight: 600;
}

.navbar-custom .nav-link:hover {
  opacity: 0.8;
}

.navbar-custom .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.2);
}

.navbar-custom .navbar-toggler-icon {
  filter: invert(1); /* makes it dark */
}

.navbar-custom .navbar-brand {
  font-size: 18px;        /* slightly bigger */
  font-weight: 700;       /* stronger than 600 */
  line-height: 1;         /* remove extra vertical space */

  display: flex;
  align-items: center;    /* perfect vertical centering */
}

.navbar-custom .btn-outline-dark {
  border-color: black;
  color: black;
}

.navbar-custom .btn-outline-dark.show {
  background-color: black;
  color: white; /* ← fix */
  border-color: black;
}

/* also fix active/focus states */
.navbar-custom .btn-outline-dark:active,
.navbar-custom .btn-outline-dark:focus {
  background-color: black;
  color: white;
  border-color: black;
}

.navbar-custom .btn-outline-dark:hover {
  background-color: black;
  color: white;
}

.navbar-custom .dropdown .dropdown-menu li {
  font-size: 16px;
  margin: 0;
}

.navbar-custom .dropdown .dropdown-menu hr {
  margin: 0;
}

/* DARK MODE DROPDOWN */
body.dark .dropdown-menu {
  background-color: #1a1a1a;
  border: 1px solid #333;
}

body.dark .dropdown-item {
  color: white;
}

body.dark .dropdown-item:hover {
  background-color: white;
  color: black; /* ← critical fix */
}


/* DARK MODE NAV LINKS */
body.dark .navbar-custom .nav-link:hover {
  background-color: white;
  color: black; /* ← critical fix */
  border-radius: 6px;
}

.circle-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.theme-toggle {
  position: relative;
  overflow: hidden;
}

/* both icons stacked */
.theme-toggle .icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.4s ease;
  font-size: 16px;
}

/* default: show moon */
.theme-toggle .moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* dark mode: show sun */
body.dark .theme-toggle .moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

body.dark .theme-toggle .sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

a.nav-link, a.nav-link:hover {
  background-color: transparent !important;
  color: black;
  font-weight: bold !important;
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

li a {
  cursor: pointer;
}

.theme-toggle:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.banner {
  background-image: url('assets/banner.jpg'); /* your image */
  background-size: cover;        /* ← key: fit entire image */
  background-repeat: no-repeat;
  background-position: center;
            /* ← match your image ratio */
  width: 100%;
  height: 650px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  text-align: center;

  position: relative;
}

.banner-content {
  position: absolute;
  top: 35%;              /* slightly above center */
  left: 8%;              /* push from left edge */
  transform: translateY(-50%);
  text-align: left;
}

/* main text */
.headline {
  font-size: 30px;
  font-weight: 500 !important;
  margin: 0px 0px 20px 0px;
}

/* link text */
.banner-link, .banner-link:hover {
  font-size: 14px;
  margin-top: 10px;
  cursor: pointer;
  color: inherit;
  text-decoration: underline;
}

.btn-primary {
  font-weight: bold;
  background-color: #ffeb3b;
  border-color: #ffeb3b;
  color: #000; /* ← critical */
}

.btn-primary:hover {
  background-color: #e0cf34; /* your shade */
  border-color: #e0cf34;
  color: #000;
}

/* section spacing */
.section {
  padding: 80px 0;
}

/* titles */
/* HEADLINE */
.headline {
  cursor: default;
  font-weight: 700;
}

/* mobile */
@media (max-width: 745px) {
  .headline {
    font-size: 30px;
  }
}

/* tablet */
@media (min-width: 746px) {
  .headline {
    font-size: 50px;
  }
}

/* desktop */
@media (min-width: 992px) {
  .headline {
    font-size: 70px;
  }
}

/* mobile */
@media (max-width: 745px) {
  .banner-link, .banner-link:hover {
    font-size: 14px;
  }
}

/* tablet */
@media (min-width: 746px) {
  .banner-link, .banner-link:hover {
    font-size: 16px;
  }
}

/* desktop */
@media (min-width: 992px) {
  .banner-link, .banner-link:hover {
    font-size: 18px;
  }
}

.title {
  font-size: 28px;
  text-align: center;
}

.subtitle {
  font-size: 18px;
  text-align: center;
}

/* text */
.textbox {
  font-size: 16px;
  line-height: 1.6;
}

/* images */
.frame {
  overflow: hidden;
}

.topic {
  width: 100%;
  height: auto;
}

/* value icons */
.value-icon {
  width: 80px;
  height: 80px;
}

.value-title {
  font-size: 16px;
  margin-top: 5px;
}

/* card */
.project-tile {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .project-tile {
  background-color: rgba(50, 50, 50, 1);
}

/* hover effect */
.project-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* image */
.project-tile img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* title */
.project-name {
  font-size: 14px;
  font-weight: 600;
}

/* dark overlay */
.modal {
  background: rgba(0, 0, 0, 0.8);
}

/* center content */
.modal-inner {
  max-width: 65vw;
  padding: 20px;
}

#modalText {
  font-size: 18px;
  line-height: 20px;
}

/* image */
#modalImage {
  max-height: 75vh;
  object-fit: contain;
}

/* contact box (like ion-item) */
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;

  background: var(--ion-color-light);
  padding: 15px;
  border-radius: 6px;
}

/* icon */
.contact-icon {
  font-size: 24px;
}

/* text */
.contact-text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

/* social icons */
.social-icon {
  width: 18px;
  height: 18px;
}

/* brand colors */
.fb {
  color: #4267B2;
}

.linkedin {
  color: #0072B1;
}

.contact-item {
  transition: 0.3s;
  background-color: rgba(240,240,240,1);
}

body.dark .contact-item {
  background-color: rgba(30,30,30,1);
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}