/* About.css */

/* General reset and background */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d1b2a;
  color: #fff;
}

/* Header section */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px;
  background-color: #0d1b2a;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  margin-left: 0px;
  text-align: left;
  letter-spacing: 2px;
}

.white-text {
  color: #ffffff;
}

.red-text {
  color: #ff4d4d;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  padding-left: 0;
  margin: 0;
}

nav ul li a {
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a.active,
nav ul li a:hover {
  color: #00b4d8;
}

/* Hero section */
.hero {
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #0d1b2a;
}

/* Heading */
.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

/* Highlighted words */
.about-word {
  color: #fff;
  font-weight: bold;
}

.me-word {
  color: #00b4d8;
  font-weight: bold;
}

/* About paragraph */
.hero p {
  max-width: 800px;
  margin: 30px auto 0;
  font-size: 18px;
  color: #ccc;
  line-height: 1.8;
  text-align: justify;
}

/* Image container */
.image-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
  background-color: #0d1b2a;
}

/* Image styling */
.image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
  background-color: #0d1b2a;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.6);
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* Intro summary box */
.intro-summary {
  max-width: 900px;
  margin: 40px auto;
  padding: 25px 30px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.8;
  border-left: 4px solid #00b4d8;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-align: justify;
}

/* ---------- Responsive Design ---------- */

@media (max-width: 1024px) {
  header {
    padding: 25px 30px;
  }

  .logo {
    font-size: 24px;
  }

  nav ul {
    gap: 20px;
  }

  .hero {
    padding: 30px 30px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .intro-summary {
    font-size: 15px;
    padding: 20px 25px;
  }

  .image {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 25px;
  }

  .logo {
    margin-bottom: 15px;
    font-size: 22px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }

  .hero {
    padding: 20px 20px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 15px;
  }

  .intro-summary {
    padding: 18px 20px;
    font-size: 14.5px;
  }

  .image-container {
    order: -1;
    margin-bottom: 20px;
  }

  .image {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 30px;
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    font-size: 22px;
    width: 100%;
    margin-bottom: 10px;
    text-align: left;
  }

  nav {
    width: 100%;
  }

  nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    padding-left: 0;
    margin: 0;
  }

  nav ul li {
    text-align: left;
  }

  nav ul li a {
    font-size: 14px;
  }

  .hero {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
    padding: 0 10px;
  }

  .intro-summary {
  width: 90%;
  max-width: 90%;
  margin: 25px auto;
  padding: 18px 16px;
  font-size: 14px;
  border-left: 4px solid #00b4d8;
  border-radius: 8px;
  line-height: 1.7;
  text-align: justify;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

  .image-container {
    order: -1;
    margin-bottom: 15px;
  }

  .image {
    width: 160px;
    height: 160px;
  }
}