/* Dark Tech Theme Customizations for Portfolio */

/* ===== Slate Theme Hue Adjustment ===== */
[data-md-color-scheme="slate"] {
  --md-hue: 230;
  --md-default-bg-color: #0d1117;
  --md-default-bg-color--light: #161b22;
  --md-code-bg-color: #161b22;
  --md-typeset-color: #c9d1d9;
}

/* Primary color overrides */
[data-md-color-scheme="slate"][data-md-color-primary="deep-purple"] {
  --md-primary-fg-color: #7c3aed;
  --md-primary-bg-color: #0d1117;
}

/* Accent highlights */
[data-md-color-scheme="slate"][data-md-color-accent="cyan"] {
  --md-accent-fg-color: #22d3ee;
}

/* ===== Hero Section ===== */
.hero {
  padding: 4rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, #0d1117 0%, #1a1f36 50%, #0d1117 100%);
  border-radius: 16px;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 1.5rem;
  color: #8b949e;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero .tagline {
  font-size: 1.1rem;
  color: #c9d1d9;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Profile Image ===== */
.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #7c3aed;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.4),
              0 0 80px rgba(124, 58, 237, 0.2);
  transition: all 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.5),
              0 0 100px rgba(124, 58, 237, 0.3);
}

/* ===== Button Styles ===== */
.hero .md-button {
  margin: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero .md-button--primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border: none;
  color: white;
}

.hero .md-button--primary:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

/* ===== Section Styling ===== */
.section {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #21262d;
}

.section-header h2 {
  margin: 0;
  font-size: 1.75rem;
  color: #c9d1d9;
}

/* ===== Skills Grid ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.skill-category {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.skill-category:hover {
  border-color: #7c3aed;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

.skill-category h4 {
  color: #7c3aed;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category ul {
  margin: 0;
  padding-left: 1.25rem;
}

.skill-category li {
  color: #8b949e;
  margin-bottom: 0.5rem;
}

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

.project-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: #7c3aed;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
  transform: translateY(-4px);
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #c9d1d9;
  font-size: 1.25rem;
}

.project-card .project-meta {
  color: #7c3aed;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.project-card p {
  color: #8b949e;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.project-card .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tech-tag {
  background: #21262d;
  color: #22d3ee;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #30363d;
}

/* Project architecture diagrams */
.project-diagram {
  max-width: 100%;
  margin: 1rem 0;
  border-radius: 8px;
  border: 1px solid #30363d;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-diagram:hover {
  border-color: #7c3aed;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
  transform: scale(1.02);
}

/* ===== Publication Cards ===== */
.publication {
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #161b22;
  border-left: 4px solid #7c3aed;
  border-radius: 0 12px 12px 0;
  transition: all 0.3s ease;
}

.publication:hover {
  background: #1a1f36;
  border-left-color: #22d3ee;
}

.publication-title {
  font-weight: 600;
  color: #c9d1d9;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.publication-type {
  color: #7c3aed;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.publication-description {
  color: #8b949e;
  margin-bottom: 0.75rem;
}

/* ===== Workshop/Enablement Cards ===== */
.workshop-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.workshop-card:hover {
  border-color: #22d3ee;
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.15);
}

.workshop-card h4 {
  margin-top: 0;
  color: #c9d1d9;
}

.workshop-meta {
  color: #7c3aed;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.workshop-stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.stat-badge {
  background: #21262d;
  color: #22d3ee;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ===== Contact Section ===== */
.contact-section {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #161b22 0%, #1a1f36 100%);
  border-radius: 16px;
  margin-top: 2rem;
}

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

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: white !important;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.contact-btn.secondary {
  background: transparent;
  border: 2px solid #7c3aed;
}

.contact-btn.secondary:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: #8b5cf6;
}

/* ===== Certifications Grid ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.cert-badge {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.cert-badge:hover {
  border-color: #7c3aed;
}

.cert-badge .cert-name {
  color: #c9d1d9;
  font-weight: 500;
  font-size: 0.9rem;
}

.cert-badge .cert-level {
  color: #22d3ee;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* ===== Timeline/Experience ===== */
.experience-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
  border-left: 2px solid #30363d;
}

.experience-item:last-child {
  border-left-color: transparent;
}

.experience-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  width: 14px;
  height: 14px;
  background: #7c3aed;
  border-radius: 50%;
  border: 3px solid #0d1117;
}

.experience-item h4 {
  margin-top: 0;
  color: #c9d1d9;
}

.experience-item .role-meta {
  color: #7c3aed;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero .subtitle {
    font-size: 1.2rem;
  }

  .hero .tagline {
    font-size: 1rem;
    gap: 0.5rem;
  }

  .profile-img {
    width: 140px;
    height: 140px;
  }

  .skills-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0d1117;
}

::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7c3aed;
}

/* ===== Link Styling ===== */
.md-typeset a:not(.md-button):not(.contact-btn) {
  color: #22d3ee;
  text-decoration: none;
  transition: color 0.2s ease;
}

.md-typeset a:not(.md-button):not(.contact-btn):hover {
  color: #7c3aed;
  text-decoration: underline;
}

/* ===== Horizontal Rule ===== */
.md-typeset hr {
  border-color: #21262d;
  margin: 2rem 0;
}
