@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  --bg-dark: #09090b; /* Zinc 950 deep space void space */
  --bg-card: rgba(18, 18, 24, 0.45); /* Translucent frosted glass */
  --bg-card-hover: rgba(24, 24, 32, 0.6);
  --border-color: rgba(255, 255, 255, 0.055); /* Clean modern borders */
  --border-color-hover: rgba(255, 255, 255, 0.12); /* Clean border hover shift */
  
  --text-primary: #f4f4f5; /* Zinc 100 */
  --text-secondary: #a1a1aa; /* Zinc 400 */
  --text-muted: #52525b; /* Zinc 600 */
  
  --accent-cyan: #38bdf8; /* Sleek sky blue */
  --accent-blue: #0284c7; /* Vibrant Apple blue */
  --accent-purple: #818cf8; /* Sleek indigo */
  --accent-pink: #c084fc; /* Lavender violet */
  
  --gradient-primary: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 20%, #e2e8f0 60%, #94a3b8 100%); /* Silver-to-slate metallic shift */
  --gradient-glow: linear-gradient(135deg, rgba(56, 189, 248, 0.04) 0%, rgba(129, 140, 248, 0.01) 100%);
  
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.08);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  --container-width: 1200px;
}

/* --- RESET & BASIC STYLES --- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) var(--bg-dark);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 110px;
  
  /* MINIMAL DOT PATTERN BACKGROUND */
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
}

/* Custom Scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  border: 2px solid var(--bg-dark);
}

body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

input, textarea, button {
  font-family: inherit;
}

/* --- GLOWING RADIAL BACKGROUNDS --- */
.radial-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.09;
  mix-blend-mode: screen;
  animation: moveBlob 22s infinite alternate ease-in-out;
}

.blob-1 {
  top: -15%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: var(--accent-cyan);
  animation-duration: 18s;
}

.blob-2 {
  bottom: -15%;
  right: -15%;
  width: 650px;
  height: 650px;
  background: var(--accent-purple);
  animation-duration: 25s;
  animation-delay: -4s;
}

.blob-3 {
  top: 35%;
  left: 25%;
  width: 450px;
  height: 450px;
  background: var(--accent-pink);
  animation-duration: 20s;
  animation-delay: -8s;
  opacity: 0.05;
}

@keyframes moveBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(120px, 90px) scale(1.15);
  }
  66% {
    transform: translate(-60px, 140px) scale(0.9);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* --- UTILITIES & LAYOUT --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 7rem 0 5rem 0;
  position: relative;
}

section + section {
  border-top: 1px solid rgba(255,255,255,0.04);
}

.section-tag {
  display: block;
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  text-align: center;
  margin-bottom: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 3.5rem;
  text-align: center;
  letter-spacing: -0.5px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- GLASSMORPHISM UTILITY --- */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%), var(--bg-card);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.4), 
    inset 0 1px 1px rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.01);
  transition: border-color var(--transition-normal), background var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: var(--bg-card-hover);
  box-shadow: 
    0 25px 45px rgba(0, 0, 0, 0.65), 
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    0 0 25px rgba(56, 189, 248, 0.12);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  gap: 0.6rem;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.45), 0 0 15px rgba(129, 140, 248, 0.2);
  color: #ffffff;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.06);
  border-color: var(--accent-cyan);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.15), 0 0 15px rgba(56, 189, 248, 0.1);
}

/* --- HEADER & NAVIGATION --- */
header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 920px;
  z-index: 1000;
  transition: top var(--transition-normal);
}

