/* ============================================================================
   URN PREMIUM 3D POLISH — applies sitewide
   Loaded after style.css. Tier C: glassmorphism + 3D depth + animated blobs
   + decorative AI prop accents.
   ============================================================================ */

:root {
    --gold: #d4a017;
    --gold-soft: rgba(212,160,23,0.18);
    --navy: #1a2332;
    --ink: #0a1628;

    /* Layered shadow system — premium depth */
    --shadow-xs: 0 1px 2px rgba(10,22,40,0.06);
    --shadow-soft: 0 4px 12px -2px rgba(10,22,40,0.08), 0 2px 4px -2px rgba(10,22,40,0.06);
    --shadow-mid:  0 12px 24px -8px rgba(10,22,40,0.14), 0 4px 8px -4px rgba(10,22,40,0.08);
    --shadow-deep: 0 28px 50px -16px rgba(10,22,40,0.22), 0 10px 20px -10px rgba(10,22,40,0.12);
    --shadow-gold: 0 8px 24px -6px rgba(212,160,23,0.32);

    /* Premium easing */
    --ease-out: cubic-bezier(0.22, 0.65, 0.30, 1);
    --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
}

/* ----------------------------------------------------------------------------
   Typography refinement
---------------------------------------------------------------------------- */
h1, h2, h3, h4 {
    letter-spacing: -0.018em;
    line-height: 1.2;
}
.section-title {
    letter-spacing: -0.022em;
    line-height: 1.15;
    background: linear-gradient(135deg, #1a2332 0%, #1e3a5f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-title.text-white,
.hero-section .section-title,
.hero-title {
    background: none;
    -webkit-text-fill-color: initial;
    color: #fff;
}
.section-badge {
    background: linear-gradient(135deg, var(--gold-soft) 0%, rgba(212,160,23,0.08) 100%);
    color: var(--gold);
    border: 1px solid rgba(212,160,23,0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ----------------------------------------------------------------------------
   Premium card base — glassmorphism with 3D hover
---------------------------------------------------------------------------- */
.card,
.value-card,
.service-card,
.feature-card,
.testimonial-card,
.eb-card,
.gallery-card,
.price-card,
.blog-card,
.core-service-card,
.scholar-stat,
.advisor-card,
.floating-card,
.hero-float-badge,
.hero-impact-main,
.journey-content,
.affiliation-badge,
.director-photo-wrapper {
    will-change: transform, box-shadow;
    transition:
        transform .55s var(--ease-out),
        box-shadow .55s var(--ease-out),
        border-color .35s ease,
        background .35s ease;
    transform-style: preserve-3d;
}

.card,
.value-card,
.service-card,
.feature-card,
.testimonial-card,
.eb-card,
.price-card,
.blog-card,
.core-service-card,
.scholar-stat,
.advisor-card {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: var(--shadow-soft);
}

/* Sections on bg-light or white look better with solid white card to keep contrast */
.bg-light .card,
.bg-light .value-card,
.bg-light .service-card,
.bg-light .feature-card,
.bg-light .testimonial-card,
.bg-light .eb-card,
.bg-light .price-card,
.bg-light .blog-card,
.bg-light .core-service-card,
.bg-light .scholar-stat,
.bg-light .advisor-card {
    background: #ffffff;
    border: 1px solid rgba(10,22,40,0.06);
    box-shadow: var(--shadow-soft);
}

/* Hover: lift + 3D tilt-ready shadow */
.card:hover,
.value-card:hover,
.service-card:hover,
.feature-card:hover,
.testimonial-card:hover,
.eb-card:hover,
.gallery-card:hover,
.price-card:hover,
.blog-card:hover,
.core-service-card:hover,
.scholar-stat:hover,
.advisor-card:hover {
    box-shadow: var(--shadow-deep);
    border-color: rgba(212,160,23,0.30);
}
.card[data-tilt]:hover,
.value-card[data-tilt]:hover,
.service-card[data-tilt]:hover,
.feature-card[data-tilt]:hover,
.testimonial-card[data-tilt]:hover,
.eb-card[data-tilt]:hover,
.price-card[data-tilt]:hover,
.blog-card[data-tilt]:hover,
.core-service-card[data-tilt]:hover {
    /* JS adds rotateX/Y, just ensure smooth */
}

/* ----------------------------------------------------------------------------
   Buttons — 3D depth + gold glow
---------------------------------------------------------------------------- */
.btn {
    transition: transform .25s var(--ease-spring),
                box-shadow .35s var(--ease-out),
                background .35s ease,
                color .25s ease,
                border-color .25s ease;
    will-change: transform, box-shadow;
    letter-spacing: 0.005em;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.08s; }

.btn-primary-custom,
.btn-primary {
    box-shadow: 0 6px 18px -6px rgba(0,98,159,0.45),
                0 2px 6px -2px rgba(0,98,159,0.25),
                inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary-custom:hover,
.btn-primary:hover {
    box-shadow: 0 14px 32px -10px rgba(0,98,159,0.55),
                0 6px 14px -6px rgba(0,98,159,0.35),
                inset 0 1px 0 rgba(255,255,255,0.22),
                0 0 0 4px rgba(0,98,159,0.10);
}

.btn-outline-primary:hover,
.btn-outline-light:hover {
    box-shadow: var(--shadow-gold), inset 0 0 0 1px var(--gold);
}

/* Gold accent button variant — opt-in via .btn-gold */
.btn-gold {
    background: linear-gradient(135deg, #d4a017, #c49315);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.20);
}
.btn-gold:hover {
    color: #fff;
    background: linear-gradient(135deg, #c49315, #b3840f);
    box-shadow: 0 14px 32px -8px rgba(212,160,23,0.45), inset 0 1px 0 rgba(255,255,255,0.22);
}

/* ----------------------------------------------------------------------------
   Animated background blobs — subtle drifting gradient meshes
   Apply by adding .has-blobs class to any section
---------------------------------------------------------------------------- */
.section-padding { position: relative; }

.has-blobs { position: relative; overflow: hidden; isolation: isolate; }
.has-blobs::before,
.has-blobs::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
    will-change: transform;
}
.has-blobs::before {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(0,98,159,0.28), transparent 70%);
    top: -10%; left: -10%;
    animation: blob-drift-a 22s ease-in-out infinite alternate;
}
.has-blobs::after {
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(212,160,23,0.22), transparent 70%);
    bottom: -15%; right: -12%;
    animation: blob-drift-b 28s ease-in-out infinite alternate;
}
@keyframes blob-drift-a {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(60px, 40px) scale(1.08); }
    100% { transform: translate(20px, 80px) scale(0.96); }
}
@keyframes blob-drift-b {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(-50px,-30px) scale(1.10); }
    100% { transform: translate(-80px,-10px) scale(0.94); }
}
@media (prefers-reduced-motion: reduce) {
    .has-blobs::before, .has-blobs::after { animation: none; }
}

/* Auto-apply blobs to common sections */
#mission, #services, #fdp-sdp, #publications, #team, #why-us,
#director, #director-jrm {
    overflow: hidden;
    isolation: isolate;
}
#mission::before, #services::before, #fdp-sdp::before, #publications::before,
#team::before, #why-us::before, #director::before, #director-jrm::before {
    content: ''; position: absolute; z-index: 0;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(0,98,159,0.10), transparent 70%);
    top: -10%; left: -8%;
    border-radius: 50%; filter: blur(80px); pointer-events: none;
    animation: blob-drift-a 24s ease-in-out infinite alternate;
}
#mission::after, #services::after, #fdp-sdp::after, #publications::after,
#team::after, #why-us::after, #director::after, #director-jrm::after {
    content: ''; position: absolute; z-index: 0;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(212,160,23,0.08), transparent 70%);
    bottom: -12%; right: -10%;
    border-radius: 50%; filter: blur(80px); pointer-events: none;
    animation: blob-drift-b 30s ease-in-out infinite alternate;
}
#mission > .container, #services > .container, #fdp-sdp > .container,
#publications > .container, #team > .container, #why-us > .container,
#director > .container, #director-jrm > .container { position: relative; z-index: 1; }

