@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:wght@600;700;800;900&display=swap');

/* General Styles */


* {
  box-sizing: border-box;
}

body {
  font-family: 'Lora', serif;
  margin: 0;
  background: #000000;
  color: white;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

p {
  font-size: 1.1rem;
}

/* Animated Mesh Background */
body::before {
  content: '';
  position: fixed;
  top: -35%;
  left: -35%;
  width: 170%;
  height: 170%;
  background:
    radial-gradient(circle at 80% 70%, rgba(11, 143, 231, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(24, 24, 87, 0.45) 0%, transparent 40%),
    radial-gradient(circle at 10% 30%, rgba(11, 143, 231, 0.1) 0%, transparent 0%),
    radial-gradient(circle at 10% 10%, rgba(24, 24, 87, 0.25) 0%, transparent 0%);
  z-index: -1;
  opacity: 0;
  animation:
    backgroundFadeIn 1s ease-out forwards,
    backgroundDrift 15s linear infinite;
}

@keyframes backgroundFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes backgroundDrift {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  12.5% {
    transform: translate(10%, -10%) rotate(45deg) scale(1.25);
  }
  25% {
    transform: translate(20%, 0) rotate(90deg) scale(1.5);
  }
  37.5% {
    transform: translate(10%, 10%) rotate(135deg) scale(1.75);
  }
  50% {
    transform: translate(0, 0) rotate(180deg) scale(2);
  }
  62.5% {
    transform: translate(-10%, -10%) rotate(225deg) scale(1.75);
  }
  75% {
    transform: translate(-20%, 0) rotate(270deg) scale(1.5);
  }
  87.5% {
    transform: translate(-10%, 10%) rotate(315deg) scale(1.25);
  }
  100% {
    transform: translate(0, 0) rotate(360deg) scale(1);
  }
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 100px;
}



.container-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}





h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 75px;
  margin: 15px 0 0 0;
  display: inline-block;
  line-height: 1;
}

.h-content {
  text-align: center;
  padding: 0 40px;
}

.header-text {
  display: inline-block;
  position: relative;
}

.header-contact {
  margin-bottom: 12px;
}

.header-logo {
  width: 35px;
  height: 35px;
  color: #00d2ff;
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.3));
  flex-shrink: 0;
}







header h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 25px;
  margin: 10px 0 15px 0;
  color: #00d2ff;
}


h2 {
  text-align: center;
  font-size: clamp(3rem, 6vw, 3.125rem);
  margin-bottom: 30px;
  color: #00d2ff;
}

.introduction h2 {
  margin-bottom: 0;
}

h3 {
  font-size: clamp(1.5rem, 8vw, 2rem);
  text-align: center;
}

h4 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
}


/* Header Styles */
header {
  color: rgb(255, 255, 255);
  background-image: radial-gradient(circle, rgba(24, 24, 87), rgb(0, 0, 0) 100%);
  padding: 40px 0 5px;
  margin-top: -20px;
  text-align: center;
  position: relative;
}

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-image: radial-gradient(circle, rgba(24, 24, 87), rgb(0, 0, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.nav-bar .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}





a {
  text-decoration: none;
}

/* Removed general orange hover to prioritize custom navigation styles */

/* Hamburger Menu Icon */
#menu-icon {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: 5px auto;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}

#menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: 0.3s;
}

#menu-icon:hover {
  background: none;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

#menu-icon:hover span {
  background-color: #00d2ff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}



nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 100%;
}



nav li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  height: 100%;
}


nav a {
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.1, 0, 0.2, 1);
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
  line-height: 1;
}

nav a:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.2);
  color: #00d2ff;
  transform: translateY(-3px);
  text-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
}

nav a.active {
  background: rgba(0, 210, 255, 0.18);
  border-color: rgba(0, 210, 255, 0.4);
  color: #00d2ff;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.14);
  transform: translateY(-1px);
}




/* Section Styles */
section {
  padding: clamp(40px, 8vw, 80px) 0;
}


/* Project Grid Styles */
/* Project Grid Styles */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(315px, 1fr));
  grid-gap: 30px;
}

.single-app-grid {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.single-app-grid .project {
  width: 100%;
}

.app-previews-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
  margin: 15px 0 18px 0;
}

.app-previews-row .project-preview-box {
  margin: 0;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 35px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
}

.project:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 210, 255, 0.5);
  box-shadow: 0 12px 30px rgba(0, 210, 255, 0.15);
}

.project-preview-box {
  width: clamp(140px, 35vw, 180px);
  height: clamp(140px, 35vw, 180px);
  aspect-ratio: 1 / 1;
  margin: 15px 0 18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(0, 210, 255, 0.04);
  transition: all 0.3s ease;
}

.project:hover .project-preview-box {
  border-color: #00d2ff;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.5);
}

.project-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-preview-box.qr-preview-box {
  background: #000000;
}

.project-preview-box.qr-preview-box img {
  transform: scale(1.08);
}

.project:hover .project-preview-box.qr-preview-box img {
  transform: scale(1.14);
}

