/* ======================== BASE & VARIABLES ======================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #07070d;
  --bg2: #0d0d18;
  --gold: #e8b86d;
  --gold2: #f7d794;
  --cyan: #3ef0e0;
  --violet: #9b6dff;
  --text: #e8e2d6;
  --muted: #6b6b7e;
  --border: rgba(232,184,109,0.15);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  padding-bottom: 110px; /* Safe space for bottom nav */
}

/* ======================== ANIMATIONS & REVEALS ======================== */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1s ease-in;
}
.reveal-fade.active {
  opacity: 1;
}

/* NOISE OVERLAY & BACKGROUND ORBS */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(232,184,109,0.12) 0%, transparent 70%); top: -150px; right: -100px; animation-delay: 0s; }
.orb2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(62,240,224,0.08) 0%, transparent 70%); bottom: 10%; left: -100px; animation-delay: -4s; }
.orb3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(155,109,255,0.1) 0%, transparent 70%); top: 50%; left: 50%; animation-delay: -8s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,15px) scale(0.97); }
}

/* ======================== NAVIGATION & LOGO ======================== */
nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 5vw;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.logo { pointer-events: auto; }
.logo img { height: 45px; width: auto; object-fit: contain; display: block; }

/* ======================== TYPOGRAPHY & BUTTONS ======================== */
.hero-eyebrow, .section-label { 
  font-family: 'Space Mono', monospace; 
  font-size: .7rem; 
  letter-spacing: .3em; 
  color: var(--cyan); 
  text-transform: uppercase; 
  margin-bottom: 1.5rem; 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--cyan); }
.section-label { color: var(--violet); }
.section-label::before { display: none; }

.hero-title, .section-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; line-height: 1.1; }
.hero-title { font-size: clamp(3rem, 8vw, 8rem); margin-bottom: 2rem; letter-spacing: -.02em; }
.section-title { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 3rem; }

em { font-style: italic; background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 40%, var(--cyan) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero-sub { max-width: 480px; font-size: clamp(0.9rem, 2vw, 1rem); line-height: 1.8; color: var(--muted); margin-bottom: 3.5rem; }

.btn-primary, .btn-outline {
  padding: 14px 36px; font-family: 'DM Sans', sans-serif; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; border-radius: 40px; transition: all .4s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), #c8963d); color: #07070d; font-weight: 500; border: none; box-shadow: 0 4px 15px rgba(232, 184, 109, 0.2); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(232, 184, 109, 0.4); }
.btn-outline { background: transparent; color: var(--text); font-weight: 400; border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ======================== PAGE ROUTING ======================== */
.page { 
  display: none; 
  min-height: 100vh; 
  position: relative; 
  z-index: 2; 
  padding-top: 90px; 
}
.page.active { display: block; animation: pageIn .6s cubic-bezier(.16,1,.3,1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================== SECTIONS (HOME) ======================== */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 0 8vw; margin-top: -90px; }
.section { padding: 4vw 8vw 8vw 8vw; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 2px; margin-top: 3rem; }
.service-card { background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); border: 1px solid var(--border); padding: 3rem 2.5rem; transition: all .4s cubic-bezier(0.16, 1, 0.3, 1); }
.service-card:hover { border-color: rgba(232,184,109,0.35); transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.service-num { font-family: 'Space Mono', monospace; font-size: .65rem; color: var(--gold); letter-spacing: .2em; margin-bottom: 2rem; display: block; }
.service-icon { font-size: 2.2rem; margin-bottom: 1.5rem; display: block; color: var(--text); }
.service-name { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; margin-bottom: 1rem; color: var(--text); }
.service-desc { font-size: .88rem; color: var(--muted); line-height: 1.8; }

.marquee-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.5rem 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-block; animation: marquee 25s linear infinite; }
.marquee-track span { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-style: italic; color: var(--muted); padding: 0 3rem; }
.marquee-track span strong { color: var(--gold); font-style: normal; font-weight: 600; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ======================== FOUNDER ======================== */
.founder-wrap { min-height: calc(100vh - 90px); display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.founder-visual { position: relative; overflow: hidden; background: var(--bg2); border-right: 1px solid var(--border); min-height: 600px; }
.founder-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%) contrast(1.05); transition: filter .5s, transform 0.5s; }
.founder-visual:hover .founder-img { filter: grayscale(0%) contrast(1.1); transform: scale(1.02); }
.founder-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,7,13,0.95) 0%, rgba(7,7,13,0.2) 50%, transparent 100%); pointer-events: none; }
.founder-overlay-text { position: absolute; bottom: 2.5rem; left: 2.5rem; }
.founder-info { padding: 4vw 5vw; display: flex; flex-direction: column; justify-content: center; }
.founder-info h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 2rem; }
.founder-bio { font-size: .92rem; line-height: 1.9; color: #9494a8; margin-bottom: 2.5rem; }
.founder-bio p { margin-bottom: 1rem; }
.skills-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2.5rem; }
.skill-tag { font-family: 'Space Mono', monospace; font-size: .65rem; padding: 6px 14px; border: 1px solid var(--border); color: var(--muted); border-radius: 20px; transition: all 0.3s ease; }
.skill-tag:hover { border-color: var(--gold); color: var(--gold); background: rgba(232, 184, 109, 0.05); }
.founder-links { display: flex; flex-direction: column; gap: 12px; }
.founder-link { font-family: 'Space Mono', monospace; font-size: .75rem; letter-spacing: .1em; color: var(--text); text-decoration: none; transition: color .3s; }
.founder-link:hover { color: var(--gold); }

