/* ——— Общие сбросы и базовые стили ——— */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
  transition: background-color 0.4s ease, color 0.4s ease;
  min-height: 100vh;
}

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

/* ——— СВЕТЛАЯ ТЕМА (по умолчанию) ——— */
body.theme-light {
  background-color: #f5f5f5;
  color: #1a1a1a;
}

body.theme-light .header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #1a1a1a;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

body.theme-light .logo {
  color: #1a1a1a;
}

body.theme-light .logo-accent {
  color: #cc0000;
}

body.theme-light .nav-link {
  color: #4a4a4a;
}

body.theme-light .nav-link:hover,
body.theme-light .nav-link.active {
  color: #cc0000;
  border-bottom-color: #cc0000;
}

body.theme-light .home-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
}

body.theme-light .home-title {
  color: #1a1a1a;
}

body.theme-light .home-title span {
  color: #cc0000;
}

body.theme-light .home-title span::after {
  background: rgba(204, 0, 0, 0.15);
}

body.theme-light .home-subtitle {
  color: #555555;
}

body.theme-light .cta-button {
  background: #1a1a1a;
  color: #ffffff;
}

body.theme-light .cta-button:hover {
  background: #cc0000;
  box-shadow: 0 12px 32px rgba(204, 0, 0, 0.3);
}

body.theme-light .glow {
  background: radial-gradient(circle at 30% 30%, rgba(204, 0, 0, 0.12), rgba(26, 26, 26, 0.04));
}

body.theme-light .about-section {
  background: #ffffff;
}

body.theme-light .about-text h2 {
  color: #1a1a1a;
}

body.theme-light .about-text h2::after {
  background: #cc0000;
}

body.theme-light .about-text p {
  color: #555555;
}

body.theme-light .stats div {
  color: #666666;
}

body.theme-light .stats span {
  color: #1a1a1a;
}