/* Nav Book Collab CTA */
.btn-nav-cta {
  padding: 0.45rem 1.2rem !important;
  font-size: 0.85rem !important;
  border: none !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo-dot {
  color: var(--accent-cyan);
  display: inline-block;
  animation: pulse 2s infinite;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.3rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 80%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- HERO SECTION --- */
#home {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding-top: 6rem; /* clear floating nav pill */
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-subtitle {
  font-family: 'Fira Code', monospace;
  color: var(--accent-cyan);
  font-size: 0.88rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glow-circle {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 223, 137, 0.15) 0%, rgba(161, 140, 209, 0.05) 50%, transparent 70%);
  filter: blur(20px);
  animation: float 6s ease-in-out infinite alternate;
}

.avatar-container {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
  position: relative;
  z-index: 2;
  box-shadow: 0 0 40px rgba(0,242,254,0.2), var(--shadow-card);
  animation: float 6s ease-in-out infinite;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-dark);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.avatar-inner svg {
  width: 150px;
  height: 150px;
  fill: url(#avatar-gradient);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
}

/* --- ABOUT SECTION --- */
.about-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.about-text p {
  color: var(--text-secondary);
}

.highlight-box {
  padding: 1.5rem 1.8rem;
  border-left: 3px solid var(--accent-cyan);
  background: rgba(0, 223, 137, 0.03);
  margin-top: 1rem;
  border-radius: 0 12px 12px 0;
  box-shadow: inset 0 0 0 1px rgba(0,242,254,0.06);
}

.about-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tab-buttons {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--accent-cyan);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.tab-content.active {
  display: block;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.2rem;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  text-align: center;
  gap: 0.8rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,242,254,0.2);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.6);
}

.skill-card svg {
  width: 32px;
  height: 32px;
  transition: var(--transition-normal);
}

.skill-card:hover svg {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 8px var(--accent-cyan));
}

.skill-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.skill-card:hover .skill-name {
  color: var(--text-primary);
}

/* Clickable platform cards */
a.skill-card-link {
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}
a.skill-card-link:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 223, 137, 0.12), 0 12px 30px -8px rgba(0,0,0,0.6);
}

/* Banner text show/hide */
.banner-short { display: none; }
.banner-full { display: inline; }

/* --- PROJECTS SECTION --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.05);
}

.project-image {
  height: 200px;
  position: relative;
  background: var(--gradient-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.project-svg-bg {
  width: 65%;
  height: 65%;
  opacity: 0.25;
  transition: var(--transition-slow);
}

.project-card:hover .project-svg-bg {
  transform: scale(1.12) rotate(-3deg);
  opacity: 0.55;
}

.project-img-display {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-slow);
}

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

.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1rem;
}

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

.project-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(0, 223, 137, 0.06);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 223, 137, 0.15);
}

.project-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
}

.project-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.project-link {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast), gap var(--transition-fast);
}

.project-link:hover {
  color: var(--accent-cyan);
  gap: 0.7rem;
}

.project-link svg {
  width: 16px;
  height: 16px;
}

/* --- EXPERIENCE/TIMELINE SECTION --- */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-blue), var(--accent-purple), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  padding-left: 60px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 5px;
  left: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  z-index: 10;
  transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-cyan);
  transform: scale(1.2);
}

