/* ==========================================================================
   WebWorldBD - Custom Design System & CSS Stylesheet
   Author: SHAFAET HOSSEN SARIP (WebWorldBD)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Typography */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-bangla: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;

  /* Color Palette - Dark Theme (Default) */
  --bg-dark: #080C14;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(56, 189, 248, 0.4);

  /* Standardized Text Colors */
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Accent Palette */
  --accent-blue: #38BDF8;      /* Electric Blue */
  --accent-violet: #818CF8;    /* Indigo / Violet */
  --accent-purple: #C084FC;    /* Radiant Purple */
  --accent-cyan: #22D3EE;      /* Cyan */
  --accent-emerald: #10B981;   /* Emerald Green */
  --accent-orange: #F97316;    /* Amber Orange */

  /* Unified Gradient Definition Across Entire Site */
  --gradient-primary: linear-gradient(135deg, #38BDF8 0%, #818CF8 50%, #C084FC 100%);
  --gradient-text: linear-gradient(135deg, #38BDF8 0%, #818CF8 50%, #C084FC 100%);
  --gradient-hero-badge: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(129, 140, 248, 0.12) 100%);

  /* Shadows & Glows */
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 15px 35px -10px rgba(56, 189, 248, 0.25);
  --glow-blue: 0 0 25px rgba(56, 189, 248, 0.35);

  /* Layout Standards */
  --header-height: 80px;
  --container-width: 1280px;
  --section-padding-desktop: 5.5rem;
  --section-padding-mobile: 3.5rem;
  --card-padding-desktop: 2rem;
  --card-padding-mobile: 1.25rem;

  /* Radius Standards */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-dark: #F8FAFC;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-glass: rgba(15, 23, 42, 0.04);
  --border-glass: rgba(15, 23, 42, 0.12);
  --border-glow: rgba(14, 165, 233, 0.4);

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;

  --gradient-hero-badge: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(99, 102, 241, 0.12) 100%);
  --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 15px 35px -10px rgba(14, 165, 233, 0.2);
  --glow-blue: 0 0 20px rgba(14, 165, 233, 0.2);
}

/* --------------------------------------------------------------------------
   2. Base Reset & Typography Scale
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  min-height: 100vh;
}

body.lang-bn {
  font-family: var(--font-bangla);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

body.lang-bn p,
body.lang-bn .hero-subtitle,
body.lang-bn .service-card p,
body.lang-bn .ethical-policy-box p {
  font-size: 1.02rem;
  line-height: 1.75;
}

body.lang-bn h1, body.lang-bn .h1,
body.lang-bn h2, body.lang-bn .h2,
body.lang-bn h3, body.lang-bn .h3,
body.lang-bn h4, body.lang-bn .h4 {
  line-height: 1.35;
}

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

ul, ol {
  list-style: none;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Typography Hierarchy Scale */
h1, .h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h3, .h3 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

