@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: "Poppins", sans-serif;
}

html {
   scroll-behavior: smooth;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none !important;
}

body {
   background: #0d111d;
   overflow-x: hidden;
   color: #94a3b8;
}

.fix {
   color: #e2e8f0;
   margin: 0;
   position: sticky;
   top: 80px;
   width: 40%;
   flex-shrink: 0;
   padding: 20px;
}

.nav-menu {
   position: fixed;
   color: #94a3b8 !important;
   width: 300px;
   font-size: 40px;
   left: 100px;
   top: 450px;
   border-radius: 45px;
}

.nav-link {
   display: flex;
   align-items: center;
   text-decoration: none;
   margin-bottom: 20px;
   transition: all 0.3s ease;
}

.nav-line {
   height: 1px;
   width: 30px;
   background-color: #64748b;
   margin-right: 15px;
   transition: width 0.3s ease, background-color 0.3s ease;
}

.nav-text {
   font-size: 0.74rem;
   font-weight: bold;
   letter-spacing: 0.1rem;
   color: #64748b;
   transition: color 0.3s ease;
}

.nav-link:hover .nav-text {
   color: #e2e8f0;
}

.nav-link:hover .nav-line {
   width: 60px;
   background-color: #e2e8h0;
}

.nav-link.active .nav-line {
   width: 60px;
   background-color: #e2e8f0;
}

.nav-link.active .nav-text {
   color: #e2e8f0;
}
.fix p {
   color: #94a3b8;
   line-height: 1.625;
}


.fix h3 {
   margin-top: 10px;
}

.fix p {
   margin-top: 10px;
}

.about1, .about2, .about3 {
   margin-bottom: 1rem;
   padding:  5px;
   max-width: 600px;
   line-height: 1,6;
   text-align: justify; 
   margin-left: auto;
   margin-right: 10px;
   font-size: 16px;
}

.gmail {
   color: #94a3b8 !important;
   font-size: 15px;
}

.number {
   color: #94a3b8 !important;
   font-size: 15px;
   position: fixed;
   left: 365px;
}

.loc {
   color: #94a3b8 !important;
   position: fixed;
   left: 600px;
   font-size: 15px;
}

.gridd {
   display: flex;
   width: 850px;;
   justify-content: space-between;
   align-items: center;
   gap: 10px;
   position: fixed;
   bottom: 30px;
   left: 50px;
}

.gridd > span {
   flex: 1;
   display: flex;
   align-items: center;
   gap: 8px;
   white-space: nowrap;
}

.main {
   display: flex;
   align-items: flex-start;
   padding: 20px;
   min-height: 200vh;
}
.scroll {
   flex-grow: 1;
   display: flex;
   flex-direction: column;
   gap: 60px;
   width: 50%;
}

.study1, .study2, .study3 {
   padding: 0px;
   max-width: 600px;
   font-size: 18px;
   margin-left: auto;
   margin-right: 10px;
   display: flex;
   color: #e2e8f0 !important;
}

.what {
   padding: 0px;
   max-width: 600px;
   font-size: 30px;
   margin-left: auto;
   margin-right: 10px;
   display: flex;
   color: #e2e8f0;
}

.what:hover {
   color: #5eead4;
}

.study1 {
   margin-top: 1.5rem;
   display: flex;
   font-size: 30px;
   text-align: left;
}

.study2 {
   font-size: 20px;
}

.hovv:hover * {
   color: #5eead4 !important;
}

.study1, .what, #ach-title, .nav-link, .nav-text, .nav-line {
   transition: all 0.3s ease-in-out;
}

.about-study1 {
   margin-top: o.5rem;
}

.about-study1, .about-study2, .about-study3 {
   margin-bottom: 0.5rem;
   padding: 5px;
   max-width: 600px;
   text-align: justify;
   font-size: 16px;
   margin-left: auto;
   margin-right: 10px;
   display: flex;
   justify-content: center;  
}

#ach1, #ach2, #ach3, #ach4, #ach-title {
   margin-bottom: 0.5rem;
   padding: 5px;
   max-width: 600px;
   text-align: justify;
   font-size: 16px;
   margin-left: auto;
   margin-right: 10px;
   display: flex;
   justify-content: flex-start;
   color: #94a3b8; 
}

#ach1 {
   font-size: 17px !important;
}

#ach-title {
   display: flex;
   justify-content: flex-start !important;
   padding-top: 30px !important;
   color: #e2e8f0;
   font-size: 30px;
}