.timeline-content {
  padding: 2rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.timeline-role {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.timeline-company {
  color: var(--accent-blue);
  font-weight: 500;
  margin-left: 0.5rem;
}

.timeline-date {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  color: var(--text-secondary);
}

.timeline-desc {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-desc li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.2rem;
}

.timeline-desc li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

/* --- CONTACT SECTION --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.contact-info p {
  color: var(--text-secondary);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 223, 137, 0.05);
  border: 1px solid rgba(0, 223, 137, 0.1);
  color: var(--accent-cyan);
}

.contact-method:hover .contact-icon-wrapper {
  background: var(--gradient-primary);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 223, 137, 0.3);
  transform: translateY(-2px);
}

.contact-method-detail h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-method-detail p {
  color: var(--text-primary);
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-normal);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  fill: none;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: rgba(0, 223, 137, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.social-icon:hover svg {
  stroke: var(--accent-cyan);
  fill: none;
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px var(--accent-cyan));
}

.contact-form {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(3, 5, 10, 0.45);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.9rem 1.4rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(3, 5, 10, 0.6);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18), inset 0 1px 1px rgba(0, 0, 0, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-status {
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  color: #10b981;
}

.form-status.error {
  display: block;
  color: #ef4444;
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid transparent;
  background: linear-gradient(to top, rgba(3,5,10,0.98), rgba(5,7,12,0.9));
  background-origin: border-box;
  border-image: linear-gradient(90deg, transparent, rgba(0,242,254,0.15), transparent) 1;
  padding: 3.5rem 0 2.5rem;
  margin-top: 4rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,242,254,0.3) 30%, rgba(161,140,209,0.3) 70%, transparent 100%);
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.88rem;
  letter-spacing: 0.2px;
}

.back-to-top {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

.back-to-top svg {
  width: 16px;
  height: 16px;
}

/* --- SCROLL ANIMATION STATES --- */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal {
  transform: translateY(40px);
}
.reveal-left {
  transform: translateX(-50px);
}
.reveal-right {
  transform: translateX(50px);
}
.reveal-scale {
  transform: scale(0.92) translateY(20px);
}

.reveal.active, .reveal-left.active, .reveal-right.active, .reveal-scale.active {
  opacity: 1;
  transform: translate(0) scale(1);
}


/* --- ANIMATIONS --- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

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

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 968px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-description {
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .timeline::before {
    left: 10px;
  }
  
  .timeline-dot {
    left: 1px;
  }
  
  .timeline-item {
    padding-left: 35px;
  }
  
  .timeline-header {
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .timeline-date {
    align-self: flex-start;
  }
}

@media (max-width: 600px) {
  /* Mobile banner heights: announcement ~38px, dev ~28px = 66px total */
  .announcement-banner {
    padding: 0.5rem 0.75rem;
  }

  .banner-content {
    font-size: 0.82rem;
  }

  .banner-full { display: none; }
  .banner-short { display: inline; }

  .dev-banner {
    top: 38px;
    padding: 0.38rem 0.75rem;
  }

  .dev-banner-full {
    display: none;
  }

  .dev-banner-text {
    font-size: 0.72rem;
  }

  body {
    padding-top: 0;
  }

  header {
    width: 95%;
    top: 1rem;
  }

  #home {
    padding-top: 7.5rem; /* extra space to clear floating header */
    min-height: 100vh;
  }
  
  nav {
    padding: 0.6rem 1.2rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  section {
    padding: 6rem 0 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .tab-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .contact-form {
    padding: 1.5rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
    order: -1; /* show photo above text on mobile */
  }

  .avatar-container {
    width: 180px;
    height: 180px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-item {
    padding: 1.5rem 1rem;
  }

  .stat-number-wrapper {
    font-size: 2.2rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .finder-selectors {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    padding-left: 1.5rem;
  }

  .theme-toggle-btn {
    bottom: 1.2rem;
    right: 4.8rem;
    width: 42px;
    height: 42px;
  }
}

/* --- CREATOR STATS SECTION --- */
.stats-section {
  padding: 4rem 0;
  background: rgba(3, 5, 10, 0.5);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px -10px rgba(0, 223, 137, 0.15);
}

.stat-number-wrapper {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  letter-spacing: -1px;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
}

.stat-suffix {
  font-size: 2.2rem;
  font-weight: 600;
  margin-left: 2px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- VIDEO SHOWCASE SECTION --- */
.video-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  padding: 2.5rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.video-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.video-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
}

.video-info p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- FAQ SECTION --- */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
  gap: 1.5rem;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-cyan);
}

.faq-icon {
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.4s ease;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* --- NEWSLETTER BLOCK --- */
.newsletter-block {
  padding: 3rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
}

.newsletter-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.newsletter-content p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 550px;
}

@media (max-width: 768px) {
  .video-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

/* --- SCROLL PROGRESS BAR --- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-blue) 50%, var(--accent-pink) 100%);
  box-shadow: 0 0 10px rgba(0, 223, 137, 0.7);
  z-index: 9999;
  width: 0%;
  transition: width 0.15s cubic-bezier(0.1, 0.8, 0.2, 1);
  pointer-events: none;
}

/* --- ANNOUNCEMENT BANNER (Instagram CTA) --- */
.announcement-banner {
  background: linear-gradient(90deg, rgba(131, 58, 180, 0.9) 0%, rgba(253, 29, 29, 0.9) 50%, rgba(252, 176, 69, 0.9) 100%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1200;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(253, 29, 29, 0.35);
}
.banner-content {
  flex-grow: 1;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.banner-content a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  border-bottom: 2px solid rgba(255,255,255,0.6);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}
.banner-content a:hover {
  border-color: #ffffff;
}
.close-banner-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}
.close-banner-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* --- UNDER DEVELOPMENT BANNER --- */
.dev-banner {
  background: rgba(5, 7, 12, 0.98);
  border-bottom: 1px solid rgba(0, 223, 137, 0.2);
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  z-index: 1199;
  position: fixed;
  top: 44px; /* height of announcement banner */
  left: 0;
  right: 0;
  backdrop-filter: blur(8px);
}
.dev-banner-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-cyan);
}
.dev-banner-text {
  font-size: 0.78rem;
  font-family: 'Fira Code', monospace;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}
.dev-banner-text strong {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* --- THEME TOGGLE BUTTON --- */
.theme-toggle-btn {
  position: fixed;
  bottom: 2rem;
  right: 6rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(13, 18, 30, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.theme-toggle-btn:hover {
  transform: scale(1.1) rotate(15deg);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 223, 137, 0.25);
}

/* --- MODAL WINDOW STYLING --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 10, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  max-width: 500px;
  width: 90%;
  padding: 3rem 2.5rem;
  border-radius: 20px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-overlay.open .modal-content {
  transform: scale(1);
}
.close-modal-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-fast);
}
.close-modal-btn:hover {
  color: var(--text-primary);
}
.modal-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.modal-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* --- BIRIYANI FINDER --- */
.finder-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.finder-header {
  text-align: center;
}
.finder-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.finder-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}
.finder-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.selector-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.selector-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.selector-control {
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  appearance: none;
}
.selector-control option {
  background: var(--bg-dark);
  color: var(--text-primary);
}
.recommendation-result {
  animation: fadeIn 0.5s ease-in-out forwards;
}
.rec-card {
  padding: 2rem;
  border-radius: 16px;
  border-left: 4px solid var(--accent-cyan);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.rec-badge {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rec-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
}
.rec-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.rec-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 0.8rem;
  margin-top: 0.5rem;
}

/* --- LIGHT THEME STYLES --- */
body.light-theme {
  --bg-dark: #fbfbfd; /* Apple very light background */
  --bg-card: rgba(255, 255, 255, 0.65); /* Frosted white glass */
  --bg-card-hover: rgba(255, 255, 255, 0.85);
  --border-color: rgba(9, 9, 11, 0.06); /* Fine dark border */
  --border-color-hover: rgba(0, 102, 204, 0.2);
  
  --text-primary: #1d1d1f; /* Apple carbon text */
  --text-secondary: #515154; /* Slate gray */
  --text-muted: #86868b;
  
  --accent-cyan: #0071e3; /* Apple system blue */
  --accent-blue: #0050a1;
  --accent-purple: #6e00f5; /* Periwinkle-violet accent */
  --accent-pink: #bf0060;
  
  --gradient-text: linear-gradient(135deg, #1d1d1f 20%, #434345 60%, #86868b 100%); /* Clean dark metallic gradient */
}

body.light-theme .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  color: #0f172a;
}

body.light-theme .mobile-menu-btn {
  color: var(--text-primary);
}

body.light-theme .radial-bg {
  background: radial-gradient(circle at 50% -20%, rgba(0, 223, 137, 0.06), rgba(161, 140, 209, 0.06) 50%, transparent 80%);
}

body.light-theme .glow-blob {
  opacity: 0.04;
  mix-blend-mode: multiply;
}

body.light-theme .timeline::before {
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-blue), var(--accent-purple), rgba(15, 23, 42, 0.05));
}

