/* --- Premium Theme Variables --- */
:root {
  --bg-color: #05070f;              
  --card-bg: rgba(13, 19, 36, 0.75); 
  --text-main: #f8fafc;             
  --text-muted: #94a3b8;            
  --accent-linear: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%); 
  --accent-solid: #06b6d4;          
  --border-color: rgba(255, 255, 255, 0.06);
  --sans-font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--sans-font);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Canvas Glow spots */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
}
.glow-1 { top: 5%; left: -15%; }
.glow-2 { top: 45%; right: -15%; background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(0,0,0,0) 70%); }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 0;
}

.text-center {
  text-align: center;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

/* --- Action Control Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

.primary-btn {
  background: var(--accent-linear);
  color: #fff;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 26px rgba(6, 182, 212, 0.45);
}

.secondary-btn {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  margin-left: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(5px);
}

.secondary-btn:hover {
  border-color: var(--accent-solid);
  background: rgba(6, 182, 212, 0.05);
  transform: translateY(-3px);
}

/* --- Minimalist Header (Links Stripped) --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 7%;
  background: rgba(5, 7, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo span {
  background: var(--accent-linear);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-left: 1px solid var(--border-color);
  padding-left: 1rem;
}

/* --- Hero Layout Architecture --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
  padding: 0;
}

.greeting {
  color: var(--accent-solid);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-text-side h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  background: linear-gradient(120deg, #fff 40%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text-side h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  background: var(--accent-linear);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.lead-text {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-image-side {
  display: flex;
  justify-content: center;
}

.profile-frame {
  position: relative;
  width: 320px;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  z-index: 2;
  transition: var(--transition);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  background: var(--card-bg);
}

.profile-frame::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--accent-linear);
  z-index: -1;
  border-radius: 24px;
  opacity: 0.8;
}

.hero-image-side:hover .profile-frame {
  transform: translateY(-8px) rotate(2deg);
}

/* --- Section Formatting Baseline --- */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background: var(--accent-linear);
  border-radius: 2px;
}

/* --- About Segment --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  font-size: 1.15rem;
}

.about-lifestyle h3 {
  margin-bottom: 2rem;
  font-size: 1.4rem;
}

.hobby-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(10px);
}

.hobby-icon-wrapper {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-solid);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* --- THE CREATIVE ANALYTICS SANDBOX SPACE --- */
.sandbox-intro {
  color: var(--text-muted);
  max-width: 800px;
  font-size: 1.15rem;
  margin-bottom: 3rem;
}

.sandbox-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
}

.sandbox-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sandbox-controls h3 {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.scenario-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1.2rem;
  border-radius: 16px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-align: left;
  transition: var(--transition);
}

.scenario-btn i {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.scenario-btn div strong {
  display: block;
  font-size: 1.05rem;
}

.scenario-btn div span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.scenario-btn.active, .scenario-btn:hover {
  border-color: var(--accent-solid);
  background: rgba(6, 182, 212, 0.05);
}

.scenario-btn.active i {
  color: var(--accent-solid);
}

/* Pipeline Terminal Mainframe Frame */
.sandbox-terminal {
  background: #070913;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.terminal-header {
  background: #0f1322;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.terminal-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 1rem;
}

.terminal-body {
  padding: 2rem;
}

.code-block pre {
  background: #03050a;
  padding: 1.5rem;
  border-radius: 12px;
  color: #38bdf8;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.01);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.run-btn {
  background: #10b981;
  color: #fff;
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
  transition: var(--transition);
}
.run-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.terminal-status-log {
  font-family: monospace;
  font-size: 0.85rem;
  color: #10b981;
}

/* Dynamic Interactive Pipeline Results Layer */
.terminal-results {
  border-top: 1px dashed var(--border-color);
  padding-top: 2rem;
  display: none; 
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.results-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.results-table-panel h4, .results-visual-panel h4 {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.table-container {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.sandbox-table {
  width: 100%;
  border-collapse: collapse;
  font-family: monospace;
  font-size: 0.9rem;
}

.sandbox-table th {
  background: #0f1322;
  padding: 0.8rem 1.2rem;
  color: var(--accent-solid);
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.sandbox-table td {
  padding: 0.8rem 1.2rem;
  background: #05070e;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

/* Metric Radial Counter Display Box */
.metric-visual-box {
  background: #05070e;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: calc(100% - 2rem);
}

.circle-progress-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(#05070e 60%, transparent 61%), conic-gradient(var(--accent-solid) 0%, #121829 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
  border: 2px solid rgba(255,255,255,0.02);
}

.glowing-counter {
  font-family: monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.metric-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.insight-box {
  background: rgba(99, 102, 241, 0.06);
  border-left: 4px solid #6366f1;
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  font-size: 1rem;
  color: #e2e8f0;
}

/* NEW FEATURE: Stakeholder ROI Narrative Lens Section */
.translator-wrapper {
  margin-top: 2rem;
  background: rgba(15, 19, 34, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
}

.translator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.toggle-container {
  background: #05070f;
  border: 1px solid var(--border-color);
  padding: 3px;
  border-radius: 8px;
  display: inline-flex;
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
}

.toggle-btn.active {
  background: var(--accent-linear);
  color: #fff;
}

#translationOutput {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.5;
  transition: var(--transition);
}

/* --- Toolkit Grid --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-solid);
}

.card-header-icon {
  font-size: 2.2rem;
  color: var(--accent-solid);
  margin-bottom: 1.5rem;
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.skill-card li {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.skill-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-solid);
  font-weight: bold;
}

/* --- Projects Showcase Cards --- */
.filter-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent-linear);
  color: #fff;
  border-color: transparent;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.project-card.hide { display: none; }

.project-meta {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent-solid);
  padding: 0.3rem 0.9rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.project-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.project-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.project-link {
  color: var(--text-main);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-link i {
  color: var(--accent-solid);
  transition: var(--transition);
}

.project-card:hover .project-link i {
  transform: translateX(5px);
}

/* --- Timeline Journey --- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 3rem;
  border-left: 1px dashed var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
}

.timeline-dot {
  position: absolute;
  left: calc(-3rem - 6px);
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-solid);
}

.timeline-date {
  font-family: monospace;
  color: var(--accent-solid);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content h3 { font-size: 1.5rem; }
.timeline-content h4 {
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* --- Contact & Footer Base --- */
.contact-section {
  border-top: 1px solid var(--border-color);
}

.contact-section p {
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.2rem;
}

.contact-btn {
  background: var(--accent-linear);
  color: #fff;
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  gap: 0.8rem;
}

.social-links {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  font-size: 2rem;
}

.social-links a { color: var(--text-muted); }
.social-links a:hover { color: var(--accent-solid); transform: scale(1.1); }

.footer-note {
  margin-top: 6rem !important;
  font-size: 0.85rem;
}

/* --- Responsive Adaptability Matrix --- */
@media (max-width: 992px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-text-side { order: 2; }
  .hero-image-side { order: 1; }
  .lead-text { margin: 0 auto 2.5rem auto; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .sandbox-container { grid-template-columns: 1fr; }
  .results-layout-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar { flex-direction: column; gap: 0.5rem; text-align: center; }
  .nav-tagline { border-left: none; padding-left: 0; }
  .secondary-btn { margin-left: 0; margin-top: 1rem; display: block; }
  .hero-ctas { display: flex; flex-direction: column; align-items: center; }
  .translator-header { flex-direction: column; align-items: flex-start; }
}