:root {
    --accent-primary: #d7a330;
    --accent-secondary: #f6e0a4;
    --accent-tertiary: #fff2cc;
    --bg-color: #0b0d11;
    --text-accent-1: #f6f8ff;
    --text-accent-2: rgba(246, 248, 255, 0.78);
    --surface-1: rgba(10, 14, 22, 0.68);
    --surface-2: rgba(22, 31, 48, 0.58);
    --stroke-1: rgba(255, 255, 255, 0.14);
    --shadow-soft: 0 20px 45px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 26px 52px rgba(0, 0, 0, 0.45);
    --index-feature-ratio: 1280 / 907;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Source+Sans+3:wght@400;500;600;700;800&family=Gwendolyn:wght@400;700&family=Noto+Sans+Malayalam:wght@400;500;600;700&family=Noto+Serif+Malayalam:wght@400;600;700&display=swap');

html,
body {
    min-height: 100%;
    margin: 0;
    background-color: #060910;
}

html {
    scroll-behavior: smooth;
    /* Keep viewport width stable across pages with/without vertical scrollbars */
    scrollbar-gutter: stable;
}

body {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 1.04rem;
    color: var(--text-accent-1);
    overflow-x: hidden;
    background:
        radial-gradient(circle at 14% 22%, rgba(236, 178, 66, 0.16), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(108, 148, 234, 0.14), transparent 34%),
        radial-gradient(circle at 72% 82%, rgba(74, 112, 190, 0.12), transparent 30%),
        linear-gradient(145deg, #060910 0%, #0a1020 42%, #0b1324 72%, #090f18 100%);
    position: relative;
}

/* Fallback for browsers that do not honor scrollbar-gutter consistently */
@media (min-width: 992px) {
    body {
        overflow-y: scroll;
    }
}

body:not(.index-page),
body:not(.index-page) :where(
    p,
    li,
    small,
    a,
    span,
    label,
    input,
    textarea,
    select,
    button,
    .btn,
    .nav-link,
    .card-text,
    .list-group-item,
    .lead
) {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

body:not(.index-page) .lead {
    font-size: 1.04rem;
    font-weight: 400;
    line-height: 1.75;
}

body:not(.index-page) p,
body:not(.index-page) li {
    line-height: 1.75;
}

body:not(.index-page) h1,
body:not(.index-page) h2,
body:not(.index-page) h3,
body:not(.index-page) h4,
body:not(.index-page) h5,
body:not(.index-page) h6 {
    font-family: "Playfair Display", "Georgia", serif;
    letter-spacing: 0.01em;
}

/* Tab page primary titles: cleaner face and tighter scale */
body:not(.index-page) section.container-fluid > .container > h1 {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: clamp(1.7rem, 2.5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.035em;
    text-wrap: balance;
}

body:not(.index-page) [lang="ml"] {
    font-family: "Noto Sans Malayalam", "Noto Serif Malayalam", "Kartika", "Nirmala UI", sans-serif;
    letter-spacing: 0;
    line-height: 1.55;
}

body:not(.index-page) h1[lang="ml"],
body:not(.index-page) h2[lang="ml"],
body:not(.index-page) h3[lang="ml"],
body:not(.index-page) h4[lang="ml"],
body:not(.index-page) h5[lang="ml"] {
    font-family: "Noto Serif Malayalam", "Noto Sans Malayalam", "Kartika", "Nirmala UI", serif;
    font-weight: 700;
    line-height: 1.3;
}

.index-page {
    background:
        radial-gradient(circle at 10% 18%, rgba(244, 186, 69, 0.22), transparent 34%),
        radial-gradient(circle at 78% 10%, rgba(104, 145, 238, 0.2), transparent 36%),
        radial-gradient(circle at 70% 82%, rgba(78, 116, 194, 0.18), transparent 33%),
        linear-gradient(145deg, #06090f 0%, #0a1020 42%, #0b1427 72%, #091019 100%);
}

.index-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.02) 0,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 18px
        ),
        repeating-linear-gradient(
            60deg,
            rgba(244, 188, 72, 0.018) 0,
            rgba(244, 188, 72, 0.018) 1px,
            transparent 1px,
            transparent 22px
        );
    z-index: -1;
}

.index-page .index-collage-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.index-page .index-collage-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 12%, rgba(248, 202, 104, 0.17), transparent 32%),
        radial-gradient(circle at 82% 86%, rgba(120, 158, 238, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(5, 9, 15, 0.42), rgba(5, 9, 15, 0.58));
}

.index-page .index-collage-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 8, 14, 0.72) 0%, rgba(5, 8, 14, 0.28) 15%, rgba(5, 8, 14, 0.22) 85%, rgba(5, 8, 14, 0.72) 100%),
        linear-gradient(180deg, rgba(5, 8, 14, 0.6), rgba(5, 8, 14, 0.16) 30%, rgba(5, 8, 14, 0.64) 100%);
}

.index-page .index-collage-masonry {
    position: absolute;
    inset: -3% -2%;
    column-count: 6;
    column-gap: 0.52rem;
    transform: scale(1.02);
}

.index-page .index-collage-item {
    position: relative;
    display: block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 0.52rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38);
    opacity: 0.26;
    filter: saturate(1.1) contrast(1.05) brightness(0.86);
    overflow: hidden;
    animation: collage-drift 14s ease-in-out infinite;
}