body.light-theme .timeline-dot {
  background: #ffffff;
}

body.light-theme .scroll-mouse {
  border-color: rgba(9, 9, 11, 0.2);
}

body.light-theme .form-control {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(9, 9, 11, 0.1);
  color: #09090b;
}

body.light-theme .form-control:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15), inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

body.light-theme .hub-tabs {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(9, 9, 11, 0.05);
}

body.light-theme .hub-tab-btn:hover {
  background: rgba(0, 0, 0, 0.015);
  color: var(--text-primary);
}

body.light-theme .hub-tab-btn.active {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

body.light-theme .filter-btn {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(9, 9, 11, 0.05);
  color: var(--text-secondary);
}

body.light-theme .filter-btn:hover {
  background: rgba(0, 0, 0, 0.015);
  color: var(--text-primary);
  border-color: rgba(9, 9, 11, 0.1);
}

body.light-theme .filter-btn.active {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

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

/* --- NEON CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
  border-left: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* --- FUTURISTIC CUSTOM CURSOR --- */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s, opacity 0.3s;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
}

.custom-cursor-dot {
  width: 4px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: background-color 0.2s, opacity 0.3s;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
}

/* Cursor Hover States */
.custom-cursor.hovered {
  width: 36px;
  height: 36px;
  border-color: rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.05);
}

