body{
  margin:0;
  background:#ffffff;
  color:#111;
  font-family:'Outfit', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
header{
  position:fixed;
  top:20px;
  left:50%;
  transform:translateX(-50%);
  width:min(100%, 620px);
  padding:0 16px;
  box-sizing:border-box;
  z-index:10;
}
.nav{
  width:100%;
  display:flex;
  justify-content:center;
}
.nav .links{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}
.pill{
  padding:8px 16px;
  background:rgba(255,255,255,0.9);
  border:1px solid rgba(0,0,0,0.1);
  border-radius:20px;
  text-decoration:none;
  color:#333;
  font-size:14px;
  transition:all 0.2s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.pill:hover{
  background:rgba(0,0,0,0.05);
}
.pill.active{
  background:#111;
  color:#fff;
}
main{
  max-width:900px;
  margin:120px auto 60px;
  padding:0 20px;
  text-align:center;
  box-sizing:border-box;
}
.bio{
  max-width:600px;
  margin:20px auto;
}
.tech-tree-section{
  position:relative;
  max-width:900px;
  margin:clamp(48px, 10vh, 84px) auto 0;
  padding-bottom:clamp(24px, 6vh, 48px);
  display:flex;
  flex-direction:column;
  align-items:center;
}
#tech-tree-anchor{
  width:100%;
  display:flex;
  justify-content:center;
}
.tech-tree-container{
  width:min(780px, 100%);
  margin:0 auto;
  position:relative;
  pointer-events:none;
  overflow:visible;
}
.tech-tree-container svg{
  width:100%;
  height:100%;
  display:block;
}
.cta-wrap{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:clamp(6px, 2vh, 24px);
  display:flex;
  justify-content:center;
  margin:0;
  pointer-events:auto;
}
.cta-hire{
  display:inline-block;
  text-decoration:none;
  font-weight:700;
  letter-spacing:0.02em;
  background:#111;
  color:#fff;
  border-radius:999px;
  padding:14px 24px;
  border:1px solid rgba(0,0,0,0.85);
  box-shadow:0 6px 18px rgba(0,0,0,0.15);
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.cta-hire:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(0,0,0,0.18);
}
.cta-hire:active{
  transform:translateY(0);
}
.contact-list{
  list-style:none;
  padding:0;
  margin:40px auto 0;
  max-width:360px;
  display:flex;
  flex-direction:column;
  gap:12px;
  text-align:left;
}

.contact-list a{
  color:#4a6cf7;
  text-decoration:none;
}

.contact-list a:hover{
  text-decoration:underline;
}
/* Chat Container */
.chat-container {
  width: 100%;
  max-width: 500px;
  margin: 40px auto 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  height: 500px;
  display: flex;
  flex-direction: column;
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4a6cf7;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 16px;
}

.chat-title {
  font-weight: 600;
  color: #1a1a1a;
}

.chat-status {
  margin-left: auto;
  font-size: 12px;
  color: #6c757d;
  display: flex;
  align-items: center;
}

.chat-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #28a745;
  border-radius: 50%;
  margin-right: 6px;
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  max-width: 80%;
  animation: fadeIn 0.3s ease-out;
}

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

.bot-message {
  align-self: flex-start;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  font-size: 16px;
}

.message-content {
  background: #f0f2f5;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  color: #1a1a1a;
  position: relative;
}

.message-sender {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 4px;
  color: #4a6cf7;
}

.message-time {
  font-size: 10px;
  color: #6c757d;
  text-align: right;
  margin-top: 4px;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 12px;
  color: #6c757d;
  background: #f8f9fa;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.typing-dots {
  display: inline-flex;
  align-items: flex-end;
  height: 12px;
  margin-left: 4px;
}

.typing-dots::after {
  content: '...';
  display: inline-block;
  width: 0;
  overflow: hidden;
  vertical-align: bottom;
  animation: typing 1.4s infinite;
}

@keyframes typing {
  0% { width: 0; }
  50% { width: 2em; }
  100% { width: 0; }
}

