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

body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #222;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ===== HERO SECTION ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  background-color: #f5f5f5;
  flex-wrap: wrap;
}

.hero-text {
  width: 50%;
  padding: 40px;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-photo {
  width: 50%;
  height: 100vh;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== BUTTON ===== */
.btn {
  padding: 12px 24px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #333;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.portfolio h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

/* Chess-style project layout */
.project-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.project-row.reverse {
  flex-direction: row-reverse;
}

.project-image {
  flex: 1;
  min-width: 280px;
}

.project-image img {
  width: 100%;
  border-radius: 8px;
}

.project-info {
  flex: 1;
  min-width: 250px;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 40px 20px;
  text-align: center;
  background-color: #fafafa;
}

.contact p {
  margin-bottom: 10px;
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
/*.fade-in {
  opacity: 1 !important;
  transform: none !important;
}*/

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.tight {
  margin: 0;
  line-height: 0.8; /* або 1.0 або навіть менше */
}
.about {
  padding: 60px 20px;
  background-color: #fafafa;
  text-align: center;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2em;
  margin-bottom: 1px;
}

.about p {
  font-size: 1.1em;
  line-height: 1.6;
}
.full-image-section {
  width: 50%;
  margin: 0;
  padding: 0;
}

.full-image-section img {
  width: 50%;
  height: auto;
  display: block;
}

/*.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background-color: #fefefe;
}*/
.contact-section {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-height: 100vh;
}

.contact-image-half,
.contact-info-half {
  flex: 1 1 50%;
  max-width: 50%;
  box-sizing: border-box;
}

.contact-image-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-info-half {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  background-color: #fefefe;
}

.contact-info-half h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-info-half p {
  font-size: 1rem;
  margin: 10px 0;
}

.contact-info-half a {
  color: #000;
  text-decoration: none;
}

/* Responsive layout */
@media (max-width: 768px) {
  .contact-image-half,
  .contact-info-half {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .contact-info-half {
    padding: 30px;
    text-align: center;
  }
}

.contact-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  gap: 40px;
}

.contact-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
}

.contact-info {
  flex: 1;
  text-align: left;
}

.contact-info h2 {
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.contact-info p {
  margin: 10px 0;
}

.contact-info a {
  color: #000;
  text-decoration: none;
}

@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
    text-align: center;
  }
  .contact-info {
    text-align: center;
  }
}







/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }

  .hero-text,
  .hero-photo {
    width: 100%;
    padding: 20px;
    height: auto;
    text-align: center;
  }

  .hero-photo {
    height: auto;
  }

  .hero-photo img {
    height: auto;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .project-row,
  .project-row.reverse {
    flex-direction: column;
    text-align: center;
  }

  .project-row.reverse .project-info {
    order: 2;
  }

  .project-row.reverse .project-image {
    order: 1;
  }
}