.custom-cursor-dot.hovered {
  background-color: var(--accent-cyan);
}

body.light-theme .custom-cursor {
  border-color: rgba(9, 9, 11, 0.3);
}

body.light-theme .custom-cursor-dot {
  background-color: rgba(9, 9, 11, 0.75);
}

body.light-theme .custom-cursor.hovered {
  border-color: rgba(9, 9, 11, 0.6);
  background-color: rgba(9, 9, 11, 0.04);
}

/* Hide default cursor on desktop when custom cursor is active */
@media (pointer: fine) {
  body.has-custom-cursor {
    cursor: none;
  }
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor select,
  body.has-custom-cursor input,
  body.has-custom-cursor textarea,
  body.has-custom-cursor .faq-question,
  body.has-custom-cursor .tab-btn {
    cursor: none;
  }
  .custom-cursor, .custom-cursor-dot {
    opacity: 1;
  }
}

/* --- MINIMAL BACKGROUND GRID --- */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
}

body.light-theme .grid-overlay {
  background-image: radial-gradient(rgba(9, 9, 11, 0.025) 1px, transparent 1px);
}

/* --- 3D CARD TRANSFORMS --- */
.project-card, .stat-item, .finder-container, .video-container, .radar-container, .insta-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}

/* --- LIVE TREND RADAR WIDGET --- */
.radar-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.radar-header {
  text-align: center;
}

.radar-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.radar-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.radar-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.radar-tab-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-normal);
}

.radar-tab-btn:hover {
  border-color: var(--border-color-hover);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.radar-tab-btn.active {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  background: rgba(0, 223, 137, 0.06);
  box-shadow: 0 0 15px rgba(0, 223, 137, 0.1);
}

.radar-content {
  position: relative;
  min-height: 250px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(3, 5, 10, 0.4);
  padding: 1.5rem;
  overflow: hidden;
}

/* SCI-FI SCANNER ANIMATION */
.radar-scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  box-shadow: 0 0 10px var(--accent-cyan);
  opacity: 0.7;
  pointer-events: none;
  z-index: 5;
  animation: scan 3s linear infinite;
}

@keyframes scan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.radar-news-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  animation: fadeIn 0.5s ease-in-out forwards;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.2s ease;
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-item:hover {
  transform: translateX(5px);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news-source {
  font-family: 'Fira Code', monospace;
  color: var(--accent-cyan);
  background: rgba(0, 223, 137, 0.06);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.news-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  transition: var(--transition-fast);
}

.news-title:hover {
  color: var(--accent-cyan);
}

.news-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-secondary);
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 223, 137, 0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .radar-tabs {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

/* --- INSTAGRAM FEED SECTION --- */
#instagram-feed {
  padding: 8rem 0 5rem;
}

.insta-feed-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.insta-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.insta-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.insta-logo-ring {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(220, 39, 67, 0.4);
  flex-shrink: 0;
}

.insta-logo-ring svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.insta-brand-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
}

.insta-brand-text span {
  font-family: 'Fira Code', monospace;
  font-size: 0.82rem;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
}

.insta-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.insta-follow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(220, 39, 67, 0.45);
}

.insta-follow-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.insta-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  will-change: transform;
  position: relative;
}

.insta-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.05);
}

.insta-img-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(3, 5, 10, 0.6);
}