body.theme-light .about-placeholder {
  background: linear-gradient(145deg, #eeeeee, #dddddd);
  border: 2px solid #1a1a1a;
}

body.theme-light .projects-section {
  background: #f8f8f8;
}

body.theme-light .projects-headline {
  color: #1a1a1a;
}

body.theme-light .projects-headline::after {
  background: #cc0000;
}

body.theme-light .projects-layout {
  background: #ffffff;
  border: 2px solid #1a1a1a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

body.theme-light .thumbnails-panel {
  background: #f0f0f0;
  border: 1px solid #ddd;
}

body.theme-light .thumbnails-scroll::-webkit-scrollbar-thumb {
  background: #cc0000;
}

body.theme-light .thumbnail-item {
  background: #ffffff;
}

body.theme-light .thumbnail-item:hover {
  border-color: #cc0000;
  box-shadow: 0 8px 24px rgba(204, 0, 0, 0.15);
}

body.theme-light .thumbnail-item.active-thumb {
  border-color: #cc0000;
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.2);
}

body.theme-light .thumb-label {
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  border-top: 1px solid #e0e0e0;
}

body.theme-light .project-preview {
  background: #ffffff;
  border: 1px solid #e0e0e0;
}

body.theme-light .preview-placeholder {
  color: #999999;
}

body.theme-light .preview-placeholder span {
  color: #666666;
}

body.theme-light .preview-active {
  background: #ffffff;
}

body.theme-light .preview-info {
  background: #ffffff;
  border-top: 2px solid #1a1a1a;
}

body.theme-light .preview-info h3 {
  color: #1a1a1a;
}

body.theme-light .preview-info p {
  color: #555555;
}

body.theme-light .footer {
  border-top: 2px solid #1a1a1a;
  background: #ffffff;
  color: #555555;
}

body.theme-light .social-links a:hover {
  color: #cc0000;
}

body.theme-light .theme-toggle {
  background: #f0f0f0;
  border: 2px solid #1a1a1a;
  color: #1a1a1a;
}

body.theme-light .theme-toggle:hover {
  background: #e0e0e0;
  border-color: #cc0000;
}

/* ——— ТЁМНАЯ ТЕМА ——— */
body.theme-dark {
  background-color: #0a0a0f;
  color: #eaeef2;
}

body.theme-dark .header {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #cc0000;
  box-shadow: 0 2px 20px rgba(204, 0, 0, 0.1);
}

body.theme-dark .logo {
  color: #eaeef2;
}

body.theme-dark .logo-accent {
  color: #ff3333;
}

body.theme-dark .nav-link {
  color: #9aa4b8;
}

body.theme-dark .nav-link:hover,
body.theme-dark .nav-link.active {
  color: #ff3333;
  border-bottom-color: #ff3333;
}

body.theme-dark .home-section {
  background: linear-gradient(135deg, #0a0a0f 0%, #141420 100%);
}

body.theme-dark .home-title {
  color: #eaeef2;
}

body.theme-dark .home-title span {
  color: #ff3333;
}

body.theme-dark .home-title span::after {
  background: rgba(255, 51, 51, 0.2);
}

body.theme-dark .home-subtitle {
  color: #b0bcca;
}

body.theme-dark .cta-button {
  background: #cc0000;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(204, 0, 0, 0.3);
}

body.theme-dark .cta-button:hover {
  background: #ff3333;
  box-shadow: 0 12px 32px rgba(204, 0, 0, 0.5);
  transform: scale(1.03);
}

body.theme-dark .glow {
  background: radial-gradient(circle at 30% 30%, rgba(204, 0, 0, 0.2), rgba(10, 10, 15, 0.05));
  filter: blur(60px);
}

body.theme-dark .about-section {
  background: #0e0e16;
}

body.theme-dark .about-text h2 {
  color: #eaeef2;
}

body.theme-dark .about-text h2::after {
  background: #ff3333;
}

body.theme-dark .about-text p {
  color: #c8d0dc;
}

body.theme-dark .stats div {
  color: #9aa4b8;
}

body.theme-dark .stats span {
  color: #eaeef2;
}

body.theme-dark .about-placeholder {
  background: linear-gradient(145deg, #1a1a2e, #2a2a3e);
  border: 2px solid #cc0000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

body.theme-dark .projects-section {
  background: #0a0a0f;
}

body.theme-dark .projects-headline {
  color: #eaeef2;
}

body.theme-dark .projects-headline::after {
  background: #ff3333;
}

body.theme-dark .projects-layout {
  background: rgba(20, 20, 30, 0.6);
  border: 2px solid #cc0000;
  box-shadow: 0 8px 32px rgba(204, 0, 0, 0.08);
}

body.theme-dark .thumbnails-panel {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(204, 0, 0, 0.2);
}

body.theme-dark .thumbnails-scroll::-webkit-scrollbar-thumb {
  background: #cc0000;
}

body.theme-dark .thumbnail-item {
  background: #16161f;
  border-color: transparent;
}

body.theme-dark .thumbnail-item:hover {
  border-color: #ff3333;
  box-shadow: 0 8px 24px rgba(204, 0, 0, 0.2);
}

body.theme-dark .thumbnail-item.active-thumb {
  border-color: #ff3333;
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.3);
}

body.theme-dark .thumb-label {
  background: rgba(0, 0, 0, 0.7);
  color: #eaeef2;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.theme-dark .project-preview {
  background: #0e0e16;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.theme-dark .preview-placeholder {
  color: #5a6478;
}

body.theme-dark .preview-placeholder span {
  color: #8a94a8;
}

body.theme-dark .preview-active {
  background: #0e0e16;
}

body.theme-dark .preview-info {
  background: rgba(10, 10, 16, 0.85);
  border-top: 2px solid #cc0000;
}

body.theme-dark .preview-info h3 {
  color: #f0f4ff;
}

body.theme-dark .preview-info p {
  color: #b0bcca;
}

body.theme-dark .footer {
  border-top: 2px solid #cc0000;
  background: #0a0a0f;
  color: #6a7488;
}

body.theme-dark .social-links a:hover {
  color: #ff3333;
}

body.theme-dark .theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid #cc0000;
  color: #eaeef2;
}

body.theme-dark .theme-toggle:hover {
  background: rgba(204, 0, 0, 0.2);
  border-color: #ff3333;
}

/* ——— Шапка ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  gap: 1rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.4s ease;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 2rem;
  color: #cc0000;
  font-weight: 800;
  line-height: 1;
}

.logo-text {
  font-weight: 700;
}

.logo-accent {
  font-weight: 800;
  transition: color 0.4s ease;
}

.nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.25s ease, border-bottom 0.25s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ——— Переключатель тем ——— */
.theme-toggle-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 60px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f0f0f0;
  border: 2px solid #1a1a1a;
  color: #1a1a1a;
  letter-spacing: 0.01em;
  min-width: 120px;
  justify-content: center;
}

.theme-toggle:hover {
  transform: scale(1.03);
}

.theme-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.theme-label {
  min-width: 60px;
  text-align: center;
}

/* ——— Секции общие ——— */
.section {
  padding: 4rem 3rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* ——— Главная ——— */
.home-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75vh;
  padding-top: 2rem;
  padding-bottom: 2rem;
  position: relative;
  transition: background 0.4s ease;
}

.home-content {
  max-width: 640px;
}

.home-title {
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  transition: color 0.4s ease;
}

.home-title span {
  position: relative;
  transition: color 0.4s ease;
}

.home-title span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  transition: background 0.4s ease;
}

