@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

    :root {
        --bg: #0b1220;
        --glass: rgba(10, 16, 32, .88);
        --stroke: rgba(255, 255, 255, .12);
        --text: rgba(255, 255, 255, .92);
        --muted: rgba(255, 255, 255, .70);
        --accent: rgba(122, 167, 255, .95);
        --accentSoft: rgba(122, 167, 255, .22);
        --card: rgba(255, 255, 255, .06);
    }

    .navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

    html,
    body {
        background:
            radial-gradient(ellipse 140% 55% at 15% 0%,
                rgba(210, 225, 248, 0.55),
                transparent 55%),
            radial-gradient(ellipse 100% 45% at 88% 12%,
                rgba(228, 238, 255, 0.6),
                transparent 60%),
            #ffffff;

        color: #1f2937;
        font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
        padding-top: 45px;
    }

    /* NAV */
    .glass-nav {
        background: rgba(30, 41, 59, 0.95);
        /* deep slate */
        border-bottom: 1px solid rgba(0, 0, 0, .08);
        backdrop-filter: blur(6px);
    }

    .navbar-brand {
        font-weight: 700;
        letter-spacing: .2px;
    }

    .nav-link {
        color: rgba(255, 255, 255, .85) !important;
        border-radius: 999px;
        padding: .45rem .8rem !important;
    }

    .nav-link.active,
    .nav-link:hover {
        color: #ffffff !important;
        background: rgba(255, 255, 255, .18);
    }

    /* HERO */
    .hero {
        position: relative;
        overflow: hidden;
        border-bottom: 1px solid var(--stroke);
        padding: 40px 0 44px;
        color: #1f2937 !important;
        /* slate-800 */
    }

    .hero p {
        color: #374151;
        /* slate-700 */
        font-size: 1.05rem;
        max-width: 60ch;
    }

    .hero:before {
        content: "";
        position: absolute;
        inset: -80px -80px auto -80px;
        height: 360px;
        background:
            radial-gradient(520px 260px at 25% 40%, rgba(122, 167, 255, .32), transparent 60%),
            radial-gradient(520px 260px at 70% 20%, rgba(165, 110, 255, .22), transparent 55%);
        pointer-events: none;
        filter: blur(2px);
    }

    .hero .container {
        position: relative;
        z-index: 1;
    }

    .kicker {
        color: #6b7280 !important;
        /* slate-500 */
        letter-spacing: 0.12em;
        text-transform: uppercase;
        font-size: 0.75rem;
    }

    .hero h1 {
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 14px;
        color: #111827 !important;
    }

    .hero p {
        font-size: 1.05rem;
        max-width: 58ch;
        color: #374151 !important;
        /* slate-700 */
        opacity: 1 !important;
    }

    /* CARDS */
    .soft-card {
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, .08);
        border-radius: 16px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, .04);
    }

    .pill {
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        padding: .4rem .75rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, .06);
        border: 1px solid rgba(255, 255, 255, .10);
        color: rgba(255, 255, 255, .85);
        font-size: .9rem;
    }

    .hero .pill {
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        color: #374151;
        font-weight: 500;
    }

    .text-muted,
    .text-white-50 {
        color: #6b7280 !important;
    }

    /* BUTTONS */
    .btn-primary {
        background: var(--accent);
        border-color: var(--accent);
        color: #0b1220;
        font-weight: 700;
    }

    .btn-primary:hover {
        filter: brightness(.95);
        color: #0b1220;
    }

    .hero .btn-outline-light {
        color: #374151;
        border-color: #d1d5db;
    }

    .hero .btn-outline-light:hover {
        background: #e5e7eb;
        color: #111827;
    }

    /* FOOTER */
    footer {
        border-top: 1px solid var(--stroke);
        color: rgba(255, 255, 255, .70);
    }

    a.link {
        color: rgba(255, 255, 255, .80);
        text-decoration: none;
    }

    a.link:hover {
        color: #fff;
        text-decoration: underline;
    }

    .quick-links {
        color: #1f2937;
    }

    .quick-links p {
        color: #6b7280;
    }

    .quick-links a {
        color: #2563eb;
        /* blue-600 */
        text-decoration: none;
        font-weight: 500;
    }

    .quick-links a:hover {
        text-decoration: underline;
    }

    .info-card h3 {
        color: #111827;
        /* near-black */
    }

    .info-card p {
        color: #374151;
        font-size: .95rem;
    }

    .info-card code {
        color: #be123c;
        /* rose-700 */
        background: #fff1f2;
        padding: 2px 6px;
        border-radius: 6px;
        font-weight: 600;
    }

    .hero:before {
        background:
            radial-gradient(520px 260px at 20% 40%, rgba(122, 167, 255, .18), transparent 60%),
            radial-gradient(520px 260px at 80% 20%, rgba(165, 110, 255, .14), transparent 55%);
    }



    .site-footer {
        margin-top: 60px;
        background: rgba(255, 255, 255, 0.85);
        /* readable on gradient */
        border-top: 1px solid rgba(17, 24, 39, 0.10);
        backdrop-filter: blur(6px);
    }

    .site-footer {
        margin-top: 48px;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
    }

    .footer-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        gap: 12px;
    }

    .footer-left {
        font-size: 0.95rem;
        color: #374151;
    }

    .footer-nav {
        display: flex;
        gap: 16px;
    }

    .footer-nav a {
        text-decoration: none;
        font-weight: 600;
        color: #1f2937;
        padding: 6px 10px;
        border-radius: 8px;
    }

    .footer-nav a:hover {
        background: #f3f4f6;
        color: #111827;
    }

    /* Mobile */
    @media (max-width: 576px) {
        .footer-inner {
            flex-direction: column;
            align-items: flex-start;
        }
    }

    .soft-card,
    .soft-card * {
        color: #1f2937;
        /* slate-800 */
    }

    .soft-card h2,
    .soft-card h3 {
        color: #111827;
        /* near-black for headings */
    }

    .soft-card ul li {
        color: #374151;
        /* slate-700 */
    }


    .hero-title {
  font-size: 3rem;
  font-weight: 600;
}

