/* Base Styles */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* header{
  background: linear-gradient(
  to right, 
  rgb(15, 98, 254),
  rgb(8, 189, 186), 
  rgb(165, 110, 255), 
  rgb(238, 83, 150)
  );
  height: 0px;
  padding-top: env(safe-area-inset-top);
  position: sticky;
  top: 0;
  z-index: 99999;
} */

body {
  font-family: 'Albert Sans', sans-serif;
  background-color: #000000;
  color: #ffffff;
  overflow-x: hidden;
}

/* Nav bar */
.floating-navbar {
  position: relative;
  z-index: 2; 
  display: flex;
  gap: 0.5rem;
  padding-left: 8px;
  padding-right: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 999px;
  background-color: rgba(38, 38, 38, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); */
  width: 100%;
}

/* Base Button Style */
.floating-navbar a {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.5rem;
  border-radius: 999px;
  transition: all 0.3s ease;
  color: #ffffff;
  text-decoration: none;
  will-change: background-color, backdrop-filter;
  outline: none;           
  box-shadow: none;        
  background-color: transparent;
  transition: color 0.05s ease;
}

.floating-navbar a:focus,
.floating-navbar a:focus-visible {
  background-color: transparent; 
  outline: none;
  box-shadow: none;
}

/* Subtle hover
.floating-navbar a:hover {
  background-color: rgba(22, 22, 22, 0.1);
} */

/* Active Pill Style */
.floating-navbar a.active {
  background-color: rgba(0, 0, 0, 1);  
  /* background: linear-gradient(to right, rgb(51, 177, 255), rgb(15, 98, 254)); */
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 500;
}

/* Hello Section */
/* .hello {
  background-color: #f2f4f8;
  text-align: center;
} */

.hello-border-wrapper {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  /* left: 0;
  right: 0; */
  margin: 0 auto;
  z-index: 99999;
  padding: 4px; /* glow edge */
  border-radius: 999px;
  width: 90vw;
  max-width: 500px;
  min-width: 320px;
}

.hello-cell {
  background-image: url(../images/luke-hales-OHhW1k0PXHg-unsplash.jpeg);
  background-size: cover;
  background-position: center;
  background-color: #000000;
  color: #ffffff;
  position: relative;
  text-align: center;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); */
  /* border-radius: 36px; */
  /* height: 560px; */
  /* height: 100vh; */
  width: 100%;
  overflow: hidden;
  z-index: 2;
  margin: 0;
  /* Viewport fix */
  min-height: 100vh; 
  padding-top: env(safe-area-inset-top); 
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(100dvh + env(safe-area-inset-top) + env(safe-area-inset-bottom)); 
}

.hello-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}

.hello-overlay {
  /* background-color: rgba(15, 98, 254, 0.1); */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 1) 100%);
  /* padding: 16px 16px; */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 20;
}

/* .hello-overlay p{
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
} */

.hello-emoji{
  /* font-size: 56px; */
  width: 88px;
  height: 88px;
  /* filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)); */
}

.hero-stats {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.stat-card {
  display: inline-block;
  padding: 5px;
  border-radius: 48px;
  width: 640px;
  background-color: rgba(38, 38, 38, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* background: linear-gradient(to bottom, rgb(255, 255, 255) 0%, rgb(208, 226, 255) 100%); */
  /* box-shadow: 0 0px 12px rgba(255, 255, 255, 0.5);  */
  box-shadow: 0 0px 12px rgb(255, 157, 82, 0.5);
  /* animation: glow 6s ease-in-out infinite; */
}

.stat-card.visible{
  animation: opacity 4.64s ease forwards;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(15, 98, 254, 0.5);
  }
  /* 25% {
    box-shadow: 0 0 12px rgba(8, 189, 186, 0.7);
  }
  50% {
    box-shadow: 0 0 12px rgba(165, 110, 255, 0.7);
  }
  75% {
    box-shadow: 0 0 12px rgba(238, 83, 150, 0.7);
  } */
  50% {
    box-shadow: 0 0 12px rgba(51, 177, 255, 0.8);
  }
}

@keyframes opacity{
  0%{
    background-color: rgba(38, 38, 38, 1);
    box-shadow: 0 0px 12px rgb(255, 157, 82, 0);
  }
  80%{
    background-color: rgba(38, 38, 38, 1);
    box-shadow: 0 0px 12px rgb(255, 157, 82, 1);
  }
  100%{
    background-color: rgba(38, 38, 38, 0.4);
    box-shadow: 0 0px 12px rgb(255, 157, 82, 0.5);
  }
}

/* .stat-card p {
  margin: 0;
  font-size: 16px;
  color: #ffffff;
  text-shadow: none;
} */

#hello {
  position: relative;
  background:#161616;
  padding-top: 0px;
  padding-bottom: 0px;
  /* box-shadow: 0 0px 32px rgba(180, 40, 255, 0.7); */
  /* box-shadow: 0 4px 16px rgba(15, 98, 254, 0.3); */
  /* border-radius: 36px; */
  z-index: 1; /* lower than chat overlay */
}

