/* SMOOTH SCROLLING */
html {
  scroll-behavior: smooth;
}

:root {
  --sidebar-width: 240px;
  
  /* Light Mode Color Palette */
  --bg-primary: #f3f4f7;
  --bg-secondary: #ffffff;
  --text-primary: #000000;
  --text-secondary: #1e1d1d9a;
  --text-tertiary: #666666;
  --border-color: #e5e7eb;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --card-shadow: rgba(0, 0, 0, 0.1);
  --button-bg: #883f12;
  --button-hover: #f0ac45;
  --code-bg: #ffffff;
  --code-color: #000000;
  --link-color: #0066cc;
  --link-hover: #003d99;
  --header-bg: #ffffff;
  --header-border: #e5e7eb;
  --sidebar-bg: #ffffff;
  --sidebar-text: #1e1d1d;
  --sidebar-hover-bg: #f0f0f0;
  --input-bg: #ffffff;
  --input-border: #d0d0d0;
  --input-text: #000000;
  --accent-color: #eb6839;
}

html.dark-mode {
  --bg-primary: #0f172a;
  --bg-secondary: #1a1f2e;
  --text-primary: #e5e7eb;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --border-color: #334155;
  --card-bg: #1e293b;
  --card-border: #334155;
  --card-shadow: rgba(0, 0, 0, 0.3);
  --button-bg: #475569;
  --button-hover: #64748b;
  --code-bg: #020617;
  --code-color: #38bdf8;
  --link-color: #60a5fa;
  --link-hover: #93c5fd;
  --header-bg: #0f172a;
  --header-border: #334155;
  --sidebar-bg: #020617;
  --sidebar-text: #e5e7eb;
  --sidebar-hover-bg: #1e293b;
  --input-bg: #1e293b;
  --input-border: #475569;
  --input-text: #e5e7eb;
  --accent-color: #fb923c;
}

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

/* RESET */
html, body {
  min-height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 20px;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-primary);
}

h1 {
  color: rgb(235, 104, 57);
}

h3 {
  color: rgb(226, 133, 99);
}

/*navbar*/

nav {
  padding: 12px 16px;
}

/* simple navbar */
.nav-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 20px;
}

/* links */
nav a {
  text-decoration: none;
  color: #1e1d1d9a;
  font-weight: 500; 
  transition: 0.3s;
}

nav a:hover {
  color: orangered;
  transform: translateY(-2px);
}

/* btn nav */
.nav-btn {
  display: flex;
  overflow:hidden;
  justify-content: space-between;
  align-items: center;
}

.nav-btn button {
  padding: 6px 14px;
  border: none;
  background: #883f12;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.nav-btn button:hover {
  background: #f0ac45;
}

/* center navbar */
.nav-center {
  display: flex;
  justify-content: center;
  gap: 30px;
}

/* Responsive */
@media (max-width: 310px) {
  .nav-links {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    flex-direction: column;
    width: 150px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: none;
  }
}

/* Sidebar */
/* .sidebar {
  width: 220px;
.container {
  display: flex;
  flex-wrap: wrap;
}

/* ================= SIDEBAR ================= */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 24px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 30px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar a {
  display: block;
  padding: 12px;
  color: #b8c5d6;
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 6px;
  transition: 0.3s;
}

.sidebar a:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  background: #333;
} */

/* sidebar */

#menuToggle {
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  color: #333;
}

.sidebar {
  width: 220px;
  height: 100vh;
  background:  rgb(63, 81, 119);
  color: #fff;
  position: fixed;
  top: 0;
  padding: 20px 15px;
  transition: 0.3s ease;
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 22px;
  letter-spacing: 1px;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin: 15px 0;
}

.sidebar ul li a {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #ccc;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  transition: 0.3s;
}

.sidebar ul li a i {
  font-size: 18px;
}

.sidebar ul li a p {
  margin: 0;
  font-size: 15px;
}

.sidebar ul li a:hover {
  background: #c7d0ea;
  color: #151515;
}

.sidebar ul li a.active {
  background: #4e73df;
  color: #fff;
}

.sidebar.hide {
  display: none;
}


/* Main */
.main-home {
  margin-left: 240px;
  padding: 40px;
  width: calc(100% - 240px);
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; */
  gap: 20px;
  flex-direction: column;
}

/* btn-page */
.main1 {
  margin-left: 240px;
  padding: 40px;
  width: calc(100% - 240px);
  flex-direction: column; 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}



/* Header */
.page-header {
  grid-column: 1 / -1;
}

.main-home {
  margin-left: var(--sidebar-width);
  padding: 40px;
  width: calc(100% - var(--sidebar-width));
  flex-direction: column; 
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
  gap: 20px;
}

/* btn page */

/* Main */
.main1 {
  margin-left: var(--sidebar-width);
  padding: 40px;
  width: calc(100% - var(--sidebar-width));
  display: flex;
  flex-direction: column;
} 
/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: 70px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 1000;
}

.logo {
  color: white;
  font-size: 22px;
  font-weight: bold;
}

.page-header p {
  color: #6c69a5;
}


/* HERO */
.hero {
  background: white;
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 30px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-left {
  max-width: 60%;
}

.hero-left h1 {
  color: #1e1e2f;
  font-size: 32px;
  margin-bottom: 10px;
}

.hero-left p {
  color: #080808;
}

/* BUTTON */
.explore-btn {
  padding: 12px 20px;
  background: linear-gradient(45deg, #ff6b6b, #6c5ce7);
  color: white;
}


/* SEARCH BAR */
.search-bar {
  margin-bottom: 20px;
}

.search-bar input {
  width: 100%;
  padding: 12px;
  border-radius: 15px;
  border: 6px solid #ddd;
  outline: none;
}

/* FEATURED SECTION */
.featured {
  margin-bottom: 30px;
}

.featured h2 {
  margin-bottom: 15px;
}

.featured-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* FOOTER
.footer {
  text-align: center;
  padding: 20px;
  color: #777;
} */

/* IMPROVED HOVER */
.feature-card {
  transition: 0.3s;
}

.feature-card:hover {
  background: var(--card-bg);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.search-bar input:hover {
  border-color: #6c5ce7;
}

.btn {
  padding: 10px 60px;
  background: #3faffa6b;
  border: 0;
  outline: none;
  cursor: pointer;
  font-size: 22px;
  font-weight: 500;
  border-radius: 30px;
}

.popup {
  width: 400px;
  background: #edf4fa;
  border-radius: 6px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%,-50%) scale(0.1);
  text-align: center;
  padding: 0 30px 30px;
  color: #333;
  visibility: hidden;
  transition: transform 0.4s, top 0.4s;
}

.open-popup {
  visibility: visible;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
}

.popup img {
  width: 100px;
  margin-top: -50px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.popup h2 {
  font-size: 38px;
  font-weight: 500;
  margin: 30px 0 10px;
}

.popup button {
  width: 100%;
  margin-top: 50px;
  padding: 10px 0;
  background: #6fd649;
  color: #fff;
  border: 0;
  outline: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 5px 5px rgba(0,0,0,0.2);
}


#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  padding: 10px 15px;
  font-size: 18px;
  border: none;
  background-color: rgb(16, 15, 15);
  color: rgba(249, 254, 255, 0.986);
  cursor: pointer;
  border-radius: 5px;
}

.toggle-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 8px 12px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  background-color: black;
  color: white;
}

body.dark-mode .component-card,
body.dark-mode .hero,
body.dark-mode .feature-card {
  background: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--card-border);
}

body.dark-mode .search-bar input {
  background: #454141;
  color: #ffffff;
  border-color: #4f40a3;
}

body.dark-mode .page-header p,
body.dark-mode .hero-left p {
  color: #bdaeae;
}


/* Card */
.component-card {
  background: var(--card-bg, #b4c2e5);
  padding: 20px;
  border-radius: 16px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #1e1e1e;
  border-radius: 40px;
  padding: 6px 10px;
  gap: 10px;
  width: 350px;
  max-width: 100%;
  transition: 0.3s;
}

.nav-link {
  color: #bbb;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 20px;
}

.nav-link.active {
  background: #2a2a2a;
  color: white;
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  color: white;
  flex: 1;
}

.search-btn {
  background: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.nav-right {
  display: flex;
  gap: 15px;
}

.nav-btn {
  background: #1e1e1e;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.25s ease;
}

.nav-btn:hover {
  background: #2a2a2a;
  transform: translateY(-2px);
}

/* ================= MAIN ================= */
.main {
  margin-left: var(--sidebar-width);
  margin-top: 80px;
  padding: 20px;
  flex: 1;
  min-width: 0;
}

/* ================= CARDS ================= */
.component-card {
  background: rgba(232, 229, 226, 0.932);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid #e8ebf2;
  border: 1px solid #eee;
  /* display: flex;
  flex-direction: row; */
  gap: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: all 0.3s ease;
}

.component-card:hover {
  background: #b4c2e5;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(239, 12, 12, 0.08);
}

.component-card button:first-of-type {
  align-self: center;
  transition: all 0.25s ease;
}

.component-card button:first-of-type:hover {
  transform: scale(1.05);
}

.nav-btn button {
  padding: 6px 14px;
  border: none;
  background: #5d76ab;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.socials span:hover {
  transform: scale(1.2);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

/* Layout */
body {
  background: #f5f7fb;
  color: #222;
}

.container {
  display: flex;
}

/* Sidebar */
.sidebar {
  width: 220px;
  height: 100vh;
  background: #111827;
  color: #fff;
  padding: 20px;
  position: fixed;
}

.sidebar h2 {
  margin-bottom: 20px;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin: 12px 0;
}

.sidebar a {
  color: #9ca3af;
  text-decoration: none;
  transition: 0.3s;
}

.sidebar a:hover,
.sidebar .active a {
  color: #fff;
}

/* Main Content */
.main {
  margin-left: 240px;
  padding: 40px;
  width: 100%;
.nav-btn button:hover {
  background: #0b1a3e;
}
}
/* responsive-navbarpage */
@media (max-width: 768px) {

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
  }

  .nav-links a {
    padding: 8px 0;
    width: 100%;
  }

}

@media (max-width: 425px) {

  .nav-links a {
    font-size: 13px;
  }

  .nav-btn button {
    width: 100%;
  }
}


/* Actions */
 .actions {
  gap: 12px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.component-card:hover {
  
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);

  transition: 0.3s;
  min-height: 140px;
  justify-content: center;
} 

.component-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(1,1,1,0.08);
} 

/* ================= BUTTONS ================= */
.actions {
  display: flex;
  gap: 10px;
}

.actions button:hover {
  background: #333;
}

.actions button {
  flex: 1;
  padding: 10px;
  padding: 9px;
  border: none;
  background: #1f1f1f;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.3s;
}

.actions button:hover {
  background: #444;
  transform: translateY(-2px);
  transition: 0.25s ease;
}

.actions button:hover {
  background: #222;
  transform: translateY(-1px);
}

/* ================= HERO ================= */
.hero {
  background: white;
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 30px;
  text-align: center;
}

.button-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Gradient */
.gradient-btn {
  padding: 10px 20px;
  border: none;
  color: white;
  background: linear-gradient(45deg, #084a80, #6c5ce7);
  border-radius: 6px;
}

/* Outline */
.outline-btn {
  padding: 10px 20px;
  border: 2px solid #30229e;
  background: transparent;
  color: #1d1655;
  border-radius: 6px;
}

/* Neon */
.neon-btn {
  padding: 10px 20px;
  background: #7182d6;
  color: #000505;
  border: 2px solid #2a393a;
  border-radius: 6px;
}
.hero h1 {
  font-size: 32px;
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background: #020617; /* darker background */
  padding: 20px 10px;
}

/* TITLE */
.sidebar h2 {
  color: #ffffff;
  margin-bottom: 20px;
  padding-left: 10px;
}

/* LINKS */
.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li a {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 10px 14px;
  margin: 6px 8px;

  color: #e2e8f0; /* HIGH CONTRAST */
  text-decoration: none;

  border-radius: 8px;
  transition: all 0.2s ease;
}

/* Shadow */
.shadow-btn {
  padding: 10px 20px;
  background: #6088cc;
  color: white;
  border: none;
  border-radius: 6px;
  box-shadow: 0 5px 0 #7e70ca;
/* ICON */
.sidebar ul li a i {
  color: #94a3b8;
}
}
/* HOVER */
.sidebar ul li a:hover {
  background: #1e293b;
  color: #ffffff;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 50px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  color: #555;
  margin-bottom: 20px;
}

/* Tagline */
.tagline {
  font-weight: 600;
  color: #777;
}

/* Button */
.explore-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #4f46e5;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.explore-btn:hover {
  background: #4338ca;
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Cards */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px 16px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

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

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  color: #555;
}

/* Video Section */
video {
  border-radius: 12px;
  margin-top: 20px;
}

/* Footer
.footer {
  background: #111827;
  color: #fff;
  padding: 30px;
  margin-top: 40px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-col {
  margin: 10px 0;
}

.footer-col h3 {
  margin-bottom: 10px;
}

.footer-col p {
  color: #9ca3af;
}

/* Social */
/* .socials span {
  margin-right: 10px;
  cursor: pointer;
} */

/* Dark Mode */
/* .dark {
  background: #0f172a;
  color: #fff;
}

.dark .feature-card {
  background: #1e293b;
}

.dark .sidebar {
  background: #020617;
}

.dark .footer {
  background: #020617;
}  */

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .main {
    margin-left: 0;
  }
}
  background: rgb(93, 118, 171);
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
.sidebar ul li a:hover i {
  color: #3b82f6;
}