/* ----------------------------------------------------------------------------
   Decorative AI 3D-prop accents — used as positioned section ornaments
   Apply <div class="prop-accent prop-microscope"></div> inside a section
---------------------------------------------------------------------------- */
.prop-accent {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: screen;
    filter: drop-shadow(0 16px 40px rgba(212,160,23,0.18));
    animation: prop-float 9s ease-in-out infinite;
}
@keyframes prop-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-14px) rotate(2deg); }
}
.prop-microscope    { background-image: url('../images/banners/prop-microscope.png'); }
.prop-globe-data    { background-image: url('../images/banners/prop-globe-data.png'); }
.prop-journal-stack { background-image: url('../images/banners/prop-journal-stack.png'); }
.prop-prisma-flow   { background-image: url('../images/banners/prop-prisma-flow.png'); }
.prop-laurel-crest  { background-image: url('../images/banners/prop-laurel-crest.png'); }
.prop-neural-sphere { background-image: url('../images/banners/prop-neural-sphere.png'); }

/* Default sizing/positioning when used inside a section */
.prop-accent.prop-tr { top: 30px; right: 20px; width: 180px; height: 180px; }
.prop-accent.prop-tl { top: 30px; left: 20px;  width: 180px; height: 180px; }
.prop-accent.prop-br { bottom: 30px; right: 20px; width: 180px; height: 180px; }
.prop-accent.prop-bl { bottom: 30px; left: 20px;  width: 180px; height: 180px; }
.prop-accent.prop-lg { width: 260px; height: 260px; }
.prop-accent.prop-sm { width: 130px; height: 130px; }

@media (max-width: 991.98px) {
    .prop-accent { display: none; } /* hide ornaments on mobile for clean focus */
}

/* ----------------------------------------------------------------------------
   Section dividers — gold hairline
---------------------------------------------------------------------------- */
.section-divider-gold {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
    opacity: 0.55;
    margin: 0;
}

/* ----------------------------------------------------------------------------
   Hero strip images — subtle inset gold hairline top/bottom for separation
---------------------------------------------------------------------------- */
.container-fluid.p-0 > img.w-100 {
    box-shadow:
        inset 0 1px 0 rgba(212,160,23,0.4),
        inset 0 -1px 0 rgba(212,160,23,0.4),
        0 8px 22px -12px rgba(10,22,40,0.45);
}

/* ----------------------------------------------------------------------------
   Forms — premium focus states
---------------------------------------------------------------------------- */
.form-control,
.form-select {
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212,160,23,0.15);
}

/* ----------------------------------------------------------------------------
   Footer polish (gold hairline accent)
---------------------------------------------------------------------------- */
footer { position: relative; }
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.6;
}

/* ----------------------------------------------------------------------------
   Image lazy-fade for elements above the fold
---------------------------------------------------------------------------- */
img { transition: opacity .4s ease; }

/* ----------------------------------------------------------------------------
   Selection color
---------------------------------------------------------------------------- */
::selection { background: rgba(212,160,23,0.30); color: var(--ink); }
