/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

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

html, body {
  font-family: 'Montserrat', sans-serif;
  background: #0d0d0d;
  color: #F6F6F6;
  scroll-behavior: smooth;
  overflow-x: hidden;
  cursor: none;
}

body, body * {
  user-select: none; /* Запрещаем выделение текста */
  -webkit-user-select: none; /* Для Safari */
  -moz-user-select: none; /* Для Firefox */
  -ms-user-select: none; /* Для Edge */
}

/* === Scroll Progress Bar === */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: #FDE4C3;
  z-index: 9999;
  transition: width 0.25s ease-out;
}

.subtitle {
  min-height: clamp(1.8rem, 4vw, 2.6rem); /* Фиксируем высоту контейнера */
  line-height: clamp(1.8rem, 4vw, 2.6rem); /* Устанавливаем одинаковую высоту строки */
  display: block; /* Гарантируем стабильную высоту */
}

/* === Typing Effect === */
#typing {
  background: linear-gradient(to right, #E50914, #ff4a4a, #89c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(229, 9, 20, 0.6);
}
/* === Navbar === */
.pill-navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

 .pill-navbar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 50px;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.pill-navbar a {
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 30px;
  transition: background 0.2s ease;
}

.pill-navbar a:hover,
.pill-navbar a.active {
  background: #E50914;
  color: #fff;
}

.pill-navbar .brand {
  font-weight: 700;
  font-size: 1rem;
  color: #E50914;
  margin-right: 20px;
  text-shadow: 0 0 6px rgba(229, 9, 20, 0.4);
}

.navbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #E50914;
  margin-right: 10px;
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
  background: linear-gradient(rgba(13, 13, 13, 0.85), rgba(13, 13, 13, 0.85)),
              url('{% static "portfolio/images/background_1.jpg" %}') center/cover no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  z-index: 1;
  overflow: hidden;
}

/* Optional animated glow overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  animation: heroGlow 6s ease-in-out infinite;
}
/* Scroll Down Arrow */
.arrow-down {
  width: 28px;
  height: 28px;
  border-left: 6px solid #E50914;
  border-bottom: 6px solid #fde4c3;
  transform: rotate(-45deg);
  animation: bounce 2s infinite;
  margin-top: 20px;
  border-radius: 4px;
  opacity: 0.9;
}

@keyframes bounce {
  0%, 100% {
    transform: rotate(-45deg) translateY(0);
  }
  50% {
    transform: rotate(-45deg) translateY(0);
  }
}


/* Avatar */
.avatar-hero {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #E50914;
  object-fit: cover;
  margin-bottom: 20px;
  z-index: 2;
}

/* Heading */
.hero h1 {
  font-size: 2.8rem;
  z-index: 2;
}

/* Subtitle Text */
.hero .subtitle {
  max-width: 700px;
  font-size: 1.3rem;
  color: #cccccc;
  margin-top: 10px;
  z-index: 2;
}

