:root {
  /* Background layers */
  --bg-main: #0f1417;
  --bg-panel: #161d22;
  --bg-panel-soft: #1d252b;

  /* Borders & dividers */
  --border-soft: rgba(255,255,255,0.06);

  /* Text */
  --text-main: #e6edf3;
  --text-muted: #9fb0bf;

  /* Accents */
  --accent-cool: #7cd1ff;
  --accent-warm: #f6c177; /* THIS is the mood fix */
}




* {
    box-sizing: border-box;
   font-family: 'JetBrains Mono', monospace;


    /* border: 1px solid red; */
}

a {
    color: #e8e6e3;
    text-decoration: none;  
}
span {
    font-size: 1rem;
    font-weight: 900;
}
.animated-text {
    display: inline-block;
}
.info-holder {
    position: relative;
    font-weight: 900;
    border-right: 2px solid #e8e6e3;
    width: 100%;
    grid-area: info;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
}
.monitor-holder {
    width: 100%;
    grid-area: statuses;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.statuses-title {
    border-bottom: 1px solid #e8e6e3;
    width: fit-content;
    margin-bottom: 5px;
    padding-right: 5px;
}
#social-holder {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 10px;
}

#social-holder a {
    color: #e8e6e3;
}
#social-holder .social-icon {
    width: 64px;
    height: 64px;
}

#about-section {
    width: 100%;
    grid-area: about;

}
.word {
    display: inline-block;
}
.container-item {
    padding: 20px;
}
#navbar {
    grid-area: navbar;
    border-bottom: 2px solid #e8e6e3;
    height: fit-content;
   
}
#navbar ul {
 display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.active {
    text-decoration: underline;
    font-weight: bold;
}
#navbar ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-direction: row;
    gap: 5px;
    /* margin-bottom: 2px; */
}
#navbar li.divider {
  border-left: 2px solid #ccc;
  margin: 0 1rem;
  height: 12px;
  /* border-radius: 50%; */
  /* padding: 2px; */
  /* background-color: white; */
}

.nav-item {
    /* background-color: #131516; */
    border-radius: 10px 10px 0 0;
    padding: 5px;

}
body.home-page,
body.rss-page {
    min-height: 100vh !important;
}
body {
    /* height: 100vh; */
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    color: #e8e6e3;
    /* background: linear-gradient(-45deg, #ff84b1, #2470a0); */
    /* background-size: 400% 400%; */
    background-size: 200% 200%;
    animation: gradient 45s ease infinite;
    /* height: 100vh; */
    height: 100%;
    transition: background 1s ease-in-out;
}
body:not(.home-page) #color-controls {
  display: none;
}


@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
 
    50% {
        background-position: 100% 50%;
    }
 
    100% {
        background-position: 0% 50%;
    }
}  
#main-container {
    width: 50%;
    max-width: 600px;
    /* display: flex; */
    display: grid;
    grid-template-areas:
    "navbar navbar navbar"
    "info statuses statuses"
    "about about about";
    flex-direction: row;
    height: fit-content;
      background-color: var(--bg-panel);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
    animation: fadeIn 0.5s ease-in-out;
}
.projects-page #main-container,
.admin-page #main-container,
.rss-page #main-container {
    grid-template-areas: 
    "navbar navbar navbar"
    "content content content";
    width: 80%;
    margin: 20px auto 20px auto;
    
    max-width: unset !important;
    /* margin-top: 20px; */
}
.projects-page .projects,
.projects-page form
.rss-page .projects {
    grid-area: content;
    transition: grid-template-rows 0.5s ease-out;
}
@media only screen and (max-width: 1000px) {
    #main-container {
        width: 90% !important;
        display: flex;
        flex-direction: column !important;
    }
    .project-container {
        min-width: unset !important;
    }
    .container-item {
        padding: 5px !important;
    }
    
    .projects {
        flex-direction: column !important;
    }
    .info-holder {
        border: none !important;
        gap: 20px;
        align-items: flex-start;
    }
    #social-holder {
        justify-content: flex-start;
    }
}
.green {
    color: #72ff72;
} 
.red {
    color: #ff1a1a;
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        -webkit-transform: translateY(10px);
        -ms-transform: translateY(10px);
        transform: translateY(10px);
    }
    50% {
        opacity: 0.7;
        -webkit-transform: translateY(-5px);
        -ms-transform: translateY(-5px);
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.nav-item:hover {
    animation: levitate-hover 1s infinite ease-in-out; 
}

@keyframes levitate-hover {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px); 
    }
    100% {
        transform: translateY(0);
    }
}
.animated {
    opacity: 0;
}
/* #navbar{
    animation: fadeInUp 1s ease;
    animation-fill-mode: forwards;
    animation-delay: 0.5s;
}
.container-item {
    animation: fadeInUp 1s ease;
    animation-fill-mode: forwards;
    animation-delay: 0.7s;
}
#about-section {
    animation: fadeInUp 1s ease;
    animation-fill-mode: forwards;
    animation-delay: 0.9s;
}

 */