/* ACTIVE */
.sidebar ul li.active a {
  background: #3b82f6;
  color: #ffffff;
  font-weight: 500;
}

.hero-right {
  margin-top: 20px;
}

.hero p {
  color: #666;
  margin-bottom: 20px;
.sidebar ul li.active a i {
  color: #ffffff;
}

.explore-btn {
   padding: 12px 20px;
  background: linear-gradient(45deg, #7273df, #8580b0);
  color: white;
  border-radius: 8px;
  text-decoration: none;
}

/* ================= POLICY PAGES ================= */

.privacy-setup{
  max-width: 1400px;
  padding: 20px;
  margin: 50px auto;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
  line-height: 1.6;
  color: #333;
}

.full-page {
  margin-left: var(--sidebar-width); 
  margin-top: 100px;
  padding-left: 60px;
  padding-right:40px;
  background-color:white;
  min-height:calc(100vh-70px);
  display:flex;
  flex-direction:column;
}

/* Feature Card */
.feature-card {
  background: white;
  padding: 20px;
  border-radius: 14px;
  border: 1.5px solid #8e90a9;
  transition: 0.3s;
}

.privacy-wrapper {
  margin-top:auto;
  width: 100%;
  max-width: 1100px; 
  margin: 0 auto; 
  background: transparent;
  padding: 20px 0;
}

.privacy-wrapper h1 {
  text-align: center;
  font-size: 70px;
}

.privacy-wrapper h2 {
  text-align: center;
  margin-top: 20px;
}

/* Shadow */
.shadow-btn {
  padding: 10px 20px;
  background: #6088cc;
  color: white;
  border: none;
  border-radius: 6px;
  box-shadow: 0 5px 0 #7e70ca;
}

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

  .page-header {
    justify-content: center;
  }

  .button-group {
    flex-direction: column;
    align-items: center;
  }
}


/* HERO */
.hero {
  background: rgb(93, 118, 171);
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.hero-left {
  max-width: 60%;
}

.hero-left h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero-right {
  margin-top: 20px;
}
.hero-left p {
  color: #080808;
}

.btn {
  padding: 10px 60px;
  background: #3faffa6b;
  border: 0;
  outline: none;
  cursor: pointer;
  font-size: 22px;
  font-weight: 500;
  border-radius: 30px;
}

.popup {
  width: 400px;
  background: #edf4fa;
  border-radius: 6px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%,-50%) scale(0.1);
  text-align: center;
  padding: 0 30px 30px;
  color: #333;
  visibility: hidden;
  transition: transform 0.4s, top 0.4s;
}

.open-popup {
  visibility: visible;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
}

.popup img {
  width: 100px;
  margin-top: -50px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.popup h2 {
  font-size: 38px;
  font-weight: 500;
  margin: 30px 0 10px;
}

.popup button {
  width: 100%;
  margin-top: 50px;
  padding: 10px 0;
  background: #6fd649;
  color: #fff;
  border: 0;
  outline: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 5px 5px rgba(0,0,0,0.2);
}


/* BUTTON */
.explore-btn {
  padding: 12px 20px;
  background: linear-gradient(45deg, #7273df, #8580b0);
  color: white;
}

/* Home Layout */
.home {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* CARDS */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px 16px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.privacy-wrapper p {
  text-align: center;
  color: #444;
}

/* ================= FOOTER ================= */
.footer {
  margin-top: auto;
  margin-left: var(--sidebar-width);
  padding: 60px 20px;
  background: transparent;
}
.search-bar input {
  width: 100%;
  padding: 12px;
  border-radius: 15px;
  border: 3px solid #ddd;
  outline: none;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto; 
}

.footer-brand h2 {
  font-size: 32px;
  margin: 0 0 10px;
  color: #111;
  font-weight: 800;
}

.footer-brand p {
  color: #666;
  font-size: 15px;
  margin-bottom: 20px;
}

.footer-socials {
  margin-bottom: 40px;
  font-size: 24px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-col h3 {
  color: #eb6839;
  font-size: 20px;
  margin: 30px 0 15px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: normal;
}

.footer-col a {
  display: block;
  color: #555;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer-col:last-child a {
  color: #0000ff;
  text-decoration: underline;
}

.feature-card:hover {
  background: rgb(126, 150, 199);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

body.dark-mode .component-card,
body.dark-mode .hero,
body.dark-mode .feature-card
  {
  background: var(--card-bg);
  color: white;
  border-color: var(--card-border);
  }


.search-bar input {
  width: 100%;
  padding: 12px;
  border-radius: 15px;
  border: 3px solid #ddd;
  outline: none;
} 

.search-bar input:hover {
  border-color: #605a8b;
}
.footer-col a:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

@media (max-width: 900px) {
  .footer {
    margin-left: 0;
    padding: 40px 15px;
  }
  
  .footer-card {
    padding: 30px 20px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {
  .navbar {
    left: 0;
    padding: 0 15px;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .main,
  .full-page {
    margin-left: 0;
    margin-top: 70px;
    padding: 15px;
  }

  .search-bar {
    width: 150px;
    padding: 6px 8px;
  }

  .search-bar input {
    font-size: 14px;
  }

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

  .button-group {
    flex-direction: column;
  }

  .pricing-stack,
  .price-banners {
    grid-template-columns: 1fr;
  }

  .color-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
  }

  .featured-cards {
    grid-template-columns: 1fr;
  }

  .component-card {
    padding: 12px;
  }

  .actions {
    flex-direction: column;
  }

  .actions button {
    padding: 10px;
  }
}

/* ================= TABLET ================= */
@media (max-width: 768px) {
  .logo {
    font-size: 18px;
    padding-left: 15px;
  }

  .nav-right {
    gap: 10px;
  }

  .nav-btn {
    padding: 6px 10px;
    font-size: 14px;
  }

  .main {
    padding: 15px;
    margin-top: 80px;
  }

  .full-page {
    margin-left: 0;
    padding: 15px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .privacy-wrapper h1 {
    font-size: 48px;
  }

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

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

/* ================= SMALL MOBILE ================= */
@media (max-width: 640px) {
  .navbar {
    height: 60px;
    padding: 0 10px;
  }

  .logo {
    font-size: 16px;
    padding-left: 10px;
  }

  .search-bar {
    width: 120px;
  }

  .nav-right {
    gap: 8px;
  }

  .menu-toggle {
    padding: 8px 10px;
    font-size: 18px;
  }

  .sidebar {
    width: 200px;
  }

  .main {
    padding: 12px;
    margin-top: 70px;
  }

  .component-card {
    padding: 10px;
    margin-bottom: 10px;
  }

  .hero {
    flex-direction: column;
    padding: 20px;
  }

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

  .hero-left h1 {
    font-size: 24px;
  }

  h1 {
    font-size: 24px;
  }

  h3 {
    font-size: 16px;
  }

  .section-title {
    font-size: 18px;
  }

  .color-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.8rem;
  }

  .color-box {
    height: 60px;
  }

  .price-card {
    padding: 20px;
    max-width: 100%;
  }

  .pricing-table {
    font-size: 12px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 10px 8px;
  }

  .full-page {
    padding-left: 15px;
    padding-right: 15px;
  }

  .privacy-wrapper h1 {
    font-size: 32px;
  }

  .card {
    padding: 15px;
  }

  .weather-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ui-preview {
    flex-direction: column;
    gap: 10px;
  }

  .ui-card {
    width: 100%;
  }
}

/* ================= EXTRA SMALL MOBILE ================= */
@media (max-width: 480px) {
  .container {
    flex-direction: column;
  }

  .navbar {
    height: 55px;
  }

  .logo {
    font-size: 14px;
  }

  .search-bar {
    width: 100px;
  }

  .search-bar input {
    font-size: 12px;
  }

  .nav-btn {
    padding: 5px 8px;
    font-size: 12px;
  }

  .sidebar {
    width: 180px;
    padding: 16px;
  }

  .sidebar h2 {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .sidebar a {
    padding: 10px;
    font-size: 13px;
  }

  .main {
    padding: 10px;
    margin-top: 65px;
    width: 100%;
  }

  .component-card {
    padding: 8px;
    gap: 8px;
  }

  .loader-demo-box {
    min-height: 70px;
    padding: 20px;
  }

  .code-block {
    font-size: 12px;
    padding: 12px;
    line-height: 1.3;
  }

  h1 {
    font-size: 20px;
  }

  h3 {
    font-size: 14px;
  }

  .section-title {
    font-size: 16px;
    margin: 20px 0 10px;
  }

  .color-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
  }

  .color-box {
    height: 50px;
  }

  .color-card {
    padding: 8px;
  }

  .color-card button {
    padding: 4px 8px;
    font-size: 12px;
  }

  .price-card {
    padding: 15px;
    border-radius: 16px;
  }

  .price {
    font-size: 2rem;
  }

  .price-card h4 {
    font-size: 1.1rem;
  }

  .price-list li {
    font-size: 12px;
    padding-left: 20px;
  }

  .price-card button {
    padding: 10px 14px;
    font-size: 13px;
  }

  .pricing-table {
    font-size: 11px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 8px 6px;
  }

  .full-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .privacy-wrapper {
    padding: 15px 0;
  }

  .privacy-wrapper h1 {
    font-size: 24px;
  }

  .privacy-wrapper h2 {
    font-size: 18px;
  }

  .card {
    padding: 12px;
  }

  .card.profile img {
    width: 60px;
    height: 60px;
  }

  .social-header img {
    width: 35px;
    height: 35px;
  }

  .social-header h4 {
    font-size: 14px;
  }

  .weather-details {
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 12px;
  }

  .temperature {
    font-size: 36px;
  }

  .condition {
    font-size: 14px;
  }

  .card.music {
    flex-direction: column;
    text-align: center;
  }

  .card.music img {
    width: 60px;
    height: 60px;
  }

  .ui-preview {
    flex-direction: column;
    gap: 8px;
  }

  .ui-card {
    width: 100%;
  }

  .popup {
    width: 90%;
    max-width: 300px;
    padding: 0 20px 20px;
  }

  .popup h2 {
    font-size: 28px;
    margin: 20px 0 8px;
  }

  .popup img {
    width: 80px;
  }

  .toast {
    left: 10px;
    right: 10px;
    bottom: 20px;
    font-size: 13px;
    padding: 10px 15px;
  }

  #scrollTopBtn {
    right: 10px;
    bottom: 15px;
    padding: 8px 12px;
  }
}

.socials span:hover {
  transform: scale(1.2);
}

.search-wrapper {
  width: 100%;
  margin: 20px 0;
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 1000;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

/* Card Base Style */
.card {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
}

.search-wrapper input:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* FORM INPUT */
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d9dce3;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.form-input:focus {
  outline: none;
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108,92,231,0.12);
}

/* Form elements styling for new forms */
.input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  transition: 0.25s ease;
}

.input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108,92,231,0.12);
}

/* ================= INPUT TYPES STYLING ================= */

/* Base input styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="month"],
input[type="week"],
input[type="datetime-local"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9dce3;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="datetime-local"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

/* Checkbox and Radio Styling */
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  cursor: pointer;
  accent-color: #6c5ce7;
}

/* Checkbox and Radio Label */
label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 8px;
  font-size: 14px;
}

label input[type="checkbox"],
label input[type="radio"] {
  margin-bottom: 0;
}

/* Textarea Styling */
textarea {
  resize: vertical;
  min-height: 80px;
  font-family: Arial, sans-serif;
}

textarea::-webkit-scrollbar {
  width: 8px;
}

textarea::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

textarea::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 8px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Select/Dropdown Styling */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 20px;
  padding-right: 36px;
}

/* Range Input Styling */
input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6c5ce7;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6c5ce7;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #5f3dc4;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.4);
}

input[type="range"]::-moz-range-thumb:hover {
  background: #5f3dc4;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.4);
}

/* Color Input Styling */
input[type="color"] {
  width: 50px;
  height: 50px;
  border: 1px solid #d9dce3;
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
}

input[type="color"]:hover {
  border-color: #6c5ce7;
}

/* File Input Styling */
input[type="file"] {
  padding: 8px 0;
  border: none;
}

input[type="file"]::file-selector-button {
  padding: 8px 16px;
  background: #6c5ce7;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
  margin-right: 12px;
}

input[type="file"]::file-selector-button:hover {
  background: #5f3dc4;
}

/* Disabled Input Styling */
input:disabled,
textarea:disabled,
select:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
  border-color: #e0e0e0;
}

