/* Modern CSS Reset and Base Styles */
* {
    box-sizing: border-box;
  margin: 0;
    padding: 0;
  }

/* Enhanced cursor styling */
body {
  cursor: default;
}

/* Page Transition Styles */
#page-transition-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
}

#transition-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

#transition-route-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  opacity: 0;
  pointer-events: none;
  font-family: 'JetBrains Mono', monospace;
  transition: opacity 0.08s ease;
}

/* Ensure main content has smooth transitions */
main {
  transition: opacity 0.2s ease;
}

/* Enhanced cursor on hover for interactive elements */
a, button, .btn, .btn-click, .hamburger-menu, .logout-btn, .login-btn, .social-link, .thumbnail, .pagination-btn, .page-number, .edit-btn, .delete-btn, .upload-btn, .save-changes-btn, .debug-btn {
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced cursor on hover - larger and darker red dot */
a:hover, button:hover, .btn:hover, .btn-click:hover, .hamburger-menu:hover, .logout-btn:hover, .login-btn:hover, .social-link:hover, .thumbnail:hover, .pagination-btn:hover:not(:disabled), .page-number:hover, .edit-btn:hover, .delete-btn:hover, .upload-btn:hover, .save-changes-btn:hover, .debug-btn:hover {
  cursor: pointer;
  transform: scale(1.01);
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover effects for interactive elements */
a:hover, button:hover, .btn:hover, .btn-click:hover, .hamburger-menu:hover, .logout-btn:hover, .login-btn:hover, .social-link:hover, .thumbnail:hover, .pagination-btn:hover:not(:disabled), .page-number:hover, .edit-btn:hover, .delete-btn:hover, .upload-btn:hover, .save-changes-btn:hover, .debug-btn:hover {
  transform: scale(1.01);
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Text input cursor */
.form-input, .form-textarea, input[type="text"], input[type="password"], input[type="email"], textarea {
  cursor: text;
}

html, body {
  background: #f5f5f5 !important;
}

body {
  background: #f5f5f5 !important;
}

html.photography-page, body.photography-page {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
html.photography-page, body.photography-page, main, .photography-gallery, .main-image-container, .thumbnail-container, .thumbnail-strip, header, .main-header, .navbar-container {
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}
body.photography-page main {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Header and Navigation */
header {
  background: #f5f5f5;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

  nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem; /* Reduced padding */
    max-width: 1200px;
    margin: 0 auto;
}

nav a {
  color: #1a202c;
  text-decoration: none;
  padding: 0.5rem 1rem; /* Reduced padding */
  margin: 0 0.25rem;    /* Slightly reduced margin */
  border-radius: 8px;
  font-weight: 500;
  transition: border-bottom 0.2s;
  position: relative;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

nav a:hover {
  color: #1a202c;
  background: none;
  text-decoration: underline;
  border-bottom: 2px solid #1a202c;
  transform: none;
}

nav a::before,
nav a:hover::before {
  display: none !important;
}

/* Main Content */
main {
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  border: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #1a202c;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  color: #2d3748;
  border-bottom: 3px solid #667eea;
  padding-bottom: 0.5rem;
  display: inline-block;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  color: #4a5568;
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
  color: #4a5568;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  line-height: 1.6;
}

/* Links */
a {
  color: #667eea;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

a:hover {
  color: #764ba2;
  border-bottom-color: #764ba2;
}

/* Lists */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
  color: #4a5568;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  color: #4a5568;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

footer p {
  margin: 0;
  font-weight: 500;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

footer.photography-footer-hidden {
  display: none !important;
}

/* Writing Styles */
.writing-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Search Styles */
.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.search-input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  background: #fff;
  color: #1a202c;
  transition: all 0.2s ease;
  outline: none;
}

.search-input:focus {
  border-color: #1a202c;
  box-shadow: 0 0 0 3px rgba(26, 32, 44, 0.1);
}

.search-input::placeholder {
  color: #a0aec0;
  font-style: italic;
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  pointer-events: none;
}

.search-input:focus + .search-icon {
  color: #1a202c;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #718096;
  font-style: italic;
}

.no-results p {
  font-size: 1.1rem;
  margin: 0;
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid #e2e8f0;
}

.pagination-info {
  color: #718096;
  font-size: 0.9rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #1a202c;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination-btn:hover:not(:disabled) {
  background: #f7fafc;
  border-color: #1a202c;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 0.25rem;
}

.page-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #1a202c;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.page-number:hover {
  background: #f7fafc;
  border-color: #1a202c;
}

.page-number.active {
  background: #1a202c;
  color: #fff;
  border-color: #1a202c;
}

.page-number.active:hover {
  background: #2d3748;
}

.writing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.writing-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #1a202c;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.writing-subtitle {
  font-size: 1.2rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.writing-content {
  margin-top: 2rem;
}

/* Writing Table Styles */
.writing-table-container {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.writing-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.writing-table thead {
  background: #f8f9fa;
}

.writing-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e9ecef;
}

.writing-table td {
  padding: 1rem;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: top;
}

/* Remove hover color for writing table rows */
.writing-table tbody tr:hover {
  background: #f3f4f6;
}

/* Make the entire row clickable */
.writing-row {
  cursor: pointer;
  transition: border 0.25s cubic-bezier(0.4,0,0.2,1), border-radius 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
}

.writing-row:hover {
  border: 2px solid #ff8800;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.3), 0 4px 16px rgba(255, 68, 68, 0.2);
  background: #f3f4f6;
}

.post-title-cell {
  color: #111;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}



.post-summary-cell {
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 300px;
}

.post-read-time-cell {
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Allow date to wrap */
.post-date-cell {
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: normal;
  word-break: break-word;
}

/* Responsive table */
@media (max-width: 768px) {
  .writing-table-container {
    overflow-x: auto;
  }
  
  .writing-table {
    min-width: 600px;
  }
  
  .post-summary-cell {
    max-width: 200px;
  }
}

.writing-posts {
  display: grid;
  gap: 2rem;
}

.writing-post {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.writing-post h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.writing-post h2 a {
  color: #1a202c;
  text-decoration: none;
}

.writing-post h2 a:hover {
  color: #667eea;
}

.posts-grid {
  display: grid;
  gap: 2rem;
}

.post-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-date {
  color: #667eea;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

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

.tag {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.post-title a {
  color: #1a202c;
  text-decoration: none;
  border-bottom: none;
}

.post-title a:hover {
  color: #667eea;
  border-bottom: none;
}

.post-excerpt {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.read-more {
  color: #667eea;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: none;
}

.read-more:hover {
  color: #764ba2;
  border-bottom: none;
}

.no-posts {
  text-align: center;
  padding: 3rem;
  color: #4a5568;
}

.no-posts h2 {
  color: #2d3748;
  margin-bottom: 1rem;
}

/* Individual Writing Post Styles */
.writing-main {
  max-width: 800px;
  margin: 0 auto;
}

.writing-post {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-meta time {
  color: #667eea;
  font-weight: 500;
  font-size: 0.95rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #2d3748;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #1a202c;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.post-content h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid #667eea;
  padding-bottom: 0.5rem;
}

.post-content h3 {
  font-size: 1.4rem;
}

.post-content p {
  margin-bottom: 1.5rem;
  color: #2d3748;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

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

.post-content li {
  margin-bottom: 0.5rem;
  color: #2d3748;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.post-content code {
  background: rgba(102, 126, 234, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: #667eea;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.post-content pre {
  background: #2d3748;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

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

.post-content blockquote {
  border-left: 4px solid #667eea;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #4a5568;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(102, 126, 234, 0.1);
}

.back-link {
  color: #667eea;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: none;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.back-link:hover {
  color: #764ba2;
  border-bottom: none;
}

/* Home Page Styles */
.home-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  padding-top: 80px; /* Account for fixed navbar */
  padding-bottom: 80px;
}

/* Hero Section */
.hero-section {
  width: 100%;
  padding: 2rem 0;
  text-align: left;
  margin-bottom: 2rem;
}

.hero-content {
  max-width: 600px;
  margin: 0;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a202c;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  letter-spacing: 0.01em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 2rem;
  line-height: 1.5;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: transparent;
  color: #4285f4;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.social-link:hover {
  background: #f8f9ff;
  border-color: #4285f4;
  color: #4285f4;
  transform: none;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* About Section */
.about-section {
  padding: 3rem 0;
}

.about-content {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #4a5568;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.about-skills {
  margin-top: 2rem;
}

.about-skills h3 {
  color: #2d3748;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-weight: 600;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.skill-tag {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Experience Section */
.experience-section {
  padding: 3rem 0;
}

.experience-timeline {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.experience-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.experience-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
}

.experience-date {
  min-width: 120px;
  font-weight: 600;
  color: #667eea;
  font-size: 0.95rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.experience-content h3 {
  color: #1a202c;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-weight: 600;
}

.company {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.experience-content p {
  color: #4a5568;
  margin-bottom: 0;
  line-height: 1.6;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

/* About Section */
.about-section {
  width: 100%;
  padding: 4rem 0;
  margin-bottom: 4rem;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a202c;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  letter-spacing: 0.02em;
  text-align: center;
}

.about-title::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  margin-top: 0.5rem;
}

.about-intro {
  font-size: 1.3rem;
  color: #1a202c;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-weight: 500;
  text-align: center;
}

.about-description {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 3rem;
  line-height: 1.7;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.about-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.card-content {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  margin: 0;
}

/* Contact Section */
.contact-section {
  width: 100%;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 4rem;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a202c;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  letter-spacing: 0.02em;
}

.contact-title::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  margin-top: 0.5rem;
}

.contact-intro {
  font-size: 1.2rem;
  color: #4a5568;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.primary-btn {
  background: #4285f4;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.primary-btn:hover {
  background: #3367d6;
  transform: none;
  box-shadow: none;
  color: white;
}

.secondary-btn {
  background: transparent;
  color: #4285f4;
  border: 1px solid #4285f4;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background: #4285f4;
  color: white;
  transform: none;
  box-shadow: none;
}

/* Contact Page Styles - Inspired by React Component */
.contact-section {
  margin-bottom: 5rem;
  margin-top: 2rem;
}

.contact-container {
  max-width: 45rem;
  margin: 0 auto;
  text-align: center;
  scroll-margin-top: 7rem;
}

.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #1a202c;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.contact-intro {
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.contact-email {
  color: #667eea;
  text-decoration: none;
  border-bottom: 1px solid #667eea;
  font-weight: 500;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.contact-email:hover {
  color: #764ba2;
  border-bottom: 1px solid #764ba2;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2.5rem;
  color: #1a202c;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  color: #1a202c;
  font-size: 1rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  transition: all 0.3s ease;
  outline: none;
}

.form-input {
  height: 3.5rem;
}

.form-textarea {
  height: 13rem;
  margin: 0;
  resize: vertical;
  padding: 1rem;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #718096;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #667eea;
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  width: fit-content;
  align-self: center;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-btn svg {
  transition: transform 0.3s ease;
}

.submit-btn:hover svg {
  transform: translateX(4px);
}

/* Form Status Messages */
.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  text-align: center;
}

.form-status.success {
  background: rgba(72, 187, 120, 0.1);
  color: #2f855a;
  border: 1px solid rgba(72, 187, 120, 0.2);
}

.form-status.error {
  background: rgba(245, 101, 101, 0.1);
  color: #c53030;
  border: 1px solid rgba(245, 101, 101, 0.2);
}



/* Responsive Design */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  /* Remove old nav responsive styles since we have hamburger menu now */
  
  main {
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }

  .home-container {
    padding: 0 0.5rem;
    margin-top: 70px; /* Slightly less margin on mobile */
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .social-links {
    gap: 1rem;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }

  .social-link svg {
    width: 18px;
    height: 18px;
  }

  .about-content {
    padding: 0 1rem;
  }

  .about-title {
    font-size: 2rem;
  }

  .about-intro {
    font-size: 1.1rem;
  }

  .about-description {
    font-size: 1rem;
  }

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

  .about-card {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-intro {
    font-size: 1.1rem;
  }

  .contact-actions {
    flex-direction: column;
    align-items: center;
  }

  .experience-item {
    flex-direction: column;
    gap: 1rem;
  }

  .experience-date {
    min-width: auto;
    text-align: left;
  }

  .skills-grid {
    justify-content: center;
  }

  .contact-container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .section-heading {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .contact-intro {
    font-size: 1rem;
    margin-top: -1rem;
  }

  .form-input {
    height: 3rem;
  }

  .form-textarea {
    height: 10rem;
  }

  /* Writing Responsive */
  .search-container {
    margin: 0 auto 1.5rem auto;
    padding: 0 1rem;
  }

  .search-input {
    font-size: 14px;
    padding: 10px 40px 10px 12px;
  }

  .pagination-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .pagination-controls {
    justify-content: center;
  }

  .pagination-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .page-number {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.8rem;
  }

  .writing-title {
    font-size: 2.5rem;
  }

  .writing-subtitle {
    font-size: 1rem;
  }

  .post-card {
    padding: 1.5rem;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-title {
    font-size: 1.3rem;
  }

  .writing-post {
    padding: 1.5rem;
  }

  .post-title {
    font-size: 2rem;
  }

  /* Curve Responsive */

}

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

/* Removed main animation to prevent blocks from moving up on page load */

/* Card Styles */
.card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Photography Gallery Styles */
.photography-gallery {
  position: fixed !important;
  top: 60px; left: 0; right: 0; bottom: 0; /* Start below header */
  width: 100vw !important;
  height: calc(100dvh - 60px) !important;
  min-height: calc(100dvh - 60px) !important;
  max-height: calc(100dvh - 60px) !important;
  display: flex;
  flex-direction: column;
  background: #fff;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  z-index: 1;
}
@supports not (height: 100dvh) {
  .photography-gallery {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
  }
}

/* Gallery Search Container */
.gallery-search-container {
  flex: 0 0 auto;
  padding: 1rem;
  padding-top: 2rem;
  background: transparent;
  border-bottom: none;
}

.search-wrapper {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  margin-bottom: 0;
}

.gallery-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  font-size: 1rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  background: white;
  transition: all 0.3s ease;
}

.gallery-search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.gallery-search-input::placeholder {
  color: #a0aec0;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  pointer-events: none;
}

.search-results-info {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #667eea;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  display: none;
  background: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.main-image-container {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 400px;
  max-height: none;
  height: auto;
  overflow: hidden;
  position: relative;
}

/* Navigation Arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  padding: 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.05);
}

.nav-arrow-left {
  left: 1rem;
}

.nav-arrow-right {
  right: 1rem;
}

.nav-arrow svg {
  width: 24px;
  height: 24px;
}

.main-image {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.image-info {
  padding: 0.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.image-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.image-description {
  font-size: 1rem;
  color: #666;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  margin-bottom: 0.5rem;
}

.image-counter {
  font-size: 0.9rem;
  color: #667eea;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-weight: 500;
}

/* No photos found state styling */
.main-image-container.no-photos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #666;
}

.main-image-container.no-photos .image-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #666;
}

.main-image-container.no-photos .image-description {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #666;
}

.thumbnail-container {
  flex: 0 0 auto;
  height: 80px;
  padding: 0.5rem 0;
  background: transparent;
  border-top: none;
  box-sizing: border-box;
  overflow: hidden;
}

.thumbnail-strip {
  display: flex;
  gap: 0;
  padding: 0 1rem;
  overflow-x: auto;
  max-width: 100vw;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  overflow-y: hidden;
  min-height: 60px;
}

.thumbnail-strip::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.thumbnail {
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
}

.thumbnail:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail.active {
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.thumbnail img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  display: block;
}

/* Photography Gallery Responsive */
@media (max-width: 768px) {
  .gallery-search-container {
    padding: 0.75rem;
  }
  
  .search-wrapper {
    max-width: 100%;
  }
  
  .gallery-search-input {
    padding: 0.5rem 1rem 0.5rem 2.25rem;
    font-size: 0.9rem;
  }
  
  .search-icon {
    left: 0.5rem;
  }
  
  .search-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .main-image-container {
    padding: 1rem;
    min-height: 50vh;
  }
  
  .nav-arrow {
    padding: 0.75rem;
    width: 48px;
    height: 48px;
  }
  
  .nav-arrow-left {
    left: 0.5rem;
  }
  
  .nav-arrow-right {
    right: 0.5rem;
  }
  
  .nav-arrow svg {
    width: 20px;
    height: 20px;
  }
  
  .image-info {
    padding: 1rem;
  }
  
  .image-title {
    font-size: 1.2rem;
  }
  
  .image-description {
    font-size: 0.9rem;
  }
  
  .image-counter {
    font-size: 0.8rem;
  }
  
  .thumbnail-strip {
    padding: 0 1rem;
    gap: 0.5rem;
  }
  
  .thumbnail img {
    width: 80px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .nav-arrow {
    padding: 0.5rem;
    width: 44px;
    height: 44px;
  }
  
  .nav-arrow svg {
    width: 18px;
    height: 18px;
  }
  
  .gallery-search-input {
    font-size: 0.85rem;
  }
}

/* Favourites Page Styles */
.favourites-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  margin-top: 80px; /* Account for fixed navbar */
}

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

.favourites-subtitle {
  font-size: 1.2rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto 3rem auto;
  line-height: 1.6;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.category-dropdown {
  font-size: 1.2rem;
  color: #667eea;
  background: none;
  border: none;
  border-bottom: 2px solid #667eea;
  padding: 0.25rem 1.5rem 0.25rem 0.25rem;
  cursor: pointer;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-weight: 500;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  background-size: 1rem;
  min-width: 150px;
  position: relative;
}

.category-dropdown:hover {
  border-bottom-color: #764ba2;
  color: #764ba2;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23764ba2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.category-dropdown:focus {
  outline: none;
  border-bottom-color: #764ba2;
  color: #764ba2;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23764ba2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.favourites-content {
  max-width: 800px;
  margin: 0 auto;
}

.category-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.favourites-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.favourites-list li:last-child {
  border-bottom: none;
}

.item-date {
  color: #667eea;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 80px;
  flex-shrink: 0;
}

.item-title {
  color: #1a202c;
  font-weight: 600;
  font-size: 1rem;
  flex: 1;
}

.item-author {
  color: #4a5568;
  font-size: 0.9rem;
  font-style: italic;
  min-width: 120px;
  flex-shrink: 0;
}

.item-description {
  color: #4a5568;
  font-size: 0.9rem;
  flex: 2;
  line-height: 1.4;
}

.favourite-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0;
  background: none;
  border-radius: 0;
  border: none;
  transition: all 0.3s ease;
}

.favourite-item:hover {
  transform: none;
  box-shadow: none;
  background: none;
}

.favourite-content {
  flex: 1;
}

.favourite-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: #1a202c;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.favourite-author {
  color: #667eea;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.favourite-description {
  color: #4a5568;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}



.favourites-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
  margin-top: 2rem;
}

.update-note {
  color: #4a5568;
  font-style: italic;
  font-size: 0.95rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  margin: 0;
}

/* Favourites Responsive */
@media (max-width: 768px) {
  .favourites-container {
    padding: 1rem;
    margin-top: 70px; /* Slightly less margin on mobile */
  }
  
  .favourites-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    gap: 0.25rem;
  }
  
  .category-dropdown {
    font-size: 1rem;
    padding: 0.2rem 1.2rem 0.2rem 0.2rem;
    min-width: 100px;
    background-size: 0.8rem;
  }
  
  .favourites-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .item-date {
    min-width: auto;
  }
  
  .item-author {
    min-width: auto;
  }
  
  .item-description {
    flex: none;
  }
}

/* Navbar Styles (Reference) */
.main-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  width: 100vw !important;
  z-index: 1000 !important;
  background: #fff !important;
  border-top: 6px solid #333;
  box-shadow: none;
  padding: 0;
}
body.photography-page .main-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  width: 100vw !important;
  z-index: 1000 !important;
  background: #f5f5f5 !important;
}

.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 2rem 0.5rem 2rem;
  min-height: 60px; /* Ensure minimum height for proper spacing */
  overflow: hidden; /* Prevent horizontal overflow */
  flex-wrap: nowrap; /* Ensure items stay on one line */
}

.credits-top {
  flex-shrink: 0;
  max-width: 200px; /* Prevent taking too much space */
  margin-right: 2rem; /* Ensure proper spacing from navigation */
}

.links-wrap {
  display: flex;
  gap: 1rem; /* Reduced gap between navigation items */
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0; /* Prevent shrinking */
  margin-left: auto; /* Push to the right */
  max-width: 60%; /* Prevent taking too much space */
  justify-content: flex-end; /* Align items to the right */
  align-items: center; /* Ensure vertical centering */
  flex-wrap: nowrap; /* Keep items on one line */
}
.btn-left-top a {
  font-size: 1.4rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  white-space: nowrap; /* Prevent text wrapping */
  overflow: hidden; /* Hide overflow */
  text-overflow: ellipsis; /* Show ellipsis if needed */
}

.btn-left-top .btn-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.credit {
  font-size: 1.2rem;
  color: #666;
}

.cbd {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.code-by {
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
}

.geoffrey-span {
  font-weight: 500;
}

.yang {
  font-weight: 500;
}
.site-name a::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}
.site-name a:hover::after,
.site-name a:focus::after,
.site-name a.active::after {
  transform: scaleX(1);
}

.links-wrap li {
  display: flex;
  align-items: center;
  justify-content: center; /* Center content horizontally */
}

.links-wrap a {
  color: #222;
  text-decoration: none;
  font-size: 1.05rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-weight: 500;
  padding: 0 0.25rem 0.2rem 0.25rem; /* Reduced horizontal padding */
  border: none;
  background: none;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap; /* Prevent text wrapping */
  flex-shrink: 0; /* Prevent shrinking */
}
.links-wrap a::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #000; /* Solid black underline */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}
.links-wrap a:hover::after,
.links-wrap a:focus::after,
.links-wrap a.active::after {
  transform: scaleX(1);
}

.links-wrap a:hover,
.links-wrap a:focus {
  color: #222;
  background: none;
  text-decoration: none;
  border-bottom: none;
}

.links-wrap a.active {
  text-decoration: none;
  border-bottom: none;
}

header, nav, .navbar-container, .main-header {
  box-shadow: none !important;
  background: #f5f5f5 !important;
}

/* Remove old nav styles */
nav, nav ul, nav li, nav a {
  box-shadow: none !important;
  background: none !important;
  border: none !important;
}

/* Hamburger Menu Styles */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background: #222;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Styles */
@media (max-width: 1000px) {
  .hamburger-menu {
    display: flex;
  }

  .nav-bar {
    gap: 1rem; /* Reduce gap on mobile */
  }

  .credits-top {
    max-width: 150px; /* Smaller max-width on mobile */
  }

  .links-wrap {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: #fff !important;
    background-color: #fff !important;
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 60px 2rem 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    margin-left: 0; /* Reset margin for mobile */
  }

  .links-wrap.active {
    right: 0;
  }

  .links-wrap li {
    width: 100%;
  }

  .links-wrap a {
    display: inline-block;
    width: auto;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    text-decoration: none;
  }

  .links-wrap a::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #222;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
  }

  .links-wrap a:hover::after,
  .links-wrap a:focus::after {
    transform: scaleX(1);
  }

  .links-wrap a:hover,
  .links-wrap a:focus {
    background: none;
    border-radius: 0;
    padding-left: 0;
  }

  /* Prevent body scroll when menu is open */
  body.nav-open {
    overflow: hidden;
  }

  /* Overlay when menu is open */
  body.nav-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  /* Ensure mobile nav is completely white */
  .links-wrap,
  .links-wrap * {
    background: #fff !important;
    background-color: #fff !important;
  }

  .links-wrap ul,
  .links-wrap li {
    background: #fff !important;
    background-color: #fff !important;
  }
}

/* Login Page Styles */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.login-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 3.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 450px;
  text-align: center;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.75rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: #718096;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 400;
}

.login-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.75rem;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #2d3748;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  resize: vertical;
  min-height: 100px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* File input styling */
input[type="file"].form-input {
  padding: 0.75rem;
  border: 2px dashed #e2e8f0;
  background: rgba(247, 250, 252, 0.9);
}

input[type="file"].form-input::-webkit-file-upload-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

input[type="file"].form-input::-webkit-file-upload-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.login-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.login-status {
  margin-top: 1.5rem;
}

.status {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  animation: slideIn 0.3s ease-out;
}

.status.success {
  background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
  color: #22543d;
  border: 1px solid #68d391;
  box-shadow: 0 4px 8px rgba(104, 211, 145, 0.2);
}

.status.error {
  background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
  color: #742a2a;
  border: 1px solid #fc8181;
  box-shadow: 0 4px 8px rgba(252, 129, 129, 0.2);
}

/* WMS Page Styles */
.wms-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  margin-top: 80px; /* Add top margin to account for fixed navbar */
}

.wms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid #e2e8f0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wms-header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.back-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(102, 126, 234, 0.1);
}

.back-link:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateX(-2px);
}

.wms-title {
  color: #1a202c;
  font-size: 2.8rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wms-user {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #4a5568;
}

.wms-welcome {
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
}

.logout-btn {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white !important;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(229, 62, 62, 0.3);
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.logout-btn:hover {
  background: linear-gradient(135deg, #c53030 0%, #a53030 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(229, 62, 62, 0.4);
  color: white !important;
}

/* Force white text on logout button */
.logout-btn,
.logout-btn:active,
.logout-btn:focus,
.logout-btn:visited {
  color: white !important;
  -webkit-text-fill-color: white !important;
}

/* Override any inherited text color */
.wms-user .logout-btn {
  color: white !important;
  -webkit-text-fill-color: white !important;
}

.wms-sections {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.wms-section {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.wms-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.wms-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.section-title {
  color: #1a202c;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-content {
  color: #4a5568;
}

.section-content p {
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  line-height: 1.6;
}

.wms-actions {
  margin-top: 1.5rem;
}

.wms-action-btn {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
  font-size: 0.9rem;
}

.wms-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

/* Favourites WMS Page Styles */
.favourites-wms-page {
  padding: 2rem;
  background: #f7fafc;
  min-height: calc(100vh - 80px);
}

.favourites-controls {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.favourites-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.category-dropdown {
  font-size: 1.2rem;
  color: #667eea;
  background: none;
  border: none;
  border-bottom: 2px solid #667eea;
  padding: 0.25rem 1.5rem 0.25rem 0.25rem;
  cursor: pointer;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-weight: 500;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  background-size: 1rem;
  min-width: 150px;
  position: relative;
}

.category-dropdown:hover {
  border-bottom-color: #764ba2;
  color: #764ba2;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23764ba2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.category-dropdown:focus {
  outline: none;
  border-bottom-color: #764ba2;
  color: #764ba2;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23764ba2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.add-item-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
  font-size: 0.9rem;
}

.add-item-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.refresh-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-right: 10px;
}

.refresh-btn:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
}

.favourites-list-wms {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.favourite-item-wms {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.favourite-item-wms:hover {
  background: none;
  box-shadow: none;
}

.favourite-content-wms {
  flex: 1;
}

.item-title-wms {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.25rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.item-author-wms {
  color: #718096;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.item-description-wms {
  color: #4a5568;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  line-height: 1.4;
}



.favourite-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.edit-btn, .delete-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.edit-btn {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  color: white;
}

.edit-btn:hover {
  background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
  transform: translateY(-1px);
}

.delete-btn {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
}

.delete-btn:hover {
  background: linear-gradient(135deg, #c53030 0%, #a53030 100%);
  transform: translateY(-1px);
}

.no-items {
  text-align: center;
  color: #718096;
  font-style: italic;
  padding: 2rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.error-message {
  text-align: center;
  color: #e53e3e;
  font-weight: 600;
  padding: 2rem;
  background: #fed7d7;
  border: 1px solid #feb2b2;
  border-radius: 8px;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 16px 16px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-weight: 600;
}

.close {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close:hover {
  color: #e2e8f0;
  transform: scale(1.1);
}

.modal-body {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2d3748;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.save-changes-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
  font-size: 0.9rem;
}

.save-changes-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.cancel-btn {
  background: #e2e8f0;
  color: #4a5568;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.cancel-btn:hover {
  background: #cbd5e0;
  transform: translateY(-2px);
}

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

/* Medium screen adjustments */
@media (max-width: 1024px) and (min-width: 1001px) {
  .nav-bar {
    gap: 1.5rem; /* Slightly reduce gap on medium screens */
  }
  
  .credits-top {
    max-width: 180px; /* Adjust max-width for medium screens */
    margin-right: 1.5rem; /* Reduce margin on medium screens */
  }
  
  .links-wrap {
    max-width: 65%; /* Allow slightly more space on medium screens */
  }
}

/* Small desktop adjustments */
@media (max-width: 1200px) and (min-width: 1025px) {
  .credits-top {
    margin-right: 1.5rem; /* Slightly reduce margin on smaller desktops */
  }
}

/* Mobile Responsive for WMS */
@media (max-width: 768px) {
  .wms-container {
    padding: 1rem;
    margin-top: 60px;
  }
  
  .wms-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .wms-header-left {
    flex-direction: column;
    gap: 1rem;
  }
  
  .wms-title {
    font-size: 2rem;
  }
  
  .favourites-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .category-dropdown {
    width: 100%;
  }
  
  .add-item-btn {
    width: 100%;
  }
  
  .favourite-item-wms {
    flex-direction: column;
    gap: 1rem;
  }
  
  .favourite-actions {
    margin-left: 0;
    justify-content: flex-end;
  }
  
  .modal-content {
    margin: 10% auto;
    width: 95%;
  }
  
  .modal-header {
    padding: 1rem 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .save-changes-btn,
  .cancel-btn {
    width: 100%;
  }
}

/* About Page Styles */
.about-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: 100vh;
}

.about-hero-section {
  text-align: center;
  padding: 4rem 0 3rem;
  margin-bottom: 3rem;
}

.about-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  position: relative;
}

.about-hero-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ff0000, #ff6b6b);
  border-radius: 2px;
}

.about-hero-subtitle {
  font-size: 1.25rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.about-content-section {
  margin-bottom: 4rem;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-description {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 3rem;
  text-align: center;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

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

.about-navigation-section {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.about-navigation-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 2rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
}

.about-navigation-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile Responsiveness for About Page */
@media (max-width: 768px) {
  .about-page-container {
    padding: 1rem;
  }
  
  .about-hero-section {
    padding: 2rem 0 1.5rem;
    margin-bottom: 2rem;
  }
  
  .about-hero-title {
    font-size: 2.5rem;
  }
  
  .about-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-navigation-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .about-navigation-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Loading Overlay Styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  max-width: 400px;
  padding: 2rem;
}

.loading-logo {
  margin-bottom: 2rem;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-geoffrey {
  color: #ffffff;
  display: block;
  margin-bottom: 0.25rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-yang {
  color: #e2e8f0;
  display: block;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-bar-container {
  width: 300px; /* Fixed width instead of 100% */
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 2rem auto; /* Center the bar */
  overflow: hidden;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #e2e8f0 100%);
  border-radius: 2px;
  width: 100%; /* Fixed width */
  transform: scaleX(0); /* Start with 0 scale */
  transform-origin: left; /* Scale from left side */
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Very smooth easing */
  will-change: transform; /* Optimize for animations */
}

.loading-text {
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-size: 1rem;
  color: #e2e8f0;
  opacity: 1; /* Start visible instead of 0 */
  transition: all 0.12s ease-out;
  min-height: 1.5rem; /* Prevent layout shift */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Time and Date Display */
.loading-time-date {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-size: 0.9rem;
  color: #94a3b8;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.6s forwards;
  transition: all 0.12s ease-out;
}

.loading-time {
  display: block;
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
}

.loading-date {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
}

@keyframes loadingProgress {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Ensure the loading overlay is above everything except navbar */
.loading-overlay {
  z-index: 9999;
}

/* Hide loading overlay on mobile if needed */
@media (max-width: 768px) {
  .loading-logo {
    font-size: 2rem;
  }
  
  .loading-content {
    padding: 1.5rem;
  }
  
  .loading-bar-container {
    width: 250px; /* Slightly smaller on mobile */
  }
  
  .loading-fact {
    margin-top: 1.5rem;
    padding: 0.75rem;
  }
  
  .fact-text {
    font-size: 0.8rem;
    max-width: 250px;
  }
}

.loading-fact {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: fadeIn 0.8s ease-out 2s forwards;
}

.fact-icon {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.fact-text {
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
  text-align: center;
  max-width: 350px;
  margin: 0 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  padding: 0 0.5rem;
}

.fact-text.loading {
  color: #94a3b8;
  font-style: italic;
}

.fact-text.error {
  color: #fca5a5;
  font-style: italic;
}

@keyframes loadingProgress {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fact-text {
  font-size: 0.8rem;
  max-width: 280px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  padding: 0 0.25rem;
}

/* Full-screen loading state */
.fullscreen-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.2s ease-out;
}

.fullscreen-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 2rem;
}

.loading-text-large {
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.05em;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Original loading content transitions */
.original-loading {
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

.original-loading.visible {
  opacity: 1;
}

.original-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Enter Button */
.enter-button {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 12px 32px;
  font-family: 'JetBrains Mono', 'Source Code Pro', 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease, transform 0.2s ease;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

#loading-overlay .enter-button:hover {
  background: #f0f0f0;
  transform: translateY(-2px) scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.enter-button.visible {
  opacity: 1;
  transform: translateY(0);
}

.enter-button.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

@media (max-width: 768px) {
  .loading-logo {
    margin-bottom: 1.5rem;
  }
  
  .loading-content {
    padding: 0 1rem;
  }
  
  .loading-bar-container {
    margin-bottom: 1.5rem;
  }
  
  .loading-fact {
    margin-bottom: 2rem;
  }
  
  .fact-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  /* Ensure proper separation between time/date and content on mobile */
  .loading-time-date {
    top: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .loading-content {
    margin-top: 4rem;
  }
  
  /* Add more space when fact text is long */
  .loading-fact {
    min-height: 4rem;
    margin-bottom: 2.5rem;
  }
  
  .fact-text {
    max-width: 90%;
    margin: 0 auto;
  }
}

/* Main Page Headings - Blue Color */
.about-hero-title,
.section-heading,
.favourites-header h1,
.writing-container h1,
.contact-title {
  color: #3b82f6 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
}

/* Photography page doesn't have a main heading, but if it did, it would be styled here */
.photography-gallery h1 {
  color: #3b82f6 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
}

/* About page specific headings */
.about-navigation-title {
  color: #3b82f6 !important;
}

/* Card titles in about page */
.about-card .card-title {
  color: #3b82f6 !important;
}

/* Navigation Links - Keep original black color */
.links-wrap .btn-text-inner {
  color: #1a202c !important;
}

.links-wrap .btn-text-inner:hover {
  color: #4a5568 !important;
}

/* Main site title/logo - Keep original black color */
.geoffrey-span {
  color: #1a202c !important;
}

.yang {
  color: #4a5568 !important;
}



