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

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background-color: #0a0a0a;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
}

.logo {
  font-size: 1.2rem;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-links a {
  color: #999;
  text-decoration: none;
  font-weight: 300;
  font-size: 0.9rem;
  text-transform: lowercase;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #ffd700;
}

.nav-contact {
  color: #999;
  font-size: 0.9rem;
  font-weight: 300;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: #0a0a0a;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  width: 100%;
}

.hero-content {
  z-index: 2;
  padding-right: 4rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: #ffd700;
  margin-bottom: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 2rem;
  color: #fff;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -2px;
}

.hero-name {
  color: #ffd700;
}

.hero-description {
  font-size: 1rem;
  color: #999;
  margin-bottom: 3rem;
  max-width: 400px;
  line-height: 1.8;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  color: #ffd700;
  text-decoration: none;
  border: 2px solid #ffd700;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #ffd700;
  transition: left 0.3s ease;
}

.cta-button:hover::before {
  left: 0;
}

.cta-button:hover {
  color: #000;
}

.cta-button span {
  position: relative;
  z-index: 1;
}

.hero-image {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
  transition: filter 0.5s ease;
}

.hero-image:hover img {
  filter: grayscale(80%) contrast(1.1);
}

/* About Section */
.about {
  padding: 8rem 0;
  background: #111;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 4rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about-text {
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.8;
  font-weight: 300;
}

.about-text h3 {
  color: #ffd700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #333;
}

.skill-name {
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-level {
  color: #ffd700;
  font-size: 0.9rem;
  font-weight: 300;
}

/* Projects Section */
.projects {
  padding: 8rem 0;
  background: #0a0a0a;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
  margin-top: 4rem;
}

.project-card {
  background: #111;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  aspect-ratio: 1.2;
  width: 475px;
  height: 600px;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  height: 45%;

  background: linear-gradient(135deg, #222, #333);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #666;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}
.project-image img {
  width: 100%;

  object-fit: contain; /* или cover, если хотите заполнить весь контейнер */
  object-position: center;
}

.project-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 215, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image::before {
  opacity: 1;
}

.project-content {
  padding: 2rem;
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-description {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 300;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  background: transparent;
  color: #ffd700;
  padding: 0.25rem 0.75rem;
  border: 1px solid #ffd700;
  font-size: 0.8rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-link {
  color: #ffd700;
  text-decoration: none;
  font-weight: 300;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  margin-top: 1rem;
  display: inline-block;
}

.project-link:hover {
  color: #fff;
}

/* Services Section */
.services {
  padding: 8rem 0;
  background: #111;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  margin-top: 4rem;
}

.service-item {
  text-align: left;
  padding: 2rem 0;
  border-bottom: 1px solid #333;
}

.service-number {
  font-size: 3rem;
  font-weight: 900;
  color: #ffd700;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-description {
  color: #999;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
}

/* Contact Section */
.contact {
  padding: 8rem 0;
  background: #0a0a0a;
  text-align: center;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 2rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.contact-subtitle {
  font-size: 1.2rem;
  color: #999;
  margin-bottom: 4rem;
  font-weight: 300;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #999;
  font-weight: 300;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #ffd700;
}

.contact-link-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.contact-link-value {
  font-size: 1.1rem;
  font-weight: 500;
}

.cta-large {
  display: inline-block;
  padding: 1.5rem 3rem;
  background: #ffd700;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.cta-large:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: #111;
  padding: 3rem 0;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  font-weight: 300;
  border-top: 1px solid #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .hero-content {
    padding-right: 0;
    text-align: center;
    order: 2;
  }

  .hero-image {
    height: 50vh;
    order: 1;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-links {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-title {
    font-size: 2.5rem;
  }

  .container {
    padding: 0 1.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #ffd700;
}

::-webkit-scrollbar-thumb:hover {
  background: #fff;
}