#ach-title:hover {
   color: #5eead4;
}

.work-experience, .work-experience2 {
   display: flex;
   gap: 20px;
   padding: 20px;
   background-color: #0d111d;;
   color: #94a3b8;
   font-family: sans-serif;
   border-radius: 8px;
   max-width: 600px;
   margin-top: 50px;
   margin-right: 10px;
   margin-left: auto;
}

.date, .date2 {
   flex: 0 0 150px;
   font-size: 0.8rem;
   font-weight: bold;
   color: #64748b;
   padding-top: 5px;
}

.experience h3 h4 {
   margin: 0 0 10px 0;
   color: #e2e8f0;
   font-size: 1.1rem;
}

.experience2 h3 h4 {
   margin: 0 0 10px 0;
   color: #e2e8f0;
   font-size: 1.1rem;
}

.experience .hov:hover {
   color: #5eead4;
}

.experience2 .hov:hover {
   color: #5eead4;
}


.experience p {
   font-size: 0.95rem;
   line-height: 1.5;
   margin-bottom: 15px;
}

.experience2 p {
   font-size: 0.95rem;
   line-height: 1.5;
   margin-bottom: 15px;
}

.tags {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
}

.kras_diplom, .static, .cert, .winter {
   display: flex;
   width: fit-content;
   gap: 9px;
   background-color: rgba(45, 212, 191, 0.1);
   color: #5eead4;
   padding: 11px 15px;
   border-radius: 20px;
   font-size: 0.75rem;
   font-weight: bold;
}

.tag {
   background-color: rgba(45, 212, 191, 0.1);
   color: #5eead4;
   padding: 4px 12px;
   border-radius: 20px;
   font-size: 0.75rem;
   font-weight: bold;
}
.bxl-linkedin-square {
   position: fixed;
   color: #94a3b8 !important;
   font-size: 40px;
   left: 160px;
   top: 700px;
}

.bxl-instagram {
   position: fixed;
   color: #94a3b8 !important;
   font-size: 40px;
   left: 210px;
   top: 700px;
}



.bxl-github {
   position: fixed;
   color: #94a3b8 !important;
   font-size: 40px;
   left: 260px;
   top: 700px;
}

.bxl-telegram {
   position: fixed;
   font-size: 40px;
   left: 310px;
   top: 700px;
   color: #94a3b8 !important;
}

.about p {
   line-height: 1.625;
   color: #94a3b8;
}

.study p {
   line-height: 1.625;
   color: #94a3b8;
}

.cursor {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: radial-gradient(
        600px at var(--x) var(--y), 
        rgba(29, 78, 216, 0.15), 
        transparent 80%
    ) !important;
   pointer-events: none !important;
   z-index: 9999;
}

:root {
    --bg-dark: #0d0d12;
    --accent-purple: #bf5af2;
    --border-color: rgba(191, 90, 242, 0.3);
    --text-main: #ffffff;
    --text-dim: #a1a1aa;
}

#custom-chat-widget {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 32847384738743 !important;
    font-family: 'Inter', -apple-system, sans-serif;
    display: block !important;
    pointer-events: all !important;
}

.chat-trigger {
    width: 60px !important;
    height: 60px !important;
    background: var(--accent-purple) !important;
    border: none !important;
    border-radius: 18px !important; 
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 25px rgba(191, 90, 242, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 23298294834 !important;
    pointer-events: all !important;
}

.chat-trigger:hover { transform: scale(1.1) rotate(5deg); }

.chat-window {
    width: 360px !important;
    height: 500px !important;
    background: var(--bg-dark) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    display: flex;
    flex-direction: column !important;
    margin-bottom: 20px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.chat-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #34c759;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 10px #34c759;
}

.chat-header span { color: var(--text-main); font-weight: 600; }

#close-chat { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 24px; }

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.msg.bot {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-main);
    border-bottom-left-radius: 2px;
}

.msg.user {
    background: var(--accent-purple);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 15px;
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.2);
}

#user-msg {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 15px;
    color: white;
    outline: none;
}

#user-msg:focus { border-color: var(--accent-purple); }

#send-msg {
    background: none;
    border: none;
    color: var(--accent-purple);
    cursor: pointer;
}

.chat-footer {
    font-size: 10px;
    text-align: center;
    color: var(--text-dim);
    padding-bottom: 10px;
    opacity: 0.5
}

.hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(20px);
}

