@import url("https://fonts.googleapis.com/css?family=Unbounded&display=swap");
/* === CSS RESET === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 1;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  height: 100%;
}

ol,
ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}
:root {
  --fg-color: #f5f5f5;
  --bg-color: #121212;
  --alt-bg-color: #121212;
  --button-hover-bg: #ffffff;
  --button-hover-text: #000000;
  --default-padding: min(50px, 7vw);
  --ascii-font-size: 5px;
  --link-color: #ffd700;
  --blink-color: var(--fg-color);

  /* Project card colors */
  --card-shadow: rgba(245, 245, 245, 0.15);
  --card-hover-shadow: rgba(245, 245, 245, 0.25);
  --web-category-color: #3498db;
  --design-category-color: #9b59b6;
  --photography-category-color: #e74c3c;
  --publication-category-color: #f39c12;
}

html.light-mode {
  --fg-color: #121212;
  --bg-color: #ffffff;
  --alt-bg-color: #ffffff;
  --button-hover-bg: #121212;
  --button-hover-text: #ffffff;
  --blink-color: var(--fg-color);

  /* Project card colors for light mode */
  --card-shadow: rgba(0, 0, 0, 0.1);
  --card-hover-shadow: rgba(0, 0, 0, 0.2);
  --web-category-color: #2980b9;
  --design-category-color: #8e44ad;
  --photography-category-color: #c0392b;
  --publication-category-color: #d35400;
}

html.dark-mode {
  --fg-color: #f5f5f5;
  --bg-color: #121212;
  --alt-bg-color: #121212;
  --button-hover-bg: #ffffff;
  --button-hover-text: #000000;
  --blink-color: var(--fg-color);
}

html {
  background-color: var(--bg-color);
  overflow-y: auto;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
}

canvas,
.page--content-container {
  position: fixed;
  height: 100%;
  width: 100%;
}

canvas {
  z-index: -1;
  position: fixed;
  width: 100%;
  height: 100%;
}
.hidden {
  display: none !important;
}

.visible {
  display: inherit;
}

html.dark-mode .dark-mode--button span.dark,
html.light-mode .dark-mode--button span.light {
  display: inline;
}

html.dark-mode .dark-mode--button span.light,
html.light-mode .dark-mode--button span.dark {
  display: none;
}

.page--content-container {
  z-index: 1;
  display: flex;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease; /* Add transition here */
}

.page--content {
  width: 100%;
  max-width: min(1440px, calc(100vw - 2 * var(--default-padding))); /* 1440 */
  margin: var(--default-padding);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  top: 100px;
  left: 100px;
  color: var(--fg-color);
  background-color: var(--bg-color);
  border: 1px solid var(--fg-color);
  overflow: hidden;
}

.page--content-container.compressed .main {
  max-width: min(500px, 86vw);
}

.page--content-container.expanded .main {
  min-width: 100%;
  min-height: 100%;
}

.page--content-container.expanded #dark-mode--hero-button,
.page--content-container.expanded .main .main--hero,
.page--content-container.compressed .main .main--title-bar,
.page--content-container.compressed .main .main--content-container {
  display: none;
  opacity: 0;
}

.dark-mode--button {
  text-transform: uppercase;
  padding: 15px 20px;
  line-height: 18px !important;
  font-family: "Unbounded", sans-serif;
  background-color: var(--alt-bg-color);
  color: var(--fg-color);
}
#dark-mode--hero-button {
  align-self: flex-start;
}

a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 5px 10px;
  color: var(--link-color);
  border-color: var(--link-color);
  background-color: var(--bg-color);
  border: 1px solid var(--fg-color);
}

a:hover,
a:focus {
  cursor: pointer !important;
  color: var(--button-hover-text) !important;
  background-color: var(--button-hover-bg) !important;
  transition: color 0.2s ease-in, background-color 0.2s ease-in !important;
  /* Add a subtle outline for focus, respecting the theme */
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}

/* Ensure buttons also have a clear focus */
.dark-mode--button:focus,
a.hero--button:focus {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}

