/* ==========================================
   RUDOLF - Minimal Black & White Design System
   ========================================== */

/* CSS Variables for Responsive Design */
:root {
  --container-padding: clamp(1rem, 4vw, 2rem);
  --section-spacing: clamp(2rem, 8vw, 5rem);
  --section-padding: clamp(3rem, 12vw, 5rem);
  --font-size-base: clamp(14px, 2.5vw, 16px);
  --font-size-h1: clamp(2rem, 8vw, 4rem);
  --font-size-h2: clamp(1.5rem, 6vw, 2.5rem);
  --font-size-h3: clamp(1.125rem, 4vw, 1.5rem);
  --border-radius: clamp(0.25rem, 1vw, 0.5rem);
  --border-radius-lg: clamp(0.5rem, 2vw, 1rem);
  --shadow-blur: clamp(4px, 2vw, 10px);
  --navbar-height: clamp(3rem, 8vh, 4rem);
  --card-padding: clamp(1.5rem, 4vw, 2rem);
  --gap-sm: clamp(0.5rem, 2vw, 1rem);
  --gap-md: clamp(1rem, 3vw, 2rem);
  --gap-lg: clamp(1.5rem, 4vw, 3rem);
}

/* Utility Classes */
.section-padding {
  padding: var(--section-padding) 0;
}

.text-center {
  text-align: center;
}

.hero-title {
  font-size: var(--font-size-h1);
  font-weight: 700;
  margin-bottom: var(--gap-lg);
  letter-spacing: -0.025em;
  color: #ffffff;
}

.hero-description {
  font-size: 1.25rem;
  opacity: 0.8;
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  scroll-behavior: smooth;
  line-height: 1.6;
  font-size: var(--font-size-base);
}

/* Font Awesome elements should not inherit monospace font */
.fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands, .fa,
i.fas, i.far, i.fab, i.fa-solid, i.fa-regular, i.fa-brands, i.fa,
[class*="fa-"], i[class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  display: inline-block !important;
  line-height: 1 !important;
}

/* Font Awesome fallback - show nothing if FA fails to load */

body {
  background: #000000;
  color: #ffffff;
  font-size: var(--font-size-base);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: var(--font-size-h1); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: var(--font-size-h2); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--font-size-h3); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Links */
a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #cccccc;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: 5rem 0;
}

