/*
*    Portfolio CSS - Mobile Version (≤768px)
*    Author: Josh Lollis
*    Date: May 17, 2025
*    Split from original styles.css
*/

/* Root variables */
:root {
  --navbar-height: 10vh;
}

/* Global styles */
body, html {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #f4a0ff, #e8f0fe);
  color: #333;
  overflow-x: hidden;
}

a {
  color: #4b304e;
  text-decoration: none;
}

.funnel-display-header {
  font-family: "Funnel Display", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  color: #4b304e;
  text-align: center;
  font-size: 2rem;
  padding: 0.5rem;
  margin: 1rem 0;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile-specific header styles */
main h1 {
  font-size: 3rem;
  color: #4b304e;
  padding-top: 0;
  text-shadow: 5px 5px 2px rgba(0, 0, 0, 0.2);
  font-family: "Funnel Display", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

main h1.funnel-display-header {
  font-size: 3rem;
  padding-top: 0;
  text-shadow: 3px 3px 2px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
}

h2.funnel-display-header {
  font-size: 1.8rem;
  margin: 1.2rem 0;
}

h3.funnel-display-header {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.5rem;
}

/* Main content area */
main {
  margin-top: var(--navbar-height);
  width: 100%;
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  justify-content: normal;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

/* Hide sliding project tabs on mobile */
.sliding-projects {
  display: none;
}

.content-container {
  background: #ffffff;
  width: 90%;
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.253);
  border: 4px solid #4b304e;
  word-wrap: break-word;
  overflow-wrap: break-word;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  text-align: left;
}

.content-container blockquote {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin: 1rem 0;
  border: none;
  transition: transform 0.2s ease;
}

.content-container blockquote:hover {
  transform: translateY(-5px);
  box-shadow: 12px 12px 8px rgba(0, 0, 0, 0.4);
}

/* Special headings */
h5.issue, h5.challenge {
  color: #e74c3c;
}

h5.remedy {
  color: #27ae60;
  margin-top: 1rem;
}

/* Navigation and header */
.navbar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 10%;
  background-color: #4b304e;
  z-index: 10;
}

.home-button {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  right: 20px;
  z-index: 15;
  font-size: 30px;
  font-weight: 900;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(to bottom, #f4a0ff, #4b304e);
  padding: 2px 20px;
  border-radius: 5px;
  text-decoration: none;
  -webkit-text-stroke: 1px #ffffff;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.home-button:hover {
  background: #ed65ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(237, 101, 255, 0.4);
  border: 2px solid #ffffff;
}

.header-list {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  background-color: #4b304e;
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  transition: top 0.6s ease;
  z-index: 5;
  opacity: 95%;
  align-items: center;
  list-style-type: none;
  margin: 0px;
}

.header-list.active {
  top: var(--header-height);
}

.menu-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 20px;
  z-index: 15;
  font-size: 30px;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(to bottom, #f4a0ff, #4b304e);
  padding: 10px 20px;
  border-radius: 5px;
}

.menu-toggle:hover {
  background: #ed65ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(237, 101, 255, 0.4);
  border: 2px solid #ffffff;
}

.menu-toggle:hover .toggle-button-text,
.home-button:hover .home-button-text {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  color: white;
}

.header-list-item a {
  color: white;
  text-decoration: none;
  font-size: 30px;
}

.header-list-item-a:hover {
  color: #ed65ff;
  text-shadow: 0 0 8px rgba(237, 101, 255, 0.4);
  transition: all 0.3s ease;
}

/* Profile section */
.snug-header {
  margin-bottom: 0px;
}

#pfp-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.pfp-border {
  width: 280px;
  height: 258px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #4b304e, #181986);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 8px 10px 10px rgba(0, 0, 0, 0.5);
}

.pfp {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
}

/* Projects grid */
#projects-grid {
  width: 90%;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
  margin: 0 auto;
}

.project-item {
  background: white;
  border-radius: 8px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  border: 2px solid transparent;
  margin-bottom: 2rem;
  height: auto;
  aspect-ratio: auto;
}

.project-item:hover,
.project-item:active {
  transform: translateY(-3px);
  box-shadow: 4px 4px 2px rgba(0, 0, 0, 0.2);
  border: 2px solid #4b304e;
}

.project-item h2 {
  padding: 0.8rem;
  margin: 0;
  font-size: 1.2rem;
  color: #4b304e;
}

.thumbnail-container {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  overflow: hidden;
  max-height: none;
}

.thumbnail-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.3s ease;
}

.project-item:hover .thumbnail-container img,
.project-item:active .thumbnail-container img {
  transform: scale(1.08);
}

