/***
  MAIN CSS
**/

/* -----------------------------------
    1. Theme Settings
    2. Layout Style
    3. Base Elements
    4. Extra Classes
    
----------------------------------- */

/**
 * 1. Theme Settings _______________________________________________________________________________
 */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* Element */
  --item-radius: 30px;
  --item-bg: #cef3e5;
  --item-outset: -6px -6px 8px 0 rgba(112, 112, 112, 0.5) inset,
    /* dark */ 7px 7px 12px 0 rgba(214, 214, 214, 0.4) inset,
    /* bright */ 6px 6px 14px 0 rgba(112, 112, 112, 0.5),
    /* dark */ -3px -3px 12px 0 rgba(214, 214, 214, 0.4); /* bright */
  --item-inset: 6px 6px 8px 0 rgba(112, 112, 112, 0.5) inset,
    /* dark */ -7px -7px 12px 0 rgba(214, 214, 214, 0.4) inset,
    /* bright */ -6px -6px 14px 0 rgba(112, 112, 112, 0.5),
    /* dark */ 3px 3px 12px 0 rgba(214, 214, 214, 0.4); /* bright */
  --item-cloud: 6px 12px 32px 0px rgba(18, 18, 18, 0.5),
    inset -4px -4px 16px 0px rgba(18, 18, 18, 0.6),
    inset 0px 11px 28px 0px rgb(249, 249, 249);
  /* Color */
  --color-html: #e1f9f0;
  --color-bg: #cef3e5;
  --color-accent: #f7d13b; /*Color Accent*/
  --none: transparent;
  /* Font Color */
  --font-black: #000000;
  --font-grey: #007a54;
  --font-accent: #f7d13b; /*Color Font*/
  /* Font */
  --font-title: "Merriweather", serif;
  --font-text: "Montserrat", sans-serif;
}

.dark {
  /* Element */
  --item-bg: #043927;
  --item-outset: -6px -6px 8px 0 rgba(18, 18, 18, 0.5) inset,
    /* dark */ 7px 7px 12px 0 rgba(54, 54, 54, 0.4) inset,
    /* bright */ 6px 6px 14px 0 rgba(18, 18, 18, 0.5),
    /* dark */ -3px -3px 12px 0 rgba(54, 54, 54, 0.4); /* bright */
  --item-inset: 6px 6px 8px 0 rgba(18, 18, 18, 0.5) inset,
    /* dark */ -7px -7px 12px 0 rgba(54, 54, 54, 0.4) inset,
    /* bright */ -6px -6px 14px 0 rgba(18, 18, 18, 0.5),
    /* dark */ 3px 3px 12px 0 rgba(54, 54, 54, 0.4); /* bright */
  --item-cloud: 6px 12px 32px 0px rgba(249, 249, 249, 0.5),
    inset -4px -4px 16px 0px rgba(249, 249, 249, 0.6),
    inset 0px 11px 28px 0px rgb(18, 18, 18);
  /* Color */
  --color-html: #0b261d;
  --color-bg: #043927;
  --color-accent: #f7d13b; /*Color Accent*/
  /* Font Color */
  --font-black: #ffffff;
  --font-grey: #00a96d;
  --font-accent: #f7d13b; /*Color Font*/
}

/**
 * 2. Layout Style _______________________________________________________________________________
 */

html {
  background-color: var(--color-html);
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  position: relative;
  background-color: var(--color-bg);
  width: 100vw;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scrollbar-color: var(--color-bg) var(--font-grey);
}

/* Header */
header {
  position: relative;
  width: 100%;
  height: 75vh;
  height: 75svh;
  overflow: hidden;
  /* Center Header */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding: 12rem 0;
}

/* Navbar */
nav {
  position: fixed;
  width: 70vw;
  height: 4.8rem;
  top: 0;
  margin: 2rem 0;
  padding: 0 2.8rem;
  transition: 0.3s;
  z-index: 10;
  border-radius: var(--item-radius);
  background-color: var(--none);
  box-shadow: none;
  /* Navbar items */
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#site-name {
  margin-bottom: 1.6rem;
  color: var(--font-black);
  font-family: var(--font-text);
  font-weight: 500;
}
.nav-icon {
  cursor: pointer;
  font-size: 2.5rem;
  transition: 0.3s ease;
}
.nav-icon:hover {
  transform: scale(0.9);
}

/** Nav to Custom **/
nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline-block;
  margin: 0 0.5rem;
  position: relative;
  text-align: left;
}

/* Nav Dropdown */
nav ul li:hover ul {
  display: block;
}

nav ul li ul {
  background: var(--color-bg);
  border: var(--none);
  border-radius: var(--item-radius);
  display: none;
  height: auto;
  padding: 0.5rem 0.5rem;
  position: absolute;
  top: 2.2rem;
  right: -25%;
  white-space: nowrap;
  width: auto;
}

