/* =========================================================
   DESKTOP / BASE STYLES (APPLY TO ALL DEVICES BY DEFAULT)
   > 1024px is effectively your desktop view
   ========================================================= */

:root{
  --bg:#ffffff; --ink:#0a0a0a; --muted:#6b7280; --line:#e5e7eb;
  --glass:rgba(255,255,255,.7); --shadow:0 20px 60px rgba(0,0,0,.08);
  --ring:rgba(0,0,0,.08);
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{
  height:100%;
  scroll-behavior:smooth;
}

body{
  height:100%;
  margin:0;
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  max-width:100%;
  display:block;
  height:auto;
}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}

/* Nav - Optimized with containment */
/* Nav - Fixed across all pages */
nav{
  position:fixed;
  top:-50;
  bottom: 1023;
  left:0;
  right:0;
  z-index:50;
  backdrop-filter:saturate(180%) blur(18px);
  background:var(--glass);
  border-bottom:1px solid rgba(0,0,0,.06);
  transform:translateZ(0) translateY(0);
  transition:none;
  contain:layout style;
}

nav.nav--hidden{
  transform:translateZ(0) translateY(0) !important;
}

/* Add padding to body to account for fixed header */
body{
  padding-top:0px;
}

.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
}

.brand{
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.brand span{
  opacity:.6;
  font-weight:500;
}

.menu{
  display:flex;
  gap:16px;
  align-items:center;
}

.menu a{
  font-size:14px;
  color:#111827;
  opacity:.8;
  position:relative;
  transition:opacity .2s ease;
}

.menu a:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-6px;
  height:1px;
  background:#111827;
  transform:scaleX(0) translateZ(0);
  transform-origin:left;
  transition:transform .35s ease;
}

.menu a:hover{
  opacity:1;
}

.menu a:hover:after{
  transform:scaleX(1) translateZ(0);
}

.burger{
  display:none;
  gap:6px;
  flex-direction:column;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:8px;
}

.burger span{
  width:22px;
  height:2px;
  background:#111827;
  opacity:.8;
  border-radius:2px;
  transition:all .3s ease;
  transform:translateZ(0);
}

.lang-toggle{
  margin-left:10px;
  border:1px solid var(--line);
  background:#fff;
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  cursor:pointer;
  transition:background .25s ease,transform .25s ease;
  transform:translateZ(0);
}

.lang-toggle:hover{
  background:#f9fafb;
  transform:translateZ(0) translateY(-1px);
}

/* Mobile menu - Optimized */
.menu.mobile-open{
  display:flex;
  flex-direction:column;
  position:absolute;
  top:72px;
  right:24px;
  background:white;
  padding:16px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  box-shadow:0 20px 40px rgba(0,0,0,.08);
  min-width:200px;
  transform:translateZ(0);
}

.page{
  opacity:1;
}

.divider{
  height:1px;
  margin:40px 0;
}

/* Success/Error Messages */
.success-banner, .error-banner{
  padding:16px;
  border-radius:12px;
  margin-bottom:24px;
  text-align:center;
}

.success-banner{
  background:#ecfdf5;
  border:1px solid #d1fae5;
  color:#065f46;
}

.error-banner{
  background:#fef2f2;
  border:1px solid #fecaca;
  color:#991b1b;
}