.index-page .index-collage-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(255, 211, 126, 0.08), transparent 36%, rgba(105, 152, 248, 0.1) 88%),
        linear-gradient(180deg, rgba(5, 8, 14, 0), rgba(5, 8, 14, 0.2));
}

.index-page .index-collage-item.ratio-v {
    aspect-ratio: 3 / 4;
}

.index-page .index-collage-item.ratio-h {
    aspect-ratio: 16 / 10;
}

.index-page .index-collage-item.ratio-s {
    aspect-ratio: 1 / 1;
}

.index-page .index-collage-item.shape-a {
    clip-path: polygon(6% 0, 100% 0, 96% 100%, 0 100%);
}

.index-page .index-collage-item.shape-b {
    clip-path: polygon(0 0, 94% 0, 100% 94%, 0 100%);
}

.index-page .index-collage-item.shape-c {
    clip-path: polygon(4% 2%, 100% 0, 100% 100%, 0 98%);
}

.index-page .index-collage-item.shape-d {
    clip-path: polygon(0 0, 100% 4%, 96% 100%, 2% 96%);
}

.index-page > header,
.index-page > section,
.index-page > #contact {
    position: relative;
    z-index: 1;
}

.page-sidefx-active .page-side-fx {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    display: flex;
    justify-content: space-between;
    padding: 5.8rem 0.7rem 1rem;
    overflow: hidden;
}

.page-sidefx-active .page-side-fx::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 8, 14, 0.72) 0%, rgba(5, 8, 14, 0.2) 16%, rgba(5, 8, 14, 0.2) 84%, rgba(5, 8, 14, 0.72) 100%),
        radial-gradient(circle at 10% 30%, rgba(226, 169, 54, 0.08), transparent 28%),
        radial-gradient(circle at 90% 70%, rgba(98, 141, 226, 0.08), transparent 30%);
}

.page-sidefx-active .page-side-fx::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            60deg,
            rgba(244, 191, 85, 0.024) 0,
            rgba(244, 191, 85, 0.024) 1px,
            transparent 1px,
            transparent 22px
        ),
        repeating-linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.018) 0,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px,
            transparent 20px
        );
}

.page-sidefx-active .side-fx-column {
    width: clamp(110px, 12vw, 165px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.page-sidefx-active .side-fx-column.side-fx-right {
    align-items: stretch;
}

.page-sidefx-active .side-fx-item {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
    opacity: 0.2;
    filter: saturate(0.88) contrast(1.04) brightness(0.78);
    animation: side-fx-float 14s ease-in-out infinite;
}

.page-sidefx-active .side-fx-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 8, 14, 0.12), rgba(5, 8, 14, 0.44)),
        linear-gradient(110deg, rgba(240, 188, 78, 0.09), transparent 40%, rgba(113, 152, 238, 0.08));
}

.page-sidefx-active .side-fx-item.side-fx-ratio-v {
    aspect-ratio: 4 / 5;
}

.page-sidefx-active .side-fx-item.side-fx-ratio-s {
    aspect-ratio: 1 / 1.08;
}

.page-sidefx-active .side-fx-item.side-fx-ratio-h {
    aspect-ratio: 4 / 3;
}

.page-sidefx-active .side-fx-left .side-fx-item:nth-child(odd),
.page-sidefx-active .side-fx-right .side-fx-item:nth-child(even) {
    transform: translateX(-4px);
}

.page-sidefx-active .side-fx-right .side-fx-item:nth-child(odd),
.page-sidefx-active .side-fx-left .side-fx-item:nth-child(even) {
    transform: translateX(4px);
}

.page-sidefx-active > header,
.page-sidefx-active > section,
.page-sidefx-active > footer,
.page-sidefx-active > #contact {
    position: relative;
    z-index: 1;
}


@media (max-width: 991.98px) {
    body {
        background-attachment: scroll;
    }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(6, 8, 12, 0.48), rgba(6, 8, 12, 0.74));
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.018) 0,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px,
            transparent 20px
        ),
        repeating-linear-gradient(
            60deg,
            rgba(240, 186, 78, 0.014) 0,
            rgba(240, 186, 78, 0.014) 1px,
            transparent 1px,
            transparent 24px
        );
    z-index: -1;
}

img {
    max-width: 100%;
    display: block;
}

p,
li {
    color: var(--text-accent-2);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    letter-spacing: 0.01em;
}

.intro-img img {
    height: 100%;
    object-fit: cover;
}

.gwendolyn-regular {
    font-family: "Gwendolyn", cursive;
    font-weight: 400;
    font-style: normal;
}

.gwendolyn-bold {
    font-family: "Gwendolyn", cursive;
    font-weight: 700;
    font-style: normal;
}

.glass {
    background: linear-gradient(145deg, var(--surface-1), var(--surface-2));
    border: 1px solid var(--stroke-1);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(9px) saturate(118%);
    -webkit-backdrop-filter: blur(9px) saturate(118%);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.24);
}

.glass-light {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-border-bottom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.navbar {
    border-radius: 0 0 16px 16px;
    margin: 0.5rem 0.75rem 0;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    background: linear-gradient(140deg, rgba(10, 14, 22, 0.78), rgba(18, 24, 38, 0.62));
    border-color: rgba(255, 255, 255, 0.12);
    pointer-events: auto;
    position: relative;
    z-index: 1050;
}

.navbar-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-weight: 800;
    letter-spacing: 0.06em;
    font-family: "Playfair Display", "Georgia", serif;
    letter-spacing: 0.14em;
    font-size: 2rem !important;
    line-height: 1;
    text-align: center;
}

