/* Global Styles */
body {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #F7F7F7;
    color: #333;
    min-height: 100vh;
  }
  
  .container {
    max-width: 960px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 auto;
  }
  
  /* Header: flex container for logo & placeholder lines */
  header {
    display: flex;
    align-items: center; /* Vertically center logo and lines container */
    justify-content: space-between; /* Push logo and lines apart */
    margin-bottom: 20px;
  }
  
  .logo {
    margin-left: 15%; /* Keep logo indented */
  }
  
  .logo img {
    width: auto;
    max-height: 400px;
    display: block;
  }

  .placeholder-lines-container {
     width: 40%;
     display: flex; /* Needed to make align-items work on placeholder-lines */
     flex-direction: column;
     align-items: flex-end; /* Align placeholder-lines div to the right */
  }
  
  .header-right {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
  }
  
  .icon {
    color: #3070A9;
    text-decoration: none;
    display: flex; /* Use flexbox for alignment */
    flex-direction: column; /* Stack image and text vertically */
    align-items: center; /* Center items horizontally */
    gap: 5px; /* Add space between image and text */
  }
  
  .icon img {
    width: 64px; /* Match HTML attribute or adjust as needed */
  }
  
  .icon span {
    font-size: 16px;
  }
  
  /* Placeholder Text Lines */
.placeholder-lines {
    display: flex; /* Use flex to control children alignment */
    flex-direction: column;
    align-items: flex-end; /* Align lines to the right */
    width: 100%; /* Take full width of its container */
  }

  .placeholder-lines .line {
    background-color: #e0e0e0;
    height: 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
  }
  
  .placeholder-lines .line.long   { width: 100%; }
  .placeholder-lines .line.medium { width: 70%; }
  .placeholder-lines .line.short  { width: 40%; }
  
  /* Shimmer Animation */
  .placeholder-lines .line::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
    animation: shimmer 10s infinite linear; /* Slowed down animation */
  }
  
  @keyframes shimmer {
    0%   { left: -150%; }
    50%  { left: 150%; }
    100% { left: -150%; }
  }

  /* Hide shimmering lines when the drawer is open */
  .placeholder-lines-container.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }

  /* Drawer Styles */
  #drawer {
    background-color: #eee; /* Light background for the drawer */
    padding: 0 20px; /* Add horizontal padding, vertical padding comes with height */
    margin: 20px 0; /* Space above and below drawer */
    width: 100%; /* Make drawer span container width */
    box-sizing: border-box;
    height: 0; /* Initially hidden */
    overflow: hidden; /* Hide content when closed */
    transition: height 0.5s ease-in-out; /* Animate only height */
    border-radius: 10px;
  }

  #drawer.open {
     padding-top: 20px; /* Add padding when open */
     padding-bottom: 20px; /* Add padding when open */
     /* Height is set dynamically by JS */
  }

  #drawer-content {
    /* Add any specific styling for the text inside the drawer if needed */
    color: #555;
    /* Add styles for the contact form */
  }

  #drawer-content form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between form groups */
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Space between label and input */
  }

  .form-group label {
    font-weight: bold;
    font-size: 0.9em;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group textarea {
    width: 100%; /* Full width within the drawer */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    font-family: inherit; /* Use the body font */
    font-size: 0.9em;
  }

  .form-group textarea {
    resize: vertical; /* Allow vertical resizing */
  }

  button.submit-button {
    padding: 10px 15px;
    background-color: #3070A9; /* Match icon color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    align-self: flex-start; /* Align button to the left */
    transition: background-color 0.2s ease;
  }

  button.submit-button:hover {
    background-color: #245681; /* Darker shade on hover */
  }

  /* Project Item Styles within Drawer */
  .project-item {
    display: flex; /* Arrange icon and details side-by-side */
    align-items: flex-start; /* Align items to the top */
    margin-bottom: 20px; /* Space between project items */
  }

  .project-item:last-child {
    margin-bottom: 0; /* No bottom margin for the last item */
  }

  .project-icon-link,
  .project-icon {
    display: block; /* Ensure image link behaves like a block */
    width: 60px; /* Adjust icon size as needed */
    height: 60px;
    margin-right: 15px; /* Space between icon and text */
    flex-shrink: 0; /* Prevent icon from shrinking */
    border-radius: 12px; /* iOS style rounded corners */
  }

  .project-details {
    flex-grow: 1; /* Allow details section to take remaining space */
  }

  .project-title-link {
    text-decoration: none; /* Remove underline from title link */
    color: inherit; /* Inherit text color */
  }

  .project-title {
    font-size: 1.1em;
    margin-bottom: 5px; /* Space between title and description */
    display: block; /* Ensure title takes its own line */
  }

  .project-description {
    margin: 0; /* Remove default paragraph margin */
    font-size: 0.9em;
    line-height: 1.4;
  }

  /* Footer Styles */
  footer {
    padding-top: 20px;
    margin-bottom: 20px; /* Add space between icons and drawer */
  }

  footer .icons {
    display: flex;
    justify-content: center; /* Center icons horizontally */
    gap: 50px;
  }

  /* Copyright Styles */
  .copyright {
    text-align: center; /* Center the text */
    font-size: 0.8em; /* Make text smaller */
    color: #888; /* Subtle gray color */
    margin-top: 40px; /* Space above the copyright */
    padding-bottom: 20px; /* Space below the copyright */
  }

  /* Responsive Styles for Mobile Screens */
  @media (max-width: 768px) {
    .logo {
      margin-left: 0; /* Remove left margin */
      text-align: center; /* Center the logo */
    }

    .logo img {
      max-width: 90%; /* Scale logo to fit smaller screens */
      height: auto; /* Maintain aspect ratio */
    }

    header {
      flex-direction: column; /* Stack logo and placeholder lines vertically */
      align-items: center; /* Center align items */
      margin-bottom: 5px; /* Further reduce vertical spacing */
    }

    .placeholder-lines-container {
      display: none; /* Hide shimmering lines entirely */
    }

    footer {
      margin-top: 10px; /* Reduce space above footer */
    }

    footer .icons {
      justify-content: center; /* Center icons horizontally */
      gap: 50px; /* Increase gap between icons */
    }

    #drawer {
      margin: 5px 0; /* Further reduce vertical margin */
      width: 90%; /* Center drawer and reduce width */
      margin-left: auto; /* Center horizontally */
      margin-right: auto; /* Center horizontally */
    }
  }

/* Blog Styles */ /* ADD THESE RULES BACK */
.blog-listing {
    padding: 20px 0;
}

.blog-preview {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-preview h2 {
    margin: 0 0 10px 0;
}

.blog-preview h2 a {
    color: #333;
    text-decoration: none;
}

.blog-preview h2 a:hover {
    color: #3070A9;
}

.post-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.description {
    color: #555;
    line-height: 1.6;
}

/* Single Blog Post */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.blog-post article {
    line-height: 1.6;
}

.blog-post h1 {
    margin-bottom: 10px;
}

.post-content {
    margin-top: 20px;
}

.post-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-to-blog {
    color: #3070A9;
    text-decoration: none;
}

.back-to-blog:hover {
    text-decoration: underline;
} /* ADD RULES UP TO HERE */