/* Glowing border animation */
@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* .border-animator-nav {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  z-index: 1;
  opacity: 0;
  
  --angle: 0deg;
  background: conic-gradient(
    from var(--angle),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    #32CC66,
    #FFC345,
    #FF45A8,
    #4589FF,
    rgba(0, 0, 0, 0)
  );

  animation: rotate-gradient 4s linear forwards;
  animation-delay: 1s;
} */

@keyframes rotate-gradient {
  0% {
    --angle: 0deg;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    --angle: 360deg;
    opacity: 0;
  }
}

.contact-cell {
  background-image: url(../images/milad-fakurian-3jKKdDZQjWs-unsplash.jpg); 
  background-size: cover;
  background-position: center;
  color: #ffffff;
  position: relative;
  text-align: center;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); */
  border-radius: 8px;
  height: 400px;
  overflow: hidden;
}

.contact-overlay {
  background-color: rgba(0, 0, 0, 0.1);
  /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 1) 100%); */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 40px;
  z-index: 20;
  /* border-radius: 36px; */
}

/* General Section Styling */
.section {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* h1 {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
} */

h2.ai-welcome{
  font-weight: 300;
  text-align: center;
  color: #0f62fe;
  /* background: linear-gradient(to bottom, #0f62fe, #33b1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; */
}

#chat{
  scroll-margin-top: 240px;
}

#profile{
  scroll-margin-top: 0px;
  padding-top: 80px;
}

#projects{
  scroll-margin-top: 60px;
}

#companies h1{
  font-weight: 300;
}

#companies p{
  font-weight: 300;
  font-size: 20px;
}

#contact{
  scroll-margin-top: 60px;
}

p.tag{
  display:inline-block;
  align-self:first baseline;
  border: 2px solid #ffffff;
  padding: 2px;
  font-size: 12px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); */
}

.section-label{
  font-size: 32px;
}

.mission-title h1{
  font-size: 48px;
  font-weight: 300;
  color: #ffffff;
}

.mission-statement h3{
  font-size: 32px;
  font-weight: 300;
}

.mobile-br{
  display: none;
}

/* Buttons */
.btn:active,
.btn.active,
.btn.show {
  color: inherit !important;
  background-color: inherit !important;
  border-color: inherit !important;
  box-shadow: none !important;
}

.btn-primary {
  background-color: #000000;
  /* border-color: #0f62fe; */
  border-color: transparent;
  border-radius: 999px;
}

.btn-primary:hover{
  background-color: #262626;
  border-color: transparent;
}

.btn-secondary{
  background-color: transparent;
  border-color: #ffffff;
  border-radius: 999px;
  border-width: 1.5px;
  color: #ffffff;
}

.btn-secondary:hover,
.btn-secondary.btn-coming-soon {
  background-color: #ffffff;
  border-color: transparent;
  color: #000000;
}

.link{
text-decoration: none;
color: #ffffff;
}

.link:hover{
  text-decoration: underline;
}

.link-white{
  color: #ffffff;
}

.disclaimer {
  font-size: 12px;
  text-align: center;
  color: #161616;
  margin-top: 8px;
  margin-bottom: 40px;
  opacity: 0.8;
  /* font-weight: lighter; */
}

/* Project Cards */
.project-card {
  background: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  min-height: 300px;
}

.project-card-empty {
  background: #161616;
  border-radius: 8px;
  min-height: 300px;
}