/* Hero - GPU Accelerated */
.hero{
  position:relative;
  isolation:isolate;
  min-height:50vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:
   radial-gradient(1000px 400px at 50% -10%, #f9fafb 40%, transparent 60%),
   radial-gradient(800px 300px at 0% 100%, #f8fafc 0%, transparent 60%),
   radial-gradient(700px 300px at 100% 100%, #f8fafc 0%, transparent 60%);
  overflow:hidden;
  padding:40px 24px;
  contain:layout paint;
}

.hero .back-ornament{
  position:absolute;
  inset:-20% -10% auto -10%;
  height:40vh;
  z-index:-1;
  background:
   radial-gradient(600px 200px at 30% 20%, rgba(0,0,0,.06), transparent 60%),
   radial-gradient(600px 240px at 70% 10%, rgba(0,0,0,.05), transparent 60%);
  transform:translateZ(0);
  will-change:transform;
  transition:transform .6s cubic-bezier(.2,.7,.2,1);
}

.hero h1{
  font-size:clamp(36px,6vw,68px);
  line-height:1.08;
  font-weight:600;
  letter-spacing:-.02em;
  margin:0 0 18px;
}

.hero p{
  max-width:720px;
  margin:0 auto 28px;
  color:var(--muted);
  font-size:clamp(16px,2.3vw,18px);
}

.cta{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:8px;
}

/* Buttons - GPU Optimized */
.btn{
  appearance:none;
  border:0;
  cursor:pointer;
  padding:14px 22px;
  border-radius:999px;
  font-weight:500;
  font-size:14px;
  transition:transform .25s ease,box-shadow .25s ease,background .25s ease;
  display:inline-flex;
  align-items:center;
  gap:10px;
  box-shadow:0 1px 0 rgba(0,0,0,.04),0 10px 24px rgba(0,0,0,.06);
  transform:translateZ(0);
  backface-visibility:hidden;
}

.btn-primary{
  background:#111827;
  color:#fff;
}

.btn-primary:hover{
  transform:translateZ(0) translateY(-2px) scale(1.02);
  box-shadow:0 16px 44px rgba(0,0,0,.14);
}

.btn-ghost{
  background:#fff;
  color:#111827;
  border:1px solid var(--line);
}

.btn-ghost:hover{
  background:#f9fafb;
  transform:translateZ(0) translateY(-1px);
}

/* TYPEWRITER EFFECT - Hardware accelerated */
.rotate-wrap{
  display:inline-block;
  position:relative;
  vertical-align:top;
}

.rotate-word{
  display:inline-block;
  min-width:180px;
  text-align:left;
}

.caret{
  display:inline-block;
  width:2px;
  height:.85em;
  background:#111827;
  margin-left:4px;
  opacity:.8;
  animation:blink 0.8s steps(1,end) infinite;
  transform:translateZ(0);
}

@keyframes blink{
  0%, 50%{opacity:.8}
  51%, 100%{opacity:0}
}

/* Panels - Optimized with containment */
.panel-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:18px;
  margin:24px 0 90px;
}

.panel{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  background:#0b0b0c;
  color:#fff;
  min-height:360px;
  box-shadow:var(--shadow);
  transition:transform .6s cubic-bezier(.2,.7,.2,1);
  transform:translateZ(0);
  contain:layout paint;
}

.panel:hover{
  transform:translateZ(0) translateY(-4px);
}

.panel.light{
  background:#f8fafc;
  color:#111827;
}

.panel .inner{
  position:absolute;
  inset:0;
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  z-index:2;
}

.panel h3{
  font-size:28px;
  letter-spacing:-.02em;
  margin:0 0 6px;
}

.panel p{
  margin:0 0 16px;
  color:rgba(255,255,255,.86);
}

.panel.light p{
  color:#4b5563;
}

.panel .tag{
  position:absolute;
  top:16px;
  left:16px;
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(6px);
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  z-index:2;
}

.panel.light .tag{
  background:#fff;
  border:1px solid var(--line);
}

.panel .art{
  position:absolute;
  inset:0;
  opacity:.9;
  background:
   radial-gradient(700px 280px at 60% 0%, rgba(255,255,255,.15), transparent 60%),
   linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,0));
  transform:translateZ(0) scale(1);
  transition:transform .6s ease;
}

.panel.light .art{
  background:
   radial-gradient(700px 280px at 20% 0%, rgba(0,0,0,.04), transparent 60%),
   linear-gradient(180deg,#fff,#f9fafb);
  opacity:1;
}

.panel:hover .art{
  transform:translateZ(0) scale(1.04);
}

.panel-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0.8;
}

.panel.light .panel-img{
  opacity:0.6;
}

/* How it works section */
.howit{
  padding:60px 0;
}

.steps{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:32px;
  margin-top:48px;
}

