/* General Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
}

/* Utility Classes */
.justify-text {
  text-align: justify;
  text-justify: inter-word;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
}

p {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 400;
}

/* Navbar */
nav {
  background: #333;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav .nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav .nav-links li {
  margin-left: 1.5rem;
}

nav .nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav .nav-links a:hover {
  color: #007bff;
}

/* Responsive Navbar */
@media (max-width: 767px) {
  nav .nav-links {
    display: none;
  }

  nav .logo {
    font-size: 1.2rem;
  }
}

/* Home Section */
.home-section {
  position: relative;
  background: url("images/background.jpg") no-repeat center center/cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #000;
}

.home-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 1)
  );
  z-index: 1;
}

.home-content {
  max-width: 600px;
  z-index: 2;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #fff;
  margin-bottom: 1rem;
  object-fit: cover;
}

.home-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.home-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Responsive Home Section */
@media (max-width: 767px) {
  .profile-img {
    width: 150px;
    height: 150px;
  }

  .home-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .home-content p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.5rem;
  }
}

/* Buttons */
.btn {
  background: #007bff;
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  transition: background 0.3s ease;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
}

.btn:hover {
  background: #0056b3;
}

.btn-download {
  background: #28a745;
}

.btn-download:hover {
  background: #218838;
}

/* Wrapper for Other Content */
.content-wrapper {
  position: relative;
  background: url("images/background 2.jpg") no-repeat center center/cover;
  padding-top: 100px;
}

.content-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0)
  );
  z-index: 1;
}

.content-wrapper > * {
  position: relative;
  z-index: 2;
  color: #000;
}

/* About, Portfolio, Experience, Contact Sections */
.about-section,
.portfolio-section,
.experience-section,
.contact-section {
  padding: 2rem;
  text-align: center;
  margin-bottom: 0 !important;
}

.about-section p {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.6;
}

/* Portfolio Section */
.portfolio-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.portfolio-item {
  width: 30%;
  margin: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  background: #fff;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.portfolio-item p {
  text-align: justify;
  text-justify: inter-word;
  margin: 1rem 0;
}

/* Responsive Portfolio Section */
@media (max-width: 1023px) {
  .portfolio-item {
    width: 45%;
  }
}

@media (max-width: 767px) {
  .portfolio-item {
    width: 100%;
  }

  .portfolio-item p {
    font-size: 0.9rem;
    margin: 0.5rem 0;
  }
}

/* Contact Section */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-link {
  font-size: 2rem;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-link span {
  font-size: 1rem;
  margin-top: 0.5rem;
}

.social-link:hover {
  color: #007bff;
}

.fa-whatsapp:hover {
  color: #25d366;
}

.fa-instagram:hover {
  color: #e4405f;
}

.fa-envelope:hover {
  color: #d44638;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 0;
}

footer p {
  margin: 0;
}

/* Responsive Footer */
@media (max-width: 767px) {
  footer {
    padding: 0.5rem;
  }
}
