:root {
  --bg: #0a192f;
  --panel: #112240;
  --text: #ccd6f6;
  --accent: #64ffda;
  --subtitle: #8892b0;
  --highlight: #00e6b0;
  --font: 'Inter', 'Segoe UI', Arial, sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

nav#navbar {
  background: var(--panel);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px #0005;
}

nav#navbar ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 960px;
  display: flex;
  justify-content: center;
  gap: 2em;
}

nav#navbar a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  transition: color 0.2s;
}
nav#navbar a:hover {
  color: var(--highlight);
}

section {
  max-width: 720px;
  margin: 80px auto;
  padding: 32px 24px;
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 4px 24px #0002;
}

.hero-section {
  text-align: center;
  background: none;
  box-shadow: none;
  margin-top: 40px;
}

.hero-section h1 {
  font-size: 2.5em;
  color: var(--accent);
  margin-bottom: 0.25em;
}
.hero-section h2 {
  font-size: 1.5em;
  color: var(--text);
  font-weight: 300;
  margin-bottom: 0.5em;
}
.subtitle {
  color: var(--subtitle);
  font-size: 1.1em;
}

h2 {
  color: var(--accent);
  margin-bottom: 0.5em;
  font-size: 2em;
}
h3 {
  color: var(--highlight);
  margin-bottom: 0.2em;
}

.job, .project {
  margin-bottom: 2em;
}
.job h3, .project h3 {
  font-size: 1.15em;
  margin: 0 0 0.25em 0;
}
.job span {
  float: right;
  color: var(--subtitle);
  font-size: 1em;
  font-weight: normal;
}
ul {
  margin: 0 0 1em 1.5em;
}
li {
  margin-bottom: 0.6em;
  font-size: 1.05em;
}

.contact-section .contact-list {
  list-style: none;
  margin: 1em 0 0 0;
  padding: 0;
}
.contact-section li {
  margin-bottom: 0.5em;
}
.contact-section a {
  color: var(--accent);
  text-decoration: underline;
}

footer {
  text-align: center;
  color: var(--subtitle);
  font-size: 0.95em;
  margin: 40px 0 10px 0;
  letter-spacing: 1px;
}

/* --- PROJECT CARD STYLES --- */
.project-card {
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 4px 18px #0002;
  margin-bottom: 2.4em;
  padding: 0;
  transition: box-shadow 0.2s;
  overflow: hidden;
}

.project-card:hover, .project-card:focus-within {
  box-shadow: 0 8px 32px #00e6b044;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1.2em;
  cursor: pointer;
  padding: 1.1em 1.4em 1.1em 1.4em;
  background: none;
  transition: background 0.18s;
  position: relative;
}
.project-header:hover {
  background: #182343;
}

.project-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: #181c23;
  border: 2px solid #213555;
  flex-shrink: 0;
  transition: border-color 0.18s;
}
.project-header:hover .project-img {
  border-color: var(--accent);
}

.project-summary {
  color: var(--subtitle);
  font-size: 1.08em;
  margin-top: 2px;
}

.expand-icon {
  margin-left: auto;
  color: var(--subtitle);
  font-size: 1.6em;
  font-weight: bold;
  user-select: none;
  transition: transform 0.23s;
}
.project-card.expanded .expand-icon {
  transform: rotate(180deg);
}

.project-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1.8em;
  background: #122344;
  transition: max-height 0.45s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.27s;
  font-size: 1.07em;
}
.project-card.expanded .project-details {
  opacity: 1;
  max-height: none;
  padding-bottom: 1.4em;
  margin-top: -6px;
}

.project-details ul {
  margin: 1.2em 0 0.5em 1.5em;
}
.project-details li {
  color: var(--text);
  font-size: 1.02em;
}

/* Tag grid for project modules (Supertext, etc) */
.project-modules-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.2em;
}
.project-modules-grid span {
  background: #1fa2ff11;
  border-radius: 8px;
  padding: 5px 13px;
  font-size: 0.95em;
  color: #18b5ff;
  border: 1.3px solid #1fa2ff44;
  margin-bottom: 2px;
}

/* Special highlight for Supertext (keep for hero effect) */
.supertext-highlight {
  border: 2.5px solid #1fa2ff;
  background: linear-gradient(92deg, #1fa2ff22 0%, #12d8fa11 100%);
  box-shadow: 0 2px 32px 0 rgba(31,162,255,0.25);
  margin-bottom: 2.5em;
  position: relative;
}
.supertext-hero-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 20px;
  border: 2.5px solid #1fa2ff;
  margin-right: 1.5em;
  background: #181c23;
}

/* --- END PROJECT CARD STYLES --- */