.home-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  transition: color 0.4s ease;
}

.cta-button {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  border-radius: 60px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
}

.home-decoration {
  position: relative;
  width: 320px;
  height: 320px;
}

.glow {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: background 0.4s ease;
}

/* ——— О нас ——— */
.about-section {
  padding-top: 2rem;
  padding-bottom: 3rem;
  transition: background 0.4s ease;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  transition: color 0.4s ease;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 4px;
  border-radius: 4px;
  transition: background 0.4s ease;
}

.about-text p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  transition: color 0.4s ease;
}

.stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
}

.stats div {
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.4s ease;
}

.stats span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  transition: color 0.4s ease;
}

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

.about-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 28px;
  transition: all 0.4s ease;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"><rect width="100" height="100" fill="%23eee" /><text x="10" y="55" font-family="Inter" font-size="12" fill="%23999" font-weight="600">Архитектура</text></svg>');
  background-size: cover;
  background-position: center;
}

body.theme-dark .about-placeholder {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"><rect width="100" height="100" fill="%23222" /><text x="10" y="55" font-family="Inter" font-size="12" fill="%23555" font-weight="600">Архитектура</text></svg>');
}

/* ——— Проекты ——— */
.projects-section {
  padding-top: 1rem;
  padding-bottom: 4rem;
  transition: background 0.4s ease;
}

.projects-headline {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  transition: color 0.4s ease;
}

.projects-headline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 4px;
  border-radius: 4px;
  transition: background 0.4s ease;
}

/* --- Название проекта между миниатюрами и изображениями --- */
.project-title-display {
  text-align: center;
  padding: 1rem 1rem 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeTitleIn 0.5s ease forwards;
}

body.theme-light .project-title-display {
  color: #1a1a1a;
}

body.theme-dark .project-title-display {
  color: #eaeef2;
}

.project-title-display .title-accent {
  color: #cc0000;
}

body.theme-dark .project-title-display .title-accent {
  color: #ff3333;
}

@keyframes fadeTitleIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-layout {
  display: flex;
  gap: 2rem;
  height: 728px;
  border-radius: 32px;
  padding: 1.2rem;
  transition: all 0.4s ease;
}

