/* Keep Bootstrap styling but polish custom parts */

body {
    background: #f8f9fa;
}

/* Make ALL section titles 14px */
.section h3.fw-bold {
    font-size: 16px !important;
}

/* Make About section text 14px only */
#about p {
    font-size: 14px !important;
    line-height: 1.55;
}

/* Membership card */
.membership-card {
    width: 230px;
    height: 320px;
    border-radius: 20px;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
}

/* Fade-in handled by JS */
.section, .card {
    opacity: 0;
    transform: translateY(20px);
}

/* Skill boxes */
.skill-box {
    border-left: 4px solid #000;
}

/* Fix header layout completely */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Left column */
.header-left {
    flex: 0 0 auto;
}

/* Right column */
.header-right {
    flex: 1;
}

/* Profile image */
.profile-img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* Certificate slider images */
.carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

#certCarousel {
    max-height: 320px;
    border-radius: 12px;
    overflow: hidden;
}


/* Experience List */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.experience-item {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.experience-item:last-child {
    border-bottom: none;
}

/* Indicator Square (Timeline Icon) */
.indicator-box {
    width: 14px;
    height: 14px;
    border: 2px solid black;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Filled square for current/latest job */
.indicator-box.active {
    background: black;
}

/* Align the text area properly */
.experience-item div:nth-child(2) {
    flex-grow: 1;
}

/* Year style */
.exp-year {
    font-weight: bold;
    opacity: 0.6;
    flex-shrink: 0;
}

/* Experience font sizes */
.experience-item h5 {
    font-size: 14px !important;   /* Job title */
}

.experience-item p {
    font-size: 12px !important;   /* Company name */
}

.exp-year {
    font-size: 12px !important;   /* Year */
}

/* ================= SKILLS TAG STYLE (BrylLim Style) ================= */

.skill-category h6 {
    font-size: 14px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f1f1f1;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    border: 1px solid #e5e5e5;
}

/* ================= PROJECTS (BrylLim Style) ================= */

.project-card h5 {
    font-size: 15px;
}

.project-card p {
    font-size: 12px;
}

.project-tag {
    display: inline-block;
    background: #f1f1f1;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 12px;
    border: 1px solid #e5e5e5;
    color: #555;
}


/* Certifications Box */
.cert-box {
    border-left: 4px solid #000;
}

.cert-item {
    font-size: 12px;
}

.cert-year {
    float: right;
    font-weight: bold;
    opacity: 0.7;
    font-size: 12px;
}

/* Skills layout */
.skill-category h6 {
    font-size: 14px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f1f1f1;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    border: 1px solid #e5e5e5;
}

/* Make certifications same width style as experience cards */
.cert-card {
    background: #f5f5f5 !important;
    border: 1px solid #e5e5e5;
}

/* Tight spacing (5px top & bottom) */
.cert-card {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

/* Match typography style */
.cert-card p {
    font-size: 12px;
}

.cert-card .fw-bold {
    font-size: 14px;
}

.view-all {
    color: #000 !important;   /* black */
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
    color: #000 !important;   /* stay black on hover */
}

/* Project Titles = 14px */
#projects h5 {
    font-size: 14px !important;
}

/* Project Descriptions = 12px */
#projects p {
    font-size: 12px !important;
}

/* Project tag font size = 14px */
.proj-tag {
    font-size: 14px !important;
}

/* ---------------- SOCIAL CARD STYLE ---------------- */
.social-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.social-card:hover {
    background: #f5f5f5;
}

.social-icon {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

/* ---------------- EMAIL CARD STYLE ---------------- */
.email-card {
    border: 1px solid #e5e5e5;
}

.email-icon {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

/* ============================================
   THEME TOGGLE BUTTON (SLIDING SWITCH)
   ============================================ */

.theme-toggle-btn {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;

    width: 42px;
    height: 24px;

    background: #d1d5db;
    border-radius: 6px;
    border: none;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
    padding: 0;
    font-size: 16px;

    position: relative;
    transition: background 0.2s ease;
}

/* White sliding square */
.theme-toggle-btn::before {
    content: "";
    width: 20px;
    height: 20px;

    background: #ffffff;
    border-radius: 4px;

    position: absolute;
    left: 2px;               /* Default (Light mode) */
    top: 2px;

    transition: left 0.25s ease;
    z-index: 1;
}

/* When dark mode is ON → move slider to the right */
body.dark-mode .theme-toggle-btn::before {
    left: 20px;              /* Moves square to the right */
}

/* =====================================================
   DARK MODE — BACKGROUND DARK, TEXT WHITE
   ===================================================== */
body.dark-mode {
    background-color: #121212 !important;
    color: #ffffff !important;
}

/* Make ALL text white globally */
body.dark-mode * {
    color: #ffffff !important;
}

/* =====================================================
   WHITE BOXES (PROJECTS, CERTS, EMAIL CARD, SOCIAL CARD)
   Text inside them must be BLACK
   ===================================================== */
body.dark-mode .proj-card,
body.dark-mode .cert-card,
body.dark-mode .email-card,
body-dark-mode .social-card,
body.dark-mode .modal-content,
body.dark-mode .tag {
    background-color: #ffffff !important;  /* White box */
    color: #000000 !important;             /* Black text */
    border-color: #ffffff !important;
}

/* Override inside elements so they stay BLACK */
body.dark-mode .proj-card *,
body.dark-mode .cert-card *,
body.dark-mode .email-card *,
body.dark-mode .social-card *,
body.dark-mode .modal-content *,
body.dark-mode .tag * {
    color: #000000 !important;
}

/* =====================================================
   ICONS — inside white boxes = black, outside = white
   ===================================================== */

/* Icons INSIDE white boxes (social icons) */
body.dark-mode .social-card img,
body.dark-mode .email-icon {
    filter: brightness(0); /* pure BLACK */
}

/* Icons OUTSIDE boxes (e.g., header icons) become white */
body.dark-mode svg {
    filter: brightness(0) invert(1);
}

/* =====================================================
   FIX SKILL TAGS EXACTLY LIKE YOUR IMAGE
   ===================================================== */
body.dark-mode .tag {
    background: #ffffff !important;
    color: #000000 !important;
    border-radius: 8px;
}

/* Add spacing between Tools and Recent Certifications on mobile */
@media (max-width: 768px) {
    #skills .col-md-5 {
        margin-top: 20px !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 10px;
}