.portfolio-svg-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 210, 255, 0.05);
}

.portfolio-svg-wrapper svg {
  width: 50%;
  height: 50%;
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.3));
}

/* Specific Style for Circular Logos (BossKeys) */
.circle-project .project-preview-box {
  border-radius: 50%;
}

.circle-project .project-preview-box img {
  transform: scale(1.04);
}

/* Specific Zoom Effect for Rock Paper Scissors and Survival Game */
.zoomed-project .project-preview-box img {
  transform: scale(1.5);
}

.rps-zoom .project-preview-box img {
  transform: scale(1.3) translateY(-5%);
}

.dakland-project .project-preview-box img {
  object-fit: contain;
  padding: 16px;
}

/* Nutriciency Logo Icon & Card Styling */
.logo-icon {
  background: linear-gradient(135deg, #f97316, #c2410c);
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.nutriciency-preview-box {
  padding: 0;
  overflow: hidden;
  background: #000;
}

.nutriciency-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project:hover .nutriciency-preview-box img {
  transform: scale(1.08);
}

.nutriciency-preview-box .logo-icon {
  width: 100%;
  height: 100%;
  border-radius: 0;
  font-size: clamp(4.5rem, 11vw, 5.8rem);
  line-height: 1;
  box-shadow: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project:hover .nutriciency-preview-box .logo-icon {
  transform: scale(1.1);
}

/* MemoryLink Logo Card Styling */
.memorylink-preview-box {
  background: radial-gradient(circle at center, #edf7ee 0%, #dbedd9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid rgba(35, 92, 43, 0.2);
}

.memorylink-preview-box img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(35, 92, 43, 0.25));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project:hover .memorylink-preview-box img {
  transform: scale(1.15);
}

/* Nutriciency Modal Showcase */
.nutriciency-modal-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  width: 100%;
  height: 100%;
}

.nutriciency-modal-showcase .nutriciency-modal-icon {
  width: 100px;
  height: 100px;
  border-radius: 18px;
  font-size: 3.2rem;
  box-shadow: 0 0 35px rgba(249, 115, 22, 0.55);
  animation: nutriciencyPulse 3s infinite ease-in-out;
}

.nutriciency-modal-showcase .nutriciency-modal-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #f97316;
  letter-spacing: -0.5px;
  text-shadow: 0 0 20px rgba(249, 115, 22, 0.35);
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.nutriciency-modal-showcase .nutriciency-modal-tagline {
  font-size: 1.05rem;
  color: #e2e8f0;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin: 0;
  text-align: center;
}

@keyframes nutriciencyPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.45);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 45px rgba(249, 115, 22, 0.75);
  }
}


.project p.project-description {
  width: 100%;
  margin: 10px 0 15px 0;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  flex-grow: 1;
}

.project-tech-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}

.tech-pill {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 12px;
  color: #00d2ff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.project-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
  width: 100%;
  position: relative;
}

.project-btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1;
  height: 42px;
  padding: 0 20px;
  min-width: 84px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(24, 24, 87, 0.6));
  border: 1px solid #00d2ff;
  color: #ffffff;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 8px;
  margin-top: 0;
  box-sizing: border-box;
}

.project-btn:hover {
  background: #00d2ff;
  color: #000000;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
  transform: translateY(-2px);
}

/* Academic Visit Dropdown */
.academic-visit-dropdown-wrapper {
  position: static;
  display: inline-block;
}

.academic-visit-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.academic-visit-dropdown-wrapper.open .visit-chevron {
  transform: rotate(180deg);
}

.academic-visit-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  width: min(calc(100vw - 32px), 365px);
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 210, 255, 0.45);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 210, 255, 0.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
  pointer-events: none;
}

.academic-visit-dropdown-wrapper.open .academic-visit-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.academic-visit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-align: left;
}

.academic-visit-item:hover {
  background: rgba(0, 210, 255, 0.16);
  border-color: rgba(0, 210, 255, 0.6);
  color: #00d2ff;
  transform: translateX(3px);
}

.avi-logo-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avi-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avi-logo.avi-zoom {
  transform: scale(1.35);
}

.avi-logo.avi-rps-zoom {
  transform: scale(1.3) translateY(-4%);
}

.avi-wdd {
  font-size: 0.70rem;
  font-weight: 700;
  color: #00d2ff;
  background: rgba(0, 210, 255, 0.15);
  padding: 3px 6px;
  border-radius: 6px;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.avi-title {
  flex: 1;
  white-space: nowrap;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: inherit;
}

.academic-visit-item svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease, transform 0.2s ease;
  margin-left: auto;
}

.academic-visit-item:hover svg {
  color: #00d2ff;
  transform: translate(2px, -2px);
}

.annes-logo {
  object-position: center 25%;
}


.project h4 {
  margin-top: 0;
  margin-bottom: 5px;
  width: 100%;
  text-align: center;
}