/* Project Cards with Background Image */
/* Card 4 */
.project-card.bg-image1 {
  position: relative;
  background-size: cover;
  background-position: center;
  background-image: url(../images/milad-fakurian-Ln-NOJdhpZA-unsplash.jpeg);
  color: white;
  overflow: hidden;
  display: flex;
  align-items: end; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Card 5 */
.project-card.bg-image2 {
  position: relative;
  background-size: cover;
  background-position: center;
  background-image: url(../images/codioful-formerly-gradienta-H5eYSjFGw5M-unsplash.jpeg);
  color: white;
  overflow: hidden;
  display: flex;
  align-items: end; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Card 2 */
.project-card.bg-image3 {
  position: relative;
  background-size: cover;
  background-position: center;
  background-image: url(../images/codioful-formerly-gradienta-0puD7g0Aa1U-unsplash.jpeg);
  color: white;
  overflow: hidden;
  display: flex;
  align-items: end; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Card 3 */
.project-card.bg-image4 {
  position: relative;
  background-size: cover;
  background-position: center;
  background-image: url(../images/muhammad-ridwan-imam-fajar-meqxXc9zPGI-unsplash.jpeg);
  color: white;
  overflow: hidden;
  display: flex;
  align-items: end; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Card 1 */
.project-card.bg-image5 {
  position: relative;
  background-size: cover;
  background-position: center;
  background-image: url(../images/codioful-formerly-gradienta-5GClY37K3rU-unsplash.jpeg);
  color: white;
  overflow: hidden;
  display: flex;
  align-items: end; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Card 6 */
.project-card.bg-image6 {
  position: relative;
  background-size: cover;
  background-position: center;
  background-image: url(../images/codioful-formerly-gradienta-5GClY37K3rU-unsplash2.jpeg);
  color: white;
  overflow: hidden;
  display: flex;
  align-items: end; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Dark overlay */
.project-card.bg-image1::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 45, 156, 0.1);
  z-index: 1;
}

.project-card.bg-image2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 45, 156, 0.1);
  z-index: 1;
}

.project-card.bg-image3::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 45, 156, 0.1);
  z-index: 1;
}

.project-card.bg-image4::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 45, 156, 0.1);
  z-index: 1;
}

.project-card.bg-image5::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 45, 156, 0.1);
  z-index: 1;
}

.project-card.bg-image6::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 45, 156, 0.1);
  z-index: 1;
}

/* XP Cards */
.xp1-card,
.xp2-card,
.xp3-card {
  position: relative;
  border: none;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); */
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  min-height: 300px;
  overflow: hidden;
  background: #161616; /* base color */
  -webkit-mask-image: -webkit-radial-gradient(white, black); /*Overflow fix for Safari in macOS 26.4*/
}

/* Fix for shadow disappearing after webkit fix
.xp-card-shadow{ 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border-radius: 36px;
} */

/* keep content above gradient */
.xp1-card > *,
.xp2-card > *,
.xp3-card > * {
  position: relative;
  z-index: 1;
}

.skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  background: #383838;
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
}



#profile .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch; /* equal column heights */
}

#profile .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Card content */
.project-card .card-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

/* .project-card p, .project-card h5{
 text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
} */

/* XP Card content */
.xp1-card .card-content,
.xp2-card .card-content,
.xp3-card .card-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  color: #ffffff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-footer {
  margin-top: auto;
}

.logo-img {
  max-width: 150px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.logo-img-s {
  max-width: 125px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Hover effects */
/* .hello-cell:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease;
  will-change: transform, box-shadow;
  box-shadow: 0 0 8px rgba(15, 98, 245, 0.6), 
              0 0 16px rgba(15, 98, 245, 0.6), 
              0 0 32px rgba(15, 98, 245, 0.6);
} */

.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
} */

.project-card.bg-image1:hover{
  transform: scale(1.03);
  /* box-shadow: 0 0 16px rgba(255, 255, 255, 0.9); */
}

.project-card.bg-image2:hover{
  transform: scale(1.03);
  /* box-shadow: 0 0 16px rgba(255, 255, 255, 0.9); */
}

.project-card.bg-image3:hover{
  transform: scale(1.03);
  /* box-shadow: 0 0 16px rgba(255, 255, 255, 0.9); */
}

.project-card.bg-image4:hover{
  transform: scale(1.03);
  /* box-shadow: 0 0 16px rgba(255, 255, 255, 0.9); */
}

.project-card.bg-image5:hover{
  transform: scale(1.03);
  /* box-shadow: 0 0 16px rgba(255, 255, 255, 0.9); */
}

.project-card.bg-image6:hover{
  transform: scale(1.03);
  /* box-shadow: 0 0 16px rgba(255, 255, 255, 0.9); */
}

/* --- AI Chat --- */

/* Chat bubble */
/* Input bar wrapper: anchor point for bubble */
.hello-chat-border-wrapper {
  position: relative; /* important: overlay is absolute relative to this */
  z-index: 0;
  padding: 4px;
  border-radius: 999px;
  margin: 0 auto;
  width: 100%;
  max-width: 640px;
}

/* .hello-chat-border-wrapper:focus-within {
  box-shadow: 0 0 0 2px #0f62fe;
} */

/* Container anchored just above input bar */
#chat-overlay-container {
  position: absolute;
  bottom: 100%;        
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  pointer-events: none; 
  z-index: 1000;         
  width: 100%;
  max-width: 640px;  
}

