
:root{
  --ink:#07054a; --accent:#39cccf; --muted:#D9D9D9; --bg:#ffffff;
  --radius:16px; --shadow:0 10px 24px rgba(7,5,74,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);}
.container{max-width:1100px;margin:0 auto;padding:24px;}
.container.small{max-width:900px}
.site-header{position:relative;height:20vh;min-height:220px;background-size:cover;background-position:center;display:flex;align-items:flex-end}
.topbar{position:absolute;top:10px;left:16px;right:16px;display:flex;gap:12px;align-items:center}
/*.logo{width:56px;height:56px;border-radius:14px;background:var(--muted);display:flex;align-items:center;justify-content:center;font-weight:700;box-shadow:var(--shadow)}*/
a {
  color: inherit;              /* or a custom color, e.g. #111 */
  text-decoration: none;
}
a:visited { color: inherit; }  /* keep visited links same color */
a:hover,
a:focus-visible {
  text-decoration: underline;  /* optional: show underline on hover/focus for clarity */
  text-underline-offset: 2px;
}


.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left / menu right */justify-content: space-between; /* logo left / menu right */
}

.nav-logo img {
  height: 80px;   /* adjust as needed */
  width: auto;
  margin-right: 20px;
  margin-left:100px;
}

/* White logo holder */
.logo {
  background: rgba(255, 255, 255, 0.75);          /* white background */
  color: #07054a;               /* optional text color if you keep text */
  border-radius: 12px;          /* softly rounded corners */
  width: 200px;                 /* adjust size as needed */
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15); /* subtle shadow for lift */
  overflow: hidden;             /* ensures an img stays inside */
}
/* Make image responsive inside holder */
.logo img {
  display: block;
  max-height: 80px;             /* limit height so header stays neat */
  max-width: 180px;             /* optional max width */
  height: auto;
  width: auto;
}
.title{font-weight:800;font-size:20px;letter-spacing:.5px;text-shadow:0 1px 1px rgba(0,0,0,.1)}
.header-overlay{width:100%;background:linear-gradient(180deg,rgba(0,0,0,0) 0, rgba(0,0,0,.35) 100%);color:white;padding:16px 24px;border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}
.site-tagline{margin:0;font-size:clamp(18px,2.2vw,28px);}

/*.site-nav{background:#fff;border-bottom:1px solid var(--muted);position:sticky;top:0;z-index:5}
.menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;   /* ✅ NEW: pushes menu items to the right */
/*}
.menu>li{position:relative}
.menu a{display:block;padding:12px 14px;text-decoration:none;color:var(--ink);border-radius:10px}
.menu a:hover{background:var(--muted)}
.has-sub>.submenu{display:none;position:absolute;left:0;top:100%;min-width:260px;background:#fff;border:1px solid var(--muted);border-radius:12px;box-shadow:var(--shadow);padding:6px 8px}
.has-sub:hover>.submenu{display:block}
.submenu .has-sub{position:relative}
.submenu .has-sub>.submenu{left:100%;top:0}
*/
/* ===== NAV BAR ===== */
.site-nav {
  /* Horizontal gradient:
     0–30% pure white,
     30–50% white→blue fade,
     50–100% solid blue (#07054a) */
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff 30%,
    #07054a 50%,
    #07054a 100%);
  /*background: #07054a;          /* bar background */
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: none;
}
/* === Mobile menu overflow fix === */
@media (max-width: 768px) {
  /* Make the dropdown panel fit the viewport width */
  .site-nav .menu {
    position: absolute;      /* stays attached under the header */
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;      /* stop sideways scrolling */
    padding: .75rem 1rem;    /* breathing room so text doesn't touch edges */
  }

  /* Ensure each item uses full line width */
  .site-nav .menu > li { width: 100%; }
  .site-nav .menu > li > a {
    display: block;
    padding: .5rem .25rem;
    white-space: normal;     /* allow wrapping */
    overflow-wrap: anywhere; /* break long words/URLs if needed */
  }

  /* Submenus: no fixed min-width, don’t push content off-screen */
  .site-nav .menu .submenu {
    position: static;        /* stack below parent */
    min-width: 0;            /* override desktop min-width */
    width: 100%;
    padding-left: 1rem;      /* simple indent */
    border-left: 2px solid rgba(0,0,0,.06);
  }
}

/* ===== Add caret to menu items with a sub-menu ===== */
.menu > li.has-sub > a::after {
  /*content: " ▼";*/            /* small downward triangle */
  font-size: 0.7em;
  margin-left: 4px;
}

/* Caret for nested sub-menus (fly-outs) */
.submenu li.has-sub > a::after {
  content: " ▶";                 /* right-pointing triangle for fly-out */
  font-size: 0.7em;
  margin-left: 4px;
}
/* top-level list */
.menu {
  list-style: none;
  margin: 0;
  padding: 0 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;     /* keep right-aligned */
}
.menu > li {
  position: relative;            /* ✅ submenus positioned relative to parent */
}