/* Layered Depth Cards on Mesh Background */
.section-depth {
  padding: 80px 0;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.depth-card {
  background: rgba(22, 22, 26, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 4px solid #00d2ff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 50px;
  border-radius: 4px;
  box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: visible;
  /* Ensure corners aren't clipped */
}

.depth-card h2 {
  margin-top: 0;
  margin-bottom: 5px;
}

.depth-card .introduction h2,
.depth-card #projects h2 {
  margin-bottom: 0;
}

.depth-card::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 40px;
  height: 40px;
  border-top: 3px solid #00d2ff;
  border-right: 3px solid #00d2ff;
  pointer-events: none;
}

.depth-card:hover {
  transform: translate(-5px, -5px);
  box-shadow: 25px 25px 40px rgba(0, 0, 0, 0.7);
  border-color: #00d2ff;
}

.grid-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.reverse-layout .grid-container {
  grid-template-columns: 0.8fr 1.2fr;
}

.reverse-layout .grid-container .about-me {
  grid-column: 2;
}

.reverse-layout .grid-container .profile-wrapper {
  grid-column: 1;
  grid-row: 1;
}

.profile-wrapper {
  position: relative;
  z-index: 1;
}


.profile-wrapper img {
  border: 4px solid #16161a;
  border-radius: 4px;
  width: 100%;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  border: 4px solid white;
}

.profile-wrapper img:hover {
  border-color: #00d2ff;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.5);
}

.intro-grid-custom {
  grid-template-columns: 1.3fr 0.7fr !important;
  gap: 60px;
  align-items: center;
}

#introduction .depth-card {
  border-left: none;
  border-right: 4px solid #00d2ff;
}

#introduction .depth-card::before {
  top: auto;
  bottom: -10px;
  right: auto;
  left: -10px;
  border-top: none;
  border-right: none;
  border-bottom: 3px solid #00d2ff;
  border-left: 3px solid #00d2ff;
}

#missionary .depth-card::before {
  top: auto;
  bottom: -10px;
  right: -10px;
  border-top: none;
  border-bottom: 3px solid #00d2ff;
  border-right: 3px solid #00d2ff;
}

#bosskeys .depth-card,
#certificates .depth-card {
  border-left: none;
  border-right: 4px solid #00d2ff;
}

#bosskeys .depth-card::before,
#certificates .depth-card::before {
  right: auto;
  left: -10px;
  border-right: none;
  border-left: 3px solid #00d2ff;
}

.section-lines {
  position: absolute;
  top: 25px;
  left: 50px;
  /* Align with content padding */
  width: 80px;
  height: 3px;
  background: #00d2ff;
}

#bosskeys .section-lines {
  left: auto;
  right: 50px;
}

.section-lines::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 40px;
  /* Branded asymmetry: top longer than bottom */
  height: 3px;
  background: #00d2ff;
}

/* Corner is visible by default from .depth-card::before */

#projects .depth-card {
  border-left: none;
  border-top: 4px solid #00d2ff;
}


#projects .depth-card::before {
  display: none;
}

.header-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 15px 0 25px 0;
  width: 100%;
}

.intro-overview {
  margin: 0;
  margin-bottom: 20px;
  text-align: right;
  font-style: italic;
  opacity: 0.8;
  font-size: 1.1rem;
  line-height: 1.5;
}

.intro-title-alt {
  text-align: right;
  margin: 0;
}

#missionary .intro-title-alt,
#missionary .intro-overview {
  text-align: center;
}

#projects .depth-card h3 {
  margin-top: 110px;
  margin-bottom: 30px;
  color: #00d2ff;
}

#projects .depth-card h3:first-of-type,
.header-divider + h3 {
  margin-top: 55px;
}

#projects .depth-card h3 + .projects-subtitle {
  margin-top: -24px;
}

.intro-centered-text,
.projects-subtitle {
  text-align: center;
  margin: 0 auto 30px;
  max-width: 800px;
  font-style: italic;
  opacity: 0.8;
  font-size: 1.1rem;
  line-height: 1.5;
}

.video-depth-container {
  position: relative;
  width: 100%;
}

.video-depth-container iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
}

.centered-video {
  max-width: 800px;
  margin: 0 auto;
}

.video-depth-container::after {
  content: 'VIDEO_FEED';
  position: absolute;
  top: -20px;
  left: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: #00d2ff;
  background: #16161a;
  padding: 2px 8px;
  border-radius: 2px;
}



.about-me {
  align-self: start;
}






.about-me p {
  margin-left: 20px;
}

.grid-container img {
  grid-column: 2;
  align-self: start;
  /* Align with top of text */
  justify-self: center;
  margin: 0;
  /* Remove margins to ensure alignment */
  border: 2px solid white;
  display: block;
  max-width: 400px;
  width: 100%;
  border-radius: 20px;
  min-width: 300px;
}




.important_point {
  font-style: italic;
  font-weight: bold;
}















.introduction {
  text-align: center;
}

iframe {
  margin-top: 0;
  border: 2px solid white;
  border-radius: 20px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  transition: all 0.3s ease;
}