/* Style focus for sidenav items */
.main--sidenav ul li:focus {
  outline: 2px solid var(--link-color);
  outline-offset: -2px; /* Adjust offset as needed */
  text-decoration: underline; /* Keep consistent with hover */
}

.main-name {
  font-weight: bold;
  color: #ffd700;
  margin-right: 0.5em;
}

html.dark-mode a.hero--button {
  background-color: black;
  color: white;
}

html.light-mode a.hero--button,
html.light-mode a.dark-mode--button {
  background-color: var(--alt-bg-color);
  color: var(--fg-color);
}

html.light-mode a.hero--button:hover,
html.light-mode a.dark-mode--button:hover,
html.light-mode a.hero--button:focus,
html.light-mode a.dark-mode--button:focus {
  background-color: var(--button-hover-bg);
  color: var(--button-hover-text);
}

html.dark-mode a.hero--button:hover,
html.dark-mode a.dark-mode--button:hover,
html.dark-mode a.hero--button:focus,
html.dark-mode a.dark-mode--button:focus {
  background-color: var(--button-hover-bg);
  color: var(--button-hover-text);
}

a.hero--button {
  text-transform: uppercase;
  padding: 15px 20px;
  line-height: 18px !important;
  font-family: "Unbounded", sans-serif;
  background-color: var(--alt-bg-color);
  color: var(--fg-color);
}

a.hero--button .subtext {
  padding-left: 10px;
}

a.hero--button .material-icons-outlined {
  font-size: 21px;
}

.main--hero {
  display: block;
  padding: var(--default-padding);
  font-family: "Unbounded", sans-serif;
}

.main--hero .hero-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

#feeling-lucky-hero-btn {
  padding: 10px;
}

.main--hero .hero--button {
  margin: 10px 0 0;
}

.main--title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 20px;
  border-bottom: 1px solid var(--fg-color);
  height: 40px;
}

.main--title-bar--title--mobile {
  display: none;
}

.main--title-bar--circles {
  display: flex;
  align-items: center; /* Align circles vertically */
}

.main--title-bar .hero--button {
  border: none;
  border-left: 1px solid var(--fg-color);
  margin: 0;
  padding: 0 5px;
}

.main--title-bar .circle {
  height: 12px;
  width: 12px;
  background-color: var(--fg-color);
  border: 1px solid black;
  border-radius: 50%;
  margin: 0 3px;
}

.main--title-bar .circle.red {
  background-color: #fb6752;
}

.main--title-bar .circle.yellow {
  background-color: #fdbf00;
}

.main--title-bar .circle.green {
  background-color: #31c72f;
}

.title-bar-right {
  display: flex; /* Ensure buttons are aligned horizontally */
  align-items: stretch; /* Vertically align them to stretch */
  height: 100%; /* Ensure it fills the full height of the container */
}

.title-bar-right a.hero--button {
  margin: 0;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.title-bar-right a.hero--button .material-icons-outlined {
  margin: 0;
  padding: 0;
}
.title-bar-right a {
  display: inline-flex;
  align-items: center;
}

.title-bar-left {
  display: flex;
  align-items: center; /* Align circles and text vertically */
}

.title-bar-left .main--title-bar--title {
  margin-left: 10px; /* Space the text from the circles */
  font-size: 14px; /* Adjust font size if needed */
  line-height: 1.2; /* Align text vertically */
}

.main--content-container {
  display: flex;
  flex-direction: row;
  flex: 1;
  width: 100%;
  height: calc(100 * var(--vh) - 2 * var(--default-padding) - 49px);
}

.main--sidenav {
  min-width: 225px;
  max-width: 225px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--fg-color);
}

.main--sidenav ul {
  padding-top: var(--default-padding);
}

.main--sidenav ul li {
  font-size: 20px;
  padding: 10px 20px;
}

.main--sidenav ul li span:last-child {
  float: right;
}

.main--sidenav ul li span.material-icons-outlined {
  font-size: 21px;
  margin-right: -5px;
}

