/* =============================================
   YOGYA CHUGH - CLEAN & ORGANIZED (RAMX VIBE)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --bg: #fafafa; /* Subtle off-white background */
  --card-bg: #ffffff;
  --text-main: #111111;
  --text-muted: #737373; /* Smooth gray */
  --border-light: #e5e5e5;
  --accent: #111111;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

a:hover {
  border-bottom-color: var(--text-main);
}

/* Container */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 20px 100px;
}

/* Typography */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

p {
  color: var(--text-muted);
}

/* Header / Masthead (Media Block Layout) */
.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 2rem;
}

.header-text {
  flex-grow: 1;
}

.monogram-container {
  flex-shrink: 0;
  margin-left: 20px;
}

.monogram-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.header-role {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1.1rem;
  margin-top: 0.75rem;
}

.contact-info span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-info a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  border-bottom: none;
}

.contact-info a:hover {
  color: var(--text-main);
  border-bottom: none;
}

/* -------------------------------------
   CARD ITEMS (Projects, Experience)
   ------------------------------------- */
.card-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 1rem;
  display: flex;
  gap: 20px;
}

.card-content {
  flex-grow: 1;
}

.card-thumbnail {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  object-fit: cover;
}

@media (max-width: 600px) {
  .card-item {
    flex-direction: column;
  }
  .card-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.card-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-links {
  display: flex;
  gap: 12px;
}

.card-links a {
  color: var(--text-muted);
  border-bottom: none;
  font-size: 1.1rem;
}

.card-links a:hover {
  color: var(--text-main);
  border-bottom: none;
}

.card-title a {
  border-bottom: none;
}

.card-title a:hover {
  border-bottom: none;
  opacity: 0.7;
}

.card-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-body p {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* -------------------------------------
   LIST ITEMS (Blogs)
   ------------------------------------- */
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

.list-item:last-child {
  border-bottom: none;
}

.list-content {
  flex-grow: 1;
  padding-right: 20px;
}

.list-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.list-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.list-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.list-action {
  font-size: 0.95rem;
  color: #a3a3a3;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.list-item:hover .list-action {
  color: var(--text-main);
}

/* -------------------------------------
   BLOG ARTICLE STYLES
   ------------------------------------- */
.blog-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

.blog-article {
  max-width: 650px;
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--text-main);
}

.blog-article p {
  margin-bottom: 1.5rem;
}

.blog-article blockquote {
  border-left: 3px solid var(--border-light);
  padding-left: 1.25rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.blog-article pre {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 2rem 0;
}

.blog-article code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.blog-article strong {
  font-weight: 600;
}

.drop-cap {
  float: left;
  font-size: 3.5rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 8px;
  font-family: 'Playfair Display', serif;
  color: var(--text-main);
}

/* -------------------------------------
   SKILLS & EXPERIENCE
   ------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 2rem;
}

.skills-category {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 2rem;
}

.skills-row {
  display: flex;
  flex-direction: row;
  align-items: baseline;
}

.skills-category {
  width: 180px;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-main);
}

.skills-list {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .skills-row {
    flex-direction: column;
    gap: 4px;
  }
}

.item-group {
  margin-bottom: 2rem;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.item-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
}

.item-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.item-body p, .item-body ul {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.item-body ul {
  padding-left: 20px;
  margin-top: 8px;
}

.item-body li {
  margin-bottom: 6px;
}

/* -------------------------------------
   BUTTONS
   ------------------------------------- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  margin-top: 1rem;
}

.btn-outline:hover {
  background-color: #f3f4f6;
}

.center-box {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* Floating Dock Navigation (Premium) */
.floating-dock {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 100px;
  padding: 6px 6px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-dock:hover {
  transform: translateX(-50%) translateY(-2px);
}

.dock-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.dock-link i {
  font-size: 1.05rem;
}

.dock-link.active {
  color: #fff;
  background: var(--text-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dock-link:not(.active):hover {
  color: var(--text-main);
  background: rgba(0,0,0,0.04);
}
