/* Always show vertical scrollbar */
html {
    overflow-y: scroll;
}

/* General styling */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* General Card Style */
.card {
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background-color: #fff;
    padding: 20px;
}

/* Icon styling */
.social-icons {
    margin-top: 15px;
    text-align: center;
}

.social-icons img {
    width: 30px;
    transition: all 0.3s ease-in-out;
    height: auto;
    margin-right: 10px;
    display: inline-block;
}

.social-icons img:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Profile and Work Experience card styling */
.profile-card,
.work-experience-card {
    width: 100%;
    min-height: 200px;
}

/* Collapsible Work Experience */
.collapsible-header {
    background-color: #f9f9f9;
    padding: 15px;
    font-weight: bold;
    margin: 10px 0;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Glow and pop effect on hover */
.collapsible-header:hover {
    background-color: #e0e0e0;
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Arrow style */
.arrow-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

/* Rotate the arrow when open */
.collapsible.open .arrow-icon {
    transform: rotate(180deg);
}

/* Collapsible content animation */
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: max-height 0.6s ease, padding 0.6s ease;
}

/* Expanded section styles */
.collapsible.open .collapsible-content {
    max-height: 300px;
    padding: 15px;
    transition: max-height 0.6s ease, padding 0.6s ease;
}

/* Hide the scrollbar */
.scrollable-content {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: none;
}

.scrollable-content::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Button Styling */
.btn-primary {
    background-color: #4a90e2;
    border-color: #4a90e2;
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    padding: 8px 25px;
    background-color: #357ABD;
    border-color: #357ABD;
    transform: scale(1.05);
}

/* References Container */
.references-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.reference-item {
    flex: 1;
    margin: 0 10px;
}

.reference-item p {
    margin: 5px 0;
}

/* Contact Section */
.contact-details {
    text-align: left;
    padding-left: 15px;
}

.contact-details p {
    margin: 5px 0;
}

/* Skills, Education, and References Section Background and Font */
.card-header {
    font-weight: bold;
    text-align: center;
    background-color: #f2f2f2;
    color: #333;
    padding: 10px;
    border-radius: 5px;
}

/* Skills Section */
.skills-card {
    max-height: none;
    /* Remove the max-height restriction */
    overflow: visible;
    /* Ensure no content is hidden */
}

/* Remove scrollable feature */
.scrollable-content {
    max-height: none;
    /* Remove max-height to display full content */
    overflow: visible;
    /* Ensure content isn't scrollable */
}

/* Add smooth transition when the reference card appears or disappears */
.reference-card {
    transition: opacity 0.5s ease, height 0.5s ease;
}

.hidden {
    opacity: 0;
    height: 0;
    visibility: hidden;
}

/* Responsive Design Adjustments */
@media (max-width: 767px) {
    .container {
        display: block;
        margin-top: 20px;
    }

    .work-experience-card {
        min-height: auto;
        padding-bottom: 20px;
    }

    .references-container {
        display: block;
    }
}

/* Footer Space */
.footer-space {
    min-height: 50px;
}