/* =============================================
   Marina Muchakova — Personal Website
   Style: Modern / Clean
   ============================================= */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* === CSS VARIABLES === */
:root {
  --white:         #FFFFFF;
  --bg:            #F8F9F7;
  --bg-card:       #FFFFFF;
  --text:          #1A1A1A;
  --text-muted:    #6B7280;
  --accent:        #0F766E;
  --accent-light:  #F0FDFA;
  --accent-hover:  #0D6B63;
  --border:        #E5E7EB;
  --shadow:        0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.08);
  --radius:        12px;
  --nav-height:    72px;
  --max-width:     1100px;
}

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background-color: var(--bg);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
  gap: 16px;
}

.section-title {
  font-size: 2rem;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-toggle {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s;
  font-family: inherit;
  letter-spacing: 0.03em;
}

.lang-toggle:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* === HERO === */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: 64px 24px;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.hero-greeting {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: var(--accent-light);
  padding: 6px 14px;
  border-radius: 20px;
}

.hero-name {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--text);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-photo-wrap {
  position: relative;
  display: inline-block;
}

.profile-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 25%, var(--accent-light) 25%);
  z-index: 0;
  opacity: 0.18;
}

.profile-photo {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 24px 64px rgba(15, 118, 110, 0.18), 0 8px 24px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
  border: 4px solid var(--white);
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-md);
}

.about-text .section-title {
  margin-bottom: 28px;
}

.about-bio p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
  font-size: 1.0625rem;
}

.placeholder-note {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.875rem;
  color: var(--accent-hover);
  margin-top: 8px;
  font-style: italic;
}

.about-links {
  margin-top: 32px;
}

/* === PROJECTS === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.project-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.project-name {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.project-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: letter-spacing 0.2s;
  display: inline-block;
}

.project-link:hover {
  letter-spacing: 0.03em;
}

/* === BLOG === */
.see-all {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  transition: letter-spacing 0.2s;
  white-space: nowrap;
}

.see-all:hover {
  letter-spacing: 0.03em;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  text-decoration: none;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.blog-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.blog-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 20px;
}

.blog-card-title {
  font-size: 1.125rem;
  margin-bottom: 10px;
  color: var(--text);
  transition: color 0.2s;
  line-height: 1.4;
}

.blog-card:hover .blog-card-title {
  color: var(--accent);
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

.blog-read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

/* === CONTACT === */
.contact-grid {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-info p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s;
  min-width: 260px;
  justify-content: center;
  color: var(--text);
}

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

.contact-icon {
  font-size: 1.125rem;
  line-height: 1;
}

/* Contact groups */
.contact-group {
  margin-bottom: 32px;
}

.contact-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.contact-links-row {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.contact-item-sm {
  min-width: auto;
  padding: 10px 18px;
  font-size: 0.9rem;
}

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

.footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* =============================================
   BLOG LISTING PAGE (blog.html)
   ============================================= */

.page-hero {
  padding: 72px 0 56px;
  text-align: center;
}

.page-hero .section-title {
  font-size: 2.5rem;
}

.page-hero .section-title::after {
  margin: 12px auto 0;
}

.page-hero-subtitle {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 1.0625rem;
}

.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding-bottom: 88px;
}

/* =============================================
   BLOG POST PAGE (blog/*.html)
   ============================================= */

.post-header {
  padding: 64px 0 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.post-back:hover {
  color: var(--accent);
}

.post-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  margin-bottom: 24px;
  line-height: 1.2;
  max-width: 760px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  flex-wrap: wrap;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-author-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.post-author-name {
  font-weight: 600;
  color: var(--text);
}

.post-separator {
  color: var(--border);
}

/* === POST BODY === */
.post-body {
  padding: 64px 0 88px;
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
}

.post-cover {
  max-width: 560px;
  margin: 8px auto 28px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.post-cover-compact {
  max-width: 420px;
  margin: 8px auto 24px;
}

.post-content h2 {
  font-size: 1.625rem;
  margin: 48px 0 18px;
  color: var(--text);
}

.post-content h3 {
  font-size: 1.25rem;
  margin: 36px 0 14px;
  color: var(--text);
}

.post-content p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 24px;
  font-size: 1.0625rem;
}

.post-content p:first-of-type {
  font-size: 1.125rem;
  color: var(--text);
}

.post-content ul,
.post-content ol {
  color: var(--text-muted);
  padding-left: 24px;
  margin-bottom: 24px;
  line-height: 1.85;
  font-size: 1.0625rem;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  background: var(--accent-light);
  border-radius: 0 8px 8px 0;
  margin: 32px 0;
  font-style: italic;
  color: var(--text);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* === SHARE SECTION === */
.post-share {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.share-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.share-btn.success {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* === MOBILE NAVIGATION === */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 99;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 48px 24px 56px;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .profile-photo {
    max-width: 240px;
    margin: 0 auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-image img {
    max-width: 260px;
    margin: 0 auto;
    aspect-ratio: 1;
  }

  /* Section header */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Post */
  .post-meta {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 64px 0;
  }

  .btn {
    padding: 11px 22px;
    font-size: 0.9rem;
  }

  .hero-name {
    font-size: 2.25rem;
  }
}
