/* ══════════════════════════════════════════════════════════════
   Manikandan Muthiah — Portfolio Stylesheet
   Theme: Dark glassmorphism · Cyan accent (#00d2ff)
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --bg-color: #050505;
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --accent: #00d2ff;
  --accent-secondary: #3a7bd5;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-hover: rgba(255, 255, 255, 0.1);
  --success: #34d399;
  --purple: #a78bfa;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Body & Canvas ──────────────────────────────────────────── */
body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
}

/* ── Layout Container ───────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* ── Glass Panel Base ───────────────────────────────────────── */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ── About / Hero Section ───────────────────────────────────── */
.about {
  text-align: center;
  padding: 3.5rem 2.5rem 2.5rem;
  margin-top: 2.5rem;
  animation: fadeIn 0.9s ease-out both;
}

.profile-image-container {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  padding: 3px;
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.35);
  position: relative;
}

.profile-image-container::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  z-index: -1;
  filter: blur(12px);
  opacity: 0.7;
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a2744, #0d1f3c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.about h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #fff 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about .title {
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 18px rgba(0, 210, 255, 0.4);
}

.about .subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
}

/* Objective & Summary panels inside about */
.objective-panel,
.summary-panel {
  margin: 1.2rem 0;
  text-align: left;
  padding: 1.5rem 2rem;
  border-radius: 16px;
}

.objective-panel h2,
.summary-panel h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.objective-panel blockquote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  line-height: 1.7;
}

.summary-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.summary-panel ul li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.2rem;
  position: relative;
}

.summary-panel ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Social links in about */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 210, 255, 0.25);
}

.social-links a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── Section Commons ────────────────────────────────────────── */
main {
  margin-top: 3rem;
}

section {
  margin-bottom: 5rem;
  animation: fadeIn 0.7s ease-out both;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: '';
  height: 1px;
  flex-grow: 1;
  background: linear-gradient(to right, var(--accent), transparent);
  opacity: 0.5;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
  margin-top: -0.2rem;
}

/* ── Grid & Cards ───────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.8rem;
  color: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  background: var(--card-hover);
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.card-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  border-radius: 50%;
  top: -60px;
  right: -60px;
  opacity: 0;
  transition: opacity 0.5s;
  filter: blur(20px);
  pointer-events: none;
}

.card:hover .card-glow {
  opacity: 0.35;
}

/* Generic tag pill */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-weight: 600;
}

/* ── Skills Section ─────────────────────────────────────────── */
.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ── Experience Section ─────────────────────────────────────── */
.experience-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.experience-header {
  margin-bottom: 1rem;
}

.company {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.1rem;
}

.duration {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.project-details {
  margin-top: 0.75rem;
}

.project-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.env-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  margin-top: 0.6rem;
}

.project-details ul {
  list-style: none;
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project-details ul li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 1.3rem;
  position: relative;
  line-height: 1.5;
}

.project-details ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Certifications Section ─────────────────────────────────── */
.cert-card {
  text-align: center;
}

.cert-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.cert-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.cert-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.btn-cert {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid rgba(0, 210, 255, 0.35);
  background: rgba(0, 210, 255, 0.08);
  transition: all 0.2s;
  margin-top: auto;
}

.btn-cert:hover {
  background: rgba(0, 210, 255, 0.18);
  transform: translateY(-1px);
}

/* ── Education Section ──────────────────────────────────────── */
.edu-card {
  max-width: 600px;
}

.edu-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.edu-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.edu-meta {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.edu-cgpa {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Articles Section ───────────────────────────────────────── */
.article-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.article-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.6rem;
  flex-grow: 1;
}

.article-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.btn-article {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s, opacity 0.2s;
}

.btn-article:hover {
  gap: 0.6rem;
  opacity: 0.8;
}

/* ── Products Section ───────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card.product-card {
  position: relative;
  overflow: hidden;
}

.product-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.product-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  line-height: 1;
}

.product-title-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.15rem 0;
}

.product-type {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-description {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.9rem;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.product-features li {
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

.product-features li::before {
  content: "▸";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

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

.product-tech-tags .tag {
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 210, 255, 0.2);
}

.product-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn-product {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-product-primary {
  background: var(--accent);
  color: #050505;
}

.btn-product-primary:hover {
  background: #33daff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 210, 255, 0.35);
}

.btn-product-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(0, 210, 255, 0.4);
}

.btn-product-secondary:hover {
  background: rgba(0, 210, 255, 0.1);
  transform: translateY(-2px);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  z-index: 3;
}

.badge-live {
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.badge-pwa {
  background: rgba(167, 139, 250, 0.15);
  color: var(--purple);
  border: 1px solid rgba(167, 139, 250, 0.35);
}

/* ── GitHub Projects Section ────────────────────────────────── */
.project-repo-card {
  max-width: 500px;
}

.repo-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.project-repo-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.project-repo-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.btn-repo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s, opacity 0.2s;
}

.btn-repo:hover {
  gap: 0.7rem;
  opacity: 0.8;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  border-top: 1px solid rgba(0, 210, 255, 0.1);
  margin-top: 2rem;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .about h1 {
    font-size: 2rem;
  }

  .container {
    padding: 1.2rem;
  }

  .glass-panel {
    padding: 1.8rem 1.4rem;
  }

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

  .social-links {
    gap: 0.75rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .about .title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .about h1 {
    font-size: 1.7rem;
  }

  .btn-product {
    width: 100%;
    justify-content: center;
  }
}