nav ul li ul::before {
  /* fill gap above to make mousing over them easier */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.5rem;
  height: 0.5rem;
}

nav ul li ul li,
nav ul li ul li a {
  display: block;
}
#pointing {
  position: absolute;
  bottom: 0;
  font-size: 3rem;
  color: var(--font-grey);
}

/** Layout Customisation **/
main {
  position: relative;
  margin: 0;
  padding: 1.4rem 0 50vh 0; /* Give bottom blank */
  width: 100%;
  height: auto;
  background-color: var(--none);
}
section {
  position: sticky;
  top: 0;
  background-color: var(--color-bg);
  box-shadow: 0px -3px 6px 6px var(--color-bg);
  text-align: center;
  padding: 0.5rem 0;
  height: auto;
  z-index: 10;
}

/* Extra Sections*/
article {
  margin: 5rem 10% 0%;
  padding: 1.6rem 0 100px;
  width: 80%;
  height: 95%;
  text-align: left;
  overflow-y: scroll;
  scrollbar-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
  border: none;
  border-radius: var(--item-radius) var(--item-radius) 0px 0px;
  background: var(--color-bg);
  box-shadow: var(--item-cloud);
}
aside {
  margin: 5rem 10%;
  padding: 1.6rem 1rem;
  width: 80%;
  height: 80%;
  overflow-y: scroll;
  scrollbar-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
  border: var(--none);
  border-radius: var(--item-radius);
  background: #efeeee;
  box-shadow: var(--item-cloud);
}

/** Footer **/
footer {
  position: fixed;
  width: 100%;
  height: 0;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
  text-align: left;
  transition: 0.3s;
  /* Expand Animation */
  animation: expand-footer linear forwards;
  animation-timeline: scroll();
  animation-range: 80% 100%;
  z-index: 15;
}
@keyframes expand-footer {
  from {
    background: var(--none);
    height: 3.8rem;
    padding: 0;
    box-shadow: none;
    z-index: 10;
  }
  to {
    background: var(--color-html);
    height: 40vh;
    padding: 1rem 2rem;
    box-shadow: 0px -3px 6px 6px var(--color-html);
    z-index: 100;
  }
}
footer small {
  position: fixed;
  width: 100%;
  height: 3.8rem;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 1rem 2rem;
  text-align: left;
  text-shadow: 0 1px 0 rgba(128, 128, 128, 0.4);
}
footer small a {
  text-decoration: none; /** wavy underline **/
}