/* Scroll Indicator */
.scroll-down {
  position: absolute;
  bottom: 30px;
  font-size: 2.9rem;
  color: #fde4c3;
  animation: bounce 2s infinite;
  z-index: 2;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* === Section === */
.section {
  padding: 80px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  color: #E50914;
  margin-bottom: 40px;
}

.section-description {
  font-size: 1.05rem;
  color: #ccc;
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.section-divider {
  border: none;
  height: 2px;
  width: 60%;
  margin: 60px auto 20px;
  background: linear-gradient(to right, #E50914, transparent, #E50914);
  opacity: 0.4;
  animation: pulse-divider 2s infinite ease-in-out;
}

@keyframes pulse-divider {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* === About Section === */
.avatar-about {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
  margin-bottom: 20px;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  font-size: 1.1rem;
}

/* === Flip Cards === */
.flip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.flip-card {
  width: 280px;
  height: 300px;
  perspective: 1000px;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  backface-visibility: hidden;
  padding: 20px;
  background-color: #1C1C1C;
  color: #F6F6F6;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* === Dual Cards Section (Developer + What Drives Me) === */
.dual-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: stretch;
}

.dev-card, .drive-card {
  background: rgba(28, 28, 28, 0.9);
  border-radius: 16px;
  padding: 20px;
  flex: 1 1 300px;
  max-width: 480px;
  box-shadow: 0 0 15px rgba(229,9,20,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dev-card:hover, .drive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(229,9,20,0.2);
}

.dev-card h3, .what-drives h4 {
  color: #fde4c3;
  margin-bottom: 10px;
}

#devTyping {
  font-size: 1.1rem;
  color: #89c5fd;
  min-height: 2em;
}

.drive-card pre {
  background: #141414;
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.drive-card code.python {
  color: #89c5fd;
  font-family: 'Courier New', monospace;
}

.what-drives p {
  margin-top: 8px;
  color: #ccc;
  font-size: 1rem;
}

/* === Contact Section === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.contact-card, .contact-form-card {
  background: rgba(28, 28, 28, 0.9);
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.1);
  transition: all 0.3s ease;
}

.contact-card:hover, .contact-form-card:hover {
  background: rgba(35, 35, 35, 0.95);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.contact-card h4 {
  font-size: 1.3rem;
  color: #fde4c3;
  margin-bottom: 16px;
}

.contact-links {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-links li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.contact-links a {
  color: #89c5fd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-links a:hover {
  color: #E50914;
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input, .contact-form textarea {
  padding: 14px;
  background: #141414;
  border: 1px solid #e50914;
  color: #fff;
  border-radius: 8px;
  font-size: 1.05rem;
}

.contact-form input:focus, .contact-form textarea:focus {
  border-color: #ff4a4a;
  background-color: #1a1a1a;
  outline: none;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
}

.contact-form button {
  background: #e50914;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button:hover {
  background: #ff2e2e;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.4);
}

/* === General Links === */
a {
  color: #FDE4C3;
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

a:hover {
  color: #E50914;
  text-decoration: underline;
}

.section-label a {
  color: #FDE4C3;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.section-label a:hover {
  background: #E50914;
  color: #fff;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
  text-decoration: none;
}

/* === Footer === */
footer {
  background-color: #1a1a1a;
  text-align: center;
  padding: 30px;
  color: #b3b3b3;
  font-size: 1rem;
}

/* === Scroll Animations === */
.scroll-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Capsule Welcome === */
.capsule-welcome {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: black;
  color: white;
  padding: 1rem 2rem;
  border-radius: 40px;
  font-size: 1.1rem;
  opacity: 0;
  z-index: 9999;
  transition: all 0.6s ease-in-out;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.capsule-welcome.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* === Responsive === */
..section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 20px;
}

.section-header .section-title {
  margin: 0;
}

.section-header .section-label a {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  display: inline-block;
}

.section-header .section-label a:hover {
  background: #E50914;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
}

}
.typing-bar {
  font-size: 1.05rem;
  color: #89c5fd;
  min-height: 2em;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}

.code-snippet pre {
  background: #141414;
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 16px;
  color: #89c5fd;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.1);
}

.drive-info h4 {
  color: #fde4c3;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.drive-info p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
}
/* === About Section Layout === */
.about-flex {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Avatar Styling with Glow & 3D Border */
.avatar-3d {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #E50914;
  box-shadow: 
    0 0 35px rgba(229, 9, 20, 0.6), 
    0 0 80px rgba(229, 9, 20, 0.25);
  transform: rotateY(10deg) rotateX(6deg);
  transition: transform 0.5s ease, box-shadow 0.4s ease;
  background: radial-gradient(circle at center, #111 20%, #000);
  position: relative;
  z-index: 1;
}

.avatar-3d:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.07);
  box-shadow: 
    0 0 50px rgba(229, 9, 20, 0.9), 
    0 0 100px rgba(229, 9, 20, 0.3);
}

.avatar-frame {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #1a1a1a 40%, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.05), 0 0 20px rgba(229, 9, 20, 0.3);
}


/* Glass Card for About */
.about-glass-card {
  max-width: 600px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.1);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.about-line {
  color: #ccc;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Highlighted Text */
.highlight {
  color: #89c5fd;
  font-weight: 600;
}

/* Glowing Text */
.glow-text {
  background: linear-gradient(to right, #E50914, #ff4a4a, #89c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
    gap: 30px;
  }

  .about-glass-card {
    padding: 20px;
  }

  .avatar-3d {
    width: 160px;
    height: 160px;
  }
}
/* === Parallax Background for About === */
.parallax-about {
  background-image: url('../images/about-bg.jpg'); /* Replace with your actual image path */
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
  padding: 100px 20px;
  color: #f6f6f6;
}

.parallax-about::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(13, 13, 13, 0.75); /* dark overlay */
  backdrop-filter: blur(2px);
  z-index: -1;
}
/* Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

.image-modal.show {
  display: flex;
}

.modal-card {
  position: relative;
  background: #1C1C1C;
  border-radius: 12px;
  padding: 20px;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 20px #fde4c388;
  animation: zoomIn 0.3s ease;
}

.modal-card img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #FDE4C3;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
/* Full typing card enhancement */
.dev-card.full-typing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.typing-bar.expanded {
  width: 100%;
  font-size: 1.3rem;
  font-family: 'Fira Code', monospace;
  color: #FDE4C3;
  margin-top: 20px;
  min-height: 50px;
  animation: typingCursor 1s step-end infinite;
}

/* Optional blinking cursor if not already present */
@keyframes typingCursor {
  50% {
    border-right: 2px solid #FDE4C3;
  }
}
.dual-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 500px;
  min-height: 250px;
  color: #F6F6F6;
}

.dev-card.full-typing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.dev-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #FDE4C3;
}

.typing-bar.expanded {
  font-family: 'Fira Code', monospace;
  font-size: 1.1rem;
  color: #F6F6F6;
  border-right: 2px solid #fde4c3;
  white-space: nowrap;
  overflow: hidden;
  min-height: 30px;
}

/* Optional blinking cursor effect */
@keyframes blink-cursor {
  50% { border-color: transparent; }
}
.typing-bar.expanded {
  animation: blink-cursor 1s step-end infinite;
}

.code-snippet pre {
  background: #1a1a1a;
  color: #FDE4C3;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  overflow-x: auto;
  margin-bottom: 15px;
}

.drive-info h4 {
  color: #FDE4C3;
  margin-bottom: 10px;
}

.drive-info p {
  color: #ccc;
  line-height: 1.5;
}
.section-header {
  position: relative;
  margin-bottom: 20px;
}

.section-title {
  font-size: 2rem;
  color: #FDE4C3;
  text-align: center;
}

.section-label.top-right {
  position: absolute;
  top: 0;
  right: 0;
}
.contact-note {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.contact-links li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.contact-links a {
  color: #89c5fd;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-links a:hover {
  color: #E50914;
  text-decoration: underline;
}

.contact-icon {
  font-size: 1.2rem;
  color: #FDE4C3;
}
.contact-rect-card {
  max-width: 600px;
  margin: auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  text-align: center;
  backdrop-filter: blur(12px);
}

.contact-note {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #444;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.contact-form button {
  margin-top: 1rem;
  padding: 10px 18px;
  font-size: 1rem;
}
/* Make About layout responsive */
.about-flex.responsive-stack {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 1.5rem;
}

/* Avatar Circle Frame */
.avatar-frame {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: visible;
  position: relative;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #111 40%, #222);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

/* 3D Avatar Effect */
.avatar-3d {
  width: 180px;
  height: auto;
  transform: translateZ(20px) rotateY(8deg);
  transition: transform 0.6s ease, filter 0.4s;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
  animation: floatY 3s ease-in-out infinite;
  position: absolute;
  bottom: -20px;
}

/* Float Animation */
@keyframes floatY {
  0%   { transform: translateY(0) rotateY(8deg); }
  50%  { transform: translateY(-10px) rotateY(10deg); }
  100% { transform: translateY(0) rotateY(8deg); }
}

/* About Links */
.about-links {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.glow-link {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  font-weight: 600;
  color: #eee;
  text-decoration: none;
  box-shadow: 0 0 6px transparent;
}

.glow-link:hover {
  background: #E50914;
  color: #fff;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.5);
}

/* Scroll Animation Class */
.scroll-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}
.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive tweak for very small screens */
@media (max-width: 600px) {
  .avatar-3d {
    width: 140px;
    transform: translateZ(0px) rotateY(0deg);
  }
}
#certificate-carousel {
  min-height: 300px;
  transition: all 0.4s ease-in-out;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fde4c3;
  border: none;
  cursor: pointer;
  padding: 0 12px;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.prev-btn {
  left: -10px;
}

.next-btn {
  right: -10px;
}
.card-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #cccccc;
  margin-top: 8px;
  text-align: center;
  padding: 0 12px;
  opacity: 0.9;
}

.flip-card-front h3 {
  font-size: 1.2rem;
  color: #FDE4C3;
  margin-bottom: 6px;
}

.project-thumbnail {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.text-link {
  color: #ff6666;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.text-link:hover {
  color: #ff9999;
}
/* Animated Avatar Frame + Glow */
.avatar-frame-glow {
  position: relative;
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 80, 80, 0.2), rgba(255, 0, 100, 0.05));
  box-shadow:
    0 0 10px rgba(255, 100, 100, 0.2),
    0 0 20px rgba(255, 0, 80, 0.2),
    inset 0 0 15px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  animation: frameGlowPulse 4s infinite ease-in-out;
}

/* 3D Tilt & Zoom Effect on Hover */
.avatar-frame-glow:hover {
  transform: scale(1.06) rotateY(6deg) rotateX(6deg);
  box-shadow:
    0 0 16px rgba(255, 150, 150, 0.3),
    0 0 36px rgba(255, 0, 120, 0.4),
    inset 0 0 12px rgba(255, 255, 255, 0.06);
}

/* Avatar Image Styling */
.avatar-full {
  width: 100%;
  max-width: 280px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  backface-visibility: hidden;
  transition: transform 0.6s ease;
}

/* Animated Pulse Glow */
@keyframes frameGlowPulse {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(255, 80, 120, 0.2),
      0 0 20px rgba(255, 0, 100, 0.2),
      inset 0 0 8px rgba(255, 255, 255, 0.04);
  }
  50% {
    box-shadow:
      0 0 18px rgba(255, 100, 150, 0.35),
      0 0 36px rgba(255, 0, 120, 0.4),
      inset 0 0 12px rgba(255, 255, 255, 0.08);
  }
}

/* Avatar Container (Enable 3D) */
.about-avatar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  margin-bottom: 24px;
}

/* Optional CSS for small details on front */
.flip-card-front .small-text {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 10px;
}
/* Filter Bar Layout */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
}

