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

.flex{
  display: flex;
  align-items: center;
}
:root {
  --primary-color: #2c3e50;
  --secondary-color: #F3F4F6;
  --text-color: #1F2937;
  --hover-color: #2563EB;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  padding-top: 75px;
  font-family: "Roboto", serif;
  line-height: 1.6;
  background-color: #f4f4f4;

}

/* main section 1 */
:root {
  --primary-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  --primary-color: #2575fc;
  --text-color: #333;
  --background-light: #f4f4f4;
}

body {
  color: var(--text-color);
}
text{
  font-weight: 500 !important;
}
/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  animation: fadeIf 0.3s ease-out;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.4s ease-out;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}


/* Первая секция */
.section-first {
  background: #203864;
  color: white;
  padding: 50px 15px;
}

.section-first-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.section-first-text {
  flex: 1;
  min-width: 300px;
  padding-right: 30px;
}

.section-first-text h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.section-first-text p {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-first-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.section-first-image img {
  max-width: 100%;
  border-radius: 10px;
}

.section-features {
  max-width: 1200px;
  margin: 70px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.section-features-item {
  flex: 0 1 calc(25% - 15px);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.section-features-item i.fa-laptop-code {
  color: #2196f3;
}

.section-features-item i.fa-palette {
  color: #9c27b0;
}

.section-features-item i.fa-network-wired {
  color: #4caf50;
}

.section-features-item i.fa-cloud {
  color: #3f51b5;
}

.section-features-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-features-item i {
  font-size: 3em;
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
}

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

.section-title-one {
  text-align: center;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #3498db, #2980b9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-title {
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.service-description {
  color: #7f8c8d;
}


.service-card:hover {
  display: block;
}




.tech-journey-wrapper {
  width: 100%;
  background: linear-gradient(135deg, #0000FF, #8A2BE2, #00FF00);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  padding: 4rem 0;
}

.tech-journey-container {
  max-width: 1650px;
  width: 95%;
  margin: 0 auto;
  padding: 0 1rem;
  perspective: 1000px;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: #fff;
  font-size: 2.5rem;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.tech-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-item {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.timeline-item.active {
  opacity: 1;
  transform: translateX(0);
}

.timeline-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.timeline-icon i {
  font-size: 2.5rem;
  color: white;
}

.timeline-content {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-date {
  color: #fdbb2d;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.timeline-description {
  color: #e0e0e0;
}

.tech-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  z-index: -1;
}

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --text-color: #333;
  --bg-color: #f4f6f7;
}

.portfolio-header {
  text-align: center;
  padding: 50px 20px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.portfolio-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.portfolio-subtitle {
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 50px;
  max-width: 1500px;
  margin: 0 auto;
}

.project-card {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1);
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 45px rgba(50, 50, 93, 0.15);
}

.project-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: grayscale(20%) brightness(90%);
  transition: all 0.3s ease;
}

.project-card:hover .project-image {
  filter: grayscale(0%) brightness(100%);
}

.project-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-type {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.project-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.project-description {
  color: #666;
  flex-grow: 1;
  margin-bottom: 20px;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.tech-tag {
  background-color: #f1f3f5;
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  transition: background-color 0.3s ease;
}




@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIf {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
