/* ─── Fonts ───────────────────────────────────────────────────────────── */
@font-face {
  font-family: mainFont;
}
@font-face {
  font-family: secondFont;
}

/* ─── Theme Variables ─────────────────────────────────────────────────── */
:root {
  --bg: #111;
  --text: #f2f2f2;
  --link: #ccc;
  --link-hover: #fff;
  --accent: #222;
  --sidebar-bg: var(--accent);
}

html.light-mode {
  --bg: #f9f9f9;
  --text: #111;
  --link: #444;
  --link-hover: #000;
  --accent: #e0e0e0;
  --sidebar-bg: var(--accent);
}

/* ─── Base Styles ─────────────────────────────────────────────────────── */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  transition: background-color 0s, color 0.3s;
  font-size: 18px;
  /* Handle safe areas for mobile devices with notches */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Ensure body extends into safe areas with background color */
html {
  background-color: var(--bg);
  transition: background-color 0s;
}

/* Ensure full coverage including status bar and bottom areas */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    padding-top: max(0px, env(safe-area-inset-top));
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}

/* ─── Layout ───────────────────────────────────────────────────────────── */
.layout {
  display: flex;
  min-height: 100vh;
}

.main {
  margin: 0;
  flex-grow: 1;       /* take remaining space */
  min-width: 0;       /* important to avoid overflow */
}

/* ─── Sidebar ─────────────────────────────────────────────────────────── */
.sidebar {
  width: 220px;
  background-color: var(--sidebar-bg);
  padding: 20px;
  flex-shrink: 0;
  font-family: Consolas, monospace;
  position: relative;
}

/* Disable transitions during initial load and resize */
.sidebar.no-transition {
  transition: none !important;
}

.sidebar.no-transition *:not(.gear-icon),
.sidebar.no-transition .collapse-icon,
.sidebar.no-transition .logo,
.sidebar.no-transition .sidebar-links a span,
.sidebar.no-transition .nav-icon,
.sidebar.no-transition .settings-dropdown {
  transition: none !important;
}

.sidebar.collapsed {
  width: 40px;
  padding: 20px 10px;
}

.sidebar-collapse-btn {
  border: none;
  background: var(--sidebar-bg);
  width: 32px;
  height: 32px;
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  left: 4%;
}

.collapse-icon {
  color: var(--link);
  transition: transform 0.3s ease, color 0.3s ease;
}

.sidebar-collapse-btn:hover .collapse-icon {
  color: var(--link-hover);
}

.sidebar.collapsed .collapse-icon {
  transform: rotate(180deg);
}

.sidebar.collapsed .logo {
  opacity: 0;
  visibility: hidden;
}

.sidebar.collapsed .sidebar-links a span {
  display: none;
}

/* Navigation icons styling - hidden by default */
.nav-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(78%) sepia(0%) saturate(0%) hue-rotate(202deg) brightness(88%) contrast(93%);
  transition: none !important;
  opacity: 0;
  visibility: hidden;
  margin: 0;
}

/* In collapsed state, show only icons and center them */
.sidebar.collapsed .nav-icon {
  opacity: 1;
  visibility: visible;
  transition: none !important;
}

/* Light mode icon colors */
html.light-mode .nav-icon {
  filter: brightness(0) saturate(100%) invert(27%) sepia(0%) saturate(1%) hue-rotate(202deg) brightness(95%) contrast(93%);
}

/* Icon hover effects */
.sidebar.collapsed .sidebar-links a:hover .nav-icon {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(2%) hue-rotate(202deg) brightness(108%) contrast(101%);
}

html.light-mode .sidebar.collapsed .sidebar-links a:hover .nav-icon {
  filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(100%) hue-rotate(202deg) brightness(0%) contrast(100%);
}

/* Initial collapsed state styles applied before page loads to prevent flash */
html.sidebar-collapsed-initial .sidebar {
  width: 80px;
  padding: 20px 10px;
}

html.sidebar-collapsed-initial .sidebar .logo {
  opacity: 0;
  visibility: hidden;
}

html.sidebar-collapsed-initial .sidebar .sidebar-links a span {
  display: none;
}

html.sidebar-collapsed-initial .sidebar .nav-icon {
  opacity: 1;
  visibility: visible;
}

html.sidebar-collapsed-initial .sidebar .collapse-icon {
  transform: rotate(180deg);
}

html.sidebar-collapsed-initial .sidebar .sidebar-links a {
  padding: 1rem 0.5rem;
  text-align: center;
  overflow: hidden;
  justify-content: center;
}

html.sidebar-collapsed-initial .sidebar .settings-dropdown {
  transform: translateX(-50%);
  margin-top: 0;
  z-index: 1001;
}