.main--sidenav ul li.selected {
  color: var(--bg-color);
  background-color: var(--fg-color);
}

.main--sidenav ul li:hover,
.main--sidenav ul li.underline {
  cursor: pointer;
  text-decoration: underline;
}

.main--sidenav--subtext {
  padding: 20px;
}

.main--sidenav--subtext p:last-child {
  margin-bottom: 0;
}

#cursor {
  width: 10px;
  height: 20px;
  margin-left: 2px;
  margin-top: 3px;
  transition: all 0.2s;
  position: fixed;
  background-color: var(--fg-color);
  z-index: 2;
  display: block;
  animation: 1s blink step-end infinite;
}

#cursor.inverted {
  background-color: var(--bg-color);
  animation: 1s blink-inverted step-end infinite;
}

/* Hide custom cursor on mobile */
@media (max-width: 768px) {
  #cursor {
    display: none !important;
  }
}

@keyframes blink {
  from,
  to {
    background-color: transparent;
  }
  50% {
    background-color: var(--blink-color);
  }
}

@keyframes blink-inverted {
  from,
  to {
    background-color: transparent;
  }
  50% {
    color: var(--fg-color);
    background-color: var(--bg-color);
  }
}

.main--content {
  width: 100%;
  flex: 1;
  padding: var(--default-padding);
  overflow-x: hidden;
  overflow-y: scroll;
  position: relative;

  /* Scrollbar Hiding */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Webkit Scrollbar Hiding */
.main--content::-webkit-scrollbar {
  display: none;
}

.main--content-item ul li {
  display: flex;
  align-items: flex-start;
  margin: 15px 0;
}

.main--content-item .hero--button:last-of-type {
  margin-bottom: 65px;
}

.svg--venn {
  width: calc(100% - 2 * 20px);
  height: auto;
  padding: 20px;
  max-width: 400px;
  border: 1px solid var(--fg-color);
  margin-bottom: 20px;
}

/* Projects Section Styles */
.projects-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--fg-color);
}

.projects-filter-btn,
.projects-view-toggle {
  padding: 8px 16px;
  background: var(--bg-color);
  color: var(--fg-color);
  border: 1px solid var(--fg-color);
  cursor: pointer;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  transition: all 0.2s ease;
}

.projects-filter-btn:hover,
.projects-view-toggle:hover {
  background: var(--fg-color);
  color: var(--bg-color);
}

.projects-filter-btn.active {
  background: var(--fg-color);
  color: var(--bg-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.projects-grid.list-view {
  grid-template-columns: 1fr;
}

.project-card {
  border: 1px solid var(--fg-color);
  background: var(--bg-color);
  transition: all 0.2s ease;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(245, 245, 245, 0.1);
}

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--fg-color);
  transition: transform 0.5s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--fg-color);
  line-height: 1.3;
}

