:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #4338ca;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --light: #f8fafc;
  --gray-light: #cbd5e1;
  --gray: #94a3b8;
  --accent: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --userActive: #7174f2;
}

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

body,
html {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  background-color: var(--dark);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--light);
  line-height: 1.7;
  background-image: radial-gradient(
      circle at 20% 25%,
      rgba(79, 70, 229, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(16, 185, 129, 0.1) 0%,
      transparent 50%
    );
  background-attachment: fixed;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  z-index: 100;
  transition: all 0.3s ease;
}

.scrolled {
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo .degr {
  background: linear-gradient(to right, var(--light), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.flagBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

#language {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 30px;
  height: 30px;
  user-select: none;
}

#language img {
  width: 30px;
  height: 30px;
}

.header-shape-1 {
  position: absolute;
  top: 15%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(79, 70, 229, 0.2) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(30px);
  animation: float 15s infinite alternate ease-in-out;
}

.header-shape-2 {
  position: absolute;
  bottom: 15%;
  left: 10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(25px);
  animation: float 20s infinite alternate-reverse ease-in-out;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  display: block;
  pointer-events: none;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.2;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(5%, 5%);
  }
}

.contentCamAndChat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  max-height: 960px;
}

.containerChat {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 15px 5px 15px 5px;
}

.chat {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 10px;
  width: 95%;
  height: 100%;
}

.userAvatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  justify-content: center;
  background-color: #e8eafb;
  color: #171f55;
  border-radius: 50%;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.localUserChatMessage {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  width: 100%;
  gap: 10px;
}

.localContentChat {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  width: fit-content;
  max-width: 88%;
  padding: 10px 10px 10px 10px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background-color: var(--userActive);
  color: var(--light);
}

.remoteUserChatMessage {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  gap: 10px;
}

.remoteContentChat {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  width: fit-content;
  max-width: 88%;
  padding: 0px 10px 10px 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background-color: #e8eafb;
  color: black;
}

.userNameContent {
  display: flex;
  color: #171f55;
  font-weight: bold;
  align-items: flex-start;
  justify-content: center;
  font-size: 15px;
}

.userMessage {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  width: 100%;
}

