/* =======================
   Base Styles & Reset
======================= */
:root {
    --bg-gradient-start: #1a0033;
    --bg-gradient-end: #000;
    --text: #ffffff;
    --text-strong: #fff;
    --text-link: #00ffff;
    --text-link-hover: #66ffff;
    --accent: #00ffff;
    --text-muted: #ddd;
    --text-muted-soft: #dddddd;
    --text-muted-2: #ccc;
    --text-muted-3: #cccccc;
    --text-footer: #999;
    --text-dot-active: #bbb;
    --text-close: #f1f1f1;
    --text-close-hover: #afe5fa;
    --surface: rgba(0, 0, 0, 0.4);
    --surface-soft: rgba(0, 0, 0, 0.15);
    --surface-overlay: rgba(0, 0, 0, 0.3);
    --surface-modal: #000;
    --surface-light: #ffffff;
    --surface-nav-mobile: #000;
    --surface-nav-mobile-hover: #111;
    --grid-line: #222;
    --timeline-line: rgba(0, 255, 255, 0.3);
    --dot: #717171;
    --viewer-bg: #f0f0f0;
    --border: #00ffff;
    --border-muted: #ccc;
    --stroke-strong: #000;
    --stroke-soft: rgba(0, 0, 0, 0.7);
    --shadow-accent: #00ffff;
    --shadow-light: rgba(255, 255, 255, 0.2);
    --shadow-soft: rgba(0, 0, 0, 0.2);
    --shadow-nav: rgba(0, 0, 0, 0.1);
    --transparent: transparent;
}

html[data-theme="light"] {
  --bg-gradient-start: #f7f9ff;
  --bg-gradient-end: #e7ecf7;
  --text: #1b2430;
  --text-strong: #111827;
  --text-muted: #3f4a5a;
  --text-muted-soft: #4b5563;
  --text-muted-2: #6b7280;
  --text-muted-3: #6b7280;
  --accent: #1e40af;
  --text-link: #1e40af;
  --text-link-hover: #1e40af;
  --text-footer: #4b5563;
  --text-dot-active: #6b7280;
  --text-close: #e5e7eb;
  --text-close-hover: #1e40af;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-soft: rgba(255, 255, 255, 0.7);
  --surface-overlay: rgba(255, 255, 255, 0.7);
  --surface-light: #ffffff;
  --surface-modal: #111827; 
  --surface-nav-mobile: #f8fafc;
  --surface-nav-mobile-hover: #e2e8f0;
  --grid-line: #cbd5e1;
  --timeline-line: rgba(30, 64, 175, 0.35);
  --dot: #94a3b8;
  --viewer-bg: #eef2f7;
  --border: #1e40af;
  --border-muted: #9ca3af;
  --stroke-strong: #111827;
  --stroke-soft: rgba(255, 255, 255, 0.9);
  --shadow-accent: #1e40af;
  --shadow-light: rgba(15, 23, 42, 0.12);
  --shadow-soft: rgba(15, 23, 42, 0.16);
  --shadow-nav: rgba(15, 23, 42, 0.12);

  --transparent: transparent;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: radial-gradient(circle at center, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text);
    overflow-x: hidden;
    scroll-behavior: smooth;
}
html {
  overflow-y: scroll;
}

a {
    color: var(--text-link);
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* =======================
   Background Effects
======================= */
.grid-bg {
    background-image: 
        repeating-linear-gradient(to right, var(--grid-line) 0px, var(--grid-line) 1px, var(--transparent) 1px, var(--transparent) 50px),
        repeating-linear-gradient(to bottom, var(--grid-line) 0px, var(--grid-line) 1px, var(--transparent) 1px, var(--transparent) 50px);
    position: fixed;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 0;
}

/* =======================
   Typography
======================= */
h1 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-link);
    margin-top: 0;
    margin-bottom: 1rem;
}


/* =======================
   Layout & Containers
======================= */

.container {
    position: relative;
    z-index: 1;
    max-width: 80%;
    margin: auto;
    padding: 2rem;
}

.main-content-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.main-content-flex-centre {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;       
}

.main-content-text, .main-content-step-text {
  flex: 1 1;
}

