/* Global reset for margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding and borders are included in the element's total width and height */
    font-family: 'Roboto', 'Open Sans', sans-serif;
}

/* Ensure html and body take full height */
html, body {
    height: 100%;
}

/* nav-bar */
.navbar {
    display: flex;
    height: 57px;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    flex-grow: 1;
    top: 0;
    background: rgba(255, 255, 255, 0.0); /* Transparent background */
    color: white;
    padding: 10px 20px;
    z-index: 1000;
    /* transition: background-color 0.3s ease, color 0.3s ease; */
}
.home-page .navbar {
    background: rgba(255, 255, 255, 0.0); /* Transparent background */
}


.projects-page .navbar,
.details-page .navbar,
.skills-page .navbar,
.dsa-page .navbar {
      background: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Shadow with elevation effect */
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
}

.navbar a:hover {
    color: rgb(154, 164, 111);
}

.navbar .left {
    font-size: 18px;
    font-weight: lighter;
}

.navbar .left .nav-admin-entry {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    margin-left: 0;
    white-space: nowrap;
}

.navbar .left .nav-admin-entry:hover {
    color: rgb(154, 164, 111);
}

.navbar .right {
    display: flex;
    align-items: center;
}

.navbar .nav-signout-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: inherit;
    font: inherit;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 12px;
}

.navbar .nav-signout-btn:hover {
    border-color: rgb(154, 164, 111);
    color: rgb(154, 164, 111);
}

.menubar {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    position: relative;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.0); /* Transparent background */
    color: white;
    padding: 10px 0px;
    z-index: 1000;
    margin-left: 0%;
    margin-bottom: 30px;
    
    /* transition: background-color 0.3s ease, color 0.3s ease; */
}

.menu-item{
    margin-left: 0%;
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /
}

.menubar a {
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 100px;
    transition: background-color 0.3s ease, color 0.3s ease, padding 0.3s ease; /* Adding transition for smooth fade effect */

}



.menu-item.active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 16px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
    height: 35px;
    width: auto;
    text-align: center;
    color: rgb(154, 164, 111);
    text-decoration: none; /* Removes underline from the link */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.menu-item:hover{
    background-color: rgb(154, 164, 111); /* Changes background color on hover */
    color: white; /* Changes text color on hover */
    transform: translateY(-3px); /* Adds a lift effect on hover */
}




.menubar  .allProjects{
    outline: none; /* Remove default focus outline */
    background-color: rgb(154, 164, 111);
    border: 2px solid  rgb(118, 126, 85);
    padding-left: 15px;
    padding-right: 15px;
    font-weight: 700;
    color: white;
}

.menubar  .androidApp{
    outline: none; /* Remove default focus outline */
    background-color: rgb(154, 164, 111);
    border: 2px solid  rgb(118, 126, 85);
    padding-left: 15px;
    padding-right: 15px;
    font-weight: 700;
    color: white;
}
.menubar  .iosApp{
    outline: none; /* Remove default focus outline */
    background-color: rgb(154, 164, 111);
    border: 2px solid  rgb(118, 126, 85);
    padding-left: 15px;
    padding-right: 15px;
    font-weight: 700;
    color: white;
}

.menubar  .webApp{
    outline: none; /* Remove default focus outline */
    background-color: rgb(154, 164, 111);
    border: 2px solid  rgb(118, 126, 85);
    padding-left: 15px;
    padding-right: 15px;
    font-weight: 700;
    color: white;
}
.menubar  .webSites{
    outline: none; /* Remove default focus outline */
    background-color: rgb(154, 164, 111);
    border: 2px solid  rgb(118, 126, 85);
    padding-left: 15px;
    padding-right: 15px;
    font-weight: 700;
    color: white;
}
.menubar  .windowApp{
    outline: none; /* Remove default focus outline */
    background-color: rgb(154, 164, 111);
    border: 2px solid  rgb(118, 126, 85);
    padding-left: 15px;
    padding-right: 15px;
    font-weight: 700;
    color: white;
}

/* Container for the cards */
.flex {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 57px;
    justify-content: center;
    height: 100vh; /* Full viewport height */
    background-image: url('res/BG.png');
    background-size: cover; /* Ensure the image covers the entire container */
    background-position: center; 
    background-repeat: no-repeat;/* Center the background image */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* Black overlay with 50% opacity */
    z-index: 1; /* Make sure the overlay is on top */
}

.flex-data {
    position: relative;
    margin-left: 12%;
    z-index: 2; /* Ensure content is above the overlay */
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: self-start;
    justify-content: center;
    text-align: start;
    height: auto;
    width: auto;
    max-width: 600px;
    color: white;
}

.home-page .title {
    font-size: 17px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;
}

.home-page .name {
    font-size: 27px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.home-page .description {
    font-size: 17px;
    line-height: 1.22;
    text-align: center;
    margin-bottom: 20px;
    height: auto;
}

.home-page .technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
}

.home-page .tech-item {
    flex: 1 1 calc(50% - 16px); /* This ensures two items per row */
    margin-bottom: 8px;
}


.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 5px;
    font-size: 16px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
    height: 45px;
    width: auto;
    text-align: center;
    color: rgb(154, 164, 111);
    text-decoration: none; /* Removes underline from the link */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}


