/* font */
@font-face {
  font-family: 'cmono';
  src: url('./font/cascadia-mono.woff2') format('woff2');
} 

/* =========================================================
   GLOBAL CURSOR SYSTEM
========================================================= */
:root {
    --cursor-default: url("shovel.png") 16 16, auto;
    --cursor-pointer: url("pickaxe2.png") 16 16, pointer;
    --cursor-zoom: url("zoom-point.png") 16 16, zoom-in;
}

/* DEFAULT PAGE CURSOR */

html,
body {
    cursor: var(--cursor-default);
}

/* INTERACTIVE / CLICKABLE */
a,
button,
[role="button"],
input,
select,
textarea,
summary,
label,
.clickable,
.read-more-btn,
.prev,
.next,
.demo,
.theme-ribbon,
.tag {
    cursor: var(--cursor-pointer);
}

/* ZOOMABLE */
.mySlides img,
.project-figure img,
#modal-img {
    cursor: var(--cursor-zoom);
}

/* Wrapper to make all page content line up */
.page-wrapper {
width:100%;
  max-width:1200px;
  margin:0 auto;

  padding-top:200px;
  padding-left:20px;
  padding-right:20px;
  padding-bottom:40px;
  box-sizing:border-box;
}

/* LOGO AND STYLING */
.logo {
  max-width: 300px;
  max-height: 100px;
  height: auto;
  display: flex;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

#page-logo {
  transition: transform 0.3s ease;
  transform-origin: center;
}

@media (max-width: 600px) {
  #page-logo {
    max-width: 250px;
  }
}

:root {
  --header-height: 180px;
}

#igisza-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 20px 0;

  background: transparent;
  transition: all 0.3s ease;

   gap: 8px;
}


/* Scrolled state */
#igisza-header.scrolled {
  background:white;
  padding-bottom: 0;
 
  
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Logo animation */
#page-logo {
  transition: transform 0.3s ease, max-height 0.3s ease;
  transform-origin: center;
}

/* Smaller logo when scrolled */
#igisza-header.scrolled #page-logo {
  transform: scale(0.70);
}


/* Change the color of links on hover */
  .topnav a:hover {
    background-color: #b6f3ae;
    color: black;
  }
  
  /* Add a color to the active/current link */
  .topnav a.active {
    background-color: #9cd195;
    color: rgb(0, 0, 0);
  }


/* style footer content */
.footer {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #fffdfd;
  display: list-item;
  justify-content: center;
  font-family:'cmono';
  width: 100%;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* soft shadow */
}

/* --- GRID & FIGURES --- */
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

/* --- TEST PORTFOLIO IMAGE SLIDESHOW W/ MINI GALLERY --- */
* {
    box-sizing: border-box;
}

/* =========================
   CARD CONTAINER
========================= */
.project-card {
    background: rgba(255,255,255,0.85);
    border: 1px solid #ccc;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);

    display: block;
}

/* FORCE VERTICAL STACK */
.project-card > * {
    width: 100% !important;
    display: block !important;
    background: white;
}

/* =========================
   THEME RIBBON (CORNER DIAGONAL)
========================= */