/* Floating bubble */
.chat-overlay {
  background: linear-gradient(to bottom, rgb(38, 38, 38) 0%, rgb(57, 57, 57) 100%);
  /* background: rgb(237, 245, 255, .8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); */
  color: #ffffff;       
  padding: 16px 16px;
  border-radius: 32px;
  pointer-events: auto;      
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  opacity: 0;
  transform: translateY(12px); 
  transition: all 0.35s ease;
  font-size: 0.95rem;
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  box-shadow: 0 2px 12px rgb(255, 157, 82, 0.8);
  font-size: small;
  font-weight: 400;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Show bubble (floating up) */
.chat-overlay.show {
  opacity: 1;
  transform: translateY(0);  
}

.chat-overlay.hide {  
  opacity: 0;
  transform: translateY(12px);
}

@keyframes fadeUpNew {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-text.fade-in {
  animation: fadeUpNew 0.35s ease;
}

/* Close button inside bubble */
.chat-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 300;
  margin-left: 12px;
  padding: 0px 0px 0px 8px;
  cursor: pointer;
}

/* Typing dots */
.typing {
  display: inline-flex;
  align-items: center;
}

.typing .dot {
  width: 8px;
  height: 8px;
  margin: 0 3px;
  background-color: #ffffff;
  border-radius: 50%;
  opacity: 0.3;
  animation: blink 1.4s infinite;
}

.typing .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

/*  Chat Input Bar  */
.floating-chatbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px;
  border-radius: 999px;
  background-color: rgba(38, 38, 38, 1);
  /* backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); */
  width: 100%;
  z-index: 1;
}

.floating-chatbar:focus-within {
  box-shadow: 0 0 0 1px #ffffff;
}

#user-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 300;
  padding: 0.6rem 0.5rem;
  color: #ffffff;
}

/* #user-input::placeholder {
  color: #a2a9b0;
} */

.placeholder {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  padding: 4px;
  opacity: 1;
  background: transparent;
  color: #a8a8a8;
  font-size: 1rem;
  font-weight: 300;
  transition: opacity 400ms ease;
}

.placeholder.hidden {
  opacity: 0;
}

#send-btn {
  border: none;
  background: #ffffff;
  color: #000000;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* #send-btn:hover {
  background-color: #525252;
} */

.border-animator-chat {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  z-index: 0;
  opacity: 0;
  
  --angle: 0deg;
  background: conic-gradient(
    from var(--angle),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    #0a2540,
    #1f6fd6,
    #ff9d52,
    #ffd9a8,
    #ffffff,
    #bfe3ff,
    #2a5fc2,
    rgba(0, 0, 0, 0)
    );

  /* animation: rotate-gradient 6s linear forwards;
  animation-delay: 1.5s; */
}

.border-animator-chat.visible {
  animation: rotate-gradient 3.5s linear forwards;
  animation-delay: 0.5s;
}

/* Footer */
footer {
  background-color: #000000;
  color: #ffffff;
  font-size: 0.9rem;
}

/* Responsive CSS */

