/* main.css: moved from HTML <style> */

/* Global Resets and Basic Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #e0e0e0;
  font-family: 'Share Tech Mono', monospace;
  overflow-x: hidden;
  background-color: #0f0f0f;
  min-height: 100vh;
  position: relative;
}

/* --- BACKGROUND AND OVERLAYS --- */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 2px);
  z-index: 1001;
  pointer-events: none;
  opacity: 0.5;
  transform: translateY(var(--scroll-y, 0px));
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 20px solid black;
    border-radius: 15px;
    box-shadow: 
        inset 0 0 15px 5px rgba(255, 255, 255, 0.15),
        inset 0 0 30px 10px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 2000;
}

/* --- NAVIGATION BAR --- */
.navbar {
  background-color: #0f0f0f;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 4px; /* Offset for CRT bezel effect */
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(15, 15, 15, 0.9);
  width: 100%;
  padding: 1rem 0;
  margin-top: -4px; /* Compensate for the top offset */
}

.navbar-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e0e0e0;
  text-decoration: none;
  font-family: 'VT323', monospace;
  font-size: 2.5rem !important; /* Significantly increased size with !important */
  z-index: 1002;
  line-height: 1;
  letter-spacing: 0.05em;
}

.logo-link span {
  font-size: 1em !important; /* Ensure span inherits the larger size */
  position: relative;
  top: 1px; /* Minor vertical adjustment */
}

.logo-link span {
  transition: text-shadow 0.2s ease-in-out;
}

.logo-link:hover span {
  text-shadow: 0 0 3px #a66bff;
}

.logo-link svg {
  height: 30px;
  width: auto;
  transition: filter 0.2s ease-in-out;
}

.logo-link:hover svg {
  filter: drop-shadow(0 0 3px #a66bff);
}

/* Mobile Menu Button */
.hamburger {
  padding: 10px;
  display: none; /* Hidden by default on desktop */
  cursor: pointer;
  background-color: transparent;
  border: 0;
  margin: 0;
  z-index: 1002;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 30px;
  height: 2px;
  background-color: #e0e0e0;
  border-radius: 4px;
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  margin-left: auto;
  align-items: center;
  height: 100%;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
  height: 100%;
}

.navbar li {
  margin: 0;
}

.navbar a {
  color: #a66bff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease-in-out, text-shadow 0.2s ease-in-out;
  position: relative;
  padding: 0.5rem 0;
}

.navbar a:hover,
.navbar a.active {
  color: #e0e0e0;
  text-shadow: 0 0 5px #a66bff;
}

.navbar a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #a66bff;
  transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

/* Mobile Styles */
@media (max-width: 991px) {
  .hamburger {
    display: inline-block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #0f0f0f;
    padding: 6rem 2rem 2rem;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 1001;
    border-left: 1px solid #333;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .navbar ul {
    flex-direction: column;
    gap: 0;
  }
  
  .navbar li {
    margin: 0.5rem 0;
  }
  
  .navbar a {
    display: block;
    padding: 0.75rem 0;
    color: #e0e0e0;
  }
  
  .navbar a:hover {
    color: #a66bff;
  }
  
  /* Overlay when menu is open */
  .nav-overlay {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* --- LAYOUT CONTAINERS & SPACING --- */
header,
main,
section {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.hero {
  margin-top: 2rem;
  padding: 0;
  display: flex;
  gap: 2rem;
}
.hero,
main > section {
  margin-bottom: 2rem;
}
main > section:last-of-type {
  margin-bottom: 0;
}

.site-footer {
  max-width: 960px;
  margin: 2rem auto 0;
  position: relative;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2rem;
  border-top: 1px solid #333;
  padding: 2rem;
  background: #0f0f0f;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column:last-child {
    text-align: left;
}

.footer-logo-link {
    display: block;
    width: 40px;
    margin-bottom: 1rem;
}
.footer-logo-link svg {
    width: 100%;
    height: auto;
    transition: filter 0.2s ease-in-out;
}
.footer-logo-link:hover svg {
    filter: drop-shadow(0 0 3px #a66bff);
}

.sitemap-list {
    list-style: none;
    padding: 0;
    column-count: 2;
    column-gap: 2rem;
}
.sitemap-list li {
    margin-bottom: 0.5rem;
}

footer a {
  color: #a66bff;
  text-decoration: none;
  transition: color 0.2s ease-in-out, text-shadow 0.2s ease-in-out;
}



footer a:hover {
  color: #e0e0e0;
  filter: drop-shadow(0 0 3px #a66bff);
}

.footer-contact-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    vertical-align: middle;
    margin-right: 0.5rem;
}
.footer-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.footer-socials a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-socials a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}


/* --- ENHANCED TERMINAL WINDOW STYLES --- */
.terminal-window {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2.5rem 2rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  animation: flicker 0.15s infinite;
  text-shadow: 0 0 2px rgba(166, 107, 255, 0.5);
}

.terminal-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background-color: #282828;
  border-bottom: 1px solid #333;
}

.terminal-window::after {
  content: '● ● ●';
  position: absolute;
  top: 6px;
  left: 12px;
  color: #555;
  letter-spacing: 6px;
  font-size: 12px;
}

@keyframes flicker {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.95;
  }
}

/* --- TYPOGRAPHY --- */
a {
  color: #a66bff;
  text-decoration: none;
  transition: color 0.2s ease-in-out, text-shadow 0.2s ease-in-out;
}

a:visited {
  color: #885ead;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'VT323', monospace;
  color: #a66bff;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 0 5px rgba(166, 107, 255, 0.3);
}

h1 {
  font-size: 2.5rem;
  color: #e0e0e0;
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(166, 107, 255, 0.5);
}

h2 {
  font-size: 2rem;
  color: #a66bff;
  margin: 1.5rem 0;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #a66bff, transparent);
}

h3 {
  font-size: 1.5rem;
  color: #e0e0e0;
  margin: 1.25rem 0;
}

h4 {
  font-size: 1.25rem;
  color: #a66bff;
  margin: 1rem 0 0.75rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.25rem;
}

/* --- HERO HEADER SECTION --- */
.hero {
  padding: 0;
  display: flex;
  gap: 2rem;
}

.hero .terminal-window {
    margin: 0;
}

.hero-log-terminal {
  flex: 1;
}

#terminal-prompt {
  font-family: 'VT323', monospace;
  color: #a66bff;
  font-size: 1.1rem;
  line-height: 1.2;
  white-space: pre;
  padding: 0;
  margin: 0;
}

#subtitle {
  font-size: 1.3rem;
  display: inline-block;
  margin: 0.5rem 0;
}

