/* Custom dropdown menu styling to match navbar */
.dropdown-menu {
    background-color: #212529; /* Bootstrap navbar-dark bg */
    color: whitesmoke;
    border: none;
}

.dropdown-menu .dropdown-item {
    color: whitesmoke;
}

.dropdown-menu .dropdown-item:hover, .dropdown-menu .dropdown-item:focus {
    background-color: #343a40;
    color: #ffcc70;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: whitesmoke;
    background-color:rgba(12, 9, 9, 0.69);
    margin-left: 5%;
    margin-right: 5%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/background1.jpg'); /* Path to the image */
    background-size: cover; /* Ensure the image covers the whole section */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Avoid repeating the image */
}

html {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: whitesmoke;
    height: var(--dynamic-height);
}

body.dynamic-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+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U5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

#main-page {
    text-align: justify;
}

.right-column {
    width: 30%;
    text-align: right;
    margin-left: auto;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.container-resume  {
    max-width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

ul {
    margin: 10px 0;
    padding-left: 20px;
    list-style-type: disc; /* This restores bullet points */
}

p {
    margin-bottom: 20px;
}

ul li {
    margin-bottom: 10px;
}

ul.custom-list {
  list-style-type: disc;
  padding-left: 40px;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* PDF Viewer Enhancements */
.pdf-viewer {
    width: 100%;
    height: 600px;
    border: none;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    border-radius: 4px;
}

iframe, img {
    max-width: 100%;
    height: auto;
}

div {
    width: 100%; /* Stay within the viewport */
}

.recommendations {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Spacing between recommendations */
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.recommendation {
    display: flex;
    flex-direction: row;
    /* align-items: center; */
    align-items: flex-start;
    gap: 20px; /* Spacing between image and quote */
}

.recommendation.reverse {
    flex-direction: row-reverse; /* Reverse layout for zig-zag effect */
}

.paragraph-rows {
    flex-direction: column;
}

.image {
    width: 150px;
    height: 150px;
    object-fit: cover; /* Ensures the image scales without distortion */
    border-radius: 8px;
}

.quote {
    background-color: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #3498db; /* A visual indicator */
    font-style: italic;
    line-height: 1.5;
}

.quote cite {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #555;
}

.my-image {
    width: 200px;
    height: 200px;
}

.image-container-left {
    max-width: 210px;
    float: left;
    text-align: center; 
}

.image-container-right {
    max-width: 210px;
    float: right;
    text-align: center; 
}

.image-url-left {
    float: left;
    margin-right: 10px;
    width: 200px;
    height: 150px;
    position: top
}

.image-url-left-medium {
    float: left;
    margin-right: 10px;
    width: 100px;
    height: 75px;
    position: top
}

.image-url-left-small {
    float: left;
    margin-right: 10px;
    width: 50px;
    height: 37px;
    position: top
}

.image-url-right {
    float: right;
    margin-left: 10px;
    width: 200px;
    height: 150px;
    position: top
}

.link-left {
    display: inline-block;
    float: left;
}

.link-right {
    display: inline-block;
    float: right;
}
@media (max-width: 640.98px) { /* Adjust the width for mobile devices */
    .right-column {
        width: 100%; /* Full width for mobile */
        height: 100%; /* Full width for mobile */
        text-align: left; /* Aligns with both the left and right edges */
        margin-left: 0; /* Reset margin for mobile */
    }

    .image-container-left {
        max-width: 80px;
        float: left;
    }
    
    .image-container-right {
        max-width: 80px;
        float: right;
    }
        
    .image-url-left {
        float: left;
        margin-right: 4px;
        width: 100px;
        height: 75px;
        position: top
    }

    .image-url-right {
        float: right;
        margin-left: 4px;
        width: 100px;
        height: 75px;
        position: top
    }
}

.skills-columns {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.skills-columns div {
    flex: 1;
    min-width: 250px;
}

.skills-columns h4 {
    margin-bottom: 0.5rem;
    color: #87cefa;
}

section {
    margin-bottom: 3rem;
}

section h2 {
    font-size: 1.4rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #ffcc70;
}

html {
    scroll-behavior: smooth;
}

.legacy-profile {
  /* background-color: #f7f7f7; */
  border-left: 4px solid #999;
  padding: 2rem;
  font-family: 'Segoe UI', sans-serif;
}

.legacy-profile .section-title i {
  margin-right: 0.5rem;
  color: #666;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}


/* Card Styling */

.card {
    background-color: #696969; /* Light solid background */
    /* background-color: rgba(255, 255, 255, 0.05); */ /* subtle contrast */
    border: 1px solid rgba(255, 255, 255, 0.1); /* soft border */
    border-radius: 8px;
    padding: 0; /* Match accordion padding */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Accent bar */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #3498db;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

/* Card content */
.card-body {
    padding: 1rem;
    color: #eee;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-title {
    font-size: 1.1rem; /* Match accordion-header */
    font-weight: bold;
    color: #ffcc70;
    margin-bottom: 0.5rem;
}

/* Paragraph spacing */
.card-body p:not(:last-child) {
    margin-bottom: 0.5rem;
    color: #eee;
}

.card-body em {
    color: #ccc;
    font-style: italic;
}

.card-body small {
    font-size: 0.85rem;
    /* color: #f0f0f0; */
}

.card-body strong {
    color: #87cefa;
}

/* Sort Dropdown */
#sortOrder {
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #222;
    color: whitesmoke;
}

/* Responsive Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.col-md-6, .col-lg-4 {
    flex: 1 1 300px;
    max-width: 400px;
}

/* Empty State Message */
.text-muted {
    font-style: italic;
    color: #aaa;
}

.text-subdued {
    color: whitesmoke;
    font-style: italic;
}

/* LegacyProfile */
.legacy-profile {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.section-title {
    font-size: 1.6rem;
    color: #ffcc70;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #eee;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.download-link {
    margin-top: 1rem;
}

.education-entry {
  border-left: 4px solid #4B8BBE; /* Python blue for a subtle nod */
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  background-color: #f9f9f9;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.education-entry h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.education-entry h3 span {
  font-weight: normal;
  font-size: 1rem;
  color: #7f8c8d;
  margin-left: 0.5rem;
}

.education-entry ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.5rem;
}

.education-entry ul li {
  margin-bottom: 0.25rem;
}

.education-entry a {
  text-decoration: none;
  color: #2980b9;
  font-weight: 500;
}

.education-entry a:hover {
  text-decoration: underline;
  color: #1abc9c;
}

.education-entry p {
  font-size: 0.95rem;
  color: #34495e;
  margin-top: 0.5rem;
}


.modal {
  display: flex;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: rgba(255, 255, 255, 0.15);
  margin: 5% auto;
  padding: 1rem;
  border-radius: 8px;
  width: 90%;
  height: 80%;
  max-width: 80%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  position: relative;
}

.modal-iframe {
  width: 100%;
  height: 100%;
}

.close {
  color: #aaa;
  position: absolute;
  height: 100%;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.link-button {
    background: none;
    border: none;
    color: #007acc;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 0;
}