/* Chart and data display */
#language-data-message,
#chart-data-message {
  display: block;
}

canvas {
  width: 100%;
  height: auto;
  margin-bottom: 10%;
}

#wakatimeLanguageChart {
  max-width: 75%;
}

/* Mobile chart elements */
.mobile-chart-container {
  display: flex;
  width: 100%;
  height: auto;
  padding: 0 10%;
  margin-bottom: 20px;
}

.mobile-wakatimeLangChart {
  display: flex;
}

.mobile-chart-column-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Desktop chart elements to hide */
#desktop-lang-row,
#desktop-lang-headers-row,
.desktop-lang-header,
.desktop-editor-header,
#desktop-editors-row,
#desktop-editors-headers-row,
#desktop-language-data-message,
#desktop-chart-data-message,
.desktop-wakatimeLangChart,
.desktop-chart-column-container,
#desktop-language-data-messag {
  display: none;
}

/* Image and thumbnail styling */
.img-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 300px;
  max-height: 300px;
  box-shadow: 4px 4px 6px rgb(0, 0, 0, 0.5);
}

/* Blog-specific image styling */
.blog-image {
    width: 100%; /* Ensure the image scales to fit its container */
    max-width: 800px; /* Set a reasonable max width for blog images */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove inline spacing issues */
    margin: 1.5rem auto; /* Center the image and add spacing */
    border-radius: var(--border-radius-md); /* Match the blog's rounded corners */
    box-shadow: var(--shadow-md); /* Add a subtle shadow for better visibility */
}

.blog-gif {
  border: 4px solid #4b304e;
  border-radius: 6px;
}

.blog-thumbnail {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-width: 100%;
}

/* Wakatime stats */
#wakatime-site-hours {
  margin-left: 10px;
  margin-right: 5%;
}

#wakatime-site-hours img {
  border: 2px solid #331236;
  border-radius: 6px;
  width: auto;
  height: 20px;
}

/* Iframe and video elements */
iframe {
  width: 75%;
  height: auto;
  margin: 5px;
}

.iframe-border {
  width: 90%;
}

.project-video {
  width: 100%;
  aspect-ratio: 16/9;
  border: 4px solid #4b304e;
  border-radius: 6px;
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
}

/* PDF container */
.pdf-container {
  display: flex;
  justify-content: center;
  width: 100%;
  height: auto;
  background-color: #f9f9f900;
  margin-bottom: 2%;
}

.pdf-container object {
  width: 90%;
  height: auto;
  border: 2px solid #333;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
}

/* Carousel */
.carousel-container {
  position: relative;
  width: 90%;
  max-width: 600px;
  overflow: hidden;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-images img {
  width: 100%;
  height: auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  cursor: pointer;
  border: none;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Bio section */
#bio-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#bio-container {
  width: 90%;
  padding: 1rem;
}

#role-tags {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 1%;
}

.tags-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.5rem;
}

.tag {
  font-weight: bold;
  font-size: 0.9rem;
  color: #4b304e;
  white-space: nowrap;
}

.tag-separator {
  color: #ed65ff;
  margin: 0 0.2rem;
}

#role-tags ul {
  width: 100%;
  display: flex;
  justify-content: center;
  list-style-type: none;
  padding: 0;
  margin: 0;
  gap: 5px;
}

#role-tags ul li {
  font-weight: bold;
  font-size: 14pt;
  white-space: nowrap;
}

#bio p {
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
  text-align: center;
}

#resume-header {
  margin-top: 5%;
}

/* Footer styling */
#site-footer {
  display: inline-grid;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: #4b304e;
  color: white;
  align-content: center;
  justify-items: center;
  border-top: 4px solid #ed65ff;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
  gap: 0.25rem;
}

#site-footer p {
  font-size: small;
  text-wrap: wrap;
}

#site-footer .fa {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  font-size: 30px;
  width: 3px;
  height: 2px;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
}

#site-footer .fa:hover {
  opacity: 0.7;
}

#social-div {
  display: flex;
  margin-bottom: 0.25rem;
}

#site-footer .fa-github {
  background: #000000;
  color: white;
  border-radius: 6;
  border: 2px solid #331236;
}

#site-footer .fa-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  border-radius: 6;
  border: 2px solid #331236;
}

#site-footer .fa-youtube {
  background: #FF0000;
  color: white;
  border-radius: 6;
  border: 2px solid #331236;
}

#site-footer .fa-linkedin {
  background: #0077B5;
  color: white;
  border-radius: 6;
  border: 2px solid #331236;
}

/* Form styling */
#fs-frm {
  width: 85%;
  padding: 0.5rem;
}

#fs-frm fieldset {
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

