/* ============================================
   CSS Variables - Dark Theme (Default)
   ============================================ */
:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --border: #475569;
  --shadow: rgba(0, 0, 0, 0.35);
  --shadow-lg: rgba(0, 0, 0, 0.5);
}

/* ============================================
   CSS Variables - Light Theme
   ============================================ */
[data-theme="light"] {
  --bg-primary: #f9fafb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;
  --border: #e5e7eb;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.12);
}

/* ============================================
   Base Styles with Theme Support
   ============================================ */
html {
  background-color: var(--bg-primary) !important;
  transition: background-color 0.3s ease;
}

body {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="light"] html,
[data-theme="light"] body {
  background-color: #f9fafb !important;
  color: #111827 !important;
}

.about-social-icons {
  text-align: center;
}
a.project-section h2,
a.project-section h3,
a.project-section p,
a.project-section ul,
a.project-section ol {
  margin-bottom: 0.35em;
}

/* If .project-section is not used, target markdown content inside .content or main */
 .content {
  text-align: left;
}
.content h2,
.content h3,
.content p,
.content ul,
.content ol {
  margin-bottom: 0.35em;
}
a.project-section h2,
a.project-section h3,
a.project-section p,
a.project-section ul,
a.project-section ol {
  margin-bottom: 0.5em;
}

/* If .project-section is not used, target markdown content inside .content or main */
.content h2,
.content h3,
.content p,
.content ul,
.content ol {
  margin-bottom: 0.5em;
}
@import url("status-flag.css");

.home-subtitle {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.menu__inner li a.active {
  color: #e53935 !important;
  font-weight: bold !important;
}

.projects-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-right: 70px;
  overflow: visible;
}

.project-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-secondary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  padding: 12px 28px;
  margin-bottom: 16px;
  box-sizing: border-box;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 500px;
  overflow-y: auto;
  position: relative;
  transition: box-shadow 0.2s, background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .project-box::after {
  background: linear-gradient(transparent, rgba(30, 41, 59, 0.9));
}
.project-box:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

/* Custom scrollbar styling */
.project-box::-webkit-scrollbar,
.tile::-webkit-scrollbar {
  width: 8px;
}

.project-box::-webkit-scrollbar-track,
.tile::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

.project-box::-webkit-scrollbar-thumb,
.tile::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}

.project-box::-webkit-scrollbar-thumb:hover,
.tile::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Subtle gradient at bottom to indicate more content */
.project-box::after,
.tile::after {
  content: '';
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(transparent, rgba(255,255,255,0.8));
  pointer-events: none;
}

[data-theme="dark"] .project-box::after,
[data-theme="dark"] .tile::after {
  background: linear-gradient(transparent, rgba(30, 41, 59, 0.9));
}



.project-title {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 8px;
  margin-top: 0;
}

.project-status {
  display: block;
  margin-bottom: 8px;
  font-size: 1em;
  font-weight: 600;
  color: var(--text-primary);
}

.project-subtitle {
  font-size: 0.95em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.project-overview {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.project-objectives {
  margin-bottom: 16px;
  color: var(--text-secondary);
  padding-left: 18px;
  list-style-type: disc;
}

.project-objectives li {
  list-style-type: disc;
  margin-bottom: 4px;
}

.project-technologies {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.project-github {
  display: inline-block;
  margin-top: 16px;
  background: #222;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
button.project-github.disabled[disabled], .project-box button.project-github[disabled] {
  background: #e0e0e0 !important;
  color: #888 !important;
  cursor: not-allowed !important;
  border: none !important;
  pointer-events: none !important;
  font-weight: 700 !important;
  font-size: 1em !important;
}

.project-section-title {
  font-size: 1em;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 6px;
  text-decoration: underline;
  color: var(--text-primary);
}

.project-applications {
  list-style-type: disc;
  padding-left: 18px;
}

.project-applications li {
  list-style-type: disc;
  margin-bottom: 4px;
  color: var(--text-secondary);
}
