/* =====================================================
   StrongNote — Modern Glass Redesign
   Dark/Light theme, gradient accent, glassmorphism
   ===================================================== */

/* ===== Fonts ===== */
h1, h2, h3, h4, h5, h6,
a, button, input, textarea,
.nav-links a, .btn, .gradient-btn,
.home-title, .home-subtitle, .section-title,
.card-title, .post-title, .skill-label,
body {
  font-family: var(--font-family);
}

/* ===== Base Reset & Body ===== */
body {
  background: var(--bg-primary);
  margin: 0;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle background pattern for depth visible through glass */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(123, 47, 190, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Glass Base ===== */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: all 0.35s ease;
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .glass {
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
  }
}
.glass:hover {
  box-shadow: var(--glass-shadow), var(--neon-glow);
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: var(--gradient-accent);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ===== Gradient Button ===== */
.gradient-btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: var(--neon-glow);
  transition: all 0.3s ease;
}
.gradient-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--btn-hover-glow);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--glass-border);
  color: var(--text-primary);
  padding: 12px 34px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  border-color: var(--accent);
  box-shadow: var(--neon-glow);
  color: var(--text-heading);
}

/* ===== Section Spacing ===== */
.section-padding {
  padding: 80px 0;
}

/* ===== Navigation ===== */
.nav-bar,
.nav-bar nav,
.nav-bar .nav-links {
  line-height: 1;
  height: auto;
}
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--nav-shadow);
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .nav-bar {
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
  }
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
/* ===== Animated Gradient Logo ===== */
.nav-brand {
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  /* Градиентный текст */
  background: linear-gradient(90deg,
    var(--logo-c1) 0%,
    var(--logo-c2) 33%,
    var(--logo-c3) 66%,
    var(--logo-c1) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Неон — два слоя text-shadow (работает с background-clip: text) */
  text-shadow:
    0 0 7px var(--logo-glow-1),
    0 0 18px var(--logo-glow-2);
  /* Анимация: fade-in при загрузке + бесконечное переливание */
  animation:
    logoFadeSlideIn 0.6s ease-out,
    logoFlow 5s ease-in-out 0.6s infinite;
  transition: transform 0.3s ease, filter 0.3s ease;
  will-change: background-position;
  cursor: pointer;
  /* Лёгкая подложка-ореол */
  position: relative;
}
.nav-brand::after {
  content: '';
  position: absolute;
  inset: -8px -12px;
  border-radius: 8px;
  background: radial-gradient(ellipse at center,
    var(--logo-glow-1) 0%,
    transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}
.nav-brand:hover {
  transform: scale(1.06);
  filter: brightness(1.2);
}
.nav-brand:hover::after {
  opacity: 0.5;
}

/* Иконка-монограмма S */
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--logo-c1), var(--logo-c2));
  color: #fff;
  -webkit-text-fill-color: #fff;
  flex-shrink: 0;
}

@keyframes logoFlow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes logoFadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1;
  /* Сброс Materialize: nav { height:56px; line-height:56px; background:red; box-shadow } */
  height: auto;
  width: auto;
  background: transparent;
  box-shadow: none;
  color: var(--text-secondary);
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  padding: 6px 12px;
  transition: all 0.3s ease;
}
.mobile-menu-toggle:hover {
  border-color: var(--accent);
}

/* Mobile dropdown */
.mobile-menu {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .mobile-menu {
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
  }
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }

/* ===== Chat Widget — фиксированное позиционирование ===== */
chat-widget {
  position: fixed !important;
  z-index: 9999 !important;
  bottom: var(--chat-host-bottom, 20px);
  right: var(--chat-host-right, 20px);
}

/* ===== Background Layers ===== */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.bg-layer canvas {
  display: block;
}

/* ===== Hero Section ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 100px 20px 60px;
}
.hero-section canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
}
/* Оверлей поверх сферы — читаемость текста */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
[data-theme="dark"] .hero-overlay {
  background: radial-gradient(ellipse at center, transparent 30%, rgba(10, 10, 15, 0.5) 100%);
}
[data-theme="light"] .hero-overlay {
  background: radial-gradient(ellipse at center, transparent 30%, rgba(245, 245, 247, 0.5) 100%);
}
/* Сфера затухает при скролле */
#particle-core {
  transition: opacity 0.3s ease;
}
.hero-scrolled #particle-core {
  opacity: 0.2;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-heading);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== About Section ===== */
.about-card {
  padding: 40px;
}
.about-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.about-photo {
  flex: 0 0 260px;
}
.about-photo img {
  width: 100%;
  border-radius: 16px;
  border: 2px solid var(--glass-border);
}
.about-text {
  flex: 1;
  min-width: 280px;
}
.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.about-text p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.about-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.about-tag {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.about-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 20px;
}
.about-info-row .info-item {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.about-info-row .info-item strong {
  color: var(--text-primary);
}
.about-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.about-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
}
.about-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--neon-glow);
}