#chat-messages::-webkit-scrollbar {
    display: none;
}

.lang {
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    margin: 0;
}

.lang h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
    border-left: 4px solid #7d2ae8;
    padding-left: 15px;
}

.lang-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-item:hover {
    transform: translateY(-3px); 
    background: rgba(255, 255, 255, 0.08);
}

.info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.info span:last-child {
    opacity: 0.7; 
    font-size: 0.9rem;
}

.line {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #7d2ae8, #a56eff);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.1, 0.42, 0.41, 1);
    width: 0;
}

.line[data-lang="native"]::after {
    width: 100%;
}

.line[data-lang="b1"]::after {
    width: 60%;
}

.line[data-lang="a2"]::after {
    width: 40%;
}


.skills-sect {
    width: 100%;
    margin: 0;
}

.skills-sect h2 {
    font-size: 1.5rem;
    color: #fff;
    border-left: 4px solid #7d2ae8;
    padding-left: 15px;
    margin-bottom: 25px;
}

.setka {
    display: grid;
    grid-template-columns: repeat(auto-nill, minmax(140px, 1fr)); 
    gap: 15px;
    width: 100%;
}

.skil {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skil span {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.95rem;
}

.skil:hover {
    background: rgba(125, 42, 232, 0.15); 
    border-color: #7d2ae8;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(125, 42, 232, 0.2);
}

.skil::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #7d2ae8;
    border-radius: 50%;
    top: 10px;
    left: 10px;
    opacity: 0.5;
}

.right {
    width: 100%;
    max-width: 600px;
    margin-left: auto; 
    margin-right: 3px;;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.gmail a {
   text-decoration: none;
   color: inherit;
   display: inline-flex;
   align-items: center;
   gap: 8px;
}


.award, .award2, .award3, .award4 {
   display: flex;
   flex-direction: column;
   color: #B0E0E6 !important;
   position: relative;
   margin-left: auto;
   margin-top: 15px !important;
   margin-bottom: 15px !important;
   width: fit-content;
   margin-left: auto;
   cursor: pointer;
}

.kras, .static_photo, .cert_photo, .winter_photo {   
   position: absolute;
   z-index: 999;
   opacity: 0;
   pointer-events: none;
   transition: 0.3s ease;
   left: 50%;   
   bottom: 30px; 
   transform: translateX(-50%); 
   width: 300px;
   height: auto;
   border: 2px solid #5eead4;
}

.award:hover .kras {
    opacity: 1;
    bottom: 40px;
}

.award2:hover .static_photo {
    opacity: 1;
    bottom: 40px;
}

.award3:hover .cert_photo {
    opacity: 1;
    bottom: 80px;
}

.award4:hover .winter_photo {
    opacity: 1;
    bottom: 60px;
}


.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  visibility: hidden;
}


.reveal.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

@media (max-width: 768px) {
   .main {
      flex-direction: column;
      padding: 20px;
   }

   .fix {
      position: relative;
      top: 0;
      width: 100%;
      margin: 0 0 40px 0;
      padding: 0;
   }

   .nav-menu {
      display: none;
   }

   .scroll, .right {
      width: 100%;
      max-width: 100%;
      margin: 0;
   }

   .about1, .about2, .about3, .study1, .study2, .what, #ach-title, 
   .about-study1, .work-experience, .work-experience2 {
      margin-left: 0 !important;
      margin-right: 0 !important;
      max-width: 100%;
      text-align: left;
   }


   .kras, .static_photo, .cert_photo, .winter_photo {
      position: relative; 
      left: 0;
      transform: none;
      width: 100%; /
      opacity: 1; 
      bottom: 0;
      margin-top: 10px;
      pointer-events: auto;
   }

   .gridd {
      position: relative; 
      flex-direction: column;
      align-items: flex-start;
      left: 0;
      bottom: 0;
      width: 100%;
      gap: 15px;
      margin-top: 30px;
   }
   
   .number, .loc {
      position: relative; 
      left: 0 !important;
   }

   .bxl-linkedin-square, .bxl-instagram, .bxl-github, .bxl-telegram {
      position: static; 
      margin-right: 15px;
   }
}


.download-btn {
   display: inline-block;
   padding: 12px 24px;
   background-color: transparent;
   color: #fff;
   position: fixed;
   border: 2px solid #7b46f6;
   border-radius: 8px;
   font-weight: 500;
   left: 100px;
   margin-top: 590px;
   transition: all 0.3s ease;
   cursor: pointer;
   text-decoration: none;
}