/* .project-container {
    border: 1px solid #e8e6e3;
    padding: 10px;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    justify-content: flex-start;
    min-height: 350px;
    background-color: rgba(0, 0, 0, 0.201);
    border-radius: 8px;
} */
 .project-container, .rss-container {
   background: var(--bg-panel-soft);
  border: 1px solid var(--border-soft);              /* darker, subtler border */
  padding: 16px;                       /* more comfortable spacing */
  flex: 1;
  /* width: 100%; */
  display: flex;
  flex-direction: column;
  /* min-width: 300px; */
  min-width: 280px;
  min-height: 350px;
  justify-content: flex-start;
  /* background: rgba(20, 20, 20, 0.7); */
  border-radius: 12px;        
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rss-container {
    min-width: 49% !important;
}
.rss-items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}
/* RSS Items */
.rss-item {
  /* padding: 12px 0; */
  padding: 8px;
  border-bottom: 1px dashed #333;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.rss-item:last-child {
  border-bottom: none;
}

.rss-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding-left: 2px;
}

.rss-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
/* Title */
.rss-title {
  font-size: 1.05rem;
  font-weight: bold;
  color: #e8e6e3;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.rss-title:hover {
  color: #7cd1ff;
  /* text-decoration: underline; */
}

/* Date */
.rss-date {
  font-size: 0.8rem;
  color: #aaa;
  display: block;
  margin-top: 4px;
}

/* Description */
.rss-description {
  margin: 6px 0 0 0;
  font-size: 0.9rem;
  /* line-height: 1.4; */
  color: #ccc;
}
.rss-container ul {
  list-style: none;       /* removes bullets */
  padding: 0;             /* removes left indent */
  margin: 0;              /* removes top/bottom spacing */
}
button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.9);
    color: #121416;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    z-index: 1100;
}
button:hover {
  background-color: #e8e6e3;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}
/* #close-button {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.9);
  color: #121416;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  z-index: 1100;
} */
.project-title span {
    font-size: inherit !important;
}
#close-button:hover {
  background-color: #e8e6e3;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

#close-button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* small hover polish */
.project-container:hover {
  /* transform: translateY(-4px); */
  /* box-shadow: 0 8px 16px rgba(0,0,0,0.6); */
  /* border-color: #666; */
}
.popup-container-outer {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
}
.popup-container {
    width: 100%;
    max-width: 800px;
    z-index: 1000;
    /* display: none; */
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    max-height: 80%;
    overflow-y: auto;
    color: black;
    
}
.demo-active {
    max-width: 1200px !important;
}
#popup-image-holder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 200px;
}
#popup-image {
    max-width: 100%;
    /* max-height: 100%; */
    max-height: 500px;
    border: 2px solid #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.popup-container img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px;
}

/* .popup-container.hidden {
    display: none;
} */
.hidden {
    display: none !important;
}
.visible {
    display: block !important;
}
/* .popup-container.visible {
    display: block;
} */

.popup-navigation {
    position: absolute;
    display: flex;
    justify-content: space-between;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
}
.popup-overlay{
    position: absolute;
    top: 5%;
    right: 2%;
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
    padding: 10px;
    border-radius: 10px;
    z-index: 10;
}