.chat-bubble {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.userNameTime {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-style: italic;
  justify-content: flex-end;
}

.chatboxContainer {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  width: 45%;
  height: 100%;
  max-width: 500px;
  border-radius: 15px;
  background-color: #1e293b;
  background-image: radial-gradient(
      circle at 10% 90%,
      rgba(79, 70, 229, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(16, 185, 129, 0.1) 0%,
      transparent 40%
    );
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.chatInputArea {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background-color: rgba(30, 41, 59, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.chatInput {
  flex: 1;
  height: 40px;
  max-height: 90px;
  padding: 10px;
  font-size: 15px;
  resize: none;
  overflow-y: auto;
  color: var(--light);
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.chatInput::placeholder {
  color: var(--gray);
}

.chatInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.attachBtn,
.emojiBtn,
.sendBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  flex-shrink: 0;
}

.attachBtn svg {
  width: 24px;
  height: 24px;
  color: var(--gray-light);
}
.emojiBtn svg {
  width: 24px;
  height: 24px;
  color: var(--primary-light);
}

.attachBtn:hover,
.emojiBtn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.attachBtn:hover svg,
.emojiBtn:hover svg {
  color: var(--primary-light);
}

.sendBtn {
  background: var(--primary);
}

.sendBtn svg {
  width: 20px;
  height: 20px;
  color: white;
}

.sendBtn:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

.emojiPicker {
  position: absolute;
  bottom: 200px;
  right: 280px;
  width: 80%;
  max-width: 350px;
  height: 350px;
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  animation: slideUpEmoji 0.3s ease-out;
}

@keyframes slideUpEmoji {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.emojiPickerHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 600;
  color: var(--light);
}

.closeEmojiPicker {
  background: transparent;
  border: none;
  color: var(--gray-light);
  font-size: 20px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.closeEmojiPicker:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--light);
}

.emojiPickerContent {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 15px 5px 15px 5px;
  gap: 5px;
}

.emojiItem {
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.emojiItem:hover {
  background: rgba(79, 70, 229, 0.3);
  transform: scale(1.2);
}

.emojiPickerContent::-webkit-scrollbar {
  width: 6px;
}

.emojiPickerContent::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.emojiPickerContent::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

@media (max-width: 768px) {
  .emojiPicker {
    width: 280px;
    height: 320px;
    right: 15px;
  }

  .emojiPickerContent {
    grid-template-columns: repeat(5, 1fr);
  }

  .emojiItem {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .emojiPicker {
    width: 260px;
    height: 300px;
    right: 10px;
  }

  .emojiPickerContent {
    grid-template-columns: repeat(5, 1fr);
  }

  .emojiItem {
    font-size: 20px;
    padding: 6px;
  }
}

.emojiSection {
  width: 100%;
  margin-bottom: 15px;
}

.emojiSectionTitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--light);
  padding: 8px 5px;
  border-bottom: 1px solid rgba(79, 70, 229, 0.3);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.emojiGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

@media (max-width: 768px) {
  .emojiGrid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 480px) {
  .emojiGrid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.fileMessage {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgb(64 58 72 / 24%);
  border-radius: 8px;
  width: 100%;
  max-width: 350px;
}

.fileIcon {
  font-size: 32px;
  flex-shrink: 0;
}

.fileInfo {
  flex: 1;
  min-width: 0;
}

.fileName {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fileSize {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

.downloadFileBtn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.downloadFileBtn:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

.downloadFileBtn svg {
  fill: white;
}

.mediaPreview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 0 2px 1px black;
}

.mediaPreview img {
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mediaPreview img:hover {
  transform: scale(1.02);
}

.mediaPreview video {
  width: 100%;
  border-radius: 10px;
}

.mediaPreview audio {
  width: 100%;
}

.mediaModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

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

.mediaModalContent {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

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

.mediaModalClose {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  color: white;
  font-size: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.mediaModalClose:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.fileTransferIndicator {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 10px;
  margin: 10px 0;
  width: 100%;
  max-width: 350px;
}

.transferHeader {
  display: flex;
  align-items: center;
  gap: 8px;
}

.transferIcon {
  font-size: 20px;
}

.transferFileName {
  font-size: 14px;
  color: var(--gray-light);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progressBar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progressFill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.3s ease;
  border-radius: 4px;
}

.transferStats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray);
}

.transferSpeed {
  font-weight: 600;
  color: var(--primary-light);
}

.transferTime {
  font-style: italic;
}

@media (max-width: 768px) {
  .mediaPreview {
    max-width: 280px;
  }

  .fileMessage {
    max-width: 280px;
  }

  .fileTransferIndicator {
    max-width: 280px;
  }

  .mediaModalContent {
    max-width: 95vw;
  }

  .mediaModalClose {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

.chatLink {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(79, 70, 229, 0.1);
}

.chatLink:hover {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.2);
  text-decoration: underline;
}

.youtubeEmbed {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 380px;
  aspect-ratio: 16 / 9;
  margin: 10px 0;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.youtubeEmbed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.linkPreview {
  margin-top: 5px;
  font-size: 12px;
  opacity: 0.8;
}

.linkPreview .chatLink {
  font-size: 12px;
  font-weight: 400;
}

@media (max-width: 768px) {
  .youtubeEmbed {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .youtubeEmbed {
    max-width: 280px;
  }
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 2rem;
  margin: 150px 0 300px 0;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
  background: linear-gradient(to right, var(--light), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0 1rem;
}

h4 {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-light);
  text-align: left;
  padding: 0 1rem;
}

.spaceCams {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 1280px;
}

.mediaControls {
  display: flex;
  gap: 0.75rem;
  padding: 0.50rem;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mediaBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.mediaBtn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--gray-light);
  transition: fill 0.3s ease;
}

.mediaBtn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.mediaBtn:hover svg {
  fill: var(--light);
}

.mediaBtn.active {
  background: var(--primary);
}

.mediaBtn.active svg {
  fill: var(--light);
}

.mediaBtn.disabled {
  background: var(--danger);
}

.mediaBtn.disabled svg {
  fill: var(--light);
}

.mediaBtn.disabled::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 120%;
  background: var(--light);
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .mediaControls {
    bottom: 1rem;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .mediaBtn {
    width: 2.5rem;
    height: 2.5rem;
  }

  .mediaBtn svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (max-width: 480px) {
  .mediaControls {
    bottom: 0.75rem;
    gap: 0.4rem;
    padding: 0.4rem;
  }

  .mediaBtn {
    width: 2.25rem;
    height: 2.25rem;
  }

  .mediaBtn svg {
    width: 1.1rem;
    height: 1.1rem;
  }
}

.initial-image {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.initial-image.hidden {
  display: none;
  pointer-events: none;
}

.slotSecondaryMedia {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-direction: column;
  width: 10%;
  gap: 0.7rem;
  z-index: 2;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.smallName {
  display: none;
  gap: 0.3rem;
  position: relative;
  top: 3rem;
  left: 0.2rem;
  font-size: 12px;
  z-index: 2;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 0.2rem 0.5rem;
}

.bigName {
  display: flex;
  gap: 0.3rem;
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 0.2rem 0.5rem;
}

.smallName h3 {
  font-size: 0.4rem;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12ch;
}

.bigName h3 {
  font-size: 1.25rem;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 20ch;
}

.smallField {
  display: none;
  flex-direction: column;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.bigField {
  display: none;
  flex-direction: column;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

.smallField.active {
  display: flex;
}

.bigField.active {
  display: flex;
}

.smallVideo {
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  background-color: #333;
  border: 0.2rem solid white;
  object-fit: cover;
}

.smallVideo.localsfbg {
  background-color: #333;
  border: 0.2rem solid var(--userActive);
}

.bigVideo {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border:1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.camOffIndicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  z-index: 5;
  pointer-events: none;
}

.camOffIndicator svg {
  width: 30%;
  height: 30%;
  min-width: 25px;
  min-height: 25px;
  fill: var(--gray-light);
}

.startArea {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
}

.controlsAndConnect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.btnLarge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--primary);
  color: var(--light);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(79, 70, 229, 0.25),
    0 1px 3px rgba(79, 70, 229, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: fit-content;
}

.btnLarge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--primary-dark), var(--primary));
  z-index: -1;
  transition: opacity 0.3s ease-out;
  opacity: 0;
}

.btnLarge:hover::before {
  opacity: 1;
}

.btnLarge:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(79, 70, 229, 0.3),
    0 3px 6px rgba(79, 70, 229, 0.2);
}

.btnLarge span {
  color: var(--light);
}

.btnLarge svg {
  width: 24px;
  height: 24px;
  fill: var(--light);
}

.redBgBtn {
  background: var(--danger);
  box-shadow: 0 4px 6px rgba(220, 38, 38, 0.25),
    0 1px 3px rgba(220, 38, 38, 0.1);
  padding: 1rem;
}
.redBgBtn::before {
  background: linear-gradient(to right, var(--danger-dark), var(--danger));
}
.redBgBtn:hover::before {
  opacity: 1;
}
.redBgBtn:hover {
  box-shadow: 0 7px 14px rgba(220, 38, 38, 0.3),
    0 3px 6px rgba(220, 38, 38, 0.2);
}

.startField {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.startField input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  font-size: 1rem;
  color: var(--light);
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  outline: none;
  transition: all 0.3s ease;
}

.startField input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.sfcont {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sfcont svg {
  width: 2rem;
  height: 2rem;
  fill: var(--accent);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sfcont svg:hover {
  fill: var(--primary-light);
  transform: scale(1.1);
}

.toastAlertInfo {
  position: fixed;
  left: 1rem;
  top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  border-left: 4px solid var(--toastColor);
  max-width: 90%;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.contIconSvgToast {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--toastColor);
  border-radius: 50%;
}

.svgToastIconInfo {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--light);
}

.toastMainContentInfo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
}

.contTxtsInfosToast {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toastTitleInfo {
  font-weight: 600;
  color: var(--toastColor);
}

.toastTitleMsg {
  color: var(--gray-light);
  font-size: 0.875rem;
}

.contIconSvgToastClose {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contIconSvgToastClose:hover {
  background: rgba(255, 255, 255, 0.1);
}

.svgToastIconClose {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--gray-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

footer {
  padding: 1rem 0 1rem;
  text-align: center;
  background-color: var(--dark);
  color: var(--gray);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  width: 100%;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-light);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-link svg {
  width: 20px;
  height: 20px;
}

.tech-stack {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.tech-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.tech-item:hover .tech-icon {
  background: rgba(79, 70, 229, 0.1);
  transform: translateY(-3px);
}

.tech-name {
  font-size: 0.8rem;
  color: var(--gray);
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #f5f5f5;
  border-radius: 10px;
}

::-webkit-scrollbar {
  width: 10px;
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-image: -webkit-gradient(
    linear,
    left bottom,
    left top,
    color-stop(0.44, var(--primary-light)),
    color-stop(0.72, var(--primary)),
    color-stop(0.86, var(--primary-light))
  );
}

.containerChat.drag-over {
  border: 3px dashed var(--primary);
  background-color: rgba(79, 70, 229, 0.1);
}

.mediaPreview.pdfPreview {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.pdfEmbed {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  transform: scale(1.13);
}

@media (max-width: 768px) {
  .pdfPreview {
    padding: 25px 15px;
  }
}

@media (max-width: 768px) {
  .btnLarge {
    width: 50%;
  }
  .card {
    padding: 1.5rem;
    margin: 150px 0 300px 0;
  }

  .smallField {
    width: 25%;
  }

  .smallName {
    bottom: 0.4rem;
    left: 0.4rem;
    padding: 0.1rem 0.4rem;
  }

  .smallName h3 {
    font-size: 0.6rem;
    max-width: 10ch;
  }

  .bigName {
    top: 0.6rem;
    left: 0.6rem;
    padding: 0.1rem 0.4rem;
  }

  .bigName h3 {
    font-size: 1rem;
    max-width: 15ch;
  }

  .toastAlertInfo {
    max-width: 95%;
  }

  h2 {
    font-size: clamp(1.25rem, 3vw, 2rem);
  }

  h4 {
    font-size: clamp(0.875rem, 2vw, 1rem);
  }

  .nav {
    padding: 1rem 1.25rem;
  }

  #language {
    width: 20px;
    height: 20px;
  }

  #language img {
    width: 20px;
    height: 20px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .footer-links {
    gap: 1.5rem;
  }
}

@media (max-width: 570px) {
  .card {
    padding: 1rem;
    margin: 150px 0 300px 0;
  }

  .smallField {
    width: 30%;
  }

  .btnLarge {
    width: 80%;
  }

  .logo {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 0.75rem;
    margin: 150px 0 300px 0;
  }

  .smallField {
    width: 35%;
    top: 0.6rem;
    right: 0.6rem;
  }

  .smallVideo {
    border-width: 0.15rem;
  }

  .smallName h3 {
    font-size: 0.5rem;
    max-width: 8ch;
  }

  .bigName h3 {
    font-size: 0.85rem;
    max-width: 12ch;
  }

  .btnLarge {
    width: 100%;
  }

  .logo {
    font-size: 0.9rem;
  }

  #language {
    width: 15px;
    height: 15px;
  }

  #language img {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 360px) {
  .card {
    padding: 0.5rem;
    margin: 150px 0 300px 0;
  }

  .smallField {
    width: 40%;
  }

  .bigName,
  .smallName {
    padding: 0.1rem 0.3rem;
  }
}
