.navbar.bg-light {
    background-color: #cd4f07 !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}


.navbar .container-fluid {
    background-color: #cd4f07;
}


.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: #fff5f8 !important;
}


.navbar-brand {
    color: white !important;
}


.navbar .d-flex {
    margin-left: auto !important;
}


.navbar .form-control {
    height: 38px;
    font-size: 0.95rem;
    border: 1px solid white;
    background-color: rgba(255, 255, 255, 0.9);
}

.navbar .btn {
    height: 38px;
    background-color: white;
    border-color: white;
    color: #cd4f07;
}

.navbar .btn:hover {
    background-color: #fff5f8;
    border-color: #fff5f8;
    color: #cd4f07;
}

.navbar-toggler {
    border-color: white;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


.TextForImages {
    text-align: center;
}

.bg-light {
    background-color: #f6978e;
}

body {
    margin: 0;
    font-family: 'Ysabeau SC', sans-serif;
    color: #333333;
    background-color: #fff5f8;
}

.footer {
    background: linear-gradient(to right, #cd4f07, #f6978e);
    color: #fff;
    padding: 40px 20px;
    text-align: right;
    font-size: 0.9rem;
}

.footer {
    bottom: 0;
    width: 100%;
    font-family: 'Ysabeau SC', sans-serif !important;
}

html,
body {
    height: 100%;
    /* full height so footer positioning works */
    margin: 0;
}

body {
    min-height: 600px;
    font-family: 'Ysabeau SC', sans-serif;
    /* so footer can stick to bottom */
}

main {
    flex: 1;
    /* pushes footer down */
}

main h2 {
    font-family: 'Libre Baskerville', serif;
    /* more formal font */
    color: #cd4f07;
    /* purple tone */
    font-weight: 700;
}

/* Paragraph under title */
main p {
    /* clean readable font */
    color: #cd4f07;
    /* orange tone */
    font-size: 1.1rem;
}

#skillCarousel {
    max-width: 1000px;
    margin: 0 auto;
}

#skillCarousel .carousel-item img {
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
}

#skillCarousel .carousel-caption {
    bottom: 20%;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 4px;
}

#skillCarousel .carousel-caption h5 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Carousel */
.carousel-img {
    height: 450px;
    /* adjust to match brief screenshot */
    object-fit: cover;
    /* crop instead of squish */
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    padding: 8px 15px;
}

/* Skill Cards */
.btn-skill {
    background-color: #c4450d;
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 5px;
}

.btn-skill:hover {
    background-color: #a63a0b;
    color: #fff;
}

.btn-primary {
    /* Change background color */
    background-color: #cd4f07 ;
    /* Example: A shade of green */

    /* Change border color to match the new background */
    border-color: #cd4f07;

    /* Give it rounded corners */
    border-radius: 30px;
    /* Adjust the value for desired roundness */
}
/* Keeps layout organization but removes card styles */

.row h6 {
    font-weight: 600;
    color: #6b5b95;
}

.row p {
    margin-bottom: 0.5rem;
    color: #333333;
}

.btn-skill {
    background-color: #cd4f07;
    color: #fff;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.9rem;
    transition: background0 0.3s;
}

.btn-skill:hover {
    background-color: #a73e06;
}



.table-header {
    background-color: #cd4f07;
    color: #fff;
    font-weight: bold;
}

.table {
    border: 1px solid #ddd;
}

.table td,
.table th {
    text-align: center;
    vertical-align: middle;
}


h1,
h2,
h3,
h4,
h5 {
    font-family: 'Libre Baskerville', serif;
    color: #6b5b95;

}


.TextForImages {
    font-family: 'Ysabeau SC', serif;
    color: #6b5b95;
}

.TextForImages1 {
    font-family: 'Ysabeau SC', serif;
    color: #cd4f07 !important
}

#galleryModal .modal-body img {
    max-height: 70vh;
    object-fit: contain;
}

.mb-4 {
    color: #cd4f07
}

.carousel-caption {
    font-family: 'Ysabeau SC', serif;
}
/* Custom modal (pure JS) */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(50, 50, 50, 0.95);
    padding: 40px 20px;
}

/* Wrapper to center content */
.custom-modal-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 15px;
}

/* Modal image */
.custom-modal .modal-content-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 4px;
}

/* White footer area containing caption and close button */
.custom-modal-footer {
    background-color: white;
    padding: 15px 0 0 0;
    position: relative;
    min-height: 60px;
}

/* Caption on the left */
.custom-modal #caption {
    color: #333;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    text-align: left;
    padding-right: 100px;
}

/* Close button in bottom right */
.custom-modal .close-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(109, 102, 102, 0.966);
    color: #ffffff;
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-modal .close-btn:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.custom-modal .close-btn:active {
    transform: scale(0.98);
}

/* Gallery images - clickable cursor */
.gallery-img {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Details page skill image */
#skillImage {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#skillImage:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}