@keyframes slideInFromRight {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

body {
  margin: 0;
  padding: 0;
  background: #0B0F1A;
  color: #FCFCFC;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 60px;
  z-index: 9999;
  background: rgba(11, 15, 26, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  display: block;
}

@media (max-width: 1600px) {
  .container-header {
    padding: 0 40px;
  }
  
  .menu {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .container-header {
    padding: 0 20px !important;
  }
  
  .header-right {
    flex: 1;
  }
}

.header-left mobile-menu {
  display: none;
}

.menu-close {
  display: none;
}

@media (max-width: 768px) {
  .header {
    top: 0px;
    padding: 10px 0;
  }
  .header-left.mobile-menu {
    display: block;
  }
  .logo{
    justify-content: center;
  }
  .menu {
    display: none;
  }
}

.container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 100px;
  box-sizing: border-box;
  min-height: 60px;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  padding: 0 100px;
  box-sizing: border-box;
}

.container-projects, .container-pricing {
  display: block;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 200px;
  padding-bottom: 120px;
  box-sizing: border-box;
}

@media (max-width: 1500px) {
  .hero {
    flex-direction: column;
    padding-top: 170px;
    padding-bottom: -60px;
  }
}

@media (max-width: 768px) {
  .hero {
    text-align: left;
    align-items: flex-start;
    padding-top: 100px;
    margin-bottom: -150px;
  }
}

.hero-left {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  min-height: 500px;
}

@media (max-width:1500px) {
  .hero-image {
    width: 100%;
    max-width: 350px;
    padding-bottom: 50px;
  }
}

@media (max-width: 768px) {
  .hero-right {
    overflow: hidden;
  }
}

.hero-left { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  align-items: flex-start;
  justify-content: center;
}

.hero-right h1 {
  font-style: bold;
  position: absolute;
  right: 0;
  z-index: 2;
  font-size: 96px;
  line-height: 0.9;
  text-align: right;
  margin: 0;
  pointer-events: none;
}

@media (max-width: 1500px) {
  .hero-right h1 {
    font-size: 90px;
    padding-bottom: 35px;
  }
}

.menu { display: flex; gap: 40px; }
.menu a {
  font-size: 24px; text-decoration: none; color: white;
  position: relative; padding-bottom: 6px; transition: 0.3s;
}
.menu a.active, .menu a:hover { color: #A855F7; }
.menu a::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background-color: #A855F7; transition: 0.3s;
}
.menu a.active::after, .menu a:hover::after { width: 28px; }

.container-projects {
  width: 100%;
  padding: 0 100px;
  box-sizing: border-box;
  max-width: 1920px;
  margin: 0 auto;
}

h1 { 
  font-family: "Oswald", sans-serif; 
  font-size: 96px;
  font-style: bold;
}

h2 { 
  font-family: "Oswald", sans-serif; 
  font-size: 64px; 
  text-transform: capitalize; 
  line-height: 72px;
}

h3 { 
  font-family: "Oswald", sans-serif; 
  font-size: 48px; 
  line-height: 56px;
  font-weight: 600;
  color: #FCFCFC;
}

@media (max-width: 1500px) {
  h1 { font-size: 64px;min-width: 630px; }
  h2 { font-size: 48px; line-height: 56px; }
  h3 { font-size: 32px; line-height: 32px; }
}

@media (max-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 32px; line-height: 1.2; }
  h3 { font-size: 24px; line-height: 32px; }
}

.p1 {
  font-style: medium;
  font-size: 24px;
  color: #AFAFAF;
  margin-bottom: 40px;
  margin-top: -15px;
}

@media (max-width: 1500px) {
  .p1 { font-size: 18px; }
}

.highlight { color: #A855F7; }
.button1 {
  display: inline-block;
  text-decoration: none;
  background: #A855F7;
  color: #FCFCFC;
  border-radius: 10px;
  padding: 26px 46px;
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  font-style: medium;
  text-transform: uppercase;
  transition: 0.3s;
  border: none;
}

@media (max-width: 768px) {
  .button1 { padding: 20px 40px; font-size: 18px; }
}

.button1:hover {
  background: #7E2FC6;
}

.button2 {
  text-decoration: none;
  background: transparent; 
  border: 1px solid #A855F7; 
  color: #FCFCFC;
  padding: 14px 30px; 
  border-radius: 10px; 
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  font-style: medium;
}

.button2:hover {
  background: #A855F7;
  color: #FCFCFC;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-icon {
  display: none;
}

@media (max-width: 768px) {
  .btn-text {
    display: none;
  }
  .btn-icon {
    display: block !important;
    width: 40px;
    height: auto;
    display: block !important;
    width: 26px;
    height: auto;
    filter: brightness(0) invert(1);
  }
  .header-btn {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 0px;
    height: 22px;
    background-color: #A855F7 !important;
    border-radius: 10px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: none !important;
    padding: 0 !important;
  }

  .header-btn:active {
    transform: scale(0.9); /* Кнопка стискається при натисканні */
    background-color: #8b31ff !important; /* Стає темнішою */
    transition: 0.1s;
  }

  .btn-text {
    display: none !important;
  }
}

@media (max-width: 1500px) {
  .projects-section {
    padding-bottom: 60px;
  }
}

.projects-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 40px;
}

.project-item {
  display: grid;
  grid-template-columns: 80px 1fr 450px;
  align-items: center;
  gap: 40px;
  padding: 40px 20px;
  margin: 0 -20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  transition: all 0.4s ease;
}

.project-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-number {
  font-family: 'Oswald', sans-serif;
  font-size: 70px;
  font-weight: bold;
  color: #a855f7;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-info h3 {
  font-size: 32px;
  font-weight: bold;
  color: #FCFCFC;
  margin: 0;
  transition: color 0.3s ease;
}

.project-year {
  font-size: 20px;
  color: #AFAFAF;
}

.project-card {
  display: flex;
  justify-content: flex-end;
}

.project-card img {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-link {
  text-decoration: none !important;
  display: block;
  transition: all 0.4s ease;
}

.project-link:hover .project-item {
  background: rgba(168, 85, 247, 0.05);
  border-bottom-color: #A855F7;
  transform: translateY(-5px);
}

.project-link:hover .project-card img {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-link:hover .project-info h3 {
  color: #A855F7;
}

.hidden-project {
  display: none !important;
}

.more-projects-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: 40px;
  width: 100%;
  margin-bottom: 0;
}

.container-pricing {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 100px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.pricing-section {
  background-color: #0B0F1A;
  padding-bottom: 120px;
}

.pricing-section {
  background-color: #0B0F1A;
}

.section-title {
  font-family: "Oswald", sans-serif;
  font-size: 64px;
  text-transform: uppercase;
  margin: 0 0 40px 0;
  width: 100%;
}

.pricing-section {
  padding: 120px 0;
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
}

.price-card {
  position: relative;
  background: #111520;
  width: calc((100% - 60px) / 3);
  min-width: 320px;
  border-radius: 20px;
  padding: 50px 30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
  transition: 0.3s ease;
  justify-content: center;
}

.price-card:hover {
  transform: translateY(-10px);
  border-color: #A855F7;
}

.price-card.popular {
  border: 2px solid #A855F7;
  transform: scale(1.05);
  z-index: 2;
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #A855F7;
  padding: 5px 15px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
}

.price-card h3 {
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  text-align: center;
  margin: 10px 0 30px 0;
  line-height: 1.2;
  text-transform: capitalize;
  min-height: 58px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 auto 20px auto;
  display: inline-flex;
  flex-direction: column;
  text-align: center;
}

.price-features li {
  color: #FCFCFC;
  margin-bottom: 12px;
  font-size: 15px;
  padding-left: 0; 
  white-space: nowrap;
}

.price-features li::before {
  content: "•";
  color: #A855F7;
  position: static; 
  margin-right: 12px;
  font-weight: bold;
  font-size: 18px;
}

.price-value {
  text-align: center;
  font-size: 18px;
  margin-bottom: 30px;
  font-style: 600;
}

.price-value span {
  font-size: 36px;
  font-weight: bold;
  color: #A855F7;
}

.price-buttons {
  display: flex;
  gap: 15px;
  width: 100%;
}

.price-buttons button {
  flex: 1;
  padding: 12px 10px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
  font-family: 'Oswald', sans-serif;
}

.btn-outline, .btn-primary {
  flex: 1;
  padding: 15px 5px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center
}

.btn-outline:hover {
  background: #9333EA;
}

.btn-primary {
  flex: 1;
  border-radius: 10px;
  background: #A855F7;
  border: none;
  color: #fff;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none !important;
}

.btn-primary:hover {
  background: #9333EA;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.btn-outline {
  border-radius: 10px;
  background: transparent;
  border: 1px solid #A855F7;
  color: #fff;
}

.modal {
  overflow-y: auto;
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #111520;
  margin: 50px auto;
  padding: 60px;
  border: 1px solid #A855F7;
  border-radius: 24px;
  width: 90%;
  max-width: 850px;
  position: relative;
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.15);
}

.modal-subtitle {
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  color: #A855F7;
  margin: 0 0 20px 0;
}

.modal-title {
  font-family: "Oswald", sans-serif;
  font-size: 32px;
  text-transform: capitalize;
  color: #FCFCFC;
  margin-bottom: 20px;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.modal-list li {
  color: #FCFCFC;
  font-size: 16px;
  margin-bottom: 12px;
  position: relative;
  padding-left: 25px;
  line-height: 1.4;
}

.modal-list li::before {
  content: "•";
  color: #A855F7;
  position: absolute;
  left: 0;
  font-size: 16px;
}

.modal-text {
  color: #FCFCFC;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.close-button {
  position: absolute;
  top: 95px;
  right: 40px;
  width: 50px;
  height: 50px;
  font-size: 30px;
  color: #AFAFAF;
  line-height: 50px;
  text-align: center;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.3s ease, color 0.3s ease;
}

.close-button:hover {
  color: #A855F7;
  transform: rotate(90deg);
}

#modal-body h2 { text-transform: capitalize; color: #FCFCFC; margin-bottom: 20px; }
#modal-body h3 { margin-top: 20px; font-size: 18px; color: #FCFCFC; }
#modal-body ul { list-style: none; padding: 0; }
#modal-body li { margin-bottom: 8px; color: #FCFCFC; }

.container-contact {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 100px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.contact-section {
  background-color: #0B0F1A;
  padding-bottom: 120px;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  gap: 20px;
}

.contact-button1 {
  text-decoration: none !important;
  border-radius: 10px;
  border: solid 1px #A855F7;
  background: none;
  color: #FCFCFC;
  font-size: 20px;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.contact-button1:hover {
  background: #A855F7;
  color: #FCFCFC;
}

.contact-button2 {
  text-decoration: none !important;
  border-radius: 10px;
  border: solid 1px #A855F7;
  background: none;
  color: #FCFCFC;
  font-size: 20px;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.contact-button2:hover {
  background: #A855F7;
  color: #FCFCFC;
}

.footer{
  background-color: #111520;
  padding: 20px 0;
  max-width: 1920px;
  margin: 0 auto;
}

.container-footer {
  max-width: 1720px;
  margin: 0 auto;
  padding: 20px 100px;
  box-sizing: border-box;
  text-align: center;
}

.footer-title {
  color: #AFAFAF;
  font-size: 16px;
}

@media (max-width: 768px) {
  .container-header, .container, .container-projects, .container-pricing, .container-contact, .container-footer {
    padding: 0 20px;
  }

  .hero {
    flex-direction: column;
    padding-top: 100px;
  }

  .hero-left, .hero-right {
    flex: none;
    width: 100%;
    text-align: center;
  }

  .hero-right h1 {
    position: static;
    font-size: 48px;
    line-height: normal;
    margin-top: 20px;
  }

  .projects-section, .pricing-section {
    padding-bottom: 60px;
  }

  .project-item {
    grid-template-columns: none;
    text-align: center;
  }

  .project-card {
    justify-content: center;
    margin-top: 20px;
  }
}

.mobile-only { display: none; }
.mobile-nav { display: none; }

@media (max-width: 768px) {
  .projects-list {
    align-items: center;
  }

  .project-item {
    width: 100%;
    margin: 0;
  }

  .more-projects-wrapper {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  body { overflow-x: hidden; }
  
  .container, .container-header, .container-projects, 
  .container-pricing, .container-contact, .container-footer {
    padding: 0 20px !important;
  }

  .header { padding: 15px 0; }
  
  .container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .menu { display: none !important; }

  .mobile-only {
    display: flex;
    flex: 1;
    justify-content: flex-start;
  }

  .burger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 53px;
    height: 53px;
    cursor: pointer;
    z-index: 10000;
  }

  #burger-img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
  }

  .rotate-icon {
    transform: rotate(90deg);
  }
  
  .burger-menu span {
    display: block; width: 100%; height: 2px;
    background-color: #FCFCFC; transition: 0.3s;
  }

  .burger-menu.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .burger-menu.open span:nth-child(2) { opacity: 0; }
  .burger-menu.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .header-center {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  .header-center img { height: 28px; }

  .header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
  .header-btn {
    padding: 17px 30px !important;
    font-size: 14px !important;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #0B0F1A;
    padding: 120px 20px 40px 20px;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .mobile-nav.active { left: 0; }
  
.mobile-links-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 320px;
  }

  .mobile-btn {
    display: block;
    width: 100%;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
    text-decoration: none;
    color: #FFFFFF;
    border: 1px solid #A855F7;
    border-radius: 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    background: transparent;
    transition: all 0.3s ease;
}

  .mobile-btn.active-btn, 
.mobile-btn.active {
    background-color: #A855F7;
    color: #FFFFFF;
}

  .mobile-nav-footer {
    font-family: "Inter", sans-serif;
    color: rgba(252, 252, 252, 0.6);
    font-size: 16px;
    letter-spacing: 0.5px;
  }

  .mobile-nav a {
    font-family: "Oswald", sans-serif;
    font-size: 32px;
    color: #FCFCFC;
    text-decoration: none;
    text-transform: uppercase;
  }
  .mobile-nav a:hover { color: #A855F7; }

  html {
  scroll-behavior: smooth;
}

  .hero {
    flex-direction: column;
    padding-top: 150px;
    padding-bottom: 60px;
    text-align: left;
  }
  .hero-left {
    align-items: left;
    width: 100%;
  }
  .hero h2 { 
  font-size: 32px;
  line-height: 1.2; 
  text-align: left; 
  margin-bottom: 20px; 
  white-space: nowrap;
}

  .p1 { 
  font-size: 14px; 
  text-align: left; 
  margin-top: 0 !important;
  margin-bottom: 25px !important;
}
  
  .hero-right {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    margin-top: 40px;
    min-height: auto;
  }
  .hero-image { width: 80%; max-width: 300px; padding-bottom: 20px; }
  .hero-right h1 { position: static; font-size: 56px; text-align: center; }

  .section-title { font-size: 40px; text-align: left; margin-bottom: 30px; }
  
  .project-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 30px 0;
    gap: 20px;
  }
  .project-number { font-size: 48px; }
  .project-info h3 { font-size: 24px; }
  .project-card img { width: 100%; max-width: 100%; }

  .more-projects-wrapper { justify-content: left; }

  .pricing-grid { flex-direction: column; align-items: center; gap: 20px; }
  .price-card {
    width: 100%; max-width: 100%;
    padding: 30px 20px;
  }
  .price-card.popular { transform: none; }
  .price-features li { font-size: 14px; }
  .price-buttons { flex-direction: column; gap: 10px; }
  
  .contact-buttons { width: 100%; align-items: center;}
  .contact-button1, .contact-button2 { box-sizing: border-box; width: 100%; justify-content: center; font-size: 16px; align-self: stretch; }

  .modal-content { padding: 30px 20px; width: 95%; margin: 20px auto; }
  .close-button { top: 10px; right: 10px; }
}

@media (max-width: 768px) {
  .modal-content {
    margin: 107px auto 40px;
    width: 100%;
    max-width: 440px;
    margin: 100px auto 40px;
    padding: 25px 18px;
    box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .menu { display: none !important; }

    .mobile-nav {
        display: flex; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #0B0F1A;
        z-index: 100000;
        flex-direction: column;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        padding: 0;
        margin: 0;
    }

    .mobile-nav.active {
        transform: translateX(0);
    }

    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        height: 80px;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-nav-header > div {
        flex: 1;
    }

    .mobile-nav-header .burger-menu.open {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .burger-menu.open {
        cursor: pointer;
        width: 53px;
        height: 53px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 100001;
    }

    .mobile-nav-center {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .mobile-nav-header .logo {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mobile-links-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 85%;
        max-width: 400px;
        align-items: center;
    }

    .mobile-btn {
        display: block;
        width: 100%;
        padding: 20px;
        text-align: center;
        text-decoration: none;
        color: #FCFCFC;
        border: 1px solid #A855F7;
        border-radius: 12px;
        font-family: 'Oswald', sans-serif;
        font-size: 24px;
        background: transparent;
        transition: 0.3s;
        box-sizing: border-box;
    }

    .mobile-btn.active {
        background-color: #A855F7;
    }

    .mobile-nav-footer {
        text-align: center;
        padding-bottom: 50px;
        color: rgba(252, 252, 252, 0.4);
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        letter-spacing: 2px;
        text-transform: uppercase;
    }
}