/* ============================================================
   FAKHIR SOLUTION — Premium Home Page Styles
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Design tokens ---------- */
:root {
  --bg-black: #000000;
  --navy-900: #05080f;
  --navy-800: #0a1020;
  --white: #ffffff;
  --white-soft: #e6ecf5;
  --muted: #b4c0d3; /* Thoda bright kiya taake text clear parhe */
  --accent: #2f7bff;
  --accent-2: #4da3ff;
  --accent-glow: rgba(47, 123, 255, 0.55);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);

  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Outfit", "Inter", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 40px rgba(47, 123, 255, 0.35);

  --max-width: 1200px;
  --header-h: 80px; /* Header thoda bada kiya taake breathing room mile */
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  color: var(--white-soft);
  background: var(--bg-black);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.accent { color: var(--accent-2); }

.accent-gradient {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   BACKGROUND VIDEO + OVERLAY
   ============================================================ */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  pointer-events: none;
}

/* Subtle dark overlay only for readability */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(5, 8, 15, 0.6) 0%,
      rgba(5, 8, 15, 0.4) 50%,
      rgba(5, 8, 15, 0.7) 100%);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 15px 32px; /* Buttons ko thoda wide kiya */
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
}

.btn i { font-size: 0.9em; transition: transform 0.3s ease; }
.btn:hover i { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 8, 15, 0.5);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--white);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); /* Glow effect */
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white-soft);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
}

.main-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }

/* Active Home Button Style matching screenshot */
.main-nav a.active {
  color: var(--white);
  background: rgba(37, 99, 235, 0.25); /* Blue tint */
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.nav-cta { 
  margin-left: 12px; 
  padding: 12px 28px; 
  font-size: 0.95rem; 
}

/* Mobile toggle */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle-label span {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================================
   HERO SECTION (Matching the Screenshot)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
}

.hero-inner { 
  max-width: 900px; /* Text area ko wide kiya */
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e; /* Bright green */
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem); /* Bada aur bold */
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-headline {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  color: #fff;
  max-width: 800px;
  margin-bottom: 20px;
  line-height: 1.4;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 40px;
  line-height: 1.7;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeUp 0.8s 0.4s ease both;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
}
.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--white);
  animation: scrollDot 1.6s ease-in-out infinite;
}

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section {
  position: relative;
  padding: 100px 0;
  background: transparent;
}

.section-head {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px;
}

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--muted);
  margin-top: 16px;
  font-size: 1.05rem;
}

/* Slight glass layer for readability */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.45); /* Dark layer for text pop */
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   ABOUT / PROFILE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 60px;
  align-items: center;
}

.profile-frame-wrap {
  position: relative;
}

.profile-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-card);
  z-index: 1;
  overflow: hidden;
}

.profile-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, #3b82f6, transparent 50%, #2563eb);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.profile-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 8px);
  display: block;
}

.profile-glow {
  position: absolute;
  inset: -20px;
  border-radius: calc(var(--radius-lg) + 20px);
  background: radial-gradient(closest-side, var(--accent-glow), transparent 75%);
  filter: blur(40px);
  opacity: 0.6;
  z-index: 0;
}

.about-content .section-title { margin-bottom: 24px; }