.footer-container {
  position: relative;
  top: 40%;
  left: 50%;
  text-align: center;
  font-family: var(--font-text);
  transform: translate(-50%, -50%);
  opacity: 0;
  /* ShowHide Animation */
  animation: show-footer linear forwards;
  animation-timeline: scroll();
  animation-range: 80% 100%;
}
@keyframes show-footer {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.share {
  text-decoration: none;
}
.share i {
  width: 6.4rem;
  height: 6.4rem;
  line-height: 6.4rem;
  margin: 0 2.8rem;
  font-size: 2.8rem;
  text-align: center;
  cursor: pointer;
  background: var(--none);
  box-shadow: var(--item-outset);
  border-radius: var(--item-radius);
  transition: 0.3s ease;
}
.share i:hover {
  color: var(--font-accent);
  box-shadow: var(--item-inset);
  scale: 0.95;
}

/**
 * 3. Base Elements _______________________________________________________________________________
 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  transition: box-shadow 0.4s ease-in-out;
}
hr {
  background-color: var(--font-grey);
  border: none;
  height: 1px;
  margin: 4rem 0;
  width: 100%;
}

/* Text */
html {
  font-size: 62.5%;
}
body {
  font-family: var(--font-text);
  color: var(--font-black);
  font-weight: 300;
  line-height: 1.85;
  text-align: left;
  overflow-wrap: break-word;
  hyphens: manual;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  color: var(--font-accent);
  margin: 2.4rem 0 0.8rem;
  font-weight: inherit;
  line-height: 150%;
}
h1 {
  font-size: 6rem;
}

h2 {
  font-size: 4.8rem;
}

h3 {
  font-size: 3.2rem;
}

h4 {
  font-size: 2.8rem;
}
h5,
h6 {
  font-family: var(--font-title);
  color: var(--font-grey);
  margin: 1.6rem 0;
  font-weight: inherit;
  line-height: 80%;
}
h5 {
  font-size: 2rem;
}
h6 {
  font-size: 1.8rem;
}
smalll {
  font-size: 1.2rem;
}
p {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}
pre {
  background-color: var(--color-bg);
  margin: 0 5%;
  padding: 1.6rem;
  overflow-x: scroll;
  border-radius: var(--item-radius);
  box-shadow: var(--item-outset);
}
code {
  font-family: Menlo, Monaco, "Courier New", monospace;
  line-height: 120%;
}
ul {
  text-align: left;
  margin: 0;
  font-weight: inherit;
  line-height: 120%;
}
ol {
  text-align: left;
  margin: 0 2.4rem;
  font-weight: inherit;
  line-height: 120%;
}
li {
  text-align: left;
}
blockquote {
  border-left: 5px solid var(--color-accent);
  padding-left: 1rem;
  margin: 1.6rem 5%;
  font-style: italic;
  text-align: left;
}

/* Links */
a,
a:visited {
  color: var(--font-black);
  cursor: pointer;
}
a:hover,
a:focus,
a:active {
  font-weight: bold;
  color: var(--font-accent);
}
button {
  margin: 1.5rem 1.8rem 2rem;
  padding: 2.4rem 2.8rem;
  font-size: 2rem;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  border: var(--none);
  border-radius: var(--item-radius);
  box-shadow: var(--item-outset);
  color: var(--font-black);
  background-color: var(--color-bg);
  transition: 0.3s ease;
  cursor: pointer;
}

button:hover {
  border: var(--none);
  box-shadow: var(--item-inset);
  color: var(--font-accent);
  background-color: var(--color-bg);
  font-weight: bold;
  transform: scale(0.95);
}
button:active {
  transform: scale(0.9);
}
/* Images */
img,
canvas,
iframe,
video,
svg,
select,
textarea {
  max-width: 100%;
  border-radius: var(--item-radius);
}
figure {
  margin: 0;
  padding: 0;
}

figure img {
  max-width: 100%;
}

figure figcaption {
  color: var(--color-bg);
}

/* Details */
details {
  font-size: 1.8rem;
  margin: 2rem 0;
}
details summary {
  font-weight: bold;
  cursor: pointer;
}

/* Forms */
button:disabled,
input:disabled {
  background: var(--font-grey);
  border: none;
  color: var(--font-text);
  cursor: not-allowed;
}

button[disabled]:hover,
input[type="submit"][disabled]:hover {
  filter: none;
}

form {
  border: none;
  border-radius: var(--item-radius);
  box-shadow: var(--item-outset);
  display: block;
  max-width: 100%;
  min-width: 50%;
  padding: 1.5rem;
  text-align: left;
}

fieldset {
  border-radius: var(--item-radius);
  margin: 0.8rem 0.5rem;
  padding: 1.2rem;
}

form header {
  margin: 1.5rem 0;
  padding: 1.5rem 0;
}

input,
label,
select,
textarea {
  display: block;
  font-size: inherit;
  max-width: 100%;
}

input[type="checkbox"],
input[type="radio"] {
  display: inline-block;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
  display: inline-block;
  font-weight: normal;
  position: relative;
  top: 1px;
}

input[type="range"] {
  padding: 0.4rem 0;
}

input,
select,
textarea {
  border: none;
  border-radius: var(--item-radius);
  margin-bottom: 1rem;
  padding: 0.4rem 0.8rem;
}

input[type="text"],
input[type="password"] textarea {
  width: calc(100% - 1.6rem);
}

input[readonly],
textarea[readonly] {
  background-color: var(--color-bg);
}

label {
  font-weight: bold;
  margin-bottom: 0.2rem;
}
/* Popups */
dialog {
  border: 1px solid var(--color-grey);
  border-radius: var(--item-radius);
  box-shadow: 5px 5px pink;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  z-index: 999;
}
[x-cloak] {
  display: none !important;
}
/* Tables */
table {
  border: none;
  border-radius: var(--item-radius);
  border-spacing: 0;
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  padding: 0;
  white-space: nowrap;
}

table td,
table th,
table tr {
  padding: 0.4rem 0.8rem;
  text-align: center;
}

table thead {
  background-color: var(--color-bg);
  border-collapse: collapse;
  border-radius: var(--item-radius);
  color: var(--color-soft);
  margin: 0;
  padding: 0;
}

table thead th:first-child,
table tr td:first-child {
  text-align: right;
}

table tr:nth-child(even) {
  background-color: var(--color-grey);
}

/**
 * 4. Extra Classes _______________________________________________________________________________
 */

/* Splash Screen Styles */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-bg); /* Use theme background color */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999; /* Ensure it's on top of everything */
  transition: opacity 0.5s ease-out;
}
.splash-spinner {
  width: 100px;
  height: 100px;
}

/* Header Styles */
.loading-icon {
  font-size: 6rem;
  color: var(--font-grey);
  font-style: italic;
}
#mascot {
  width: 100%;
  height: 20vh;
}

/***
    Social Media Styles 
**/
.social-icons-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-icons-container a {
  text-decoration: none;
  color: var(--font-black);
  transition: 0.3s ease;
}