.cursor {
  display: inline-block;
  background-color: currentColor;
  width: 10px;
  height: 1.2rem;
  animation: blink 1s step-end infinite;
  margin-left: 4px;
  vertical-align: middle;
}

@keyframes blink {

  from,
  to {
    background-color: transparent;
  }

  50% {
    background-color: currentColor;
  }
}

/* --- BLOG POST STYLES --- */
.post-article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
}

#hero-button {
  cursor: pointer;
  text-decoration: underline;
}

/* --- LIVE LOG STYLES --- */
#live-log-container {
  flex: 1;
  max-height: inherit;
  overflow-y: auto;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: #ddd;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#live-log-container::-webkit-scrollbar {
  display: none;
}

.log-line {
  margin-bottom: 0.25rem;
}

.log-line .success {
  color: #2ecc71;
}

.log-line .error {
  color: #e74c3c;
}

/* --- ABOUT SECTION --- */
#about {
  display: flex;
  gap: 2rem;
  background-color: transparent;
  border: none;
  padding: 0;
}

#about .terminal-window {
    margin: 0;
}

.about-text-container {
  flex: 2;
}

.about-image-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.profile-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 50%;
  filter: grayscale(100%) contrast(150%);
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: -0.25px;
}

.about-text .cta-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: #a66bff;
  transition: color 0.2s ease-in-out, filter 0.2s ease-in-out;
}

.social-links a:hover {
  color: #e0e0e0;
  filter: drop-shadow(0 0 3px #a66bff);
}

.social-links svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* --- MOTIVATION SECTION --- */
.motivation-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.cat-card {
    text-align: center;
    flex-basis: 250px;
}
.cat-card img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #333;
    display: block;
}
.cat-card figcaption {
    margin-top: 0.75rem;
    font-size: 1.2em;
    color: #e0e0e0;
}

/* --- BUTTONS --- */
.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid #a66bff;
  color: #a66bff;
  background: transparent;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.cta-button:hover {
  background: #a66bff;
  color: #0f0f0f;
}

