/* ===========================
   Variables & Reset
=========================== */
:root {
  --bg: #191c24;
  --card-bg: #093034;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #fed766;
  --accent-dim: rgba(254, 215, 102, 0.1);
  ---accent-hover: rgba(254, 215, 102, 0.18);
  --text: #c9d1d9;
  --heading: #f0f6fc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.95rem;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #9046cf;
}

/* ===========================
   Top Navbar
=========================== */
.top-navbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-navbar .container {
  padding-top: 0;
  padding-bottom: 0;
}

.nav-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0;
}

.top-navbar .nav-link {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.top-navbar .nav-link:hover {
  color: var(--accent) !important;
  background: var(--accent-dim);
}

.top-navbar .nav-link i {
  margin-right: 0.4rem;
  font-size: 0.8rem;
}

/* ===========================
   Header
=========================== */

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  display: block;
  margin: 0 auto;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0; /* gap between profile pic and list */
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-info-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* gap between icon and text */
}

/* Font Awesome icons */
.contact-info-list li a i {
  width: 18px;
  font-size: 1rem;
}

/* SVG img icons — match FA icon size */
.contact-info-list li a img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(0.75);
}

.student-info-list li {
  font-size: 0.875rem;
  color: var(--text);
}

.project-titles {
  margin-bottom: 1.5rem;
}

.title-group {
  margin-bottom: 0.6rem;
}

.title-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent);
}

.commercial-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.15rem 0 0;
}

.academic-title {
  font-size: 0.975rem;
  color: var(--heading);
  font-weight: 400;
  margin: 0.15rem 0 0;
}

.student-info-container {
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
}

.info-heading {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.student-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 2rem;
}

.student-info-list li {
  font-size: 0.875rem;
  color: var(--text);
}

.info-label {
  color: var(--accent);
  font-weight: 600;
  margin-right: 0.35rem;
}

/* ===========================
   Container / Main
=========================== */
main.container {
  padding-top: 1.5rem;
}

/* ===========================
   Cards
=========================== */
.app-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

/* When inside Bootstrap g-4 rows, let the gutter handle spacing */
.row.g-4 .app-card {
  margin-bottom: 0;
}

.app-card h2 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.app-card h2 i {
  color: var(--accent);
  margin-right: 0.5rem;
}

.app-card p {
  color: var(--text);
  margin-bottom: 1rem;
}

.app-card p:last-of-type {
  margin-bottom: 0;
}

/* ===========================
   Project Links
=========================== */
.app-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.app-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 153, 0, 0.15);
  border-radius: 8px;
  color: var(--text) !important;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.app-link:hover {
  background: var(--accent-hover);
  border-color: var(--accent);
  color: var(--accent) !important;
}

.app-link i {
  width: 18px;
  text-align: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===========================
   Tech Stack
=========================== */
.tech-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent);
  margin: 1.5rem 0 0.85rem;
}

.tech-group-label:first-of-type {
  margin-top: 0.25rem;
}

.tech-icons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.tech-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 76px;
  text-align: center;
}

.tech-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

/* AWS wordmark — tint to accent orange */
.tech-icon img.aws-wordmark {
  width: 56px;
  height: 46px;
  object-fit: contain;
  filter: invert(62%) sepia(89%) saturate(600%) hue-rotate(1deg)
    brightness(102%) contrast(101%);
}

/* Express icon is black — lighten for dark background */
.tech-icon img.invert-icon {
  filter: brightness(0) invert(0.75);
}

.aws-icon {
  font-size: 2rem;
  color: var(--accent);
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-icon span {
  font-size: 0.68rem;
  line-height: 1.3;
}

/* ===========================
   Screenshots
=========================== */
.app-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0d12;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===========================
   Video
=========================== */
.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===========================
   Footer
=========================== */
.app-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 0.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ===========================
   Section spacing
=========================== */
#project-info {
  margin-bottom: 1.5rem;
}
