/* Custom Styling for Ömer Demirci Personal Portfolio */
/* Color Palette: Kozmik Mavi (Cosmic Blue) & Zümrüt Yeşili (Emerald Green) */

:root {
  /* Colors */
  --bg-base: #f8fafc;            /* light slate-50 background */
  --bg-surface: rgba(255, 255, 255, 0.7); /* glassmorphism light card */
  --bg-surface-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(15, 23, 42, 0.06);
  --border-hover: rgba(15, 23, 42, 0.12);
  
  --color-primary: #2563eb;      /* Cosmic Blue (Light theme optimized) */
  --color-primary-rgb: 29, 78, 216;
  --color-success: #059669;      /* Emerald Green (Light theme optimized) */
  --color-success-rgb: 5, 150, 105;
  
  --color-text-base: #334155;    /* slate-700 for body text */
  --color-text-muted: #64748b;   /* slate-500 for secondary text */
  --color-heading: #0f172a;      /* slate-900 for heading text */
  --color-text-white: #ffffff;   /* Pure white (for badges, copy tooltips, etc.) */
  
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #059669 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 100%);
  --gradient-glow: radial-gradient(circle, rgba(5, 150, 105, 0.05) 0%, transparent 70%);

  /* Card and inner backgrounds */
  --bg-card-inner: rgba(255, 255, 255, 0.65);
  --bg-card-inner-hover: rgba(255, 255, 255, 0.95);
  --bg-input: rgba(255, 255, 255, 0.8);
  --bg-input-focus: #ffffff;
  --bg-footer: #f1f5f9;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-title: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--color-text-base);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Tailwind CSS Utility Fallbacks (SVG Sizing & Grid Layouts) */
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.max-w-6xl { max-width: 72rem; } /* 1152px */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.hidden { display: none; }

.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pb-8 { padding-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-1\.5 { margin-left: 0.375rem; }
.mr-1\.5 { margin-right: 0.375rem; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-tight { letter-spacing: -0.025em; }

.text-slate-300 { color: var(--color-text-muted); }
.text-slate-400 { color: var(--color-text-muted); }
.text-slate-500 { color: var(--color-text-muted); }
.text-slate-600 { color: var(--color-text-muted); }
.text-blue-400 { color: var(--color-primary); }
.text-emerald-300 { color: var(--color-success); }
.text-emerald-400 { color: var(--color-success); }
.text-white { color: var(--color-heading); }

.flex-col { flex-direction: column; }

/* SVG Icon Sizing Utilities */
.w-3\.5 { width: 0.875rem !important; }
.h-3\.5 { height: 0.875rem !important; }
.w-4 { width: 1rem !important; }
.h-4 { height: 1rem !important; }
.w-5 { width: 1.25rem !important; }
.h-5 { height: 1.25rem !important; }
.w-6 { width: 1.5rem !important; }
.h-6 { height: 1.5rem !important; }

/* Responsive Utilities */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
}

/* Header & Glow Layout Fallbacks */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.-z-50 { z-index: -50; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }

.fixed.inset-0 div:nth-child(1) {
  position: absolute;
  top: -40%;
  left: -20%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  filter: blur(120px);
}

.fixed.inset-0 div:nth-child(2) {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.06) 0%, transparent 70%);
  filter: blur(120px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(var(--color-primary-rgb), 0.2);
  border-radius: 99px;
  border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--color-primary-rgb), 0.45);
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--color-heading);
  font-weight: 600;
}

/* Navigation Link styles */
.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-heading);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-text-white);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -4px rgba(16, 185, 129, 0.6);
}

.btn-filled {
  background-color: var(--color-heading);
  color: var(--bg-base);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.btn-filled:hover {
  background-color: var(--color-text-muted);
  color: var(--color-text-white);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-heading);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: rgba(var(--color-primary-rgb), 0.05);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Language Switcher Pill */
.lang-switcher {
  display: flex;
  background-color: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.2rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  color: var(--color-heading);
}

.lang-btn.active {
  background-color: var(--bg-base);
  color: var(--color-heading);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Hero Section Styles */
.hero-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.35fr 0.85fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--color-success);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--color-heading) 40%, var(--color-text-base) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-description {
  color: var(--color-text-base);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 44rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Stats inside Hero */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background-color: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon-wrapper {
  display: grid;
  place-items: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
}

.stat-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.blue-glow {
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.emerald-glow {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.mint-glow {
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-white);
  line-height: 1.2;
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.5rem;
}

/* Sidebar / Profile Card */
.hero-sidebar {
  display: flex;
  flex-direction: column;
}

.profile-card {
  background-color: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: 1.75rem;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04);
}

.profile-image-container {
  position: relative;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.6);
  padding: 0.25rem;
  background-color: rgba(255, 255, 255, 0.02);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.75rem;
}