@media (width <= 576px) {

  .floating-navbar {
    padding: 4px 4px; /* reduced navbar padding on mobile */
    gap: 0.05rem;
  }

  .floating-navbar a {
    font-size: 0.8rem; /* reduced font size on mobile */
  }

  .hello-border-wrapper {
    padding: 3px; 
    width: 95vw;  
    max-width: none; 
    min-width: unset; 
  }

  /* .hello-cell{
    border-top-left-radius: 36px;
    border-top-right-radius: 36px;
  } */

  .hello-overlay {
    padding: 12px 12px;
  }

  .mobile-p{
  font-size: 12px;
  }
  
  .stat-card {
    padding: 4px;
    width: 94vw;
  }

  .hero-stats {
    bottom: 120px;
  }

  #chat{
  scroll-margin-top: 240px;
  }

  h2.ai-welcome{
  font-weight: 400;
  }

  .mission-title h1{
  font-size: 40px;
  text-align: center;
  }

  .mission-statement h3{
  font-size: 22px;
  text-align: center;
  }

  .project-card,
  .project-card.bg-image1,
  .project-card.bg-image2,
  .project-card.bg-image3,
  .project-card.bg-image4,
  .project-card.bg-image5,
  .project-card.bg-image6,
  .xp1-card,
  .xp2-card,
  .xp3-card {
    height: 100%;
    min-height: 240px;
  }

  .xp1-card h1,
  .xp2-card h1,
  .xp3-card h1{
    font-size: 40px;
  }

  .hello-chat-border-wrapper {
    position: relative;
    padding: 3px; 
    /* width: inherit;   */
    max-width: none;
    min-width: unset; 
  }

  #user-input {
    font-size: 16px;
    padding: 0.35rem 0.4rem;
  }

  .placeholder {
    font-size: 16px;
    padding: 0px;
  }

  #send-btn {
    padding: 0.2rem 0.45rem;
  }

  .typing .dot {
  width: 8px;
  height: 8px;
  margin: 0 3px;
  }

  .floating-chatbar {
    gap: 0.05rem;
    padding: 4px 4px;
  }

  #chat-overlay-container {
    max-width: 100%; 
    z-index: 10000; /* ensure overlay is above the wrapper */
  }
  .chat-overlay {
    font-size: 0.85rem;
    /* padding: 16px 16px; */
    transform: translateY(8px);
  }
  .chat-overlay.show {
    transform: translateY(0);
  }

  h2{
    text-align: center;
  }

  .card-content h2{
    text-align: left;
  }

  p.subtitle{
    text-align: center;
  }

  p.disclaimer{
    font-size: 12px;
  }

  .link-centered{
    text-align: center;
  }

  #companies h1{
  font-weight: 400;
  }

  #companies p{
  font-weight: 400;
  font-size: 16px;
  }

  .contact-cell{
    height: 480px;
  }

  .mobile-br{
    display: inline;
  }

}

@media (576px <= width <= 768px){
  
  .hello-overlay {
    padding: 8px 8px;
  }

  .mission-title h1{
  font-size: 40px;
  text-align: center;
  }

  .mission-statement h3{
  font-size: 22px;
  text-align: center;
  }
  
  .project-card,
  .project-card.bg-image1,
  .project-card.bg-image2,
  .project-card.bg-image3,
  .project-card.bg-image4,
  .project-card.bg-image5,
  .project-card.bg-image6,
  .xp1-card,
  .xp2-card,
  .xp3-card {
    height: 100%;
    min-height: 240px;
  }
  
  h2{
    text-align: center;
  }

  .card-content h2{
    text-align: left;
  }

  p.subtitle{
    text-align: center;
  }

  .link-centered{
    text-align: center;
  }

  #mission .mobile-br{
    display: inline;
  }

}

@media(768px <= width <= 992px){
  .project-card,
  .project-card.bg-image1,
  .project-card.bg-image2,
  .project-card.bg-image3,
  .project-card.bg-image4,
  .project-card.bg-image5,
  .project-card.bg-image6,
  .xp1-card,
  .xp2-card,
  .xp3-card {
    height: 100%;
    min-height: 240px;
  }

  #mission .mobile-br{
    display: inline;
  }

}

@media(992px <= width <= 1366px){
  
  p{
    font-size: 14px;
  }

  a{
    font-size: 14px;
  }

  .card-content h2{
    font-size: 24px;
  }

  #mission .mobile-br{
    display: inline;
  }

}

@media (height <= 500px) {
   
  .hello-cell {
    height: auto;
    min-height: 160vh;
  }

  #chat{
  scroll-margin-top: 112px;
  }

  /* .stat-card {
    padding: 0.5rem;
    border-radius: 16px;
  } */

  /* .stat-card h5 {
    font-size: 14px;
  } */

  .xp1-card h1,
  .xp2-card h1,
  .xp3-card h1{
    font-size: 40px;
  }

  h3 {
    font-size: 20px;
  }

  p{
    font-size: 16px;
  }

  a{
    font-size: 16px;
  }

  /* .stat-card p {
    font-size: 16px;
  } */

  .project-card,
  .project-card.bg-image1,
  .project-card.bg-image2,
  .project-card.bg-image3,
  .project-card.bg-image4,
  .project-card.bg-image5,
  .project-card.bg-image6,
  .xp1-card,
  .xp2-card,
  .xp3-card {
   height: 100%;
   min-height: 240px;
  }

}

#egg {
  position: relative; /* needed for absolute positioning */
  cursor: default;
  display: inline-block;
  text-shadow: none;
}

.eggmsg {
  position: absolute;
  bottom: 100%; /* float above the egg */
  left: 50%;
  transform: translateX(-50%) translateY(0);
  padding: 6px 10px;
  background: rgba(0,0,0,0.8);
  color: white;
  border-radius: 6px;
  font-size: 16px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.eggmsg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px); /* float up when visible */
}