iframe:hover {
  border-color: #00d2ff;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.5);
}












* {
  box-sizing: border-box
}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
  border-radius: 20px;
}

@media (min-width: 1051px) {
  .intro-grid-custom .slideshow-wrapper {
    align-self: flex-start;
    margin-top: 15px; /* Adds a clean balance to align visually with the text's top edge */
  }
}

.mySlides img {
  display: block;
  border-radius: 20px;
  border: 2px solid white;
  margin: 0 auto;
  max-width: 100%;
  max-height: 80vh;
  /* Prevent vertical overflow if desired */
  aspect-ratio: 2141 / 1279;
  object-fit: cover;
  transition: all 0.3s ease;
}

.mySlides:hover img {
  border-color: #00d2ff;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.5);
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -24px;
  padding: 18px 20px;
  color: #00d2ff;
  background-color: #000;
  font-weight: bold;
  font-size: 22px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  user-select: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Move them slightly off the very edge for the rounded look */
.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* On hover, add a light blue background and dark arrow */
.prev:hover,
.next:hover {
  background-color: #00d2ff;
  color: #000;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

/* Slide Info Badge (Grouped Number + Caption) */
.slide-stats-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.slide-stats {
  z-index: 10;
  background: rgba(22, 22, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(0, 210, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.numbertext {
  color: #00d2ff;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 15px;
}

.text {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  font-weight: 500;
}


/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.2);
  /* Technical subtle gray */
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background-color: #00d2ff;
  /* Your signature light blue */
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
  transform: scale(1.2);
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: .4
  }

  to {
    opacity: 1
  }
}

















/* Contact Styles */
#contact h2 {
  margin-top: 0;
  margin-bottom: 30px;
}

#contact p {
  margin: 10px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
}


.accomplishment {
  margin: 300px auto 200px;
  text-align: center;
}

.accomplishment p {
  margin: 10px 0;
  /* Reduced margin to bring lines closer */
}

.accomplishment_answer {
  font-weight: bold;
}


/* Footer Styles */
footer {
  background-image: radial-gradient(circle at top, rgba(24, 24, 87), rgb(0, 0, 0) 100%);
  color: #fff;
  text-align: center;
  padding: 0 20px 40px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}


footer section {
  padding-top: 20px;
}


.links-container {
  text-align: center;
  margin-top: 40px;
}

.footerlinks {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 10px;
  text-decoration: none;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}

.footerlinks:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.2);
  color: #00d2ff;
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.footerlinks:active {
  transform: translateY(0);
}

/* Reset button-specific defaults for footerlinks buttons */
button.footerlinks {
  background: transparent;
  border: 1px solid transparent;
  color: #fff;
  font-family: inherit;
  font-weight: 400;
  cursor: pointer;
}

.footerpictures {
  height: 40px;
  /* Increased from 30px */
  width: auto;
  object-fit: contain;
  margin: 0;
}

.youtube-icon {
  transform: scale(2.6) translateY(1px);
  /* Increased from 2.2 to match base height increase */
  /* Increased scale to 2.6 and kept the vertical nudge */
}





/* Isolated Project Section ------------------------------------ */

.isolated-project {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px auto 0;
  width: 100%;
  padding: 0;
  text-align: center;
}

.isolated-project h3 {
  margin-bottom: 5px;
}

.isolated-project p {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 30px;
  opacity: 0.8;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
}

.isolated-project img {
  max-width: 800px;
  width: 100%;
  border-radius: 20px;
  border: 2px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.isolated-project img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 210, 255, 0.3);
  border-color: #00d2ff;
}

/* Graphic Design Grid (Side-by-side on desktop, 1-col on mobile) */
.graphic-design-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 850px) {
  .graphic-design-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.graphic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  margin: 0 auto;
  width: 100%;
}

.graphic-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 15px;
}

@media (min-width: 851px) {
  .graphic-card-header {
    min-height: 120px;
  }
}

.graphic-card-header h4 {
  margin-top: 0;
  margin-bottom: 8px;
}

.graphic-card-header p {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  line-height: 1.45 !important;
}

.graphic-card img {
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  border: 2px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
}

.graphic-card img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 210, 255, 0.3);
  border-color: #00d2ff;
}

.annes-flyer-frame {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.annes-flyer-frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 210, 255, 0.3);
  border-color: #00d2ff;
}

.annes-flyer-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.3s ease;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.annes-flyer-frame:hover img {
  transform: scale(1.08);
}

.bosskeys-logo-wrapper {
  width: clamp(160px, 35vw, 210px);
  height: clamp(160px, 35vw, 210px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(0, 210, 255, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bosskeys-logo-wrapper:hover {
  transform: translateY(-5px);
  border-color: #00d2ff;
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
}

.bosskeys-logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.3s ease;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
}

.bosskeys-logo-wrapper:hover img {
  transform: scale(1.1);
}


/* Memory Game CSS ---------------------------------------------- */


.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: inherit;
  margin: 10px auto 0;
  width: 100%;
  padding: 0;
  text-align: center;
}

.game-container h3 {
  margin-bottom: 5px;
}

.game-container p {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 30px;
  opacity: 0.8;
  font-style: italic;
  font-size: 1.1rem;
}


#go-button {
  background: rgba(0, 210, 255, 0.1);
  color: #00d2ff;
  padding: 12px 35px;
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 50px;
  cursor: pointer;
  margin-bottom: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 1px;
}