.insta-placeholder-svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.insta-card:hover .insta-placeholder-svg {
  transform: scale(1.07);
}

.insta-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.insta-card:hover .insta-real-img {
  transform: scale(1.07);
}

.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.insta-card:hover .insta-overlay {
  opacity: 1;
}

.insta-stats {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  gap: 1.5rem;
  letter-spacing: 0.5px;
}

.insta-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.insta-caption {
  padding: 1.2rem 1.4rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  background: rgba(3, 5, 10, 0.4);
  flex: 1;
  transition: color 0.2s ease;
}

.insta-card:hover .insta-caption {
  color: var(--text-primary);
}

.insta-post-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-top: 0.4rem;
  display: block;
}

.insta-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 2rem;
  justify-content: center;
  width: 100%;
}

.insta-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38ef7d;
  box-shadow: 0 0 6px #38ef7d;
  animation: pulse 2s infinite;
}

.insta-behold-hint {
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  border-left: 3px solid var(--accent-cyan);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.insta-behold-hint a {
  color: var(--accent-cyan);
  font-weight: 600;
}

@media (max-width: 768px) {
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .insta-feed-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .insta-grid {
    grid-template-columns: 1fr;
  }
}

/* --- AI CHATBOT SYSTEM --- */
.ai-chat-bubble {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1100;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}
.ai-chat-bubble:hover {
  transform: scale(1.1);
  border-color: var(--accent-cyan);
}
.ai-chat-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #10b981; /* green */
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
}

.ai-chat-panel {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 360px;
  max-width: calc(100vw - 4rem);
  height: 500px;
  max-height: calc(100vh - 12rem);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  z-index: 1100;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
}

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

.ai-chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ai-chat-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ai-chat-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-chat-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-cyan);
}
.ai-chat-title h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}
.ai-status {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 2px;
}
.ai-status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
}
.close-ai-chat-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
  line-height: 1;
}
.close-ai-chat-btn:hover {
  color: var(--text-primary);
}

.ai-chat-messages {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
/* Custom Scrollbar for Chat Messages */
.ai-chat-messages::-webkit-scrollbar {
  width: 4px;
}
.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.ai-message {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  max-width: 85%;
  word-wrap: break-word;
}
.ai-message.ai-assistant {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  color: var(--text-primary);
}
.ai-message.ai-user {
  background: var(--gradient-primary);
  color: #050a14;
  font-weight: 500;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.ai-chat-input-area {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.01);
  align-items: center;
}
.ai-chat-input-area input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.ai-chat-input-area input:focus {
  border-color: var(--accent-cyan);
}
.ai-chat-send-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050a14;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}
.ai-chat-send-btn:hover {
  transform: scale(1.05);
}

.ai-typing-loader {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  border-bottom-left-radius: 2px;
  align-self: flex-start;
  width: 50px;
  justify-content: center;
}
.ai-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}
.ai-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

@media (max-width: 600px) {
  .ai-chat-bubble {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 42px;
    height: 42px;
  }
  .ai-chat-panel {
    bottom: 4.8rem;
    right: 1.2rem;
    width: calc(100vw - 2.4rem);
    height: 450px;
    max-height: calc(100vh - 8rem);
  }
}

/* --- BLOG SECTION STYLING --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}
.blog-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100%;
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}
.blog-card:hover {
  transform: translateY(-3px) scale(1.005);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.04);
}
.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blog-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.blog-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.blog-post-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}
.blog-post-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1;
}
.blog-read-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-fast);
}
.blog-read-link:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

/* Blog Modal adjustments */
.blog-modal-content {
  max-width: 700px !important;
  width: 95% !important;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem 2.5rem 2.5rem 2.5rem !important;
}
.blog-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.blog-modal-body p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Blog Filters & Search styling */
.filters-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.5rem auto 3rem auto;
  max-width: 900px;
  padding: 0 1rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1.1rem;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
  border-color: var(--border-color-hover);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.035);
}

.filter-btn.active {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.search-container input:focus {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
  outline: none;
}

/* Interactive Hub Layout */
.hub-section {
  padding: 6rem 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.hub-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: 3.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 14px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(16px);
}

.hub-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hub-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.025);
}