#animated-text {
  color: #4f8cff;
  border-right: 2px solid #4f8cff;
  padding-right: 4px;
  white-space: nowrap;
}

.profile-photo {
  width: 100%;
  max-width: 850px;          /* ⬅ increased from ~220 */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* Subtle name styling */
.soft-card h2.h6 {
  color: #111827;
}

.soft-card .text-muted {
  color: #6b7280 !important;
}

/* === BLOG THUMBNAILS === */

.blog-item{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(17, 24, 39, 0.10);
  align-items: start;
}

.blog-item:first-of-type{
  border-top: 0;
  padding-top: 0;
}

.blog-thumb{
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

@media (max-width: 576px){
  .blog-item{
    grid-template-columns: 1fr;
  }

  .blog-thumb{
    width: 100%;
    height: auto;
    max-height: 180px;
  }
}


/* === CERTIFICATE GRID === */

/* === CERTIFICATE GRID (NEAT, SCALABLE) === */

.cert-feature{
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid #e5e7eb;
}

.cert-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* Each cert is a clickable card */
.cert-card{
  display: block;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.cert-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
  border-color: rgba(37, 99, 235, 0.25);
}

.cert-thumb{
  height: 180px;                 /* landscape preview */
  border-radius: 14px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;                 /* small frame */
}

/* Force the image to actually grow to fill the box */
.cert-thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;           /* don't crop certificate text */
  display: block;

  max-width: none !important;    /* IMPORTANT: remove Bootstrap/old limits */
  max-height: none !important;   /* IMPORTANT: remove Bootstrap/old limits */
}

/* Text */
.cert-title {
  margin-top: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.cert-meta{
  margin-top: 4px;
  color: #6b7280;
  font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 576px) {
  .cert-thumb {
    height: 220px;            /* still big on mobile */
  }
}


/* === COMPACT PROFESSIONAL CERTS === */

.cert-compact .cert-grid{
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* was ~220 */
  gap: 18px;
}

.cert-compact .cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0.75;
}

.cert-compact .cert-thumb img{
  max-height: 80px;    /* was ~90 */
  width: auto;
  height: auto;
}

.cert-compact .cert-title{
  font-size: 0.95rem;   /* was 0.9 */
  font-weight: 700;
  margin-top: 12px;
}

/* Optional subtle hover — still NOT clickable */
.cert-compact .cert-card:hover {
  opacity: 1;
}

.cert-compact .cert-card:hover img {
  filter: grayscale(0%);
}

.cert-compact .cert-thumb{
  height: 80px;        /* was 120 */
  padding: 12px;
}

.cert-compact .cert-title{
  color: #111827;
}

/* add the conference images */
.soft-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

/* Base overlay system */
.soft-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.09;  /* 🔥 subtle */
    z-index: 0;
}

/* Keep content above image */
.soft-card > * {
    position: relative;
    z-index: 1;
}

/* Conference-specific images */
.iceet-card::before {
    background-image: url("images/conferences/iccet.png");
}

.csc-card::before {
    background-image: url("images/conferences/csc.png");
}