.navbar-brand::after {
    content: "Erickavu N. Sunil";
    margin-top: 0.2rem;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 0.44rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: none;
    white-space: nowrap;
    color: rgba(246, 248, 255, 0.78);
}

.navbar .navbar-nav {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    column-gap: 0.35rem;
    row-gap: 0;
    align-items: stretch;
}

.navbar .navbar-nav .nav-item {
    display: flex;
    min-width: 0;
}

.navbar .nav-link {
    position: relative;
    transition: color 0.25s ease;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
    width: 100%;
    min-height: 3.05rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.45rem 0.35rem 0.5rem;
}

.navbar .nav-link .nav-label-line {
    display: block;
    line-height: 1.08;
}

.navbar .nav-link .nav-label-line + .nav-label-line {
    margin-top: 0.08rem;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.15rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border-radius: 999px;
    transition: background-color 0.25s ease;
    flex: 0 0 auto;
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.navbar .navbar-toggler-icon {
    filter: invert(1) brightness(1.25);
}

/* custom hamburger icon using FontAwesome */
.navbar-toggler .fas {
    color: #fff;
    font-size: 1.25rem;
}

/* Ensure collapse menu uses a vertical layout in zoomed/mobile states */
.navbar-collapse.show .navbar-nav,
.navbar-collapse.collapsing .navbar-nav {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    row-gap: 0.12rem;
    column-gap: 0;
}

.navbar-collapse.show .navbar-nav .nav-item,
.navbar-collapse.collapsing .navbar-nav .nav-item {
    display: block;
    width: 100%;
}

.navbar-collapse.show .nav-link,
.navbar-collapse.collapsing .nav-link {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    white-space: normal;
    line-height: 1.28;
    letter-spacing: 0.08em;
    min-height: 44px;
    padding: 0.62rem 0.55rem;
}

@media (max-width: 991px) {
    .navbar .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        pointer-events: auto;
        position: relative;
        z-index: 1085;
    }
    .navbar .navbar-nav {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        width: 100%;
        padding: 1rem;
        pointer-events: auto;
    }
    .navbar .navbar-nav .nav-item {
        display: block;
        width: 100%;
    }
    .navbar .navbar-nav .nav-link{
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 0.62rem 0.55rem;
        min-height: 44px;
        pointer-events: auto;
        text-align: left;
        white-space: normal;
        letter-spacing: 0.08em;
    }
    .navbar .nav-link .nav-label-line {
        line-height: 1.2;
    }
    .navbar .nav-link .nav-label-line + .nav-label-line {
        margin-top: 0;
    }
}

/* ensure toggler stays above overlays */
.navbar-toggler {
    z-index: 1100;
    pointer-events: auto !important;
    cursor: pointer;
    position: relative;
}

.navbar-toggler:active,
.navbar-toggler:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* make icon itself non-blocking so the button handles clicks */
.navbar-toggler .fas {
    pointer-events: none;
    display: inline-block;
}

header + section.container-fluid {
    margin-top: 0.6rem;
}

.card.glass {
    overflow: hidden;
}

.card.glass .card-img-top,
.gallery-item img {
    transition: transform 0.45s ease, filter 0.45s ease;
}

.card.glass:hover .card-img-top,
.gallery-item:hover img {
    transform: scale(1.035);
    filter: saturate(1.08) contrast(1.04);
}

.gallery-filter-btn {
    border-color: rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.02);
    color: #f3f5ff;
    font-weight: 600;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    border-color: transparent;
    background: linear-gradient(130deg, rgba(215, 163, 48, 0.95), rgba(185, 132, 24, 0.92));
    color: #160f01 !important;
}

.gallery-item {
    transform: translateY(0);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.gallery-item-hidden {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    pointer-events: none;
}

.gallery-media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.28s ease, filter 0.28s ease, opacity 0.28s ease, box-shadow 0.28s ease;
}

.gallery-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    display: block;
}

.gallery-media-compact img {
    height: auto;
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.85rem 0.7rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f8fbff;
    background: linear-gradient(180deg, transparent, rgba(5, 7, 11, 0.88));
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.gallery-caption {
    display: none !important;
}

.gallery-media:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-compact-grid {
    display: block !important;
    margin: 0 !important;
    line-height: 0;
    column-width: 170px;
    column-gap: 0.45rem;
    column-fill: balance;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

@media (max-width: 575.98px) {
    .gallery-compact-grid {
        column-width: 140px;
    }
}

.gallery-compact-grid > .gallery-item {
    display: inline-block !important;
    break-inside: avoid;
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 0 0.45rem;
}

.gallery-compact-grid > .gallery-item.d-none {
    display: none !important;
}

.gallery-compact-grid .gallery-media {
    margin: 0;
}

.gallery-compact-grid:hover .gallery-media {
    filter: blur(1.6px) saturate(0.72) brightness(0.82);
    transform: scale(0.985);
    opacity: 0.78;
}

.gallery-compact-grid .gallery-media:hover {
    filter: none;
    transform: scale(1.04);
    opacity: 1;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
    z-index: 3;
}

.gallery-modal-surface {
    background:
        radial-gradient(circle at 10% 12%, rgba(243, 193, 91, 0.1), transparent 26%),
        radial-gradient(circle at 85% 88%, rgba(109, 150, 245, 0.1), transparent 30%),
        rgba(3, 6, 12, 0.96);
    backdrop-filter: blur(10px);
}

.gallery-modal-body {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.gallery-modal-stage {
    flex: 1;
    min-height: 0;
    padding: 4rem 1.25rem 1rem;
    position: relative;
}

.gallery-modal-stage::before,
.gallery-modal-stage::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(16vw, 210px);
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent);
}

.gallery-modal-stage::before {
    left: 0;
}

.gallery-modal-stage::after {
    right: 0;
    transform: scaleX(-1);
}

.gallery-modal-image {
    max-height: 84vh;
    width: auto;
    object-fit: contain;
    cursor: zoom-in;
    transform: scale(var(--gallery-zoom, 1));
    transition: transform 0.34s ease, filter 0.34s ease, box-shadow 0.34s ease, border-radius 0.34s ease;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.gallery-modal-image-maximized {
    cursor: zoom-out;
    box-shadow: 0 30px 62px rgba(0, 0, 0, 0.55);
    border-radius: 8px;
}

.gallery-modal-caption-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(7, 10, 16, 0.35), rgba(7, 10, 16, 0.62));
}