input:disabled::placeholder,
textarea:disabled::placeholder {
  color: #bbb;
}

/* Readonly Input Styling */
input[readonly],
textarea[readonly],
select[readonly] {
  background-color: #f9f9f9;
  color: #666;
  border-color: #ddd;
  cursor: default;
}

/* Input with Required Attribute */
input[required]:invalid:not(:placeholder-shown),
textarea[required]:invalid:not(:placeholder-shown),
select[required]:invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[required]:valid:not(:placeholder-shown),
textarea[required]:valid:not(:placeholder-shown),
select[required]:valid {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Form Validation Visual Feedback */
.form-field {
  position: relative;
  margin-bottom: 16px;
}

.form-field input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #dc3545;
}

.form-field input:valid:not(:placeholder-shown) {
  border-color: #28a745;
}

.input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  margin-bottom: 0;
}

.input[type="checkbox"] + label,
label + input[type="checkbox"] {
  margin-right: 8px;
}

/* DARK MODE - Now handled by comprehensive CSS custom properties system */
/* The dark-mode class is applied to <html> element and uses CSS variables */
/* All dark mode styles are defined in the "COMPREHENSIVE DARK MODE SUPPORT" section below */

/* CODE BLOCK */
.code-block {
  display: none;
  background: #ffffff;
  color: #000000;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
}

.code-block.show {
  display: block;
}

/* CARDS */
.feature-card {

/* ================= COLORS PAGE ================= */

.section-title {
  margin: 30px 0 15px;
  font-size: 22px;
}

/* GRID */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.4rem;
  width: 100%
}