#go-button:hover {
  background: #00d2ff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.button-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  padding: 10px;
}

.button {
  width: 90px;
  height: 90px;
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.button:hover {
  transform: translateY(-5px) scale(1.1);
  z-index: 2;
}

.button:active {
  transform: scale(0.95);
}

.red {
  background-color: rgba(255, 82, 82, 0.4);
}

.blue {
  background-color: rgba(0, 210, 255, 0.4);
}

.green {
  background-color: rgba(76, 175, 80, 0.4);
}

.yellow {
  background-color: rgba(255, 235, 59, 0.4);
}

.red:hover {
  background-color: rgba(255, 82, 82, 0.7);
  border-color: #ff5252;
  box-shadow: 0 0 25px rgba(255, 82, 82, 0.6);
}

.blue:hover {
  background-color: rgba(0, 210, 255, 0.7);
  border-color: #00d2ff;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
}

.green:hover {
  background-color: rgba(76, 175, 80, 0.7);
  border-color: #4caf50;
  box-shadow: 0 0 25px rgba(76, 175, 80, 0.6);
}

.yellow:hover {
  background-color: rgba(255, 235, 59, 0.7);
  border-color: #ffeb3b;
  box-shadow: 0 0 25px rgba(255, 235, 59, 0.6);
}

.slider-wrapper {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  width: 100%;
  max-width: 300px;
}

.slider-wrapper label {
  font-weight: 600;
  color: #00d2ff;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
}

#sequence-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 5px;
  outline: none;
}

#sequence-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #00d2ff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
  transition: all 0.2s ease;
}

#sequence-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.8);
}

.game-footnote {
  margin-top: 50px;
  font-style: italic;
  opacity: 0.5;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Flash effects for the sequence playback */
.button.active-flash {
  opacity: 1 !important;
  transform: scale(1.1);
  z-index: 5;
}

.button.red-flash {
  background-color: #ff5252 !important;
  box-shadow: 0 0 40px #ff5252 !important;
  border-color: #ff5252 !important;
}

.button.blue-flash {
  background-color: #00d2ff !important;
  box-shadow: 0 0 40px #00d2ff !important;
  border-color: #00d2ff !important;
}

.button.green-flash {
  background-color: #4caf50 !important;
  box-shadow: 0 0 40px #4caf50 !important;
  border-color: #4caf50 !important;
}

.button.yellow-flash {
  background-color: #ffeb3b !important;
  box-shadow: 0 0 40px #ffeb3b !important;
  border-color: #ffeb3b !important;
}

/* Game Result Modal */
.game-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: gameModalFadeIn 0.3s ease-out;
}

@keyframes gameModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.game-message-content {
  background: rgba(22, 22, 26, 0.98);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.game-message-content h4 {
  color: #00d2ff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.game-message-content p {
  font-size: 1.1rem;
  margin-bottom: 30px !important;
  opacity: 0.9;
  line-height: 1.5;
}

.message-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

#game-message-close,
#game-message-exit {
  background: transparent;
  color: #00d2ff;
  border: 1px solid #00d2ff;
  padding: 12px 20px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 130px;
}

#game-message-close:hover,
#game-message-exit:hover {
  background: #00d2ff;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

#game-message-exit {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

#game-message-exit:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

#userProfilePicture {
  width: 40px;
  margin: 0 auto;
  padding: 0 15px;
  color: #fff;
}

form {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label {
  display: block;
  margin-bottom: 8px;
  color: #333;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  box-sizing: border-box;
}

button {
  background-color: #ff8c00;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #ffa500;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.google-button {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  border-radius: 50px !important;
  padding: 8px 20px !important;
  font-size: 0.9rem !important;
  margin: 5px !important;
}

.google-button:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1) !important;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin-bottom: 10px;
}

.delete-project-btn,
.edit-project-btn {
  padding: 5px 5px;
}



/* It would be better to do a min-width and redo the css for mobile friendly loading first */
/* Responsive Adjustments --------------------------------------- */