.social-icons-container i {
  font-size: 3rem;
  width: 6rem;
  height: 6rem;
  line-height: 6rem;
  text-align: center;
  border-radius: 50%;
  box-shadow: var(--item-outset);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
}

.social-icons-container i:hover {
  box-shadow: var(--item-inset);
  color: var(--font-accent);
  transform: scale(0.95);
}

/***
    Swiper Slide Styles 
**/
.swiper-container {
  width: 100%;
  height: auto;
  margin: 1rem auto;
  padding: 2rem;
  background-color: var(--none);
}

.swiper-slide {
  width: 100%; /* Set slide width to 100vw */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.swiper-pagination-custom {
  text-align: center;
  margin-top: 2rem; /* Original margin-top */
  margin-bottom: 1rem;
  top: calc(
    3.2rem + 2 * 1rem
  ); /* Stick below the h3's calculated height (5.2rem) */
  background-color: var(--none); /* Ensure it has a background */
  z-index: 5; /* Ensure it's above the swiper content */
  padding-bottom: 1rem; /* Add some padding below the pagination */
  box-sizing: content-box;
}

.swiper-pagination-custom .swiper-pagination-bullet {
  width: auto;
  height: auto;
  padding: 0.8rem 1.5rem;
  text-align: center;
  line-height: 1;
  font-size: 1.6rem;
  color: var(--font-black);
  opacity: 0.7;
  background: var(--item-bg);
  box-shadow: var(--item-outset);
  border-radius: var(--item-radius);
  display: inline-block;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.swiper-pagination-custom .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--color-accent);
  color: #041322;
  box-shadow: var(--item-inset);
  font-weight: bold;
  transform: scale(0.95);
}

/* Default for the list column */
.swiper-slide ul {
  list-style: none;
  padding: 0;
  width: 100%;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 1.5rem; /* Spacing between items */
}

/* Project List Item Styles */
.project-list-item {
  display: flex;
  background: var(--color-bg);
  border-radius: var(--item-radius);
  box-shadow: var(--item-outset);
  padding: 2rem 2rem 4rem;
  text-align: left;
  transition: all 0.3s ease;
  /* Default flex-direction for non-feature items on larger screens */
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: pointer;
}
.project-list-item:hover {
  box-shadow: var(--item-inset);
  transform: scale(0.95);
}

.project-list-item img {
  width: 100%; /* Fixed width for image in non-feature list items */
  height: auto; /* Fixed height for image in non-feature list items */
  object-fit: cover;
  border-radius: var(--item-radius);
  margin-bottom: 2rem;
  flex-shrink: 0; /* Prevent image from shrinking */
}

.project-content {
  flex-grow: 1;
  width: 100%;
}

.project-content h5 {
  margin-bottom: 1rem;
  color: var(--font-black);
}

.project-content p {
  margin-bottom: 1.5rem;
  color: var(--font-black);
}

.project-content a {
  margin: 0;
  padding: 1rem 0;
  color: var(--font-grey);
  font-size: 1.8rem;
  letter-spacing: normal;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

/* Specific Style for "FEATURE" project items */
.project-list-item.feature-project-item {
  grid-column: 1 / -1; /* Span all columns to be a single column */
  position: relative;
  overflow: hidden;
  min-height: 200px; /* Ensure enough height for background image */
  display: flex;
  flex-direction: row; /* Content and button side-by-side */
  justify-content: space-between; /* Push content left, button right */
  align-items: center; /* Vertically center items */
  padding: 1.5rem; /* Keep padding for content */
  background-color: transparent; /* Make background transparent to show image */
  box-shadow: var(--item-outset); /* Keep neumorphic shadow */
  border-radius: var(--item-radius);
}

.project-list-item.feature-project-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--item-radius);
  z-index: 0; /* Send image to background */
  margin-bottom: 0; /* Remove margin when acting as background */
}

.project-list-item.feature-project-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */
  z-index: 1; /* Above image, below content */
}

.project-list-item.feature-project-item .project-content {
  z-index: 2; /* Bring content above overlay */
  margin-left: 1rem;
}
.project-list-item.feature-project-item .project-content h5 {
  font-size: 4rem;
  color: #F3FFFA;
  text-shadow: 2px 2px 4px #000000;
}
.project-list-item.feature-project-item .project-content p {
  color: #F3FFFA;
  text-shadow: 2px 2px 4px #000000;
}

/* Hover Effect */
.project-list-item.feature-project-item:hover {
  box-shadow: var(--item-inset);
  transform: scale(0.95);
}
.project-list-item:hover a,
.project-list-item.feature-project-item:hover a {
  font-weight: bold;
  color: var(--font-accent);
  font-size: 2rem;
}