html.sidebar-collapsed-initial .sidebar .dropdown-menu {
  right: auto;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 200px;
}

html.sidebar-collapsed-initial .sidebar .settings-dropdown.open .dropdown-menu {
  transform: translateX(-50%) translateY(0);
}

/* Keep settings dropdown visible but keep it at top in collapsed state */
.sidebar.collapsed .settings-dropdown {
  position: relative;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  z-index: 1001;
  pointer-events: auto;
  display: flex;
}

/* Adjust dropdown menu position in collapsed state */
.sidebar.collapsed .dropdown-menu {
  right: auto;
  left: 50%;
  min-width: 200px;
}

.sidebar.collapsed .sidebar-links a {
  padding: 1rem 0.5rem;
  text-align: center;
  overflow: hidden;
  justify-content: center;
}

.sidebar h2 {
  font-size: 1.1rem;
  margin-top: 0;
}

.sidebar a {
  display: block;
  color: var(--link);
  text-decoration: none;
  margin: 8px 0;
}

.sidebar a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

.sidebar-links a {
  padding: 1rem 0;
  position: relative;
  display: flex;
  align-items: center;
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.toggle-button,
.hamburger,
.button {
  font-family: Consolas, monospace;
  cursor: pointer;
}

.toggle-button {
  margin-top: 20px;
  padding: 8px 12px;
  font-size: 0.9rem;
  background: none;
  color: var(--link);
  border: 1px solid var(--link);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toggle-button:hover {
  color: var(--link-hover);
  border-color: var(--link-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.theme-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.theme-text {
  font-size: 0.85rem;
  font-weight: 500;
}

.toggle-button:hover .theme-icon {
  transform: scale(1.1);
}

/* ─── Settings Dropdown ──────────────────────────────────────────────── */
.settings-dropdown {
  position: relative;
  margin-top: 20px;
}

.settings-button {
  background: none;
  border: none;
  padding: 12px;
  color: var(--link);
  cursor: pointer;
  font-family: Consolas, monospace;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
}

.gear-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  color: currentColor;
  transition: transform 0.3s ease;
}

.settings-dropdown.open .gear-icon {
  transform: rotate(90deg);
}


.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--accent);
  border: 2px solid var(--link);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  min-width: 200px;
  max-width: calc(100vw - 3rem);
}

.settings-dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.dropdown-item {
  padding: 1rem;
}

.dropdown-label {
  font-family: Consolas, monospace;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.75rem;
}

.theme-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.theme-option {
  background: none;
  border: 1px solid var(--link);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  cursor: pointer;
  font-family: Consolas, monospace;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  min-height: 44px;
  line-height: 1.2;
}

.theme-option:hover {
  background: var(--bg);
  border-color: var(--link-hover);
  transform: translateX(3px);
}

.theme-option:focus {
  outline: 2px solid var(--link-hover);
  outline-offset: 1px;
  background: var(--bg);
}

.theme-option[aria-checked="true"] {
  background: var(--link);
  color: var(--bg);
  border-color: var(--link);
}

.theme-option[aria-checked="true"]:hover {
  background: var(--link-hover);
  border-color: var(--link-hover);
}

.theme-option-icon {
  font-size: 1rem;
  display: inline-block;
  min-width: 1.2rem;
}

.theme-option-text {
  font-weight: 500;
}

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

.dropdown-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--link);
  background: var(--bg);
}

.keyboard-hint {
  font-size: 0.75rem;
  color: var(--text);
  opacity: 0.7;
  font-family: Consolas, monospace;
  font-style: italic;
  text-align: center;
  display: block;
}

/* ─── Enhanced Focus Indicators ──────────────────────────────────────── */
.settings-button:focus-visible {
  outline: none;
}

.theme-option:focus-visible {
  outline: 3px solid var(--link-hover);
  outline-offset: 1px;
  box-shadow: inset 0 0 0 1px var(--bg), inset 0 0 0 4px var(--link-hover);
}

/* ─── High Contrast Mode Support ─────────────────────────────────────── */
@media (prefers-contrast: high) {
  .settings-button,
  .theme-option {
    border-width: 3px;
  }

  .settings-button:focus,
  .theme-option:focus {
    outline-width: 4px;
  }
}