.about,
.contact,
.main-content {
    max-width: 100%;
    margin: 2rem auto;
    line-height: 1.6;
    font-size: 1rem;
    color: var(--text-strong);
}

.main-content {
    margin: 2rem 0;
}

.boxed-content h3 {
    font-size: 1.4rem;
    color: var(--text-strong);
    margin-bottom: 0.25rem;
}

.boxed-content .date {
    font-style: italic;
    color: var(--text-muted-2);
    margin-bottom: 0.5rem;
    display: block;
}

.boxed-content, 
.boxed-content-main-image, 
.reflections-content-text  {
    background: var(--surface);
    border: 2px solid var(--border);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0rem;
}

.boxed-content, .reflections-content-text {
    width: 100%;
}

.reflections-content-text p, 
.reflections-content-text h2,
.reflections-content-text li,
.reflections-content-text h3 
{
  margin-left: 1rem;
  margin-right: 1rem;
}

.reflections-content-text h2 {
  text-align: center;
}

.sketchfab-embed-wrapper iframe {
  width: 100%;
  height: 500px;
  display: block;
  border: none;
}

.sketchfab-embed-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.boxed-content-main-image {
  display: flex;
  justify-content: center;
}

.boxed-content-main-image .image-zoom-wrapper img {
  max-width: 90%;
  height: auto;
  padding: 0.5rem;
}

.grouped-list-item-button-text h2 {
  text-align: center;
}

.step-text {
  margin-left: auto;
  margin-right: auto;  
  text-align: left;  
  max-width: 90%;      
}

.step-separator {
  margin-top: 2rem; 
}

.centered-title {
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 0rem;
  margin: 1rem;
}

.hidden-time {
  display: none;
}

.timeline {
  position: relative;
  margin: 2rem 0 3rem 0;
  padding-left: 15rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem; 
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 18px;
  height: 18px;
  background-color: var(--border); 
  border-radius: 50%;
  border: 3px solid var(--stroke-soft); 
  box-sizing: content-box;
  box-shadow: 0 0 8px var(--shadow-accent);
  z-index: 1;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 0.8rem; 
  top: 3rem;
  width: 2px;
  height: calc(100% - 1.5rem);
  background: var(--timeline-line);
  z-index: 0;
}

.timeline-item .time {
  position: absolute;
  left: -18rem;
  width: 15rem;
  text-align: right;
  color: var(--text-muted-3);
  font-style: italic;
  font-size: 12pt;
  top: 0;
  user-select: none;
  font-family: Arial, Helvetica, sans-serif;
}

.timeline-item .time-content {
  margin-left: 0;
}

.timeline-item h3 {
  margin-top: 0;
  color: var(--text);
}

.timeline-item ul {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted-soft);
  font-family: Arial, Helvetica, sans-serif;
}

.time-content {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  max-width: 100%;
}

.sub-timeline-item-content {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  max-width: 100%;
}

.sub-timeline-item {
  position: relative;
  padding-left: 2rem; 
  margin-bottom: 1.2rem;
}

.sub-timeline-item::before {
  content: "";
  position: absolute;
  left: -0.6rem;         
  top: 0.5rem;     
  width: 14px;
  height: 14px;
  background-color: var(--border);
  border-radius: 50%;
  border: 2px solid var(--stroke-soft);
  box-shadow: 0 0 6px var(--shadow-accent);
  box-sizing: content-box;
  z-index: 1;
}

.sub-timeline-item::after {
  content: "";
  position: absolute;
  left: -0.1rem;
  top: 2.2rem;
  width: 2px;
  height: calc(100% - 1.4rem);
  background: var(--timeline-line);
  z-index: 0;
}

.sub-timeline-item-date {
  width: 20rem;
  text-align: right;
  font-weight: 600;
  color: var(--text-muted-3);
  font-style: italic;
  font-size: 0.9rem;
  user-select: none;
  font-family: Arial, Helvetica, sans-serif;
}

.sub-role-date {
  font-style: italic;
  margin-left: 3rem;
}

.grouped-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    flex: 0 0 900px;
    background-color: var(--surface-soft);
    border-radius: 8px;
    box-sizing: border-box;
}

.grouped-list-item-button {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 2px solid var(--border);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 15rem;
}