/* ======================== TEAM ======================== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 2rem; margin-top: 2rem; }
.team-card { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem 2rem; text-align: center; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.team-card:hover { border-color: rgba(232,184,109,0.4); transform: translateY(-6px); background: rgba(232,184,109,0.04); box-shadow: 0 10px 25px rgba(0,0,0,0.4); }
.team-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin-bottom: 1.2rem; border: 2px solid var(--gold); padding: 4px; transition: transform 0.4s ease; }
.team-card:hover img { transform: scale(1.05); }
.team-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--text); margin-bottom: .5rem; }
.team-card p { font-family: 'Space Mono', monospace; font-size: .7rem; color: var(--cyan); text-transform: uppercase; letter-spacing: .1em; }

/* ======================== UPDATES (FACEBOOK FEED STYLE) ======================== */
.updates-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); 
  gap: 2rem; 
  margin-top: 2rem; 
  width: 100%;
  justify-content: center;
}

.update-placeholder { 
  border: 1px dashed var(--border); 
  border-radius: 12px; 
  padding: 4rem 2rem; 
  text-align: center; 
  color: var(--muted); 
  grid-column: 1 / -1; 
  width: 100%; 
  box-sizing: border-box; 
}
.update-placeholder i { font-size: 2rem; margin-bottom: 1rem; color: var(--border); }

.update-card { 
  background: rgba(255, 255, 255, 0.03); 
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1); 
  border-radius: 12px; 
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 100%; 
  max-width: 420px; /* Limits max width to emulate a sleek feed card */
  margin: 0 auto; 
  box-sizing: border-box; 
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
  transition: all 0.3s ease; 
}

