/* General Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body,html{
  width:100%;
  height:100%;
  background:linear-gradient(135deg,#fff8ee,#fff1dc);
  font-family:'Poppins',sans-serif;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    background-color: transparent !important;
    border-bottom: 1px solid transparent;
    backdrop-filter: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 248, 238, 0.96) !important;
    border-bottom-color: rgba(97, 55, 34, 0.08);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 28px rgba(69, 38, 24, 0.12);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 1rem 0.45rem 0.5rem;
    border: 1px solid rgba(107, 62, 39, 0.12);
    border-radius: 999px;
    color: #43291f !important;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 18px rgba(83, 46, 27, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(83, 46, 27, 0.16);
}

.brand-mark {
    display: inline-grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border-radius: 50%;
    color: #fff8ee;
    background: linear-gradient(145deg, #572d46, #a64232 58%, #e87932);
    box-shadow: 0 4px 12px rgba(128, 55, 39, 0.25);
    font-size: 1.05rem;
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.brand-tagline {
    margin-top: 0.22rem;
    color: #8a6250;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.navbar-toggler {
    border-color: rgba(87, 45, 70, 0.3);
}

/* Hero Section - overlapped by navbar */
/* .hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    padding: 120px 0 80px !important;
    margin-top: 0;
    position: relative;
}

.hero-section h1 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
} */

/* HERO */
.hero{
  position:relative;
  width:100%;
  height:100vh;
  isolation:isolate;
}

/* BACKGROUND ALPHABETS */
.alphabet-bg{
  position:absolute;
  inset:0;
  z-index:1;
}

.letter{
  position:absolute;
  font-size:1.6rem;
  font-weight:700;
  animation:float 6s ease-in-out infinite;
}

@keyframes float{
  0%{transform:translateY(0);}
  50%{transform:translateY(-10px);}
  100%{transform:translateY(0);}
}

/* CENTER CONTENT */
.hero-center{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  z-index:3;
  text-align:center;
}

/* HERO SLIDER CONTAINER */
.hero-slider-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* LANGUAGE BOX */
.language-box {
  background: #fff;
  border: 4px solid;
  padding: 28px 64px;
  border-radius: 18px;
  transition: all 0.5s ease;
}

/* NATIVE WORD */
.native-word {
  font-family: 'Noto Serif', serif;
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
}