.step{
  text-align:center;
  padding:24px;
  contain:layout style;
}

.glyph{
  width:56px;
  height:56px;
  border-radius:50%;
  background:#111827;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:600;
  margin:0 auto 20px;
}

/* Gallery grid - Optimized */
.page-header{
  padding:72px 0 10px;
  text-align:center;
}

.page-header h2{
  font-size:40px;
  letter-spacing:-.02em;
  margin:0 0 8px;
}

.page-header p{
  margin:0;
  color:var(--muted);
}

/* Language Tabs */
.language-tabs{
  display:flex;
  justify-content:center;
  gap:12px;
  margin:32px 0;
}

.tab-btn{
  appearance:none;
  border:2px solid var(--line);
  background:#fff;
  color:#111827;
  padding:14px 32px;
  border-radius:999px;
  font-size:16px;
  font-weight:500;
  cursor:pointer;
  transition:all .3s ease;
  transform:translateZ(0);
}

.tab-btn:hover{
  background:#f9fafb;
  transform:translateZ(0) translateY(-2px);
}

.tab-btn.active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

.tab-content{
  display:none;
}

.tab-content.active{
  display:block;
  animation:fadeIn 0.4s ease;
}

@keyframes fadeIn{
  from{opacity:0;transform:translateY(10px) translateZ(0)}
  to{opacity:1;transform:translateY(0) translateZ(0)}
}

.gallery{
  padding:42px 0 84px;
}

.grid{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch;
}

/* Cards - Heavily optimized for performance */
.card{
  position:relative;
  aspect-ratio:16/9;
  border-radius:14px;
  overflow:hidden;
  background:#f3f4f6;
  cursor:pointer;
  box-shadow:0 1px 0 rgba(0,0,0,.04),0 10px 28px rgba(0,0,0,.07);
  transform:translateZ(0);
  transition:transform .45s cubic-bezier(.2,.7,.2,1),box-shadow .45s ease;
  backface-visibility:hidden;
  contain:layout paint;
}

.card:hover{
  transform:translateZ(0) translateY(-6px) scale(1.02);
  box-shadow:0 18px 50px rgba(0,0,0,.12);
}

.card .img{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transition:transform .6s cubic-bezier(.2,.7,.2,1);
  transform:translateZ(0);
}

.card:hover .img{
  transform:translateZ(0) scale(1.05);
}

.card .overlay{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.25));
  color:#fff;
  opacity:0;
  transition:opacity .35s ease;
  font-size:14px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.card:hover .overlay{
  opacity:1;
}

/* Story detail */
.story-wrap{
  max-width:860px;
  margin:0 auto;
  padding:32px 24px 80px;
}

.hero-img{
  height:450px;
  border-radius:0px;
  background-size:cover;
  background-position:center;
  box-shadow:var(--shadow);
  display:grid;
  place-items:center;
  color:#e5e7eb;
  margin-bottom:0px;
  position:relative;
  transform:translateZ(0);
}

.hero-img::before{
  content:'';
  position:absolute;
  inset:0;
  background:transparent;
  border-radius:18px;
}

.story-text{
  font-family:"Merriweather",serif;
  font-size:18px;
  line-height:1.7;
  color:#111827;
  text-align:justify;
}

.story-text p{
  margin:0 0 5px;
}

.reflect{
  margin:36px 0;
  padding:22px;
  border-left:3px solid #e5e7eb;
  background:#f9fafb;
  border-radius:12px;
  font-style:italic;
}

.story-nav{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:24px;
  flex-wrap:wrap;
}

.pill{
  border:1px solid var(--line);
  padding:12px 16px;
  border-radius:999px;
  font-size:14px;
  transition:transform .25s ease,background .25s ease;
  display:inline-block;
  transform:translateZ(0);
}

.pill:hover{
  background:#f1f5f9;
  transform:translateZ(0) translateY(-1px);
}

/* Forms */
.form-container{
  max-width:720px;
  margin:0 auto;
  padding:24px;
}

.form{
  width:100%;
}