.grouped-list-item-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--shadow-accent);
}

.grouped-list-item-button img {
    width: 15rem;
    height: auto;
    border-radius: 6px;
    margin-right: 1.5rem;
    box-shadow: 0 0 8px var(--shadow-light);
}

.grouped-list-item-button-text h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    color: var(--text-link-hover);
}

.grouped-list-item-button-text p {
    margin: 0.25rem 0;
    color: var(--text-muted);
}

.grouped-list-item-button-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.grouped-list-item-button-link:hover,
.grouped-list-item-button-link:focus {
  text-decoration: none;
}

.grouped-list-item-button-link .icon-item {
  transition: transform 0.2s, box-shadow 0.2s;
}

.grouped-list-item-button-link:hover .icon-item {
  transform: scale(1.05);
  box-shadow: 0 4px 8px var(--shadow-soft);
  cursor: pointer;
}

.icon-item span {
  font-weight: normal;
}


/* =======================
   Navigation
======================= */
.navbar {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}


.navbar ul {
    list-style-type: none;
    width: 100%;
    display: flex;
    margin: 0;
    justify-content: center; 
    gap: 6rem;
}

.navbar ul {
  padding: 1rem;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar a {
    color: var(--text-link);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-align: center;
}

.navbar a:hover,
.navbar a:focus {
    color: var(--text-link-hover);
    text-shadow: 0 0 8px var(--shadow-accent);
    outline: none;
}

.navbar a.active {
    color: var(--text);
}

.hamburger {
  display: none;
  color: var(--text-link);
  font-size: 1.5em;
  background: none;
  border: none;
  cursor: pointer;
}

/* =======================
   Theme Toggle
======================= */
.theme-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin: 1rem 0 1.5rem 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.9rem;

  color: var(--accent);
  font-weight: bold;
  cursor: pointer;

  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus {
  transform: translateY(-2px);
  box-shadow: 0 0 12px var(--accent);
  outline: none;
}

.theme-toggle:active {
  transform: translateY(0);
  box-shadow: none;
}

.theme-toggle-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.theme-toggle-text {
  font-size: 0.95rem;
}

/* =======================
   Images
======================= */

.main-content-image {
  min-width: 3rem;
  text-align: center;
}

.main-content-image img,
.main-content-image-padding img,
.carousel-image img,
.image-zoom-wrapper img {
  max-height: 25rem;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 0 10px var(--shadow-soft);
  max-width: 95%;
}

.main-content-image-padding {
  padding-left: 10rem;
  padding-right: 10rem;
  max-height: 25rem;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 0 10px var(--shadow-soft);
  min-width: 3rem;
  text-align: center;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: var(--surface-modal);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
}

.close {
  position: absolute;
  top: 1rem;       
  right: 1.5rem;   
  color: var(--text-close);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  -webkit-text-stroke: 1px var(--stroke-strong);
}

.close:hover {
  color: var(--text-close-hover);
}

.centre-img {
  background-color: var(--surface-light);
  padding: 0.5rem;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 95%;
  height: auto;

}

.centre-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px var(--shadow-accent);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.carousel-image {
  display: none;
}

.carousel-image.active {
  display: block;
}

.dot-container {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.dot {
  height: 12px;
  width: 12px;
  background-color: var(--dot);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background-color: var(--text-dot-active);
}

.carousel-arrow {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  color: var(--text-dot-active);
  transition: color 0.3s ease;
}

.carousel-arrow:hover {
  color: var(--text-link-hover);
}

#viewer {
  width: 100%;
  height: 500px;
  background-color: var(--viewer-bg); 
  border: 1px solid var(--border-muted);  
  margin-top: 1rem;        
}


/* =======================
   Icons
======================= */
.icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  text-align: center;
  padding: 1rem;
}

.li-icon {
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 auto 0.5rem auto;
    background-color: var(--surface-light);      
    border-radius: 8px;          
    filter: drop-shadow(0 0 4px var(--shadow-accent));
    padding: 8px;                
    box-sizing: content-box;     
}

/* =======================
   Footer
======================= */
footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-footer);
}

.footer-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-left: 10px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Light theme adjustment */
html[data-theme="light"] .footer-icon {
  filter: brightness(0.4);
}

