@import url(./variables.css);

@font-face {
  font-family: 'Lexend Deca';
  src: url('../fonts/Lexend_Deca/LexendDeca-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; /* Range of supported weights */
  font-style: normal;
}

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

html, body {
  scroll-behavior: smooth;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    transition: none !important;
  }
}


body {
  margin: 0 auto;
  font-family: 'Lexend Deca','Segoe UI', Tahoma,  Verdana, sans-serif;
  background-color: var(--background);
  color: var(--text);
  font-weight: 400;
  min-height: min(100vh, 60rem);
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.zoomWrapper {
  transform-origin: top center;
  transition: transform 0.2s ease-out;
}

header {
  display: flex;
  flex-direction: column;
  background-color: var(--background);
  border-bottom: 1px solid #ccc;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}


main {
  padding-top: var(--header-height);
}

.accessibility-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 0;
  background-color: var(--primary-800, #555);
  border-bottom: none;
  font-size: 15px; 
}

/* Label styling */
.accessibility-tools label {
  font-weight: 500;
  margin-right: 0.25px;
  color: white;
}

/* Range input (Zoom slider) */
.accessibility-tools input[type="range"] {
  width: 150px;
  height: 2px;
  accent-color: var(--primary-500, #444);
  cursor: pointer;
}

/* Buttons */
.accessibility-tools button {
  font-size: 16px;
  padding:  5px;
  background-color: var(--primary-500, #333);
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

.accessibility-tools button:hover {
  background-color: var(--primary-600, #555);
}



/* Theme toggle emoji */
.theme-toggle {
  display: flex;
  border: 1px solid var(--primary-500);
  align-items: center;
  gap: 0.5em;
}


.footer {
  text-align: center;
  color: var(--background);
  background: var(--primary-900);
  padding:2rem ;
  font-weight: 400;
}
.footer a{
  color: var(--background);
}


h1, h2{
    color: var(--primary-500);
    text-align: center;
    line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

p {
  line-height: 1.6;
}


a {
  text-decoration: none;
  color: var(--primary-500);
}

a:hover {
  text-decoration: underline;
}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding:1.5rem 2rem ;
}

.logo {
  height: 40px;
  width: auto ;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: none;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  } 

}

.nav-links a {
  color: var(--text-100);
  text-decoration: none;
  font-size: 1rem;
}

.nav-links li a[aria-current="page"] {
    color: var(--primary-500);
    border-bottom: 2px solid var(--primary-500);
}

/* Header section with bg image */
.header-section {
  background-image: url('../assets/web.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 2rem;
  color: var(--text);
  text-align: center;
  position: relative;
  min-height: 30rem; /*calc(100vh * 0.5) */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--image-background); 
  z-index: 0;
}

/* To style for the wordings */
.header-section > * {
  position: relative;
  z-index: 1;
}

.header-section p {
  font-size: 1.2rem;
}

/* Bread crumb */
.breadcrumb{
  position: absolute;
  top: 0;
  font-size: 0.9rem;
  color: var(--primary-500);
  padding-left: 1rem 2rem;
}

.breadcrumb ol {
    list-style: none;
    padding: 1rem 0;
    display: flex;
    gap: 0.0rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-weight:500;
    font-size: 1.175rem;
}

/* Separator using ::after, except for the last one */
.breadcrumb li::after{
    content: ">";
    margin: 0 0.3rem ;
}

.breadcrumb li:last-child::after {
    content: "";
}


.breadcrumb a {
  color: var(--primary-500);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}



blockquote{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-style: italic;
    font-size: 1rem;
    margin: 1.25rem 0;
    text-align: center;
    font-weight: bold;
}

blockquote footer {
    font-weight: normal;
}


hr {
    color: #afaeae;
}




/* SCROLL BAR */
/* Pseudo elements */
/* Vendor Prefixes

They are browser-specific extensions to CSS, used when a feature isn’t fully standardized across all browsers.

Prefix	Target Browser(s)
-webkit-	Chrome, Safari, newer Edge
-moz-	Firefox
-ms-	Internet Explorer, old Edge
-o-	Opera (obsolete now)

*/
/* Hide scrollbar but allow scrolling */
.no-scrollbar::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    display: none;
  }
  
  .no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    overflow: auto; /* Ensure scrolling works */
  }
  

/* Customize the scrollbar */
::-webkit-scrollbar {
  width: 8px;  /* Reduced width of the scrollbar */
}

/* Style the scrollbar track */
::-webkit-scrollbar-track {
  background: #f1f1f2;
  border-radius: 10px;
}

/* Style the scrollbar handle */
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* Style the scrollbar handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-500);
}

