
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Patrick+Hand&display=swap');

body {
    font-family: Arial, sans-serif; /* Applies sans-serif to everything */
    background: #fff7d8;
}


#profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(50%); /* Converts image to black & white */
    transition: filter 0.3s ease-in-out;
}

#profile-pic:hover {
    filter: grayscale(0%); /* Restores color when hovered */
}


.home-container {
    text-align: center;
    padding: 50px;
}


.contact-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.contact-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.contact-links a:hover {
    transform: scale(1.1);
}

.contact-links img {
    width: 40px;  /* Default size for all icons */
    height: 40px;
    filter: grayscale(100%);
    object-fit: contain;
}

.contact-links img:hover {
    filter: grayscale(0%);
}




.cv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Email muted but visible */
.cv-header h1 {
    font-size: 30px;
    margin: 0;
}

.cv-header .muted {
    font-size: 16px;
    color: #666;   /* muted gray */
    font-weight: normal;
}

.download-btn {
    background-color: #ff6600; /* Orange background */
    color: white; /* White text */
    font-size: 14px;
    font-weight: bold;
    padding: 4px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
    display: flex;
    align-items: center;
    margin-top: 10px;
    gap: 8px;
}

.download-btn:hover {
    background-color: #cc5200; /* Darker orange on hover */
    transform: scale(1.05); /* Slight zoom effect */
}

.download-btn:active {
    background-color: #993d00; /* Even darker when clicked */
    transform: scale(0.98);
}



.education-container {
    display: flex;
    flex-direction: column;
    gap: 1px;  /* tighter spacing between entries */
    position: relative;
    padding-left: 1px;
}


.education-item {
    display: flex;
    align-items: stretch; /* Ensures all items stretch to the same height */
    position: relative;
}

.education-year {
    font-weight: normal;
    width: 100px; /* Controls width of year section */
    text-align: center;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.education-divider {
    width: 2px; /* Width of vertical line */
    background-color: #ccc; /* Line color */
    height: 100%; /* Makes the line match the content height */
    display: flex;
}

.education-content {
    padding-left: 10px;
    display: flex;
    align-items: left;
}

.education-content ul {
    list-style-type: disc; /* Bullet points */
    padding-left: 20px;
}

/* Center CV container on projects.html */
.cv-container {
    max-width: 8.5in;       /* keep it readable, like a PDF page */
    margin: 40px auto;      /* center horizontally + some top/bottom space */
    background: #fff;       /* optional: white background */
    border-radius: 6px;     /* optional rounded edges */
}


.cv-container ul {
    list-style-type: none; /* Removes default bullets */
    padding-left: 0;
}

.cv-container ul li {
    padding: 5px 0;
    text-indent: -30px; /* Moves text left to align with [J1] */
    padding-left: 30px; /* Creates space for [J1] */
}

.cv-container h2 {
    color: #ff7043;
}

/* Tighter spacing between headers and horizontal rule */
.cv-container h2 {
  margin-bottom: 4px;   /* reduce gap below header */
}

.cv-container hr {
  margin-top: 4px;      /* reduce gap above line */
  margin-bottom: 12px;  /* keep some space after line */
}







/* Navbar */
.navbar {
    box-sizing: border-box;
    background-color: #5d5a7a;
    display: flex;
    align-items: center;
    /* keep logo on the left, don't spread to edges */
    justify-content: flex-start;                 /* changed from space-between */
    padding: 12px 22px;
    width: 100%;
    border-bottom: 2px solid #3f3a60;
    box-shadow: 0 4px 0 rgba(255, 230, 109, 0.72);

    /* enable absolute centering for the menu */
    position: relative;                          /* NEW */
    z-index: 10;
}

/* Brand Name (Text Button) */
.navbar .brand-name {
    font-family: 'Patrick Hand', 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    color: #fffdf2;
    text-decoration: none;
    padding: 8px 12px;
    transition: color 0.3s, background-color 0.3s;
    font-size: clamp(22px, 3vw, 28px);
    position: relative;                          /* ensures it sits above the menu if overlapping */
    z-index: 2;                                   /* NEW */
}

/* Hover Effect */
.navbar .brand-name:hover {
    color: #ffe66d;
    background-color: transparent;
    border-radius: 0;
}

/* Menu — centered across the whole navbar */
.navbar .menu {
    display: flex;
    gap: 15px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 2vw, 17px);

    position: absolute;                          /* NEW */
    left: 50%;                                    /* NEW */
    transform: translateX(-50%);                  /* NEW */
}

