/* =========================================================
   UPDELEDSTUDY.IN — GLOBAL STYLE SYSTEM
   FILE: /assets/css/style.css
========================================================= */

/* =========================================================
   ROOT VARIABLES
========================================================= */

:root{
  --bg:#020617;
  --surface:#0f172a;
  --card:#111827;
  --primary:#6366f1;
  --secondary:#8b5cf6;
  --text:#f8fafc;
  --muted:#94a3b8;
  --border:rgba(255,255,255,.08);

  --success:#10b981;
  --warning:#f59e0b;
  --danger:#ef4444;

  --radius-sm:14px;
  --radius-md:22px;
  --radius-lg:34px;

  --shadow:
    0 10px 30px rgba(0,0,0,.25);

  --transition:.3s ease;
}

/* =========================================================
   RESET
========================================================= */

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

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter',sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
  line-height:1.8;
  min-height:100vh;
}

/* =========================================================
   GLOBAL
========================================================= */

img{
  max-width:100%;
  display:block;
}

a{
  text-decoration:none;
  color:inherit;
}

ul{
  list-style:none;
}

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

::selection{
  background:var(--primary);
  color:white;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,h2,h3,h4,h5,h6{
  font-weight:800;
  line-height:1.3;
}

p{
  color:var(--muted);
}

/* Hindi readability */

.hindi-content{
  font-family:'Mukta',sans-serif;
  font-size:18px;
  line-height:2;
  color:#e2e8f0;
}

.hindi-content h2{
  margin-top:50px;
  margin-bottom:20px;
  font-size:2rem;
  color:white;
}

.hindi-content h3{
  margin-top:40px;
  margin-bottom:18px;
  font-size:1.5rem;
  color:white;
}

.hindi-content p{
  margin-bottom:24px;
}

.hindi-content ul{
  margin-bottom:24px;
  padding-left:20px;
}

.hindi-content li{
  margin-bottom:14px;
  list-style:disc;
}

/* =========================================================
   CONTAINER
========================================================= */

.container-custom{
  width:min(1280px,92%);
  margin:auto;
}

/* =========================================================
   GLASSMORPHISM
========================================================= */

.glass{
  background:rgba(255,255,255,.05);
  backdrop-filter:blur(18px);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

/* =========================================================
   GRADIENT TEXT
========================================================= */

.gradient-text{
  background:linear-gradient(
    to right,
    #818cf8,
    #c084fc
  );

  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding:16px 28px;

  border:none;
  border-radius:18px;

  cursor:pointer;

  font-weight:700;
  transition:var(--transition);
}

.btn:hover{
  transform:translateY(-3px);
}

.btn-primary{
  background:linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
  );

  color:white;
}

.btn-secondary{
  background:rgba(255,255,255,.05);
  border:1px solid var(--border);
  color:white;
}

/* =========================================================
   HEADER
========================================================= */

.site-header{
  position:sticky;
  top:0;
  z-index:1000;

  backdrop-filter:blur(20px);

  background:rgba(2,6,23,.75);

  border-bottom:1px solid var(--border);
}

.header-wrapper{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:20px;

  padding:18px 0;
}

.logo{
  font-size:2rem;
  font-weight:900;
}

.logo span{
  color:#818cf8;
}

.navbar{
  display:flex;
  align-items:center;
  gap:34px;
}

.navbar a{
  color:#cbd5e1;
  font-weight:500;
  transition:var(--transition);
}

.navbar a:hover{
  color:white;
}

/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu{
  max-height:0;
  overflow:hidden;

  transition:.35s ease;

  border-top:1px solid var(--border);

  background:rgba(2,6,23,.96);

  backdrop-filter:blur(20px);
}

.mobile-menu.show-mobile-menu{
  max-height:500px;
}

.mobile-menu-links{
  display:flex;
  flex-direction:column;

  gap:20px;

  padding:24px 0;
}

.mobile-menu-links a{
  color:#cbd5e1;

  font-size:1.05rem;

  transition:var(--transition);
}

.mobile-menu-links a:hover{
  color:white;
}

/* =========================================================
   HERO SECTION
========================================================= */

.hero-section{
  position:relative;
  padding:120px 0 100px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;

  padding:12px 22px;

  border-radius:999px;

  margin-bottom:30px;
}

.hero-title{
  font-size:5rem;
  line-height:1.1;

  margin-bottom:30px;
}

.hero-description{
  font-size:1.15rem;
  line-height:2;

  margin-bottom:40px;

  max-width:700px;
}

.hero-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
}

/* =========================================================
   SECTION
========================================================= */

.section{
  padding:100px 0;
}

.section-title{
  text-align:center;
  margin-bottom:70px;
}

.section-title h2{
  font-size:3.2rem;
  margin-bottom:18px;
}

.section-title p{
  font-size:1.1rem;
}

/* =========================================================
   CARDS
========================================================= */

.card{
  border-radius:var(--radius-lg);
  transition:var(--transition);
}

.card:hover{
  transform:translateY(-6px);
}

/* =========================================================
   SEMESTER CARDS
========================================================= */

.semester-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:28px;
}

.semester-card{
  padding:34px;
}

.subject-list{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-top:30px;
}