#fs-frm input,
#fs-frm textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 2px solid #4b304e;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

#fs-frm [type="submit"] {
  background: #4b304e;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

#fs-frm [type="submit"]:hover {
  background: #ed65ff;
}

/* Blog and content styling */
.devlog-section {
  text-align: left;
}

.devlog-section h2 {
  text-align: left;
}

.devlog-list {
  text-align: left;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.devlog-list li {
  text-align: left;
  margin-bottom: 0.5rem;
}

.devlog-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.devlog-content h2 {
  color: #4b304e;
  margin-top: 2rem;
}

.devlog-content p {
  line-height: 1.6;
  margin: 0.5rem 0;
  color: #4a4a4a;
  font-size: 1rem;
}

.devlog-section {
  margin-bottom: 2rem;
  text-align: left;
}

.devlog-content blockquote {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin: 2rem 0;
  border: none;
  transition: transform 0.2s ease;
  text-align: left;
}

.devlog-content blockquote:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 2px rgba(0, 0, 0, 0.397);
}

.devlog-content h5 {
  color: #4b304e;
  font-size: 1.1rem;
  margin: 0;
  padding: 0.5rem 0;
  font-family: "Funnel Display", sans-serif;
}

.devlog-content b {
  display: block;
  border-bottom: 2px solid #ed65ff;
  margin-bottom: 1rem;
}

.devlog-content h5:first-of-type {
  color: #e74c3c;
}

.devlog-content h5:last-of-type {
  color: #27ae60;
  margin-top: 1rem;
}

.devlog-content blockquote b:last-of-type {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

/* Image grid */
.image-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  padding: 0.5rem;
  box-sizing: border-box;
}

.image-grid img {
  width: auto;
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  padding: 0.5rem;
  box-sizing: border-box;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  cursor: pointer;
}

.modal img {
  max-width: 95%;
  max-height: 80vh;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  object-fit: contain;
  background-color: white;
  padding: 0.5rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Table of contents navigation */
.toc-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.toc-card {
  width: 90%;
  margin: 0.5rem auto;
  min-width: unset;
  padding: 1rem;
  box-sizing: border-box;
  background: white;
  border-radius: 12px;
  border: 2px solid #4b304e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #4b304e;
  box-shadow: 4px 4px 0 #4b304e;
  text-align: center;
}

.toc-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #4b304e;
  background: #ed65ff;
  color: white;
}

.toc-icon {
  font-size: 1.5rem;
}

.toc-title {
  font-family: "Funnel Display", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  display: inline-block;
}

/* Skills grid */
.skills-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding: 0.5rem;
  box-sizing: border-box;
}

.skill-category {
  width: 85%;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid #4b304e;
  border-radius: 6px;
  box-sizing: border-box;
  max-width: 100%;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid #4b304e;
}

.skill-category h3 {
  color: #4b304e;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.skill-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-category li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(75, 48, 78, 0.2);
  transition: padding 0.3s ease;
}

.skill-category li:last-child {
  border-bottom: none;
}

/* Version sections */
.version-section {
  margin: 2rem 0;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 2px solid #4b304e;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
}

/* Back button for mobile */
.back-button,
.back-button * {
  display: none !important;
}

.content-container .back-button {
  display: none !important;
}

/* Additional global elements */
html {
  scroll-behavior: smooth;
}

.intro-greeting {
  text-align: center;
  font-family: "Funnel Display", sans-serif;
  color: #4b304e;
  margin: 1rem 0;
  font-size: 2.5rem;
}

/* Section containers */
.section-container {
  margin: 2rem 0;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 2px solid #4b304e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-container:not(:last-child) {
  margin-bottom: 3rem;
}

/* Repository links */
.repo-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  font-size: 50px;
  width: 20px;
  height: 20px;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  background: #000000;
  color: white;
  border: 4px solid #331236;
  transition: all 0.3s ease;
}

.repo-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  opacity: 0.7;
}

.repo-card {
  background: #000000 !important;
  color: white !important;
  border: 2px solid #331236;
}

.repo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

.repo-card .toc-icon {
  font-size: 1.5em;
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1rem;
}

.blog-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  padding: 1rem;
  cursor: pointer;
}

.blog-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background: #ed65ff;
}

.blog-content {
  padding: 1rem;
}

.blog-title {
  color: #4b304e;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.blog-date {
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.blog-preview {
  color: #333;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.blog-link {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  background: #4b304e;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
  font-size: 0.9rem;
}

.blog-link:hover {
  background: #ed65ff;
}

/* Hide status ticker on mobile */
#status-container {
  display: none !important; /* Hide the entire ticker container on mobile */
}