h4, .h4 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* --------------------------------------------------------------------------
   3. Glassmorphism & Visual UI Components
   -------------------------------------------------------------------------- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--card-padding-desktop);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* Unified Text Gradient */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--gradient-hero-badge);
  border: 1px solid var(--border-glow);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.badge-pill i {
  font-size: 0.9rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title .badge-pill {
  margin-bottom: 1rem;
}

.section-title h2 {
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20BD5A;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

.btn-danger {
  background: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: #DC2626;
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
  transform: translateY(-2px);
}

.btn-danger-outline {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #DC2626;
  font-weight: 600;
}

[data-theme="dark"] .btn-danger-outline {
  color: #F87171;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-danger-outline:hover {
  background: #EF4444;
  border-color: #EF4444;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Canvas Particle Background */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   4. Navbar Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
  padding: 4px 0;
  flex-shrink: 0;
}

.logo-brand img {
  height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.nav-menu,
.nav-menu-links,
.nav-links {
  display: none;
}

.nav-menu-header,
.nav-menu-cta {
  display: none;
}

@media (max-width: 1023px) {
  .header-actions .btn {
    display: none;
  }
}

@media (min-width: 1024px) {
  .nav-menu,
  .nav-menu-links,
  .nav-links {
    display: flex;
  }

  .nav-menu {
    align-items: center;
    gap: 1rem;
    margin-left: 1.5rem;
    margin-right: auto;
  }

  .nav-menu-links,
  .nav-links {
    align-items: center;
    gap: 0.75rem;
  }
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.nav-link .nav-icon {
  display: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  border-radius: 2px;
  opacity: 0;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  margin-left: auto;
}

.toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all var(--transition-fast);
  font-size: 1.05rem;
}

.toggle-btn:hover, .toggle-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.lang-switch-btn {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.lang-switch-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* --------------------------------------------------------------------------
   4b. Top-Right Three-Dot Navigation Dropdown Menu
   -------------------------------------------------------------------------- */
.three-dots-wrapper {
  position: relative;
  display: inline-block;
}

.three-dots-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: 250px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 0.6rem 0.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

[data-theme="light"] .three-dots-dropdown-menu {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(203, 213, 225, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(14, 165, 233, 0.08);
}

.three-dots-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.three-dots-menu-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  position: relative;
}

.three-dots-menu-icon {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.three-dots-menu-item:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-blue);
}

.three-dots-menu-item:hover .three-dots-menu-icon {
  color: var(--accent-blue);
}

.three-dots-menu-item.active {
  background: rgba(56, 189, 248, 0.16);
  color: var(--accent-blue);
  font-weight: 700;
}

.three-dots-menu-item.active .three-dots-menu-icon {
  color: var(--accent-blue);
}

.three-dots-menu-item.active::before {
  content: '';
  position: absolute;
  left: 0.35rem;
  top: 25%;
  bottom: 25%;
  width: 3px;
  background: var(--accent-blue);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-blue);
}

/* --------------------------------------------------------------------------
   5. Hero Section & Profile Centered Design
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: var(--section-padding-desktop);
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 850px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero-intro-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 680px;
  line-height: 1.8;
  text-align: center;
  margin: 0 auto 2.25rem;
}

body.lang-bn .hero-intro-text {
  font-family: var(--font-bangla);
  font-size: 1.3rem;
  line-height: 1.85;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 1.7;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
  width: 100%;
}

/* Stats Section */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
  width: 100%;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.stat-item {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.stat-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.stat-item h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1.1;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. About Section
   -------------------------------------------------------------------------- */
.about-section {
  padding: var(--section-padding-desktop) 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.about-bg-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.about-glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.about-glow-blob.blob-1 {
  width: 450px;
  height: 450px;
  top: 0;
  left: -120px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, var(--accent-blue) 100%);
}

.about-glow-blob.blob-2 {
  width: 480px;
  height: 480px;
  bottom: -50px;
  right: -140px;
  background: radial-gradient(circle, var(--accent-purple) 0%, var(--accent-violet) 100%);
}

.about-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.3;
  pointer-events: none;
}

.about-section-title {
  text-align: center;
  margin-bottom: 3.25rem;
}

.about-main-heading {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.about-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-blue);
  max-width: 600px;
  margin: 0 auto;
}

.about-layout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  align-items: stretch;
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
}

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

.about-block-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.about-card-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.85;
}

.card-cyan .about-card-accent-line { background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue)); }
.card-blue .about-card-accent-line { background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet)); }
.card-purple .about-card-accent-line { background: linear-gradient(90deg, var(--accent-violet), var(--accent-purple)); }
.card-policy .about-card-accent-line { background: linear-gradient(90deg, #F97316, #EF4444); }

.about-block-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.about-block-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.about-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.icon-cyan { background: rgba(34, 211, 238, 0.12); color: var(--accent-cyan); border: 1px solid rgba(34, 211, 238, 0.3); }
.icon-blue { background: rgba(56, 189, 248, 0.12); color: var(--accent-blue); border: 1px solid rgba(56, 189, 248, 0.3); }
.icon-purple { background: rgba(192, 132, 252, 0.12); color: var(--accent-purple); border: 1px solid rgba(192, 132, 252, 0.3); }
.icon-policy { background: rgba(239, 68, 68, 0.12); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.3); }

.about-block-label {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
}

.label-cyan { background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.22); color: var(--accent-cyan); }
.label-blue { background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.22); color: var(--accent-blue); }
.label-purple { background: rgba(192, 132, 252, 0.08); border: 1px solid rgba(192, 132, 252, 0.22); color: var(--accent-purple); }
.label-policy { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.25); color: #EF4444; }