.menu > li > a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #ffffff;                /* bold white text */
  font-weight: 400;
  border-radius: 10px;
  transition: background .2s, color .2s;
}

/* hover on top-level */
.menu > li > a:hover {
  background: #D9D9D9;          /* grey background */
  color: #07054a;                /* dark-blue text */
  font-weight: 400;
}

/* ===== SUBMENUS (1st level) ===== */
.has-sub > .submenu {
  display: none;
  position: absolute;
  left: 0;                       /* directly under parent anchor */
  top: 100%;
  min-width: 260px;
  padding: 6px;
  background: #ffffff;           /* white panel so #07054a text is visible */
  border: 1px solid #D9D9D9;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(7,5,74,.12);
  z-index: 30;
}
.has-sub:hover > .submenu {
  display: block;                /* show on hover of parent */
}

/* submenu links — always #07054a and bold */
.submenu a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: #07054a;                /* ✅ keep visible dark-blue text */
  font-weight: 400;
  border-radius: 8px;
  transition: background .2s;
}
.submenu a:hover {
  background: #D9D9D9;          /* grey on hover */
  color: #07054a;                /* stays dark-blue */
}

/* ===== SUB-SUBMENUS (deeper levels) ===== */
.submenu .has-sub { position: relative; }
.submenu .has-sub > .submenu {
  left: 100%;                    /* fly out to the right of the item */
  top: 0;
  margin-left: 6px;              /* small separation gap */
}
.card{background:#fff;border:1px solid var(--muted);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.card img{width:100%;height:140px;object-fit:cover}
.card .pad{padding:16px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}

.badge{display:inline-block;padding:6px 10px;border-radius:999px;background:var(--accent);color:#042; font-weight:700}
.btn{display:inline-block;padding:10px 14px;border-radius:12px;border:1px solid var(--muted);text-decoration:none;color:var(--ink);box-shadow:var(--shadow)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#042;font-weight:700}
.btn.link{border:none;background:none;padding:0;color:var(--accent);font-weight:700}

.muted{color:#555}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media(max-width:900px){.two-col{grid-template-columns:1fr}}

.hero-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.kv{float:right;margin:0 0 12px 18px; width:280px;height:180px;background:var(--muted);border-radius:12px}
.details{border:1px dashed var(--muted);border-radius:12px;padding:8px 12px}

.section{background:#fff;border:1px solid var(--muted);border-radius:16px;padding:16px;margin:12px 0;box-shadow:var(--shadow)}
.section h3,.section h4{margin-top:0}

.notice{background: #f7ffff;border-left:4px solid var(--accent);padding:12px;border-radius:12px}
.site-footer{border-top:1px solid var(--muted);margin-top:24px;padding:24px 0;background:#fafafa}

.tag{display:inline-block;border:1px solid var(--muted);border-radius:999px;padding:6px 10px;margin:2px}

.grid-auto{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.skill-card{position:relative}
/*.skill-card .popover{display:none;position:absolute;z-index:10;inset:auto auto auto 0;transform:translateY(8px);background:#fff;border:1px solid var(--muted);border-radius:14px;box-shadow:var(--shadow);padding:12px;width:320px} */
/*.skill-card:hover .popover{display:block}*/

/* Ensure the popover can extend beyond the card */
.skill-card { position: relative; overflow: visible; }

/* Default: hidden */
.skill-card .popover{
  display: none;
  position: absolute;
  top: 50%;          /* drop below the link */
  left: 20%;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--muted);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px;
  width: 320px;
}

/* Show popover only when hovering the link */
.skill-card .find-more:hover + .popover{
  display: block;
}

/* Optional: keep it open if the user hovers onto the popover itself */
.skill-card .popover:hover{
  display: block;
}

.portfolio{display:grid;grid-template-columns:1fr;gap:12px}
.port-item{border:1px solid var(--muted);border-radius:14px;padding:12px}
.port-item .more{color:var(--accent);cursor:pointer;font-weight:700}
.port-item .popup{display:none;position:relative;margin-top:8px}
.port-item:hover .popup{display:block}

.controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.search{padding:10px;border:1px solid var(--muted);border-radius:12px;width:260px}

.collapsible{border:1px solid var(--muted);border-radius:12px;overflow:hidden;margin-bottom:8px}
.collapsible summary{cursor:pointer;padding:12px 14px;font-weight:700;background:#f7f7f7}
.collapsible .content{padding:12px 14px}

.list-rows{display:grid;grid-template-columns:1fr;gap:12px}
.book{display:grid;grid-template-columns:120px 1fr;gap:12px;align-items:center;border:1px solid var(--muted);border-radius:12px;padding:10px}
.book img{width:120px;height:160px;object-fit:cover;border-radius:8px;border:1px solid var(--muted)}

.form{max-width:680px}
.form label{display:block;margin:8px 0 4px;font-weight:600}
.form input,.form textarea, .form select{width:100%;padding:10px;border:1px solid var(--muted);border-radius:10px}
.form button{margin-top:12px}