.button:hover {
    background-color: rgb(154, 164, 111); /* Changes background color on hover */
    color: white; /* Changes text color on hover */
    transform: translateY(-3px); /* Adds a lift effect on hover */
}


.detail-flex{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    margin-top: 80px;
    justify-content: space-evenly;
    gap: 50px;
}

.detail-card{
    z-index: 2; /* Ensure content is above the overlay */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: self-start;
    justify-content: space-evenly;
    text-align: start;
    width: 500px;
    flex-grow: 1;
    /* min-height: 100vh; */
    color: rgb(161, 159, 159);
    background: rgb(230, 230, 230);
    height: auto;
    transition: transform 0.3s ease, background 0.3s ease; /* Smooth transition for scaling and background color */
}

.detail-card:hover{
    transform: scale(1.03); 
    background: rgb(43, 42, 42);
}

.detail-flex .card-img-top {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-self: center;
    /* padding: 50px; */
    flex-grow: 1;
    overflow: hidden;
    width: 300px;
    height: 300px;/* Ensure the image doesn't exceed half the container width */
    object-fit: cover; /* Cover the available space while maintaining aspect ratio */
    border-radius: 10px; /* Match the card's border radius if desired */
 
}



.details-page .title {
    font-size: 17px;
    margin-bottom: 15px;
    text-align: left; /* Ensures the text is left-aligned */
    font-weight: 500;
}

.details-page .name {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
    color: rgb(25, 163, 55);;
}

.details-page .description {
    font-size: 15px;
    line-height: 1.22;
    text-align: center;
}
.details-page .tag {
    font-size: 17px;
    line-height: 1.22;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 10px;
    color: rgb(118, 126, 85);
}

.details-page .technologies {
    font-size: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.04;
}

.details-page .tech-item {
    margin: 2px;
    border-radius: 5px;
    font-size: 15px;
}


.content-box {
    background: rgb(231, 229, 229);
    padding: 40px;
}

.projects-page .content-box{
    display: flex;
    flex-direction: column;
    padding: 40px;
}


/* section styles */
.home-page .section {
    margin-bottom: 60px;
    margin-top: 20px;
    font-family: sans-serif;
    font-size: 0.8rem;
}

/* section styles */
.skills-page .section,
.details-page .section,
.projects-page .section,
.dsa-page .section {
    margin-bottom: 25px;
    margin-top: 40px;
    font-family: sans-serif;
    font-size: 0.8rem;
}

/* DSA patterns — black text on white; purple curves drawn in SVG behind content */
.dsa-page .content-box {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: #ffffff;
    max-width: 100%;
    overflow-x: visible;
    box-sizing: border-box;
}

.dsa-page .section-title {
    color: #000000;
}

.dsa-page .section-description {
    color: #333333;
}

.dsa-graph-viewport {
    position: relative;
    min-height: 280px;
    padding: 8px 0 40px;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: visible;
}

.dsa-mind-canvas .dsa-graph-svg {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.dsa-graph-layer {
    position: relative;
    z-index: 1;
}

.dsa-graph-hint {
    font-size: 0.875rem;
    color: #333333;
    text-align: center;
    margin-bottom: 18px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
    font-weight: 400;
}

.dsa-view-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.dsa-admin-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-size: 0.8125rem;
    color: #6b7280;
}

.dsa-admin-bar-hint {
    margin: 0;
}

.dsa-admin-bar-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.dsa-admin-bar-link:hover {
    text-decoration: underline;
}

.dsa-admin-bar-btn {
    font-family: inherit;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
}

.dsa-admin-bar-btn:hover {
    background: #f3f4f6;
}

.dsa-view-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.dsa-view-btn {
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.dsa-view-btn:hover {
    border-color: #c4b5fd;
    color: #1f2937;
}

.dsa-view-btn--active {
    background: #7b61ff;
    border-color: #7b61ff;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(123, 97, 255, 0.35);
}

.dsa-add-node-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #1f2937;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.dsa-add-node-btn:hover {
    border-color: #7b61ff;
    color: #111827;
    box-shadow: 0 1px 4px rgba(123, 97, 255, 0.2);
}

.dsa-add-node-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b61ff;
}

.dsa-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 600000;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.dsa-dialog {
    position: relative;
    z-index: 600001;
    width: 100%;
    max-width: 440px;
    max-height: min(90vh, 640px);
    overflow: auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    padding: 20px 22px 18px;
    box-sizing: border-box;
}

.dsa-dialog-title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
}

.dsa-dialog-note {
    margin: 0 0 16px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #6b7280;
}

.dsa-add-node-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dsa-field-label,
.dsa-field-legend {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

.dsa-field-control {
    font-family: inherit;
    font-size: 0.9rem;
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    width: 100%;
    box-sizing: border-box;
}

.dsa-field-control:focus {
    outline: none;
    border-color: #7b61ff;
    box-shadow: 0 0 0 2px rgba(123, 97, 255, 0.2);
}

.dsa-fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px 12px;
    margin: 0;
}

.dsa-field-legend {
    padding: 0 4px;
}

.dsa-radio-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
}

.dsa-radio-row input {
    margin-top: 2px;
}