/* --- NEWSLETTER SECTION --- */
#newsletter .newsletter-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}
#newsletter .newsletter-art {
    font-family: 'Share Tech Mono', monospace;
    color: #a66bff;
    white-space: pre;
    line-height: 1.1;
    font-size: 1.2rem;
}
#newsletter h2 {
    font-size: 1.5em;
}
#newsletter .newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
#newsletter input[type="email"] {
    flex-grow: 1;
    background-color: #0f0f0f;
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 0.75rem;
    border-radius: 4px;
    font-family: 'Share Tech Mono', monospace;
}
 #newsletter input[type="email"]:focus {
    outline: none;
    border-color: #a66bff;
    box-shadow: 0 0 5px #a66bff;
 }
#newsletter button {
    background-color: #a66bff;
    color: #0f0f0f;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
#newsletter button:hover {
    background-color: #e0e0e0;
}


/* --- STATUS, BADGES, & MEDIA LOG SECTION --- */
.status-media-log-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.status-media-log-container .terminal-window {
    margin: 0;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#media-log.terminal-window {
    display: flex;
    flex-direction: column;
}

.media-content {
    flex-grow: 1;
}

.badge-container {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.badge-container a, 
.badge-container iframe {
    height: 90px;
    display: flex; 
    align-items: center;
}

.badge-container img {
    height: 100%;
    width: auto;
    border: 0;
}

.badge-container iframe {
    width: 350px;
    border: none;
}

.media-log-list {
    list-style-type: none;
    padding-left: 1rem;
    margin-bottom: 1rem;
}
.media-log-list li::before {
    content: '» ';
    color: #a66bff;
}

.view-all-container {
    text-align: center;
    margin-top: 2rem;
}


/* --- BLOG & PORTFOLIO CARDS --- */
.blog-container,
.portfolio {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.blog-card {
  background-color: #1a1a1a;
  border: 1px solid #333;
  padding: 1.5rem;
  flex: 1 1 calc(33.333% - 1.5rem);
  min-width: 250px;
  display: flex;
  flex-direction: column;
  animation: glitch-light 3s infinite linear;
  border-radius: 8px;
}

.blog-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}

.blog-card a {
  color: #a66bff;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  align-self: flex-start;
}

.blog-card a:hover {
  text-decoration: underline;
}

.project-card {
  background-color: #1a1a1a;
  flex: 1 1 calc(33% - 1rem);
  min-width: 250px;
  height: 180px;
  background-image: repeating-linear-gradient(90deg, rgba(166, 107, 255, 0.5) 1px, transparent 2px);
  animation: glitch-heavy 2s infinite linear;
  border-radius: 8px;
}

@keyframes glitch-light {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-1px, 1px);
  }

  50% {
    transform: translate(1px, -1px);
  }

  75% {
    transform: translate(-1px, -1px);
  }
}

/* Case Studies Grid */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
}

.case-study-card {
  background-color: #1a1a1a;
  border: 1px solid #333;
  padding: 1.5rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.case-study-card:not(.placeholder-card) {
  animation: glitch-light 5s infinite linear;
}

.case-study-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(166, 107, 255, 0.2);
  border-color: #a66bff;
}

.placeholder-card {
  background: repeating-linear-gradient(
    45deg,
    #1a1a1a,
    #1a1a1a 10px,
    #1a0a1a 10px,
    #1a0a1a 20px
  );
  position: relative;
  opacity: 0.9;
  animation: placeholder-pulse 4s infinite ease-in-out;
}

.placeholder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(166, 107, 255, 0.1) 0%, rgba(166, 107, 255, 0.05) 50%, rgba(166, 107, 255, 0.1) 100%);
  z-index: 1;
}

.placeholder-card > * {
  position: relative;
  z-index: 2;
}

.coming-soon {
  position: absolute;
  top: 1.5rem;
  right: -3rem;
  background: #a66bff;
  color: #0f0f0f;
  padding: 0.3rem 3.5rem;
  transform: rotate(45deg);
  font-weight: bold;
  font-size: 0.8rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 10;
  animation: glitch-heavy 2s infinite linear;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes placeholder-pulse {
  0%, 100% {
    opacity: 0.9;
    transform: translateY(0);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-2px);
  }
}