@media (max-width: 1050px) {
  .depth-card {
    padding-top: 50px !important;
  }

  .intro-grid-custom {
    grid-template-columns: 1fr !important;
    gap: 0;
    display: grid;
    align-items: flex-start;
  }

  .intro-overview {
    grid-row: 2;
    text-align: center;
    margin: -40px auto 0px;
  }

  .intro-title-alt {
    grid-row: 1;
    text-align: center;
    margin-bottom: 0;
  }

  .video-depth-container {
    grid-row: 3;
  }

  #missionary .about-me {
    display: contents;
  }

  .slideshow-wrapper {
    grid-row: 3;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 50px;
    /* Match depth-card padding for consistent spacing */
  }

  #about .grid-container {
    gap: 10px;
    /* Bring heading and photo even closer on mobile */
  }

  #about .about-me {
    display: contents;
  }

  #about .about-me h2 {
    grid-row: 1;
    text-align: center;
    margin-top: 0;
  }

  .about-description {
    grid-row: 3;
  }

  .profile-wrapper {
    grid-column: 1;
    grid-row: 2;
    /* Move wrapper to middle */
    max-width: 300px;
    justify-self: center;
    /* Center the wrapper so the ::before corner hugs the image */
  }

  .grid-container img {
    margin: 0;
    display: block;
    width: 100%;
    /* Image fills the wrapper */
  }

  .section-lines {
    top: 15px;
  }

  #missionary h2 {
    margin-bottom: 0;
  }

  .depth-card h2 {
    margin-bottom: 15px;
  }
}

@media (max-width: 850px) {
  h1 {
    display: block;
  }
}

@media (max-width: 750px) {
  .container {
    padding: 0 20px;
  }

  .container-header {
    padding: 0 20px;
  }

  h1 {
    font-size: clamp(3.5rem, 12vw, 4.6875rem);
    /* Scales from 75px down to ~56px at 480px */
  }

  header h3 {
    font-size: clamp(1.17rem, 4vw, 1.56rem);
    /* Scales from 25px down to ~19px */
  }

  #menu-icon {
    display: flex;
  }

  nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    width: 100%;
    background: transparent;
    margin: 0;
    padding: 0;
  }

  nav.active {
    max-height: 500px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    margin: 0;
    width: 100%;
    gap: 15px;
  }

  .nav-bar .container {
    width: 100%;
    padding: 0 20px;
    margin: 0;
  }

  .accomplishment {
    margin: 150px auto 100px;
  }

  .footerlinks {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .footerpictures {
    width: 40px;
  }
}