.dsa-field-url-wrap[hidden] {
    display: none !important;
}

.dsa-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.dsa-dialog-btn {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
}

.dsa-dialog-btn--primary {
    background: #7b61ff;
    border-color: #7b61ff;
    color: #ffffff;
}

.dsa-dialog-btn--primary:hover {
    filter: brightness(1.05);
}

.dsa-dialog-btn--ghost {
    background: transparent;
    border-color: transparent;
}

.dsa-dialog-btn--ghost:hover {
    background: #f3f4f6;
}

.dsa-h-branch-problems-strip {
    margin-top: 6px;
    padding: 6px 0 4px 10px;
    border-left: 2px solid var(--dsa-edge, #c4b5fd);
}

.dsa-h-problems-list--branch {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dsa-graph-roots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 16px;
}

/* Topic chips only in “One topic” — never show in Full map or Customize */
.dsa-view-unified .dsa-graph-roots,
.dsa-view-customize .dsa-graph-roots {
    display: none !important;
}

.dsa-graph-panel--customize {
    background: transparent;
    overflow: visible;
}

.dsa-cuz-scroll {
    min-height: 200px;
}

.dsa-cuz-toolbar-note {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #6b7280;
    margin: 0 0 10px;
}

.dsa-cuz-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dsa-cuz-toolbar-btn {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    cursor: pointer;
}

.dsa-cuz-toolbar-btn:hover {
    border-color: #7b61ff;
}

.dsa-cuz-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.dsa-cuz-meta-title {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
}

.dsa-cuz-tree {
    padding-left: 4px;
}

.dsa-cuz-node {
    margin-bottom: 2px;
}

.dsa-cuz-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.dsa-cuz-name {
    font-weight: 600;
    color: #1f2937;
    min-width: 0;
    flex: 1 1 120px;
}

.dsa-cuz-children {
    padding-left: 16px;
    border-left: 2px solid #e5e7eb;
    margin-left: 6px;
}

.dsa-cuz-children--collapsed {
    display: none;
}

.dsa-cuz-add {
    position: relative;
    flex: 0 0 auto;
}

.dsa-cuz-add-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b61ff;
    padding: 0;
}

.dsa-cuz-add-btn:hover {
    border-color: #7b61ff;
    background: #faf5ff;
}

.dsa-cuz-add-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    z-index: 50;
    flex-direction: column;
    min-width: 168px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 4px;
}

.dsa-cuz-add:hover .dsa-cuz-add-menu,
.dsa-cuz-add:focus-within .dsa-cuz-add-menu {
    display: flex;
}

.dsa-cuz-add-menu-item {
    font: inherit;
    font-size: 0.85rem;
    text-align: left;
    padding: 8px 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #374151;
}

.dsa-cuz-add-menu-item:hover {
    background: #f3f4f6;
}

.dsa-cuz-remove {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fff;
    color: #b91c1c;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
}

.dsa-cuz-remove:hover {
    background: #fef2f2;
}

.dsa-cuz-problem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0 4px 8px;
    font-size: 0.875rem;
    color: #374151;
}

.dsa-cuz-problem-name {
    flex: 1;
    min-width: 0;
}

