/* ===========================
   HOME PAGE STYLES
   =========================== */

/* ===== HERO ===== */

.hero {
  height: var(--hero-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 8%;
  color: var(--text-light);
  position: relative;
  text-align: left;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.2)
  );
  z-index: 0;
}

.hero-home {
  background: url("../assets/images/rocket.jpg") center 35% / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 0.3em;
}

.hero-content h2 {
  font-size: 1.8rem;
  color: #ddd;
  margin-bottom: 1.5em;
}

.hero .socials {
  display: flex;
  gap: 18px;
  margin-top: 1.2em;
}

.hero .socials a {
  font-size: 1.4rem;
}

/* ===== PROFILE ===== */

.profile-section {
  background: var(--light-bg);
  color: var(--text-dark);
  padding: 100px 8%;
}

.profile-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.profile-image img {
  width: 400px;
  display: block;
  transition: transform 0.3s ease;
}

.profile-image img:hover {
  transform: scale(1.02);
}

.profile-content {
  flex: 1;
  min-width: 320px;
  max-width: 650px;
}

.profile-content h2,
.profile-content h3 {
  color: #0c3d52;
  margin-bottom: 0.5em;
}

.profile-content h2 {
  font-size: 1.8rem;
}

.profile-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5em;
}

.profile-content p {
  color: #333;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* ===== SOFTWARE LOGOS ===== */

.software-logos {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 8%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
  align-items: center;
  justify-content: center;
}

.software-logos img {
  height: 40px;
  object-fit: contain;
  opacity: 0.9;
  filter: grayscale(10%);
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.software-logos img:hover {
  transform: translateY(-2px);
  opacity: 1;
  filter: none;
}

/* ===== CAROUSEL ===== */

.carousel-section {
  background: var(--grey-bg);
  color: var(--text-dark);
  text-align: center;
  padding: 50px 5% 100px;
}

.carousel-section h2 {
  font-size: 2.1rem;
  margin-bottom: 40px;
  color: #0c3d52;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.15);
}

.carousel-slide {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 1s ease-in-out;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ===== FULL-WIDTH TITLE BANNERS ===== */

.recent-project-title,
.other-projects-title {
  background: #0c3d52;
  color: #fff;
  padding: 40px 0;
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ===== RECENT PROJECT ===== */

.recent-project-section {
  background: #fff;
  padding: 0 0 80px;
  text-align: center;
}

.recent-project-subtitle {
  margin: 50px auto;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0c3d52;
}

.recent-project-block {
  max-width: 1000px;
  margin: 0 auto 80px;
}

.recent-project-block img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 20px;
}

.recent-project-block p {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  color: #333;
}

/* ===== OTHER PROJECTS ===== */

.other-projects-section {
  background: #fff;
  text-align: center;
  padding-bottom: 80px;
}

.other-projects-grid {
  max-width: 1200px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.project-card {
  text-decoration: none;
  color: #222;
  font-size: 1.1rem;
  text-align: center;
  transition: transform 0.25s ease;
}

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

.project-card img {
  width: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
  border-radius: 4px;
}

.project-card p {
  margin-top: 12px;
  font-weight: 400;
}

/* ===== CONTACT ===== */

.contact-section {
  background: #fff;
  padding: 80px 8% 100px;
  text-align: center;
  border-top: 1px solid #e5e5e5;
}

.contact-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0c3d52;
  margin-bottom: 50px;
}

.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.contact-item {
  text-align: center;
}

.contact-icon {
  font-size: 2.5rem;
  color: #0c3d52;
  margin-bottom: 15px;
}

.contact-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #0c3d52;
}

.contact-main {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-main a {
  color: #0c3d52;
  text-decoration: none;
}

.contact-main a:hover {
  text-decoration: underline;
}

.contact-desc {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 950px) {
  .hero {
    height: 80vh;
    padding: 0 6%;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content h2 {
    font-size: 1.4rem;
  }

  .profile-section {
    padding: 70px 6%;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
}

@media (max-width: 600px) {
  .profile-image img {
    width: 280px;
  }

  .carousel-section {
    padding: 40px 4% 70px;
  }

  .other-projects-grid {
    grid-template-columns: 1fr;
    width: 90%;
  }

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