.profile-status-glow {
  position: absolute;
  inset: -2px;
  border-radius: 2rem;
  background: var(--gradient-primary);
  z-index: -1;
  opacity: 0.6;
  filter: blur(8px);
}

.profile-info {
  margin-bottom: 2rem;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.profile-title {
  color: var(--color-success);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.profile-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.profile-badge-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.badge-psm {
  background-color: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  color: var(--color-text-base);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Profile Links List */
.profile-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 0.85rem 1.25rem;
  text-align: left;
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-item:hover {
  background-color: rgba(var(--color-primary-rgb), 0.05);
  border-color: var(--border-hover);
}

.contact-text-box {
  min-width: 0;
  flex: 1;
}

.contact-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.contact-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Buttons with Tooltips */
.btn-copy, .btn-copy-sm {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 0.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-copy:hover, .btn-copy-sm:hover {
  color: var(--color-success);
  background-color: rgba(255, 255, 255, 0.05);
}

.tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: #0f172a;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.btn-copy:hover .tooltip, .btn-copy-sm:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.link-item {
  cursor: pointer;
}

.link-icon {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-item.link-item:hover .link-icon {
  color: var(--color-success);
  transform: translate(2px, -2px);
}

/* General Layout Cards */
.content-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 1.75rem;
  padding: 2.25rem;
  box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

.card-header-icon-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: center;
  }
}

.about-p {
  color: var(--color-text-base);
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
}

.about-p:not(:last-child) {
  margin-bottom: 1.25rem;
}

.text-highlighted {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-heading);
}

.about-quote {
  position: relative;
  padding: 1.5rem;
  background-color: var(--bg-card-inner);
  border-radius: 1.25rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.quote-border {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
}

.quote-text {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-base);
}

/* Timeline Layout */
.section-tag {
  display: inline-block;
  color: var(--color-success);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.section-heading {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}

.timeline-item {
  display: flex;
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-line {
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  bottom: 0;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.06);
}

.timeline-item:last-child .timeline-line {
  display: none;
}

.timeline-dot-wrapper {
  width: 2rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.timeline-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: var(--bg-base);
  border: 2px solid var(--color-text-muted);
  margin-top: 0.55rem;
  box-shadow: 0 0 0 4px var(--bg-base);
  transition: all 0.3s ease;
}

.timeline-dot.active-glow {
  border-color: var(--color-success);
  background-color: var(--color-success);
  box-shadow: 0 0 0 4px var(--bg-base), 0 0 10px rgba(16, 185, 129, 0.5);
}

.timeline-content {
  flex: 1;
  margin-left: 1.5rem;
  background-color: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  background-color: var(--bg-card-inner-hover);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.timeline-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .timeline-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.timeline-company {
  color: var(--color-success);
  font-size: 0.9rem;
  font-weight: 600;
}

.timeline-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  align-self: flex-start;
}

.timeline-badge.badge-active {
  background-color: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--color-success);
}

.timeline-details {
  list-style: none;
  padding-left: 0;
}

.timeline-details li {
  font-size: 0.875rem;
  color: var(--color-text-base);
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
  opacity: 0.9;
}

.timeline-details li::before {
  content: '•';
  color: var(--color-success);
  position: absolute;
  left: 0.25rem;
  font-weight: bold;
}

.timeline-details li:last-child {
  margin-bottom: 0;
}

/* Projects Filtering styles */
.filter-controls {
  display: flex;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 0.3rem;
}

.filter-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  color: var(--color-text-white);
}

.filter-btn.active {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-text-white);
}

/* Projects Grid and Cards */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  position: relative;
  border-radius: 1.75rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.project-card-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 20px 40px -20px rgba(16, 185, 129, 0.25);
}

.project-card:hover .project-card-glow {
  opacity: 1;
}

.project-content {
  padding: 1.75rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.project-role-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 0.5rem;
}

.badge-pm {
  background-color: rgba(var(--color-primary-rgb), 0.08);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  color: var(--color-primary);
}

