@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-color: #060913;
  --panel-bg: rgba(12, 17, 34, 0.7);
  --panel-border: rgba(255, 255, 255, 0.05);
  --panel-border-highlight: rgba(16, 185, 129, 0.2);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  
  --primary-glow: #10b981; /* Emerald Mint */
  --secondary-glow: #3b82f6; /* Sapphire Blue */
  --accent-glow: #f59e0b; /* Amber Gold */
  
  --status-prod: #10b981;
  --status-dev: #3b82f6;
  --status-proto: #f59e0b;
  --status-skel: #ef4444;
  
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Canvas Background */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.4);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Header & Hero Section */
header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 0 3rem 0;
}

.glow-avatar-container {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 1.8rem;
  border-radius: 50%;
}

.glow-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-glow), var(--primary-glow));
  padding: 2.5px;
  position: relative;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #090e1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-glow);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  font-weight: 800;
}

.glow-avatar::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-glow), var(--primary-glow));
  z-index: -1;
  filter: blur(12px);
  opacity: 0.6;
  animation: pulse 4s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(0.98); opacity: 0.4; }
  100% { transform: scale(1.02); opacity: 0.8; }
}

.badge-tag {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--primary-glow);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
  display: inline-block;
}

h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.8rem;
  background: linear-gradient(to right, #ffffff 40%, var(--secondary-glow), var(--primary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 2rem;
}

.contact-quick-bar {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.quick-contact-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.quick-contact-btn:hover {
  border-color: var(--primary-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.12);
  color: var(--primary-glow);
}

.quick-contact-btn.highlighted-btn {
  background: linear-gradient(135deg, var(--secondary-glow), var(--primary-glow));
  border: none;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.quick-contact-btn.highlighted-btn:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

/* Glassmorphic Panel Layouts */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 2.2rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--secondary-glow), var(--primary-glow));
  opacity: 0.8;
}

.panel-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.panel-title i {
  color: var(--primary-glow);
}

/* Central Sandbox Center Dashboard */
.sandbox-dashboard {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(59, 130, 246, 0.02));
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.sandbox-dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary-glow), var(--accent-glow));
}

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

.sandbox-card {
  background: rgba(9, 14, 28, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.sandbox-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-glow);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
}

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

.sandbox-tag {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-glow);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
}

.sandbox-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.sandbox-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.sandbox-creds {
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px dashed rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  padding: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-bottom: 1.2rem;
}

.sandbox-creds-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

.sandbox-creds-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.sandbox-creds-row:last-child {
  margin-bottom: 0;
}

.sandbox-creds-val {
  color: var(--primary-glow);
  font-weight: 600;
}

.sandbox-launch-btn {
  background: linear-gradient(135deg, var(--secondary-glow), var(--primary-glow));
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  font-size: 0.92rem;
}

.sandbox-launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Philosophy Section Grid */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
}

.philosophy-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.philosophy-text p strong {
  color: var(--text-primary);
}

.ai-stat-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 16px;
  padding: 1.8rem;
  text-align: center;
}

.ai-stat-box h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-glow);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
  margin-bottom: 0.5rem;
}

.ai-stat-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Catalog Filter Controls */
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.2rem;
}

.search-box-container {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.search-input {
  width: 100%;
  background: rgba(9, 14, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.7rem 1.1rem 0.7rem 2.6rem;
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.92rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-glow);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.filter-group {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(135deg, var(--secondary-glow), var(--primary-glow));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.project-stats-mini {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.project-stats-mini strong {
  color: var(--primary-glow);
}

/* Projects Cards Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.8rem;
}

.project-card {
  background: rgba(12, 17, 34, 0.45);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.06);
}

.project-card:hover::after {
  background: linear-gradient(to right, var(--secondary-glow), var(--primary-glow));
}

.card-top {
  margin-bottom: 1rem;
}

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

.project-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-prod {
  background: rgba(16, 185, 129, 0.08);
  color: var(--status-prod);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dev {
  background: rgba(59, 130, 246, 0.08);
  color: var(--status-dev);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-proto {
  background: rgba(245, 158, 11, 0.08);
  color: var(--status-proto);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-skel {
  background: rgba(239, 68, 68, 0.08);
  color: var(--status-skel);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.project-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  min-height: 45px;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

/* Card Credentials inline */
.card-sandbox-info {
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  padding: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.card-sandbox-title {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.card-sandbox-line {
  display: flex;
  justify-content: space-between;
}

.card-sandbox-val {
  color: var(--primary-glow);
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.8rem;
  margin-top: auto;
}

.completion-bar-container {
  flex: 1;
  margin-right: 1.2rem;
}

.comp-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.comp-label {
  color: var(--text-secondary);
}

.comp-val {
  font-weight: 700;
  color: var(--primary-glow);
}

.comp-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50px;
  overflow: hidden;
}

.comp-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(to right, var(--secondary-glow), var(--primary-glow));
}

.demo-link-btn {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--primary-glow);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.demo-link-btn:hover {
  background: var(--primary-glow);
  color: var(--bg-color);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: scale(1.05);
}

/* Timeline Layout (Experience / Leadership) */
.timeline {
  position: relative;
  padding-left: 1.8rem;
  border-left: 2px solid rgba(59, 130, 246, 0.1);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--secondary-glow), var(--primary-glow), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

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

.timeline-dot {
  position: absolute;
  left: calc(-1.8rem - 5px);
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-glow);
  box-shadow: 0 0 8px var(--primary-glow);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.timeline-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline-desc ul {
  padding-left: 1.1rem;
  margin-top: 0.5rem;
}

.timeline-desc li {
  margin-bottom: 0.3rem;
}

/* Skills Matrix Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.skill-category-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 1.5rem;
}

.skill-category-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-glow);
}

.skill-item {
  margin-bottom: 1rem;
}

.skill-item:last-child {
  margin-bottom: 0;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.skill-name {
  font-weight: 500;
}

.skill-percentage {
  color: var(--primary-glow);
  font-weight: 700;
}

.skill-bar-bg {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(to right, var(--secondary-glow), var(--primary-glow));
}

/* Footer Section */
footer {
  text-align: center;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(to right, var(--secondary-glow), var(--primary-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.8rem;
  display: inline-block;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 12, 0.92);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #090e1a;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  width: 90%;
  max-width: 550px;
  padding: 2.2rem;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.15);
  position: relative;
  transform: scale(0.92);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--status-skel);
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-glow);
}

.modal-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.modal-body p {
  margin-bottom: 1rem;
}

.demo-credentials-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: 1.2rem;
}

.demo-credentials-box div {
  margin-bottom: 0.4rem;
}

.demo-credentials-box div:last-child {
  margin-bottom: 0;
}

.demo-credentials-box strong {
  color: var(--primary-glow);
}

/* Responsiveness Settings */
@media (max-width: 992px) {
  h1 { font-size: 2.8rem; }
  .philosophy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  .container { padding: 1rem; }
  .glass-panel { padding: 1.5rem; }
  .sandbox-dashboard { padding: 1.5rem; }
  .catalog-header { flex-direction: column; align-items: stretch; }
  .search-box-container { max-width: 100%; }
}