/* Menu Links */
.navbar a {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    color: #fffdf2;
    text-align: center;
    padding: 8px 10px;
    border-radius: 0;
    text-decoration: none;
    font-size: clamp(14px, 2vw, 18px);
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.navbar a:hover {
    color: #ffe66d;
    background-color: transparent;
    border-bottom-color: #ffb3c1;
}

/* Active Link */
.navbar a.active {
    color: #fffdf2 !important;
    font-weight: 600;
    background: transparent;
    border-bottom: 3px solid #ffe66d;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;                   /* stack logo and menu */
        align-items: center;
        justify-content: center;
    }

    .navbar .menu {
        position: static;                         /* let it flow under the logo on small screens */
        transform: none;
        margin-top: 6px;
        flex-wrap: wrap;
        justify-content: center;                  /* keep items centered */
    }

    .navbar a {
        padding: 10px;
        font-size: 14px;
    }
}

/* Tighter layout ONLY in Education section */
#education .education-container {
    gap: 4px;  /* smaller gap between degree blocks */
}

#education .education-content ul li {
    padding: 0px 0;  /* shrink line spacing inside each block */
    margin: 0;       /* remove extra default margin */
}


/* Muted text style */
.muted {
  color: #666;   /* softer gray than body text (#222 or black) */
  font-style: italic; /* optional: makes it look subtle */
}

/* Specific: Education years */
.education-year {
  color: #666;   /* muted gray */
  font-weight: normal; /* keep light */
}

/* Metadata muted across CV */
#conference-list li i,
#other-conference-list li i,
#award-list li i,
#grant-list li i,
#publication-list i,
#conference-proceedings-list i,
#patent-list i,
#talk-list li {
  color: #666;   /* muted gray */
}

#research-experience .muted,
#teaching-experience .muted {
  color: #666;
  font-style: italic;
}

/* ==== Business Card Wrapper (below navbar) ==== */
.bc-wrap {
  display: flex;
  justify-content: center;     /* horizontally center */
  align-items: flex-start;     /* stick to top instead of centering */
  padding: 40px 16px 24px;     /* space below navbar */
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    #fff7d8;
  background-size: 24px 24px;
}


/* Fluid card with responsive grid */
.business-card {
  display: grid;
  grid-template-columns: minmax(96px, 15vw) 1fr;        /* image column scales with width */
  gap: clamp(12px, 3vw, 50px);
  width: min(100%, 960px);                               /* max width cap */
  background: #fffdf2;
  border: 3px solid #3f3a60;
  border-radius: 8px;
  box-shadow: 10px 10px 0 #71c7ec;
  padding: clamp(16px, 3vw, 28px);
  transform: rotate(-0.3deg);
}

/* Default (desktop/tablet): vertical divider */
.bc-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 20px;
  border-right: 3px dashed #ffb000;
}

.bc-left::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background-color: #ddd;
}



/* Make profile pic scale fluidly but stay circular */
#profile-pic {
  width: clamp(84px, 15vw, 200px);
  height: clamp(84px, 18vw, 170px);
  border: 3px solid #ff6f61;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 6px 6px 0 #b7e4c7;
}

.bc-right {
  display: grid;
  align-content: center;
  gap: clamp(6px, 1.2vw, 10px);
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222;
  padding-left: 20px;           /* space away from the border */
}


/* Fluid typography */
.bc-name {
  margin: 0;
  font-size: clamp(20px, 3.2vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  color: #2b2d42;
}
.bc-title {
  margin: 0;
  color: #2f7f7f;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
}

/* Meta line (email · location) */
.bc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1vw, 10px);
  align-items: center;
  color: #5d4b73;
  font-size: clamp(13px, 1.6vw, 16px);
}
.bc-line { text-decoration: none; color: inherit; }
.bc-line:hover { text-decoration: underline; }
.bc-sep { opacity: 0.6; }