.project-category {
  display: inline-block;
  font-size: 12px;
  color: var(--fg-color);
  background-color: rgba(52, 152, 219, 0.3);
  padding: 4px 10px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.project-url {
  font-size: 13px;
  color: var(--fg-color);
  opacity: 0.85;
  word-break: break-all;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-section {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid var(--fg-color);
  background: var(--bg-color);
}

.upload-section h3 {
  margin-bottom: 15px;
  color: var(--fg-color);
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-upload {
  border: 2px dashed var(--fg-color);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-upload:hover {
  border-color: var(--link-color);
}

.file-upload.dragover {
  border-color: var(--link-color);
  background: rgba(255, 215, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-controls {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .projects-filter-btn,
  .projects-view-toggle {
    font-size: 12px;
    padding: 6px 12px;
  }
}

.svg--venn path {
  fill: var(--fg-color);
}

.svg--venn circle {
  stroke: var(--fg-color);
  stroke-width: 2;
}

.page--content-container
  .main
  .main--content-item[data-id="about"]
  .hero--button {
  display: none;
  margin-bottom: 40px;
}

[data-tooltip] {
  position: relative;
  z-index: 2;
  cursor: crosshair;
}

[data-tooltip]::before,
[data-tooltip]::after {
  visibility: hidden;
  opacity: 0;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 150%;
  left: 50%;
  margin-bottom: 5px;
  padding: 7px 10px;
  transform: translateX(-50%);
  border-radius: 3px;
  background-color: #000;
  background-color: hsla(0, 0%, 20%, 0.9);
  color: #fff;
  text-align: center;
  font-size: 14px;
  line-height: 1.2;
}

[data-tooltip]::after {
  content: " ";
  position: absolute;
  bottom: 150%;
  left: 50%;
  margin-left: -5px;
  width: 0;
  border-top: 5px solid #000;
  border-top: 5px solid hsla(0, 0%, 20%, 0.9);
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  font-size: 0;
  line-height: 0;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  visibility: visible;
  opacity: 1;
}

h1 {
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 30px;
  line-height: 1;
}

h2 {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 10px;
}

a,
a span.material-icons,
a span.material-icons-outlined {
  font-size: 18px;
  font-weight: 500;
  line-height: 18px;
}

p,
.main--content-item {
  font-size: 18px;
  font-weight: 300;
  line-height: 150%;
  margin-bottom: 20px;
}

.subtext {
  font-size: 14px;
  font-weight: 300;
}

b,
em {
  font-weight: 500;
}

i {
  font-style: italic;
}

.lowercase {
  text-transform: lowercase;
}

.capitalize {
  text-transform: uppercase;
}

.responsive-iframe {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 175%;
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 105%;
  height: 175%;
  margin-left: -2.5%;
  margin-top: -2050px;
  overflow-y: scroll;
  overflow-x: hidden;
}

@media only screen and (max-width: 1024px) {
  .main--content,
  .main--sidenav ul {
    padding: 25px;
  }
}

@media only screen and (max-width: 768px) {
  /* Improve typography for better readability */
  h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  /* Adjust content spacing */
  .main--content,
  .main--sidenav ul {
    padding: 15px;
  }

  /* Clean up experience items */
  .experience-item {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  }

  /* Improve status tags layout */
  .status-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 0.75em;
  }

  /* Better title bar for mobile */
  .main--title-bar {
    height: 36px;
    padding: 0 15px;
  }

  /* Adjust buttons for better touch targets */
  a.hero--button {
    padding: 12px 16px;
    margin: 8px 0;
    width: 100%;
    justify-content: space-between;
  }

  /* Clean up project section */
  [data-id="projects"] .main--content-item {
    margin-bottom: 15px;
  }

  /* Improve spacing between sections */
  .main--content-item {
    margin-bottom: 30px;
  }

  /* Better scrolling experience */
  .main--content {
    padding: 15px;
    -webkit-overflow-scrolling: touch;
  }

  /* Adjust link appearance */
  a {
    padding: 8px 12px;
    border-radius: 4px;
  }

  /* Clean up company/institution names */
  .company-name {
    display: block;
    margin-bottom: 4px;
  }

  /* Improve readability of text */
  p,
  .main--content-item {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .main--sidenav {
    display: none;
  }

  .main--content-item.hidden {
    display: block !important;
  }

  .hero--button {
    display: block;
    margin-bottom: 15px;
  }

  .hero--button:last-child {
    margin-bottom: 0;
  }

  .main--title-bar {
    padding-left: var(--default-padding);
  }

  .main--title-bar--circles,
  .main--title-bar--title,
  .hero--button .lowercase.subtext {
    display: none;
  }

  .main--title-bar--title--mobile,
  .page--content-container
    .main
    .main--content-item[data-id="about"]
    .hero--button {
    display: block;
  }

  .main--title-bar + * {
    margin-top: 0;
  }
  .responsive-iframe {
    position: relative;
    overflow: hidden;
    width: 100%;
    background-color: transparent;
    margin: 0;
    padding: 0;
    aspect-ratio: 4 / 7;
    min-height: 650px;
    max-height: 98vh;
    height: 98vh;
  }

  .responsive-iframe iframe {
    background-color: transparent;
    border: none;
    width: 100%;
    position: absolute;
    top: -80px;
    left: 0;
    height: calc(100% + 80px);
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 730px;
    max-height: calc(98vh + 80px);
  }
}

@media (max-width: 1500px) {
  .responsive-iframe {
    padding-top: 160%;
  }
  .responsive-iframe iframe {
    height: 175%;
    margin-top: -1500px;
  }
}

@media (max-width: 1080px) {
  .responsive-iframe iframe {
    margin-top: -1300px;
  }
}

@media (max-width: 926px) {
  .responsive-iframe {
    padding-top: 175%;
  }
  .responsive-iframe iframe {
    height: 100%;
    margin-top: -1000px;
  }
}

@media (max-width: 812px) {
  .responsive-iframe iframe {
    height: 200%;
    margin-top: -800px;
  }
}

@media (max-width: 412px) {
  .responsive-iframe {
    min-height: 180px;
    max-height: 70vw;
    aspect-ratio: 4 / 3;
  }
  .responsive-iframe iframe {
    min-height: 180px;
    max-height: 70vw;
    margin-top: 0;
    height: 100%;
  }
}
/* === FURNITURE IFRAME === */
.furniture-iframe iframe {
  height: 50%;
  margin-top: -180px;
  overflow: hidden;
  pointer-events: auto;
}

@media (max-width: 1500px) {
  .furniture-iframe {
    padding-top: 100%;
  }
  .furniture-iframe iframe {
    height: 82%;
    margin-top: -180px;
  }
}

@media (max-width: 1080px) {
  .furniture-iframe {
    padding-top: 115%;
  }
  .furniture-iframe iframe {
    height: 85%;
    margin-top: 0;
  }
}

@media (max-width: 926px) {
  .furniture-iframe {
    margin-top: -120px;
    height: 80%;
  }
  .furniture-iframe iframe {
    height: 90%;
    margin-top: -120px;
  }
}

@media (max-width: 812px) {
  .furniture-iframe {
    padding-top: 110%;
  }
  .furniture-iframe iframe {
    height: 90%;
    margin-top: -100px;
  }
}

@media (max-width: 768px) {
  .furniture-iframe {
    position: relative;
    overflow: hidden;
    width: 100%;
    background-color: transparent;
    margin: 0;
    padding: 0;
    aspect-ratio: 4 / 7;
    min-height: 650px;
    max-height: 98vh;
    height: 98vh;
  }
  .furniture-iframe iframe {
    background-color: transparent;
    border: none;
    width: 100%;
    position: absolute;
    top: -100px;
    left: 0;
    height: calc(100% + 100px);
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 800px;
    max-height: calc(98vh + 100px);
    pointer-events: auto;
  }
}

@media (max-width: 412px) {
  .furniture-iframe iframe {
    height: 100%;
    margin-top: 10px;
  }
}

/* === MUSIC PLAYER === */
#music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid #888;
  border-radius: 8px;
  box-shadow: 0 2px 12px 2px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  padding: 10px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#music-icon {
  font-size: 28px;
  color: var(--fg-color);
  transition: transform 0.3s ease, color 0.2s;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.music-toggle.playing #music-icon {
  animation: musicWave 1s infinite;
}

@keyframes musicWave {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

#music-player:hover {
  transform: scale(1.1);
}

#music-player:hover #music-icon {
  color: var(--alt-bg-color);
}

html.dark-mode #music-player {
  background: rgba(18, 18, 18, 0.92);
  border: 1.5px solid #444;
}

@media only screen and (max-width: 768px) {
  #music-player {
    bottom: 16px;
    right: 16px;
    padding: 0;
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px 1px rgba(0, 0, 0, 0.18);
    border: 1.5px solid #bbb;
  }

  html.dark-mode #music-player {
    background: rgba(18, 18, 18, 0.96);
    border: 1.5px solid #444;
  }

  #music-icon {
    font-size: 24px;
  }
}