@media (max-width: 650px) {
  .h-content {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .depth-card {
    padding: 30px;
  }

  .project {
    padding: 24px 16px;
  }

  .project-grid {
    grid-gap: 20px;
  }

  body::before {
    width: 300%;
    height: 200%;
    background: radial-gradient(circle at 80% 70%, rgba(11, 143, 231, 0.20) 0%, transparent 40%),
    radial-gradient(circle at 10% 10%, rgba(24, 24, 87, 0.8) 0%, transparent 40%),
    radial-gradient(circle at 60% 50%, rgba(24, 24, 87, 0.45) 0%, transparent 40%);
    animation: 
    backgroundFadeIn 1s ease-out forwards,
    backgroundDrift 10s linear infinite;
  }

  .links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
  }

  .footerlinks {
    margin: 0;
    width: 200px;
    /* Uniform width for a cleaner stacked look */
    justify-content: center;
  }

  .profile-wrapper {
    width: clamp(180px, 45vw, 300px);
    margin: 0 auto;
    transition: transform 0.3s ease;
  }

  .grid-container img {
    min-width: 0 !important;
    /* Override global 300px min-width */
    width: 100%;
    margin: 0px auto;
    padding: 0px auto;
  }

  .profile-wrapper:hover {
    transform: scale(1.02);
  }

  .mySlides img {
    aspect-ratio: 4 / 3;
    object-position: center; /* Optionally reset positions on tight mobile crop if needed, but leaving optional */
  }

  .slide-stats {
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

}


.business-description,
.project-description {
  text-align: center;
  margin: 0 auto 30px;
  max-width: 800px;
  font-style: italic;
  opacity: 0.8;
  font-size: 1.1rem;
  line-height: 1.5;
}

.business-stats {
  text-align: left;
  margin-bottom: 30px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: #00d2ff;
}

.stat-item.revenue {
  color: #ffd700;
}

.stat-item strong {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-right: 5px;
}

.flyer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.embroidery-flyer-container {
  padding: 0 15%;
}

.flyer {
  max-width: 100%;
  border: 2px solid white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.flyer:hover {
  transform: scale(1.02);
  border-color: #00d2ff;
  box-shadow: 0 15px 35px rgba(0, 210, 255, 0.3);
}

.flyer-zoom-wrapper {
  overflow: hidden;
  border-radius: 15px;
  border: 2px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  max-width: 100%;
  display: flex;
}

.flyer-zoom-wrapper .flyer {
  transform: scale(1.02);
  border: none;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}

.flyer-zoom-wrapper:hover {
  transform: scale(1.02);
  border-color: #00d2ff;
  box-shadow: 0 15px 35px rgba(0, 210, 255, 0.3);
}


.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.brand-grid.centered {
  grid-template-columns: 1fr;
  justify-items: center;
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.brand-item h4 {
  margin: 0;
  color: #00d2ff;
}

.brand-link-circle {
  display: block;
  width: clamp(150px, 25vw, 250px);
  height: clamp(150px, 25vw, 250px);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.contact-social .brand-link-circle {
  width: clamp(75px, 12vw, 125px);
  height: clamp(75px, 12vw, 125px);
}

.contact-social .youtube-link {
  width: clamp(75px, 12vw, 125px);
  height: clamp(75px, 12vw, 125px);
  background: rgba(255, 255, 255, 0.1);
}

.youtube-logo-large {
  transform: scale(1.45) translateY(3px) !important;
}

.contact-copy-btn .contact-copy-icon {
  width: 22px !important;
  height: 22px !important;
}

.brand-link-circle:hover {
  border-color: #00d2ff;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.7);
  transform: translateY(-5px);
}

.brand-link-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.3s ease;
}

/* Layered Logo Effect */
.layered-logo {
  position: relative;
  background: black;
}

.bg-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 1;
}

.fg-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 2;
}

.brand-link-circle.layered-logo:hover .bg-logo {
  /* Matching standard zoom */
  transform: scale(1.04);
}



@media (max-width: 600px) {
  .brand-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.contact-copy-btn {
  padding: 10px 12px;
  border: 1.25px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  min-width: 44px;
  min-height: 44px;
}

.copy-btn:hover {
  background: white;
  border-color: #00d2ff;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.copy-btn:hover svg {
  stroke: black;
}

.copy-btn svg {
  width: 16px;
  height: 16px;
  stroke: white;
  transition: stroke 0.2s ease;
}

.copy-btn.copied {
  background: #00d2ff;
  border-color: #00d2ff;
}

.copy-btn.copied svg {
  stroke: black;
}

.copy-btn::after {
  content: 'Copied!';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.copy-btn.copied::after {
  opacity: 1;
  visibility: visible;
  top: -35px;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  transition: all 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox-content {
  max-width: 92%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.4), 0 20px 50px rgba(0, 0, 0, 0.9);
  cursor: default;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3010;
}

.lightbox-close:hover {
  background: #00d2ff;
  color: #000000;
  border-color: #00d2ff;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.7);
  transform: rotate(90deg);
}

/* Project Case Study Modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: -1;
  cursor: pointer;
}

.project-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  overflow-y: auto;
  background: radial-gradient(circle at 50% 0%, rgba(24, 24, 87, 0.98), rgba(8, 8, 14, 0.98) 75%);
  border: 1px solid rgba(0, 210, 255, 0.35);
  box-shadow: 0 0 45px rgba(0, 210, 255, 0.25), 0 25px 60px rgba(0, 0, 0, 0.85);
  border-radius: 20px;
  padding: 35px 35px 32px;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  scrollbar-width: thin;
  scrollbar-color: #00d2ff rgba(255, 255, 255, 0.05);
}

.project-modal.active .project-modal-dialog {
  transform: scale(1) translateY(0);
}

.project-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 32px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.project-modal-close:hover {
  background: #00d2ff;
  color: #000000;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.7);
  transform: rotate(90deg);
}

.project-modal-header {
  margin-bottom: 22px;
}

/* Modal Academic Tabs Switcher */
.pm-academic-tabs-wrapper {
  display: flex;
  margin-bottom: 14px;
}

.pm-academic-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 6px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pm-academic-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-family: inherit;
}

.pm-academic-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.pm-academic-tab.active {
  color: #000000;
  background: #00d2ff;
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.55);
  font-weight: 700;
}

.pm-header-top {
  display: flex;
  flex-direction: column;
  padding-right: 50px;
}

.pm-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 6px 0;
  color: #ffffff;
  text-align: left;
  line-height: 1.2;
}

.pm-badge-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #00d2ff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 10px;
}

.pm-header-desc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 8px;
}

.pm-subtitle {
  flex: 1;
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
  text-align: left;
  line-height: 1.55;
}

.pm-header-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.project-modal-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Full Width Media Row & Carousel */
.pm-media-row {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.pm-carousel-container {
  position: relative;
  width: 100%;
  height: clamp(300px, 46vh, 460px);
  background: radial-gradient(circle at center, rgba(15, 20, 38, 0.92), rgba(5, 8, 16, 0.98));
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 210, 255, 0.25);
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.85), 0 8px 30px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.pm-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
}

.pm-slide.active {
  opacity: 1;
}

.pm-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform 0.25s ease, filter 0.25s ease;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.pm-slide img:hover {
  filter: drop-shadow(0 0 14px rgba(0, 210, 255, 0.5));
}

.pm-slide img[src*="memory-link.svg"] {
  background: radial-gradient(circle at center, #edf7ee 0%, #dbedd9 100%);
  padding: 35px;
  max-width: 260px;
  max-height: 260px;
  border: 2px solid rgba(35, 92, 43, 0.3);
}

.pm-carousel-arrow {
  position: absolute;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(10, 15, 25, 0.75);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(0, 210, 255, 0.45);
  color: #00d2ff;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.pm-carousel-arrow:hover {
  top: 50% !important;
  transform: translateY(-50%) scale(1.08) !important;
  background: #00d2ff;
  color: #000000;
  border-color: #00d2ff;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.85);
}

.pm-carousel-arrow:active {
  transform: translateY(-50%) scale(0.96) !important;
}

.pm-carousel-arrow svg {
  width: 30px !important;
  height: 30px !important;
  display: block;
  stroke: currentColor;
  pointer-events: none;
}

.pm-prev {
  left: 16px;
}

.pm-next {
  right: 16px;
}

.pm-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.pm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}