.dsa-dialog--compact {
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dsa-dialog--compact .dsa-dialog-title {
    margin-bottom: 0;
}

.dsa-h-badge--root-static {
    cursor: default;
}

.dsa-node-root {
    font-family: inherit;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #000000;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dsa-root-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dsa-root-name {
    display: inline-block;
}

.dsa-node-root:hover {
    background: #f5f5f5;
}

.dsa-node-root.dsa-node--active {
    color: #000000;
    font-weight: 700;
    background: var(--dsa-accent-soft, #f0f0f0);
    box-shadow: inset 0 -2px 0 var(--dsa-accent, #7b61ff);
}

.dsa-graph-panel {
    position: relative;
    margin-top: 4px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.dsa-graph-panel[hidden] {
    display: none !important;
}

.dsa-mind-canvas {
    position: relative;
    background: #f3f4f6;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 0;
    min-height: 200px;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    /* Clip rounded corners; inner .dsa-mind-scroll handles panning */
    overflow: hidden;
}

/* Same L→R graph on every viewport; pan here when the tree is wider than the card */
.dsa-mind-scroll {
    position: relative;
    z-index: 1;
    display: block;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y;
    padding: clamp(16px, 3vw, 32px) max(12px, env(safe-area-inset-right))
        clamp(20px, 3vw, 40px) max(12px, env(safe-area-inset-left));
    background: transparent;
    text-align: center;
    min-height: min(260px, 75vh);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

/* Tree keeps natural width → parent scrolls horizontally on small screens */
.dsa-h-tree {
    display: inline-block;
    width: max-content;
    max-width: none;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: left;
    vertical-align: top;
}

.dsa-h-branch {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}

/* Root row: topic hub vertically centered next to the child column */
.dsa-h-branch--root {
    align-items: center;
    gap: clamp(16px, 3vw, 28px);
    max-width: none;
    width: max-content;
}

.dsa-h-branch-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex-shrink: 0;
}

.dsa-h-branch-head--root {
    align-items: center;
    justify-content: center;
}

/* Centered hub node — colors from --dsa-accent* on parent branch */
.dsa-h-root-hub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 22px;
    background: linear-gradient(
        160deg,
        #ffffff 0%,
        var(--dsa-accent-soft, #f4f2ff) 55%,
        var(--dsa-accent-soft, #ede9fe) 100%
    );
    border: 2px solid var(--dsa-accent, #7b61ff);
    border-radius: 18px;
    box-shadow:
        0 4px 22px color-mix(in srgb, var(--dsa-accent, #7b61ff) 22%, transparent),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.dsa-h-branch--root > .dsa-h-children {
    padding-left: 32px;
    margin-left: 0;
    border-left: none;
}

.dsa-h-label-row {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

/* Category name — joiner — count (reads like "Two Pointer — 4") */
.dsa-h-name-badge-unit {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    max-width: min(100%, calc(100vw - 40px));
    min-width: 0;
    padding: 5px 4px 5px 12px;
    background: #ffffff;
    border: 1px solid color-mix(in srgb, var(--dsa-accent, #7b61ff) 16%, #e5e7eb);
    border-radius: 999px;
    box-shadow: 0 1px 3px color-mix(in srgb, var(--dsa-accent, #7b61ff) 10%, transparent);
}

.dsa-h-root-hub .dsa-h-name-badge-unit {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.dsa-root-inner .dsa-h-name-badge-unit {
    padding: 4px 8px 4px 12px;
}

/* Dash touches the count circle — no gap after joiner */
.dsa-h-badge-joiner {
    display: block;
    width: 14px;
    min-width: 10px;
    height: 2px;
    margin: 0 0 0 8px;
    flex-shrink: 0;
    align-self: center;
    background: linear-gradient(90deg, #94a3b8, var(--dsa-accent-mid, #7b61ff));
    border-radius: 2px;
    transition:
        width 0.32s cubic-bezier(0.33, 1, 0.68, 1),
        margin 0.32s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Hover: “<” tip meets joiner dash — pull badge slightly left so vertex touches the dash */
.dsa-h-name-badge-unit:has(.dsa-h-badge-tri:hover) .dsa-h-badge-joiner,
.dsa-h-name-badge-unit:has(.dsa-h-badge-tri:focus-within) .dsa-h-badge-joiner {
    width: 20px;
    margin-right: -4px;
}

.dsa-h-name-badge-unit:has(.dsa-h-badge-tri:hover) .dsa-h-badge-tri,
.dsa-h-name-badge-unit:has(.dsa-h-badge-tri:focus-within) .dsa-h-badge-tri {
    margin-left: -5px;
}

.dsa-h-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--dsa-accent, #7b61ff);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 0;
}

.dsa-h-badge-value {
    display: inline-block;
    line-height: 1;
}

/* Expanded: hide number, show small white inner dot */
.dsa-h-badge-expanded-dot {
    display: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.dsa-h-badge--control.dsa-h-badge--open .dsa-h-badge-value {
    display: none;
}

.dsa-h-badge--control.dsa-h-badge--open .dsa-h-badge-expanded-dot {
    display: block;
}

/* Non-interactive count (e.g. Array root, top bar) */
.dsa-h-badge--static {
    cursor: default;
    user-select: none;
}

/* Clickable count — expand / show problems */
.dsa-h-badge--control {
    border: none;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    padding: 0 6px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease,
        background 0.12s ease;
}

.dsa-h-badge--control:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--dsa-accent, #7b61ff) 45%, transparent);
}

.dsa-h-badge--control:active {
    transform: scale(0.9);
    filter: brightness(0.95);
}

.dsa-h-badge--control:focus {
    outline: none;
}

.dsa-h-badge--control:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dsa-accent, #7b61ff) 60%, transparent);
}

.dsa-h-badge--control.dsa-h-badge--open {
    background: var(--dsa-accent, #7b61ff);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--dsa-accent, #7b61ff) 50%, transparent);
    min-width: 26px;
    min-height: 26px;
    padding: 0 5px;
}

.dsa-h-name-badge-unit .dsa-h-badge--control,
.dsa-h-name-badge-unit .dsa-h-badge--root {
    position: relative;
    z-index: 1;
}

.dsa-h-name-badge-unit:has(.dsa-h-badge-tri) {
    overflow: visible;
    z-index: 5;
}

/* Customize: idle = round badge; hover = filled “<” (count + + inside); − sits outside triangle */
.dsa-h-badge-tri {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 28px;
    vertical-align: middle;
    color: #ffffff;
    transition:
        width 0.34s cubic-bezier(0.33, 1, 0.68, 1),
        height 0.34s cubic-bezier(0.33, 1, 0.68, 1),
        margin 0.34s cubic-bezier(0.33, 1, 0.68, 1);
}

.dsa-h-badge-tri:hover,
.dsa-h-badge-tri:focus-within {
    width: 120px;
    height: 52px;
    z-index: 500100;
}

.dsa-h-badge-tri-idle {
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    margin: 0;
    transition:
        opacity 0.28s cubic-bezier(0.33, 1, 0.68, 1),
        transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
    transform-origin: left center;
}

.dsa-h-badge-tri:hover .dsa-h-badge-tri-idle,
.dsa-h-badge-tri:focus-within .dsa-h-badge-tri-idle {
    opacity: 0;
    transform: scale(0.88);
    pointer-events: none;
}

.dsa-h-badge-tri-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 88px;
    height: 52px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.82);
    transform-origin: left center;
    transition:
        opacity 0.28s cubic-bezier(0.33, 1, 0.68, 1),
        transform 0.32s cubic-bezier(0.33, 1, 0.68, 1);
    display: block;
    isolation: isolate;
}

.dsa-h-badge-tri:hover .dsa-h-badge-tri-panel,
.dsa-h-badge-tri:focus-within .dsa-h-badge-tri-panel {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.dsa-h-badge-tri-svg-bg {
    z-index: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    color: var(--dsa-accent, #7b61ff);
    pointer-events: none;
    filter: drop-shadow(0 2px 8px color-mix(in srgb, var(--dsa-accent, #7b61ff) 35%, transparent));
}

.dsa-h-badge-tri-path {
    fill: currentColor;
}

.dsa-h-badge-tri-hit {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.dsa-h-badge-tri-hit:hover {
    filter: brightness(1.12);
}

.dsa-h-badge-tri-hit:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 1px;
}

/* Count uses .dsa-h-badge--open — strip pill chrome so the number stays on the chevron */
.dsa-h-badge-tri-count.dsa-h-badge--control {
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none;
}

.dsa-h-badge-tri-count.dsa-h-badge--control:hover,
.dsa-h-badge-tri-count.dsa-h-badge--control:focus-visible,
.dsa-h-badge-tri-count.dsa-h-badge--control.dsa-h-badge--open {
    background: transparent !important;
    box-shadow: none !important;
    filter: none;
}

.dsa-h-badge-tri-count.dsa-h-badge--control:active {
    transform: translate(-50%, -50%) scale(0.94);
}

/* Count on horizontal mid (----); + in upper “/” arm — inset from path M 76 11 L 76 41 L 12 26 (centroid ~62%,50%) */
.dsa-h-badge-tri-count {
    position: absolute;
    left: 58%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 0;
    max-width: 38%;
    padding: 0;
    text-align: center;
    justify-content: center;
}

.dsa-h-badge-tri-count .dsa-h-badge-value,
.dsa-h-badge-tri-count .dsa-h-badge-expanded-dot {
    color: #ffffff;
}

.dsa-h-badge-tri-add {
    position: absolute;
    right: 13%;
    top: 9%;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove control: outside the “<” fill, to the right of the chevron */
.dsa-h-badge-tri-rem {
    position: absolute;
    left: 92px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    background: color-mix(in srgb, var(--dsa-accent, #7b61ff) 88%, #ffffff) !important;
    box-shadow: 0 1px 4px color-mix(in srgb, var(--dsa-accent, #7b61ff) 40%, transparent) !important;
}

.dsa-h-badge-tri:hover .dsa-h-badge-tri-rem:not([hidden]),
.dsa-h-badge-tri:focus-within .dsa-h-badge-tri-rem:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.dsa-h-badge-tri-idle.dsa-h-badge--open .dsa-h-badge-value {
    display: none;
}

.dsa-h-badge-tri-idle.dsa-h-badge--open .dsa-h-badge-expanded-dot {
    display: block;
}

.dsa-h-badge-tri-count.dsa-h-badge--open .dsa-h-badge-value {
    display: none;
}

.dsa-h-badge-tri-count.dsa-h-badge--open .dsa-h-badge-expanded-dot {
    display: block;
}

/* Fixed + JS placement: escapes .dsa-mind-canvas overflow and stacks above graph */
.dsa-h-badge-tri-addfly {
    position: fixed;
    left: 0;
    top: 0;
    margin: 0;
    transform: translateX(-50%);
    z-index: 550000;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.dsa-h-badge-tri-addfly[hidden] {
    display: none !important;
}

.dsa-h-badge-tri-addfly-btn {
    min-width: 36px;
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    font: inherit;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    color: #1f2937;
}

.dsa-h-badge-tri-addfly-btn:hover {
    background: #e5e7eb;
}

.dsa-customize-topbar {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.dsa-customize-topbar-note {
    margin: 0 0 8px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #6b7280;
}

.dsa-customize-topbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dsa-customize-topbar-btn {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    cursor: pointer;
}

.dsa-customize-topbar-btn:hover {
    border-color: #7b61ff;
}

.dsa-h-label--root {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    padding: 4px 0;
    line-height: 1.3;
}

.dsa-h-label {
    font-family: inherit;
    font-size: clamp(0.8rem, 2.5vw, 0.875rem);
    font-weight: 500;
    color: #1f2937;
    background: transparent;
    border: none;
    padding: 4px 2px;
    margin: 0;
    cursor: pointer;
    text-align: left;
    line-height: 1.35;
    max-width: min(240px, 58vw);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dsa-h-label:hover {
    color: #000000;
}

.dsa-h-label--branch {
    cursor: pointer;
    font-weight: 500;
    color: #1f2937;
}

.dsa-h-label--branch:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dsa-h-label--leaf {
    cursor: default;
    user-select: text;
}

.dsa-h-label--selected {
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 6px;
    box-shadow: 0 0 0 2px var(--dsa-accent, #7b61ff);
    background: rgba(255, 255, 255, 0.85);
}

.dsa-h-label--focus {
    color: #000000;
    font-weight: 700;
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 6px;
    box-shadow: 0 0 0 2px var(--dsa-accent, #7b61ff);
    background: #ffffff;
    text-decoration: none;
}

.dsa-h-children {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding-left: 36px;
    margin-left: 4px;
    position: relative;
}

.dsa-h-children--collapsed {
    display: none;
}

/* Leaf: label + connected problem card */
.dsa-h-leaf-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.dsa-h-leaf-block--open {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.dsa-h-problems-panel {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    min-height: 48px;
}

.dsa-h-problems-panel[hidden] {
    display: none !important;
}

.dsa-h-leaf-block--open .dsa-h-problems-panel:not([hidden]) {
    display: flex;
}

/* Horizontal bridge from leaf row into the card */
.dsa-h-problems-connector {
    width: 24px;
    min-width: 24px;
    align-self: center;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--dsa-accent, #7b61ff), var(--dsa-accent-mid, #a78bfa));
    box-shadow: 0 0 12px color-mix(in srgb, var(--dsa-accent, #7b61ff) 35%, transparent);
}

.dsa-h-problems-card {
    min-width: 220px;
    max-width: min(380px, 85vw);
    padding: 14px 16px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow:
        0 10px 40px -12px rgba(15, 23, 42, 0.18),
        0 0 0 1px color-mix(in srgb, var(--dsa-accent, #7b61ff) 10%, transparent);
    text-align: left;
}

.dsa-h-problems-card-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dsa-accent, #7b61ff);
    margin-bottom: 10px;
    text-align: left;
}

.dsa-h-problems-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
    text-align: left;
}

.dsa-h-problems-list li {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #1f2937;
    text-align: left;
    width: 100%;
}

.dsa-h-problem-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    margin: 0;
    border-radius: 8px;
    color: #111827;
    text-decoration: none;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
    border-left: 3px solid transparent;
}

.dsa-h-platform-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.dsa-h-platform-icon > svg {
    width: 18px;
    height: 18px;
    display: block;
}

.dsa-h-platform-icon .dsa-h-platform-icon-img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
    border-radius: 4px;
}

.dsa-h-problem-link-text {
    flex: 1;
    min-width: 0;
    text-align: left;
    line-height: 1.4;
}

.dsa-h-problem-link:hover {
    background: var(--dsa-accent-soft, #f5f3ff);
    border-left-color: var(--dsa-accent, #7b61ff);
    color: var(--dsa-edge, #5b21b6);
}

.dsa-h-problem-link:hover .dsa-h-problem-link-text {
    color: var(--dsa-edge, #5b21b6);
}

@media (max-width: 720px) {
    .dsa-h-leaf-block--open {
        flex-direction: column;
        align-items: stretch;
    }

    .dsa-h-problems-connector {
        display: none;
    }

    .dsa-h-problems-panel:not([hidden]) {
        width: 100%;
        max-width: 100%;
        padding-left: 4px;
        border-left: 3px solid var(--dsa-accent, #7b61ff);
        margin-left: 2px;
        box-sizing: border-box;
    }

    .dsa-h-problems-card {
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }

    .dsa-graph-hint {
        font-size: 0.8rem;
        padding: 0 8px;
    }

    .dsa-h-root-hub {
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .dsa-node-root {
        font-size: 0.78rem;
        padding: 6px 8px;
    }

    .dsa-h-label--root {
        font-size: 0.95rem;
    }
}

.details-page .section-title{
    margin-top: 20px;
    margin-bottom: 20px;
    color: rgb(118, 126, 85);
    font-size: 1.5rem;
    font-weight: bolder;
}

.section-image {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap; /* Enable wrapping of content */
    overflow: hidden; /* Ensure content stays within the container */
    margin: 50px;
    border-radius: 10px;
    row-gap: 1px;
}

.section-image .card-img-top{
    margin: 50px;
    width: auto;
    max-width: 600px;
    max-height: 600px;
    height: auto;

}

.section-video{
    margin: 50px;
    height: 100vh;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}


.section-title {
    color: rgb(25, 163, 55);
    line-height: 2;
}

.section-description {
    color: rgb(137, 143, 137);
}

/* Card Styles */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px; /* Add space between cards */
    justify-content: center; /* Center cards horizontally */
}

.home-page .card {
    position: relative;
    background: white;
    transition: 0.3s;
    border-radius: 10px; /* Apply rounded corners to the card */
    width: 100%; /* Ensure card takes full width of grid item */
    max-width: 500px; /* Set maximum card width */
    height: auto; /* Allow card height to adjust based on content */
    margin: 0; /* Remove any margin */
    padding: 16px; /* Add padding to the card content */
    position: relative;
}

.home-page .card-subtitle{
    height: 90px;
    overflow: hidden;
    margin-bottom: 5px;
    color: #8d8b8b;
    font-weight: 100px;
    font-size: 0.80rem;
    overflow: hidden; 
}

.home-page .card:hover {
    transform: translateY(-3px);  
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4); 
}

.projects-page .card {
    transition: 0.3s;
    overflow: hidden;
    border-radius: 10px; /* Apply rounded corners to the card */
    overflow: hidden; /* This is for the hover effect */
    width: 100%; /* Ensure card takes full width of grid item */
    max-width: 500px; /* Set maximum card width */
    height: auto; /* Allow card height to adjust based on content */
    margin: 0; /* Remove any margin */
    padding: 16px; /* Add padding to the card content */
}

/* Title Styles */
.home-page .card-title {
    margin-top: 20px; /* Add 20px margin from the top */
    margin-bottom: 10px;
    font-size: 1.04rem; /* Increase title size */
    font-weight: normal;
    color: black; /* Set title color to black */
}

.projects-page .card-title{
    margin-top: 5px; /* Add 20px margin from the top */
    margin-bottom: 5px;
    font-size: 1.04rem; /* Increase title size */
    font-weight: normal;
    color: black; /* Set title color to black */
}


.projects-page .card-img-top:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    transform: scale(1.1); 
}

.card-Year{
    margin-top: 5px; /* Add 20px margin from the top */
    font-size: 1.04rem; /* Increase title size */
    font-weight: normal;
    color: #9ca3ad; 
}


.projects-page .card-subtitle{
    color: #8d8b8b; /* Set subtitle color to #9ca3ad */
    font-weight: 100px;
    line-height: 1.4;
    overflow: hidden;
    font-size: 0.80rem;
    height: 90px;
}


/* Image Styles */
.card-img-top {
    width: 100%;  /* Maintains image width relative to card */
    height: 200px;  /* Fixed image height */
    object-fit: cover; /* Scales image to cover container proportionally */
    margin: 0; /* Removes any margin from the image */
    border-radius: 5px; /* Add rounded corners to the image */
}

.card-body {
    text-align: left; /* Left-align all text within the card body */
}

.skills-page .card-container{
    margin-top: 60px;
}
.skills-page .skill {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    border-radius: 10px; /* Apply rounded corners to the card */
    overflow: hidden; /* This is for the hover effect */
    width: 100%; /* Ensure card takes full width of grid item */
    max-width: 500px; /* Set maximum card width */
    height: auto; /* Allow card height to adjust based on content */
    margin: 0; /* Remove any margin */
    padding: 20px; /* Add padding to the card content */
    border: 1px solid #8a8888; /* Add a border with color #ccc */
}

.skills-page .card-img-top{
    width: 60px;
    height: 60px;
}

.skills-page .card-title {
    margin-top: 20px; /* Add 20px margin from the top */
    margin-bottom: 10px;
    font-size: 1.04rem; /* Increase title size */
    font-weight: normal;
    color: black; /* Set title color to black */
}

.skills-page .card-subtitle {
    color: #8d8b8b; /* Set subtitle color to #9ca3ad */
    font-weight: 100px;
    height: 150px;
    overflow: hidden;
    line-height: 1.2;
    font-size: 0.80rem;
}

.skills-page .card-bottomTitle {
    color: #9e9d9d;; /* Set subtitle color to #9ca3ad */
    font-weight: 100;
    line-height: 1.2;
    margin-top: 25px;
    font-size: 0.70rem;
}



.tile {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    border-radius: 10px; /* Apply rounded corners to the card */
    overflow: hidden; /* This is for the hover effect */
    width: 100%; /* Ensure card takes full width of grid item */
    max-width: 500px; /* Set maximum card width */
    height: auto; /* Allow card height to adjust based on content */
    margin: 0; /* Remove any margin */
    padding: 16px; /* Add padding to the card content */
    font-family: 'Roboto', 'Open Sans', sans-serif;
}

.tile-title {
    color: rgb(63, 177, 63);
    font-size: 0.8rem;
}

.tile-subtitle {
    margin-bottom: 30px;
}

.tile-description {
    color: #757474; /* Set subtitle color to #9ca3ad */
    font-weight: lighter;
    line-height: 1.3;
}

.footer {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    background-color: #e0dede;
    width: 100%;
    height: 210px;
   
}

.footer-social {
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Adjust spacing between icons */
}

.icon {
    width: 24px; /* Adjust size of the icons */
    height: 24px;
}

.icon img {
    width: 100%;
    height: 100%;
}
.icon a:hover img {
    opacity: 0.8; /* Slight fade effect on hover */
}

.footer-copyright {
    color: #9ca3ad;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    padding: 20px;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: #c7c3c3;
}

.bounceBtn {
    animation: pulse 1s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    margin-top: 50px;
    -moz-animation: bounce 2s infinite;
    -webkit-animation: bounce 2s infinite;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    40% {
        -moz-transform: translateY(-10px);
        -ms-transform: translateY(-10px);
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
    }
    60% {
        -moz-transform: translateY(-5px);
        -ms-transform: translateY(-5px);
        -webkit-transform: translateY(-5px);
        transform: translateY(-5px);
    }
}

.indicator {
    display: inline-block;
    width: 8px;
    margin-left: 10px;
    height: 8px;
    border-radius: 50%;
    background-color: rgb(161, 158, 158); /* Default color */
}

.indicator.live {
    background-color: green; /* Color when the project is live */
}

a {
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    margin: 20px;
    color: #0c0c0c;
    font-size: 15px;
}



.star-icon {
    position: absolute;
    top: -15px; /* Adjust as needed */
    right: -10px; /* Adjust as needed */
    width: 30px; /* Adjust the size as needed */
    height: 30px; /* Adjust the size as needed */
}

.star-icon img {
    width: 100%;
    height: 100%;
}

/* —— Admin / CMS (admin.html) —— */
.admin-page {
    min-height: 100vh;
    background: linear-gradient(165deg, #f4f6f3 0%, #f9fafb 45%, #ffffff 100%);
    color: #111827;
}

.admin-page .navbar {
    position: relative;
    background: rgba(0, 0, 0, 0.88);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.admin-page .navbar a {
    color: #f9fafb;
    margin: 0;
    margin-left: 20px;
}

.admin-page .navbar .left a {
    margin-left: 0;
}

.admin-page .navbar a:hover,
.admin-page .navbar .left .nav-admin-entry:hover {
    color: rgb(154, 164, 111);
}

.admin-page .navbar .nav-signout-btn {
    color: #f9fafb;
    border-color: rgba(249, 250, 251, 0.55);
}

/* Fixed toast for admin errors (load/save/auth) */
.admin-toast {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 10050;
    max-width: min(22rem, calc(100vw - 2rem));
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.admin-toast--err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.admin-toast--ok {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.admin-main {
    max-width: 920px;
    margin: 0 auto;
    padding: 5.5rem 1.25rem 4rem;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.admin-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.admin-lead {
    font-size: 1rem;
    line-height: 1.65;
    color: #4b5563;
    max-width: 52ch;
}

.admin-lead strong {
    color: #111827;
    font-weight: 600;
}

.admin-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.admin-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

/* Sign-in */
.admin-auth {
    padding: 0;
}

.admin-auth-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fafbfa 0%, #ffffff 100%);
}

.admin-auth-sub {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.35rem 0 0;
    line-height: 1.5;
}

.admin-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

@media (max-width: 640px) {
    .admin-auth-grid {
        grid-template-columns: 1fr;
    }
}

.admin-auth-block {
    padding: 1.35rem 1.5rem;
    border-right: 1px solid #f1f5f9;
}

@media (max-width: 640px) {
    .admin-auth-block {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
    }
    .admin-auth-block:last-of-type {
        border-bottom: none;
    }
}

.admin-auth-block:last-child {
    border-right: none;
}

.admin-auth-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin: 0 0 0.85rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-form input[type="password"],
.admin-form input[type="text"] {
    font: inherit;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fafafa;
    color: #111827;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-form input:focus {
    outline: none;
    border-color: rgb(154, 164, 111);
    box-shadow: 0 0 0 3px rgba(154, 164, 111, 0.2);
    background: #fff;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-weight: 500;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.admin-btn-primary {
    background: linear-gradient(180deg, #3f4a2e 0%, #2d3422 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(45, 52, 34, 0.25);
}

.admin-btn-primary:hover {
    background: linear-gradient(180deg, rgb(90, 98, 65) 0%, #3f4a2e 100%);
    color: #fff;
}

.admin-btn-ghost {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.admin-btn-ghost:hover {
    background: #e2e8f0;
}

.admin-btn-outline {
    background: transparent;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.admin-btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.admin-btn-github {
    background: #24292f;
    color: #fff;
    width: 100%;
    padding: 0.7rem 1rem;
}

.admin-btn-github:hover {
    background: #1a1e22;
    color: #fff;
}

.admin-auth-footer a.admin-btn-github {
    margin: 0;
}

.admin-auth-footer {
    padding: 1rem 1.5rem 1.35rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfa;
}

/* Editor */
.admin-editor {
    padding: 0;
}

.admin-editor-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #fafbfa 0%, #ffffff 100%);
}

.admin-editor .cms-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
}

.admin-editor .cms-toolbar label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-editor .cms-toolbar select {
    font: inherit;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #111827;
    min-width: 8rem;
}

.admin-textarea {
    display: block;
    width: 100%;
    min-height: 440px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
    padding: 1.1rem 1.25rem;
    border: none;
    border-top: 1px solid #f1f5f9;
    resize: vertical;
    background: #fafafa;
    color: #0f172a;
    box-sizing: border-box;
}

.admin-textarea:focus {
    outline: none;
    background: #ffffff;
}

.admin-status {
    padding: 0.85rem 1.5rem 1.25rem;
    margin: 0;
    border-top: 1px solid #f1f5f9;
    background: #fff;
}

.cms-msg {
    font-size: 0.875rem;
    color: #64748b;
}

.cms-msg.err,
.admin-page .cms-msg.err {
    color: #b91c1c;
}

.cms-msg.ok,
.admin-page .cms-msg.ok {
    color: #15803d;
}

.cms-msg-banner {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    margin-bottom: 1rem;
}

.skills-page .cms-empty-msg {
    color: #94a3b8;
    font-size: 0.95rem;
    max-width: 36rem;
    margin: 1rem auto;
    text-align: center;
    padding: 1.5rem;
}

.details-page .project-video-fallback {
    margin: 0.5rem 0 1rem;
}

.details-page .project-video-fallback a {
    color: rgb(154, 164, 111);
}