.block{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:24px;
  margin-bottom:16px;
  box-shadow:0 6px 24px rgba(0,0,0,.04);
  transition:transform .35s ease;
  transform:translateZ(0);
}

.block:hover{
  transform:translateZ(0) translateY(-2px);
}

.block h3{
  margin:0 0 6px;
  font-size:24px;
}

.block p{
  margin:0 0 16px;
  color:var(--muted);
}

.field{
  margin:12px 0;
}

label{
  display:block;
  font-size:13px;
  margin-bottom:6px;
  color:#374151;
  font-weight:500;
}

input,textarea{
  width:100%;
  font:inherit;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  transition:border-color .2s ease,box-shadow .2s ease;
}

textarea{
  min-height:140px;
  resize:vertical;
  font-family:"Merriweather",serif;
}

input:focus,textarea:focus{
  outline:0;
  border-color:#111827;
  box-shadow:0 0 0 6px var(--ring);
}

input[type="file"]{
  padding:8px 12px;
}

.success{
  display:none;
  margin-top:12px;
  background:#ecfdf5;
  border:1px solid #d1fae5;
  color:#065f46;
  padding:12px 14px;
  border-radius:12px;
}

/* Content pages */
.content{
  max-width:720px;
  margin:0 auto;
  padding:72px 24px;
}

.content h1{
  font-size:40px;
  letter-spacing:-.02em;
  margin:0 0 24px;
}

.content p{
  margin:0 0 16px;
  line-height:1.7;
}

.content .reflect{
  margin:32px 0;
  padding:24px;
  background:#f8fafc;
  border-left:4px solid #111827;
  border-radius:12px;
  font-style:italic;
  font-size:18px;
}

/* Footer */
footer{
  border-top:1px solid var(--line);
  background:#f9fafb;
  margin-top:0px;
}

.footer{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:18px;
  padding:36px 24px;
}

.foot h4{
  margin:0 0 10px;
  font-weight:600;
}

.foot a{
  display:block;
  color:#374151;
  font-size:14px;
  padding:8px 8px;
  transition:color .2s ease;
}

.foot a:hover{
  color:#111827;
}

.foot.nav-horizontal a{
  display:inline-block;
  margin-right:16px;
  padding:6px 0;
}

.copyright{
  text-align:center;
  color:#9ca3af;
  padding:16px;
  border-top:1px solid var(--line);
  font-size:14px;
}

/* Social icons */
.icons{
  display:flex;
  gap:10px;
  margin-top:8px;
}

.icon{
  width:36px;
  height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1px solid var(--line);
  transition:transform .2s ease,box-shadow .2s ease;
  color:#111827;
  transform:translateZ(0);
}

.icon svg{
  display:block;
  flex-shrink:0;
}

.icon:hover{
  transform:translateZ(0) translateY(-2px) scale(1.02);
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}

/* Reveal - Optimized */
.reveal{
  opacity:0;
  transform:translateY(14px) translateZ(0);
  transition:opacity .6s ease,transform .6s ease;
}

.reveal.on{
  opacity:1;
  transform:translateY(0) translateZ(0);
}

/* Contact Page Styles */
.contact-hero{
  background:linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color:white;
  padding:80px 24px;
  text-align:center;
  position:relative;
  overflow:hidden;
  contain:layout paint;
}

.contact-hero::before{
  content:'';
  position:absolute;
  top:-50%;
  right:-10%;
  width:500px;
  height:500px;
  background:rgba(255,255,255,0.1);
  border-radius:50%;
  animation:float 6s ease-in-out infinite;
  transform:translateZ(0);
}

.contact-hero::after{
  content:'';
  position:absolute;
  bottom:-30%;
  left:-5%;
  width:400px;
  height:400px;
  background:rgba(255,255,255,0.08);
  border-radius:50%;
  animation:float 8s ease-in-out infinite reverse;
  transform:translateZ(0);
}

@keyframes float{
  0%, 100%{transform:translateY(0) translateZ(0)}
  50%{transform:translateY(-30px) translateZ(0)}
}