.hub-tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hub-tab-content {
  display: none;
  opacity: 0;
}

.hub-tab-content.active {
  display: block;
  animation: hubFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hub-content-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  background: rgba(10, 8, 18, 0.25);
  border-radius: 24px;
}

@media (max-width: 768px) {
  .hub-content-container {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }
}


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

/* Pulsing scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  pointer-events: none;
  animation: pulseScroll 2s infinite ease-in-out;
  opacity: 0.8;
  z-index: 10;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite ease-in-out;
}

@keyframes pulseScroll {
  0%, 100% {
    opacity: 0.4;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, 6px);
  }
}

@keyframes scrollWheel {
  0% {
    opacity: 0;
    top: 6px;
  }
  50% {
    opacity: 1;
    top: 12px;
  }
  100% {
    opacity: 0;
    top: 18px;
  }
}

/* --- SCROLL HEADER COMPRESSION --- */
header nav.compressed {
  padding: 0.5rem 1.4rem;
  background: rgba(10, 8, 18, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.65), 
    0 0 20px rgba(0, 223, 137, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.05);
}

/* --- FLOATING DEV BADGE --- */
.dev-status-badge {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: rgba(10, 8, 18, 0.65);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1090;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  animation: badgeFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dev-status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulseDot 2s infinite ease-in-out;
}

@media (max-width: 768px) {
  .dev-status-badge {
    bottom: 1.5rem;
    left: 1.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.68rem;
  }
}

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

@keyframes pulseDot {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 0 12px var(--accent-cyan);
  }
}





/* --- ADDITIONAL RESPONSIVE OVERRIDES --- */
@media (max-width: 768px) {
  .scroll-indicator {
    display: none !important;
  }
  .hero-subtitle {
    font-size: 0.72rem !important;
    letter-spacing: 1px !important;
  }
}

/* --- BSA CITY TECH TAB PANEL --- */
.bsa-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.5rem;
}

.bsa-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 20px;
}

.bsa-logo-wrapper {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 223, 137, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bsa-logo-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(226, 27, 82, 0.2);
}

.bsa-logo {
  width: 80px;
  height: 80px;
}

.bsa-brand-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bsa-brand-text span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.bsa-content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.bsa-info-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bsa-card {
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bsa-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.bsa-card p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.bsa-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.bsa-links .btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.bsa-events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.bsa-event-card {
  padding: 1.5rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.event-icon {
  font-size: 1.8rem;
}

.bsa-event-card h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bsa-event-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.bsa-officer-column {
  display: flex;
  flex-direction: column;
}

.bsa-officer-card {
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
}

.bsa-officer-card.highlight-card {
  border: 1px solid rgba(0, 223, 137, 0.2);
  box-shadow: 0 10px 40px -10px rgba(0, 223, 137, 0.1);
}

.officer-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 223, 137, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 223, 137, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  font-weight: 600;
}

.officer-avatar-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin-top: 1rem;
}

.officer-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 223, 137, 0.25);
}

.officer-role-pill {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-secondary);
  color: #ffffff;
  padding: 0.3rem 1.2rem;
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(226, 27, 82, 0.3);
}

.bsa-officer-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 0.5rem;
}

.officer-tagline {
  font-family: 'Outfit', sans-serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent-cyan);
  max-width: 280px;
  line-height: 1.4;
}

.officer-bio {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.officer-stats {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-color);
}

.officer-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.officer-stats .stat .value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.officer-stats .stat .label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.officer-stats .border-left {
  position: relative;
}

.officer-stats .border-left::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-color);
}

/* Responsive queries */
@media (max-width: 968px) {
  .bsa-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .bsa-container {
    padding: 0.5rem;
  }
  .bsa-header {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
  }
  .bsa-events-grid {
    grid-template-columns: 1fr;
  }
  .bsa-brand-text h3 {
    font-size: 1.4rem;
  }
  .bsa-links {
    flex-direction: column;
    gap: 0.8rem;
  }
  .bsa-links .btn {
    width: 100%;
    justify-content: center;
  }
}