/* ===== Skills Section ===== */
.skills-card {
  padding: 40px;
}
.skills-note {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
  font-size: 0.9rem;
}
.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.skill-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.skill-label {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.skill-bar {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--gradient-accent);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Experience & Education Cards ===== */
/* Bootstrap col-sm-4 внутри OwlCarousel — сброс до 100% */
#experienceSlider .col-sm-4,
#educationSlider .col-sm-4 {
  width: 100%;
  float: none;
}
.exp-card,
.edu-card {
  padding: 32px;
  margin-bottom: 20px;
}
.exp-card h3,
.edu-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-heading);
}
.exp-card .exp-place,
.edu-card .edu-place {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.exp-card .exp-date,
.edu-card .edu-date {
  display: inline-block;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 20px;
  padding: 2px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.exp-card ul,
.edu-card ul {
  color: var(--text-secondary);
  padding-left: 20px;
  margin: 8px 0 0;
}
.exp-card ul li,
.edu-card ul li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.exp-grid,
.edu-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== Services Section ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.service-card {
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.service-card .service-icon {
  font-size: 28px;
  margin-bottom: 4px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}
.service-card .service-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}
.service-card .service-price {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 4px 0;
}
.service-card .gradient-btn,
.service-card .btn {
  margin-top: 8px;
  padding: 10px 28px;
  font-size: 14px;
}

/* ===== Blog Cards (Homepage + Blog page) ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.blog-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card .blog-card-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.blog-card h3 a {
  text-decoration: none;
}
.blog-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}
.blog-card .gradient-btn {
  align-self: flex-start;
  padding: 8px 24px;
  font-size: 13px;
}
.view-all-wrap {
  text-align: center;
  margin-top: 32px;
}

/* ===== Contact Section ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}
.contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 1rem;
}
.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.contact-info ul li {
  margin-bottom: 8px;
}
.contact-info ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-info ul li a:hover {
  color: var(--accent);
}
.contact-social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}
.contact-social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--neon-glow);
}

/* Contact Form */
.contact-form-wrap input,
.contact-form-wrap textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 16px;
  transition: all 0.3s;
  margin-bottom: 16px;
  font-family: var(--font-family);
}
.contact-form-wrap textarea {
  min-height: 130px;
  resize: vertical;
}
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-glow);
  outline: none;
}
.contact-form-wrap .form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
  margin-left: 4px;
}
.contact-form-wrap .gradient-btn {
  width: 100%;
}

/* Scroll-to-top button — fixed at bottom-right */
.call-to-home {
  position: fixed !important;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.call-to-home.btn-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
.call-to-home.btn-show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Footer ===== */
.footer-bar {
  padding: 24px 0;
  margin-top: 20px;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--neon-glow);
}
.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Section Title Common ===== */
.section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}
.section-title-wrap h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-title-wrap p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Reading Progress ===== */
#reading-progress {
  background: var(--gradient-accent);
}

/* ===== Chat Widget Launcher Override ===== */
/* Keep the FAB-style chat launcher visible over dark bg */
#home .hire-me-btn,
.chat-trigger {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: var(--neon-glow);
  transition: all 0.3s ease;
}
#home .hire-me-btn:hover,
.chat-trigger:hover {
  transform: translateY(-3px);
  box-shadow: var(--btn-hover-glow);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ===== Materialize Overrides ===== */
/* Keep existing JS working but with new colors */
.white { background: transparent !important; }
.grey.lighten-5 { background: transparent !important; }
nav ul a { color: var(--text-secondary) !important; }
nav ul a:hover { background: transparent !important; color: var(--accent) !important; }
.side-nav { background: var(--nav-bg); }
.side-nav a { color: var(--text-secondary) !important; }
.side-nav a:hover { background: var(--chip-bg) !important; color: var(--accent) !important; }
.side-nav .about-me { border-color: var(--border-color); }
.side-nav .about-me p { color: var(--text-secondary) !important; }

/* Materialize input fields */
.input-field input,
.input-field textarea {
  color: var(--text-primary) !important;
  border-color: var(--input-border) !important;
}
.input-field input:focus,
.input-field textarea:focus {
  border-color: var(--input-focus-border) !important;
  box-shadow: var(--input-focus-glow) !important;
}
.input-field label { color: var(--text-secondary) !important; }
.input-field input[type=text]:focus + label,
.input-field input[type=email]:focus + label,
.input-field textarea:focus + label {
  color: var(--accent) !important;
}

/* Owl Carousel */
.owl-theme .owl-dots .owl-dot span { background: var(--border-color); }
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span { background: var(--accent); }
.owl-theme .owl-nav [class*='owl-'] { color: var(--text-secondary) !important; }
.owl-theme .owl-nav [class*='owl-']:hover { color: var(--accent) !important; background: transparent !important; }

/* Reveal cards (experience/education) */
.card-reveal {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

/* SweetAlert override */
.sweet-alert {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
}

/* CKEditor content in single posts */
.single-post-content { color: var(--text-primary); }
.single-post-content h1, .single-post-content h2,
.single-post-content h3, .single-post-content h4 { color: var(--text-heading); }
.single-post-content p, .single-post-content li { color: var(--text-secondary); }
.single-post-content blockquote {
  border-left-color: var(--accent);
  background: var(--glass-bg);
  color: var(--text-secondary);
}
.single-post-content pre {
  background: var(--chip-bg) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--glass-border);
}
.single-post-content code {
  background: var(--chip-bg);
  color: var(--accent);
}

/* ===== Scroll Behaviours ===== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ===== Mobile Navigation ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: block; }
  .section-padding { padding: 50px 0; }
  .about-layout { flex-direction: column; align-items: center; }
  .about-photo { flex: 0 0 auto; max-width: 220px; }
  .about-info-row { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; padding: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .about-card, .skills-card, .exp-card, .edu-card { padding: 24px; }
  .nav-container { padding: 6px 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-title { font-size: 1.7rem; }
  .contact-social-links { flex-wrap: wrap; }
  /* Отключаем 3D-сферу на очень маленьких экранах */
  #particle-core { display: none; }
}