#prev-button, #next-button {
    pointer-events: auto;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
    transition: all 0.3s ease;
    position: relative;
    mix-blend-mode: difference; /* Auto contrast */
}
#prev-button {
    left: 20px;
}
#next-button {
    right: 20px;
}

.project-image-icon {
    cursor:pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    /* background-color: #555; */
    border: 1px solid var(--border-soft);
    width: fit-content;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}
small,
.rss-date,
.rss-description,
.date {
  color: var(--text-muted);
}

.project-image-icon:hover {
    background-color: #e8e6e3 !important;
    color: black;
}
.project-image-icon:hover i {
    color: black;
}
.project-image-icon p {
    margin: 0;
}
.project-image-icon i {
    font-size: 1.2rem;
    /* color: #e8e6e3; */
    color: black;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: color 0.2s ease;
}
.full-width-project {
    min-width: 100% !important;
}
.half-width-project {
    /* width: 49% !important; */
    /* min-width: 49% !important; */
}
.image-icon:hover {
    color: #007bff;
}
.projects {
    margin-top: 10px;
    display: flex;
    padding: 5px;
    flex-direction: row;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
}
small.date {
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.5em;
}
.project-title .link{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}
strong {
    font-weight: bold;
}
.project-title span,
.statuses-title,
.link {
  color: var(--accent-warm);
}

a:hover {
  color: var(--accent-cool);
}

@keyframes expandContent {
    from {
      height: 0;
      color: black;
    }
    to {
        color: red;
      height: auto;
    }
  }
  .read-more-hidden {
    height: 0;
    overflow: hidden;
    /* transition: height 0.5s ease; */
  }
  .show-content {
    /* animation: expandContent 0.5s forwards; */
    height: fit-content !important;
  }
  
.text-wrapper {
    position: relative;
    display: inline-block;
    padding-top: 0.2em;
    padding-right: 0.05em;
    padding-bottom: 0.1em;
    overflow: hidden;
  }
  
  .letter {
    display: inline-block;
    line-height: 1em;
    transform-origin: 0 0;
  }
.status-item{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: space-between;
}
#status-holder {
    display: flex;
    gap: 3px;
    flex-direction: column;
}


.popup-track-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.popup-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.popup-track img.popup-image-slide {
    height: auto;
    object-fit: contain;
    min-width: 100%;
}


.left-side-nav {
    display: flex;
    align-items: center;
}


#color-controls {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 8px;
  color: #e8e6e3;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}
#color-controls label {
    margin-bottom: 5px;
    display: flex;
    gap: 10px;
    align-items: center;
}
#color-controls input[type="range"] {
  width: 150px;
  cursor: pointer;
}
body:not(.home-page) #color-controls {
  display: none;
}
#color-controls input[type="range"] {
  -webkit-appearance: none;
  width: 150px;
  height: 6px;
  background: #444;
  border-radius: 3px;
  outline: none;
  transition: background 0.3s;
}

#color-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e8e6e3;
  border: 2px solid #888;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

#color-controls input[type="range"]::-webkit-slider-thumb:hover {
  background: #ddd;
  transform: scale(1.1);
}

#color-controls input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e8e6e3;
  border: 2px solid #888;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

#color-controls input[type="range"]::-moz-range-thumb:hover {
  background: #ddd;
  transform: scale(1.1);
}


/* ===========================
   Form Styling
   =========================== */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #131516;
  border: 1px solid #2a2e33;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
}

form label {
  font-size: 0.9rem;
  font-weight: bold;
  color: #e8e6e3;
  margin-bottom: 4px;
  display: block;
}

form input,
form textarea,
form select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  background: #1b1e21;
  border: 1px solid #444;
  border-radius: 8px;
  color: #e8e6e3;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: #7cd1ff;
  box-shadow: 0 0 0 2px rgba(124,209,255,0.35);
  outline: none;
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

form button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #7cd1ff, #a78bfa);
  color: #121416;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

form button:active {
  transform: translateY(0);
  box-shadow: none;
}
.admin-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-form .form-row-inline {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.admin-form .form-row-inline .form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.iframe-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.iframe-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.popup-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.popup-demo {
    width: 100%;
    height: 70vh;
    margin-top: 15px;
}

.popup-demo iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.hidden {
    display: none;
}