/* Responsive adjustments */
@media (max-width: 800px) {
  section {
    max-width: 97vw;
    padding: 20px 5vw;
  }
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7em;
    padding: 1em;
  }
  .project-img, .supertext-hero-img {
    margin-right: 0;
    margin-bottom: 0.5em;
  }
}
/* --- JOB CARD STYLES --- */
.job-card {
  background: var(--panel);
  border-radius: 12px;
  box-shadow: 0 4px 18px #0002;
  margin-bottom: 2.4em;
  padding: 0;
  transition: box-shadow 0.2s;
  overflow: hidden;
}

.job-card:hover, .job-card:focus-within {
  box-shadow: 0 8px 32px #00e6b044;
}

.job-header {
  display: flex;
  align-items: center;
  gap: 1.2em;
  cursor: pointer;
  padding: 1.1em 1.4em 1.1em 1.4em;
  background: none;
  transition: background 0.18s;
  position: relative;
}
.job-header:hover {
  background: #182343;
}

.job-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: #181c23;
  border: 2px solid #213555;
  flex-shrink: 0;
  transition: border-color 0.18s;
}
.job-header:hover .job-logo {
  border-color: var(--accent);
}

.job-summary {
  color: var(--subtitle);
  font-size: 1.08em;
  margin-top: 2px;
}

.job-header h3 {
  color: var(--highlight);
  margin-bottom: 0.2em;
  font-size: 1.15em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.job-header h3 span {
  color: var(--subtitle);
  font-size: 1em;
  font-weight: normal;
  margin-left: 10px;
}

.job-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1.8em;
  background: #122344;
  transition: max-height 0.45s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.27s;
  font-size: 1.07em;
}
.job-card.expanded .job-details {
  opacity: 1;
  max-height: none;
  padding-bottom: 1.4em;
  margin-top: -6px;
}

.job-details ul {
  margin: 1.2em 0 0.5em 1.5em;
}
.job-details li {
  color: var(--text);
  font-size: 1.02em;
}

.expand-icon {
  margin-left: auto;
  color: var(--subtitle);
  font-size: 1.6em;
  font-weight: bold;
  user-select: none;
  transition: transform 0.23s;
}
.job-card.expanded .expand-icon {
  transform: rotate(180deg);
}

@media (max-width: 800px) {
  .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7em;
    padding: 1em;
  }
  .job-logo {
    margin-right: 0;
    margin-bottom: 0.5em;
  }
}
/* --- Modern Hero/Top Navbar Styles --- */
#navbar {
  background: rgba(10, 25, 47, 0.85);
  box-shadow: 0 3px 18px #0008;
  backdrop-filter: blur(3px);
  border-bottom: 1.5px solid #193055;
  font-size: 1.09em;
}
#navbar ul {
  max-width: 1100px;
}
#navbar a {
  position: relative;
  padding: 5px 12px;
  border-radius: 7px;
  transition: background 0.16s, color 0.18s;
}
#navbar a::after {
  content: '';
  display: block;
  margin: 0 auto;
  margin-top: 3.5px;
  width: 0%;
  height: 2px;
  background: var(--highlight);
  border-radius: 2px;
  transition: width 0.24s cubic-bezier(.68,-0.55,.27,1.55);
}
#navbar a:hover::after, #navbar a:focus::after {
  width: 80%;
}
#navbar a:hover, #navbar a:focus {
  background: #18243a;
  color: var(--highlight);
  outline: none;
}

