/* Design System Stylesheet — nikunj-portfolio */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
.light-theme {
  --bg-primary: #F8F9FA;
  --bg-secondary: #F1F3F5;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-hover: rgba(255, 255, 255, 0.85);

  --text-primary: #1A1C1E;
  --text-secondary: #4E5158;
  --text-muted: #7E828C;

  --accent-color: #059669;
  --accent-secondary: #047857;
  --accent-gradient: linear-gradient(135deg, #059669, #10B981);

  --border-glass: rgba(0, 0, 0, 0.06);
  --border-glass-hover: rgba(5, 150, 105, 0.3);
  --shadow-glass: 0 16px 40px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.7);
  --shadow-glass-hover: 0 24px 60px rgba(0, 0, 0, 0.08), 0 0 30px rgba(5, 150, 105, 0.05);
}

/* Dark Theme Variables */
.dark-theme {
  --bg-primary: #0E1013;
  --bg-secondary: #15181C;
  --bg-card: rgba(25, 28, 33, 0.65);
  --bg-glass: rgba(25, 28, 33, 0.45);
  --bg-glass-hover: rgba(32, 36, 43, 0.65);

  --text-primary: #FFFFFF;
  --text-secondary: #A3A8B6;
  --text-muted: #646975;

  --accent-color: #10B981;
  --accent-secondary: #34D399;
  --accent-gradient: linear-gradient(135deg, #10B981, #047857);

  --border-glass: rgba(255, 255, 255, 0.07);
  --border-glass-hover: rgba(16, 185, 129, 0.35);
  --shadow-glass: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glass-hover: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.15);
}

/* Reset and Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Sticky Capsule Navigation Bar */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 90%;
  max-width: 1000px;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  backdrop-filter: blur(24px) saturate(120%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  border-radius: 99px;
  padding: 10px 24px;
  box-sizing: border-box;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  padding: 4px 8px;
}

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

.nav-link-btn {
  background: var(--accent-gradient);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 99px;
  transition: var(--transition-smooth);
  border: none;
}

.nav-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Nav Actions (Theme switch + Hamburger button) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-theme {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 99px;
  cursor: pointer;
  transition: var(--transition-smooth);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-theme:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
}

/* Hamburger Toggle Button */
.nav-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-primary);
  border-radius: 8px;
  transition: var(--transition-smooth);
  z-index: 1002;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
}

.nav-toggle-btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.hamburger-icon {
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.nav-toggle-btn[aria-expanded="true"] .hamburger-bar:nth-child(1),
.nav-toggle-btn.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-btn[aria-expanded="true"] .hamburger-bar:nth-child(2),
.nav-toggle-btn.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle-btn[aria-expanded="true"] .hamburger-bar:nth-child(3),
.nav-toggle-btn.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Slide-Out Drawer & Backdrop */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 320px);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-glass);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, border-color 0.4s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.nav-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 24px;
}

.drawer-close-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  color: var(--accent-color);
}

.drawer-close-btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  flex: 1;
}

.drawer-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 12px;
  display: block;
  min-height: 44px;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

.drawer-link:hover,
.drawer-link.active {
  background: var(--bg-glass-hover);
  color: var(--accent-color);
}

.drawer-link-btn {
  background: var(--accent-gradient);
  color: #FFFFFF !important;
  font-weight: 700;
  text-align: center;
  border-radius: 12px;
  margin-top: 8px;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-theme-btn {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
}

body.drawer-open {
  overflow: hidden;
}

/* Hero Banner Section */
.main-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: clamp(80px, 12vh, 120px) 16px;
  width: 100%;
  box-sizing: border-box;
}

.main-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 16, 19, 0.55);
  z-index: 1;
}

.main-banner .heading {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  padding: 0 24px;
}

.banner-greeting {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-color);
  letter-spacing: 0.2em;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(2rem, 6.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 10px;
  margin-bottom: 20px;
  overflow-wrap: break-word;
}

.cd-headline {
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  font-weight: 400;
  color: #E2E8F0;
  margin-bottom: 40px;
}

.typewriter-text {
  font-weight: 700;
  color: #FFFFFF;
  border-right: 2px solid var(--accent-color);
  padding-right: 5px;
  animation: cursorBlink 0.75s step-end infinite;
}