.background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* === EXPERIENCE SECTION ENHANCEMENTS === */
.section-header {
  background: linear-gradient(90deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.experience-item {
  letter-spacing: 0.02em;
  line-height: 1.6;
  padding: 1rem;
  transition: transform 0.2s ease;
}

.experience-item:hover {
  transform: scale(1.01);
}

.company-name {
  position: relative;
  transition: all 0.3s ease;
}

.company-name:hover,
.company-name:focus {
  transform: translateX(8px);
  color: #ffd700;
  outline: none;
}

.company-name::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffd700;
  transition: width 0.3s ease;
}

.company-name:focus::after {
  width: 100%;
}

.status-tag {
  font-size: 0.85em;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.status-tag.current {
  background: rgba(0, 255, 0, 0.1);
  border-color: rgba(0, 255, 0, 0.3);
}

.status-tag.temporary {
  background: rgba(255, 165, 0, 0.1);
  border-color: rgba(255, 165, 0, 0.3);
}

.experience-section {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
}

@media only screen and (max-width: 320px) {
  .main--content {
    padding: 10px;
  }
  h1 {
    font-size: 22px;
  }
  .main--title-bar {
    height: 32px;
  }
  a.hero--button {
    padding: 10px 14px;
    font-size: 14px;
  }
}

/* === DICE MODAL === */
.dice-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.dice-container {
  perspective: 1000px;
}

.dice {
  width: 100px;
  height: 100px;
  position: relative;
  transform-style: preserve-3d;
  animation: roll 4s infinite linear;
  cursor: pointer;
}

.dice-face {
  position: absolute;
  width: 100px;
  height: 100px;
  background-color: #fff;
  border: 2px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 48px;
  font-weight: bold;
}

.face-1 {
  transform: rotateY(0deg) translateZ(50px);
}
.face-2 {
  transform: rotateY(90deg) translateZ(50px);
}
.face-3 {
  transform: rotateY(180deg) translateZ(50px);
}
.face-4 {
  transform: rotateY(-90deg) translateZ(50px);
}
.face-5 {
  transform: rotateX(90deg) translateZ(50px);
}
.face-6 {
  transform: rotateX(-90deg) translateZ(50px);
}

@keyframes roll {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

/* === RESULT MODAL === */
.result-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.result-content {
  background-color: var(--bg-color);
  color: var(--fg-color);
  border: 1px solid var(--fg-color);
  padding: 30px;
  text-align: center;
  max-width: 80%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
  width: 100%;
  max-width: 500px;
}

.result-content .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: var(--fg-color);
}

.result-content p {
  margin-bottom: 20px;
  font-size: 20px;
}

.result-content a.hero--button {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  word-break: break-word;
  white-space: normal;
  max-width: 100%;
}

@media only screen and (max-width: 600px) {
  .result-content {
    padding: 20px;
    max-width: 90%;
    margin: 0 15px;
  }
  .result-content p {
    font-size: 16px;
    margin-bottom: 15px;
  }
  .result-content a.hero--button {
    padding: 12px 15px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
  }
}

@media only screen and (max-width: 320px) {
  .result-content {
    padding: 15px;
    max-width: 95%;
  }
  .result-content p {
    font-size: 14px;
  }
  .result-content a.hero--button {
    padding: 10px;
    font-size: 13px;
  }
  .result-content .close-btn {
    top: 5px;
    right: 5px;
    font-size: 20px;
  }
}

/* === NEON FLASH ANIMATION === */
.neon-flash {
  animation: neon-flash-animation 1.5s infinite alternate;
}

@keyframes neon-flash-animation {
  0%,
  100% {
    text-shadow: 0 0 2px #fff, 0 0 5px #fff, 0 0 8px #0ff;
    color: #fff;
  }
  50% {
    text-shadow: none;
    color: var(--fg-color);
  }
}

/* === DICE MODAL RESPONSIVE === */
@media only screen and (max-width: 600px) {
  .dice-modal .dice {
    width: 70px;
    height: 70px;
  }
  .dice-modal .dice-face {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }
  .dice-modal .face-1 {
    transform: rotateY(0deg) translateZ(35px);
  }
  .dice-modal .face-2 {
    transform: rotateY(90deg) translateZ(35px);
  }
  .dice-modal .face-3 {
    transform: rotateY(180deg) translateZ(35px);
  }
  .dice-modal .face-4 {
    transform: rotateY(-90deg) translateZ(35px);
  }
  .dice-modal .face-5 {
    transform: rotateX(90deg) translateZ(35px);
  }
  .dice-modal .face-6 {
    transform: rotateX(-90deg) translateZ(35px);
  }

  .result-content {
    padding: 20px;
    max-width: 90vw;
    margin: 0 15px;
  }
  .result-content p {
    font-size: 16px;
    margin-bottom: 15px;
  }
  .result-content a.hero--button {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    margin-top: 15px;
  }
  .result-content .close-btn {
    font-size: 22px;
    top: 8px;
    right: 8px;
  }
}

@media only screen and (max-width: 480px) {
  .dice-modal .dice {
    width: 60px;
    height: 60px;
  }
  .dice-modal .dice-face {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
  .dice-modal .face-1 {
    transform: rotateY(0deg) translateZ(30px);
  }
  .dice-modal .face-2 {
    transform: rotateY(90deg) translateZ(30px);
  }
  .dice-modal .face-3 {
    transform: rotateY(180deg) translateZ(30px);
  }
  .dice-modal .face-4 {
    transform: rotateY(-90deg) translateZ(30px);
  }
  .dice-modal .face-5 {
    transform: rotateX(90deg) translateZ(30px);
  }
  .dice-modal .face-6 {
    transform: rotateX(-90deg) translateZ(30px);
  }

  .result-content {
    padding: 15px;
    max-width: 95vw;
  }
  .result-content p {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .result-content a.hero--button {
    padding: 10px 12px;
    font-size: 13px;
    margin-top: 10px;
  }
  .result-content .close-btn {
    font-size: 18px;
    top: 5px;
    right: 5px;
  }
}
/* === ENHANCED PROJECT CARDS === */
.project-image-container {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid var(--fg-color);
}

.project-card--no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-color), var(--alt-bg-color));
  border-bottom: 1px solid var(--fg-color);
  min-height: 180px;
}

.project-placeholder {
  font-size: 48px;
  color: var(--fg-color);
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1px dashed var(--fg-color);
  transition: opacity 0.2s ease;
}

.project-card:hover .project-placeholder {
  opacity: 0.7;
}

.project-description {
  font-size: 15px;
  font-weight: 400;
  color: var(--fg-color);
  opacity: 0.85;
  line-height: 1.5;
  margin: 12px 0 16px;
  flex-grow: 1;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.project-tech-tag {
  font-size: 11px;
  padding: 2px 6px;
  background-color: rgba(18, 18, 18, 0.5);
  border: 1px solid var(--fg-color);
  color: var(--fg-color);
  margin-right: 4px;
  margin-bottom: 4px;
  display: inline-block;
}

.project-card.featured {
  border: 2px solid var(--link-color);
  position: relative;
}

.project-card.featured::before {
  content: "FEATURED";
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--link-color);
  color: var(--bg-color);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: bold;
  z-index: 2;
}

.project-card.coming-soon::after {
  content: "COMING SOON";
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(52, 152, 219, 0.8);
  color: var(--bg-color);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: bold;
  z-index: 2;
}

@media (max-width: 768px) {
  .project-image-container,
  .project-card--no-image {
    height: 160px;
    min-height: 160px;
  }
  .project-placeholder {
    font-size: 42px;
  }
  .project-description {
    font-size: 14px;
    margin: 10px 0 14px;
  }
  .project-title {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .project-info {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    gap: 16px;
  }
  .project-card {
    min-height: 300px;
  }
  .project-image-container,
  .project-card--no-image {
    height: 140px;
    min-height: 140px;
  }
}