.about-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.about-block-desc {
  font-size: 1.025rem;
  color: var(--text-main);
  line-height: 1.8;
  opacity: 0.95;
  margin: 0;
}

.about-highlight {
  color: var(--accent-blue);
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  display: inline-block;
}

.about-highlight-danger {
  color: #F87171;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: inline-block;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   7. Services & Capabilities
   -------------------------------------------------------------------------- */
.services-section {
  padding: var(--section-padding-desktop) 0;
  position: relative;
  z-index: 1;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.service-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  color: var(--text-main);
  width: 100%;
}

.service-row-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
}

.service-row-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-row-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid var(--border-glow);
  flex-shrink: 0;
}

.service-row-title {
  font-size: 1.025rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.service-row-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   8. Tech Stack Showcase
   -------------------------------------------------------------------------- */
.tech-section {
  padding: var(--section-padding-desktop) 0;
  position: relative;
  z-index: 1;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.tech-card {
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.tech-card i {
  font-size: 2.5rem;
  color: var(--accent-blue);
}

.tech-card span {
  font-size: 0.9rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   9. Projects & Case Studies Showcase
   -------------------------------------------------------------------------- */
.projects-section {
  padding: var(--section-padding-desktop) 0;
  position: relative;
  z-index: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-shs-bazar { background: linear-gradient(135deg, #0284c7 0%, #06b6d4 50%, #0d9488 100%); }
.thumb-student-tools-ai { background: linear-gradient(135deg, #311b92 0%, #4c1d95 40%, #6366f1 75%, #8b5cf6 100%); }
.thumb-happy-birthday-wish { background: linear-gradient(135deg, #be185d 0%, #db2777 35%, #f97316 70%, #10b981 100%); }
.thumb-animated-heart { background: linear-gradient(135deg, #881337 0%, #e11d48 40%, #8b5cf6 100%); }

.thumb-icon-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-icon-svg {
  width: 72px;
  height: 72px;
}

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 3;
}

.project-card:hover .project-thumb-overlay {
  opacity: 1;
}

.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-blue);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.project-info h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.project-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; flex: 1; }

.project-techs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tech-badge { font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   10. Work Process & FAQ
   -------------------------------------------------------------------------- */
.process-section, .faq-section {
  padding: var(--section-padding-desktop) 0;
  position: relative;
  z-index: 1;
}

.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { padding: 0; margin-bottom: 1.25rem; }

.faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.faq-question i { transition: transform var(--transition-normal); color: var(--accent-blue); }
.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer { padding: 0 1.5rem 1.25rem 1.5rem; max-height: 300px; }

/* --------------------------------------------------------------------------
   11. Contact Section
   -------------------------------------------------------------------------- */
.contact-section { padding: var(--section-padding-desktop) 0; position: relative; z-index: 1; }
.contact-grid { max-width: 800px; margin: 0 auto; }

.contact-info-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast);
}

.contact-info-item:hover { border-color: var(--border-glow); transform: translateX(4px); }

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid var(--border-glow);
  flex-shrink: 0;
  overflow: hidden;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Contact Info Icon Brand Variants */
.contact-icon.gmail { background: rgba(234, 67, 53, 0.12); border-color: rgba(234, 67, 53, 0.3); }
.contact-icon.whatsapp { background: rgba(37, 211, 102, 0.12); border-color: rgba(37, 211, 102, 0.3); color: #25D366; }
.contact-icon.hotline { background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.3); color: var(--accent-blue); }
.contact-icon.telegram { background: rgba(36, 161, 222, 0.12); border-color: rgba(36, 161, 222, 0.3); color: #24A1DE; }
.contact-icon.fiverr { background: rgba(29, 191, 115, 0.12); border-color: rgba(29, 191, 115, 0.3); color: #1DBF73; }

.contact-text h4 { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.15rem; }
.contact-text a, .contact-text p { font-size: 0.95rem; font-weight: 600; color: var(--text-main); }

.social-links { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1.15rem;
  transition: all var(--transition-fast);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Brand Authentic Colors & Hover States for Social Row Buttons */
.social-btn.facebook { color: #1877F2; background: rgba(24, 119, 242, 0.1); border-color: rgba(24, 119, 242, 0.25); }
.social-btn.facebook:hover { background: #1877F2; color: #FFFFFF; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4); }

.social-btn.tiktok { color: #000000; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); }
[data-theme="dark"] .social-btn.tiktok { color: #FFFFFF; }
.social-btn.tiktok:hover { background: #000000; color: #00f2fe; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0, 242, 254, 0.3); }

.social-btn.telegram { color: #24A1DE; background: rgba(36, 161, 222, 0.1); border-color: rgba(36, 161, 222, 0.25); }
.social-btn.telegram:hover { background: #24A1DE; color: #FFFFFF; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(36, 161, 222, 0.4); }

.social-btn.email { color: #EA4335; background: rgba(234, 67, 53, 0.1); border-color: rgba(234, 67, 53, 0.25); }
.social-btn.email:hover { background: #EA4335; color: #FFFFFF; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(234, 67, 53, 0.4); }

.social-btn.whatsapp { color: #25D366; background: rgba(37, 211, 102, 0.1); border-color: rgba(37, 211, 102, 0.25); }
.social-btn.whatsapp:hover { background: #25D366; color: #FFFFFF; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }

.social-btn.fiverr { color: #1DBF73; background: rgba(29, 191, 115, 0.1); border-color: rgba(29, 191, 115, 0.25); }
.social-btn.fiverr:hover { background: #1DBF73; color: #FFFFFF; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(29, 191, 115, 0.4); }
.social-btn.fiverr:hover svg path { fill: #FFFFFF; }

/* --------------------------------------------------------------------------
   12. DEDICATED SETTINGS PAGE STYLES
   -------------------------------------------------------------------------- */
.settings-section {
  position: relative;
  z-index: 1;
}

.settings-card {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.settings-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
}

.settings-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.settings-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

/* Segmented Radio Button Control */
.settings-option-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.settings-group-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.segmented-control {
  display: flex;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

.segmented-option {
  flex: 1;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.segmented-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.segmented-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.25s ease;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .segmented-btn {
    font-size: 0.78rem;
    padding: 0.55rem 0.25rem;
    gap: 0.3rem;
  }
}

.segmented-option input[type="radio"]:checked + .segmented-btn {
  background: var(--gradient-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
}

.segmented-btn:hover {
  color: var(--text-main);
}

/* Toggle Switches */
.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.6rem 0;
}

.settings-toggle-row:not(:last-child) {
  border-bottom: 1px solid var(--border-glass);
}

.settings-toggle-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.settings-toggle-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 34px;
  border: 1px solid var(--border-glass);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.switch-toggle input:checked + .switch-slider {
  background: var(--gradient-primary);
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(24px);
}

/* Settings Account Profile Summary */
.settings-profile-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.settings-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-blue);
  box-shadow: var(--glow-blue);
  flex-shrink: 0;
}

.settings-profile-info h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.settings-profile-info p {
  font-size: 0.88rem;
  color: var(--accent-blue);
  margin: 0;
}

.settings-account-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.settings-action-btn {
  font-size: 0.88rem;
  padding: 0.65rem 1rem;
}

/* Quick Links Grid inside Settings */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.quick-link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.quick-link-item i {
  color: var(--accent-blue);
  font-size: 1rem;
}

.quick-link-item:hover {
  border-color: var(--border-glow);
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
  color: var(--accent-blue);
}

/* Support Buttons Row */
.support-btns-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.support-btns-row .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  font-size: 0.925rem;
  height: 52px;
  max-height: 52px;
  border-radius: var(--radius-full);
  text-align: center;
  box-sizing: border-box;
}

.flex-1 {
  flex: 1 1 200px;
}

/* About Meta List */
.about-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.925rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border-glass);
}

.meta-label { font-weight: 700; color: var(--text-main); }
.meta-val { color: var(--text-muted); }

/* Settings Modal Overlay & Card */
.settings-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.settings-modal-overlay.active {
  display: flex;
}

.settings-modal-card {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* --------------------------------------------------------------------------
   13. Mobile Bottom Navigation & Floating Controls
   -------------------------------------------------------------------------- */
.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }

  .mobile-bottom-nav {
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    height: 64px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 10000;
    padding: 0 6px;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: var(--text-muted);
  }

  .mobile-nav-item.active { color: var(--accent-blue); font-weight: 700; }
  .mobile-nav-icon { font-size: 1.15rem; }
  .mobile-nav-label { font-size: 0.65rem; font-weight: 600; margin-top: 3px; }

  .mobile-fab-item { position: relative; }
  .mobile-fab-btn {
    position: absolute;
    top: -24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 22px rgba(56, 189, 248, 0.5);
    border: 3px solid var(--bg-dark);
  }
}

.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 9999;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 92px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.visible { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glass);
  padding: 4.5rem 0 2rem;
  position: relative;
  z-index: 1;
  color: var(--text-main);
  transition: background-color var(--transition-normal), color var(--transition-normal), border-color var(--transition-normal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p { color: var(--text-muted); margin-top: 1rem; font-size: 0.9rem; max-width: 320px; }
.footer-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text-main); }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--accent-blue); }
.footer-links span { color: var(--text-muted); font-size: 0.9rem; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border-glass); color: var(--text-muted); font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   14b. Auth & Dashboard Profile Card Glassmorphism Styles
   -------------------------------------------------------------------------- */
.auth-card-container {
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.auth-alert-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.auth-alert-box.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
}

.auth-alert-box.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
}

.auth-alert-box.alert-info {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-blue);
}

.alert-close-btn {
  margin-left: auto;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
  font-size: 1rem;
}

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

.auth-tabs-wrapper {
  display: flex;
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 1.5rem;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.25s ease;
  text-align: center;
  z-index: 1;
}

.auth-tab-btn.active {
  background: var(--gradient-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.75rem;
}

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

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-control.is-invalid {
  border-color: #EF4444;
}

.field-error-msg {
  font-size: 0.8rem;
  color: #F87171;
  display: none;
}

.field-error-msg.visible {
  display: block;
}

.password-toggle-btn {
  position: absolute;
  right: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.password-toggle-btn:hover {
  color: var(--text-main);
}

.form-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.forgot-pass-btn {
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.85rem;
}

.forgot-pass-btn:hover {
  text-decoration: underline;
}

.auth-submit-btn {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
  transition: all var(--transition-normal);
}

.auth-submit-btn:hover {
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-glass);
}

.auth-divider span {
  padding: 0 0.75rem;
}

.google-auth-wrapper {
  width: 100%;
}

.google-signin-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all var(--transition-fast);
}

.google-signin-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

/* Logged-In Profile Dashboard Card */
.dashboard-user-card {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  padding: 2.25rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.user-avatar-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 3px;
  background: var(--gradient-primary);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.user-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user-avatar-initial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(129, 140, 248, 0.25) 100%);
  color: var(--accent-blue);
  font-size: 2.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.user-display-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  text-align: center;
  line-height: 1.3;
}

.user-display-email {
  font-size: 0.875rem;
  color: var(--accent-blue);
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-align: center;
  word-break: break-all;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.dash-stat-box {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.dash-stat-box:hover {
  border-color: var(--border-glow);
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-2px);
}

.dash-stat-icon {
  font-size: 1.35rem;
  color: var(--accent-blue);
  margin-bottom: 0.4rem;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  display: block;
}

.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.2rem;
  display: block;
}

.dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.dash-btn {
  width: 100%;
  padding: 0.8rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-back-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.btn-back-login:hover {
  color: var(--accent-blue);
}

.auth-info-notice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--text-muted);
  font-size: 0.825rem;
  line-height: 1.4;
}

.auth-info-notice i {
  color: var(--accent-blue);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpinnerSpin 0.8s linear infinite;
}

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

/* --------------------------------------------------------------------------
   15. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .about-layout-grid {
    grid-template-columns: 1fr;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .stat-item {
    padding: 1rem 0.5rem;
  }
  .stat-item h3 {
    font-size: 1.5rem;
  }
  .hero-stats {
    gap: 0.75rem;
  }
  .settings-account-actions {
    grid-template-columns: 1fr;
  }
  .support-btns-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .settings-card {
    padding: 1.25rem 1rem;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}