/* NATIVE BOX */
.native-box{
  margin-top:22px;
  display:inline-block;
  padding:12px 34px;
  border-radius:12px;
  background-color: inherit;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* NATIVE BOX WORD */
.native-box-word{
  font-size:1.3rem;
  font-weight:800;
  letter-spacing:0.35em;
  color:#fff;
}

/* Language Cards */
.languages-section {
    padding: 60px 0;
}

.language-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.language-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

.language-card .card-header {
    padding: 20px;
    border-bottom: none;
}

.language-card .card-header h5 {
    font-weight: 600;
    font-size: 1.3rem;
}

.language-card .card-body {
    padding: 25px;
}

.language-card .card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.language-card .btn {
    border-radius: 5px;
    font-weight: 600;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.language-card .btn:hover {
    transform: scale(1.05);
}

/* Language Detail Page */
.language-detail-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.language-detail-header h1 {
    font-weight: 700;
}

/* Footer Styles */
footer {
    margin-top: 50px;
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

footer h5 {
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

footer ul li {
    margin-bottom: 8px;
}

footer a:hover {
    color: white !important;
    text-decoration: underline !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.scroll-top-btn:hover {
    background-color: #0b5ed7;
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 !important;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .language-card {
        margin-bottom: 15px;
    }

    .languages-section {
        padding: 40px 0;
    }

    footer {
        margin-top: 30px;
    }

    footer .row {
        text-align: center;
    }

    footer .col-md-4 {
        margin-bottom: 20px;
    }

    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .language-detail-header {
        padding: 20px 0;
    }

    .language-detail-header h1 {
        font-size: 1.8rem;
    }

    /* Responsive Hero Elements */
    .language-box {
        padding: 20px 40px;
        border: 3px solid;
    }

    .native-word {
        font-size: 4rem;
    }

    .native-box {
        margin-top: 16px;
        padding: 10px 25px;
        font-size: 1.1rem;
    }

    .native-box-word {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }

    .slider-controls {
        bottom: 30px;
        gap: 20px;
        padding: 15px 20px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-dots {
        gap: 8px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .languages-section {
        padding: 30px 0;
    }

    .navbar-brand {
        gap: 0.55rem;
        padding-right: 0.8rem;
    }

    .brand-mark {
        width: 2.35rem;
        height: 2.35rem;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .brand-tagline {
        font-size: 0.55rem;
    }

    .language-card .card-header h5 {
        font-size: 1.1rem;
    }

    .language-card .card-body {
        padding: 15px;
    }

    /* Responsive Hero Elements for Small Mobile */
    .language-box {
        padding: 15px 25px;
        border: 2px solid;
    }

    .native-word {
        font-size: 2.5rem;
    }

    .native-box {
        margin-top: 12px;
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .native-box-word {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
    }

    .slider-controls {
        bottom: 20px;
        gap: 15px;
        padding: 12px 15px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .slider-dots {
        gap: 6px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }
}

/* Extra Small Screens (480px and below) */
@media (max-width: 480px) {
    .language-box {
        padding: 12px 20px;
        border: 2px solid;
    }

    .native-word {
        font-size: 2rem;
    }

    .native-box {
        margin-top: 10px;
        padding: 6px 16px;
        font-size: 0.8rem;
    }

    .native-box-word {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }

    .slider-controls {
        bottom: 15px;
        gap: 12px;
        padding: 10px 12px;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .slider-dots {
        gap: 5px;
    }

    .slider-dot {
        width: 6px;
        height: 6px;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-card {
    animation: slideInUp 0.5s ease-out;
}

/* Sticky Header */
.navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Additional Utility Classes */
.fw-bold {
    font-weight: 700;
}

.text-muted {
    color: #6c757d !important;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 20px 30px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Slider Buttons */
.slider-btn {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.slider-btn:active {
  transform: scale(0.95);
}

/* Slider Dots */
.slider-dots {
  display: flex;
  gap: 12px;
  align-items: center;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.slider-dot.active {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Hero Slide Animations */
.hero {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* Slide-in Animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero center animations */
.hero-center {
  animation: scaleIn 0.6s ease-out 0.2s both;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Language box pulse animation */
.language-box {
  animation: pulse 0.6s ease-out 0.3s both;
}

@keyframes pulse {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/*-----------------------------------------------*/
/* ripple part 1*/
/* SECTION */
.cta-ripple{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
  padding:4rem 1rem;
}

/* RIPPLE CIRCLES */
.ripple{
  position:absolute;
  width:600px;
  height:600px;
  border-radius:50%;
  border:2px solid rgba(249,115,22,0.25);
  animation:ripple 6s linear infinite;
}

.ripple:nth-child(1){ animation-delay:0s; }
.ripple:nth-child(2){ animation-delay:2s; }
.ripple:nth-child(3){ animation-delay:4s; }

/* FLOATING ORBS */
.orb{
  position:absolute;
  width:80px;
  height:80px;
  background:rgba(249,115,22,0.25);
  border-radius:50%;
  animation:float 8s ease-in-out infinite;
}

.orb.one{ top:15%; left:10%; }
.orb.two{ bottom:20%; right:15%; animation-duration:10s;}
.orb.three{ top:25%; right:30%; animation-duration:12s;}

/* CONTENT */
.cta-content{
  position:relative;
  z-index:2;
  max-width:700px;
  animation:fadeUp 1.5s ease forwards;
}

.cta-content h1{
  font-size:clamp(2rem,5vw,3.5rem);
  font-weight:800;
  margin-bottom:1rem;
  color:#7c2d12;
}

.cta-content p{
  font-size:clamp(1.1rem,2.5vw,1.4rem);
  margin-bottom:2rem;
}

/* BUTTON */
.cta-btn{
  display:inline-block;
  padding:1rem 3rem;
  background:#f97316;
  color:white;
  font-weight:700;
  border-radius:50px;
  text-decoration:none;
  animation:pulse 2s infinite;
  transition:transform 0.3s;
}

.cta-btn:hover{
  transform:scale(1.08);
}

/* ANIMATIONS */
@keyframes ripple{
  0%{ transform:scale(0.3); opacity:1; }
  100%{ transform:scale(1.4); opacity:0; }
}

/*-----------------------------------------------*/
@keyframes float{
  0%{ transform:translateY(0);}
  50%{ transform:translateY(-25px);}
  100%{ transform:translateY(0);}
}

@keyframes fadeUp{
  from{ opacity:0; transform:translateY(40px);}
  to{ opacity:1; transform:translateY(0);}
}

@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(249,115,22,0.6);}
  70%{ box-shadow:0 0 0 25px rgba(249,115,22,0);}
  100%{ box-shadow:0 0 0 0 rgba(249,115,22,0);}
}

/* alphabets hero section part 2 */
.alphabets-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 8%;
  gap: 60px;
}

.alphabets-hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.alphabets-hero-text span {
  color: #d74224;
}

.alphabets-hero-text p {
  max-width: 420px;
  color: #d74224;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 30px;
  background: #d74224;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37,99,235,0.3);
}

.alphabets-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.letter-card {
  width: 260px;
  height: 300px;
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.telugu-letter {
  font-size: 6rem;
  color: #f46c50;
  margin-bottom: 10px;
}

.letter-name {
  font-size: 1.2rem;
  color: #d74224;
}

.bubble {
  position: absolute;
  width: 70px;
  height: 70px;
  background: #eb6b52;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  animation: float 5s ease-in-out infinite;
}

.b1 { top: -20px; left: 10%; animation-delay: 0s; }
.b2 { bottom: -10px; right: 15%; animation-delay: 1.5s; }
.b3 { top: 40%; right: -10px; animation-delay: 3s; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/*-----------------------------------------------*/

/*words section part 3*/
/* HERO */
.words-hero{
  min-height:100vh;
  padding:90px 6%;
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* TITLE */
.words-hero-title{
  text-align:center;
  max-width:720px;
  margin-bottom:70px;
  animation:fadeDown 1.1s ease forwards;
}

.words-hero-title h1{
  font-size:3.6rem;
  color:#d74224;
}

.words-hero-title span{
  color:black;
}

.words-hero-title p{
  margin-top:16px;
  font-size:1.1rem;
  color:#d74224;
}

/* ACCORDION */
.accordion{
  display:flex;
  width:100%;
  max-width:1100px;
  height:260px;
  gap:14px;
}

/* TILE */
.tile{
  flex:1;
  border-radius:18px;
  background-color: #fa795f;
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
  box-shadow:0 18px 35px rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:14px;
  cursor:pointer;
  transition:flex .6s ease, background .4s ease;
}

/* ICON */
.tile img{
  width:86px;
  height:86px;
  transition:transform .4s ease;
}

/* TEXT */
.tile span{
  font-size:1.05rem;
  font-weight:600;
  color:#f8fafc;
  transition:transform .4s ease;
}

/* EXPAND */
.tile:hover{
  flex:2.6;
  background:rgba(236, 97, 5, 0.973);
}

.tile:hover img{
  transform:scale(1.2);
}

.tile:hover span{
  transform:translateY(6px);
}

/* ANIMATION */
@keyframes fadeDown{
  from{opacity:0; transform:translateY(-25px);}
  to{opacity:1; transform:translateY(0);}
}

/* RESPONSIVE */

@media (max-width: 992px) {
  .alphabets-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .alphabets-hero-text p {
    margin: auto auto 30px;
  }

  .alphabets-hero-visual {
    margin-top: 50px;
  }
}

@media(max-width:900px){
  .accordion{
    flex-direction:column;
    height:auto;
  }
  .tile{
    height:80px;
  }
  .tile:hover{
    flex:1;
  }
  .hero-title h1{
    font-size:2.6rem;
  }

  .grammer-hero{
    grid-template-columns:1fr;
    gap:60px;
  }
  .grammer-hero-text h1{
    font-size:2.6rem;
  }
}

@media (max-width: 576px) {
  .letter-card {
    width: 220px;
    height: 260px;
  }

  .telugu-letter {
    font-size: 5rem;
  }
}

@media(max-width:600px){
  .ripple{ width:350px; height:350px;}
  .orb{ width:50px; height:50px;}
  .message{max-width:85%;}
}
@media(max-width:480px) {
  .story { font-size: 1rem; padding: 1rem; }
  .shape { width: 120px; height: 120px; }
  .pw-card { padding: 1rem; }
  .pw-word { font-size: 1.3rem; }
}
/*-----------------------------------------------*/

/* Grammer */
/* HERO */
.grammer-hero{
  min-height:100vh;
  padding:80px 8%;
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:80px;
  align-items:center;
}

/* LEFT CONTENT */
.grammer-hero-text{
  animation:fadeLeft 1.1s ease forwards;
}

.grammer-hero-text h1{
  font-size:3.6rem;
  color:#fa795f;
}

.grammer-hero-text span{
  color:#0a0c0d;
}

.grammer-hero-text p{
  margin-top:18px;
  font-size:1.1rem;
  color:#0e0d0c;
  max-width:520px;
}

.grammer-hero-actions{
  margin-top:32px;
  display:flex;
  gap:18px;
}

.grammer-hero-actions button{
  padding:14px 28px;
  border-radius:10px;
  border:none;
  font-size:1rem;
  font-weight:600;
  cursor:pointer;
  transition:.3s ease;
}

.primary{
  background:#fa795f;
  color:#020617;
}

.primary:hover{
  transform:translateY(-3px);
}

.secondary{
  background:transparent;
  border:1px solid #334155;
  color:#e5e7eb;
}

/* RIGHT TILE STACK */
.grammer-tile-stack{
  display:flex;
  flex-direction:column;
  gap:18px;
}

/* TILE */
.grammer-tile{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 22px;
  border-radius:16px;
  background-color: #fa795f;
  border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(10px);
  box-shadow:0 18px 35px rgba(0,0,0,.35);

  opacity:0;
  transform:translateX(40px) scale(.96);
  animation:tileSlide .7s ease forwards;
  transition:transform .35s ease, background .35s ease;
}

/* STAGGER */
.grammer-tile:nth-child(1){animation-delay:.2s}
.grammer-tile:nth-child(2){animation-delay:.35s}
.grammer-tile:nth-child(3){animation-delay:.5s}
.grammer-tile:nth-child(4){animation-delay:.65s}
.grammer-tile:nth-child(5){animation-delay:.8s}
.grammer-tile:nth-child(6){animation-delay:.95s}

/* ICON */
.grammer-tile img{
  width:34px;
  height:34px;
}

/* TEXT */
.grammer-tile span{
  font-size:1.05rem;
  font-weight:600;
  color:#f8fafc;
}

/* HOVER */
.grammer-tile:hover{
  transform:translateX(0) scale(1.05);
  background:rgba(56,189,248,.18);
}

/* ANIMATIONS */
@keyframes tileSlide{
  to{
    opacity:1;
    transform:translateX(0) scale(1);
  }
}

@keyframes fadeLeft{
  from{
    opacity:0;
    transform:translateX(-30px);
  }
  to{
    opacity:1;
    transform:translateX(0);
  }
}

/*-----------------------------------------------*/
/* sentenses section*/
/* SECTION */
.community-section{
  text-align:center;
  position:relative;
  overflow:hidden;
}

.community-section h2{
  font-size:clamp(2rem,5vw,3rem);
  font-weight:800;
  margin-bottom:1rem;
}
.community-section h2 span{
    color:#d74224;
}

.community-section p{
  font-size:clamp(1.1rem,2.5vw,1.4rem);
  margin-bottom:3rem;
}

/* CHAT FLOW */
.chat-flow{
  display:flex;
  flex-direction:column;
  gap:1.5rem;
  max-width:900px;
  margin:auto;
}

/* MESSAGE BUBBLE */
.message{
  max-width:70%;
  padding:1rem 1.5rem;
  border-radius:25px;
  font-size:clamp(1rem,2.2vw,1.2rem);
  line-height:1.6;
  animation:floatUp 1.8s ease forwards;
  opacity:0;
}

.message.left{
  align-self:flex-start;
  background:#fff;
  border-top-left-radius:5px;
}

.message.right{
  align-self:flex-end;
  background-color: #24d74e;
  color:#fff;
  border-top-right-radius:5px;
}

/* STAGGER */
.message:nth-child(1){animation-delay:.2s;}
.message:nth-child(2){animation-delay:.4s;}
.message:nth-child(3){animation-delay:.6s;}
.message:nth-child(4){animation-delay:.8s;}

/* CTA */
.community-cta{
  margin-top:3rem;
}

.community-cta a{
  display:inline-block;
  background:#d74224;
  color:#fff;
  padding:1rem 2.8rem;
  border-radius:50px;
  font-weight:700;
  text-decoration:none;
  font-size:clamp(1rem,2vw,1.2rem);
  transition:.3s;
}

.community-cta a:hover{
  transform:translateY(-6px);
  box-shadow:0 14px 25px rgba(52,211,153,.4);
}

/* FLOATING SHAPES */
.shape{
  position:absolute;
  width:120px;
  height:120px;
  background:var(--accent3);
  border-radius:50%;
  opacity:.15;
  animation:float 8s ease-in-out infinite;
}

.shape.one{top:-40px;left:-40px;}
.shape.two{bottom:-40px;right:-40px;animation-duration:10s;}

/* ANIMATIONS */
@keyframes floatUp{
  from{opacity:0;transform:translateY(30px);}
  to{opacity:1;transform:translateY(0);}
}

@keyframes float{
  0%{transform:translateY(0);}
  50%{transform:translateY(-30px);}
  100%{transform:translateY(0);}
}

/*-----------------------------------------------*/
/* video section */
.live-section {
  background: linear-gradient(135deg,#fff7ed,#fef3c7);
  padding: clamp(4rem,6vw,6rem) 1rem;
  text-align: center;
}

.live-section h2 {
  font-size: clamp(2rem,5vw,3rem);
  font-weight: 800;
}

.sub {
  font-size: clamp(1rem,2.5vw,1.3rem);
  margin: 1rem 0 3rem;
}

.video-stage {
  position: relative;
  max-width: 900px;
  height: 420px;
  margin: auto;
}

.video-frame {
  position: absolute;
  background: #fff;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  animation: floatVideo 6s ease-in-out infinite;
}

.video-frame.big {
  width: 100%;
  height: 100%;
  font-size: 2rem;
  background: #fde68a;
}

.video-frame.small {
  width: 180px;
  height: 120px;
  font-size: 1rem;
}

.video-frame.one {
  top: -30px;
  left: -30px;
  animation-delay: 1s;
}

.video-frame.two {
  bottom: -30px;
  right: -30px;
  animation-delay: 2s;
}

@keyframes floatVideo {
  0% { transform: translateY(0);}
  50% { transform: translateY(-15px);}
  100% { transform: translateY(0);}
}

/*-----------------------------------------------*/

/* stories */
.stories-section{
  text-align: center;
}

.stories-section h2 {
  text-align: center;
  font-size: clamp(2rem,5vw,3rem);
  margin-bottom: 3rem;
  font-weight: 700;
}

/* Story container */
.story-container {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem,3vw,3rem);
  max-width: 900px;
  margin: auto;
  position: relative;
}

/* Story block */
.story {
  background: rgba(255,255,255,0.8);
  border-radius: 20px;
  padding: clamp(1.5rem,3vw,2rem);
  font-size: clamp(1rem,2.5vw,1.2rem);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
}

.stories-section a{
  display:inline-block;
  background:#d74224;
  color:#fff;
  padding:1rem 2.8rem;
  border-radius:50px;
  font-weight:700;
  text-decoration:none;
  font-size:clamp(1rem,2vw,1.2rem);
  transition:.3s;
}

/* Stagger animation for each story */
.story:nth-child(1) { animation-delay: 0.2s; }
.story:nth-child(2) { animation-delay: 0.4s; }
.story:nth-child(3) { animation-delay: 0.6s; }

/* Animated background shapes */
.shape {
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--shape);
  border-radius: 50%;
  top: -50px;
  left: -50px;
  animation: floatShape 6s ease-in-out infinite alternate;
  z-index: -1;
}

.shape:nth-child(2) {
  top: 200px;
  left: auto;
  right: -50px;
  width: 150px;
  height: 150px;
  animation-duration: 8s;
}

/* Keyframes */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px);}
  100% { opacity: 1; transform: translateY(0);}
}

@keyframes floatShape {
  0% { transform: translateY(0) rotate(0deg);}
  50% { transform: translateY(20px) rotate(15deg);}
  100% { transform: translateY(0) rotate(0deg);}
}
/*-----------------------------------------------*/

@media (max-width: 380px) {
    .brand-tagline {
        display: none;
    }
}