.update-card:hover { 
  border-color: rgba(232,184,109,0.4); 
  transform: translateY(-4px); 
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.update-img { 
  width: 100%; 
  height: auto; /* Uses exact natural height of your uploaded image */
  max-height: 70vh; /* Safety limit */
  object-fit: contain; /* Prevents stretching and cropping */
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
}

.update-content { padding: 1.5rem; }
.update-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--text); margin-bottom: 0.5rem; line-height: 1.3; }
.update-date { font-family: 'Space Mono', monospace; font-size: 0.65rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem; display: block; }
.update-text { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ======================== CONTACT ======================== */
.contact-wrap { padding: 4vw 8vw; display: grid; grid-template-columns: 1fr 1.3fr; gap: 6vw; align-items: center; position: relative; }
.contact-left h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 2rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-detail-icon { width: 36px; height: 36px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--gold); margin-top: 2px; }
.contact-detail-label { font-family: 'Space Mono', monospace; font-size: .6rem; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; margin-bottom: .3rem; }
.contact-detail-val { font-size: .95rem; color: var(--text); }
.social-links { display: flex; gap: 15px; margin-top: 2.5rem; }
.social-links a { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1.1rem; transition: all .3s; text-decoration: none; }
.social-links a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px) scale(1.05); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-label { font-family: 'Space Mono', monospace; font-size: .6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.form-input, .form-textarea { background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: .9rem; padding: 14px 18px; outline: none; border-radius: 8px; resize: none; transition: border-color 0.3s ease, background 0.3s; width: 100%; box-sizing: border-box; }
.form-input:focus, .form-textarea:focus { border-color: rgba(232,184,109,0.5); background: rgba(255,255,255,0.05); }
.form-textarea { min-height: 140px; }
.form-submit { margin-top: .5rem; padding: 16px; background: linear-gradient(135deg, var(--gold), #c8963d); color: #07070d; font-family: 'DM Sans', sans-serif; font-size: .85rem; font-weight: 500; text-transform: uppercase; border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; width: 100%; box-sizing: border-box; }
.form-submit:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(232, 184, 109, 0.3); }

/* Credit Section */
.credit-badge {
  grid-column: 1 / -1; 
  text-align: center;
  padding-top: 3rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.credit-badge p { margin-bottom: 5px; }
.credit-badge a { color: var(--gold); text-decoration: none; transition: color 0.3s; text-transform: lowercase; }
.credit-badge a:hover { color: var(--cyan); }

/* ======================== PRIVACY & POLARITH BADGE ======================== */
.privacy-wrap { padding: 4vw 12vw 8vw 12vw; max-width: 860px; margin: 0 auto; }
.privacy-wrap h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: .5rem; }
.privacy-meta { font-family: 'Space Mono', monospace; font-size: .65rem; color: var(--muted); margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.privacy-wrap h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--gold); margin: 2.5rem 0 1rem; }
.privacy-wrap p, .privacy-wrap li { font-size: .92rem; color: #8a8a9e; line-height: 1.9; margin-bottom: .8rem; }
.privacy-wrap ul { padding-left: 1.5rem; }
.privacy-wrap li { list-style: none; position: relative; padding-left: 1.2rem; }
.privacy-wrap li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }

.polarith-badge {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 4rem;
  text-align: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.polarith-badge:hover { border-color: rgba(232, 184, 109, 0.3); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); }
.polarith-badge p { font-family: 'DM Sans', sans-serif !important; font-size: 0.85rem !important; color: var(--text) !important; margin-bottom: 0.5rem !important; line-height: 1.5 !important; }
.polarith-badge p:last-child { margin-bottom: 0 !important; }
.polarith-badge a { color: var(--gold); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.polarith-badge a:hover { color: var(--cyan); }

/* ======================== BULLETPROOF BOTTOM LIQUID GLASS TABS ======================== */
.bottom-nav-wrapper {
  position: fixed !important;
  bottom: 20px !important;
  top: auto !important;
  left: 0 !important;
  width: 100vw !important;
  height: auto !important;
  display: flex !important;
  justify-content: center !important;
  z-index: 2147483647 !important; /* Maximum possible z-index */
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateZ(0) !important; /* Forces the browser to lock it to the viewport */
}

.tab-container {
  pointer-events: auto;
  position: relative;
  display: flex;
  gap: 15px;
  padding: 12px;
  border-radius: 60px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.1), inset 0 0 60px rgba(255,255,255,0.05), 0 15px 40px rgba(0,0,0,0.6);
}

.slider {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  background: linear-gradient(145deg, rgba(232,184,109,0.5), rgba(232,184,109,0.1));
  backdrop-filter: blur(40px);
  box-shadow: inset -5px -5px 15px rgba(255,255,255,0.3), inset 5px 5px 15px rgba(0,0,0,0.2), 0 0 15px rgba(232,184,109,0.3);
  transition: transform 0.45s cubic-bezier(0.2, 1.2, 0.4, 1);
  overflow: hidden;
  z-index: 1;
}

.slider::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 100%;
  top: 0;
  left: -50%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-20deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) skewX(-20deg); }
  100% { transform: translateX(100%) skewX(-20deg); }
}