.badge-po {
  background-color: rgba(var(--color-success-rgb), 0.08);
  border: 1px solid rgba(var(--color-success-rgb), 0.2);
  color: var(--color-success);
}

.project-icon {
  background-color: rgba(var(--color-primary-rgb), 0.05);
  border-radius: 0.5rem;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: var(--color-success);
}

.project-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.project-tag-pill {
  font-size: 0.7rem;
  font-weight: 600;
  background-color: var(--bg-base);
  color: var(--color-text-muted);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
}

/* Animating Filter out */
.project-card.hidden {
  display: none;
}

/* Skills Category Layout */
.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-category {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 1.25rem;
}

.skill-category:last-child {
  border: none;
  padding-bottom: 0;
}

.skill-category-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: 0.85rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  font-size: 0.85rem;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--color-text-base);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.85rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.skill-pill:hover {
  background-color: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--color-success);
  transform: translateY(-1px);
}

/* Education and Certs Lists */
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-list-item {
  display: flex;
  gap: 0.85rem;
}

.item-marker {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  margin-top: 0.6rem;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--color-primary);
}

.item-marker.marker-green {
  background-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

.item-body {
  flex: 1;
}

.item-title {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-text-base);
}

/* Contact Grid Layout */
.contact-grid-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .contact-grid-section {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.contact-intro {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.contact-methods-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
}

.contact-box:hover {
  background-color: var(--bg-card-inner-hover);
  border-color: var(--border-hover);
}

.contact-box-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.contact-box-icon {
  background-color: rgba(var(--color-primary-rgb), 0.05);
  border-radius: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-box-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.contact-box-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
}

.contact-box-link:hover {
  color: var(--color-success);
}

/* Contact Links Bottom Row */
.contact-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  color: var(--color-heading);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-link-icon-btn:hover {
  background-color: rgba(var(--color-primary-rgb), 0.05);
  border-color: var(--border-hover);
  color: var(--color-success);
}

.social-link-icon-btn.secondary-btn {
  background-color: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.social-link-icon-btn.secondary-btn:hover {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Contact Form styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.3s ease;
}

.contact-form.hidden {
  display: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.form-group input, .form-group textarea {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  color: var(--color-heading);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
  background-color: var(--bg-input-focus);
}

.btn-submit {
  background: var(--gradient-primary);
  color: var(--color-text-white);
  border: none;
  border-radius: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

.btn-submit:hover .btn-submit-arrow {
  transform: translate(2px, -2px);
}

/* Form Success Card style */
.form-success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background-color: rgba(16, 185, 129, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 1.5rem;
  animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-success-card.hidden {
  display: none;
}

.success-icon-ring {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.success-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-success);
}

.success-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  max-width: 20rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.btn-reset {
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  color: var(--color-heading);
  padding: 0.6rem 1.2rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-reset:hover {
  background-color: rgba(var(--color-primary-rgb), 0.05);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* Animations declarations */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Fade In on Scroll (Intersection Observer class) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer Section styling */
.footer-section {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-footer);
  margin-top: 4rem;
}

.footer-copy {
  font-weight: 500;
}

.footer-disclaimer {
  letter-spacing: 0.025em;
}

/* utility class for js */
.hidden {
  display: none !important;
}

/* Print CSS Stylesheet - Optimizes printing to clean CV format */
@media print {
  :root {
    --bg-base: #ffffff;
    --color-text-base: #1e293b;
    --color-text-muted: #64748b;
    --color-text-white: #0f172a;
  }
  
  body {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #1e293b !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
  }

  header, 
  footer, 
  .lang-switcher, 
  .hero-actions, 
  .filter-controls, 
  .btn-copy, 
  .btn-copy-sm,
  .btn-primary, 
  .social-link-icon-btn, 
  .contact-form-col, 
  #contact p.contact-intro, 
  .fixed {
    display: none !important;
  }

  main {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Expand all panels and cards */
  .hero-card, 
  .content-card, 
  .timeline-content, 
  .contact-box, 
  .project-card, 
  .stat-card, 
  .profile-card {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 1.5rem 0 !important;
    backdrop-filter: none !important;
    transform: none !important;
  }

  .hero-grid {
    display: block !important;
  }

  .hero-main {
    margin-bottom: 2rem !important;
  }

  .hero-title {
    font-size: 24pt !important;
    color: #0f172a !important;
    -webkit-text-fill-color: initial !important;
    margin-bottom: 10pt !important;
  }

  .hero-description {
    font-size: 11pt !important;
    color: #1e293b !important;
  }

  /* Setup Printed grid for Stats/Focus cards */
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15pt !important;
  }

  .stat-card {
    border: 1px solid #e2e8f0 !important;
    padding: 10pt !important;
    border-radius: 8pt !important;
  }

  /* Move sidebar profile info to top */
  .hero-sidebar {
    display: block !important;
    margin-top: 0 !important;
    page-break-after: always; /* Force break after top card */
  }

  .profile-card {
    display: flex !important;
    flex-direction: row !important;
    text-align: left !important;
    align-items: center !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 15pt !important;
  }

  .profile-image-container {
    width: 80pt !important;
    height: 80pt !important;
    border-radius: 10pt !important;
    margin-bottom: 0 !important;
    margin-right: 20pt !important;
  }

  .profile-info {
    text-align: left !important;
    margin-bottom: 0 !important;
  }

  .profile-name {
    font-size: 18pt !important;
  }

  .profile-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10pt !important;
    margin-top: 15pt !important;
  }

  .contact-item {
    border: 1px solid #e2e8f0 !important;
    padding: 8pt 12pt !important;
    border-radius: 6pt !important;
  }

  .contact-value {
    color: #1e293b !important;
  }

  /* Sections settings */
  section {
    padding: 0 !important;
    margin-bottom: 25pt !important;
    page-break-inside: avoid;
  }

  .section-heading, .section-title {
    font-size: 16pt !important;
    border-bottom: 1.5px solid #0f172a !important;
    padding-bottom: 4pt !important;
    margin-bottom: 12pt !important;
    color: #0f172a !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* Timeline Printing */
  .timeline-line {
    left: 0.5rem !important;
    background-color: #cbd5e1 !important;
  }

  .timeline-dot {
    border-color: #475569 !important;
    background-color: #475569 !important;
    box-shadow: 0 0 0 4px #fff !important;
  }

  .timeline-content {
    margin-left: 1.5rem !important;
    border: none !important;
    padding: 0 !important;
  }

  .timeline-content:hover {
    transform: none !important;
  }

  .timeline-role {
    font-size: 12pt !important;
  }

  .timeline-company {
    color: #059669 !important;
    font-weight: 700 !important;
  }

  .timeline-badge {
    border: none !important;
    background: none !important;
    color: #475569 !important;
    font-weight: 600 !important;
    padding: 0 !important;
  }

  .timeline-details li::before {
    color: #059669 !important;
  }

  /* Projects Printing */
  .projects-grid {
    display: block !important;
  }

  .project-card {
    display: block !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 10pt !important;
    margin-bottom: 10pt !important;
    page-break-inside: avoid;
  }

  .project-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .project-content {
    padding: 0 !important;
  }

  .project-title {
    font-size: 12pt !important;
    color: #0f172a !important;
  }

  .project-desc {
    margin-bottom: 6pt !important;
    color: #334155 !important;
  }

  .project-footer {
    display: flex !important;
    gap: 4pt !important;
    border: none !important;
    padding-top: 0 !important;
  }

  .project-tag-pill {
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
  }

  /* Skills & Education Grid layout for Print */
  #skills .grid {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr !important;
    gap: 20pt !important;
  }

  .skills-categories {
    gap: 10pt !important;
  }

  .skill-pill {
    border: 1px solid #cbd5e1 !important;
    background-color: transparent !important;
    color: #1e293b !important;
    padding: 2pt 6pt !important;
    font-size: 8pt !important;
  }

  /* Contact section layout for print */
  #contact .contact-grid-section {
    display: block !important;
  }

  .contact-methods-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10pt !important;
  }

  .contact-box {
    border: 1px solid #e2e8f0 !important;
    padding: 8pt !important;
    border-radius: 6pt !important;
  }

  .contact-box-link {
    color: #1e293b !important;
  }
}

/* LOGIN MODAL & SIGNAL BOT DASHBOARD OVERLAY STYLES */

/* Modal Backdrop Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease forwards;
}

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

/* Login Card style */
.login-modal-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 1.75rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 28rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(15, 23, 42, 0.04);
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background-color: rgba(15, 23, 42, 0.08);
  color: var(--color-heading);
}

.login-modal-header {
  margin-bottom: 2rem;
  text-align: center;
}

.login-modal-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--color-heading);
}