.color-card {
  background: rgba(232, 229, 226, 0.932);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  border: 2px solid black;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.color-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.color-box {
  height: 80px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1.9px solid black;
}

.color-card button {
  padding: 6px 10px;
  border: none;
  background: #111;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

/* SCHEMES */
.scheme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.scheme-card {
  background: white;
  padding: 15px;
  border-radius: 12px;
}

.scheme-colors {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.scheme-colors span {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

/* UI PREVIEW */
.ui-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.ui-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

.ui-btn.primary { background:#6c5ce7; }
.ui-btn.danger { background:#ff6b6b; }
.ui-btn.success { background:#00b894; }

.ui-card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  width: 200px;
}
/* ===== STUDENT CARD (MINT STYLE) ===== */
.student-card {
  background: #55efc4;
  color: #2d3436;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.student-card .profile-avatar {
  background: #2d3436;
  color: #55efc4;
  font-weight: 800;
}

.student-card .profile-name {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 20px;
}

.student-card .profile-role {
  opacity: 0.9;
  color: #2d3436;
}

.student-card .profile-btn {
  background: #2d3436;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.student-card .profile-btn:hover {
  background: #000;
}
/* =====================
   TOAST NOTIFICATION
   ===================== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #222;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.toast.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.toast-hidden {
  opacity: 0;
  transform: translateY(16px);
}

/* Dark mode support */
body.dark-mode .toast {
  background: #f0f0f0;
  color: #111;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.1);
}

/*Terms of Service Page*/

.terms-content{
  max-width: 1400px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #eee;
}

/* SEARCH BAR */
.search-bar {
  margin-bottom: 20px;
}

.search-bar input {
  width: 100%;
  padding: 12px;
  border-radius: 15px;
  border: 6px solid #ddd;
  outline: none;
}

.input{
  margin-bottom:12px;
  width:100%;
}

/* Push footer down */
.container {
  flex: 1;
}

/*Forms*/

.login-form-card,.signup-form-card,.contact-form-card{
  border:3px ridge #020109;
  padding:20px ;
  margin-bottom:0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-form-inner-card {
  border: 4px solid #00f7ff;
  border-radius: 20px;
  padding: 30px;
  background: white;
}
.signup-form-inner-card {
  border: 4px solid #a5d319;
  border-radius: 20px;
  padding: 30px;
  background: white;
}

.contact-form-inner-card {
  border: 4px solid #c81bc5;
  border-radius: 20px;
  padding: 30px;
  background: white;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.signup-form{
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-form{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.login-form h3,.signup-form h3,.contact-form h3{
  text-align: center;
  margin-top: 0;
}

.signup-form-inner-card,.contact-form-inner-card{
 flex:1;
}

/* NEW FORM CARDS */
.newsletter-form-card, .search-form-card, .feedback-form-card, 
.password-reset-form-card, .profile-update-form-card, 
.job-application-form-card, .event-registration-form-card {
  border: 3px ridge #020109;
  padding: 20px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.newsletter-form-inner-card {
  border: 4px solid #ff6b9d;
  border-radius: 20px;
  padding: 30px;
  background: white;
}

.search-form-inner-card {
  border: 4px solid #4ecdc4;
  border-radius: 20px;
  padding: 30px;
  background: white;
}

.feedback-form-inner-card {
  border: 4px solid #ffa502;
  border-radius: 20px;
  padding: 30px;
  background: white;
}

.password-reset-form-inner-card {
  border: 4px solid #8b5fbf;
  border-radius: 20px;
  padding: 30px;
  background: white;
}

.profile-update-form-inner-card {
  border: 4px solid #00d4ff;
  border-radius: 20px;
  padding: 30px;
  background: white;
}

.job-application-form-inner-card {
  border: 4px solid #2ecc71;
  border-radius: 20px;
  padding: 30px;
  background: white;
}

.event-registration-form-inner-card {
  border: 4px solid #e74c3c;
  border-radius: 20px;
  padding: 30px;
  background: white;
}

.newsletter-form, .search-form, .feedback-form, 
.password-reset-form, .profile-update-form, 
.job-application-form, .event-registration-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.newsletter-form h3, .search-form h3, .feedback-form h3,
.password-reset-form h3, .profile-update-form h3,
.job-application-form h3, .event-registration-form h3 {
  text-align: center;
  margin-top: 0;
}

.newsletter-form-inner-card, .search-form-inner-card, .feedback-form-inner-card,
.password-reset-form-inner-card, .profile-update-form-inner-card,
.job-application-form-inner-card, .event-registration-form-inner-card {
  flex: 1;
}

textarea {
  resize:none; 
}



/* Footer */

.featured {
  margin-bottom: 60px;
  margin-top: 40px;
  padding: 40px 0;
}

.featured-header {
  text-align: center;
  margin-bottom: 40px;
}

.featured-header h2 {
  font-size: 32px;
  color: #111;
  margin: 0 0 10px;
  font-weight: 700;
}

.featured-subtitle {
  font-size: 16px;
  color: #666;
  margin: 0;
  font-weight: 400;
}

.featured-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px 16px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6c5ce7, #a29bfe, #fd79a8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(108, 92, 231, 0.15);
  border-color: var(--card-border);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 8px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin: 0;
}

.feature-card p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.feature-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: #f0effe;
  color: #6c5ce7;
  letter-spacing: 0.3px;
}

.tag.trending {
  background: linear-gradient(135deg, #ff6b6b, #fd79a8);
  color: white;
}

.feature-link {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: #6c5ce7;
  text-decoration: none;
  margin-top: 8px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.feature-link:hover {
  border-bottom-color: #6c5ce7;
  transform: translateX(4px);
}

/* Dark mode support for featured section */
body.dark-mode .featured-header h2 {
  color: white;
}

body.dark-mode .featured-subtitle {
  color: #b8c5d6;
}

body.dark-mode .feature-card {
  background: #1e293b;
  border-color: var(--card-border);
}

body.dark-mode .feature-card h3,
body.dark-mode .feature-card p {
  color: #e5e7eb;
}

body.dark-mode .feature-card:hover {
  box-shadow: 0 12px 32px rgba(108, 92, 231, 0.25);
}

/* Responsive adjustments for featured section */
@media (max-width: 900px) {
  .featured {
    padding: 30px 0;
    margin-bottom: 40px;
  }

  .featured-header h2 {
    font-size: 28px;
  }

  .featured-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .feature-card {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .featured {
    padding: 20px 0;
    margin-bottom: 30px;
  }

  .featured-header h2 {
    font-size: 24px;
  }

  .featured-subtitle {
    font-size: 14px;
  }

  .featured-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-icon {
    font-size: 28px;
  }

  .feature-card h3 {
    font-size: 16px;
  }

  .feature-card p {
    font-size: 13px;
  }
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  color: #777;
}

/* IMPROVED HOVER */

.search-bar input:hover {
  border-color: #6c5ce7;
}

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  padding: 10px 15px;
  font-size: 18px;
  border: none;
  background-color: rgb(16, 15, 15);
  color: rgba(249, 254, 255, 0.986);
  cursor: pointer;
  border-radius: 5px;
}


.toggle-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 8px 12px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  background-color: black;
  color: white;
}

body.dark-mode .toggle-btn {
  background-color: white;
  color: rgba(30, 30, 30, 0.943);
} 

body.dark-mode .component-card,
body.dark-mode .hero,
body.dark-mode .feature-card {
  background: rgb(192, 144, 207);
  color: #0b0b0b;
  border-color: #160dc5;
}

body.dark-mode .search-bar input {
  background: #454141;
  color: #ffffff;
  border-color: #4f40a3;
}

body.dark-mode .page-header p,
body.dark-mode .hero-left p {
  color: #bdaeae;
  margin: 50px auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
  line-height: 1.6;
  color: #333;
}

/* General icon styling */
.features h3 i {
  margin-right: 12px;
  font-size: 1.2rem;
  vertical-align: middle;
}

.features h3 {
  text-align: center;
}

.socials span:hover {
  transform: scale(1.2);
}

/* Color Palette */
.color-palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.color-swatch {
  height: 100px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  color: white;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: 0.3s;
  cursor: pointer;
}

.color-swatch:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.color-name {
  margin-bottom: 5px;
}

.color-hex {
  font-size: 10px;
  opacity: 0.8;
}

.gradient-swatch .color-hex {
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Additional Card Styles */
.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card.profile {
  text-align: center;
}

.card.profile img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.card.pricing {
  text-align: center;
  border: 2px solid #6c5ce7;
}

.card.pricing h2 {
  color: #6c5ce7;
  font-size: 24px;
  margin: 10px 0;
}

.card.image {
  padding: 0;
  overflow: hidden;
}

.card.image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card-body {
  padding: 15px;
}

.card.stats {
  text-align: center;
}

.card.stats h2 {
  font-size: 36px;
  margin: 0;
  color: #6c5ce7;
}

.card.blog img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

.card.event {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.event-date {
  background: #6c5ce7;
  color: white;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  min-width: 60px;
}

.event-date .month {
  font-size: 12px;
  display: block;
  text-transform: uppercase;
}

.event-date .day {
  font-size: 20px;
  font-weight: bold;
  display: block;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
  color: #666;
  margin: 10px 0;
}

.card.social {
  padding: 15px;
}

.social-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.social-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.social-header h4 {
  margin: 0;
  font-size: 16px;
}

.social-header span {
  color: #666;
  font-size: 14px;
}

.social-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-actions button {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 14px;
}

.card.weather {
  text-align: center;
}

.weather-main {
  margin-bottom: 20px;
}

.temperature {
  font-size: 48px;
  font-weight: bold;
  color: #ff6b6b;
  display: block;
}

.condition {
  font-size: 18px;
  color: #666;
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

.weather-details > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.weather-forecast {
  display: flex;
  justify-content: space-around;
}

.forecast-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.card.music {
  display: flex;
  gap: 15px;
  align-items: center;
}

.card.music img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

.play-btn {
  background: #6c5ce7;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 16px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.progress {
  height: 100%;
  background: #6c5ce7;
  border-radius: 2px;
}

.card.recipe img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.recipe-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
  margin: 15px 0;
}

.card.notification {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.notification-icon {
  font-size: 24px;
  color: #ff6b6b;
  margin-top: 5px;
}

.notification-time {
  font-size: 12px;
  color: #999;
  margin-top: 10px;
  display: block;
}

.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  margin-left: auto;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  text-align: center;
  line-height: 1;
}

.badge-pill {
  background: #6c5ce7;
  color: white;
  border-radius: 12px;
  padding: 6px 12px;
}

.badge-dot {
  background: #00b894;
  color: white;
  position: relative;
  padding-left: 20px;
}

.badge-dot::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.badge-count {
  background: #ff6b6b;
  color: white;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Badge Variations */
.badge-success {
  background: #00b894;
}

.badge-warning {
  background: #fdcb6e;
  color: #333;
}

.badge-danger {
  background: #e17055;
}

.badge-info {
  background: #74b9ff;
}

.badge-small {
  font-size: 10px;
  padding: 4px 8px;
}

.badge-large {
  font-size: 14px;
  padding: 8px 16px;
}

.badge-outlined {
  background: transparent;
  border: 2px solid #6c5ce7;
  color: #6c5ce7;
}

.badge-notification {
  background: #e17055;
  position: relative;
  animation: pulse 2s infinite;
}

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

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

.alert-box {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
}

.alert-box strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.alert-box p {
  margin: 0;
}

/* Alert Types */
.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-success strong {
  color: #155724;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #ffeaa7;
  color: #856404;
}

.alert-warning strong {
  color: #856404;
}

.alert-error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-error strong {
  color: #721c24;
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

.alert-info strong {
  color: #0c5460;
}

.alert-critical {
  background-color: #f8b5bb;
  border-color: #e74c3c;
  color: #721c24;
  animation: critical-pulse 1.5s ease-in-out infinite;
}

.alert-critical strong {
  color: #721c24;
}

@keyframes critical-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.alert-pending {
  background-color: #e8f4f8;
  border-color: #b8dce8;
  color: #2c5aa0;
}

.alert-pending strong {
  color: #2c5aa0;
}

/* Alert Variants */
.alert-dismissible {
  position: relative;
}

.alert-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.alert-close:hover {
  opacity: 1;
}

.alert-with-icon {
  align-items: center;
}

.alert-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.alert-compact {
  padding: 12px 16px;
  font-size: 13px;
}

.alert-compact p {
  display: none;
}

.alert-left-border {
  border-left: 4px solid;
  border-right: none;
}

.alert-success.alert-left-border {
  border-left-color: #155724;
}

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-left {
  max-width: 60%;
}

.hero-left h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero-left p {
  color: #666;
}

.btn {
  padding: 10px 60px;
  background: #3faffa6b;
  border: 0;
  outline: none;
  cursor: pointer;
  font-size: 22px;
  font-weight: 500;
  border-radius: 30px;
}

.popup {
  width: 400px;
  background: #edf4fa;
  border-radius: 6px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%,-50%) scale(0.1);
  text-align: center;
  padding: 0 30px 30px;
  color: #333;
  visibility: hidden;
  transition: transform 0.4s, top 0.4s;
}

.open-popup {
  visibility: visible;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
}

.popup img {
  width: 100px;
  margin-top: -50px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.popup h2 {
  font-size: 38px;
  font-weight: 500;
  margin: 30px 0 10px;
}

.popup button {
  width: 100%;
  margin-top: 50px;
  padding: 10px 0;
  background: #6fd649;
  color: #fff;
  border: 0;
  outline: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 5px 5px rgba(0,0,0,0.2);
}


/* BUTTON */
.explore-btn {
  padding: 12px 20px;
  background: linear-gradient(45deg, #ff6b6b, #6c5ce7);
  color: white;
}

/* Home Layout */
.home {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.privacy-wrapper p {
  text-align: center;
  color: #444;
}

/* --- Global site footer --- */
/*Good for desktop layouts where content is indented.*/


.footer {
  margin-top: auto;
  margin-left: var(--sidebar-width);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid rgba(108, 92, 231, 0.1);
  padding: 60px 80px 40px;
  text-align: left;
  width: calc(100% - var(--sidebar-width));
  display: block;
  flex-basis: 100%;
  clear: both;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #eb6835, #7b61ff, #00f7ff);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto; 
}

.footer-col {
  padding: 0;
}

.footer-col.brand p {
  color: #64748b;
  margin-top: 16px;
}

.footer-logo {
  font-family: var(--font-heading, "Syne", sans-serif);
  font-weight: 800;
  font-size: 24px;
  background: linear-gradient(135deg, #eb6835, #7b61ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0;
}

.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0f172a;
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col p {
  margin: 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.footer-col a {
  text-decoration: none;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-col a:hover {
  color: #7b61ff;
  transform: translateX(4px);
}

.footer-col .socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-col .socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-col .socials a:hover {
  background: #7b61ff;
  color: white;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 10px 20px rgba(123, 97, 255, 0.3);
}

.newsletter-form {
  display: flex;
  margin-top: 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.newsletter-form:focus-within {
  border-color: #7b61ff;
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.15);
}

.newsletter-form input {
  flex: 1;
  border: none;
  padding: 10px 12px;
  background: transparent;
  outline: none;
  font-size: 14px;
  min-width: 0;
}

.newsletter-form button {
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsletter-form button:hover {
  background: #7b61ff;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 14px;
}
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {

  .sidebar {
    transform: translateX(-100%);
  }

  .navbar {
    left: 0;
  }

  .main,
  .footer,
  .full-page {
    margin-left: 0;
  }

  .search-bar {
    width: 200px;
  }
/* Global site footer: remove sidebar offset on mobile */
  .footer-container {
    grid-template-columns: 1fr;
  }
}

.socials span:hover {
  transform: scale(1.2);
}

.search-wrapper {
  width: 100%;
  margin: 20px 0;
}

.search-wrapper input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
}

.search-wrapper input:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* FORM INPUT */
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d9dce3;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* FEATURES GRID */

  box-sizing: border-box;
  transition: 0.25s ease;
  font-size: 14px;
}

.form-input:focus {
  outline: none;
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108,92,231,0.12);
}

/* DARK MODE */
.dark-mode {
  background: #0f172a;
  color: #e5e7eb;
}

.dark-mode .sidebar {
  background: #020617;
  color: #e5e7eb;
}

.dark-mode .sidebar a {
  color: #94a3b8;
}

.dark-mode .sidebar a:hover,
.dark-mode .sidebar .active a {
  background: #1e293b;
  color: #ffffff;
}

.dark-mode .component-card,
.dark-mode .feature-card,
.dark-mode .hero {
  background: #1e293b;
  border-color: #334155;
  color: #e5e7eb;
}

.dark-mode p {
  color: #ffffff;
}

.dark-mode .actions button {
  background: #334155;
}

.dark-mode .actions button:hover {
  background: #475569;
}

.dark-mode .code-block {
  background: #020617;
  color: #38bdf8;
}

.dark-mode .footer {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .footer-col p,
.dark-mode .footer-col a {
  color: #94a3b8;
}

.dark-mode .footer-col h3 {
  color: #e2e8f0;
}

.dark-mode .footer-col a:hover {
  color: #a78bfa;
}

.dark-mode .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .newsletter-form {
  background: #1e293b;
  border-color: #334155;
}

.dark-mode .newsletter-form input {
  color: white;
}

.dark-mode .footer-col .socials a {
  background: #1e293b;
}

.dark-mode .footer-col .socials a:hover {
  background: #a78bfa;
  box-shadow: 0 10px 20px rgba(167, 139, 250, 0.2);
}

/* CODE BLOCK */
.code-block {
  display: none;
  background: #ffffff;
  color: #000000;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
}

.code-block.show {
  display: block;
}

/* CARDS */
.feature-card {

:root {
  /* ===== BACKGROUND ===== */
  --bg-main: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;

  /* ===== TEXT ===== */
  --text-primary: #0f172a;   /* strong heading */
  --text-secondary: #334155; /* normal text */
  --text-muted: #64748b;     /* subtitles */
  --text-inverse: #ffffff;

  /* ===== BRAND ===== */
  --primary: #6366f1;
  --primary-hover: #4f46e5;

  /* ===== BORDERS ===== */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  /* ===== STATES ===== */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
}

/* ================= COLORS PAGE ================= */

.section-title {
  margin: 30px 0 15px;
  font-size: 22px;
}

/* GRID */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.4rem;
  width: 100%
}

.color-card {
  background: rgba(232, 229, 226, 0.932);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  border: 2px solid black;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.color-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.color-box {
  height: 80px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1.9px solid black;
}

.color-card button {
  padding: 6px 10px;
  border: none;
  background: #111;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

/* SCHEMES */
.scheme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.scheme-card {
  background: white;
  padding: 15px;
  border-radius: 12px;
}

.scheme-colors {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.scheme-colors span {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

/* UI PREVIEW */
.ui-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.ui-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

.ui-btn.primary { background:#6c5ce7; }
.ui-btn.danger { background:#ff6b6b; }
.ui-btn.success { background:#00b894; }

body.dark-mode .component-card,
body.dark-mode .hero,
body.dark-mode .feature-card
  {
  background: rgb(106, 131, 180);
  color: white;
  border-color: #454185;
  }
  
.ui-card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  width: 200px;
}
/* ===== STUDENT CARD (MINT STYLE) ===== */
.student-card {
  background: #55efc4;
  color: #2d3436;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.student-card .profile-avatar {
  background: #2d3436;
  color: #55efc4;
  font-weight: 800;
}

.student-card .profile-name {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 20px;
}

.student-card .profile-role {
  opacity: 0.9;
  color: #2d3436;
}

.student-card .profile-btn {
  background: #2d3436;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.student-card .profile-btn:hover {
  background: #000;
}
/* =====================
   TOAST NOTIFICATION
   ===================== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #222;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.toast.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.toast-hidden {
  opacity: 0;
  transform: translateY(16px);
}

/* Dark mode support */
body.dark-mode .toast {
  background: #f0f0f0;
  color: #111;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.1);
}

/*Terms of Service Page*/

.terms-content{
  max-width: 1400px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #eee;
}

/* SEARCH BAR */
.search-bar {
  margin-bottom: 20px;
}

.search-bar input {
  width: 100%;
  padding: 12px;
  border-radius: 15px;
  border: 6px solid #ddd;
  outline: none;
}

.input{
  margin-bottom:12px;
  width:100%;
}

/* Push footer down */
.container {
  flex: 1;
}

/*Forms*/

.login-form-card,.signup-form-card,.contact-form-card{
  border:3px ridge #020109;
  padding:20px ;
  margin-bottom:0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-form-inner-card {
  border: 4px solid #00f7ff;
  border-radius: 20px;
  padding: 30px;
  background: white;
}
.signup-form-inner-card {
  border: 4px solid #a5d319;
  border-radius: 20px;
  padding: 30px;
  background: white;
}

.contact-form-inner-card {
  border: 4px solid #c81bc5;
  border-radius: 20px;
  padding: 30px;
  background: white;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.signup-form{
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-form{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.login-form h3,.signup-form h3,.contact-form h3{
  text-align: center;
  margin-top: 0;
}

.signup-form-inner-card,.contact-form-inner-card{
 flex:1;
}
textarea {
  resize:none; 
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.component-card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.component-card h3 {
  margin-bottom: 14px;
}

/* Global Footer*/
/*clean structural footer with sidebar offset*/
  .footer {
  width: calc(100% - var(--sidebar-width)); 
  margin-left: var(--sidebar-width); 
  background: #ffffff;
  padding: 40px 60px;
  border-top: 1px solid #e5e7eb;
  display: block;
  flex-basis: 100%;
  clear: both;
}

/* FEATURED SECTION */
.featured {
  margin-bottom: 30px;
}

.featured h2 {
  margin-bottom: 15px;
}

.featured-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Global footer it makes the footer content to be in centre*/
.footer {
  text-align: center;
  padding: 20px;
  color: #777;
}

/* IMPROVED HOVER */
.feature-card {
  transition: 0.3s;
}

/* .feature-card:hover {
  background: #d5aade;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
} */

.search-bar input:hover {
  border-color: #6c5ce7;
}
.search-bar {
  margin: 50px auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
  line-height: 1.6;
  color: #333;
}

/* General icon styling */
.features h3 i {
  margin-right: 12px;
  font-size: 1.2rem;
  vertical-align: middle;
}

.features h3 {
  text-align: center;
}

.socials span:hover {
  transform: scale(1.2);
}

.features p {
  text-align: center;
}
/* Copy Action Feedback Styling */
.copy-btn {
  transition: all 0.3s ease;
}

.copy-btn.copied {
  background-color: #b87200 ;
  color: #fff;
}

@media (max-width: 425px) {

  .hero {
    flex-direction: column;
    padding: 15px;
    text-align: center;
  }

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

  .hero-left h1 {
    font-size: 20px;
    line-height: 1.3;
  }

  .hero-left p {
    font-size: 13px;
  }

  .hero-right {
    width: 100%;
    margin-top: 15px;
  }

  .explore-btn {
    width: 100%;
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 14px;
  }

  .search-bar input {
    padding: 8px;
    font-size: 14px;
  }

  .feature-card {
    padding: 12px;
  }

  .featured h2 {
    font-size: 18px;
  }

  #scrollTopBtn {
    bottom: 15px;
    right: 15px;
    font-size: 14px;
  }
}


/* contact */
.contact-center {
  height: 100vh; 
  display: flex;
  justify-content: center; 
  align-items: center;     
}

.contact-box {
  width: 350px;
  padding: 25px;
  background: rgb(183, 183, 186);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-align: center;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #4888c7;
  border-radius: 6px;
}

.contact-box button {
  margin-top: 10px;
  padding: 10px 20px;
  border: none;
  background:rgb(63, 81, 119);
  color: white;
  border-radius: 20px;
  cursor: pointer;
}

.contact-box button:hover {
  background: rgb(135, 160, 215);
}

/* fillforms */

.forms {
  display: flex;
  flex-wrap: wrap;
}

.form {
  width: 350px;
  padding: 25px;
  background: rgb(183, 183, 186);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-align: center;
}

.form input ,
.form textarea {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #4888c7;
  border-radius: 6px;
}

.form button {
  margin-top: 10px;
  padding: 10px 20px;
  border: none;
  background:rgb(63, 81, 119);
  color: white;
  border-radius: 20px;
  cursor: pointer;
}

/* fill forms */
.container2 {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.formsh1 {
  margin-bottom: 20px;
}

.form-card {
  background: white;
  padding: 20px;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.744);
  text-align: left;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--nav-bg, #0f172a);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* LOGO */
.logo {
  font-size: 22px;
  font-weight: 700;
}

/* SEARCH BAR FIX */
.search-bar {
  display: flex;
  align-items: center;
  background: #1e293b;
  border-radius: 999px;
  padding: 6px 10px;
  width: 40%;
  max-width: 500px;
  transition: 0.3s;
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  color: white;
  flex: 1;
  padding: 8px;
  font-size: 14px;
}

.search-bar input::placeholder {
  color: #94a3b8;
}

.search-btn {
  background: #3b82f6;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}

.search-btn:hover {
  background: #2563eb;
}

/* RIGHT SIDE */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  background: #1e293b;
  border: none;
  padding: 8px 14px;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.nav-btn:hover {
  background: #334155;
}

.search-bar:focus-within {
  box-shadow: 0 0 0 2px #3b82f6;
  background: #0f172a;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #0f172a;
}

/* SEARCH BAR */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;

  height: 40px;              /* same as buttons */
  padding: 0 14px;

  background: #1e293b;
  border-radius: 999px;

  flex: 1;                   /* centers it */
  max-width: 500px;
  margin: 0 20px;
}

.search-bar i {
  color: #94a3b8;
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  color: white;
  flex: 1;
}

/* BUTTON ALIGNMENT */
.nav-btn {
  height: 40px;
  padding: 0 14px;
  background: #1e293b;
  border: none;
  color: white;
  border-radius: 8px;
}

/* FOCUS EFFECT */
.search-bar:focus-within {
  background: #0f172a;
  box-shadow: 0 0 0 2px #3b82f6;
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #847fbf;
  border-radius: 6px;
}

.options {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.form-card button {
  width: 100%;
  padding: 10px;
  border: none;
  background: rgb(63, 81, 119);
  color: white;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 10px;
}

.form-card button:hover {
  background: rgb(135, 160, 215);
}

.radio-group,
.checkbox-group {
  margin: 10px 0;
}

/* badges.html */
.form-card button:hover {
  background: rgb(135, 160, 215);
}

.radio-group,
.checkbox-group {
  margin: 10px 0;
}

/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #0f0f0f;
  color: #fff;
}

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #151515;
  border-bottom: 1px solid #222;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-bar input {
  padding: 8px;
  border-radius: 6px;
  border: none;
  outline: none;
}

.search-btn {
  padding: 8px 10px;
  cursor: pointer;
}

.nav-btn {
  background: #6c5ce7;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}

/* ================= LAYOUT ================= */
.container {
  display: flex;
}

.main {
  flex: 1;
  padding: 20px;
}

/* ================= SIDEBAR ================= */
.sidebar {
  width: var(--sidebar-width);
  background: #111;
  padding: 20px;
  border-right: 1px solid #222;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin: 10px 0;
}

.sidebar a {
  color: #ccc;
  text-decoration: none;
}

.sidebar .active a {
  color: #6c5ce7;
}

/* ================= HEADER ================= */
.page-header {
  margin-bottom: 20px;
}

.page-header p {
  color: #aaa;
}

/* ================= GRID ================= */
.button-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* ================= CARD ================= */
.component-card {
  background: #181818;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #222;
  transition: 0.3s;
}

.component-card:hover {
  transform: translateY(-5px);
  border-color: #6c5ce7;
}

/* ================= ACTION BUTTONS ================= */
.actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.actions button {
  flex: 1;
  padding: 6px;
  font-size: 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* ================= CODE BLOCK ================= */
.code-block {
  display: none;
  background: #000;
  padding: 10px;
  margin-top: 10px;
  border-radius: 6px;
  font-size: 12px;
  overflow-x: auto;
}

/* ================= BUTTON STYLES ================= */
.gradient-btn {
  background: linear-gradient(45deg, #ff6b6b, #6c5ce7);
  border: none;
  padding: 8px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}

.glass-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 8px;
  border-radius: 6px;
  color: white;
}

/* ================= DIV COMPONENTS ================= */

/* Profile */
.profile-card {
  text-align: center;
}
.avatar {
  font-size: 40px;
  margin-bottom: 10px;
}

/* Stats */
.stats {
  display: flex;
  justify-content: space-between;
}
.stats h2 {
  margin: 5px 0;
}

/* Notification */
.notification-card {
  padding: 10px;
  background: #222;
  border-radius: 8px;
  text-align: center;
}

/* Pricing */
.pricing-card ul {
  margin-top: 10px;
  padding-left: 15px;
}

/* Activity */
.activity-card ul {
  margin-top: 10px;
  padding-left: 15px;
}

/* Info */
.info-card {
  text-align: center;
}

/* ================= FOOTER ================= */
.footer {
  background: #111;
  padding: 20px;
  margin-top: 30px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
}

.footer-col h3 {
  margin-bottom: 10px;
/* responsive-form */
}
@media (max-width: 1024px) {

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .container2 {
    margin-left: 0;
    padding: 10px;
  }

  .options {
    flex-direction: column;
    gap: 5px;
  }
}

/* badges */
.badges-page {
  max-width: 1000px;
  margin: auto;
}

.prog-1 h1 {
  text-align: center;
  margin-bottom: 30px;
}

.prog-2 h2 {
  margin-top: 30px;
  color: #333;
}

.badge-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.badge {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.badge:hover {
  transform: translateY(-5px);
}

.badge img {
  width: 60px;
  margin-bottom: 10px;
}


.badge h3 {
  margin: 10px 0 5px;
}

.badge p {
  font-size: 14px;
  color: #666;
}

/* Locked Badge */
.locked {
  opacity: 0.5;
}

.locked img {
  filter: grayscale(100%);
}

 .progress progress {
  width: 100%;
  margin-top: 10px;
} 

/* form-responsive */

@media (max-width: 1024px) {

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .container2 {
    margin-left: 0;
    padding: 10px;
  }

  .options {
    flex-direction: column;
    gap: 5px;
  }
}

/* badge responsive */

@media (max-width: 1440px) {

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

}
/* badge responsive */



.sidebar {
  width: 80px;
  height: 100vh;
  position: fixed;
  top: 0; left: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  width: var(--sidebar-width, 260px);
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }

.sidebar .brand-text,
.sidebar-nav span {
  opacity: 0;
  transition: opacity 0.2s, transform 0.3s ease;
  transform: translateX(-10px);
  white-space: nowrap;
}

.sidebar.open .brand-text,
.sidebar.open .sidebar-nav span {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-brand {
  padding: 30px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-heading, "Syne", sans-serif);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.sidebar-brand .brand-icon {
  font-size: 28px;
  background: linear-gradient(135deg, #eb6835, #7b61ff, #00f7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hue-rotate 4s infinite linear;
}

@keyframes hue-rotate {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

.sidebar-nav {
  padding: 20px 16px;
  flex: 1;
}

.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { margin-bottom: 6px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.sidebar-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.sidebar.open .sidebar-nav a:hover {
  transform: translateX(6px);
}

.sidebar-nav .active a {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(123, 97, 255, 0.15), transparent);
  border-color: rgba(123, 97, 255, 0.2);
}

.sidebar-nav .active a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #eb6835, #7b61ff);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(123, 97, 255, 0.5);
}

.sidebar-nav i {
  font-size: 18px;
  width: 24px;
  text-align: center;
  opacity: 0.7;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav .active a i {
  color: #7b61ff;
  opacity: 1;
  text-shadow: 0 0 12px rgba(123, 97, 255, 0.4);
}

.sidebar-nav a:hover i {
  transform: scale(1.15) rotate(-5deg);
  color: #eb6835;
  opacity: 1;
}

/* Color matching UI theme */
.fa-layer-group { color: #5900ff; } 
.fa-seedling   { color: #008ef3; } 
.fa-bolt       { color: #ff0400; } 
.fa-rocket { color: rgb(190, 37, 63); }

.forms-section {
  padding: 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

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

.form-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: 0.3s;
}

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

.form-card.wide {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.form-row {
  display: flex;
  gap: 10px;
}

input, textarea, select {
  padding: 10px;
  border-radius: 8px;
  border: none;
  margin-top: 5px;
  outline: none;
}

textarea {
  min-height: 100px;
  margin-top: 10px;
}

/* Buttons */
.btn {
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

.btn.primary {
  background: #4f46e5;
  color: white;
}

.btn.gradient {
  background: linear-gradient(45deg, #ff6b6b, #6c5ce7);
  color: white;
}

.btn.glass {
  background: rgba(255,255,255,0.1);
  color: white;
  backdrop-filter: blur(10px);
}
/* Fix spacing globally */
form{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Input styling */
.form-input,
.input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background: #111;
  color: #fff;
  transition: 0.3s ease;
}

.form-input:focus,
.input:focus,
textarea:focus,
select:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 2px rgba(108,92,231,0.2);
}

/* Card improvement */
.component-card {
  background: #181818;
  padding: 20px;
  border-radius: 16px;
  transition: 0.3s ease;
  border: 1px solid #222;
}

.component-card:hover {
  transform: translateY(-5px);
  border-color: #6c5ce7;
}

/* Fix button group layout */
.button-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* Buttons consistency */
.nav-btn,
.gradient-btn,
.neon-btn,
.glass-btn {
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

/* Button hover effects */
.nav-btn:hover {
  background: #6c5ce7;
  color: white;
}

.gradient-btn {
  background: linear-gradient(45deg, #ff6b6b, #6c5ce7);
  color: white;
}

.neon-btn {
  background: #0f0f0f;
  color: #00ffe0;
  border: 1px solid #00ffe0;
}

.neon-btn:hover {
  box-shadow: 0 0 10px #00ffe0;
}

.glass-btn {
  background: rgba(255,255,255,0.1);
  color: white;
  backdrop-filter: blur(10px);
}

/* Actions buttons */
.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.actions button {
  flex: 1;
  margin: 5px;
  padding: 6px;
  font-size: 12px;
}

/* Fix duplicate main spacing */
.main {
  padding: 20px;
}
/* ================= LIKE & SAVE BUTTONS ================= */

/* about */

.container-2 {
width: 800px;
margin: auto;
padding: 40px 0;
}

.about-head {
text-align: center;
margin-bottom: 20px;
font-size: 40px;
color: rgb(67, 67, 130);
}

.about-section {
background: rgba(255, 255, 255, 0.1);
padding: 30px;
border-radius: 15px;
backdrop-filter: blur(10px);
box-shadow: 0 8px 20px rgba(0,0,0,0.3);
transition: 0.3s;
}

.about-section {
transform: scale(1.02);
}

.about-section p {
font-size: 18px;
margin-bottom: 15px;
}


.sec-tions {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  flex-wrap: wrap;
}

.section-ca-rd {
  background: rgba(255,255,255,0.1);
  padding: 25px;
  border-radius: 15px;
  width: 30%;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.section-ca-rd:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.2);
}

.btn2 {
  display: inline-block;
  padding: 10px 18px;
  background: white;
  color: #2a5298;
  text-decoration: none;
  border-radius: 8px;
}

.btn2:hover {
  background: #2a5298;
  color: white;
}

/* settings.html */

.settings-container {
  margin-left: 240px;
  padding: 40px;
}

.settings-container h1 {
  margin-bottom: 20px;
}

.settings-card {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(118, 55, 55, 0.05);
}

.settings-card h2 {
  margin-bottom: 15px;
}

.settings-card label {
  display: block;
  margin: 10px 0 5px;
  font-size: 14px;
}

.settings-card input[type="text"],
.settings-card input[type="email"],
.settings-card input[type="password"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}

.settings-card button {
  margin-top: 10px;
  padding: 10px 15px;
  border: none;
  background: linear-gradient(90deg, #416778, #7a82c7);
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

.settings-card button:hover {
  background: #8dbee6;
}

.toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
}

.toggle input {
  width: 18px;
  height: 18px;
}
/* DARK MODE */
body.dark {
  background-color: #121212;
  color: #ffffff;
}

body.dark * {
  color: #ffffff;
}

body.dark .settings-card {
  background-color: #1e1e1e;
}

body.dark input {
  background-color: #2c2c2c;
  color: #ffffff;
  border: 1px solid #555;
}

body.dark button {
  background: #444;
  color: #fff;
}

/* HERO LAYOUT */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 40px;
  gap: 40px;
}

/* LEFT */
.hero-left {
  max-width: 520px;
}

.hero-badge {
  background: rgba(99,102,241,0.1);
  color: #6366f1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.hero h1 {
  font-size: 42px;
  margin: 16px 0;
  line-height: 1.2;
}

.hero .accent {
  color: #6366f1;
}

.hero p {
  color: #94a3b8;
  margin-bottom: 20px;
}

/* CTA */
.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

/* PRIMARY CTA */
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(99,102,241,0.3);
  transition: 0.3s;
}

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

/* SECONDARY CTA */
.btn-secondary {
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
}

.btn-secondary:hover {
  color: #fff;
  border-color: #6366f1;
}

/* TRUST TEXT */
.hero-trust {
  font-size: 13px;
  color: #64748b;
}

/* RIGHT CARD */
.hero-card {
  width: 260px;
  border-radius: 14px;
  background: #0f172a;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  gap: 6px;
  padding: 10px;
}

.hero-card-header span {
  width: 10px;
  height: 10px;
  background: #334155;
  border-radius: 50%;
}

.hero-card-body {
  padding: 20px;
  display: flex;
  gap: 10px;
}

.demo-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: #6366f1;
  color: #fff;
}

.demo-btn.outline {
  background: transparent;
  border: 1px solid #6366f1;
}

/* 🌍 GLOBAL */
body {
  background: var(--bg);
  color: var(--text);
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}
/* profile.html */
.profile-container {
  margin-left: 240px;
  padding: 40px;
  display: flex;
  justify-content: center;
}

.profile-card {
  background: #feffff;
  width: 100%;
  max-width: 500px;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(104, 21, 172, 0.05);
  text-align: center;
}

.profile-header img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.profile-header h2 {
  margin: 10px 0 5px;
}

.profile-header p {
  color: #666;
  font-size: 14px;
}

.profile-info {
  margin-top: 20px;
  text-align: left;
}

.info {
  margin-bottom: 15px;
}

.info span {
  font-size: 13px;
  color: #888;
}

.info p {
  font-size: 15px;
  margin-top: 3px;
}

.btnn {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  background: linear-gradient(90deg, #546884, #6f75ae);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
}

.btnn:hover {
  opacity: 0.7;
}
.feature-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* Base button */
.like-btn,
.save-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  color: #aaa;
  transition: all 0.25s ease;
}

/* Hover effect */
.like-btn:hover,
.save-btn:hover {
  transform: scale(1.15);
  color: #fff;
}

/* Active (clicked) states */
.like-btn.active {
  color: #ff4d6d;
  border-color: #ff4d6d;
  background: rgba(255, 77, 109, 0.1);
}


.footer {
  margin-top: 60px;
}

/* PRIMARY CTA (dominant) */
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(99, 102, 241, 0.4);
}


/* SECONDARY CTA (subtle) */
.btn-secondary {
  background: transparent;
  color: #94a3b8;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.3s;
}

.btn-secondary:hover {
  color: #fff;
  border-color: #6366f1;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  align-items: center;
}

.save-btn.active {
  color: #4dabf7;
  border-color: #4dabf7;
  background: rgba(77, 171, 247, 0.1);
}

/* Fix duplicate main spacing */
.main {
  padding: 20px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  font-size: 14px;
  color: #888;
  display: block;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.primary-btn {
  background: #4f46e5;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
}

.secondary-btn {
  border: 1px solid #ccc;
  padding: 12px 24px;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -250px;
    transition: 0.3s;
  }

  .sidebar.active {
    left: 0;
  }
}
body {
  font-family: "Poppins", sans-serif;
  color: #1f2937;
  line-height: 1.6;
}
h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1f2937;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: #6b7280;
  max-width: 600px;
}
.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
  color: #6b7280;
}
p {
  font-weight: 400;
}

.sidebar h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section {
  padding: 40px 0;
  border-bottom: 1px solid #e5e7eb;
}

.section:last-child {
  border-bottom: none;
}

.section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.section p {
  color: #6b7280;
  max-width: 750px;
}
.tagline {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: #4f46e5;
  letter-spacing: 0.05em;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

p {
  font-size: 1rem;
  line-height: 1.7;
}

h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #111827;
  margin-bottom: 12px;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #1f2937;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
}

.subheading {
  font-size: 1.25rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.6;
  max-width: 650px;
}

.stat-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
}
h1, h2, h3 {
  margin-top: 0;
}

section {
  margin-bottom: 60px;
}

p {
  margin-bottom: 12px;
  color: #6b7280;
}

.sidebar ul li a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Hover Effect */
.sidebar ul li a:hover {
  background: #f3f4f6;
  color: #2563eb;
  transform: translateX(4px);
}

/* Active Page */
.sidebar ul li.active a {
  background: #2563eb;
  color: white;
}

/* Keyboard Accessibility */
.sidebar ul li a:focus {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

/* Click Feedback */
.sidebar ul li a:active {
  transform: scale(0.98);
}
/* Sidebar Links */
.sidebar ul li a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 18px;
  margin: 6px 0;

  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;

  border-radius: 10px;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

/* Hover Feedback */
.sidebar ul li a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;

  transform: translateX(6px);

  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===============================================
   COMPREHENSIVE DARK MODE SUPPORT
   Using CSS Custom Properties for consistent theming
   =============================================== */

/* Base Dark Mode Styles */
html.dark-mode {
  color-scheme: dark;
}

/* Headings */
html.dark-mode h1 {
  color: var(--text-primary);
}

html.dark-mode h2 {
  color: var(--text-primary);
}

html.dark-mode h3 {
  color: var(--text-secondary);
}

html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6 {
  color: var(--text-primary);
}

/* Links */
html.dark-mode a {
  color: var(--link-color);
  transition: color 0.2s ease;
}

html.dark-mode a:hover {
  color: var(--link-hover);
}

/* Navigation */
html.dark-mode header,
html.dark-mode nav {
  background-color: var(--header-bg);
  border-color: var(--header-border);
  color: var(--text-primary);
}

html.dark-mode .nav-links a {
  color: var(--text-secondary);
}

html.dark-mode .nav-links a:hover {
  color: var(--link-color);
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--button-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle:hover {
  background: var(--button-hover);
  transform: scale(1.05);
}

.theme-toggle i {
  display: flex;
  align-items: center;
}

/* Cards and Components */
html.dark-mode .card,
html.dark-mode .component-card,
html.dark-mode .feature-card,
html.dark-mode .product-card,
html.dark-mode .profile-card {
  background-color: var(--card-bg);
  border-color: var(--card-border);
  color: var(--text-primary);
  box-shadow: 0 4px 6px var(--card-shadow);
}

/* Buttons */
html.dark-mode .btn-primary,
html.dark-mode .btn-secondary,
html.dark-mode button {
  background-color: var(--button-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
  transition: all 0.3s ease;
}

html.dark-mode .btn-primary:hover,
html.dark-mode .btn-secondary:hover,
html.dark-mode button:hover {
  background-color: var(--button-hover);
}

/* Input Fields */
html.dark-mode input,
html.dark-mode textarea,
html.dark-mode select {
  background-color: var(--input-bg);
  color: var(--input-text);
  border-color: var(--input-border);
  transition: all 0.3s ease;
}

html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder {
  color: var(--text-tertiary);
}

html.dark-mode input:focus,
html.dark-mode textarea:focus,
html.dark-mode select:focus {
  border-color: var(--link-color);
  background-color: var(--card-bg);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Code Blocks */
html.dark-mode .code-block,
html.dark-mode code {
  background-color: var(--code-bg);
  color: var(--code-color);
  border-color: var(--border-color);
}

html.dark-mode pre {
  background-color: var(--code-bg);
  color: var(--code-color);
  border: 1px solid var(--border-color);
}

/* Tables */
html.dark-mode table {
  border-color: var(--border-color);
  background-color: var(--card-bg);
}

html.dark-mode table thead {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

html.dark-mode table tbody tr {
  border-color: var(--border-color);
}

html.dark-mode table tbody tr:hover {
  background-color: var(--bg-secondary);
}

html.dark-mode table td,
html.dark-mode table th {
  color: var(--text-primary);
  border-color: var(--border-color);
}

/* Modals and Dialogs */
html.dark-mode .modal,
html.dark-mode .dialog {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
}

html.dark-mode .modal-header,
html.dark-mode .modal-footer {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

/* Sidebar */
html.dark-mode .sidebar {
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  border-color: var(--border-color);
}

html.dark-mode .sidebar a {
  color: var(--sidebar-text);
  transition: all 0.3s ease;
}

html.dark-mode .sidebar a:hover,
html.dark-mode .sidebar .active a {
  background-color: var(--sidebar-hover-bg);
  color: var(--text-primary);
}

/* Dropdowns */
html.dark-mode .dropdown,
html.dark-mode .dropdown-menu {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}

html.dark-mode .dropdown-item:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

/* Badges and Tags */
html.dark-mode .badge,
html.dark-mode .tag {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

/* Alerts and Notifications */
html.dark-mode .alert,
html.dark-mode .notification {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}

html.dark-mode .alert-info {
  background-color: rgba(96, 165, 250, 0.1);
  border-color: rgb(96, 165, 250);
  color: rgb(147, 197, 253);
}

html.dark-mode .alert-success {
  background-color: rgba(34, 197, 94, 0.1);
  border-color: rgb(34, 197, 94);
  color: rgb(134, 239, 172);
}

html.dark-mode .alert-warning {
  background-color: rgba(251, 146, 60, 0.1);
  border-color: rgb(251, 146, 60);
  color: rgb(254, 215, 170);
}

html.dark-mode .alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgb(239, 68, 68);
  color: rgb(252, 165, 165);
}

/* Pagination */
html.dark-mode .pagination {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

html.dark-mode .pagination a,
html.dark-mode .pagination span {
  color: var(--text-primary);
  border-color: var(--border-color);
}

html.dark-mode .pagination a:hover,
html.dark-mode .pagination .active {
  background-color: var(--button-bg);
  color: var(--text-primary);
}

/* Forms */
html.dark-mode .form-group {
  color: var(--text-primary);
}

html.dark-mode .form-label {
  color: var(--text-secondary);
}

html.dark-mode .form-text,
html.dark-mode .form-hint {
  color: var(--text-tertiary);
}

/* Search Bar */
html.dark-mode .search-bar {
  background-color: var(--input-bg);
  border-color: var(--input-border);
}

html.dark-mode .search-bar input {
  background-color: var(--input-bg);
  color: var(--input-text);
  border-color: var(--input-border);
}

html.dark-mode .search-bar input::placeholder {
  color: var(--text-tertiary);
}

html.dark-mode .search-icon {
  color: var(--text-tertiary);
}

/* Scrollbar Styling for Dark Mode */
html.dark-mode ::-webkit-scrollbar {
  width: 12px;
}

html.dark-mode ::-webkit-scrollbar-track {
  background-color: var(--bg-primary);
}

html.dark-mode ::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 6px;
}

html.dark-mode ::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-tertiary);
}

/* Footer */
html.dark-mode footer {
  background-color: var(--sidebar-bg);
  border-color: var(--border-color);
  color: var(--sidebar-text);
}

html.dark-mode footer a {
  color: var(--link-color);
}

html.dark-mode footer a:hover {
  color: var(--link-hover);
}

/* Tooltip */
html.dark-mode .tooltip {
  background-color: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
}

/* Loading States */
html.dark-mode .skeleton,
html.dark-mode .loader {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

/* Hero Section */
html.dark-mode .hero {
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

html.dark-mode .hero-title {
  color: var(--text-primary);
}

html.dark-mode .hero-desc {
  color: var(--text-secondary);
}

/* Accessibility: Ensure proper contrast in dark mode */
@media (prefers-contrast: more) {
  html.dark-mode {
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
  }
}

/* Active Navigation Item */
.sidebar ul li.active a {
  background: #2563eb;
  color: white;

  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* Click Interaction */
.sidebar ul li a:active {
  transform: scale(0.97);
}

/* Keyboard Accessibility */
.sidebar ul li a:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}

/* Smooth Cursor */
.sidebar ul li a {
  cursor: pointer;
}


/* Global Layout Constraint */
.container,
.hero,
.features,
.footer-container {
  width: 100%;
  
  margin: 0 auto;
  box-sizing: border-box;
}

/* Main Content Area */
.main {
  flex: 1;
  padding: 40px;
}

/* Hero Section */
.hero {
  padding: 80px 40px;
  text-align: center;
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;

  padding: 40px;
}

/* Footer */
.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;

  padding: 40px;
}

/* Large Screen Optimization */
@media (min-width: 1400px) {
  .hero,
  .features,
  .footer-container {
    max-width: 1280px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .main {
    padding: 20px;
  }

  .hero {
    padding: 60px 20px;
  }

  .features {
    padding: 20px;
  }

  .footer-container {
    flex-direction: column;
    padding: 30px 20px;
  }
}

.contribute-box {
  margin-top: 50px;
  padding: 30px;

  background: rgba(255,255,255,0.05);
  border-radius: 20px;

  backdrop-filter: blur(10px);
}

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

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

body {
  font-family: 'Poppins', sans-serif;
  background: #0f172a;
  color: white;
  line-height: 1.6;
}

/* =========================
   MAIN APP LAYOUT

.container {
  display: flex;
  min-height: 100vh;
}

/* =========================
   SIDEBAR

.sidebar {
  width: 260px;
  background: #111827;

  padding: 30px 20px;

  position: sticky;
  top: 0;
  height: 100vh;

  border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar h2 {
  font-size: 2rem;
  margin-bottom: 35px;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 8px;
}

.sidebar ul li a {
  display: flex;
  align-items: center;

  padding: 14px 18px;

  border-radius: 12px;

  text-decoration: none;
  color: #d1d5db;

  transition: all 0.3s ease;
}

.sidebar ul li a:hover {
  background: rgba(255,255,255,0.08);
  color: white;

  transform: translateX(5px);
}

.sidebar ul li.active a {
  background: #2563eb;
  color: white;
}

/* =========================
   MAIN CONTENT

.main {
  flex: 1;

  width: 100%;
  overflow-x: hidden;
}

/* Shared Width Constraint */

.hero,
.features,
.footer-container {
  width: 100%;
  max-width: 1250px;

  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

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

.hero {
  padding-top: 100px;
  padding-bottom: 100px;

  text-align: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;

  margin-bottom: 24px;

  max-width: 900px;
  margin-inline: auto;
}

.hero p {
  font-size: 1.2rem;
  color: #cbd5e1;

  max-width: 700px;
  margin: 0 auto 40px;
}

/* CTA Button */

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

  padding: 15px 30px;

  background: #2563eb;
  color: white;

  text-decoration: none;
  font-weight: 600;

  border-radius: 14px;

  transition: all 0.3s ease;
}

.explore-btn:hover {
  transform: translateY(-4px);
  background: #1d4ed8;

  box-shadow: 0 12px 30px rgba(37,99,235,0.35);
}

/* =========================
   CONTRIBUTION BOX

.contribute-box {
  margin-top: 70px;

  padding: 45px;

  border-radius: 28px;

  background: rgba(255,255,255,0.05);

  border: 1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(14px);

  max-width: 800px;
  margin-inline: auto;
}

.contribute-box h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.contribute-box p {
  margin-bottom: 25px;
}

/* =========================
   FEATURES

.features {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));

  gap: 28px;

  padding-bottom: 100px;
}

.feature-card {
  background: rgba(255,255,255,0.04);

  border: 1px solid rgba(255,255,255,0.06);

  border-radius: 24px;

  padding: 35px;

  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);

  background: rgba(255,255,255,0.06);

  border-color: rgba(255,255,255,0.12);

  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

.feature-card h3 {
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.feature-card p {
  color: #cbd5e1;
}

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

.footer {
  border-top: 1px solid rgba(255,255,255,0.08);

  background: #111827;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 60px;

  padding-top: 60px;
  padding-bottom: 60px;
}

.footer-col h2,
.footer-col h3 {
  margin-bottom: 18px;
}

.footer-col p {
  margin-bottom: 10px;
  color: #cbd5e1;
}

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

@media (max-width: 992px) {

  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;

    position: relative;
  }

  .footer-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {

  .hero,
  .features,
  .footer-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .contribute-box {
    padding: 30px;
  }

  .feature-card {
    padding: 28px;
  }
}

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

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Poppins',sans-serif;
  background:#f5f7fb;
  color:#111827;
}

/* CONTAINER */

.container{
  display:flex;
  min-height:100vh;
}

/* SIDEBAR */

.sidebar{
  width:260px;
  background:#0f172a;
  color:white;
  padding:30px 22px;
  position:sticky;
  top:0;
  height:100vh;
}

.logo h2{
  font-size:32px;
  margin-bottom:5px;
}

.logo p{
  color:#94a3b8;
  font-size:14px;
  margin-bottom:40px;
}

.sidebar ul{
  list-style:none;
}

.sidebar ul li{
  margin-bottom:12px;
}

.sidebar ul li a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  border-radius:12px;
  text-decoration:none;
  color:#d1d5db;
  transition:0.3s ease;
}

.sidebar ul li a:hover{
  background:#1e293b;
  color:white;
  transform:translateX(5px);
}

.sidebar ul li.active a{
  background:#2563eb;
  color:white;
}

/* MAIN */

.main{
  flex:1;
  padding:60px;
}

/* HERO */

.hero{
  max-width:900px;
}

.hero-badge{
  display:inline-block;
  background:#dbeafe;
  color:#2563eb;
  padding:10px 18px;
  border-radius:50px;
  font-size:14px;
  font-weight:600;
  margin-bottom:25px;
}

.hero h1{
  font-size:4rem;
  line-height:1.1;
  margin-bottom:25px;
  font-weight:800;
}

.hero h1 span{
  color:#2563eb;
}

.hero p{
  max-width:700px;
  color:#6b7280;
  font-size:1.1rem;
  line-height:1.8;
  margin-bottom:35px;
}

/* HERO BUTTONS */

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

.primary-btn,
.secondary-btn{
  text-decoration:none;
  padding:15px 28px;
  border-radius:14px;
  font-weight:600;
  transition:0.3s ease;
}

.primary-btn{
  background:#2563eb;
  color:white;
}

.primary-btn:hover{
  background:#1d4ed8;
  transform:translateY(-3px);
}

.secondary-btn{
  border:2px solid #d1d5db;
  color:#111827;
  background:white;
}

.secondary-btn:hover{
  border-color:#2563eb;
  color:#2563eb;
}

/* STATS */

.stats{
  margin-top:70px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:25px;
}

.stat-card{
  background:white;
  padding:35px;
  border-radius:22px;
  box-shadow:0 10px 30px rgba(0,0,0,0.06);
}

.stat-card h2{
  font-size:2.4rem;
  color:#2563eb;
  margin-bottom:10px;
}

/* FEATURES */

.features{
  margin-top:70px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:28px;
}

.feature-card{
  background:white;
  padding:35px;
  border-radius:24px;
  transition:0.3s ease;
  box-shadow:0 10px 30px rgba(0,0,0,0.05);
}

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

.feature-card .icon{
  font-size:40px;
  margin-bottom:20px;
}

.feature-card h3{
  margin-bottom:15px;
  font-size:1.3rem;
}

.feature-card p{
  color:#6b7280;
  line-height:1.7;
}

/* CONTRIBUTION */

.contribute-box{
  margin-top:80px;
  background:linear-gradient(
    135deg,
    #2563eb,
    #1d4ed8
  );

  padding:50px;
  border-radius:28px;

  color:white;

  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  flex-wrap:wrap;
}

.contribute-box p{
  margin-top:10px;
  color:#dbeafe;
  max-width:600px;
}

.contribute-box .primary-btn{
  background:white;
  color:#2563eb;
}

/* FOOTER */

.footer{
  background:#0f172a;
  color:white;
  margin-top:80px;
}

.footer-container{
  max-width:1300px;
  margin:auto;
  padding:60px 30px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:40px;
}

.footer-col h2,
.footer-col h3{
  margin-bottom:20px;
}

.footer-col p{
  color:#94a3b8;
  line-height:1.7;
}

.footer-col a{
  display:block;
  color:#cbd5e1;
  text-decoration:none;
  margin-bottom:12px;
  transition:0.3s;
}

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

.socials{
  display:flex;
  gap:15px;
  margin-top:20px;
  font-size:24px;
}

.footer-bottom{
  text-align:center;
  padding:20px;
  border-top:1px solid rgba(255,255,255,0.08);
  color:#94a3b8;
}

/* RESPONSIVE */

@media(max-width:1000px){

  .container{
    flex-direction:column;
  }

  .sidebar{
    width:100%;
    height:auto;
    position:relative;
  }

  .sidebar ul{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
  }

  .main{
    padding:40px 25px;
  }

  .hero h1{
    font-size:3rem;
  }

}

@media(max-width:700px){

  .hero h1{
    font-size:2.4rem;
  }

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

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

  .primary-btn,
  .secondary-btn{
    width:100%;
    text-align:center;
  }

  .contribute-box{
    padding:35px 25px;
  }

}

@media(max-width:500px){

  .sidebar{
    padding:25px 15px;
  }

  .sidebar ul{
    flex-direction:column;
  }

  .hero h1{
    font-size:2rem;
  }

  .feature-card,
  .stat-card{
    padding:25px;
  }

}

.stat-card h2{
  font-size: 3rem;
  font-weight: 800;
}

.stat-card p{
  opacity: 0.75;
  font-size: 0.95rem;
}

.stat-card{
  transition: 0.3s ease;
}

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

.stat-card:nth-child(1){
  border-top: 3px solid #7c3aed;
}

.stat-card:nth-child(2){
  border-top: 3px solid #06b6d4;
}

.stat-card:nth-child(3){
  border-top: 3px solid #f59e0b;
}

.stats{
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  border-radius: 24px;
}

.stats{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 25px;
  margin-top: 60px;
}

.stat-card{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 35px 25px;
  text-align: center;
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.stat-icon{
  font-size: 2rem;
  margin-bottom: 15px;
}

.stat-card h2{
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.stat-card p{
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

.socials{
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.socials a{
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);

  border-radius: 12px;

  text-decoration: none;
  font-size: 1.2rem;

  transition: 0.3s ease;
}

.socials a:hover{
  transform: translateY(-5px) scale(1.05);

  background: #7c3aed;

  box-shadow: 0 10px 25px rgba(124,58,237,0.35);
}

/* FOOTER */

.footer{
  margin-top: 80px;
  background: #0f172a;
  color: white;
  padding: 60px 8%;
}

.footer-container{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 40px;
}

.footer-col h2{
  font-size: 2rem;
  margin-bottom: 15px;
}

.footer-col h3{
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.footer-col p{
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.footer-col a{
  display: block;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-col a:hover{
  color: #a855f7;
  transform: translateX(5px);
}

/* SOCIAL ICONS */

.socials{
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.socials a{
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: rgba(255,255,255,0.08);

  border: 1px solid rgba(255,255,255,0.08);

  text-decoration: none;

  font-size: 1.2rem;

  transition: all 0.35s ease;

  backdrop-filter: blur(10px);
}

.socials a:hover{
  transform: translateY(-6px) scale(1.08);

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

  box-shadow:
    0 10px 25px rgba(124,58,237,0.35),
    0 0 20px #a855f740;
}
.nav-section {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-left: 10px;
}

/* =========================
   RESPONSIVE UIVERSE SYSTEM
   ========================= */

/* Tablets */
@media (max-width: 1024px) {

  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
  }

  .main {
    padding: 20px;
  }

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

  .hero h1 {
    font-size: 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {

  /* Sidebar becomes top nav */
  .sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .sidebar nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .sidebar nav ul li {
    font-size: 13px;
  }

  /* Main spacing */
  .main {
    padding: 15px;
  }

  /* Hero */
  .hero {
    text-align: left;
    padding: 20px 10px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14px;
  }

  /* Feature grid → single column */
  .features {
    grid-template-columns: 1fr;
  }

  /* Buttons stack */
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    text-align: center;
  }
}

/* Extra small devices */
@media (max-width: 480px) {

  .hero h1 {
    font-size: 22px;
  }

  .sidebar h2 {
    font-size: 18px;
  }

  .feature-card {
    padding: 15px;
  }

}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .sidebar nav {
    display: none;
  }

  .sidebar.active nav {
    display: block;
    width: 100%;
  }
}
.card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
/* ── Category Filter Search ── */
.cat-search-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto 1.75rem;
  display: flex;
  align-items: center;
}
.cat-search-icon {
  position: absolute;
  left: 1rem;
  color: #9ca3af;
  font-size: .85rem;
  pointer-events: none;
}
#catSearch {
  width: 100%;
  padding: .7rem 2.5rem .7rem 2.75rem;
  border: 1.5px solid #e4e7ec;
  border-radius: 10px;
  font-size: .9rem;
  font-family: inherit;
  background: #f8f9fb;
  color: #111827;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
#catSearch:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
  background: #fff;
}
.dark-mode #catSearch {
  background: #1a1d27;
  border-color: #2d3249;
  color: #f1f5f9;
}
.cat-clear {
  position: absolute;
  right: .85rem;
  cursor: pointer;
  color: #9ca3af;
  font-size: .85rem;
  display: none;
}
.cat-clear:hover { color: #6366f1; }
.cat-no-result {
  text-align: center;
  color: #9ca3af;
  font-size: .9rem;
  margin-top: -.5rem;
  margin-bottom: 1rem;
}
.hidden { display: none; }
.cat-card.hide { display: none; }