.hero-section {
  position: relative;
  text-align: center;
  margin-top: 36px;
  background: none;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
  padding-bottom: 38px;
}
.hero-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  width: 540px;
  height: 330px;
  background: radial-gradient(circle at 50% 45%, #00e6b055 0%, #19305500 90%);
  filter: blur(16px);
  z-index: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 32px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-avatar {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  object-fit: cover;
  border: 2.5px solid var(--accent);
  margin-bottom: 16px;
  background: #181c23;
  box-shadow: 0 2px 24px #00e6b044;
}
.hero-section h1 {
  font-size: 3em;
  color: var(--accent);
  margin-bottom: 0.15em;
  margin-top: 0.04em;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.glow {
  color: var(--accent);
  text-shadow: 0 2px 18px #00e6b099, 0 0px 4px #64ffda50;
}
.dot-accent {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e6b0 70%, #18b5ff 100%);
  box-shadow: 0 2px 16px #00e6b099, 0 0 0 3px #64ffda20;
  margin-left: 10px;
  vertical-align: 6px;
  animation: dotPulse 1.5s infinite alternate cubic-bezier(.7,0,.33,1.07);
}
@keyframes dotPulse {
  to { box-shadow: 0 2px 36px #00e6b099, 0 0 0 7px #64ffda08; }
}
.hero-section h2 {
  font-size: 1.45em;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 0.37em;
  letter-spacing: 0.1px;
}
.subtitle {
  color: var(--subtitle);
  font-size: 1.12em;
  margin-bottom: 0.7em;
}
.hero-social {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 19px;
}
.hero-social img {
  width: 32px;
  height: 32px;
  opacity: 0.86;
  transition: opacity 0.18s, transform 0.17s;
  background: #122344;
  border-radius: 9px;
  padding: 3.5px;
}
.hero-social a:hover img,
.hero-social a:focus img {
  opacity: 1;
  transform: scale(1.12) rotate(-8deg);
}

@media (max-width: 700px) {
  .hero-section {
    min-height: 220px;
    padding-bottom: 12px;
  }
  .hero-bg {
    width: 92vw;
    height: 150px;
    top: 13%;
  }
  .hero-section h1 { font-size: 2em; }
  .hero-section h2 { font-size: 1em; }
  .hero-avatar { width: 62px; height: 62px; }
}
/* ===== Mobile Responsiveness Enhancements ===== */
@media (max-width: 600px) {
  /* Navbar stacks vertically */
  nav#navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }

  nav#navbar {
    padding: 12px;
  }

  /* Typography & Layout Adjustments */
  .hero-section h1 {
    font-size: 2em;
  }

  .hero-section h2 {
    font-size: 1.2em;
  }

  .subtitle,
  li,
  p {
    font-size: 0.95em;
  }

  section {
    margin: 40px auto;
    padding: 20px 16px;
  }

  /* Flexible Images */
  img {
    max-width: 100%;
    height: auto;
  }

  .hero-avatar {
    width: 64px;
    height: 64px;
  }

  .project-img {
    width: 100%;
    height: auto;
  }

  /* Adjust project and job headers on small screens */
  .project-header,
  .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7em;
    padding: 1em;
  }

  .job-logo,
  .project-img,
  .supertext-hero-img {
    margin-right: 0;
    margin-bottom: 0.5em;
  }
}
#nav-toggle {
  display: none;
  font-size: 1.8em;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 16px;
  z-index: 999;
}

@media (max-width: 800px) {
  #nav-toggle {
    display: block;
  }

  nav#navbar ul {
    display: none;
    flex-direction: column;
    align-items: center;
    background: var(--panel);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 998;
    padding: 10px 0;
  }

  nav#navbar.open ul {
    display: flex;
  }

  nav#navbar a {
    padding: 10px;
    display: block;
  }
}
@media (max-width: 600px) {
  .job-card.expanded .job-details,
  .project-card.expanded .project-details {
    max-height: none !important;
    padding-bottom: 1.4em;
    opacity: 1;
    margin-top: -6px;
  }
}

/* Image layout fix */
.large-project-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}


/* Header layout */
.project-header {
  display: flex;
  align-items: flex-start;
  gap: 1.2em;
  cursor: pointer;
  padding: 1.1em;
  position: relative;
  background: none;
}

/* Container for title and preview */
.project-header-content {
  flex-grow: 1;
}

/* Summary text (always visible) */
.project-summary {
  color: var(--subtitle);
  font-size: 1.05em;
  margin-top: 0.5em;
}

/* Collapsed state by default */
.project-details {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.4s ease-in-out;
  padding: 0 1.5em;
}

.project-card.expanded .project-details {
  max-height: 1500px; /* use a large enough height */
  opacity: 1;
  padding-bottom: 1.4em;
  margin-top: -6px;
}
.project-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.job-logo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.icon-link svg {
  background-color: var(--light);
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 0 0 2px #1a2d4a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-link:hover svg {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px var(--highlight);
}
.hero-social a svg {
  width: 32px;
  height: 32px;
  opacity: 0.86;
  background: #122344;
  border-radius: 9px;
  padding: 3.5px;
  transition: opacity 0.18s, transform 0.17s;
}

.hero-social a:hover svg,
.hero-social a:focus svg {
  opacity: 1;
  transform: scale(1.12) rotate(-8deg);
}
.contact-section {
  text-align: center;
  margin-top: 3em;
  padding: 2em 1em;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 1.2em;
}

.contact-icons a img {
  width: 32px;
  height: 32px;
  opacity: 0.86;
  transition: opacity 0.18s, transform 0.17s;
  background: #122344;
  border-radius: 9px;
  padding: 3.5px;
}

.contact-icons a:hover img {
  opacity: 1;
  transform: scale(1.12) rotate(-8deg);
}

.contact-text p {
  margin: 0.4em 0;
  font-size: 1.05em;
}

