/* Base Styles */
html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Segoe UI", sans-serif;
  color: #e0e0e0;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #2d2d44 100%);
  background-attachment: fixed;
}

/* Stars Canvas */
.stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Navigation */
.navbar {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(106, 176, 255, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #6ab0ff 0%, #a855f7 50%, #6ab0ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
  letter-spacing: 1px;
  text-transform: uppercase;
  filter: drop-shadow(0 0 8px rgba(106, 176, 255, 0.4));
}

@keyframes gradient-shift {
  0% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
  100% {
    background-position: 0% center;
  }
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  position: relative;
  font-weight: 500;
}

.navbar .nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6ab0ff, #a855f7);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.navbar .nav-link:hover {
  color: #fff;
  background: rgba(106, 176, 255, 0.05);
  box-shadow: 0 0 20px rgba(106, 176, 255, 0.08);
}

.navbar .nav-link:hover::before {
  width: 60%;
}

.navbar .container-fluid {
  padding-left: 12%;
  padding-right: 12%;
}

/* Main Content */
main {
  flex: 1;
  z-index: 1;
}

/* Glass Card Component */
.glass-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(106, 176, 255, 0.1);
}

/* Headshot */
.headshot {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a3e 0%, #3a3a50 100%);
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid #6ab0ff;
  box-shadow: 0 4px 20px rgba(106, 176, 255, 0.3);
}

/* Bio Title with Glitch Effect */
.bio-title {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    rgba(106, 176, 255, 0.2),
    rgba(106, 176, 255, 0.1)
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(106, 176, 255, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 4px 20px rgba(106, 176, 255, 0.15);
  display: inline-block;
  position: relative;
}

.bio-title:hover {
  animation: glitch 0.4s ease;
}

.bio-title::before,
.bio-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
  right: 1.25rem;
  overflow: hidden;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.bio-title:hover::before {
  animation: glitch-top 0.4s ease;
  color: #6ab0ff;
  opacity: 0.8;
}

.bio-title:hover::after {
  animation: glitch-bottom 0.4s ease;
  color: #a855f7;
  opacity: 0.8;
}

@keyframes glitch {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(2px, -2px);
  }
  60% {
    transform: translate(-1px, -1px);
  }
  80% {
    transform: translate(1px, 1px);
  }
}

@keyframes glitch-top {
  0%,
  100% {
    clip-path: inset(0 0 60% 0);
    transform: translate(0);
    opacity: 0;
  }
  20% {
    clip-path: inset(0 0 60% 0);
    transform: translate(-3px, 0);
    opacity: 0.8;
  }
  40% {
    clip-path: inset(0 0 50% 0);
    transform: translate(3px, 0);
    opacity: 0.8;
  }
  60% {
    clip-path: inset(0 0 70% 0);
    transform: translate(-2px, 0);
    opacity: 0.8;
  }
  80%,
  100% {
    opacity: 0;
  }
}

@keyframes glitch-bottom {
  0%,
  100% {
    clip-path: inset(60% 0 0 0);
    transform: translate(0);
    opacity: 0;
  }
  20% {
    clip-path: inset(60% 0 0 0);
    transform: translate(3px, 0);
    opacity: 0.8;
  }
  40% {
    clip-path: inset(50% 0 0 0);
    transform: translate(-3px, 0);
    opacity: 0.8;
  }
  60% {
    clip-path: inset(70% 0 0 0);
    transform: translate(2px, 0);
    opacity: 0.8;
  }
  80%,
  100% {
    opacity: 0;
  }
}

.bio-text {
  line-height: 1.7;
  color: #b0b0b0;
}

/* Footer */
footer {
  z-index: 1;
}

.connect-title {
  font-size: 1.2rem;
  color: #6ab0ff;
  font-weight: 600;
}

.connect-link {
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.connect-link:hover {
  color: #6ab0ff;
  background: rgba(106, 176, 255, 0.1);
}

/* Dog Sprite */
.dog-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dog-label {
  color: #b0b0b0;
  font-size: 0.85rem;
  margin-top: -0.5rem;
}

.arrow {
  font-size: 2.5rem;
  animation: point 1s ease-in-out infinite;
  color: #6ab0ff;
}

@keyframes point {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(8px);
  }
}

.dog-sprite {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid #6ab0ff;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.3s ease;
  user-select: none;
  background: linear-gradient(135deg, #2a2a3e 0%, #3a3a50 100%);
  opacity: 0;
}

.dog-sprite.loaded {
  opacity: 1;
}

.dog-sprite:hover {
  transform: scale(1.05);
}

.trick-text {
  color: #6ab0ff;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
}

.trick-text.show {
  opacity: 1;
}

/* Page Title */
.page-title {
  color: #fff;
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    rgba(106, 176, 255, 0.2),
    rgba(106, 176, 255, 0.1)
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(106, 176, 255, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 20px rgba(106, 176, 255, 0.15);
  display: inline-block;
  position: relative;
}

.page-title:hover {
  animation: glitch 0.4s ease;
}

.page-title::before,
.page-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0.75rem;
  left: 1.5rem;
  right: 1.5rem;
  overflow: hidden;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.page-title:hover::before {
  animation: glitch-top 0.4s ease;
  color: #6ab0ff;
  opacity: 0.8;
}

.page-title:hover::after {
  animation: glitch-bottom 0.4s ease;
  color: #a855f7;
  opacity: 0.8;
}

.text-muted-light {
  color: #b0b0b0;
}

/* Course Cards */
.course-card {
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6ab0ff, #a855f7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-card:hover::before {
  opacity: 1;
}

.course-date {
  color: #6ab0ff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.course-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.course-name {
  color: #a855f7;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.course-description {
  color: #b0b0b0;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Experience Cards */
.experience-card {
  position: relative;
  border-left: 3px solid #6ab0ff;
}

.experience-title {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.experience-company {
  color: #a855f7;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
}

.experience-date {
  color: #6ab0ff;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(106, 176, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

.experience-list {
  color: #b0b0b0;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.experience-list li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-tag {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
}

/* Active nav link - just underline */
.navbar .nav-link.active {
  color: #fff;
}

.navbar .nav-link.active::before {
  width: 60%;
}

/* Photo Cards */
.photo-card {
  overflow: hidden;
}

.photo-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #2a2a3e 0%, #3a3a50 100%);
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-card:hover .photo-img {
  transform: scale(1.05);
}

.photo-info {
  text-align: center;
}

.photo-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.photo-caption {
  color: #b0b0b0;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Photo Modal */
.modal-content {
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.95),
    rgba(15, 15, 26, 0.98)
  );
  border: 1px solid rgba(106, 176, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid rgba(106, 176, 255, 0.15);
  padding: 1rem 1.5rem;
}

.modal-title {
  color: #fff;
  font-weight: 600;
}

.modal-body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0f0f1a;
}

.modal-photo {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.photo-card {
  cursor: pointer;
}

/* About Page */
.about-card {
  position: relative;
}

.about-heading {
  color: #6ab0ff;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-text {
  color: #b0b0b0;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.about-tag {
  background: rgba(106, 176, 255, 0.15);
  color: #6ab0ff;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
}

.about-list {
  color: #b0b0b0;
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.about-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.about-list li:last-child {
  margin-bottom: 0;
}