.tab {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.3s;
}

.tab:active { transform: scale(0.9); }
.tab.active { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.8); }

/* ======================== AGOMONI AI CHATBOT ======================== */
#chatbot-btn {
  position: fixed;
  bottom: 100px;
  right: 15px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #c8963d);
  color: #07070d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px; 
  box-shadow: 0 8px 20px rgba(0,0,0,0.5), 0 0 15px rgba(232,184,109,0.4);
  cursor: pointer;
  z-index: 10000;
  user-select: none;
  touch-action: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
#chatbot-btn:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 20px rgba(232,184,109,0.6); }
#chatbot-btn:active { transform: scale(0.95); }

#chat-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#chat-overlay.show { opacity: 1; pointer-events: auto; }

#chat-window {
  position: fixed;
  bottom: 155px;
  right: 15px;
  width: 320px;
  height: 420px;
  background: rgba(20, 20, 30, 0.65); 
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6), inset 0 0 20px rgba(255,255,255,0.05);
  border-radius: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#chat-window.show { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }

.chat-header {
  padding: 15px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: normal;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.close-chat { background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; transition: color 0.3s; }
.close-chat:hover { color: var(--gold); transform: rotate(90deg); }

.chat-body { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; font-size: 0.85rem; }
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

.chat-msg { padding: 10px 14px; border-radius: 12px; max-width: 85%; line-height: 1.5; word-wrap: break-word; animation: messageIn 0.3s ease-out; }
@keyframes messageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.bot-msg { background: rgba(255,255,255,0.05); color: var(--text); align-self: flex-start; border-bottom-left-radius: 2px; }
.user-msg { background: linear-gradient(135deg, rgba(232,184,109,0.2), rgba(232,184,109,0.05)); color: var(--gold2); align-self: flex-end; border-bottom-right-radius: 2px; border: 1px solid rgba(232,184,109,0.2); }

.chat-footer { padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.chat-footer input { flex: 1; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 20px; padding: 8px 15px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.85rem; outline: none; transition: border-color 0.3s; width: 100%; box-sizing: border-box; }
.chat-footer input:focus { border-color: var(--gold); }
.chat-footer button { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); border: none; color: #07070d; cursor: pointer; transition: transform 0.3s; flex-shrink: 0; }
.chat-footer button:hover { transform: scale(1.1); }
.typing-indicator { font-size: 0.8rem; color: var(--muted); font-style: italic; display: none; padding-left: 10px; margin-top: -5px; }

/* ======================== RESPONSIVE RULES ======================== */
@media (max-width: 768px) {
  .founder-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .founder-visual { min-height: 50vh; }
  .section { padding: 6vw 5vw 8vw 5vw; } 
  .contact-wrap { padding: 8vw 5vw 4vw 5vw; }
  
  .tab-container { gap: 8px; padding: 10px; }
  .tab, .slider { width: 45px; height: 45px; }
  .slider { top: 10px; left: 10px; }
  .tab { font-size: 18px; }

  #chat-window { width: 90vw; right: 5vw; bottom: 155px; }
}

@media (max-width: 400px) {
  .tab-container { gap: 4px; padding: 8px; }
  .tab, .slider { width: 40px; height: 40px; }
  .slider { top: 8px; left: 8px; }
  .tab { font-size: 16px; }
  }