.subject-item{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:20px;

  padding:18px 20px;

  border-radius:24px;

  background:rgba(255,255,255,.04);

  border:1px solid var(--border);

  transition:var(--transition);
}

.subject-item:hover{
  background:rgba(255,255,255,.08);
}

/* =========================================================
   CHAPTER CARDS
========================================================= */

.chapter-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}

.chapter-card{
  overflow:hidden;
}

.chapter-thumbnail{
  height:240px;

  background:linear-gradient(
    135deg,
    #4f46e5,
    #7c3aed
  );

  position:relative;
}

.chapter-content{
  padding:28px;
}

.badge{
  display:inline-flex;

  padding:10px 16px;

  border-radius:999px;

  background:rgba(99,102,241,.15);

  color:#a5b4fc;

  font-size:.85rem;

  margin-bottom:20px;
}

.chapter-title{
  font-size:1.7rem;
  line-height:1.5;

  margin-bottom:20px;
}

.chapter-description{
  margin-bottom:24px;
}

.chapter-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;

  margin-bottom:28px;
}

.chapter-tag{
  padding:8px 14px;

  border-radius:999px;

  background:rgba(255,255,255,.05);

  border:1px solid var(--border);

  font-size:.85rem;
}

/* =========================================================
   ALERTS
========================================================= */

.alert-list{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.alert-item{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:20px;

  padding:22px;

  border-radius:24px;

  transition:var(--transition);
}

.alert-item:hover{
  background:rgba(255,255,255,.08);
}

/* =========================================================
   TOC
========================================================= */

.toc-box{
  position:sticky;
  top:110px;

  padding:24px;

  border-radius:28px;
}

.toc-box h3{
  margin-bottom:20px;
}

.toc-box ul{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.toc-box a{
  color:#cbd5e1;
  transition:var(--transition);
}

.toc-box a:hover{
  color:white;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer{
  padding:90px 0 140px;

  border-top:1px solid var(--border);
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:50px;
}

.footer-links{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.footer-links a{
  color:#94a3b8;
  transition:var(--transition);
}

.footer-links a:hover{
  color:white;
}

/* =========================================================
   MOBILE DOCK
========================================================= */

.mobile-dock{
  position:fixed;

  left:50%;
  transform:translateX(-50%);

  bottom:18px;

  width:min(94%,700px);

  padding:14px 20px;

  border-radius:30px;

  display:none;
  align-items:center;
  justify-content:space-around;

  z-index:999;
}

.mobile-dock a{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;

  color:#94a3b8;

  font-size:.8rem;
}

.mobile-dock a.active{
  color:white;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1200px){

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

}

@media(max-width:992px){

  .hero-grid,
  .semester-grid,
  .chapter-grid,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .navbar{
    display:none;
  }

  .mobile-menu-btn{
    display:flex;
  }

  .mobile-dock{
    display:flex;
  }

  .hero-title{
    font-size:3.8rem;
  }

  .section-title h2{
    font-size:2.5rem;
  }

}

@media(max-width:768px){

  .hero-section{
    padding-top:80px;
  }

  .hero-title{
    font-size:2.8rem;
  }

  .hero-description{
    font-size:1rem;
  }

  .section{
    padding:80px 0;
  }

  .section-title h2{
    font-size:2rem;
  }

  .chapter-title{
    font-size:1.4rem;
  }

  .hindi-content{
    font-size:17px;
  }

}

@media(max-width:540px){

  .container-custom{
    width:94%;
  }

  .hero-buttons{
    flex-direction:column;
  }

  .btn{
    width:100%;
  }

  .semester-card,
  .chapter-content{
    padding:22px;
  }

  .hero-title{
    font-size:2.3rem;
  }

}

/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu{
  max-height:0;
  overflow:hidden;
  transition:.3s ease;
}

.mobile-menu.show-mobile-menu{
  max-height:500px;
}

.mobile-menu-links{
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:25px 0;
}

.mobile-menu-links a{
  color:#cbd5e1;
  font-size:1.05rem;
}

/* =========================================================
   BACKGROUND GLOW
========================================================= */

.bg-glow{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  overflow:hidden;
}

.bg-glow::before{
  content:'';

  position:absolute;

  width:500px;
  height:500px;

  top:-100px;
  left:-100px;

  background:#4f46e5;

  opacity:.18;

  border-radius:50%;

  filter:blur(120px);
}

.bg-glow::after{
  content:'';

  position:absolute;

  width:500px;
  height:500px;

  bottom:-100px;
  right:-100px;

  background:#7c3aed;

  opacity:.18;

  border-radius:50%;

  filter:blur(120px);
}
/* =========================================================
   CHAPTER PAGE
========================================================= */

.chapter-layout{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:32px;
}

.important-box{
  margin-top:20px;

  padding:24px;

  border-radius:24px;

  background:rgba(99,102,241,.12);

  border:1px solid rgba(99,102,241,.25);
}

.mcq-box,
.pyq-box{
  margin-top:25px;

  padding:28px;

  border-radius:24px;

  background:rgba(255,255,255,.04);

  border:1px solid var(--border);
}

@media(max-width:1100px){

  .chapter-layout{
    grid-template-columns:1fr;
  }

  .toc-box{
    position:relative;
    top:0;
  }

}

@media(max-width:768px){

  .chapter-layout main .glass{
    padding:28px !important;
  }

}