.contact-hero h1{
  font-size:clamp(36px, 6vw, 56px);
  margin:0 0 16px;
  font-weight:700;
  position:relative;
  z-index:1;
}

.contact-hero p{
  font-size:clamp(16px, 2.5vw, 20px);
  margin:0 auto;
  max-width:600px;
  opacity:0.95;
  position:relative;
  z-index:1;
  line-height:1.6;
}

.contact-content{
  max-width:900px;
  margin:-60px auto 80px;
  padding:0 24px;
  position:relative;
  z-index:10;
}

.contact-card{
  background:white;
  border-radius:24px;
  padding:48px;
  box-shadow:0 20px 60px rgba(0,0,0,0.12);
}

.motivational-quotes{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:24px;
  margin:60px auto 80px;
  max-width:1200px;
  padding:0 24px;
}

.quote-card{
  background:linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding:32px;
  border-radius:16px;
  text-align:center;
  transition:transform 0.3s ease;
  transform:translateZ(0);
}

.quote-card:hover{
  transform:translateZ(0) translateY(-8px);
}

.quote-icon{
  font-size:48px;
  margin-bottom:16px;
}

.quote-text{
  font-size:16px;
  font-weight:500;
  color:#2d3748;
  font-style:italic;
  line-height:1.6;
}

.form-field-animated input,
.form-field-animated textarea{
  transition:all 0.3s ease;
}

.form-field-animated input:focus,
.form-field-animated textarea:focus{
  transform:translateZ(0) translateY(-2px);
  box-shadow:0 8px 24px rgba(102, 126, 234, 0.15);
}

/* Feature Grid */
.feature-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:32px;
  margin-top:48px;
}

.feature-item{
  text-align:center;
}

.feature-icon{
  width:60px;
  height:60px;
  margin:0 auto 16px;
  background:#667eea;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-size:24px;
}

.feature-icon.purple{
  background:#764ba2;
}

.feature-item h3{
  font-size:18px;
  margin:0 0 8px;
}

.feature-item p{
  font-size:14px;
  color:#6b7280;
  margin:0;
}

/* Hero Section - Reusable */
.page-hero{
  background:linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color:white;
  padding:100px 24px 60px;
  text-align:center;
  position:relative;
  overflow:hidden;
  contain:layout paint;
}

.page-hero::before{
  content:'';
  position:absolute;
  top:-50%;
  right:-10%;
  width:500px;
  height:500px;
  background:rgba(255,255,255,0.1);
  border-radius:50%;
  animation:float 6s ease-in-out infinite;
  transform:translateZ(0);
}

.page-hero::after{
  content:'';
  position:absolute;
  bottom:-30%;
  left:-5%;
  width:400px;
  height:400px;
  background:rgba(255,255,255,0.08);
  border-radius:50%;
  animation:float 8s ease-in-out infinite reverse;
  transform:translateZ(0);
}

.page-hero h1{
  font-size:clamp(40px, 6vw, 64px);
  margin:0 0 20px;
  font-weight:700;
  position:relative;
  z-index:1;
  letter-spacing:-0.02em;
}

.page-hero p{
  font-size:clamp(16px, 2.5vw, 20px);
  margin:0 auto;
  max-width:720px;
  opacity:0.95;
  position:relative;
  z-index:1;
  line-height:1.7;
}

/* Logo - static, no animation */
.logo-animate{
  display: block;
  height: 40px;
  width: auto;
  transform: none;
  animation: none;
  backface-visibility: visible;
}


/* Active menu indicator */
.menu a.active{
  opacity:1;
  font-weight:600;
}

.menu a.active:after{
  transform:scaleX(1) translateZ(0);
  background:#111827;
}

.story-nav-arrow:hover{
  transform:translateZ(0) translateY(-2px);
  box-shadow:0 4px 12px rgba(0,0,0,.1);
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce){
  *,*:before,*:after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
  .caret{
    animation:none !important;
  }
}

/* =========================================================
   RESPONSIVE: TABLET & BELOW (<= 1024px)
   ========================================================= */