/* ─── Reduced Motion Support ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .gear-icon,
  .dropdown-menu,
  .theme-option {
    transition: none;
  }
  
  .settings-dropdown.open .gear-icon {
    transform: rotate(90deg);
    transition: none;
  }
}

.hamburger {
  display: none;
}

.button-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 0;
}

.button-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 14px;
}

.button {
  flex-grow: 1;
  margin: 2px;
  border: 1px solid #ddd;
  background-color: white;
  color: #ddd;
  padding: 6px 14px 4px 14px;
  text-align: center;
  text-decoration: none;
  font-size: 1.25rem;
  min-width: 125px;
}

.button:hover {
  background-color: #1B0000;
  color: white;
  border: 1px solid black;
}

/* ─── Typography ──────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: Consolas, monospace;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.typewriter {
  font-family: Consolas, monospace;
  font-size: 24px;
  white-space: pre-wrap;
  margin-bottom: 0.5em;
}

.typewriter.header {
  font-size: 36px;
  margin-bottom: 1em;
}

.typewriter.fast {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
}

.bottom-alignment {
  font-size: 2rem;
  line-height: 10px;
  padding: 10px 0 0 0;
}

/* ─── Containers ──────────────────────────────────────────────────────── */
.top-container,
.bottom-container,
.left-container {
  max-width: 80%;
  margin: auto;
  margin-bottom: 100px;
  padding: 0 50px 0 0;
  box-sizing: border-box;
  text-align: justify;
}


.bottom-container {
  margin-bottom: 120px;
}

/* ─── Post List ───────────────────────────────────────────────────────── */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-item {
  display: flex;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ccc;
  align-items: center;
  gap: 1rem;
}

.post-column {
  flex: 1;
  word-break: break-word;
}

.post-column.title a {
  color: var(--link);
  text-decoration: none;
}

.post-column.title a:hover {
  text-decoration: underline;
}

.post-list li {
  margin: 10px 0 0 0;
}

.post-list li a {
  font-style: italic;
  text-decoration: none;
  color: #333;
}

/* ─── Images / Carousel ──────────────────────────────────────────────── */
.carousel-container {
  overflow-x: scroll;
  white-space: nowrap;
  width: 100%;
}

.carousel {
  display: inline-block;
}

.carousel img {
  margin: 5px;
  display: inline-block;
  width: auto;
  height: 350px;
  vertical-align: middle;
}

img {
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

img:hover {
  filter: grayscale(0%);
}

/* ─── Logo ───────────────────────────────────────────────────────────── */
.logo {
  margin: 20px;
  /*margin-bottom: 20px;*/
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 3px var(--link));
}

/* ─── Mobile Logo ─────────────────────────────────────────────────────── */
.mobile-logo {
  display: none;
}

