/*!
 * Start Bootstrap - Resume v4.0.0-beta.2 (https://startbootstrap.com/template-overviews/resume)
 * Copyright 2013-2017 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-resume/blob/master/LICENSE)
 */
body {
  font-family: 'Open Sans', serif;
  padding-top: 54px;
  color: #E2E8F0;
  background-color: #0B0E14; }

/* Remove left sidebar offset; use top navbar spacing */
@media (min-width: 992px) {
  body {
    padding-top: 70px;
    padding-left: 0; } }

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Saira Extra Condensed', serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #E2E8F0; }

h1 {
  font-size: 6rem;
  line-height: 5.5rem; }

h2 {
  font-size: 3.5rem; }

.subheading {
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'Saira Extra Condensed', serif;
  font-size: 1.35rem; }

.list-social-icons a {
  color: #495057; }
  .list-social-icons a:hover {
    color: #BD5D38; }
  .list-social-icons a .fa-lg {
    font-size: 1.75rem; }

.list-icons {
  font-size: 3rem; }
  .list-icons .list-inline-item i:hover {
    color: #BD5D38; }

#sideNav .navbar-nav .nav-item .nav-link {
  font-weight: 600;
  text-transform: uppercase; }

@media (min-width: 992px) {
  #topNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; }
    #topNav .navbar-brand .img-profile {
      max-width: 3rem;
      max-height: 3rem;
      border: 0.25rem solid rgba(255, 255, 255, 0.15); }
}

/* Navbar link styles */
#topNav .nav-link { font-weight: 600; text-transform: uppercase; }

/* Section spacing for top nav */
section.resume-section { scroll-margin-top: 80px; }

section.resume-section {
  border-bottom: 1px solid #dee2e6;
  padding-top: 5rem !important;
  padding-bottom: 5rem !important; }
  section.resume-section .resume-item .resume-date {
    min-width: none; }

@media (min-width: 768px) {
  section.resume-section {
    min-height: 100vh; }
    section.resume-section .resume-item .resume-date {
      min-width: 18rem; } }

@media (min-width: 992px) {
  section.resume-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important; } }

.bg-primary {
  background: linear-gradient(135deg, #111827 0%, #0B0E14 60%, #111827 100%) !important; }

.text-primary {
  color: #38BDF8 !important; }

a {
  color: #38BDF8; }
  a:hover, a:focus, a:active {
    color: #7DD3FC; }

/* Cards and sections */
section.resume-section {
  background-color: rgba(17, 24, 39, 0.35);
}

/* About content width */
.about-content { max-width: 820px; }
.about-content p { line-height: 1.75; }

/* Typing effect caret */
.typing::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 1.2em;
  margin-left: 3px;
  background: #38BDF8;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .typing::after { animation: none; }
}

/* Currently Doing grid */
.current-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.current-marker { width: 8px; height: 48px; border-radius: 4px; background: linear-gradient(180deg, #22D3EE, #0EA5E9); box-shadow: 0 0 0 6px rgba(56,189,248,0.14), 0 8px 18px rgba(2,132,199,0.35); align-self: center; justify-self: start; }
.current-card {
  background: radial-gradient(120px 80px at top left, rgba(56,189,248,0.15), transparent 60%),
              linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.current-card.empty { min-height: 88px; opacity: 0.5; border-style: dashed; border-color: rgba(148,163,184,0.25); background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 8px, rgba(255,255,255,0.01) 8px, rgba(255,255,255,0.01) 16px); }
.current-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  border-color: rgba(56, 189, 248, 0.35);
}
.current-card h3 { 
  color: #7DD3FC; 
  margin-bottom: 8px; 
  display: flex; 
  align-items: center; 
}
.current-card p { color: #CBD5E1; margin: 0; }
.research-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}
.research-detail p {
  margin: 0 0 6px 0;
  font-size: 0.9rem;
  line-height: 1.4;
}
.research-detail p:last-child {
  display: flex;
  align-items: center;
  color: #94A3B8;
  font-size: 0.85rem;
}

/* Active current work styling */
.current-card.current-active {
  background: radial-gradient(120px 80px at top left, rgba(56,189,248,0.25), transparent 60%),
              linear-gradient(180deg, rgba(56,189,248,0.08), rgba(56,189,248,0.04));
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 24px rgba(56,189,248,0.2), 
              0 0 20px rgba(56,189,248,0.1),
              inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.current-card.current-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #22D3EE, #0EA5E9, #22D3EE);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.current-card.current-active:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(56,189,248,0.25), 
              0 0 30px rgba(56,189,248,0.15),
              inset 0 1px 0 rgba(255,255,255,0.15);
  border-color: rgba(56, 189, 248, 0.6);
}

.current-card.current-active h3 {
  color: #22D3EE;
  text-shadow: 0 0 10px rgba(56,189,248,0.3);
}

@keyframes shimmer {
  0%, 100% { background-position: -200% 0; }
  50% { background-position: 200% 0; }
}

/* Cursor trail canvas layering */
#cursor-trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1; }

/* Elevate content above canvas */
#page-top, .container-fluid, nav#sideNav { position: relative; z-index: 2; }

/* Pitstop road */
.current-hline { position: relative; padding: 12px 0; }
.current-hline .now-marker { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 10px; height: 26px; background: linear-gradient(180deg, #22D3EE, #0EA5E9); border-radius: 3px; box-shadow: 0 0 0 5px rgba(56,189,248,0.15), 0 8px 18px rgba(2,132,199,0.45); z-index: 2; }
.rtl-track { position: relative; overflow: hidden; white-space: nowrap; border-top: 2px dashed rgba(56,189,248,0.35); border-bottom: 2px dashed rgba(56,189,248,0.15); padding: 18px 0; }
.rtl-item { display: inline-block; vertical-align: top; min-width: 280px; max-width: 360px; margin: 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(148,163,184,0.12); background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); color: #E2E8F0; box-shadow: 0 10px 22px rgba(0,0,0,0.35); }
.rtl-item h3 { color: #7DD3FC; margin: 0 0 6px 0; font-size: 1.05rem; }
.rtl-item p { color: #CBD5E1; margin: 0; }

@keyframes marqueeRTL {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.rtl-track { animation: marqueeRTL 18s linear infinite; }
.rtl-track:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .rtl-track { animation: none; }
}
@media (max-width: 576px) {
  .rtl-item { min-width: 240px; }
}

@media (max-width: 576px) {
  .road-track { left: 20px; }
  .car { left: 8px; font-size: 20px; top: 90px; }
  .pitstops { margin-left: 48px; }
}

/* Projects grid */
.project-container { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
  gap: 20px; 
}

/* Project card refinements */
.flip-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 300ms ease, opacity 400ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.flip-card.in-view { opacity: 1; transform: translateY(0) scale(1); }
.flip-card:hover { box-shadow: 0 16px 36px rgba(0,0,0,0.45); border-color: rgba(56,189,248,0.25); }

.flip-card-inner { border-radius: 14px; }
.flip-card-front { background-color: #0f172a; }
.flip-card-front img { filter: saturate(1.05) contrast(1.02); }

/* Always-visible caption */
.project-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(2,6,23,0), rgba(2,6,23,0.75));
  color: #E2E8F0;
}
.project-caption h3 { margin: 0 0 6px 0; font-size: 1.05rem; color: #7DD3FC; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tag { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: rgba(56,189,248,0.12); color: #7DD3FC; border: 1px solid rgba(56,189,248,0.25); }

/* Subtle tilt on hover */
.flip-card:hover .flip-card-inner { transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1.01); }

/* Reduce aggressive flip: only rotate on hover, else show front with caption */
.flip-card-inner { transition: transform 0.6s; transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-back { background: linear-gradient(180deg, rgba(2,6,23,0.85), rgba(2,6,23,0.95)); }

/* Skills layout */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.skills-group { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(148,163,184,0.12); border-radius: 12px; padding: 16px; }
.skills-group .group-title { font-size: 1.1rem; color: #7DD3FC; margin-bottom: 10px; }
.skill-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; padding: 6px 10px; border-radius: 999px; background: rgba(56,189,248,0.10); color: #E2E8F0; border: 1px solid rgba(56,189,248,0.25); }
.skill-badge .badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #38BDF8; display: inline-block; }