@media (max-width:1024px){
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .panel-grid{grid-template-columns:1fr;gap:18px}
  .steps{grid-template-columns:1fr;gap:24px}
  .footer{grid-template-columns:1fr 1fr}
}

/* =========================================================
   RESPONSIVE: MOBILE & SMALL TABLET (<= 768px)
   ========================================================= */

@media (max-width:768px){
  .container{padding:0 10px}
  .menu{display:none}
  .burger{display:flex}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero{min-height:78vh;padding:0 10px}
  .hero h1{font-size:clamp(28px,8vw,48px)}
  .hero p{font-size:15px}
  .cta{flex-direction:column;align-items:center}
  .btn{padding:5px 10px;font-size:12px}
  .panel{min-height:170px}
  .panel .inner{padding:5px}
  .panel h3{font-size:10px}
  .panel-grid{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .story-wrap{padding:24px 16px 60px}
  .hero-img{height:300px}
  .story-text{font-size:16px}
  .story-nav{flex-direction:column;gap:8px}
  .form-container{padding:16px}
  .block{padding:20px}
  .page-header{padding:48px 0 0px}
  .page-header h2{font-size:22px}
  .content{padding:48px 16px}
  .content h1{font-size:32px}
  .rotate-word{min-width:140px}
  .contact-card{padding:32px 24px}
  .motivational-quotes{grid-template-columns:1fr}
  .page-hero{padding:80px 16px 40px}
  .hide-on-mobile{display:none !important}
}

/* =========================================================
   RESPONSIVE: SMALL MOBILE (<= 520px)
   ========================================================= */

@media (max-width:520px){
  .grid{grid-template-columns:1fr}
  .panel-grid{margin:16px 0 60px;grid-template-columns:1fr}
  .steps{gap:0px;grid-template-columns:1fr}
  .step{padding:16px}
  .glyph{width:30px;height:30px;font-size:15px}
  .footer{grid-template-columns:1fr;gap:5px;text-align:center}
  .icons{justify-content:center}
  .rotate-word{min-width:120px}
  .foot.nav-horizontal{text-align:center}
  .foot.nav-horizontal a{margin-right:12px;font-size:13px}
  .foot.nav-horizontal a:last-child{margin-right:0}
}


/* ----------------------------------------
   STORY PANEL META STYLING (Unified EN/HI)
---------------------------------------- */

.panel-dark {
  background: #0c0c0d;
}

.story-meta {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
}

.story-author {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.story-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.no-top-pad {
  padding-top: 0 !important;
}

/* ----------------------------------------
   MOBILE OVERRIDES
---------------------------------------- */

@media (max-width: 576px) {
  .story-meta {
    top: 6px;
    left: 2px;
  }

  .story-author {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .story-title {
    font-size: 15px;
  }
}

/* =========================================================
   STORY PAGE (TIMELINE) STYLES
   Scoped to .page--story to avoid conflicts
   ========================================================= */

.page--story .timeline-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 6px 0;
}

/* Post Card */
.page--story .post-card {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Headline */
.page--story .post-headline {
    padding: 16px 20px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.page--story .post-headline.awaiting-story {
    color: #9ca3af;
    font-style: italic;
}

/* Image Section */
.page--story .post-image-section {
    position: relative;
    background: #f3f4f6;
}

.page--story .post-image {
    width: 100%;
    height: auto;
    display: block;
}

.page--story .contributor-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    text-decoration: none;
}

.page--story .contributor-badge:hover {
    background: rgba(0, 0, 0, 0.9);
}

.page--story .image-like-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page--story .image-like-btn:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: scale(1.05);
}

.page--story .image-meta {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #ffffff;
}

.page--story .image-meta-item {
    background: rgba(0, 0, 0, 0.75);
    padding: 6px 12px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

/* Story Section */
.page--story .post-story-section {
    padding: 20px;
}

.page--story .story-author {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.page--story .story-author a {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.page--story .story-author a:hover {
    text-decoration: underline;
}

.page--story .story-content {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 16px;
    white-space: pre-wrap;
    text-align: justify;
}

.page--story .story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
}

.page--story .story-stats {
    display: flex;
    gap: 16px;
}

/* Story Navigation */
.page--story .story-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 12px;
}

.page--story .story-nav-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.page--story .story-nav-btn:hover:not(:disabled) {
    background: #f3f4f6;
    color: #111827;
}

.page--story .story-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page--story .story-indicator {
    font-size: 13px;
    color: #6b7280;
}

/* Dots Indicator */
.page--story .dots-indicator {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
    margin-bottom: 12px;
}

.page--story .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s;
}

.page--story .dot.active {
    background: #111827;
    transform: scale(1.3);
}

.page--story .dot:hover {
    background: #9ca3af;
}

/* Action Buttons */
.page--story .post-actions {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    justify-content: center;
    flex-wrap: wrap;
}

.page--story .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.page--story .btn-like {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #374151;
}

.page--story .btn-like:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.page--story .btn-like.liked {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.page--story .btn-like.liked svg {
    fill: #ef4444;
}

.page--story .btn-write {
    background: #111827;
    color: #ffffff;
}

.page--story .btn-write:hover {
    background: #1f2937;
}

.page--story .btn-share {
    background: #f3f4f6;
    color: #374151;
}

.page--story .btn-share:hover {
    background: #e5e7eb;
}

/* Loading Indicator */
.page--story .loading-indicator {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 14px;
}

.page--story .loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #111827;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.page--story .empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
}

.page--story .empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.page--story .empty-state-text {
    font-size: 18px;
    margin: 0 0 8px;
}

.page--story .empty-state-subtext {
    font-size: 14px;
    color: #9ca3af;
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
    .page--story .timeline-container {
        padding: 80px 12px 40px;
    }
    
    .page--story .post-card {
        border-radius: 0;
        margin-bottom: 32px;
    }
    
    .page--story .post-actions {
        flex-direction: column;
    }
    
    .page--story .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   AUTHOR PAGE – INSTAGRAM STYLE
   Scoped to .page--author
   ========================================================= */

.page--author .author-page {
    max-width: 1000px;
    margin: 80px auto 60px;
    padding: 0 24px;
}

/* Profile Header */
.page--author .author-header {
    display: flex;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #e5e7eb;
}

.page--author .author-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    flex-shrink: 0;
}

.page--author .author-info {
    flex: 1;
}

.page--author .author-username {
    font-size: 28px;
    font-weight: 400;
    color: #111827;
    margin: 0 0 20px;
}

/* Stats */
.page--author .author-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.page--author .author-stat {
    display: flex;
    gap: 4px;
    font-size: 16px;
}

.page--author .author-stat strong {
    font-weight: 600;
    color: #111827;
}

.page--author .author-stat span {
    color: #6b7280;
}

.page--author .author-bio {
    color: #374151;
    line-height: 1.6;
    font-size: 15px;
    white-space: pre-wrap;
}

/* Tab Navigation */
.page--author .tab-navigation {
    display: flex;
    justify-content: center;
    gap: 60px;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

.page--author .tab-nav-btn {
    padding: 16px 0;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.page--author .tab-nav-btn.active {
    color: #111827;
}

.page--author .tab-nav-btn.active::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: #111827;
}

.page--author .tab-nav-btn:hover {
    color: #111827;
}

/* Language Tabs */
.page--author .language-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.page--author .lang-tab-btn {
    padding: 10px 24px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.page--author .lang-tab-btn.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.page--author .lang-tab-btn:hover {
    border-color: #9ca3af;
}

/* Image Grid */
.page--author .image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 48px;
}

.page--author .grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f3f4f6;
    border-radius: 8px;
}

.page--author .grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.page--author .grid-item:hover img {
    transform: scale(1.05);
}

.page--author .grid-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.page--author .grid-item:hover .grid-item-overlay {
    opacity: 1;
}

.page--author .overlay-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Story Count Badge */
.page--author .story-count-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(8px);
}

/* Empty State */
.page--author .empty-state {
    text-align: center;
    padding: 80px 24px;
    color: #6b7280;
}

.page--author .empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.page--author .empty-state-text {
    font-size: 18px;
    margin: 0 0 8px;
}

.page--author .empty-state-subtext {
    font-size: 14px;
    color: #9ca3af;
}

/* Tab Content */
.page--author .tab-content {
    display: none;
}

.page--author .tab-content.active {
    display: block;
}

.page--author .lang-content {
    display: none;
}

.page--author .lang-content.active {
    display: block;
}

/* Responsive <= 768px */
@media (max-width: 768px) {
    .page--author .author-header {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .page--author .author-avatar {
        width: 100px;
        height: 100px;
        font-size: 36px;
    }
    
    .page--author .author-username {
        font-size: 24px;
    }
    
    .page--author .author-stats {
        justify-content: center;
        gap: 24px;
    }
    
    .page--author .author-stat {
        font-size: 14px;
    }
    
    .page--author .tab-navigation {
        gap: 40px;
    }
    
    .page--author .image-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
    }
}

/* Follow Button */
.page--author .follow-btn {
    padding: 8px 32px;
    background: #0095f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
    display: inline-block;
    text-decoration: none;
}

.page--author .follow-btn:hover {
    background: #1877f2;
}

.page--author .follow-btn.following {
    background: transparent;
    color: #111827;
    border: 1px solid #d1d5db;
    position: relative;
}

.page--author .follow-btn.following:hover {
    background: #fee;
    border-color: #ef4444;
    color: #ef4444;
}

/* Back link at bottom */
.page--author .author-back-link {
    text-align: center;
    margin-top: 48px;
}

.page--author .author-back-link__anchor {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
}

/* =========================================================
   ABOUT PAGE
   Scoped to .page--about
   ========================================================= */

.page--about .content {
  max-width: 720px;
  margin: 96px auto 80px;
  padding: 0 24px;
}

.page--about .about-intro {
  font-size: 18px;
  line-height: 1.8;
  color: #6b7280;
  margin-bottom: 48px;
}

.page--about .reflect {
  margin: 40px 0;
  font-size: 18px;
  line-height: 1.8;
  color: #111827;
  font-style: italic;
}

.page--about .about-heading {
  font-size: 28px;
  margin: 48px 0 24px;
}

.page--about .about-text {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

.page--about .about-text--spaced {
  margin-top: 48px;
}

/* =========================================================
   LEGAL PAGES (Privacy, Terms, etc.)
   Scoped to .page--legal
   ========================================================= */

.page--legal .legal-page {
    max-width: 900px;
    margin: 80px auto 60px;
    padding: 0 24px;
}

.page--legal .legal-page h1 {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.page--legal .last-updated {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 48px;
}

.page--legal .legal-page h2 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 48px 0 16px;
}

.page--legal .legal-page h3 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 32px 0 12px;
}

.page--legal .legal-page p {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 16px;
}

.page--legal .legal-page ul {
    margin: 16px 0;
    padding-left: 24px;
}

.page--legal .legal-page li {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 8px;
}

.page--legal .legal-page a {
    color: #667eea;
    text-decoration: underline;
}

.page--legal .legal-page a:hover {
    color: #764ba2;
}

.page--legal .back-link {
    text-align: center;
    margin-top: 48px;
}

.page--legal .back-link a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .page--legal .legal-page {
        padding: 0 16px;
        margin: 60px auto 40px;
    }
    
    .page--legal .legal-page h1 {
        font-size: 28px;
    }
    
    .page--legal .legal-page h2 {
        font-size: 20px;
    }
}

/* ================================================
   HEADER CLEANUP – language tabs + logo fixes
   ================================================ */

.logo-animate {
  display: block;
  height: 40px;
  width: auto;
}

/* Language Tabs (Story page only) */
.language-tabs-header {
  display: none;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 70px;
  z-index: 999;
}

body[data-page="story"] .language-tabs-header {
  display: flex;
}

.lang-tab-header {
  padding: 10px 24px;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.lang-tab-header.active {
  background: #111827;
  color: white;
  border-color: #111827;
}

.lang-tab-header:hover {
  border-color: #9ca3af;
}
