html, body {
    margin: 0;
    padding: 0;
    padding-bottom: 5rem;
    font-family: 'Arial', sans-serif;
    color: rgb(200, 153, 153);
    background: radial-gradient(circle at 30% 50%, #022348 0%, #000000 100%);
    overflow-x: hidden;
    overscroll-behavior: none;
}

body {
    position: relative;
}

html {
    background: radial-gradient(circle at 30% 50%, #022348 0%, #000000 100%);
}

canvas#starfield {
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
    display: block;
}

body > *:not(canvas) {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 100px;
}

.carousel {
    overflow: hidden;
    width: 100%;
    padding: 50px 0;
    position: relative;
    box-sizing: border-box;
    margin-top: 9rem;
    touch-action: pan-y;
}

.carousel-inner {
    display: flex;
    gap: 20px;
    width: max-content;
    align-items: center;
    will-change: transform;
}

.logo-slide {
    min-width: 150px;
    flex-shrink: 0;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.slide {
    flex: 0 0 auto;
    width: 250px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    color: white;
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
    transition: transform 0.3s;
    box-sizing: border-box;
}

.slide img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    height: auto;
}


.burger-menu {
    position: fixed;
    top: -60px;
    right: 20px;
    z-index: 1001;
    cursor: pointer;
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-menu .bar {
    height: 4px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.4s ease;
    transform-origin: center;
}

/* Когда sidebar активен, анимация на крестик */
.burger-menu.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.burger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}


/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 60px 30px;
    transition: right 0.4s ease;
    z-index: 999;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.sidebar ul li {
    margin-bottom: 20px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.2s;
}

.sidebar ul li a:hover {
    color: #00aaff;
}

/* Активное меню */
.sidebar.active {
    right: 0;
}

.logo {
    position: fixed;
    top: -50px;
    left: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo img {
    width: 100px;
    object-fit: contain;
}

.logo span {
    font-size: 18px;
    color: white;
    font-weight: bold;
}


.info-section {
    display: flex;
    justify-content: space-between;
    padding: 60px 40px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-direction: row;
}

.info-block {
    flex: 1 1 45%;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    color: white;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.info-block h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #00ffff;
}

.info-block p,
.info-block ul {
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

.info-block ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.info-block ul li::before {
    content: "• ";
    color: #00aaff;
}


.projects-section {
    padding: 60px 40px;
    text-align: center;
    color: white;
}

.projects-section h2 {
    font-size: 28px;
    margin-bottom: 40px;
    opacity: 0.2;
    color: #ffffff;
}

.projects-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.projects-carousel {
    display: flex;
    width: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
}

.project-card {
    flex: 0 0 100%;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;
}

.project-card img {
    height: 40rem;
    border-radius: 8px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.project-card h3 {
    margin: 10px 0;
    color: #00ffff;
}

.project-arrow {
    background: none;
    border: none;
    font-size: 36px;
    color: white;
    cursor: pointer;
    z-index: 1;
    transition: 0.3s;
}

.project-arrow:hover {
    color: #00ccff;
}

.project-arrow.left {
    margin-right: 10px;
}

.project-arrow.right {
    margin-left: 10px;
}


.fade-edges {
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 70%);
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 70%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: cover;
    mask-size: cover;
}
.fade-edges3{
        -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: cover;
    mask-size: cover;
}





.project-detail {
  padding: 3rem;
  color: #e0e0e0;
  animation: fadeIn 0.6s ease-in-out;
}

.project-intro {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.project-subsection {
  margin-bottom: 2.5rem;
}

.project-subsection h3 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
  color: #ffffff;
  padding-left: 10px;
  text-align: justify;
}

.project-subsection ul li {
  margin: 0.3rem 0;
  line-height: 1.5;
  text-align: left;
}

.project-gallery .gallery {
  display: flex;
  gap: 15px;
}

.project-gallery img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.project-gallery img:hover {
  transform: scale(1.05);
}

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


.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-size: 1rem;
    line-height: 1.4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-item:hover {
  transform: translateY(-5px);
  background-color: rgba(0, 255, 170, 0.1);
}


.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.use-case-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(0,150,255,0.12));
  border: 1px solid rgba(0, 200, 255, 0.25);
  padding: 1.2rem;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 180, 255, 0.1);
}

.use-case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(0, 225, 255, 0.4);
}

.use-case-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #00cfff;
}

.use-case-card p {
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.4;
}


.goal-block {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #e0e0e0;
  padding-top: 1rem;
}

.goal-block h4 {
    color: #00cfff;
    margin-top: 1.5rem;
    font-size: 1.2rem;
    padding-left: 12px;
    text-align: left;
}



.vision-quote {
  margin-top: 2rem;
  font-style: italic;
  color: #a0eaff;
  border-left: 4px solid #00d9ff;
  padding-left: 1rem;
  padding-right: 1rem;
  background: rgba(0, 180, 255, 0.05);
  border-radius: 8px;
}

.goal-block p{
    text-align: left;
}


.close-project {
  position: absolute;
  font-size: 1.8rem;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 999;
}

.close-project:hover {
  background-color: rgba(255, 100, 100, 0.25);
  transform: scale(1.1);
}

.cocial-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  align-items: center;
  margin-top: 1.5rem;
  padding: 0.5rem;
}
.cocial-icons img{
    width: 50px;
}

.cocial-icons img:hover {
  transform: scale(1.2);
}




