body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    max-width: 100%; /* Ensure the container takes full width */
    margin: 0 auto; /* Center the container horizontally */
    padding: 20px;
    box-sizing: border-box; /* Ensure padding is included in the width */
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
    width: 100%; /* Full width */
    box-sizing: border-box; /* Include padding in width */
}

.card h2, .card h3 {
    margin-top: 0;
}

.card h2 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.card h3 {
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 20px; /* Adjust size of the company/job title */
}

.profile-card {
    display: flex;
    align-items: center;
    width: 100%; /* Full width */
    padding: 20px; /* Increased padding for more spacing */
    box-sizing: border-box; /* Ensure padding is included in the width */
    background: #fff; /* Same background as other cards */
    border-radius: 8px; /* Consistent border radius */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Same shadow as other cards */
}

.profile-image {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin-right: 20px; /* Space between the image and text */
}

.profile-info {
    flex: 1; /* Allow text to take the remaining space */
}

.profile-info h1 {
    margin: 0;
    font-size: 24px; /* Adjust font size if needed */
}

.profile-info p {
    margin: 5px 0;
}

ul {
    list-style-type: square; /* Use square bullets for the list */
    padding-left: 20px; /* Add padding to align bullets */
}

ul li {
    font-size: 14px; /* Smaller font size for duties */
    line-height: 1.6; /* Line height for better readability */
    margin-bottom: 5px; /* Space between list items */
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.counter {
    background-color: #73c763; /* Example background color */
    color: white;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 16px;
}

.visitor-counter {
    margin-bottom: 20px;
}

/* Print-specific styles for PDF generation */
@media print {
    body {
        background-color: #fff; /* White background for PDF */
        margin: 0;
        padding: 0;
    }

    .container {
        max-width: 190mm; /* A4 width minus margins */
        padding: 10mm; /* Match html2pdf margin */
        box-shadow: none; /* Remove shadow for print */
    }

    .card {
        box-shadow: none; /* Remove shadow for print */
        border-radius: 0; /* Remove rounded corners */
        page-break-inside: avoid; /* Prevent card content from splitting across pages */
        margin-bottom: 10mm;
    }

    .profile-card {
        box-shadow: none;
        border-radius: 0;
        page-break-inside: avoid;
    }

    .visitor-counter {
        display: none; /* Hide visitor counter in PDF */
    }

    a {
        color: #000; /* Black links for better readability */
        text-decoration: none; /* Remove underline in PDF */
    }

    /* Ensure content fits A4 page */
    .profile-image {
        width: 80mm;
        height: 80mm;
    }

    .profile-info h1 {
        font-size: 20px;
    }

    .card h2 {
        font-size: 18px;
    }

    .card h3 {
        font-size: 16px;
    }

    ul li {
        font-size: 12px;
    }
}

/* Existing Media Queries for Responsiveness */
@media (min-width: 768px) {
    .profile-card {
        flex-direction: row; /* Ensure profile card content is in a row layout */
    }

    .profile-image {
        width: 120px; /* Slightly larger profile image */
        height: 120px;
    }

    .profile-info h1 {
        font-size: 28px; /* Adjust font size for larger screens */
    }

    .profile-info p {
        font-size: 18px; /* Adjust font size for larger screens */
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px; /* Limit the container width on larger screens */
    }

    .profile-card {
        padding: 30px; /* Increase padding for larger screens */
    }

    .profile-image {
        width: 150px; /* Larger profile image */
        height: 150px;
    }

    .profile-info h1 {
        font-size: 32px; /* Larger font size */
    }

    .profile-info p {
        font-size: 20px; /* Larger font size */
    }
}

@media (max-width: 767px) {
    .profile-card {
        flex-direction: column; /* Stack profile card content vertically */
        align-items: center; /* Center-align the content */
    }

    .profile-image {
        width: 80px; /* Smaller profile image */
        height: 80px;
        margin-right: 0; /* Remove margin on small screens */
        margin-bottom: 10px; /* Add space below the image */
    }

    .profile-info h1 {
        font-size: 20px; /* Smaller font size */
    }

    .profile-info p {
        font-size: 16px; /* Smaller font size */
    }
}

/* Portfolio / project showcase */
.portfolio-header {
  text-align: center;
  margin-bottom: 20px;
}

.portfolio-header h1 {
  font-size: 2.5rem;
  margin: 0;
}

.portfolio-header p {
  color: #555;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.project-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.1s);
}

.project-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