.project-card {
    position: relative;
    overflow: hidden;
}
.ribbon-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    z-index: 10;
    background-color: transparent;
}
.theme-ribbon {
    position: absolute;
    top: 28px;
    right: -38px;
    z-index: 5;

    transform: rotate(45deg);

    width: 180px;
    text-align: center;

    font-size: 10px;
    font-weight: 600;
    font-family: 'cmono';
    padding: 4px 0;

    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

 

@media (max-width: 600px) {
    .ribbon-corner {
        width: 60px;
        height: 60px;
    }

    .theme-ribbon {
        width: 100px;
        font-size: 9px;
    }
}
    .theme-ribbon.remote-sensing { background: #9c4aa7; }
    .theme-ribbon.hydrology { background: #27a8c9; }
    .theme-ribbon.gis-planning { background: #38a1a8; }
    .theme-ribbon.geology { background: #8A5A44; }
    .theme-ribbon.hazards { background: #C24C4C; }
    .theme-ribbon.archaeology { background: #bd9d46; }
    .theme-ribbon.creative { background: #35c4ac; }
/* =========================
   TITLE
========================= */
.project-title {
    font-size: 24px;
    font-family: 'cmono';
    margin-bottom: 10px;
}

/* =========================
   TEXT
========================= */
.project-text {
    font-size: 20px;
    font-family: 'cmono';
}

.abstract {
    font-size: 20px;
    font-family: 'cmono';
}

.full-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.full-text.expanded {
    max-height: 1000px;
}

.read-more-btn {
    margin: 10px 0;
    cursor: pointer;
}
/* =========================
   PROJECT TAGS
========================= */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag {
    font-size: 11px;
    font-family: 'cmono';
    padding: 4px 10px;
    border-radius: 999px;

    font-weight: 500;
    letter-spacing: 0.3px;

    background: #eee;
    color: #333;

    transition: all 0.2s ease;
    cursor: url("pickaxe2.png"), pointer;
}
.tag:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}
/*COLOR SYSTEM FOR PROJECT TAGS*/
/* MACHINE LEARNING */
.tag.ml { background: #e778e7; color: white; }
.tag.classification { background: #F58518; color: white; }
.tag.svm { background: #72B7B2; color: white; }
.tag.randomforest { background: #54A24B; color: white; }
.tag.clustering { background: #8E6C8A; color: white; }
/* GIS / SPATIAL */
.tag.gis { background: #E45756; color: white; }
.tag.raster { background: #B279A2; color: white; }
.tag.vector { background: #FF9DA6; color: white; }
.tag.spatial-analysis { background: #F58518; color: white; }
.tag.suitability { background: #54A24B; color: white; }
.tag.mca { background: #72B7B2; color: white; }
.tag.site-selection { background: #F58518; color: white; }
.tag.infrastructure-planning { background: #54A24B; color: white; }
/*REMOTE SENSING*/
.tag.sentinel { background: #2F6DAE; color: white; }
.tag.multispectral { background: #6BAED6; color: white; }
.tag.spectral { background: #4C78A8; color: white; }
.tag.image-processing { background: #9C755F; color: white; }
.tag.land-cover { background: #BAB0AC; color: white; }
/*STATS*/
.tag.statistics { background: #e2ce96; color: white; }
.tag.time-series { background: #9db0be; color: white; }
.tag.trend-analysis { background: #D37295; color: white; }
.tag.correlation { background: #E15759; color: white; }
.tag.regression { background: #76B7B2; color: white; }
.tag.data-cleaning { background: #59A14F; color: white; }
/* HYDROLOGY */
.tag.water-quality { background: #4E79A7; color: white; }
.tag.nutrients { background: #59A14F; color: white; }
.tag.eutrophication { background: #76B7B2; color: white; }
.tag.river-systems { background: #E15759; color: white; }
.tag.catchment { background: #F28E2B; color: white; }
/* GEOLOGY & GEOCHEMISTRY*/
.tag.soil-chemistry { background: #8D6B94; color: white; }
.tag.contamination { background: #E15759; color: white; }
.tag.heavy-metals { background: #B07AA1; color: white; }
.tag.sedimentology { background: #9C755F; color: white; }
.tag.stratigraphy { background: #BAB0AC; color: white; }
.tag.palaeogeography { background: #9C755F; color: white; }
/* HAZARDS */
.tag.vulnerability { background: #E45756; color: white; }
.tag.flood-risk { background: #4C78A8; color: white; }
.tag.socioeconomic { background: #F58518; color: white; }
.tag.risk-analysis { background: #B279A2; color: white; }
/* ARCHAEOLOGY */
.tag.landscape-analysis { background: #9C755F; color: white; }
.tag.chronology { background: #e9b6a2; color: white; }
.tag.site-distribution { background: #8D6B94; color: white; }
/* CREATIVE / WEB DESIGN */
.tag.web-design { background: #4C78A8; color: white; }
.tag.ui-ux { background: #F58518; color: white; }
.tag.front-end { background: #54A24B; color: white; }
.tag.responsive-design { background: #72B7B2; color: white; }
.tag.typography { background: #B279A2; color: white; }
.tag.visual-identity { background: #E45756; color: white; }
/* =========================
   SLIDESHOW
========================= */
.project-slideshow {
    position: relative;
    width: 100%;
    margin-top: 15px;
    display: block !important;
    background: white;
}

/* SLIDES */
.mySlides {
    display: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mySlides img {
    max-width: 70%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;

    cursor: url("zoom-point.png") 16 16, zoom-in;
}

/* ZOOM LENS */
/* lens */
.zoom-lens {
  position: fixed;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);

  pointer-events: none;
  display: none;
  z-index: 999999;

  background-repeat: no-repeat;
}

/* ARROWS */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 20px;
    user-select: none;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.7);
}

/* CAPTION */
.caption-container {
    text-align: center;
    font-family: 'cmono';
    background: #dbdbdb;
    color: rgb(0, 0, 0);
    padding: 6px;
}

/* THUMBNAILS */
.thumb-row {
    display: flex;
    gap: 0;
    padding: 0;
}

.thumb-row img {
    flex: 1;
    width: 100%;
    opacity: 0.6;
}

.thumb-row img:hover,
.thumb-row img.active {
    opacity: 1;
}

.demo.active {
    opacity: 1;
    outline: 2px solid #333;
}
/* --- END TEST PORTFOLIO IMAGE SLIDESHOW W/ MINI GALLERY --- */


.read-more-btn {
  margin: 10px 0;
  border:none;
  font-size: 20px;
  font-family: 'cmono';
}

.column {
    flex: 1 1 350px;
    max-width: 33%; 
}

.project-figure {
    text-align: center;
    margin-bottom: 25px;
}

.project-figure img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    display: block;
    margin: 0 auto;
}

.project-figure figcaption {
    font-size: 20px;
    font-family: 'cmono';
    color: #333;
    margin-top: 8px;
    font-style: italic;
    text-align: center;
}

/* --- TESTIMONIAL BOXES --- */
.testimonial {
    border: 1px solid #ccc;
    padding: 16px;
    margin: 16px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display:block !important;
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    z-index: 9999;
}

.modal img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 6px;
    margin-bottom: 15px;
    touch-action: none;
    transition: transform 0.05s linear;
}

#modal-caption {
    color: #fff;
    font-size: 25px;
    font-family: 'cmono';
    text-align: center;
    max-width: 90%;
}

/* Modal close button */
#modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 800px) {
    .column {
        flex: 1 1 45%;
        max-width: 45%;
    }
}

@media screen and (max-width: 600px) {
    .column {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Scroll to Top button */
#scrollTopBtn {
    display: none;             /* hidden by default */
    position: fixed;           /* fixed position on screen */
    bottom: 30px;              /* distance from bottom */
    right: 30px;               /* distance from right */
    width: 60px;               /* button size */
    height: 60px;
    z-index: 1000;             /* make sure it's on top */
    transition: transform 0.3s ease;
}

#scrollTopBtn:hover {
    transform: scale(1.1);     /* small hover animation */
}

.loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 10px 14px;

  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

  font-size: 20px;
  font-family: 'cmono';

  opacity: 0;
  transform: translateY(10px);
  transition: 0.6s ease;
}

.loading.active {
  opacity: 1;
  transform: translateY(0);
}

/* signal dots */
.dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
}

.dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333;
  opacity: 0.25;
}

.loading.active .dots span {
  animation: signalPulse 1.2s infinite ease-in-out;
}

.loading:not(.active) .dots span {
  animation-play-state: paused;
}

.loading.active .dots span:nth-child(1) { animation-delay: 0s; }
.loading.active .dots span:nth-child(2) { animation-delay: 0.2s; }
.loading.active .dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes signalPulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

.testimonial.project-card {
    display: flex !important;
    flex-direction: column !important;
}


 /* Scroll to BOTTOM button */
.scroll-bottom {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 80px;
  height: 80px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.2s ease;
}

.scroll-bottom:hover {
  transform: scale(1.1);
}

.scroll-bottom img {
  width: 100%;
  height: 100%;
}

/* =========================
   SLIDESHOW
========================= */
.project-slideshow {
    position: relative;
    width: 100%;
    margin-top: 15px;

    display: flex;
    flex-direction: column;

    background: white;
    overflow: hidden;
}

/* =========================
   SLIDES (MAIN IMAGE AREA)
========================= */
.mySlides {
    display: none;
    width: 100%;

    /* KEY FIX: stable layout instead of breaking page */
    height: 420px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* main image */
.mySlides img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;

    object-fit: contain;
    display: block;
}

/* =========================
   ARROWS
========================= */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    padding: 10px;
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 20px;

    user-select: none;
    z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

/* =========================
   CAPTION (IN BETWEEN)
========================= */

.caption-container {
    text-align: center;
    background: #dbdbdb;
    color: black;

    padding: 8px;
    font-size: 14px;
}

/* =========================
   THUMBNAILS (BOTTOM)
========================= */

.thumb-row {
    display: flex;
    gap: 0;
    padding: 6px;

    overflow-x: auto;
}

/* thumbnails */
.thumb-row img {
    flex: 0 0 auto;

    width: 70px;
    height: 70px;

    object-fit: cover;
    opacity: 0.6;

}

.thumb-row img.active {
    opacity: 1;
    outline: 2px solid #333;
}

/* =========================
   ZOOM LENS
========================= */

.zoom-lens {
    position: fixed;
    width: 160px;
    height: 160px;

    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);

    pointer-events: none;
    display: none;
    z-index: 999999;

    background-repeat: no-repeat;
}

/* =========================
   MOBILE FIX
========================= */
@media (max-width: 600px) {

    .mySlides {
        height: 260px;
    }

    .thumb-row img {
        width: 55px;
        height: 55px;
    }
}