/* Chat Input */
.chat-input-container {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  padding: 16px 20px;
}

.chat-input-wrapper {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 24px;
  padding: 0 16px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.chat-input-wrapper:focus-within {
  border-color: #4a6cf7;
  box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  outline: none;
  color: #1a1a1a;
}

.chat-input::placeholder {
  color: #adb5bd;
}

.send-button {
  background: none;
  border: none;
  color: #4a6cf7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-left: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.send-button:hover {
  background: rgba(74, 108, 247, 0.1);
}

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

@media (max-width: 900px) {
  header{
    top:12px;
    width:100%;
    padding:0 12px;
  }
  .nav .links{
    gap:8px;
  }
  .pill{
    flex:1 1 calc(50% - 8px);
    min-width:140px;
    font-size:13px;
    padding:10px 12px;
  }
  main{
    margin:108px auto 48px;
    padding:0 16px;
  }
  .bio{
    margin:16px auto 8px;
  }
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  main{ margin: clamp(180px, 30vh, 260px) auto 48px; }
  .chat-container {
    margin: 20px auto 0;
    height: 70vh;
  }
  
  .message {
    max-width: 90%;
  }
  header{
    padding:0 10px;
  }
  .nav .links{
    gap:6px;
  }
  .pill{
    flex:1 1 100%;
    min-width:0;
  }
  .tech-tree-section{
    margin-top:clamp(24px, 10vh, 48px);
    padding-bottom:clamp(48px, 18vh, 96px);
  }
  .cta-wrap{
    bottom:clamp(16px, 8vh, 64px);
  }
  .cta-hire{
    width:100%;
    max-width:260px;
    text-align:center;
  }
}
.gallery{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:40px;
  margin-top:160px;
}
.service-btn{
  position:relative;
  width:100%;
  max-width:360px;
  aspect-ratio:9/16;
  border:none;
  padding:0;
  cursor:pointer;
  overflow:hidden;
  border-radius:20px;
}
.service-btn img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.service-btn span{
  position:absolute;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  background:rgba(0,0,0,0.6);
  color:#fff;
  padding:10px 18px;
  border-radius:12px;
  font-weight:600;
  font-size:16px;
}
footer{
  padding:40px 20px;
  text-align:center;
  font-size:12px;
  color:rgba(0,0,0,0.6);
}
/* was: clamp(22px, 3.4vw, 44px) */
.phrase-line{
  font-size: clamp(32px, 4.8vw, 72px);
}

/* Invisible logo wrapper */
.logo-reveal{
  width: min(1400px, 96vw);
  height: min(60vh, 520px);
  margin: 32px auto 8px;
  display: grid;
  place-items: center;
  pointer-events: none; /* don't block links or hover states below */
}

#stayreal-logo{
  width: 100%;
  height: 100%;
  display: block;
  transform: translateX(-200px);
  transition: transform .3s ease;
}

.logo-title{
  display: none;
  margin: 0 auto;
  font-family: 'Sora','Space Grotesk','Outfit',system-ui,-apple-system,sans-serif;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  font-size: clamp(48px, 12vw, 104px);
  line-height: 1.05;
  max-width: min(88vw, 460px);
  text-wrap: balance;
}

/* optional: spacing tweaks so the name sits a bit tighter below the logo */
main h1{
  margin-top: 8px;
}
/* Fullscreen particle container */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: -1;
}

/* Ensure particles never block clicks */
#particles-js, #particles-js * {
  pointer-events: none;
}

/* Ensure content sits above */
header, main, footer{
  position: relative;
  z-index: 1;
}

@media (max-width: 1100px){
  #stayreal-logo{ transform: translateX(-140px); }
}
@media (max-width: 1200px){
  .logo-reveal{ height: auto; min-height: 0; padding: 24px 0; }
  #stayreal-logo{ display: none; }
  .logo-title{ display: block; font-size: clamp(56px, 13vw, 108px); letter-spacing: 0.1em; }
}
@media (max-width: 720px){
  .logo-title{ font-size: clamp(42px, 16vw, 72px); letter-spacing: 0.08em; }

}