.cocial-icons ul {
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  margin:0;
  padding:0;
  display:flex;
}
.cocial-icons ul li {
  list-style:none;
}
.cocial-icons ul li a {
  display: flex;
  position:relative;
  width:100px;
  height:100px;
  line-height:100px;
  font-size:40px;
  text-align:center;
  text-decoration:none;
  color:#404040;
  margin: 0 30px;
  transition:.5s;
  justify-content: center;
  align-items: center;
}
.cocial-icons ul li a span {
  position:absolute;
  transition: transform .5s;
}
.cocial-icons ul li a span:nth-child(1),
.cocial-icons ul li a span:nth-child(3){
  width:100%;
  height:3px;
  background:#ffffff;
}
.cocial-icons ul li a span:nth-child(1) {
  top:0;
  left:0;
  transform-origin: right;
}
.cocial-icons ul li a:hover span:nth-child(1) {
  transform: scaleX(0);
  transform-origin: left;
  transition:transform .5s;
}

.cocial-icons ul li a span:nth-child(3) {
  bottom:0;
  left:0;
  transform-origin: left;
}
.cocial-icons ul li a:hover span:nth-child(3) {
  transform: scaleX(0);
  transform-origin: right;
  transition:transform .5s;
}

.cocial-icons ul li a span:nth-child(2),
.cocial-icons ul li a span:nth-child(4){
  width:3px;
  height:100%;
  background:#404040;
}
.cocial-icons ul li a span:nth-child(2) {
  top:0;
  left:0;
  transform:scale(0);
  transform-origin: bottom;
}
.cocial-icons ul li a:hover span:nth-child(2) {
  transform: scale(1);
  transform-origin: top;
  transition:transform .5s;
}
.cocial-icons ul li a span:nth-child(4) {
  top:0;
  right:0;
  transform:scale(0);
  transform-origin: top;
}
.cocial-icons ul li a:hover span:nth-child(4) {
  transform: scale(1);
  transform-origin: bottom;
  transition:transform .5s;
}

.cocial-icons .facebook:hover {
  color: #ff5500;
}
.cocial-icons .facebook:hover span { 
  background: #ff5500;
}
.cocial-icons .twitter:hover {
  color: #1da1f2;
}
.cocial-icons .twitter:hover span { 
  background: #1da1f2;
}
.cocial-icons .instagram:hover {
  color: #02008f;
}
.cocial-icons .instagram:hover span { 
  background: #02008f;
}
.cocial-icons .google:hover {
  color: #e40000;
}
.cocial-icons .google:hover span { 
  background: #e40000;
}
.cocial-icons ul li a .twitter {
  color: #1da1f2;
}
.cocial-icons ul li a:hover:nth-child(3) {
  color: #c32aa3;
}
.cocial-icons ul li a:hover:nth-child(4) {
  color: #dd4b39;
}






@media (min-width: 1441px) {
  body { font-size: 18px; }
  .carousel-inner { gap: 30px; }
  .project-card img { height: 50rem; }
}

/* === 💻 Стандартные ноутбуки и мониторы (1025px–1440px) === */
@media (min-width: 1025px) and (max-width: 1440px) {
  .info-section { padding: 50px 30px; }
  .project-card img { height: 40rem; }
  .slide { width: 240px; }
}

/* === 📱 Планшеты в горизонтали (768px–1024px) === */
@media (min-width: 768px) and (max-width: 1024px) {
  .info-section { flex-direction: column; gap: 20px; padding: 40px 20px; }
  .slide { width: 200px; }
  .project-card img { height: 30rem; }
  .features-grid { grid-template-columns: 1fr; }
}

/* === 📱 Планшеты вертикально + большие телефоны (601px–767px) === */
@media (min-width: 601px) and (max-width: 767px) {
  .info-section { flex-direction: column; padding: 30px 15px; }
  .slide { width: 180px; }
  .carousel-inner { gap: 10px; }
  .project-card img { height: 25rem; }
  .features-grid { grid-template-columns: 1fr; }
}

/* === 📱 Обычные смартфоны (421px–600px) === */
@media (min-width: 421px) and (max-width: 600px) {
  .info-section { padding: 25px 12px; flex-direction: column; }
  .slide { width: 160px; }
  .project-card img { height: auto; width: 95%; margin-bottom: 0;}
  .projects-section {padding: 0;}
  .project-card { padding: 0px; flex: 0 0 100%;}
  .logo img { width: 80px; }
  .features-grid { grid-template-columns: 1fr; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .cocial-icons {padding: 0; margin-top: 5rem; margin-bottom: 10rem;}
  .cocial-icons img {width: 40px;}
  .cocial-icons ul li a {width: 50px;}
  .sidebar.active {right: -67px;}
  .close-project { width: 0px; height: 0px;}
  .project-gallery .gallery {flex-direction: column; align-items: center;}
  .project-gallery img { width: 70%;height: auto;}
}

/* === 📱 Маленькие смартфоны (до 420px) === */
@media (max-width: 420px) {
  .info-section { padding: 20px 10px; }
  .slide { width: 140px; padding: 10px; }
  .project-card img { height: 14rem; }
  .logo img { width: 70px; }
  .project-subsection h3 { font-size: 1.1rem; }
  .goal-block h4 { font-size: 1rem; }
  .features-grid,
  .use-cases-grid { grid-template-columns: 1fr; }
  .burger-menu { top: 10px; right: 10px; transform: scale(0.9); }
  .sidebar { width: 260px; padding: 40px 20px; }
}