.footer-icon:hover {
  transform: scale(1.2);
}


/* =======================
   Responsive Styles
======================= */
/* Laptop veiwpont */

@media (min-width: 1024px) and (max-width: 1440px) {
}

/* Cell phone veiwpont */
@media (max-width: 768px) {

/* Fonts */
h1 {
 font-size: 1.3rem;
}

h2, .time-content h2 {
 font-size: 1.2rem; 
}

.main-content-flex-centre h2 {
  text-align: center;
}

h3, h4, .time-content h3, .time-content h4 {
 font-size: 1rem;
}

p, li, a {
 font-size: 0.9rem; 
 line-height: 1.6;
}

nav a {
 font-size: 1rem;
}

footer {
 font-size: 0.875rem;
}

.step-text ul, 
.step-text ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.step-text li {
  display: block;
  margin: 0 0 1rem 0; 
}

/* containers */
.main-content-text, .main-content-step-text{
 flex-direction: column;
}

.grouped-list-item-button{
 display: flex;
 flex-direction: column;
 justify-content: center;
 padding-right: 0;
 height: auto;
}

.grouped-list-item-button-text h2{
 text-align: center;
 padding-right: 1rem;
}

.grouped-list-item-button-text p{
 padding-right: 1rem;
}

.main-content-image, .main-content-text, .main-content-step-text, .grouped-list-item-button img{
 width: 100%;
}


.carousel-image {
 width: 100%;
 max-width: 100%;
 padding: 0;
 }

.image-zoom-wrapper > img {
  max-width: 100%;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.main-content-image,
.image-zoom-wrapper,
picture.zoomable {
  display: block;
  text-align: center;
  width: 100%;
  padding: 0;
}

picture.zoomable {
  display: flex;
  justify-content: center;
  width: 90%;
}

.carousel-slide img {
 width: 100%;
}

.timeline-item .time {
 display: none !important;
}

.timeline {
 padding-left: 1rem;

}

.timeline-item {
 padding-left: 0;

}

.timeline-item::before,
.timeline-item::after {
 left: -0.5rem;
 border: none;
}

.time-content {
 padding-left: 1rem;
 border-left: 2px solid var(--border);
 background-color: var(--surface-overlay);
 box-shadow: none;
 border: none;
}

.timeline-item::before,
.timeline-item::after,
.sub-timeline-item::before,
.sub-timeline-item::after {
 display: none;
}

.timeline,
.timeline-item,
.sub-timeline-item,
.time-content,
.sub-timeline-item-content {
 padding-left: 0 !important;
 margin-left: 0 !important;
}

.hidden-time {
 display: block;
 font-style: italic;
 text-align: center;
}

.main-content-flex{
 flex-direction: column;
}


.boxed-content {
  width: 90%;
}

/* Images */
.main-content-image-padding {
 padding: 0;
}

.boxed-content img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}


.main-content-image,
.image-zoom-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0;
}

.footer-icon {
 width: 1.25rem;
 height: auto; 
 vertical-align: middle;
 margin: 0 0.3125rem;
}

.carousel-arrow {
 display: none;
}

/* navigation */
.hamburger {
 display: block;
 font-size: 2rem;
 background: none;
 border: none;
 cursor: pointer;
 color: var(--text-link);
 padding-bottom: 0.75rem;
}

.nav-links {
 display: none;
 position: absolute;
 top: 100%;
 background-color: var(--surface-nav-mobile);
 width: 70%;
 box-shadow: 0 4px 8px var(--shadow-nav);
 z-index: 999;
}

.nav-links.active {
 display: block;
}

.nav-links ul {
 list-style: none;
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 0;
 max-width: 100%; 
 padding: 0;
}

.nav-links ul li {
 width: 100%;
}

.nav-links ul li a {
 width: 100%;
 padding-top: 0.5rem;
 padding-bottom: 0.5rem;
 display: block;
 text-align: center;
 text-decoration: none;
 color: var(--text-link);
 font-size: 1rem;
}

.nav-links ul li a:hover {
 background-color: var(--surface-nav-mobile-hover);
}

.navbar {
 flex-direction: column;
 align-items: center;
}

}