.gallery-modal-caption-wrap h5 {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: rgba(248, 238, 220, 0.92);
    margin: 0;
}

.gallery-modal-caption-wrap {
    display: none !important;
}

.gallery-modal-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem 0.7rem;
    background: rgba(7, 10, 16, 0.78);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-tool-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(249, 239, 218, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gallery-tool-btn:hover {
    filter: brightness(1.1);
}

.gallery-zoom-readout {
    min-width: 64px;
    text-align: center;
    color: rgba(249, 239, 218, 0.92);
    font-size: 0.9rem;
}

.gallery-zoom-range {
    width: min(36vw, 260px);
    accent-color: #d7a330;
}

.gallery-zoom-btn {
    border-radius: 999px;
    color: rgba(255, 247, 229, 0.96);
    border: 1px solid rgba(255, 222, 154, 0.34);
    background: linear-gradient(135deg, rgba(246, 196, 90, 0.28), rgba(179, 122, 27, 0.34));
    backdrop-filter: blur(4px);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.45rem 0.85rem;
}

.gallery-zoom-btn:hover {
    color: #fff7e5;
    border-color: rgba(255, 234, 190, 0.56);
    filter: brightness(1.08);
}

.gallery-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 237, 201, 0.34);
    background: linear-gradient(135deg, rgba(246, 196, 90, 0.24), rgba(140, 94, 20, 0.35));
    color: rgba(255, 245, 222, 0.96);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.gallery-nav-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.08);
    border-color: rgba(255, 239, 206, 0.58);
    color: #fff7e6;
}

body.gallery-modal-open {
    overflow: hidden;
}

.gallery-reveal {
    opacity: 0;
    transform: translateY(12px);
}

.gallery-reveal-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.card-title {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.wrapped-media-block::after {
    content: "";
    display: block;
    clear: both;
}

.wrapped-media-figure {
    float: left;
    width: min(40%, 320px);
    margin: 0 1.25rem 0.95rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.wrapped-media-figure.wrapped-media-right {
    float: right;
    margin: 0 0 0.95rem 1.25rem;
}

.wrapped-media-figure img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

/* Slightly smaller logo in organiser module so text aligns in one line block */
.wrapped-media-figure.indeevaram-logo-inline {
    width: min(30%, 230px);
}

.wrapped-media-figure.indeevaram-logo-inline img {
    max-height: 230px;
    object-fit: contain;
}


/* Vertically center intro lead text beside wrapped media image on wider screens */
@media (min-width: 768px) {
    .wrapped-media-block > p.lead {
        margin-top: clamp(0.2rem, 0.9vw, 0.8rem);
        margin-bottom: 0.65rem;
    }
}

.btn {
    border-radius: 999px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.btn-warning {
    background: linear-gradient(135deg, #edba3e, #d79e1f);
    border: 0;
    color: #1f1600;
}

.index-page .index-shell {
    max-width: 1080px;
}

.index-page .index-gallery-shell {
    position: relative;
    padding: 1.1rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at 0% 0%, rgba(247, 191, 69, 0.24), transparent 42%),
        radial-gradient(circle at 100% 100%, rgba(116, 156, 255, 0.24), transparent 45%),
        linear-gradient(145deg, rgba(18, 24, 38, 0.75), rgba(26, 35, 58, 0.55) 55%, rgba(14, 18, 28, 0.74));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 70px rgba(3, 6, 12, 0.58), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.index-page .index-gallery-shell::before {
    content: "";
    position: absolute;
    inset: -30%;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.08) 0.4px, transparent 0.8px),
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 0.5px, transparent 1px);
    background-size: 3px 3px, 7px 7px;
    opacity: 0.12;
    mix-blend-mode: screen;
    animation: grain-shift 10s steps(8) infinite;
    pointer-events: none;
}

.index-page .index-gallery-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255, 221, 145, 0.18), transparent 24%, transparent 68%, rgba(127, 167, 255, 0.16)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 12%);
    pointer-events: none;
}

.index-page .index-gallery-shell > .col {
    position: relative;
    z-index: 1;
}


.index-page .index-kicker {
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    color: var(--accent-secondary);
}