.about-content p {
  color: var(--white-soft);
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-content .lead {
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 500;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.skill-tags li {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white-soft);
  transition: all 0.3s ease;
}

.skill-tags li:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

/* ============================================================
   PROJECT GALLERY
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(10, 16, 32, 0.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: var(--shadow-card), 0 0 30px rgba(59, 130, 246, 0.2);
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .project-thumb img {
  transform: scale(1.08);
}

.project-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(5, 8, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-body {
  padding: 24px;
}

.project-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-body p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ============================================================
   FEATURES
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  padding: 40px 30px;
  border-radius: var(--radius-md);
  background: rgba(10, 16, 32, 0.6);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: var(--shadow-card), 0 0 30px rgba(59, 130, 246, 0.2);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent-2);
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-card {
  text-align: center;
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at top, rgba(59, 130, 246, 0.15), transparent 60%),
    rgba(8, 13, 26, 0.7);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.cta-card p {
  color: var(--white-soft);
  max-width: 580px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 50px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav a {
  color: var(--white-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}
.footer-nav a:hover { color: var(--accent-2); }

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--white-soft);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: var(--white);
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-4px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-bottom p {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

@keyframes scrollDot {
  0%   { transform: translateY(-6px); opacity: 0.4; }
  50%  { transform: translateY(6px);  opacity: 1; }
  100% { transform: translateY(-6px); opacity: 0.4; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid { gap: 40px; grid-template-columns: minmax(240px, 340px) 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* Small tablet / large phone */
@media (max-width: 768px) {
  :root { --header-h: 70px; }

  .nav-toggle-label { display: flex; }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 20px 24px 24px;
    background: rgba(5, 8, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-15px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .main-nav a { padding: 14px 16px; border-radius: 12px; text-align: center; }

  .nav-cta { margin-left: 0; margin-top: 10px; justify-content: center; }

  .nav-toggle:checked ~ .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { min-height: 85vh; }
  .hero-title { font-size: 2.8rem; }
  .section { padding: 80px 0; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .profile-frame-wrap { max-width: 380px; margin: 0 auto; }

  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 50px 24px; }
}

/* Small phone */
@media (max-width: 540px) {
  .container { padding-inline: 20px; }
  .hero-eyebrow { font-size: 0.75rem; padding: 8px 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .project-grid { grid-template-columns: 1fr; }
  .project-body { padding: 20px; }
  .footer-nav { gap: 16px; justify-content: center; }
  .scroll-cue { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* ============================================================
   ULTRA ADVANCED JS ADDITIONS (For script.js)
   ============================================================ */

/* 1. Custom Preloader */
.custom-preloader {
  position: fixed;
  inset: 0;
  background: #05080f;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.custom-preloader .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(47, 123, 255, 0.2);
  border-top-color: #2f7bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* 2. Scroll Reveal Animations */
.reveal-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Smart Header Scroll */
.site-header {
  transition: all 0.4s ease;
}
.site-header.scrolled {
  height: 65px; /* Chota ho jayega */
  background: rgba(5, 8, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* 4. Top Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #2f7bff, #4da3ff);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* 5. Custom Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  pointer-events: none;
}
.toast-notification {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(10, 16, 32, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #2f7bff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 280px;
  max-width: 350px;
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
}
.toast-notification.success { border-left-color: #22c55e; }
.toast-notification.error { border-left-color: #ef4444; }
.toast-icon { font-size: 1.5rem; color: #4da3ff; }
.toast-notification.success .toast-icon { color: #22c55e; }
.toast-notification.error .toast-icon { color: #ef4444; }
.toast-message { flex-grow: 1; font-size: 0.95rem; color: #fff; font-weight: 500; line-height: 1.4; }
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #4da3ff;
  width: 100%;
  animation: toastProgress 4s linear forwards;
}
@keyframes toastProgress { 100% { width: 0%; } }

/* 6. Typing Effect Cursor */
.typing-text { display: inline-block; }
.cursor {
  display: inline-block;
  width: 4px;
  color: #4da3ff;
  background-color: #4da3ff;
  margin-left: 5px;
  animation: blink 0.8s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* 7. Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.8);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #2f7bff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(47, 123, 255, 0.4);
}

/* Responsive Fix for Mobile */
@media (max-width: 768px) {
  .toast-container { bottom: 20px; right: 20px; left: 20px; align-items: center; }
  .toast-notification { width: 100%; transform: translateY(120%); }
  .toast-notification.show { transform: translateY(0); }
  .back-to-top { bottom: 20px; left: 20px; width: 40px; height: 40px; }
}