* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 410;
  font-style: normal;
  transition: all 1s ease-in-out;
}

hr {
  color: var(--frg-color);
  position: relative;
  bottom: 0;
}

#projects-title {
  margin-top: 100vh;
}

.card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 100px;
}

.card {
  width: 325px;
  height: 400px;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  margin: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
}

.preview-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.preview-container .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* covers full area */
  filter: blur(25px);  /* strong blur */
  transform: scale(4.1); /* avoid edge artifacts */
  z-index: 1;
}

/* Foreground sharp image */
.preview-container .fg {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  display: block;
  z-index: 2;
}

.card-content {
  padding: 16px;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.card-content p {
  color: #666;
  font-size: 15px;
  line-height: 1.3;
}

.card-footer {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.card-footer hr {
  bottom: 0;
  margin-top: auto;
}

.card-footer .card-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--bkg-color); /* #333 */
  text-decoration: none;
  justify-self: end;
  justify-content: end;
  justify-items: end;
  top: 35%;

  bottom: 0px;
  text-align: center;
  color: var(--text-color); /* #fff */
}

/* navbar */
nav {
    position: sticky;
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    text-align: center;
    left: 0;
    top: 0;
    width: auto;
    background-color: var(--nav-color);
    opacity: 100%;
    z-index: 100;
}

#title {
    text-transform: uppercase;
    letter-spacing: 5px;
    text-decoration: none;
    font-size: 20px;
    align-self: center;
    text-align: center;
}

.top-btns {
    right: 2%;
    position: absolute;
    display: flex;

}
/* navbar */

/* config */
body {
  background-color: var(--bkg-color);
}

#title, h1, h2, h3, h4, h5, h6, p, li, a {
  color: var(--text-color);
}

.card {
  background-color: var(--frg-color);
}

/* config */

/* light/dark mode config */
:root {
    --light-text-color: #222222;
    --light-bkg-color:  #ffffff;
    --light-frg-color:  #dddddd;
    --light-nav-color:  #f6f6f6;

    --dark-text-color: #f6f6f6;
    --dark-bkg-color:  #1e1e1e;
    --dark-frg-color:  #2a2a2a;
    --dark-nav-color:  #262626;
}

body {
    --text-color: var(--light-text-color);
    --bkg-color:  var(--light-bkg-color);
    --frg-color:  var(--light-frg-color);
    --nav-color:  var(--light-nav-color);
}

body.dark-theme {
    --text-color: var(--dark-text-color);
    --bkg-color:  var(--dark-bkg-color);
    --frg-color:  var(--dark-frg-color);
    --nav-color:  var(--dark-nav-color);
}

@media (prefers-color-scheme: dark) {
    /* defaults to dark theme */
    body {
        --text-color: var(--dark-text-color);
        --bkg-color:  var(--dark-bkg-color);
        --frg-color:  var(--dark-frg-color);
        --nav-color:  var(--dark-nav-color);
    }
    body.light-theme {
        --text-color: var(--light-text-color);
        --bkg-color:  var(--light-bkg-color);
        --frg-color:  var(--light-frg-color);
        --nav-color:  var(--light-nav-color);
    }
}
/* light/dark mode config */

/* light/dark mode checkbox */
input[type="checkbox"] {
    display: flex;
    -webkit-appearance: none;
    visibility: hidden;
    display: none;
}

input[type="checkbox"]:checked ~ .mode-check::before {
    transform: translateX(-50px);
}

input[type="checkbox"]:checked ~ .mode-check::after {
    transform: translateX(0px);
}

.mode-check {
    position: relative;
    display: block;
    width: 40px;
    aspect-ratio: 2;
    background: var(--text-color);
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    transition: ease-in 0.5s;
}

.mode-check::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--bkg-color);
    width: 12px;
    aspect-ratio: 1;
    scale: 1.5;
    border-radius: 50%;
    transition: 0.5s;
    transform: translateX(50px);
}

.mode-check::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--bkg-color);
    width: 12px;
    aspect-ratio: 1;
    scale: 1.5;
    border-radius: 50%;
    transition: 0.5s;
}
/* light/dark mode checkbox */



/* aligning content  */
.content {
    width:80%;
    margin:0 auto;
    text-align:justify;
    /*zoom: 36%;*/
    /*font-size: 3.2vw;*/
    transition: font-size 1s ease-in-out;
    font-size: calc(.5 * (1.5vh + 1.1vw));
    /*transform: scale(0.5vw);*/
}

/* aligning images */
img.logo {
    display:grid;
    height:100%;
    max-width:30vw;
    max-height:60vh;
    margin:auto;
    border-radius: 5%;
    pointer-events: none;
}

img.logo {
    display:block;
    max-height:40vh;
}
/* * * * * * * * * */

/* aligning content  */
.parent {
    vertical-align: middle;
    align-items: center;
    text-align: center;
    transform-origin: center; /* Ensure scaling is from the center */
}

.parent * {
  vertical-align: middle;
  font-size: calc(.5 * (1.5vh + 1.1vw));
}


.content {
    display: flex;
    vertical-align: middle;
    align-items: center;
    /*gap: 20px; 
    padding: 20px;*/
}


.left-section {
    flex: 0 0 auto; /* Fixed width for the left section */
    text-align: center; /* Center-align image and name */
    padding-right:20px;

    border-right: 2px solid #ccc; /* Vertical line */
}


.right-section {
    display: flex;
    vertical-align: middle;
    align-items: center;
    flex: 1; /* Take the remaining space */
}

.right-left-section {
    display:table-cell;
    width:30%;
    font-size: calc(.3 * (1.5vh + 1.1vw));
    padding-left: 20px;
    border-right: 2px solid #ccc; /* Vertical line */
}

.right-right-section {
    padding-left: 20px;
    display:table-cell;
    width:70%;
}
/* * * * * * * * * * */

.content {
    padding-top: 0px;
    padding-left: 0px;
}

.content > :not(.imgbox) {
    padding-top: 45px;
    padding-left: 15%;
}

html {
  scroll-behavior: smooth;
}

.parent {
  height: 100vh;
}