/* ─── Rotating Cube ──────────────────────────────────────────────────── */
.rotating-cube {
  perspective: 200px;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cube {
  position: relative;
  width: 50px;
  height: 50px;
  transform-style: preserve-3d;
  animation: rotate-cube 8s infinite linear;
}

.face {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 1px solid var(--link);
  opacity: 0.8;
}

.front {
  background: rgba(204, 204, 204, 0.3);
  transform: rotateY(0deg) translateZ(25px);
}

.back {
  background: rgba(153, 153, 153, 0.3);
  transform: rotateY(180deg) translateZ(25px);
}

.right {
  background: rgba(102, 102, 102, 0.3);
  transform: rotateY(90deg) translateZ(25px);
}

.left {
  background: rgba(170, 170, 170, 0.3);
  transform: rotateY(-90deg) translateZ(25px);
}

.top {
  background: rgba(221, 221, 221, 0.3);
  transform: rotateX(90deg) translateZ(25px);
}

.bottom {
  background: rgba(119, 119, 119, 0.3);
  transform: rotateX(-90deg) translateZ(25px);
}

@keyframes rotate-cube {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: rotateX(90deg) rotateY(90deg);
  }
  50% {
    transform: rotateX(180deg) rotateY(180deg);
  }
  75% {
    transform: rotateX(270deg) rotateY(270deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}



/* Theme-aware cube colors */
html.light-mode .front {
  background: rgba(68, 68, 68, 0.3);
}

html.light-mode .back {
  background: rgba(102, 102, 102, 0.3);
}

html.light-mode .right {
  background: rgba(136, 136, 136, 0.3);
}

html.light-mode .left {
  background: rgba(85, 85, 85, 0.3);
}

html.light-mode .top {
  background: rgba(51, 51, 51, 0.3);
}

html.light-mode .bottom {
  background: rgba(170, 170, 170, 0.3);
}


/* ─── Gallery ────────────────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.photo-container {
  overflow: hidden;
}

.photo-container img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(0%);
}

.photo-container img:hover {
  filter: grayscale(20%);
}

/* ─── Mobile Dropdown Improvements ──────────────────────────────────── */

/* ─── Responsive Breakpoints ─────────────────────────────────────────── */
@media (max-width: 1480px) {
    .top-container,
    .bottom-container,
    .left-container {
      max-width: 80%;
    }
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .main {
    margin: 0;
    width: 100%;
    padding: 0;
  }

  h1.typewriter.header {
    margin-top: 0.5em;
  }

  .sidebar {
    width: 100% !important;
    position: relative;
    background-color: transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 30px !important;
    box-sizing: border-box;
    transition: none !important;
  }
  
  /* Hide sidebar collapse functionality on mobile */
  .sidebar-collapse-btn {
    display: none !important;
  }
  
  /* Reset any collapsed state on mobile */
  .sidebar.collapsed {
    width: 100% !important;
    padding: 30px !important;
  }
  
  .sidebar.collapsed .logo,
  .sidebar.collapsed .sidebar-links a span,
  .sidebar.collapsed .settings-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .logo {
    display: none;
  }
  
  .mobile-logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    height: 100%;
    margin: 0;
    padding: 0 0 0 1rem;
  }
  
  .mobile-cube {
    perspective: 200px !important;
    width: 48px !important;
    height: 48px !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .mobile-cube .cube {
    width: 48px !important;
    height: 48px !important;
  }
  
  .mobile-cube .face {
    width: 48px !important;
    height: 48px !important;
    border: 1px solid var(--link) !important;
  }
  
  .mobile-cube .face.front {
    transform: rotateY(0deg) translateZ(24px) !important;
  }
  
  .mobile-cube .face.back {
    transform: rotateY(180deg) translateZ(24px) !important;
  }
  
  .mobile-cube .face.right {
    transform: rotateY(90deg) translateZ(24px) !important;
  }
  
  .mobile-cube .face.left {
    transform: rotateY(-90deg) translateZ(24px) !important;
  }
  
  .mobile-cube .face.top {
    transform: rotateX(90deg) translateZ(24px) !important;
  }
  
  .mobile-cube .face.bottom {
    transform: rotateX(-90deg) translateZ(24px) !important;
  }

  
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    font-size: 16px;
    background: none;
    border: none;
    color: var(--link);
    padding: 0.5rem;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border-radius: 4px;
    min-height: 44px;
    gap: 0.5rem;
    line-height: 1;
  }


  .hamburger:hover {
    background-color: transparent;
    color: var(--link-hover);
  }
  
  .hamburger:active,
  .hamburger:focus {
    background-color: transparent !important;
  }

  .hamburger::after {
    content: "▼";
    font-size: 14px;
    transition: transform 0.3s ease;
  }

  .hamburger.active::after {
    transform: rotate(180deg);
  }

  .sidebar-links {
    display: none;
    flex-direction: column;
    background-color: var(--sidebar-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10;
  }

  .sidebar-links.show {
    display: flex;
    max-height: 600px;
    animation: slideDown 0.3s ease;
  }

  .sidebar-links a {
    padding: 2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease, padding-left 0.2s ease;
    font-size: 14px;
    margin: 0rem;
  }

  .sidebar-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
  }

  .sidebar-links a:last-child {
    border-bottom: none;
  }

  .toggle-button {
    margin: 1rem 1.5rem;
    padding: 0.75rem 1rem;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
  }

  .toggle-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .settings-dropdown {
    margin: 0;
    position: relative;
    flex-shrink: 0;
  }
  
  .settings-button {
    background: none;
    width: auto;
    justify-content: center;
    padding: 0 0 0 0.5rem;
    font-size: 14px;
    border: none;
    min-height: 44px;
  }
  
  .settings-button:active,
  .settings-button:focus {
    background: none !important;
  }
  
  .gear-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease !important;
  }
  
  .settings-dropdown.open .gear-icon {
    transform: rotate(90deg) !important;
  }
  
  
  .theme-option {
    font-size: 14px;
    padding: 0.75rem;
    min-height: 44px;
    line-height: 1.2;
  }
  
  .theme-option-icon {
    width: 14px;
    height: 14px;
  }
  
  .dropdown-item {
    padding: 1rem;
  }
  
  .dropdown-footer {
    padding: 0.75rem;
  }
  
  .keyboard-hint {
    font-size: 0.75rem;
  }

  .top-container,
  .bottom-container,
  .left-container {
    max-width: 90%;
    margin: 2rem auto;
    padding: 0 1rem;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ─── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--link-accent);
  border-top: 2px solid var(--text);
  font-family: Consolas, monospace;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--text);
  padding-bottom: 0.25rem;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--link);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s ease;
  display: block;
  padding: 0.2rem 0;
}

.footer-links a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--text);
  background: var(--bg);
  padding: 1rem 2rem;
}

.footer-copyright {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-copyright p {
  margin: 0.25rem 0;
  color: var(--text);
  font-size: 0.9rem;
}

.footer-subtitle {
  color: var(--link);
  font-style: italic;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }
  
  .footer-bottom {
    padding: 1rem;
  }
  
  .footer-copyright p {
    font-size: 0.8rem;
  }
}