/* Navigation - Terminal Style */
.navbar {
  background: rgba(0, 0, 0, 0.1) !important;
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s ease !important;
  height: var(--navbar-height) !important;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.nav-brand {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: #ffffff;
  position: relative;
}

.nav-brand::after {
  content: '_';
  color: #ffffff;
  animation: blink 1s infinite;
  font-weight: bold;
  margin-left: 1px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.nav-admin {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding-left: 1rem;
  border-left: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

.btn {
  padding: 0.5rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
}

.btn:hover {
  border-color: #ffffff;
  border-width: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
  border-radius: 0;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.nav-menu {
  display: none !important;
}

.nav-link {
  position: relative;
  font-weight: 500;
  text-transform: none;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  color: #ffffff;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0;
}

.nav-link::before {
  content: '$ ';
  color: #cccccc;
  font-weight: bold;
  margin-right: 0.5rem;
}

.nav-link:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.nav-link:hover::before {
  color: #ffffff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* Mobile Menu Toggle Button - Now primary navigation for all devices */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  padding: 0.75rem;
  position: relative;
  z-index: 1002;
  border-radius: 0;
  transition: all 0.3s ease;
  touch-action: manipulation;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: bold;
}

.mobile-menu-toggle:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle.active {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
}

/* Hamburger Icon */
.hamburger-line {
  display: block;
  width: 1.25rem;
  height: 0.125rem;
  background: #ffffff;
  margin: 0.25rem 0;
  transition: all 0.3s ease;
  border-radius: 0.0625rem;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(0.375rem, 0.375rem);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.375rem, -0.375rem);
}

/* Menu text in toggle button */
.menu-text {
  margin-top: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(0.5rem);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Content - Terminal Style */
.mobile-menu-content {
  background: #000000;
  border: 2px solid #ffffff;
  border-radius: 8px;
  width: 95%;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  position: relative;
}

.mobile-menu-content::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 15px;
  right: 15px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: scale(1) translateY(0);
  animation: terminal-boot 0.5s ease-out;
}

@keyframes terminal-boot {
  0% { opacity: 0; transform: scale(0.8) translateY(30px); }
  50% { opacity: 1; transform: scale(1.05) translateY(-5px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes terminal-type {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Mobile Menu Header - Terminal Style */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(43, 43, 43, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 1);
  position: relative;
}

.mobile-menu-header::before {
  content: 'rudolf@terminal:~$ ';
  position: absolute;
  left: 1.5rem;
  top: 0.5rem;
  font-size: 0.75rem;
  color: #ffffff;
  opacity: 0.7;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.mobile-menu-title {
  font-size: 1rem;
  font-weight: 400;
  color: #ffffff;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  margin-top: 1rem;
  position: relative;
}

.terminal-cursor {
  color: #ffffff;
  animation: blink 1s infinite;
  font-weight: bold;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Close Button - Terminal Style */
.mobile-menu-close {
  background: #ff0000;
  border: 2px solid #ff4444;
  color: #ffffff;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.mobile-menu-close:hover {
  background: #ff4444;
  border-color: #ff6666;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
  transform: scale(1.05);
}

.close-line {
  display: none; /* Hide the X lines */
}

.mobile-menu-close::before {
  content: '×';
  font-weight: bold;
}

/* Mobile Menu Navigation - Terminal Style */
.mobile-menu-nav {
  padding: 1.5rem 0;
}

.mobile-menu-link {
  display: block;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 1.5rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  animation: terminal-type 0.5s ease-out forwards;
}

.mobile-menu-link::before {
  content: '$ ';
  color: #cccccc;
  font-weight: bold;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: #ffffff;
  color: #ffffff;
  transform: translateX(10px);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.mobile-menu-link:hover::before,
.mobile-menu-link:focus::before {
  color: #ffffff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.mobile-menu-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  margin: 1rem 1.5rem;
  position: relative;
}
.mobile-menu-divider::before {
  content: '────────────────────';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  color: #666666;
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.mobile-menu-divider::before {
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.mobile-menu-icon {
  display: none; /* Hide icons in terminal style */
}

/* Terminal Console Easter Eggs */
.terminal-console {
  padding: 1rem 1.5rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.85rem;
  color: #ffffff;
}

.console-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.console-prompt {
  color: #cccccc;
  margin-right: 0.5rem;
  font-weight: bold;
}

.console-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.85rem;
  outline: none;
  caret-color: #ffffff;
}

.console-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.console-output {
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.8rem;
  line-height: 1.4;
}

.console-line {
  margin-bottom: 0.5rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.console-command {
  color: #cccccc;
}

.console-response {
  color: #ffffff;
  margin-left: 1rem;
}

.console-error {
  color: #ff6b6b;
  margin-left: 1rem;
}

.mobile-menu-divider {
  height: 0.0625rem;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 1.5rem;
}

/* Mobile Menu - Show on mobile, hide on desktop */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    display: none;
  }

  .nav-admin {
    display: none;
  }

  /* Mobile search styles */
  .search-inputs {
    flex-direction: column;
    gap: 0.75rem;
  }

  .search-field {
    min-width: auto;
  }

  .search-results {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .search-section {
    padding: 1.5rem;
  }

  .hashtag-select-btn {
    padding: 1rem 2.5rem 1rem 1rem;
    font-size: 0.9rem;
  }

  .hashtag-option {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .custom-dropdown-trigger {
    padding: 1rem 2.5rem 1rem 1rem;
    font-size: 0.9rem;
  }

  .custom-dropdown-option {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

/* Mobile menu is now available on all devices */

/* Matrix Background */
.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.matrix-bg canvas {
  display: block;
  opacity: 0.5;
}

.matrix-bg-blur canvas {
  filter: blur(1px);
  opacity: 0.3;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  opacity: 0.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  color: #000000;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 0.125rem solid #ffffff;
}

.hero-cta:hover {
  background: transparent;
  color: #ffffff;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator div {
  width: 0.125rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 auto;
  border-radius: 0.0625rem;
}

/* Skills Section */
.skills {
  background: rgba(255, 255, 255, 0.02);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap-md);
  margin-top: var(--section-spacing);
  width: 100%;
}

.skill-card {
  background: rgba(255, 255, 255, 0.03);
  border: 0.0625rem solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: var(--card-padding);
  text-align: center;
  transition: all 0.3s ease;
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
}

.skill-card:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.skill-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.skill-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-description {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.skill-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.skill-tech span {
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.skill-tech span:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Contact Section */
.contact-card {
  max-width: 500px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 0.0625rem solid rgba(255, 255, 255, 0.08);
  border-radius: 0.25rem;
  padding: 3rem;
  text-align: center;
}

.contact-icon {
  width: 3.75rem;
  height: 3.75rem;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-description {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  color: #000000;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 0.125rem solid #ffffff;
}

.contact-cta:hover {
  background: transparent;
  color: #ffffff;
}

/* Admin Panel Styles */
.admin-dashboard {
  padding: 2rem 0;
}

/* Font Awesome Icons for Admin */
/* Font Awesome Icons Fix - Ultimate Priority */
.fas:before,
.far:before,
.fab:before,
.fa-solid:before,
.fa-regular:before,
.fa-brands:before,
i.fas:before,
i.far:before,
i.fab:before,
i.fa-solid:before,
i.fa-regular:before,
i.fa-brands:before,
.fa:before,
i.fa:before,
[class*="fa-"]:before,
i[class*="fa-"]:before {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-feature-settings: normal !important;
  font-variation-settings: normal !important;
  display: inline-block !important;
  line-height: 1 !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
}

/* Force display for all FA icons */
.fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands, .fa,
i.fas, i.far, i.fab, i.fa-solid, i.fa-regular, i.fa-brands, i.fa {
  display: inline-block !important;
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Override any conflicting CSS */
* [class*="fa-"],
* i[class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

.admin-dashboard i[class*="fa-"] {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.admin-header {
  margin-bottom: 3rem;
}

.admin-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.admin-header p {
  font-size: 1.125rem;
  opacity: 0.8;
}

.admin-section {
  margin-bottom: 4rem;
}

.admin-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.admin-card {
  background: rgba(255, 255, 255, 0.03);
  border: 0.0625rem solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: var(--card-padding);
  transition: all 0.3s ease;
}

.admin-card:hover {
  transform: translateY(-0.125rem);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.admin-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-card-header i {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  width: 2rem;
  text-align: center;
}

.admin-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.admin-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.admin-metric-label {
  font-size: 0.875rem;
  opacity: 0.7;
}

.admin-metric-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.admin-progress {
  width: 100%;
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.admin-progress-bar {
  height: 100%;
  border-radius: 0.25rem;
  transition: width 0.3s ease;
}

.admin-progress-bar.cpu { background: #3b82f6; }
.admin-progress-bar.memory { background: #10b981; }
.admin-progress-bar.disk { background: #8b5cf6; }

.admin-stats {
  font-size: 0.875rem;
  opacity: 0.7;
  line-height: 1.5;
}

.admin-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.admin-content-card {
  background: rgba(255, 255, 255, 0.03);
  border: 0.0625rem solid rgba(255, 255, 255, 0.08);
  border-radius: 0.25rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.admin-content-card:hover {
  transform: translateY(-0.125rem);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.admin-content-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
}

.admin-content-icon i:before,
.admin-content-icon .fas:before,
.admin-content-icon .far:before,
.admin-content-icon .fab:before {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-weight: 900 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.admin-content-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.admin-content-desc {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Admin Forms */
.admin-form {
  max-width: 800px;
  margin: 0 auto;
}

.admin-form-card {
  background: rgba(255, 255, 255, 0.03);
  border: 0.0625rem solid rgba(255, 255, 255, 0.08);
  border-radius: 0.25rem;
  padding: 2rem;
}

.admin-form-group {
  margin-bottom: 2rem;
}

.admin-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.admin-form-control {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.admin-form-control:focus {
  outline: none;
  border-color: #cccccc;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(204, 204, 204, 0.1);
}

.admin-form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

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

.admin-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* Admin Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-table-actions .admin-btn i:before,
.admin-table-actions .admin-btn .fas:before,
.admin-table-actions .admin-btn .far:before,
.admin-table-actions .admin-btn .fab:before {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-weight: 900 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.admin-btn {
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
}

.admin-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.admin-btn-primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.admin-btn-primary:hover {
  background: transparent;
  color: #ffffff;
}

.admin-btn-danger {
  border-color: #ef4444;
  color: #ef4444;
}

.admin-btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Admin Pagination */
.admin-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.admin-pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.admin-pagination-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-pagination-link.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Main Pages Styles */
.main-page {
  padding: 2rem 0;
}

.main-header {
  text-align: center;
  margin-bottom: 4rem;
}

.main-header h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.main-header p {
  font-size: 1.25rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: clamp(2rem, 8vw, 4rem);
}

/* Search Section */
.search-section {
  background: rgba(255, 255, 255, 0.03);
  border: 0.0625rem solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 3rem;
}

.search-form {
  width: 100%;
}

.search-inputs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.search-field {
  flex: 1;
  min-width: 200px;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* Simple Hashtag Select */
.hashtag-select {
  position: relative;
  width: 100%;
  z-index: 10;
}

.hashtag-select-btn {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  position: relative;
  z-index: 10;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.hashtag-select-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.hashtag-select-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
  border-color: rgba(255, 255, 255, 0.6);
}

.hashtag-select-btn.active {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.hashtag-arrow {
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease;
  font-size: 0.875rem;
  pointer-events: none;
}

.hashtag-select-btn.active .hashtag-arrow {
  transform: rotate(180deg);
  color: #ffffff;
}

.hashtag-options {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  max-height: 250px;
  overflow-y: auto;
  z-index: 10000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: none;
  pointer-events: auto;
}

.hashtag-option {
  padding: 0.875rem 1rem;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1001;
}

.hashtag-option:last-child {
  border-bottom: none;
}

.hashtag-option:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}

.hashtag-option:active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
}

.hashtag-option.selected {
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
  color: #ffffff;
}

.hashtag-option.selected::before {
  content: '✓';
  margin-right: 0.75rem;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
}

/* Scrollbar styling */
.hashtag-options::-webkit-scrollbar {
  width: 8px;
}

.hashtag-options::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.hashtag-options::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hashtag-options::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}


.search-input:focus,
.search-select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-btn {
  padding: 0.875rem 1.5rem;
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.search-btn:hover {
  background: transparent;
  color: #ffffff;
}

.search-results {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.search-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.clear-search {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.clear-search:hover {
  color: #ffffff;
}

/* Responsive Images in Posts */
.post-content img,
.post-excerpt img {
  max-width: 100% !important;
  height: auto !important;
  width: auto !important;
  display: block;
  margin: 1rem auto;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.post-image img {
  width: 100%;
  height: auto;
  max-height: clamp(12rem, 25vh, 20rem);
  object-fit: cover;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.post-card {
  background: rgba(255, 255, 255, 0.03);
  border: 0.0625rem solid rgba(255, 255, 255, 0.08);
  border-radius: 0.25rem;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.post-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-title a {
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #cccccc;
}

.post-excerpt {
  opacity: 0.8;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.post-meta {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-date {
  opacity: 0.6;
  font-size: 0.875rem;
}

.post-link {
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.post-link:hover {
  color: #cccccc;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: clamp(2rem, 8vw, 4rem);
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 0.0625rem solid rgba(255, 255, 255, 0.08);
  border-radius: 0.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.project-image {
  height: 200px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.7;
}

.project-content {
  padding: 2rem;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.project-description {
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.project-tech span {
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-link:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateX(0.25rem) scale(1.05);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.project-link::after {
  content: "→";
  transition: transform 0.3s ease;
}

.project-link:hover::after {
  transform: translateX(0.25rem);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
}

.empty-state-icon {
  font-size: 4rem;
  opacity: 0.5;
  margin-bottom: 2rem;
}

.empty-state-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.empty-state-description {
  font-size: 1.125rem;
  opacity: 0.7;
  max-width: 500px;
  margin: 0 auto;
}

/* Fix for duplicate headers */
.admin-dashboard .navbar,
.admin-dashboard nav {
  display: none !important;
}

.admin-dashboard .admin-header {
  margin-top: 0; /* Navbar is not fixed anymore */
}

/* Footer */
.footer {
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0;
  text-align: center;
}

.footer-content p {
  opacity: 0.6;
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Responsive Design */
@media (min-width: 1024px) {
  /* Large screens */
  .container {
    max-width: 1200px;
  }

  .hero-title {
    font-size: clamp(4rem, 10vw, 8rem);
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
  }

  /* Post content - desktop layout */
  .post-content {
    max-width: 80ch;
    margin: 0 0 var(--section-spacing) 4rem;
    font-size: 1.15rem;
    line-height: 1.9;
    text-align: justify;
    hyphens: auto;
    padding: 0 3rem 0 0;
    border-left: 4px solid rgba(255, 255, 255, 0.08);
    border-right: 4px solid rgba(255, 255, 255, 0.08);
    padding-left: 4rem;
    padding-right: 4rem;
    color: #00ff88 !important;
  }

  .post-content p {
    margin-bottom: 1.75rem;
  }

  .post-content h1,
  .post-content h2,
  .post-content h3,
  .post-content h4,
  .post-content h5,
  .post-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  /* Medium screens (tablets landscape, small desktops) */
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
  }

  .admin-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 320px) {
  /* Very small devices */
  .container {
    padding: 0 0.75rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 10vw, 3.5rem);
  }

  .project-tech-tag,
  .skill-tech span {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .nav-brand {
    font-size: 1.25rem;
  }

  .footer-content p {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  /* Extra small devices (phones) */
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 6rem 0 3rem;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2rem, 12vw, 4rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.25rem);
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  section {
    padding: 2rem 0;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skill-card {
    padding: 1.5rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 6vw, 3rem);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 6vw, 3rem);
  }

  .post-card, .project-card {
    padding: clamp(1rem, 4vw, 1.5rem);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
  }

  .post-title, .project-title {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
  }

  .post-excerpt, .project-description {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.5;
  }

  .project-card, .post-card {
    padding: 1.5rem;
  }

  .project-tech-section {
    margin-bottom: 1.5rem;
  }

  .project-tech-tags {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .project-tech-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
  }

  .admin-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .admin-card {
    padding: 1.5rem;
  }

  .admin-form-card {
    padding: 1.5rem;
  }

  .admin-table {
    font-size: 0.8rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.75rem 0.5rem;
  }

  /* Touch-friendly buttons */
  .btn, .admin-btn, .project-link, .post-read-more {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }

  /* Mobile menu styles are now handled by the new mobile menu system */

  /* Improve readability */
  .project-description,
  .post-excerpt {
    line-height: 1.6;
    font-size: 0.95rem;
  }

  /* Better spacing for mobile forms */
  .admin-form-group {
    margin-bottom: 1.5rem;
  }

  .admin-form-control {
    font-size: 1rem;
    padding: 0.875rem;
  }
}

@media (max-width: 768px) {
  /* Tablets and small screens */
  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu {
    display: none;
  }

  .mobile-menu.show {
    display: block;
  }

  /* Mobile nav-link styles */
  .nav-link {
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-link:hover {
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
  }

  .hero {
    padding: 8rem 0 4rem;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2.5rem, 15vw, 5rem);
  }

  .container {
    padding: 0 1.5rem;
  }

  section {
    padding: 3rem 0;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skill-card {
    padding: 2rem;
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
  }

  .project-card, .post-card {
    padding: 1.75rem;
  }

  .project-tech-section {
    margin-bottom: 1.75rem;
  }

  .project-tech-tags {
    gap: 0.75rem;
  }

  .project-tech-tag {
    font-size: 0.8rem;
  }

  .admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
  }

  .admin-card {
    padding: 1.75rem;
  }

  .admin-form-card {
    padding: 1.75rem;
  }

  .admin-table {
    font-size: 0.875rem;
  }
}


/* Breadcrumb Navigation */
.breadcrumb {
  margin-bottom: var(--gap-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.breadcrumb-nav {
  min-width: 0;
}

.breadcrumb-list {
  flex-wrap: nowrap;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .breadcrumb {
    font-size: 0.875rem;
  }

  .breadcrumb-current {
    display: none; /* Hide current page on mobile to save space */
  }

  .breadcrumb-separator:last-of-type {
    display: none; /* Hide last separator when current is hidden */
  }
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-wrap: wrap;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #ffffff;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 var(--gap-sm);
}

.breadcrumb-current {
  color: #ffffff;
  font-weight: 500;
}

/* Post/Project Detail Styles */
.post-header, .project-header {
  margin-bottom: var(--gap-lg);
}

.post-title, .project-title {
  font-size: var(--font-size-h2);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--gap-md);
  line-height: 1.2;
}

.post-meta, .project-meta {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--gap-md);
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

.post-meta i, .project-meta i {
  margin-right: var(--gap-sm);
}

.post-excerpt {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

.post-content, .project-content {
  max-width: 100%;
  margin-bottom: var(--section-spacing);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  font-size: 1.125rem;
}

/* Post content - improved readability */
.post-content {
  max-width: 75ch;
  margin: 0 0 var(--section-spacing) 2rem;
  text-align: justify;
  color: #00ff88 !important;
  line-height: 1.7;
  font-size: 1.125rem;
  font-weight: 400;
  hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 0 2rem 0 0;
  border-left: 3px solid rgba(255, 255, 255, 0.1);
  border-right: 3px solid rgba(255, 255, 255, 0.1);
  padding-left: 3rem;
  padding-right: 3rem;
}

/* Typography improvements for post content */
.post-content p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #ffffff;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-content h1 { font-size: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 0.5rem; }
.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.post-content blockquote {
  border-left: 4px solid #e5e7eb;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #00ff88;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.post-content code {
  background: rgba(0, 0, 0, 0.3);
  color: #00ff88;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
}

.post-content pre {
  background: rgba(0, 0, 0, 0.5);
  color: #00ff88;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.5;
}

.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

.post-content a {
  color: #00d4ff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.post-content a:hover {
  color: #00ff88;
  border-bottom-color: #00ff88;
}

.post-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  margin: 3rem 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.post-content th,
.post-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-content th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: #ffffff;
}

.post-content td {
  color: #00ff88 !important;
}

/* Mobile responsive images */
@media (max-width: 768px) {
  .post-content img,
  .post-excerpt img,
  .project-content img {
    max-width: 100% !important;
    height: auto !important;
    margin: 0.5rem 0;
    border-radius: var(--border-radius);
  }

  .post-image img {
    max-height: clamp(8rem, 20vh, 12rem);
  }

  .post-tags {
    gap: 0.375rem;
  }

  .post-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  /* Mobile post content - optimized for small screens */
  .post-content {
    max-width: 100%;
    margin: 0 0 var(--gap-lg) 0;
    padding: 0 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    border-left: none;
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    color: #00ff88 !important;
  }

  .post-content h1 { font-size: 1.75rem; }
  .post-content h2 { font-size: 1.5rem; }
  .post-content h3 { font-size: 1.25rem; }

  /* Mobile post header improvements */
  .post-header {
    margin-bottom: var(--gap-md);
  }

  .post-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: var(--gap-sm);
  }

  .post-meta {
    font-size: 0.875rem;
    margin-bottom: var(--gap-md);
  }

  .post-excerpt {
    font-size: 1rem;
    margin-bottom: var(--gap-md);
  }

  /* Better mobile text handling */
  .post-content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 1.25rem;
  }

  .post-content li {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Fix container overflow issues */
  .container {
    overflow-x: hidden;
  }

  /* Mobile post images */
  .post-content img,
  .post-excerpt img,
  .post-image img {
    max-width: 100% !important;
    height: auto !important;
    margin: 1rem 0;
    border-radius: var(--border-radius);
  }

  .post-content blockquote {
    padding: 1rem;
    margin: 1.5rem 0;
    color: #00ff88 !important;
  }

  .post-content pre {
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 0.85rem;
  }
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  max-width: 56rem;
  margin: 0 auto;
}

.project-image {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.project-body {
  padding: var(--card-padding);
}

.project-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--gap-md);
  flex-wrap: wrap;
  gap: var(--gap-sm);
}


.project-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--gap-lg);
  line-height: 1.6;
}

.project-tech-section {
  margin-bottom: var(--gap-lg);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-tech-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--gap-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  align-items: center;
}

.project-tech-tag {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
  color: #000000;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-tech-tag:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.project-actions {
  display: flex;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

.back-link-section {
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
  margin: var(--gap-lg) 0;
  padding-top: var(--gap-lg);
  text-align: center;
}

/* Hover Effects */
.hover-outline:hover {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  transition: all 0.3s ease;
}

.hover-border:hover {
  border-color: #ffffff;
  transition: all 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 1rem rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

/* Specific Hover Effects for Interactive Elements */
.project-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-0.25rem);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.project-title a:hover {
  color: #ffffff;
  text-decoration: underline;
}


.skill-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.admin-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}


/* Fix for jumping featured span */
.project-featured {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f59e0b;
  color: #000000;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  transition: none !important;
  transform: none !important;
}

/* Posts Page Styles */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--gap-lg);
  margin-bottom: var(--section-spacing);
}

.post-card {
  background: rgba(255, 255, 255, 0.05);
  border: 0.0625rem solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: var(--card-padding);
  transition: all 0.3s ease;
}

.post-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-0.25rem);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.5);
}

.post-header {
  margin-bottom: var(--gap-md);
}

.post-title-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.post-title-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.post-excerpt {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: var(--gap-lg);
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-meta-info {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

.post-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.post-author {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-author i {
  font-size: 0.75rem;
  opacity: 0.8;
}

.post-read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.post-read-more:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateX(0.25rem) scale(1.05);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.post-read-more::after {
  content: "→";
  transition: transform 0.3s ease;
}

.post-read-more:hover::after {
  transform: translateX(0.25rem);
}

/* Post Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: lowercase;
}

.post-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Pagination Styles */
.pagination-nav {
  display: flex;
  justify-content: center;
}

.pagination-container {
  display: flex;
  gap: var(--gap-sm);
  align-items: center;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  font-weight: 500;
}

.pagination-link:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-0.125rem);
}

.pagination-current {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #000000 !important;
  font-weight: 600;
}

.pagination-disabled {
  color: rgba(255, 255, 255, 0.4);
  cursor: default;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--section-padding) 0;
}

.empty-state-icon {
  font-size: 4rem;
  opacity: 0.5;
  margin-bottom: var(--gap-lg);
  color: #ffffff;
  transition: all 0.3s ease;
}

.empty-state-icon:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--gap-md);
  color: #ffffff;
}

.empty-state-description {
  font-size: 1.125rem;
  opacity: 0.7;
  color: rgba(255, 255, 255, 0.8);
}

/* Social Networks Section */
.social-section {
  margin-top: var(--gap-lg);
  padding: var(--gap-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--gap-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.social-link:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.social-link:hover::before {
  width: 100%;
  height: 100%;
}

.social-link i {
  font-size: 1.25rem;
  z-index: 1;
  position: relative;
}

.social-link:hover i {
  color: var(--primary);
}

/* Focus States */
*:focus {
  outline: 2px solid #cccccc;
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