.pm-dot.active {
  background: #00d2ff;
  width: 22px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.8);
}

.pm-slide-caption {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
  min-height: 22px;
}

/* Details Section Beneath Media */
.pm-details-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.pm-details-col-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pm-details-col-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pm-section {
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(0, 210, 255, 0.15);
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pm-section:hover {
  border-color: rgba(0, 210, 255, 0.32);
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.06);
}

.pm-section-heading {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #00d2ff;
  margin: 0 0 10px 0;
  text-align: left;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.pm-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-align: left;
  line-height: 1.55;
}

.pm-highlights-list {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
  list-style-position: outside;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.65;
}

.pm-highlights-list li {
  margin-bottom: 9px;
  padding-left: 4px;
}

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

.pm-highlights-list li::marker {
  color: #00d2ff;
  font-size: 1.1em;
}

.pm-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pm-tech-badge {
  font-size: 0.8rem;
  padding: 5px 12px;
  background: rgba(0, 210, 255, 0.07);
  border: 1px solid rgba(0, 210, 255, 0.28);
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.pm-tech-badge:hover {
  background: rgba(0, 210, 255, 0.16);
  border-color: #00d2ff;
  color: #00d2ff;
}

.pm-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 24px;
  background: #00d2ff;
  color: #000000;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(0, 210, 255, 0.4);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.pm-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 210, 255, 0.85);
  background: #38e1ff;
  color: #000000;
}

@media (max-width: 768px) {
  .pm-details-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .project-modal-dialog {
    padding: 26px 20px 22px;
  }
  .pm-carousel-container {
    height: clamp(240px, 38vh, 340px);
  }
  .pm-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 620px) {
  .pm-header-desc-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .pm-header-action {
    width: 100%;
  }
  .pm-primary-btn {
    width: 100%;
    justify-content: center;
  }
  .pm-header-top {
    padding-right: 40px;
  }
}

/* Make only zoomable/flyer images clickable for full lightbox */
.zoomable-img,
.flyer,
.isolated-project img,
.qr-preview-box,
.qr-preview-box img {
  cursor: zoom-in;
}

/* Small Device Overrides - Placed at end to ensure specificity wins */
@media (max-width: 480px) {

  p,
  .project-description,
  .business-description,
  .intro-overview,
  .intro-centered-text,
  .projects-subtitle,
  .isolated-project p,
  .game-container p,
  .game-message-content p,
  .stat-item {
    font-size: 1.0rem;
  }

  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 20px;
  }

  h1 {
    font-size: clamp(2.2rem, 15vw, 3.5rem);
  }

  h2 {
    font-size: clamp(1.8rem, 12vw, 3rem);
  }

  h3 {
    font-size: clamp(1.2rem, 8vw, 2rem);
  }

  h4 {
    font-size: clamp(1rem, 6vw, 1.3rem);
  }

  header nav a {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .button-container {
    gap: 10px;
  }

  .button {
    width: 80px;
    height: 80px;
  }

  #go-button {
    padding: 10px 20px;
    font-size: 18px;
  }
}

/* Research Section Header & Metadata Pill */
.research-subtitle {
  text-align: center;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.research-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: #00d2ff;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 12px;
  padding: 2px 9px;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Resume Page Styles */
.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.resume-header h2 {
  white-space: nowrap;
}

.resume-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: nowrap;
}

.resume-actions .footerlinks {
  white-space: nowrap;
}

.resume-box {
  background: rgba(255, 255, 255, 0.05);
  /* The "inner gray" */
  border: none;
  border-radius: 15px;
  padding: 0;
  /* Removed padding so content fills the container */
  width: 100%;
  max-width: 850px;
  /* Limits size on desktop for better readability */
  margin: 0 auto;
  aspect-ratio: 1 / 1.27;
  /* Further tightened to eliminate internal browser margins */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  transition: all 0.3s ease;
  overflow: hidden;
  /* Ensures content respects container corners */
}

/* Clean Mode Adjustments */
.resume-box.clean-mode {
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.resume-zoom-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 15px;
  /* Match container */
  display: flex;
  justify-content: center;
  align-items: center;
}

.resume-photo-clean {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Changed to cover to truly fill the entire area */
  transform: scale(1.02);
  /* Slight zoom to eliminate potential edge slivers */
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: zoom-in;
}

.resume-zoom-wrapper:hover .resume-photo-clean {
  filter: brightness(1.04);
}

.resume-box iframe {
  border-radius: 15px;
  /* Match container */
  width: 100%;
  height: 100%;
}

@media (max-width: 1050px) {
  .resume-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    margin-bottom: 12px;
  }
}