.index-page .index-feature-card {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(156deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 28%, rgba(7, 10, 16, 0.18));
    box-shadow: 0 22px 52px rgba(3, 6, 12, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(0);
    transition: transform 0.34s ease, box-shadow 0.34s ease, border-color 0.34s ease;
}

.index-page .index-feature-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 34px 72px rgba(3, 6, 12, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 231, 181, 0.4);
}

.index-page .index-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(120deg, transparent 22%, rgba(255, 243, 211, 0.18) 36%, transparent 52%);
    transform: translateX(-125%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.index-page .index-feature-card:hover::before {
    transform: translateX(125%);
}

.index-page .index-media-link {
    display: block;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.index-page .index-media-ratio {
    position: relative;
    aspect-ratio: var(--index-feature-ratio);
    overflow: hidden;
}

.index-page .index-media-ratio::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 10, 16, 0) 45%, rgba(7, 10, 16, 0.26) 100%);
    pointer-events: none;
}

.index-page .index-feature-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.88) contrast(1.06) brightness(0.92);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.index-page .index-feature-card:hover .card-img-top {
    filter: saturate(1.02) contrast(1.08) brightness(0.96);
}

.index-page .index-feature-card .card-body {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(9, 13, 21, 0.45)),
        linear-gradient(90deg, rgba(242, 187, 72, 0.05), transparent 30%, transparent 70%, rgba(111, 152, 242, 0.05));
    padding: 1.05rem 1rem 1.15rem !important;
}

.index-page .index-feature-card .card-body::before {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 226, 166, 0.65), transparent);
}