/* Icon row (kept from your site, but responsive) */
.bc-icons {
  display: flex;
  gap: clamp(10px, 1.6vw, 16px);
  margin-top: clamp(8px, 1.6vw, 14px);
  flex-wrap: wrap;
}
/* Force icons into black/white (monochrome) */
.bc-icons a img {
  width: clamp(24px, 3.6vw, 36px);
  height: clamp(24px, 3.6vw, 36px);
  filter: saturate(0.85) contrast(1.05);
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Optional hover effect: lighten slightly */
.bc-icons a:hover img {
  transform: translateY(-2px);
  filter: saturate(1.25) contrast(1.08);
}


/* Small screens: switch to horizontal divider */
@media (max-width: 720px) {
  .business-card {
    grid-template-columns: 1fr;   /* stack items */
    text-align: center;
  }

  .bc-left {
    border-right: none;           /* remove vertical */
    border-bottom: 3px dashed #ffb000;/* add horizontal */
    padding-right: 0;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .bc-right {
    padding-left: 0;
  }

  .bc-meta { justify-content: center; }
  .bc-icons { justify-content: center; }
}

/* ==== Research Snapshot (homepage) ==== */
.research-snapshot {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    #fff7d8;
  background-size: 24px 24px;
  padding: 0 16px 56px;
}

.snapshot-inner {
  max-width: 960px;
  margin: 0 auto;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2b2d42;
}

.snapshot-label {
  margin: 0 0 8px;
  color: #ff6f61;
  font-family: 'Patrick Hand', 'Montserrat', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.snapshot-inner h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-color: #ffe66d;
  text-decoration-thickness: 8px;
  text-underline-offset: -4px;
}

.snapshot-statement {
  max-width: 780px;
  margin: 0 0 22px;
  color: #514769;
  font-size: clamp(15px, 1.7vw, 18px);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.snapshot-item {
  background: #fffdf2;
  border: 3px solid #3f3a60;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 6px 6px 0 #ffd166;
}

.snapshot-item:nth-child(2) {
  box-shadow: 6px 6px 0 #b7e4c7;
  transform: rotate(0.4deg);
}

.snapshot-item:nth-child(3) {
  box-shadow: 6px 6px 0 #ffb3c1;
  transform: rotate(-0.4deg);
}

.snapshot-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #2f7f7f;
}

.snapshot-item p {
  margin: 0;
  color: #514769;
  font-size: 14px;
}

.selected-publications {
  background: #fffdf2;
  border: 3px solid #3f3a60;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 8px 8px 0 #71c7ec;
  position: relative;
}

.selected-publications::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 28px;
  width: 18px;
  height: 18px;
  border: 3px solid #3f3a60;
  border-radius: 50%;
  background: #ff6f61;
  box-shadow: 2px 2px 0 #ffd166, inset -3px -3px 0 rgba(63, 58, 96, 0.18);
}

.selected-publications h3 {
  margin: 0 0 12px;
  color: #ff6f61;
  font-size: 18px;
}

.selected-publications ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.selected-publications li {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-top: 2px dashed #d8c690;
}

.selected-publications li:first-child {
  border-top: 0;
  padding-top: 0;
}

.selected-publications a {
  color: #2b2d42;
  font-weight: 600;
  text-decoration: none;
}

.selected-publications a:hover {
  color: #ff6f61;
  text-decoration: underline;
}

.selected-publications span {
  color: #5d4b73;
  font-size: 14px;
}

@media (max-width: 720px) {
  .snapshot-grid {
    grid-template-columns: 1fr;
  }
}

.home-footer {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    #fff7d8;
  background-size: 24px 24px;
  padding: 0 16px 42px;
  text-align: center;
}

.home-footer p {
  max-width: 960px;
  margin: 0 auto;
  color: #5d4b73;
  font-family: 'Patrick Hand', 'Montserrat', Arial, sans-serif;
  font-size: 20px;
}

/* CV header layout */
.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.cv-title h1 {
  margin: 0;
}

.cv-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Scholar button (matches your minimal style) */
.scholar-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  font-weight: 600;
  text-decoration: none;
  color: #333;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.scholar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: #ccc;
}

/* Make inline links (like Google Scholar next to email) smaller */
.inline-link {
  font-size: 0.9em;        /* shrink slightly */
  white-space: nowrap;     /* keep whole link on one line */
  text-decoration: underline;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
