/* Core Variables - Dark Tech Theme */
:root {
  --bg-main: #0A0F1C;
  --bg-alt: #111827;
  --bg-card: #1E293B;
  --bg-card-hover: #26334A;
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --accent-primary: #38BDF8;    /* Bright Sky Blue */
  --accent-secondary: #818CF8;  /* Indigo */
  --accent-success: #10B981;    /* Emerald Green */
  
  --border-color: #334155;
  --border-light: rgba(255, 255, 255, 0.1);
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Typography Utilities */
.mono-text {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.accent-text {
  color: var(--accent-primary);
}

/* Header & Navigation */
.site-header {
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}

.brand .cursor {
  color: var(--accent-primary);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, rgba(10,15,28,0) 70%);
  z-index: -1;
}

.hero .eyebrow {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 2rem;
}

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

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

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-success);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  font-family: var(--font-mono);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.button.primary {
  background: var(--accent-primary);
  color: var(--bg-main);
}

.button.primary:hover {
  background: #7DD3FC;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.button.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.button.secondary:hover {
  border-color: var(--text-primary);
  background: var(--bg-card);
}

/* Sections General */
.section {
  padding: 6rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header .eyebrow {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.max-w-content {
  max-width: 750px;
}

/* About Layout */
.about-text-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  color: var(--text-secondary);
}

.about-text-grid p {
  margin-bottom: 1.25rem;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-block {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.info-block h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.info-block p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Grids & Cards */
.skill-grid, .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.skill-card, .project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.skill-card:hover, .project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.skill-card h3, .project-card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.skill-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Project Cards Specifics */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-primary);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.tag-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-success);
  border-color: rgba(16, 185, 129, 0.2);
}

.case-study-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.case-study-content p:last-child {
  margin-bottom: 0;
}

.clean-list {
  list-style: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.clean-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.25rem;
}
.clean-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.highlight-card {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(to bottom right, var(--bg-card), rgba(16, 185, 129, 0.05));
}

/* Timeline Layout (Experience) */
.timeline {
  position: relative;
  max-width: 900px;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px; /* Align with marker center */
  width: 2px;
  background: var(--border-color);
}

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

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

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.4rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 2px solid var(--accent-primary);
  z-index: 2;
  transition: background 0.3s;
}

.timeline-item:hover .timeline-marker {
  background: var(--accent-primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.job-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.job-heading h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.company {
  color: var(--text-secondary);
  font-size: 1rem;
}

.date {
  color: var(--accent-primary);
  font-size: 0.85rem;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.promo-highlight {
  font-size: 0.9rem;
  color: var(--accent-success);
  margin-bottom: 1rem;
  font-weight: 500;
}

.timeline-content ul {
  list-style: none;
  color: var(--text-secondary);
}

.timeline-content li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.timeline-content li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* Education Layout */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.education-card {
  padding: 1.5rem;
  border-left: 2px solid var(--border-color);
  background: var(--bg-alt);
  transition: border-color 0.3s ease;
}

.education-card:hover {
  border-color: var(--accent-primary);
}

.education-card h3 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.education-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  padding: 8rem 0;
  text-align: center;
  background: radial-gradient(circle at center, var(--bg-alt) 0%, var(--bg-main) 100%);
  border-top: 1px solid var(--border-light);
}

.contact-section .lead {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide on mobile; usually replaced with hamburger menu */
  }
  
  .hero {
    padding: 6rem 0 4rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .about-text-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .timeline {
    padding-left: 1.5rem;
  }
  
  .timeline::before {
    left: 7px;
  }
  
  .timeline-marker {
    left: -1.5rem;
  }
  
  .job-heading {
    flex-direction: column;
    gap: 0.5rem;
  }
}