.case-study-card h3 {
  color: #a66bff;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.case-study-card p {
  color: #e0e0e0;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background-color: #2a2a2a;
  color: #a66bff;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid #3a3a3a;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background-color: #3a3a3a;
  transform: translateY(-1px);
}

.case-study-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.case-study-links .cta-button {
  flex: 1;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.case-study-links .cta-button.secondary {
  background-color: transparent;
  border: 1px solid #a66bff;
  color: #a66bff;
}

.case-study-links .cta-button.secondary:hover {
  background-color: rgba(166, 107, 255, 0.1);
}

@media (max-width: 768px) {
  .case-studies-grid {
    grid-template-columns: 1fr;
  }
  
  .case-study-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@keyframes glitch-heavy {

  0%,
  100% {
    transform: translate(0, 0) skew(0);
  }

  25% {
    transform: translate(2px, -2px) skew(-2deg);
  }

  50% {
    transform: translate(-2px, 2px) skew(2deg);
  }

  75% {
    transform: translate(2px, 2px) skew(0);
  }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- ABOUT PAGE STYLES --- */
.bio-text {
  line-height: 1.6;
  color: #e0e0e0;
}

.bio-text p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  padding: 1rem 0;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
  color: #e0e0e0;
  transition: all 0.3s ease;
}

.skills-list li:hover {
  color: #a66bff;
  transform: translateX(5px);
}

.skills-list li::before {
  content: '» ';
  color: #a66bff;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.skills-list li:hover::before {
  color: #e0e0e0;
  transform: translateX(3px);
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
  flex-wrap: wrap;
}

.contact-links a {
  color: #a66bff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border: 1px solid #333;
  border-radius: 4px;
  background-color: rgba(166, 107, 255, 0.1);
}

.contact-links a:hover {
  color: #e0e0e0;
  background-color: rgba(166, 107, 255, 0.2);
  border-color: #a66bff;
  transform: translateY(-2px);
  box-shadow: 0 2px 10px rgba(166, 107, 255, 0.2);
}

/* --- RESPONSIVE DESIGN --- */
@media (min-width: 768px) {
  .status-media-log-container {
    flex-direction: row;
  }
  .left-column {
    flex: 1;
  }
  .status-media-log-container > #media-log {
    flex: 2;
  }
}

@media (max-width: 960px) {

  .hero,
  #about,
  .terminal-window,
  .status-media-log-container,
  #latest-posts,
  #work {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 768px) {

  .hero,
  #about,
  .bio-content {
    flex-direction: column;
    gap: 2rem;
  }
  body::after {
      display: none;
  }
  .navbar {
      top: 0;
  }
  #live-log-container {
    height: 150px;
  }
  .footer-column {
    min-width: 100%;
    text-align: left !important;
  }
  #newsletter .newsletter-content {
      flex-direction: column;
  }
}

/* --- DEPLOYMENTS PAGE SPECIFIC STYLES --- */
.project {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed #333;
}
.project:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
}
.project-links a {
    margin-left: 1rem;
    color: #a66bff;
    text-decoration: none;
}
.project-links a:hover {
    text-decoration: underline;
}
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}
.tech-stack-item {
    background-color: #333;
    color: #e0e0e0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}
.case-study {
    background-color: #0f0f0f;
    border: 1px solid #222;
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 4px;
}

/* --- BLOG LAYOUT STYLES --- */
.container {
    display: flex;
    gap: 2rem;
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

main {
    flex: 3;
}

aside {
    flex: 1;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 0.5rem;
}

.sidebar-list a {
    color: #a66bff;
    text-decoration: none;
}

.sidebar-list a:hover {
    text-decoration: underline;
}

.post-excerpt {
    margin-bottom: 1.5rem;
}

.post-tags {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-badge {
  display: inline-block;
  background-color: #333;
  color: #e0e0e0;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tag-badge:hover {
  background-color: #a66bff;
  color: #0f0f0f;
  text-decoration: none;
}

/* --- BLOG POST SPECIFIC STYLES --- */
.post-article h1 {
    font-size: 2.5em;
    color: #a66bff;
    margin-bottom: 0.5rem;
}
.post-article h2 {
    color: #a66bff;
    font-size: 2em;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}
.post-article h3 {
    color: #e0e0e0;
    font-size: 1.5em;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.post-article p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.post-article a {
    color: #a66bff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s, text-shadow 0.2s;
}
.post-article a:hover {
    color: #e0e0e0;
    text-shadow: 0 0 5px #a66bff;
}
.post-article hr {
    border: none;
    border-top: 1px dashed #333;
    margin: 2.5rem 0;
}
.post-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2rem;
}
.post-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0 2rem;
    border: 1px solid #333;
}
.post-article blockquote {
    border-left: 3px solid #a66bff;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #c5c5c5;
}
.post-article code {
    background-color: #0f0f0f;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Share Tech Mono', monospace;
    color: #a66bff;
}
.post-article pre {
    background-color: #0f0f0f;
    border: 1px solid #333;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
}
.post-article pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    color: #e0e0e0;
}
.newsletter-cta {
    border-top: 1px dashed #333;
    padding-top: 2rem;
    margin-top: 2rem;
}
main.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* --- GALLERY PAGE --- */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
    margin-bottom: 2rem;
}

.profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid #a66bff;
    transition: filter 0.2s ease-in-out;
}

.profile-avatar a:hover img {
    filter: drop-shadow(0 0 5px #a66bff);
}

.profile-info {
    font-family: 'VT323', monospace;
}

.verified-badge {
    width: 28px;
    height: 28px;
    fill: #a66bff;
    animation: badge-glitch 2s infinite linear;
}

@keyframes badge-glitch {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-1px, 1px); }
    50% { transform: translate(1px, -1px); }
    75% { transform: translate(-1px, 1px) skew(-3deg); }
}

.profile-info h1 {
    font-size: 2.5rem;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 1.2rem;
}

.profile-stats span {
    color: #a66bff;
    font-weight: bold;
}

.profile-bio {
    margin-top: 1.5rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: #c5c5c5;
}

.photo-grid {
    column-count: 3;
    column-gap: 1rem;
}

.photo-item {
    margin-bottom: 1rem;
    display: inline-block;
    width: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.photo-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
}

.photo-item:hover .overlay {
    opacity: 1;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex; /* Shown when active */
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 8px;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 1rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'VT323', monospace;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-stats {
        justify-content: center;
    }
    .photo-grid {
        column-count: 2;
    }
}

@media (max-width: 500px) {
    .photo-grid {
        column-count: 1;
    }
}

/* --- CONNECT SECTION --- */
.connect-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
}

.connect-text h2 {
  color: #a66bff;
  margin-bottom: 1rem;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'VT323', monospace;
}

.connect-text p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.connect-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.connect-links .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #2a2a2a;
  border: 1px solid #a66bff;
  color: #e0e0e0;
  transition: all 0.3s ease;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.connect-links .cta-button:hover {
  background-color: #a66bff;
  color: #0f0f0f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(166, 107, 255, 0.3);
}

.connect-links .cta-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ascii-art {
  color: #a66bff;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  line-height: 1.1;
  white-space: pre;
  text-align: center;
  margin: 0 auto;
  animation: glitch-light 3s infinite linear;
  letter-spacing: 0.5px;
  transform: scale(1);
  transform-origin: center;
  min-width: 200px;
}

@media (min-width: 768px) {
  .connect-content {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 3rem;
    padding: 3rem 2rem;
  }
  
  .ascii-art {
    margin: 0 2rem 0 0;
    flex-shrink: 0;
    transform: scale(1.1);
  }
  
  .connect-text {
    flex-grow: 1;
  }
  
  .connect-links {
    justify-content: flex-start;
  }
}

/* Case Study Images */
.case-study .image-container {
  margin: 2rem 0;
  text-align: center;
  cursor: pointer;
}

.case-study .case-study-image {
  max-width: 100%;
  height: auto;
  border: 1px solid #333;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.case-study .case-study-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(166, 107, 255, 0.2);
  border-color: #a66bff;
}

.case-study .image-caption {
  margin-top: 0.5rem;
  color: #999;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  transition: color 0.3s ease;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.show {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border: 2px solid #a66bff;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(166, 107, 255, 0.5);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #a66bff;
  text-decoration: none;
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  max-width: 80%;
  margin: 0 auto;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
}

.lightbox-trigger {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  transition: transform 0.2s ease;
}

.lightbox-trigger:hover {
  transform: translateY(-3px);
}

.lightbox-trigger .image-caption {
  color: #a66bff;
}