/* Input + Select Styling */
.filter-input,
.filter-select {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #111;       /* deep black */
  color: #fde4c3;
  font-size: 1rem;
  transition: 0.3s ease;
  outline: none;
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.15);
}

/* Placeholder Color */
.filter-input::placeholder {
  color: #aaa;
}

/* Hover + Focus */
.filter-input:focus,
.filter-select:focus {
  border-color: #E50914;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
  background-color: #181818;
}

/* Dropdown arrow color (Firefox fix) */
.filter-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23fde4c3' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: #fde4c3;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 8px #fde4c3, 0 0 16px #E50914;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #fde4c3;
}

.hamburger {
  /*display: none;*/
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: fixed;
  top: 10px;
  right: 10px;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #fff;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
}

.nav-links.active {
  display: flex;
}

.emoji {
  background: none; /* Убираем градиент для эмодзи */
  -webkit-text-fill-color: initial; /* Возвращаем стандартный цвет эмодзи */
  text-shadow: none; /* Убираем тень для эмодзи */
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .pill-navbar {
    display: none; /* Скрываем навигацию по умолчанию */
    flex-direction: column;
    gap: 10px;
    position: fixed;
    top: 50px; /* Под гамбургером */
    /* left: 10px; /* Отступ слева */
    right: 10px; /* Отступ справа */
    /* width: calc(100% - 20px); /* Полная ширина с учётом отступов */
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    align-items: center;
    z-index: 1000;
    transform: none; /* Убираем сдвиг из десктопных стилей */
  }

  .pill-navbar.active {
    display: flex; /* Показываем меню при добавлении класса active */
  }

  .flip-card {
    width: 100%;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .dual-cards {
    flex-direction: column;
  }

  .hamburger {
    display: flex;
    margin: 0.3rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: static; /* Убираем абсолютное позиционирование для nav-links */
    width: 100%;
    background: transparent; /* Убираем лишний фон, так как он есть в pill-navbar */
    padding: 0; /* Убираем лишние отступы */
    border-radius: 0;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    margin: 10px 0;
  }

  /* Анимация гамбургера в крестик */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  .section-label.top-right {
    position: relative;
    text-align: end;
  }

}

.h300 {
  max-height: 300px;
}

.color-cream {
  color: #fde4c3;
}