/* Левая панель с миниатюрами (скролл) */
.thumbnails-panel {
  flex: 0 0 300px;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.thumbnails-scroll {
  height: 100%;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
}

.thumbnails-scroll::-webkit-scrollbar {
  width: 5px;
}

.thumbnails-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.thumbnails-scroll::-webkit-scrollbar-thumb {
  border-radius: 12px;
  transition: background 0.4s ease;
}

.thumbnail-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.thumbnail-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.thumbnail-item:hover img {
  filter: brightness(0.95);
}

.thumb-label {
  display: block;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.4s ease;
}

/* Центральная область предпросмотра */
.project-preview {
  flex: 1;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.preview-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.preview-placeholder {
  text-align: center;
}

.preview-placeholder span {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  transition: color 0.4s ease;
}

.preview-placeholder small {
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Активный превью (плавное появление) */
.preview-active {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: fadeSlideIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
  transition: background 0.4s ease;
}

@keyframes fadeSlideIn {
  0% { 
    opacity: 0; 
    transform: translateY(16px) scale(0.96); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

.preview-image {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-info {
  padding: 1.5rem 2rem;
  transition: all 0.4s ease;
}

.preview-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  transition: color 0.4s ease;
}

.preview-info p {
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color 0.4s ease;
}

/* ——— Футер ——— */
.footer {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 3rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.4s ease;
}

.social-links {
  display: flex;
  gap: 1.8rem;
}

.social-links a {
  transition: color 0.2s ease;
  font-weight: 600;
}

/* ——— Адаптация под разрешение 1920x1080 ——— */
@media (min-width: 1920px) {
  .section {
    padding: 4rem 2rem;
    max-width: 1800px;
  }
  
  .header {
    padding: 1rem 2rem;
  }
  
  .footer {
    padding: 2rem 2rem 2.5rem;
    max-width: 1800px;
  }
  
  .home-content {
    max-width: 700px;
  }
  
  .home-title {
    font-size: 4.8rem;
  }
  
  .project-title-display {
    font-size: 2.2rem;
  }
  
  .projects-layout {
    height: 780px;
  }
  
  .thumbnails-panel {
    flex: 0 0 320px;
  }
  
  .preview-info {
    padding: 1.8rem 2.5rem;
  }
  
  .preview-info h3 {
    font-size: 1.6rem;
  }
  
  .preview-info p {
    font-size: 1.05rem;
  }
}

/* ——— Для экранов от 1440px до 1919px ——— */
@media (min-width: 1440px) and (max-width: 1919px) {
  .section {
    padding: 4rem 2.5rem;
    max-width: 1600px;
  }
  
  .header {
    padding: 1rem 2.5rem;
  }
  
  .footer {
    padding: 2rem 2.5rem 2.5rem;
    max-width: 1600px;
  }
  
  .project-title-display {
    font-size: 2rem;
  }
}

/* ——— Планшеты и ноутбуки ——— */
@media (max-width: 1024px) {
  .home-title { font-size: 3.2rem; }
  .about-grid { grid-template-columns: 1fr; }
  .project-title-display { font-size: 1.5rem; padding: 0.75rem 0.75rem 0.3rem; }
  .projects-layout { 
    flex-direction: column; 
    height: auto; 
    min-height: 780px;
  }
  .thumbnails-panel { flex: unset; height: 220px; width: 100%; }
  .thumbnails-scroll { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
  .thumbnail-item { flex: 0 0 200px; }
  .project-preview { min-height: 520px; }
  .section {
    padding: 3rem 2rem;
    max-width: 100%;
  }
}

/* ——— Мобильные устройства ——— */
@media (max-width: 768px) {
  .header { 
    flex-direction: column; 
    align-items: stretch; 
    padding: 0.8rem 1.2rem; 
  }
  .header-right { 
    flex-direction: column; 
    align-items: stretch; 
    gap: 0.8rem;
  }
  .nav { 
    justify-content: center; 
    gap: 1rem;
    flex-wrap: wrap;
  }
  .nav-link {
    font-size: 0.8rem;
  }
  .section { 
    padding: 2rem 1.2rem; 
    max-width: 100%;
  }
  .home-title { font-size: 2.6rem; }
  .home-section { 
    flex-direction: column; 
    text-align: center; 
    min-height: auto;
    padding: 2rem 0;
  }
  .home-decoration { width: 200px; height: 200px; margin-top: 2rem; }
  .home-content { max-width: 100%; }
  .stats { flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
  .about-text h2 { font-size: 2rem; }
  .about-text h2::after { width: 40px; }
  .projects-headline { font-size: 2rem; }
  .projects-headline::after { width: 40px; }
  .project-title-display { font-size: 1.3rem; padding: 0.5rem 0.5rem 0.2rem; }
  .projects-layout { min-height: 650px; padding: 0.8rem; }
  .thumbnails-panel { height: 160px; }
  .thumbnail-item { flex: 0 0 150px; }
  .project-preview { min-height: 390px; }
  .preview-info { padding: 1rem; }
  .preview-info h3 { font-size: 1.1rem; }
  .footer { 
    flex-direction: column; 
    align-items: flex-start; 
    padding: 1.5rem 1.2rem;
    max-width: 100%;
  }
  .logo { font-size: 1.1rem; }
  .theme-toggle { 
    padding: 0.4rem 0.8rem; 
    font-size: 0.75rem; 
    min-width: 100px;
  }
  .theme-label { min-width: 50px; }
  .theme-toggle-wrapper { align-self: center; width: 100%; }
  .theme-toggle { width: 100%; }
}

@media (max-width: 480px) {
  .header-right { gap: 0.5rem; }
  .nav { gap: 0.6rem; }
  .nav-link { font-size: 0.7rem; }
  .home-title { font-size: 2rem; }
  .home-subtitle { font-size: 1rem; }
  .cta-button { padding: 0.7rem 1.8rem; font-size: 0.9rem; }
  .project-title-display { font-size: 1.1rem; padding: 0.3rem 0.3rem 0.1rem; }
  .theme-toggle { font-size: 0.7rem; min-width: 80px; padding: 0.3rem 0.6rem; }
  .projects-layout { min-height: 550px; padding: 0.6rem; }
  .project-preview { min-height: 330px; }
  .section { padding: 1.5rem 0.8rem; }
}