.login-modal-header p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.text-error {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Dashboard Container Overlay - Dark Glassmorphism */
.dashboard-container {
  width: 95%;
  max-width: 85rem;
  height: 90vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.05), 0 30px 60px rgba(0, 0, 0, 0.6);
  color: #f8fafc;
}

/* Override cards inside dashboard for dark theme */
.dashboard-container .content-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
  color: #f8fafc;
}

.dashboard-container .card-title,
.dashboard-container h2,
.dashboard-container h3,
.dashboard-container .contact-label {
  color: #e2e8f0;
}

.dashboard-container .stat-value {
  color: #f8fafc;
  text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.dashboard-container .table-wrapper {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.05);
}

.dashboard-container th {
  background: rgba(30, 41, 59, 0.6);
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-container td {
    color: #f1f5f9;
}

.dashboard-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.dashboard-header-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.dashboard-header-sub {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.1rem;
}

.bot-indicator-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.pulse-green {
  background-color: var(--color-success);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* Dashboard Grid split */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem;
  flex: 1;
  overflow-y: auto;
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

/* Bot Control Card Row */
.bot-control-row {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  background-color: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1rem;
}

.bot-status-indicator, .bot-timer {
  flex: 1;
}

/* Checkbox Portfolio list */
.portfolio-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.portfolio-item-checkbox {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-text-base);
  cursor: pointer;
  user-select: none;
  background-color: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  transition: all 0.2s;
}

.portfolio-item-checkbox:hover {
  background-color: rgba(15, 23, 42, 0.04);
  border-color: var(--border-hover);
}

.portfolio-item-checkbox input {
  display: none;
}

.checkbox-box {
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid var(--border-color);
  border-radius: 0.35rem;
  background-color: var(--bg-base);
  display: inline-block;
  transition: all 0.2s;
  position: relative;
}

.portfolio-item-checkbox input:checked + .checkbox-box {
  background-color: var(--color-success);
  border-color: var(--color-success);
}

.portfolio-item-checkbox input:checked + .checkbox-box::after {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 0.125rem;
  width: 0.3rem;
  height: 0.5rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.simulated-balances {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trade-statistics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

/* API Settings elements */
.api-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.api-checkbox-row input {
  cursor: pointer;
  accent-color: var(--color-success);
}

/* Signal Table Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.signal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.825rem;
}

.signal-table th {
  padding: 0.75rem 0.85rem;
  border-bottom: 2px solid var(--border-color);
  color: var(--color-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.725rem;
  letter-spacing: 0.05em;
}

.signal-table td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.signal-table tbody tr {
  transition: background-color 0.2s ease;
}

.signal-table tbody tr:hover {
  background-color: rgba(var(--color-primary-rgb), 0.03);
}

/* Signal Badge classes */
.signal-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 750;
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  letter-spacing: 0.025em;
  text-align: center;
}

.badge-neutral {
  background-color: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #64748b;
}

.badge-buy {
  background-color: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: var(--color-success);
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.1);
  animation: pulseGreenGlow 2s infinite;
}

.badge-sell {
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
  animation: pulseRedGlow 2s infinite;
}

@keyframes pulseGreenGlow {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.2); }
  70% { box-shadow: 0 0 0 4px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

@keyframes pulseRedGlow {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2); }
  70% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Monospace Terminal console */
.bot-terminal-window {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background-color: #0f172a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-family: "Courier New", Courier, monospace;
  display: flex;
  flex-direction: column;
  height: 14rem;
}

.terminal-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background-color: #1e293b;
  border-bottom: 1px solid #334155;
  user-select: none;
}

.terminal-dots {
  display: flex;
  gap: 0.35rem;
}

.terminal-dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dots span:nth-child(1) { background-color: #ef4444; }
.terminal-dots span:nth-child(2) { background-color: #f59e0b; }
.terminal-dots span:nth-child(3) { background-color: #10b981; }

.terminal-tab-title {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
}

.terminal-body-console {
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.console-log-line {
  font-size: 0.725rem;
  line-height: 1.45;
  white-space: pre-wrap;
  font-weight: 500;
  text-align: left;
}

.console-log-line.text-info { color: #38bdf8; }
.console-log-line.text-success { color: #4ade80; }
.console-log-line.text-error { color: #f87171; }
.console-log-line.text-warning { color: #fbbf24; }

/* Print hide overlay rule */
@media print {
  .modal-overlay {
    display: none !important;
  }
}

