/* Reset some default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  /* Global styles */
  body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    background-color: #f8f8f8;
    color: #333;
  }
  
  /* Header styles */
  header {
    color: #fff;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  #header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(to right, #ff9966, #ff5e62);
  }
  
  #header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
  }
  
  #header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent black overlay */
  }
  
  header h1,
  header nav {
    position: relative;
    z-index: 2; /* Ensure header text and nav are on top of the overlay */
  }
  
  header h1 {
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  nav ul {
    list-style-type: none;
  }
  
  nav ul li {
    display: inline-block;
    margin-right: 20px;
  }
  
  nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
  }
  
  /* Main content styles */
  main {
    max-width: 830px;
    margin: 0 auto;
    padding: 50px 70px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
  
  section {
    margin-bottom: 60px;
  }
  
  section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ff5e62;
    text-align: center;
    position: relative;
  }
  
  section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #ff9966;
  }
  
  /* About Me section styles */
  #about {
    text-align: center;
  }
  
  #about p {
    text-align: left;
    line-height: 1.9;
  }
  
  #about img {
    max-width: 300px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
  }
  
  /* Portfolio section styles */
  #portfolio ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  #portfolio li {
    flex-basis: calc(50% - 20px);
    margin-bottom: 40px;
    background-color: #f8f8f8;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }
  
  #portfolio li:hover {
    transform: translateY(-10px);
  }
  
  /* Contact form styles */
  form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #ff5e62;
  }
  
  form input,
  form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
  }
  
  form input:focus,
  form textarea:focus {
    border-color: #ff9966;
    outline: none;
  }
  
  form button {
    background-color: #ff5e62;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  form button:hover {
    background-color: #ff9966;
    transform: scale(1.1);
  }
  
  /* Footer styles */
  footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
  }
  
  /* Animations */
  @keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  
  section {
    animation: fadeIn 1s ease;
  }