/* ==========================================================================
   Shithin Ram — Personal Website & Portfolio
   Theme: Minimalist Obsidian & Crimson Red
   ========================================================================== */

:root {
  --bg: #09090b;
  --bg-subtle: #111114;
  --surface: #16161a;
  --surface-hover: #1c1c22;
  --border: #232329;
  --border-hover: #35353e;
  --text: #f4f4f7;
  --text-muted: #9494a0;
  --text-faint: #5c5c68;
  --accent-red: #ff3344;
  --accent-red-hover: #ff4d5c;
  --accent-red-faint: rgba(255, 51, 68, 0.09);
  --accent-red-border: rgba(255, 51, 68, 0.28);
  --accent-red-glow: rgba(255, 51, 68, 0.2);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max-width: 580px;
  --transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  padding: 60px 24px 80px;
  display: flex;
  flex-direction: column;
}

main {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

/* --------------------------------------------------------------------------
   Top Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red-glow);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulse-ring 2.4s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 51, 68, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(255, 51, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 51, 68, 0);
  }
}

/* --------------------------------------------------------------------------
   Typography & Sections
   -------------------------------------------------------------------------- */
h1 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 6px;
}

.subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.subtitle a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-hover);
  transition: var(--transition);
}

.subtitle a:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

h2.section-title {
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-faint);
  margin-top: 42px;
  margin-bottom: 16px;
}

p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 20px;
}

p.lead {
  color: var(--text);
  font-size: 15px;
}

p strong {
  color: var(--text);
  font-weight: 500;
}

a {
  color: inherit;
  transition: var(--transition);
}

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

/* --------------------------------------------------------------------------
   Item Lists (ilyasy & far.hn style minimal rows)
   -------------------------------------------------------------------------- */
.item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
  background-color: transparent;
  border: 1px solid transparent;
}

.item-row:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border);
}

.item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-title {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.item-row:hover .item-title {
  color: var(--accent-red);
}

.item-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 3px;
  background-color: var(--accent-red-faint);
  color: var(--accent-red);
  border: 1px solid var(--accent-red-border);
}

.item-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.item-right {
  font-size: 12.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  white-space: nowrap;
  margin-left: 16px;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-arrow {
  display: inline-block;
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition);
  color: var(--accent-red);
}

.item-row:hover .item-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Section Link Footer */
.section-action {
  margin-top: 14px;
  margin-bottom: 10px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.action-link:hover {
  color: var(--accent-red);
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   Cards & Content Blocks (for Projects, About, Services)
   -------------------------------------------------------------------------- */
.project-card {
  padding: 16px 18px;
  border-radius: 8px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--border-hover);
  background-color: var(--surface);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.project-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-red);
  background: var(--accent-red-faint);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--accent-red-border);
}

.project-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tech-pill {
  font-size: 11.5px;
  color: var(--text-faint);
  background-color: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.project-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
}

.project-link {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.project-link:hover {
  color: var(--accent-red);
}

/* --------------------------------------------------------------------------
   Timeline (Experience & About)
   -------------------------------------------------------------------------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 32px;
  position: relative;
  padding-left: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 3px;
  width: 1px;
  background-color: var(--border);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--border-hover);
  border: 1px solid var(--bg);
  transition: var(--transition);
}

.timeline-item.active::before {
  background-color: var(--accent-red);
  box-shadow: 0 0 6px var(--accent-red);
}

.timeline-role {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.timeline-company {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.timeline-date {
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

.timeline-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-points li {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  padding-left: 14px;
}

.timeline-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   Skills Grid & Services List
   -------------------------------------------------------------------------- */
.skills-group {
  margin-bottom: 28px;
}

.skills-group-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  font-size: 12px;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 5px;
  transition: var(--transition);
}

.skill-tag:hover {
  border-color: var(--accent-red-border);
  color: var(--text);
}

/* Service Offering Card */
.service-block {
  padding: 18px 20px;
  border-radius: 8px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.service-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.service-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.service-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--text-faint);
}

.service-deliverables li {
  position: relative;
  padding-left: 16px;
}

.service-deliverables li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-red);
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   Contact & Connect Row
   -------------------------------------------------------------------------- */
.contact-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  margin-top: 24px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.copy-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 12.5px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copy-btn:hover {
  background: var(--surface-hover);
  border-color: var(--accent-red-border);
  color: var(--accent-red);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  max-width: var(--max-width);
  width: 100%;
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-quote {
  font-style: italic;
  font-size: 13px;
  color: var(--text-faint);
  margin: 0;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.footer-clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   Toast Notification
   -------------------------------------------------------------------------- */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background-color: var(--surface);
  border: 1px solid var(--accent-red-border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px var(--accent-red-glow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive Layout
   -------------------------------------------------------------------------- */
@media (max-width: 540px) {
  body {
    padding: 36px 18px 60px;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 36px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .item-right {
    margin-left: 0;
    margin-top: 4px;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