@keyframes cursorBlink {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--accent-color);
  }
}

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


/* Container Sections & Query Contexts */
.section-container,
.admin-dashboard,
.client-dashboard,
.auth-section,
.project-detail-container {
  container-type: inline-size;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) clamp(16px, 4vw, 24px);
  width: 100%;
  box-sizing: border-box;
}

.section-header {
  margin-bottom: 50px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 8px;
}

.section-heading {
  font-size: clamp(1.65rem, 4vw + 0.5rem, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: break-word;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: #FFFFFF !important;
  padding: 12px clamp(20px, 4vw, 32px);
  min-height: 44px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glass);
  transition: var(--transition-smooth);
  box-sizing: border-box;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glass-hover);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #FFFFFF;
  padding: 12px clamp(20px, 4vw, 32px);
  min-height: 44px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-sizing: border-box;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
}

/* Glassmorphism Cards */
.glass {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  border-radius: 24px;
  padding: clamp(1.25rem, 3cqi, 2rem);
  transition: var(--transition-smooth);
  min-width: 0;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.glass:hover {
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-glass-hover);
}

/* Bento Box Card Styling */
.bento-box {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  border-radius: 20px;
  padding: clamp(1.25rem, 3cqi, 2rem);
  margin-bottom: 1.5rem;
  min-width: 0;
  overflow-wrap: break-word;
  transition: var(--transition-smooth);
  box-sizing: border-box;
}

.bento-box:hover {
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-glass-hover);
}

/* Responsive Table Scroller */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

/* About Section */
.about-row {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4cqi, 3.75rem);
  flex-wrap: wrap;
}

.about-col {
  flex: 1 1 min(100%, 320px);
  min-width: 0;
  width: 100%;
}

.profile-image-wrapper {
  overflow: hidden;
  border-radius: 24px;
  display: flex;
  justify-content: center;
}

.profile-image {
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
  object-fit: cover;
  transition: var(--transition-smooth);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.5cqi, 2rem);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-icon-box {
  color: var(--accent-color);
  margin-bottom: 8px;
}

.icon-svg {
  width: 44px;
  height: 44px;
}

/* Portfolio Section with Filter Controls */
.gallery-menu {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 8px 24px;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-gradient);
  color: #FFFFFF;
  border-color: transparent;
}

.gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.5cqi, 2rem);
  margin-top: 40px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.9);
}

.gallery-image-wrapper {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4/3;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

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

.gallery-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

.gallery-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-color);
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.5cqi, 2rem);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-glass);
}

.testimonial-meta h4 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-secondary);
}

/* Blog Layout */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.5cqi, 2rem);
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-card-date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.blog-card h3 a,
.blog-list-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.blog-card h3 a:hover,
.blog-list-title a:hover {
  color: var(--accent-color);
}

.blog-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition-smooth);
  align-self: flex-start;
  margin-top: auto;
  padding-top: 4px;
}

.blog-read-more:hover {
  opacity: 0.75;
}

/* Section CTA (e.g., View All Articles) */
.section-cta {
  margin-top: clamp(1.5rem, 3cqi, 2.5rem);
  text-align: center;
}

/* Blog List Page */
.blog-page-hero {
  padding-bottom: 0;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5cqi, 2rem);
  max-width: 760px;
  margin: 0 auto;
}

.blog-list-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-list-meta {
  margin-bottom: 2px;
}