.index-page .index-feature-card .card-title {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: clamp(0.62rem, 0.82vw, 0.74rem);
    letter-spacing: 0.01em;
    text-transform: none;
    color: rgba(255, 238, 204, 0.95);
    margin-bottom: 0.45rem !important;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.index-page .index-feature-card .index-module-tagline {
    color: #1f4e8c;
    font-size: clamp(0.68rem, 0.94vw, 0.8rem);
    font-style: italic;
    line-height: 1.25;
    margin-top: 0.08rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.index-page .index-card-btn {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    /* neutral style: no bold yellow background */
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--text-accent-1);
    box-shadow: none;
}

.index-page .index-card-btn:hover {
    border-color: rgba(255, 243, 215, 0.6);
    filter: brightness(1.05);
}

.index-page .index-card-btn:focus-visible,
.index-page .index-media-link:focus-visible {
    outline: 2px solid rgba(255, 233, 186, 0.88);
    outline-offset: 3px;
}

.index-page .index-bio {
    max-width: 1080px;
}

.index-page .index-bio-text {
    line-height: 1.75;
    color: rgba(246, 248, 255, 0.9);
}

.index-page .index-bio-heading {
    margin-bottom: 0;
}

.index-page .index-bio-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(12, 18, 30, 0.58);
    color: rgba(246, 248, 255, 0.95);
    padding: 0.82rem 1rem;
    font: inherit;
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.35;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.index-page .index-bio-toggle:hover {
    border-color: rgba(255, 233, 186, 0.45);
    background: rgba(17, 24, 38, 0.72);
}

.index-page .index-bio-toggle:focus-visible {
    outline: 2px solid rgba(255, 233, 186, 0.88);
    outline-offset: 3px;
}

.index-page .index-bio-toggle::after {
    content: "";
    flex: 0 0 auto;
    width: 0;
    height: 0;
    border-top: 0.34rem solid transparent;
    border-bottom: 0.34rem solid transparent;
    border-left: 0.52rem solid rgba(255, 233, 186, 0.9);
    transform: rotate(0deg);
    transform-origin: 35% 50%;
    transition: transform 0.2s ease;
}

.index-page .index-bio-toggle[aria-expanded="true"]::after {
    transform: rotate(90deg);
}

.index-page .index-bio-collapse {
    padding: 0.9rem 0.2rem 0;
}

.section-toggle-heading {
    margin-bottom: 0;
}

.section-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(12, 18, 30, 0.58);
    color: rgba(246, 248, 255, 0.95);
    padding: 0.82rem 1rem;
    font: inherit;
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.35;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.index-page .index-bio-toggle,
.section-toggle {
    min-height: 44px;
}

.section-toggle:hover {
    border-color: rgba(255, 233, 186, 0.45);
    background: rgba(17, 24, 38, 0.72);
}

.section-toggle:focus-visible {
    outline: 2px solid rgba(255, 233, 186, 0.88);
    outline-offset: 3px;
}

.section-toggle::after {
    content: "";
    flex: 0 0 auto;
    width: 0;
    height: 0;
    border-top: 0.34rem solid transparent;
    border-bottom: 0.34rem solid transparent;
    border-left: 0.52rem solid rgba(255, 233, 186, 0.9);
    transform: rotate(0deg);
    transform-origin: 35% 50%;
    transition: transform 0.2s ease;
}

.section-toggle[aria-expanded="true"]::after {
    transform: rotate(90deg);
}

.section-toggle-label {
    display: inline-block;
}

/* Gallery: keep VIDEOS collapse button centered */
.gallery-videos-heading.section-toggle-heading .section-toggle {
    justify-content: center;
    text-align: center;
}

.section-collapse-content {
    padding: 0.9rem 0.2rem 0;
}

.index-page .index-feature-card .card-img-top.index-card-img-performer {
    object-position: center 72%;
    filter: saturate(0.94) contrast(1.1) brightness(0.95);
}

.index-page .index-feature-card .card-img-top.index-card-img-academic {
    object-position: center 22%;
}

.index-page .index-home-actions .index-card-btn {
    min-width: 220px;
    text-align: center;
}

.social-links a,
.social-links-lg a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 999px;
    transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

.social-links a:hover,
.social-links-lg a:hover {
    transform: translateY(-2px) scale(1.05);
    filter: brightness(1.18);
}

footer,
.container-fluid.text-center.glass.p-4 {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    margin-top: 2.5rem;
}

.list-group-item.bg-transparent {
    color: var(--text-accent-2) !important;
}

footer .container > p,
.container-fluid.text-center.glass.p-4 > p {
    overflow-wrap: anywhere;
}

section.container-fluid > .container > * {
    opacity: 0;
    transform: translateY(18px);
    animation: reveal-up 0.7s ease forwards;
}

section.container-fluid > .container > *:nth-child(2) {
    animation-delay: 0.1s;
}

section.container-fluid > .container > *:nth-child(3) {
    animation-delay: 0.16s;
}

section.container-fluid > .container > *:nth-child(4) {
    animation-delay: 0.22s;
}

section.container-fluid > .container > *:nth-child(5) {
    animation-delay: 0.28s;
}

@keyframes reveal-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes grain-shift {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-2%, 1%);
    }
    50% {
        transform: translate(1%, -2%);
    }
    75% {
        transform: translate(-1%, 2%);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes collage-drift {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes side-fx-float {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -8px;
    }
}

@media (max-width: 1099.98px) {
    .page-sidefx-active .page-side-fx {
        display: none;
    }

    .wrapped-media-figure,
    .wrapped-media-figure.wrapped-media-right {
        float: none;
        width: min(100%, 420px);
        margin: 0 auto 1rem;
    }

    .wrapped-media-figure.indeevaram-logo-inline {
        width: min(72%, 250px);
    }

}

@media (max-width: 991.98px) {
    html {
        font-size: 15px;
    }

    .navbar {
        margin-left: 0.45rem;
        margin-right: 0.45rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .navbar .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .navbar-brand {
        font-size: 1.65rem !important;
        letter-spacing: 0.1em;
    }

    .navbar-brand::after {
        font-size: 0.4rem;
        margin-top: 0.16rem;
    }

    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .navbar .navbar-collapse {
        margin-top: 0.45rem;
        padding: 0.45rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(10, 15, 24, 0.74);
        backdrop-filter: blur(8px);
        max-height: calc(100vh - 86px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .navbar-collapse.show .navbar-nav,
    .navbar-collapse.collapsing .navbar-nav {
        padding: 0.35rem;
    }

    .navbar .nav-link {
        font-size: 0.84rem;
        padding: 0.5rem 0.65rem;
    }

    .navbar-collapse.show .nav-link,
    .navbar-collapse.collapsing .nav-link {
        border-radius: 10px;
    }

    .navbar-collapse.show .nav-link:hover,
    .navbar-collapse.show .nav-link:focus-visible {
        background: rgba(255, 255, 255, 0.06);
    }

    .btn,
    .gallery-filter-btn,
    .gallery-zoom-btn {
        min-height: 44px;
    }

    section.container-fluid {
        padding-left: max(0.85rem, env(safe-area-inset-left)) !important;
        padding-right: max(0.85rem, env(safe-area-inset-right)) !important;
        padding-bottom: 1.1rem !important;
    }

    section.container-fluid > .container {
        max-width: 100% !important;
    }

    .wrapped-media-block h1 {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .wrapped-media-block h2 {
        font-size: clamp(1.3rem, 4vw, 1.75rem);
    }

    .wrapped-media-block p {
        line-height: 1.7;
    }

    .gallery-modal-stage {
        padding-top: 3.5rem;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .gallery-modal-image-maximized {
        transform: scale(1.08);
    }

    .social-links,
    .social-links-lg {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .gallery-filter-btn {
        font-size: 0.82rem;
        padding: 0.46rem 0.92rem !important;
    }

    .gallery-modal-toolbar {
        flex-wrap: wrap;
        row-gap: 0.45rem;
    }

    .index-page .index-collage-masonry {
        column-count: 3;
    }

    .index-page .index-collage-item {
        animation: none;
    }

    .index-page .index-collage-item:nth-child(n + 30) {
        display: none;
    }

    .page-sidefx-active .page-side-fx {
        display: none;
    }

}

@media (max-width: 767.98px) {
    html {
        font-size: 14px;
    }

    .navbar {
        margin-left: 0.35rem;
        margin-right: 0.35rem;
    }

    .navbar-brand {
        font-size: 1.45rem !important;
    }

    .navbar-brand::after {
        font-size: 0.36rem;
    }

    .navbar .nav-link {
        font-size: 0.86rem;
        letter-spacing: 0.08em;
    }

    body:not(.index-page) h1 {
        font-size: clamp(1.35rem, 5.8vw, 1.7rem);
    }

    body:not(.index-page) section.container-fluid > .container > h1 {
        font-size: clamp(1.3rem, 6vw, 1.55rem);
        letter-spacing: 0.03em;
    }

    body:not(.index-page) h2 {
        font-size: clamp(1.08rem, 4.6vw, 1.28rem);
    }

    body:not(.index-page) .lead {
        font-size: 1rem;
    }

    .glass {
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .glass.p-4,
    .glass.p-3 {
        padding: 0.95rem !important;
    }

    section.container-fluid > .container {
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }

    section.container-fluid > .container > h1 {
        margin-bottom: 0.55rem !important;
    }

    section.container-fluid > .container > .text-center.text-white-50 {
        margin-bottom: 1.1rem !important;
    }

    .index-page .index-gallery-shell {
        padding: 0.75rem;
        border-radius: 18px;
    }

    .index-page .index-feature-card .card-body {
        text-align: center;
        padding: 0.95rem 0.85rem 1rem !important;
    }

    .index-page .index-feature-card .card-title {
        font-size: 0.68rem;
        line-height: 1.2;
    }

    .index-page .index-feature-card .index-module-tagline {
        font-size: 0.72rem;
        line-height: 1.2;
    }

    .index-page .index-card-btn {
        width: 100%;
    }

    .index-page .index-bio-toggle {
        padding: 0.9rem 1rem;
        font-size: 0.98rem;
    }

    .index-page .index-bio-toggle::after {
        border-top-width: 0.42rem;
        border-bottom-width: 0.42rem;
        border-left-width: 0.66rem;
    }

    .section-toggle {
        padding: 0.9rem 1rem;
        font-size: 0.98rem;
    }

    .section-toggle::after {
        border-top-width: 0.42rem;
        border-bottom-width: 0.42rem;
        border-left-width: 0.66rem;
    }

    .index-page .index-collage-masonry {
        column-count: 2;
    }

    .index-page .index-collage-bg {
        display: none;
    }

    .index-page .index-collage-item {
        opacity: 0.18;
    }

    .index-page .index-collage-item:nth-child(n + 20) {
        display: none;
    }

    .gallery-compact-grid {
        column-width: 132px;
        column-gap: 0.36rem;
    }

    .gallery-compact-grid > .gallery-item {
        margin-bottom: 0.36rem;
    }

    .gallery-modal-caption-wrap h5 {
        font-size: 0.86rem;
    }

    .gallery-modal-stage::before,
    .gallery-modal-stage::after {
        display: none;
    }

    .wrapped-media-figure,
    .wrapped-media-figure.wrapped-media-right {
        float: none;
        width: min(100%, 320px);
        margin: 0 auto 0.85rem;
    }

    .wrapped-media-figure img {
        max-height: 320px;
    }

    .wrapped-media-figure.indeevaram-logo-inline {
        width: min(74%, 220px);
    }

    .wrapped-media-figure.indeevaram-logo-inline img {
        max-height: 220px;
    }


    .gallery-modal-toolbar {
        gap: 0.4rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .gallery-zoom-range {
        width: min(42vw, 180px);
    }

    .section-collapse-content,
    .index-page .index-bio-collapse {
        padding-top: 0.78rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.28rem !important;
        letter-spacing: 0.08em;
    }

    .navbar-brand::after {
        font-size: 0.34rem;
    }

    .navbar .nav-link {
        font-size: 0.82rem;
        letter-spacing: 0.08em;
    }

    .navbar .navbar-collapse {
        max-height: calc(100vh - 78px);
    }

    .gallery-filter-btn {
        flex: 1 1 calc(50% - 0.42rem);
        max-width: calc(50% - 0.42rem);
        padding: 0.55rem 0.4rem !important;
    }

    footer .container > p {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.28rem;
        font-size: 0;
    }

    footer .container > p a {
        display: inline-block;
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .glass-light h5 {
        overflow-wrap: anywhere;
    }

    .gallery-zoom-range {
        width: min(56vw, 150px);
    }

    .gallery-nav-btn {
        width: 34px;
        height: 34px;
    }
}

@media (hover: none), (pointer: coarse) {
    .gallery-compact-grid:hover .gallery-media {
        filter: none;
        transform: none;
        opacity: 1;
    }

    .gallery-compact-grid .gallery-media:hover {
        transform: none;
        box-shadow: none;
    }

    .gallery-media:hover .gallery-caption {
        opacity: 0;
        transform: translateY(6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Light theme + typography normalization */
:root {
    --accent-primary: #c69020;
    --accent-secondary: #8b5e08;
    --accent-tertiary: #f3e1b2;
    --bg-color: #f7f3ea;
    --text-accent-1: #1e2633;
    --text-accent-2: #3a4657;
    --surface-1: rgba(255, 255, 255, 0.92);
    --surface-2: rgba(245, 239, 225, 0.84);
    --stroke-1: rgba(119, 98, 59, 0.2);
    --shadow-soft: 0 16px 36px rgba(88, 74, 51, 0.14);
    --shadow-hover: 0 22px 46px rgba(88, 74, 51, 0.2);
}

html,
body {
    background-color: #f8f4eb;
}

body {
    color: var(--text-accent-1);
    font-size: 1rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(246, 218, 160, 0.44), transparent 36%),
        radial-gradient(circle at 88% 16%, rgba(215, 233, 255, 0.52), transparent 34%),
        radial-gradient(circle at 75% 84%, rgba(255, 240, 210, 0.46), transparent 32%),
        linear-gradient(150deg, #fcfaf4 0%, #f8f2e4 44%, #f6efdf 72%, #f3ead8 100%);
}

body::before {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 248, 236, 0.34));
}

body::after {
    background:
        repeating-linear-gradient(
            120deg,
            rgba(166, 129, 52, 0.035) 0,
            rgba(166, 129, 52, 0.035) 1px,
            transparent 1px,
            transparent 21px
        ),
        repeating-linear-gradient(
            60deg,
            rgba(130, 163, 211, 0.03) 0,
            rgba(130, 163, 211, 0.03) 1px,
            transparent 1px,
            transparent 25px
        );
}

p,
li,
small,
a,
span,
label,
input,
textarea,
select,
button,
.btn,
.card-text,
.list-group-item,
.lead {
    font-size: 1rem;
}

p,
li {
    color: var(--text-accent-2);
    line-height: 1.7;
}

.text-light,
.link-light,
a.link-light,
.navbar-brand.text-light,
.card.text-light,
.text-white {
    color: var(--text-accent-1) !important;
}

.text-white-50 {
    color: rgba(52, 61, 75, 0.74) !important;
}

.glass {
    background: linear-gradient(145deg, var(--surface-1), var(--surface-2));
    border: 1px solid var(--stroke-1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(120, 96, 58, 0.2);
}

.glass-border-bottom,
.glass-border-top {
    border-color: rgba(120, 96, 58, 0.2);
}

.navbar {
    background: linear-gradient(140deg, rgba(255, 250, 242, 0.95), rgba(247, 239, 224, 0.9));
    border-color: rgba(120, 96, 58, 0.22);
}

.navbar .nav-link {
    color: var(--text-accent-1) !important;
}

.navbar-toggler:hover {
    background-color: rgba(122, 98, 62, 0.08);
}

.navbar .navbar-toggler-icon {
    filter: invert(0) brightness(0.25);
}

.navbar-toggler .fas {
    color: #2b3340;
}

.btn-outline-light {
    color: var(--text-accent-1);
    border-color: rgba(120, 96, 58, 0.34);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    color: #1f2631;
    border-color: rgba(120, 96, 58, 0.48);
    background-color: rgba(255, 255, 255, 0.72);
}

.gallery-filter-btn {
    border-color: rgba(120, 96, 58, 0.3);
    background-color: rgba(255, 255, 255, 0.62);
    color: #2d3848;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    color: #241806 !important;
}

.gallery-caption {
    color: #1f2b3a;
    background: linear-gradient(180deg, transparent, rgba(255, 250, 241, 0.92));
}

.index-page {
    background:
        radial-gradient(circle at 10% 18%, rgba(246, 218, 159, 0.44), transparent 34%),
        radial-gradient(circle at 78% 10%, rgba(199, 225, 255, 0.38), transparent 36%),
        radial-gradient(circle at 70% 82%, rgba(255, 237, 201, 0.34), transparent 33%),
        linear-gradient(150deg, #fcfaf4 0%, #f8f2e4 44%, #f6efdf 72%, #f3ead8 100%);
}

.index-page::after {
    background:
        repeating-linear-gradient(
            120deg,
            rgba(156, 122, 49, 0.03) 0,
            rgba(156, 122, 49, 0.03) 1px,
            transparent 1px,
            transparent 18px
        ),
        repeating-linear-gradient(
            60deg,
            rgba(118, 152, 202, 0.025) 0,
            rgba(118, 152, 202, 0.025) 1px,
            transparent 1px,
            transparent 22px
        );
}

.index-page .index-gallery-shell {
    background:
        radial-gradient(circle at 0% 0%, rgba(247, 205, 119, 0.22), transparent 42%),
        radial-gradient(circle at 100% 100%, rgba(157, 194, 246, 0.22), transparent 45%),
        linear-gradient(145deg, rgba(255, 252, 246, 0.88), rgba(247, 240, 228, 0.9) 55%, rgba(243, 234, 216, 0.92));
    border: 1px solid rgba(120, 96, 58, 0.2);
    box-shadow: 0 18px 42px rgba(88, 74, 51, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.index-page .index-feature-card {
    border-color: rgba(120, 96, 58, 0.24);
    background: linear-gradient(156deg, rgba(255, 255, 255, 0.95), rgba(255, 249, 239, 0.88) 35%, rgba(244, 236, 222, 0.86));
    box-shadow: 0 14px 28px rgba(88, 74, 51, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.index-page .index-feature-card .card-title {
    color: #2f3745;
}

.index-page .index-feature-card .index-module-tagline {
    color: #1f4e8c;
}

.index-page .index-bio-text {
    color: var(--text-accent-2);
}

.index-page .index-bio-toggle,
.section-toggle {
    border-color: rgba(120, 96, 58, 0.25);
    background: rgba(255, 255, 255, 0.75);
    color: #26303e;
}

.index-page .index-bio-toggle::after,
.section-toggle::after {
    border-left-color: #906212;
}

.page-sidefx-active .page-side-fx::before {
    background:
        linear-gradient(90deg, rgba(255, 249, 238, 0.84) 0%, rgba(255, 249, 238, 0.34) 16%, rgba(255, 249, 238, 0.34) 84%, rgba(255, 249, 238, 0.84) 100%),
        radial-gradient(circle at 10% 30%, rgba(226, 169, 54, 0.06), transparent 28%),
        radial-gradient(circle at 90% 70%, rgba(98, 141, 226, 0.06), transparent 30%);
}

.page-sidefx-active .side-fx-item {
    border: 1px solid rgba(120, 96, 58, 0.14);
    box-shadow: 0 12px 26px rgba(88, 74, 51, 0.16);
    opacity: 0.26;
    filter: saturate(0.9) contrast(1.02) brightness(0.95);
}

footer,
.container-fluid.text-center.glass.p-4 {
    background: linear-gradient(150deg, rgba(255, 252, 246, 0.95), rgba(247, 239, 224, 0.94));
}

