@charset "utf-8";

/* Theme Variables - ChatGPT Color Scheme */
:root {
  --bg-gradient: #212121;
  --text-primary: #ececec;
  --text-secondary: #b4b4b4;
  --text-white: #ffffff;
  --card-bg: rgba(64, 65, 79, 0.95);
  --card-hover-bg: rgba(86, 88, 105, 1);
  --header-bg: rgba(32, 33, 35, 0.3);
  --footer-bg: rgba(32, 33, 35, 0.8);
  --accent-gradient: linear-gradient(90deg, #10a37f, #19c37d);
  --focus-color: #10a37f;
}

/* Light Theme */
body.light-theme {
  --bg-gradient: linear-gradient(135deg, #faf9f6 0%, #f5f3ee 100%);
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-white: #2d3748;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-hover-bg: rgba(255, 255, 255, 1);
  --header-bg: rgba(255, 255, 255, 0.3);
  --footer-bg: rgba(255, 255, 255, 0.8);
  --accent-gradient: linear-gradient(90deg, #0f4c75, #2a6f97);
  --focus-color: #3282b8;
}

body.light-theme .nav-text {
  color: var(--text-primary);
}

body.light-theme .nav-text:hover {
  color: var(--text-primary);
}

body.light-theme .nav-text.active {
  color: var(--text-primary);
}

body.light-theme .logo-text {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 55, 72, 0.2);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.light-theme .since-text {
  color: var(--text-secondary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

body.light-theme .header {
  border-bottom: 1px solid rgba(64, 64, 64, 0.3);
}

/* Modern CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-gradient);
  min-height: 100vh;
  transition: all 0.3s ease;
}

/* Header Styles */
.header {
  text-align: center;
  padding: 1rem 0 8rem 0;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Navigation Menu */
.main-navigation {
  position: absolute;
  top: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.25rem;
  z-index: 1001;
}

.nav-text {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  opacity: 0.8;
  margin: 0 1rem;
}

.nav-text:hover {
  opacity: 1;
  text-decoration: underline;
}

.nav-text.active {
  opacity: 1;
  text-decoration: underline;
  font-weight: 500;
}

.logo-link {
  display: inline-block;
  transition: transform 0.3s ease;
  text-decoration: none;
  position: absolute;
  top: 1rem;
  left: 2rem;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-white);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin: 0;
  padding: 1.2rem 4.5rem 2rem 4.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

/* Cryptome style for header */
.cryptome-style {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  text-align: center;
  line-height: 0.6;
  letter-spacing: 2px;
}

.big-text {
  font-size: 2em;
  display: block;
}

.since-text {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.8;
  color: var(--text-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.logo-link:hover .logo-text {
  background: rgba(255, 255, 255, 0.2);
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Main Content */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-top: 170px;
}

/* Software Sections */
.software-section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* Software Cards Grid */
.software-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 0;
  justify-content: center;
  max-width: fit-content;
  margin: 0 auto;
}

.software-card {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 1.125rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 135px;
  transform: scale(0.75);
}

.software-card:hover {
  transform: scale(0.75) translateY(-8px);
  box-shadow: 0 9px 30px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.4);
}

.software-card:hover .card-description {
  font-weight: bold;
  transition: all 0.3s ease;
}

/* Light theme hover */
body.light-theme .software-card:hover .card-description {
  color: #000000 !important;
}

/* Dark theme hover */
body:not(.light-theme) .software-card:hover .card-description {
  color: #ffffff !important;
}

.card-image {
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.card-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.software-card:hover .card-img {
  transform: scale(1.1);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.card-type {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  opacity: 0.7;
}

.card-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content {
    padding: 0 1rem;
    margin-top: 52px;
  }
  
  .software-cards {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
  }
  
  .software-card {
    padding: 1rem;
    min-height: 160px;
  }
  
  .section-title {
    font-size: 1.125rem;
  }
  
  .header {
    padding: 1.5rem 0;
  }
  
  .logo-text {
    font-size: 1rem;
    padding: 1.2rem 4.5rem 2rem 4.5rem;
  }
  
  .since-text {
    font-size: 0.6rem;
    bottom: 6px;
    right: 8px;
  }
}

@media (max-width: 480px) {
  .software-cards {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .card-img {
    width: 48px;
    height: 48px;
  }
  
  .card-title {
    font-size: 1rem;
  }
  
  .card-type {
    font-size: 0.75rem;
  }
  
  .card-description {
    font-size: 0.8rem;
  }
  
  .logo-text {
    font-size: 0.75rem;
    padding: 1.2rem 4.5rem 2rem 4.5rem;
  }
  
  .since-text {
    font-size: 0.525rem;
    bottom: 4px;
    right: 6px;
  }
}

/* Legacy styles for backward compatibility */
.marginauto {
  margin: 10px auto 20px;
  display: block;
}

/* Remove old table styles but keep for potential legacy content */
table.center {
  margin-left: auto;
  margin-right: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Section titles adjustment */
.software-section:nth-of-type(2) .section-title,
.software-section:nth-of-type(3) .section-title,
.software-section:nth-of-type(4) .section-title,
.software-section:nth-of-type(5) .section-title,
.software-section:nth-of-type(6) .section-title,
.software-section:nth-of-type(7) .section-title {
  margin-top: -4rem;
}

/* Focus styles for accessibility */
.software-card:focus {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

.logo-link:focus {
  outline: 2px solid var(--text-white);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Theme Selector */
.theme-selector {
  position: absolute;
  top: 1rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 100;
}

.theme-btn {
  width: 45px;
  height: 45px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.theme-btn:hover {
  transform: scale(1.05) translateY(-2px);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-btn.active {
  border-color: var(--focus-color);
  background: rgba(16, 163, 127, 0.2);
  box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.3);
}

.theme-icon {
  display: block;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.theme-btn:hover .theme-icon {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .header {
    padding: 1.5rem 0 9rem 0;
  }
  
  .main-navigation {
    top: 6.5rem;
    left: 50%;
    transform: translateX(-50%);
    gap: 0.2rem;
  }
  
  .nav-text {
    font-size: 0.8rem;
    margin: 0 0.7rem;
  }
  
  .theme-selector {
    top: 0.5rem;
    right: 1rem;
    gap: 0.3rem;
  }
  
  .logo-link {
    position: static;
    margin-top: 1rem;
  }
  
  .theme-btn {
    width: 38px;
    height: 38px;
    border-width: 2px;
  }
  
  .theme-icon {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1.5rem 0 10rem 0;
  }
  
  .main-navigation {
    top: 7.5rem;
    flex-direction: row;
    gap: 0.15rem;
  }
  
  .nav-text {
    font-size: 0.75rem;
    margin: 0 0.5rem;
  }
}

/* Footer */
.footer {
  background: var(--footer-bg);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}