.blog-list-title {
  font-size: clamp(1.1rem, 2.5cqi, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.blog-list-excerpt {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Blog Detail / Post Page */
.blog-post-page {
  padding-bottom: 0;
}

.blog-post-header {
  max-width: 760px;
  margin: 0 auto;
}

.blog-back-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.blog-back-link:hover {
  opacity: 0.75;
}

.blog-post-title {
  font-size: clamp(1.5rem, 4cqi, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0.5rem 0 0;
}

.blog-post-excerpt {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 0.75rem;
}

.blog-post-body {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.85;
  font-size: 1rem;
}

.blog-post-body h2,
.blog-post-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.blog-post-body p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.blog-post-body a {
  color: var(--accent-color);
  text-decoration: underline;
}

.blog-post-body pre,
.blog-post-body code {
  background: var(--glass-bg);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 0.2em 0.4em;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
}

.blog-post-body pre {
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

/* Forms */
.contact-form,
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

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

.form-row .form-input {
  flex: 1 1 min(100%, 220px);
  min-width: 0;
  width: 100%;
}

.form-input,
.form-textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-sans);
  padding: 16px;
  border-radius: 12px;
  outline: none;
  font-size: 16px;
  box-sizing: border-box;
  width: 100%;
  transition: var(--transition-smooth);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-color);
}

.form-textarea {
  height: 160px;
  resize: vertical;
}

/* Footer Section */
.copyrights {
  padding: 50px 24px;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-secondary);
  transition: background-color 0.5s ease;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: clamp(12px, 3vw, 24px);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.03);
  transition: all 0.25s ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-social-link:hover {
  color: #fff;
  border-color: var(--accent-color);
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb, 99, 102, 241), 0.35);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}

/* Auth Cards */
.auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(60px, 10vh, 120px) clamp(16px, 4vw, 24px);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.auth-card h2 {
  margin-bottom: 24px;
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.875rem;
}

.auth-footer {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--accent-color);
  text-decoration: none;
}

/* Admin Dashboard Table */
.admin-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) clamp(16px, 4vw, 24px);
  width: 100%;
  box-sizing: border-box;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1rem, 2.5cqi, 2rem);
}

.dashboard-col h3 {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
}

.users-table,
.invoices-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.users-table th,
.users-table td,
.invoices-table th,
.invoices-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.role-admin {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.role-user {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
}

.status-approved,
.status-completed {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.status-active,
.status-onboarding {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
}

.status-wireframing {
  background: rgba(139, 92, 246, 0.15);
  color: #8B5CF6;
}

.status-development {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
}

.status-testing {
  background: rgba(236, 72, 153, 0.15);
  color: #EC4899;
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

.btn-delete {
  background: transparent;
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition-smooth);
}

.btn-delete:hover {
  background: #EF4444;
  color: #FFFFFF;
}

/* Curtain Page transitions */
.transition-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 9999;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
  transition: background-color 0.5s ease;
}

/* Mobile Responsiveness Adjustments */
@media (max-width: 768px) {
  .navbar {
    top: 1rem;
    padding: 8px 16px;
  }

  .nav-menu {
    display: none;
    /* Hide standard horizontal links on mobile to fit screen spacing */
  }

  .nav-toggle-btn {
    display: flex;
  }

  .heading {
    padding-top: 60px;
  }

  .about-row {
    gap: clamp(1.25rem, 3cqi, 2rem);
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   Redesigned Admin Dashboard (v2) Styles
   ========================================== */
.admin-dashboard-v2 {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 24px 60px;
}

.admin-layout-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  align-items: start;
}

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

.admin-sidebar-v2 {
  position: sticky;
  top: 90px;
  padding: 20px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-sidebar-header {
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-glass);
}

.admin-sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.admin-sidebar-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.admin-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.admin-nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.admin-nav-link.active {
  color: #ffffff;
  background: var(--accent-color);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.admin-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.admin-main-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* KPI Stat Cards */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.admin-kpi-card {
  padding: 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
}

.admin-kpi-info h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 0 0 4px 0;
}

.admin-kpi-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.1;
}

.admin-kpi-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-color);
  flex-shrink: 0;
}

/* Tab Content Visibility */
.admin-tab-pane {
  display: none;
  animation: fadeInPane 0.25s ease forwards;
}

.admin-tab-pane.active {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Action Header */
.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.admin-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Modals & Slide-over Drawers */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.admin-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.admin-modal-box {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 28px;
  position: relative;
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.admin-modal-overlay.active .admin-modal-box {
  transform: scale(1);
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.admin-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.admin-modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}

.admin-modal-close:hover {
  color: var(--text-primary);
}

/* Form Groups in Modals */
.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.admin-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Quick Action Grid */
.admin-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.admin-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.admin-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}



@media (min-width: 769px) {
  .nav-toggle-btn {
    display: none;
  }

  .nav-menu {
    display: flex;
  }

  .nav-drawer {
    display: none;
  }

  .nav-drawer-backdrop {
    display: none;
  }
}