.icca-card::before {
    background-image: url("images/conferences/ICCA.png");
}

.icaic-card::before {
    background-image: url("images/conferences/ICAIC.png");
}

.airc-card::before {
    background-image: url("images/conferences/airc.png");
}


.architecture-img {
  width: 100%;
  height: 350px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* === PAGE HEADER === */
.page-header {
    padding: 4px 0 28px;
    background: linear-gradient(135deg, rgba(122, 167, 255, .08), rgba(165, 110, 255, .06) 80%);
    border-bottom: 1px solid #e5e7eb;
}

.page-header h1 {
    font-weight: 800;
    font-size: 2rem;
    color: #111827;
    margin-bottom: 8px;
}

.page-subtitle {
    color: #6b7280;
    font-size: 1.05rem;
    max-width: 64ch;
    margin-bottom: 0;
}

/* === BLOG ITEM TEXT === */
.blog-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-title {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
    line-height: 1.45;
}

.blog-meta {
    color: #6b7280;
    font-size: 0.82rem;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 6px;
}

.blog-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* === TALK ITEM LIST === */
.talk-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid rgba(17, 24, 39, .10);
    align-items: start;
}

.talk-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.talk-date {
    font-weight: 700;
    color: #2563eb;
    font-size: 0.88rem;
    padding-top: 3px;
}

.talk-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.talk-links {
    margin-top: 8px;
}


/* === CERT COMPACT DIRECT IMAGE === */
.cert-compact .cert-card > img {
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 4px;
}

/* === SMOOTH SCROLL === */
html {
    scroll-behavior: smooth;
}

/* === SCROLL FADE-IN ANIMATION === */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: none;
}

/* === BACK TO TOP BUTTON === */
#back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 42px;
    height: 42px;
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease, background .2s;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible {
    opacity: 1;
    transform: none;
}

#back-to-top:hover {
    background: #334155;
}

/* === NAVBAR SCROLL SHADOW === */
.glass-nav {
    transition: box-shadow .3s ease;
}

.glass-nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, .26);
}

/* === ICON UTILITIES === */
.nav-link .bi {
    font-size: .82em;
    opacity: .88;
    vertical-align: -.05em;
}

/* Zoom hint overlay on talk images */
.talk-zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, .48);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    z-index: 3;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}

.talk-img-wrap:hover .talk-zoom-hint {
    opacity: 1;
}

/* Subtle dark wash on image hover */
.talk-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .2s;
    z-index: 2;
    pointer-events: none;
}

.talk-card-new:hover .talk-img-wrap::after {
    background: rgba(0, 0, 0, .07);
}

/* Icon colours used in section headings */
.icon-blue  { color: #2563eb; }
.icon-green { color: #16a34a; }
.icon-amber { color: #d97706; }
.icon-red   { color: #dc2626; }

/* === SINGLE-ROW NAVBAR === */
@media (min-width: 992px) {
  .navbar .nav-link {
    padding: .28rem .45rem !important;
    font-size: .83rem;
    white-space: nowrap;
  }
  .navbar-brand {
    font-size: .93rem;
    white-space: nowrap;
  }
}
/* === PHOTO PLACEHOLDERS (replace with real images later) === */
.photo-placeholder {
  width: 100%;
  max-width: 850px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 2px dashed #cbd5e1;
  background:
    repeating-linear-gradient(
      -45deg,
      #f8fafc,
      #f8fafc 12px,
      #eef2f7 12px,
      #eef2f7 24px
    );
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  margin-left: auto;
  margin-right: auto;
}

.talk-img-placeholder,
.cert-thumb-placeholder,
.blog-thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  background:
    repeating-linear-gradient(
      -45deg,
      #0f172a,
      #0f172a 14px,
      #1e293b 14px,
      #1e293b 28px
    );
  border: 1px dashed rgba(148, 163, 184, 0.45);
}

.talk-img-wrap .talk-img-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 270px;
}

.cert-thumb-placeholder {
  min-height: 180px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      -45deg,
      #f8fafc,
      #f8fafc 12px,
      #eef2f7 12px,
      #eef2f7 24px
    );
  color: #64748b;
  border: 1px dashed #cbd5e1;
}

.blog-thumb-placeholder {
  width: 64px;
  height: 64px;
  min-height: 64px;
  border-radius: 10px;
  font-size: 0.65rem;
  line-height: 1.2;
  padding: 4px;
  background:
    repeating-linear-gradient(
      -45deg,
      #f8fafc,
      #f8fafc 8px,
      #eef2f7 8px,
      #eef2f7 16px
    );
  color: #64748b;
  border: 1px dashed #cbd5e1;
}
