/* Sharath S Naik – Portfolio | Clean, professional, visually refined */

:root {
  --bg: #14161b;
  --bg-card: #1a1d24;
  --bg-alt: #1e2129;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(91, 156, 244, 0.25);
  --text: #eceef1;
  --text-muted: #8f95a0;
  --accent: #5b9cf4;
  --accent-secondary: #8b7cf8;
  --accent-soft: rgba(91, 156, 244, 0.12);
  --glow: rgba(91, 156, 244, 0.2);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;
  --container: min(880px, 92vw);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-light);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% -15%, rgba(91, 156, 244, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 30%, rgba(139, 124, 248, 0.05), transparent 50%),
    radial-gradient(ellipse 60% 35% at 0% 70%, rgba(91, 156, 244, 0.04), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 15%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(20, 22, 27, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s, opacity 0.2s, visibility 0.2s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-toggle { display: flex; }
}

/* ===== HERO ===== */
.hero {
  padding: calc(var(--header-h) + 3.5rem) 0 4rem;
  position: relative;
}

.hero-inner {
  max-width: 640px;
  position: relative;
}

.hero-greeting {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

.hero-name {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--text);
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-headline {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.4rem;
  text-shadow: 0 0 40px var(--glow);
}

.hero-subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.hero-bring-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.hero-impact {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-impact li { margin-bottom: 0.6rem; }
.hero-impact li::marker { color: var(--accent); }
.hero-impact strong { color: var(--text); }

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #4a8ae8 100%);
  color: #fff;
  box-shadow: 0 4px 16px var(--glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--glow), 0 0 32px rgba(91, 156, 244, 0.15);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover { color: var(--accent); }

/* ===== SECTIONS ===== */
.section {
  padding: 3.25rem 0;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.4rem);
  font-weight: 700;
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--accent);
  width: fit-content;
}

/* ===== SNAPSHOT ===== */
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.snapshot-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.snapshot-row:hover {
  border-color: var(--border-accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.snapshot-key {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.snapshot-val {
  color: var(--text);
  font-weight: 500;
}

.snapshot-spec-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 1rem 0 0.5rem;
}

.snapshot-spec-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.snapshot-spec-list li::marker { color: var(--accent); }

/* ===== TECH STACK (ATS) ===== */
.tech-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.tech-cat {
  font-weight: 600;
  color: var(--text);
  min-width: 10rem;
  flex-shrink: 0;
}

.tech-val {
  color: var(--text-muted);
}

@media (max-width: 520px) {
  .tech-row { flex-direction: column; gap: 0.2rem; }
  .tech-cat { min-width: 0; }
}

/* ===== EXPERIENCE ===== */
.exp-block {
  padding: 1.75rem 1.75rem;
  margin-bottom: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.exp-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.25s;
}

.exp-block:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.exp-block:hover::before { opacity: 1; }

.exp-block:last-child { margin-bottom: 0; }

.exp-company {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.2rem;
}

.exp-role {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.2rem;
}

.exp-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin: 0 0 0.5rem;
}

.exp-context {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 1rem;
}

.exp-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
}

.exp-list li { margin-bottom: 0.4rem; }
.exp-list li::marker { color: var(--accent); }

/* ===== PROJECTS ===== */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-item {
  padding: 1.35rem 1.6rem;
  margin-bottom: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.project-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.25s;
}

.project-item:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.project-item:hover::before { opacity: 1; }

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

.project-name {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.project-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
  line-height: 1.5;
}

/* ===== CERTIFICATIONS ===== */
.cert-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 1rem 0 0.4rem;
}

.cert-subtitle:first-of-type { margin-top: 0; }

.cert-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

.cert-list li::marker { color: var(--accent); }

/* ===== CONTACT (high visibility) ===== */
.contact {
  background: linear-gradient(180deg, var(--bg-alt) 0%, rgba(30, 33, 41, 0.95) 100%);
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.contact-cta {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1.25rem;
  text-shadow: 0 0 24px var(--glow);
}

.contact-block {
  max-width: 480px;
}

.contact-row {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.contact-label {
  font-weight: 600;
  color: var(--text);
  margin-right: 0.35rem;
}

.contact-block a {
  color: var(--accent);
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg);
}

.footer-line {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-line:last-child { margin-bottom: 0; }

/* ===== EDUCATION ===== */
.edu-line {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 1.1rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.edu-line:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
}

@media (max-width: 520px) {
  .tech-cat { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