.download-btn:hover {
   background-color: #7b46f6;
   color: #fff;
   box-shadow: 0 0 15px rgba(123, 70, 246, 0.5);
}


:root {
  --neon-color: #7b46f6; 
}

.qubit-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'SF Mono', 'Courier New', monospace; 
  margin: 50px 0;
  text-align: center;
}

#qubit-value {
  font-size: 1.5em;
  font-weight: 200;
  color: #fff;
  text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--neon-color);
  margin-bottom: 20px;
  display: block;
}

.qubit-sphere {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1); 
  position: relative;
  cursor: pointer;
  
  box-shadow: 
    0 0 10px rgba(123, 70, 246, 0.2),
    inset 0 0 25px rgba(123, 70, 246, 0.1);

  animation: orbitRotate 15s linear infinite;
  
  display: flex;
  align-items: center;
  justify-content: center;
}

.electron {
  width: 14px;
  height: 14px;
  background-color: #fff;
  border-radius: 50%;

  box-shadow: 
    0 0 10px #fff,
    0 0 20px #fff,
    0 0 30px var(--neon-color),
    0 0 40px var(--neon-color);
    
  animation: electronPulse 1s ease-in-out infinite alternate;
}

.qubit-container small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8em;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-top: 20px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.qubit-sphere:hover + small {
  opacity: 1;
}

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes electronPulse {
  from { transform: scale(0.95); opacity: 0.9; }
  to { transform: scale(1.05); opacity: 1; }
}

.qubit-container {
   position: fixed;
   top: 330px;
   left: 500px;
}

.quantum-flicker {
    animation: jitter 0.15s infinite alternate, glow 0.2s infinite alternate;
}

@keyframes jitter {
    0% { transform: translate(0, 0); }
    100% { transform: translate(2px, -2px); }
}

@keyframes glow {
    0% { filter: brightness(1) blur(0px); box-shadow: 0 0 10px #7b46f6; }
    100% { filter: brightness(1.5) blur(1px); box-shadow: 0 0 25px #7b46f6, 0 0 40px #fff; }
}



.chat-auth-form {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    flex-grow: 1;
    background-color: #0d0d11;
}

.auth-instruction {
    display: none; 
}

.input-group input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    background-color: transparent; 
    border: 1px solid #2d2d3a; 
    border-radius: 6px;
    font-size: 15px;
    color: #ffffff; 
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #1e90ff; 
}

.input-group input::placeholder {
    color: #5c5c6c;
}

.start-chat-btn {
    background-color: #1e90ff;
    color: #ffffff;
    border: none;
    height: 46px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    margin-top: 10px;
}

.start-chat-btn:hover {
    background-color: #117cd2;
}

.chat-footer {
    color: #3
}

.confirm-modal-overlay {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(4px); 
    justify-content: center; 
    align-items: center; 
    z-index: 9999;
}

.confirm-modal-content {
    background: #ffffff; 
    padding: 24px; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); 
    width: 340px; 
    text-align: center; 
    font-family: sans-serif;
}

.confirm-modal-content h4 {
    margin: 0 0 12px 0; 
    font-size: 18px; 
    color: #111;
}

.confirm-modal-content p {
    margin: 0 0 20px 0; 
    font-size: 14px; 
    color: #5c5c6c; 
    line-height: 1.4;
}

.confirm-modal-buttons {
    display: flex; 
    gap: 10px; 
    justify-content: center;
}

.confirm-modal-buttons button {
    flex: 1; 
    height: 38px; 
    border: none; 
    border-radius: 6px; 
    font-weight: 500; 
    cursor: pointer; 
    transition: background 0.2s, transform 0.1s;
}

#modal-cancel-btn {
    background: #f0f2f5; 
    color: #444;
}

#modal-cancel-btn:hover {
    background: #e4e6eb;
}

#modal-confirm-btn {
    background: #ff4d4f; 
    color: white;
}

#modal-confirm-btn:hover {
    background: #e03e3f;
}

.confirm-modal-buttons button:active {
    transform: scale(0.98);
}

#mic-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 50%;
    color: var(--text-muted, #888);
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
#mic-btn:hover {
    color: var(--accent, #a855f7);
    background: rgba(168, 85, 247, 0.1);
}
#mic-btn.recording {
    color: #f5222d;
    background: rgba(245, 34, 45, 0.1);
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}