/* ==========================================================================
   COMPONENTS - NAVBAR, BUTTONS, MODALS, TOP NAV CTAS, SOCIALS & PRELOADER
   ========================================================================== */

/* --------------------------------------------------------------------------
   MINIMAL PAGE PRELOADER
   -------------------------------------------------------------------------- */
.loader-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}

.loader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.loader-mark {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--bg-surface-elevated), var(--bg-surface));
  border: 1px solid var(--border-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.4);
  animation: loaderPulse 1.5s ease-in-out infinite alternate;
}

@keyframes loaderPulse {
  0% {
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
    border-color: var(--border-light);
  }
  100% {
    box-shadow: 0 0 40px rgba(74, 123, 255, 0.6);
    border-color: var(--accent-violet);
  }
}

.loader-bar {
  width: 140px;
  height: 3px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.loader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-blue));
  border-radius: var(--radius-pill);
  transition: width 0.1s linear;
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-navbar);
  padding: 1.25rem 0;
  transition: padding 0.3s var(--ease-out-expo), background-color 0.3s, backdrop-filter 0.3s, border-color 0.3s;
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background-color: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--bg-surface-elevated), var(--bg-surface));
  border: 1px solid var(--border-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.brand-mark::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-violet-light), var(--accent-blue));
  box-shadow: 0 0 12px var(--accent-violet);
}

.brand-mark::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-blue));
  transition: width 0.3s var(--ease-out-expo);
  border-radius: var(--radius-pill);
}

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

/* Navbar Right Actions Group */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Top Navbar Social Media Buttons */
.nav-social-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-right: 0.4rem;
  border-right: 1px solid var(--border-subtle);
}

.nav-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-out-expo);
  text-decoration: none;
  cursor: pointer;
}

.nav-social-btn svg, .nav-social-btn i {
  width: 14px;
  height: 14px;
}

.nav-social-btn:hover {
  color: var(--accent-violet-light);
  border-color: var(--accent-violet);
  background: rgba(108, 92, 231, 0.15);
  transform: translateY(-2px);
}

/* Special External Links Pills in Top Nav */
.nav-btn-aura {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: #FFF;
  position: relative;
  text-decoration: none;
  background: var(--bg-surface);
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
  overflow: hidden;
}

.nav-btn-aura::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  padding: 1.5px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045, #833ab4);
  background-size: 300% 300%;
  animation: auraGradientFlow 5s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.nav-btn-aura:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(253, 29, 29, 0.4);
}

@keyframes auraGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.nav-btn-vegaland {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: #FFF;
  background: linear-gradient(135deg, #FF0000, #C00000);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.35);
  overflow: hidden;
}

.nav-btn-vegaland::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 123, 255, 0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.nav-btn-vegaland:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.55), 0 0 15px rgba(74, 123, 255, 0.5);
}

.nav-btn-vegaland:hover::before {
  opacity: 1;
}

.mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

/* ---- Responsive navbar breakpoints ---- */

/* 1 — Hide social icons cluster */
@media (max-width: 1180px) {
  .nav-social-group {
    display: none;
  }
}

/* 2 — Hide Aura & Vegaland pills */
@media (max-width: 960px) {
  .nav-btn-aura,
  .nav-btn-vegaland {
    display: none;
  }
}

/* 3 — Collapse nav links + hide inline CTA, show hamburger */
@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  /* Hide the "Start a Project" CTA button sitting in nav-actions */
  .nav-actions > .btn {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* 4 — Brand text hidden on very small screens to save space */
@media (max-width: 400px) {
  .brand-logo span {
    display: none;
  }
  .navbar-container {
    gap: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s, background-color 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-violet), #5849be);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-violet-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   FEATURED EXTERNAL SECTION CARDS
   -------------------------------------------------------------------------- */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.aura-cta-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
  border: 1px solid transparent;
}

.aura-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045, #833ab4);
  background-size: 300% 300%;
  animation: auraGradientFlow 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.aura-cta-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px -10px rgba(131, 58, 180, 0.35);
}

.aura-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.2), rgba(253, 29, 29, 0.2));
  color: #fd5c63;
  border: 1px solid rgba(253, 29, 29, 0.3);
  margin-bottom: 1.2rem;
  width: fit-content;
}

.vegaland-cta-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s;
}

.vegaland-cta-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(74, 123, 255, 0.5);
  box-shadow: 0 20px 40px -10px rgba(74, 123, 255, 0.3);
}

.vegaland-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(74, 123, 255, 0.15);
  color: var(--accent-blue-light);
  border: 1px solid rgba(74, 123, 255, 0.3);
  margin-bottom: 1.2rem;
  width: fit-content;
}

/* --------------------------------------------------------------------------
   PROJECT SHOWROOM CARDS
   -------------------------------------------------------------------------- */
.project-showroom {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.5rem;
}

@media (max-width: 480px) {
  .project-showroom {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow-violet);
}

.project-thumbnail-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--bg-surface-elevated);
}

.project-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.project-card:hover .project-thumbnail {
  transform: scale(1.06);
}

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

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-violet-light);
  margin-bottom: 0.75rem;
}

.project-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.project-card:hover .project-card-title {
  color: var(--accent-violet-light);
}

.project-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   MODALS
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out-expo);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s var(--ease-out-expo);
  padding: 3rem;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--accent-violet);
  transform: rotate(90deg);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, background-color 0.25s;
}

.social-card:hover {
  border-color: var(--accent-violet-light);
  transform: translateY(-3px);
  background: rgba(108, 92, 231, 0.12);
}

.social-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-violet-light);
}

.social-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.social-handle {
  font-size: 0.8rem;
  color: var(--text-muted);
}
