/* =========================================================
   1. ROOT VARIABLES
   ========================================================= */
:root {
  --ft-black: #050505;
  --ft-blue: #00AEEF;
  --ft-pink: #FF007F;
  --ft-white: #FFFFFF;
  --ft-gray: #A1A1AA;
  --ft-surface: #0c0c10;
  --ft-border: #23232b;
}

/* =========================================================
   2. BASE & RESET
   ========================================================= */
* { 
  box-sizing: border-box; 
}
html {
  scroll-behavior: smooth;
}
body { 
  background: var(--ft-black); 
  color: var(--ft-white); 
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; 
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { 
  color: var(--ft-blue); 
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { 
  color: var(--ft-pink); 
}
.text-accent { color: var(--ft-blue) !important; }
.text-pink { color: var(--ft-pink) !important; }
.text-muted { color: var(--ft-gray) !important; }
.bg-accent { background: var(--ft-blue) !important; }
.bg-pink { background: var(--ft-pink) !important; }
.hover-white:hover { color: #FFF !important; }
.letter-spacing-1 { letter-spacing: 0.05em; }
.pointer-events-none { pointer-events: none; }
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* =========================================================
   3. BUTTONS
   ========================================================= */
.btn-accent { 
  background: var(--ft-blue); 
  color: #001018; 
  font-weight: 600; 
  border: 0; 
  transition: all 0.3s ease;
}
.btn-accent:hover { 
  background: #33c1f5; 
  color: #001018; 
}
.btn-glow {
  box-shadow: 0 0 15px rgba(0, 174, 239, 0.3);
  transition: all 0.3s ease;
}
.btn-glow:hover {
  box-shadow: 0 0 25px rgba(0, 174, 239, 0.6);
  transform: translateY(-2px);
}

/* =========================================================
   4. PUBLIC NAVBAR
   ========================================================= */
.ft-navbar {
  background: rgba(5, 5, 5, 0.85) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}
.ft-navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(0, 174, 239, 0.2);
}
.ft-navbar .nav-link {
  color: #A1A1AA !important;
  font-weight: 500;
  transition: color 0.2s ease;
}
.ft-navbar .nav-link:hover {
  color: var(--ft-blue) !important;
}
.ft-navbar .nav-link.active {
  color: var(--ft-blue) !important;
  font-weight: 600;
}
@media (max-width: 991px) {
  .navbar-collapse {
    background: #0c0c10;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--ft-border);
    margin-top: 1rem;
  }
}

/* =========================================================
   5. HERO & PUBLIC SECTIONS
   ========================================================= */
.ft-hero { 
  min-height: 78vh; 
  background: radial-gradient(circle at 80% 20%, rgba(0,174,239,.12), transparent 40%), 
              radial-gradient(circle at 10% 90%, rgba(255,0,127,.08), transparent 40%); 
}
.ft-hero-panel { background: var(--ft-surface); }
.ft-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ft-icon { font-size: 1.5rem; color: var(--ft-blue); }
.ft-cta { 
  background: linear-gradient(135deg, rgba(0,174,239,.12), rgba(255,0,127,.08)); 
  border: 1px solid var(--ft-border); 
}

/* =========================================================
   6. PUBLIC FOOTER
   ========================================================= */
.ft-footer {
  background: #08080b;
  border-top: 1px solid rgba(0, 174, 239, 0.15);
}
.ft-footer-links a {
  color: var(--ft-gray);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.ft-footer-links a:hover {
  color: var(--ft-blue);
  padding-left: 4px;
}
.ft-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #FFF;
  text-decoration: none;
  transition: all 0.3s ease;
}
.ft-social-icon:hover {
  background: var(--ft-blue);
  color: #050505;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.4);
}

/* =========================================================
   7. CARDS & PANELS (SHARED)
   ========================================================= */
.ft-card { 
  background: var(--ft-surface); 
  border: 1px solid var(--ft-border); 
  color: var(--ft-white); 
  transition: border-color .2s ease, transform .2s ease; 
}
a.ft-card:hover { 
  border-color: var(--ft-blue); 
  transform: translateY(-3px); 
  color: var(--ft-white); 
}
.ft-panel { 
  background: rgba(12, 12, 16, 0.8); 
  backdrop-filter: blur(10px); 
  border: 1px solid var(--ft-border); 
}

/* =========================================================
   8. ADMIN LAYOUT & SIDEBAR
   ========================================================= */
.ft-admin { 
  background: #08080b; 
  min-height: 100vh; 
}
.ft-sidebar { 
  width: 260px; 
  min-height: 100vh; 
  background: #0c0c10; 
  border-right: 1px solid var(--ft-border); 
  position: sticky; 
  top: 0; 
  overflow-y: auto;
}
.ft-sidebar::-webkit-scrollbar { width: 4px; }
.ft-sidebar::-webkit-scrollbar-thumb { background: #23232b; border-radius: 4px; }

.ft-sidebar .nav-link, 
.ft-sidebar-mobile .nav-link { 
  color: var(--ft-gray); 
  border-radius: 8px; 
  padding: 10px 16px; 
  font-weight: 500; 
  transition: all 0.2s ease; 
}
.ft-sidebar .nav-link:hover, 
.ft-sidebar-mobile .nav-link:hover { 
  background: rgba(255,255,255,0.05); 
  color: var(--ft-white); 
}
.ft-sidebar .nav-link.active { 
  background: rgba(0, 174, 239, 0.1); 
  color: var(--ft-blue); 
  border-left: 3px solid var(--ft-blue);
  border-radius: 0 8px 8px 0;
  padding-left: 13px;
}
.ft-sidebar-mobile .nav-link.active {
  background: rgba(0, 174, 239, 0.1); 
  color: var(--ft-blue); 
}

.ft-topbar { 
  background: rgba(12, 12, 16, 0.8) !important; 
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ft-border); 
  position: sticky; 
  top: 0; 
  z-index: 100; 
}

/* =========================================================
   9. ADMIN DASHBOARD: KPI & ACTIONS
   ========================================================= */
.ft-kpi-card {
  background: rgba(12, 12, 16, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}
.ft-kpi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
}
.ft-kpi-card:hover .ft-icon-box { transform: scale(1.1); }
.ft-kpi-card:hover img { transform: scale(1.05); }

.ft-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

/* Glow Variants */
.ft-glow-blue { color: #00AEEF; box-shadow: 0 0 15px rgba(0, 174, 239, 0.15); }
.ft-glow-purple { color: #8B5CF6; box-shadow: 0 0 15px rgba(139, 92, 246, 0.15); }
.ft-glow-orange { color: #FFB703; box-shadow: 0 0 15px rgba(255, 183, 3, 0.15); }
.ft-glow-pink { color: #FF007F; box-shadow: 0 0 15px rgba(255, 0, 127, 0.15); }

.ft-card-bg-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  filter: blur(40px);
  top: -20px;
  right: -20px;
  opacity: 0.1;
  transition: opacity 0.3s ease;
}
.ft-kpi-card:hover .ft-card-bg-glow { opacity: 0.25; }
.ft-card-bg-glow.ft-glow-blue { background: #00AEEF; }
.ft-card-bg-glow.ft-glow-purple { background: #8B5CF6; }
.ft-card-bg-glow.ft-glow-orange { background: #FFB703; }
.ft-card-bg-glow.ft-glow-pink { background: #FF007F; }

.ft-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  transition: all 0.3s ease;
}
.ft-action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.ft-action-btn:hover .group-hover-scale { transform: scale(1.15); }
.group:hover .group-hover-scale { transform: scale(1.15); transition: transform 0.3s ease; }

/* =========================================================
   10. TABLES & DATA DISPLAY
   ========================================================= */
.ft-table { color: #FFFFFF !important; }
.ft-table th { 
  font-weight: 600; 
  font-size: 0.75rem; 
  letter-spacing: 0.05em; 
  color: var(--ft-gray) !important; 
}
.ft-table td { 
  padding: 1rem 0.75rem; 
  border-bottom: 1px solid rgba(255,255,255,0.05); 
}
.ft-table tbody tr:last-child td { border-bottom: none; }
.ft-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.ft-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,174,239,0.2), rgba(255,0,127,0.2));
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Status Badges */
.ft-badge-new { background: rgba(0, 174, 239, 0.15); color: #00AEEF; border: 1px solid rgba(0, 174, 239, 0.3); }
.ft-badge-contacted { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; border: 1px solid rgba(139, 92, 246, 0.3); }
.ft-badge-qualified { background: rgba(255, 183, 3, 0.15); color: #FFB703; border: 1px solid rgba(255, 183, 3, 0.3); }
.ft-badge-won { background: rgba(16, 185, 129, 0.15); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.3); }
.ft-badge-lost { background: rgba(239, 68, 68, 0.15); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* =========================================================
   11. FORMS & INPUTS (DARK MODE)
   ========================================================= */
.form-control, .form-select {
  background-color: var(--ft-surface) !important;
  border: 1px solid var(--ft-border) !important;
  color: var(--ft-white) !important;
}
.form-control:focus, .form-select:focus {
  background-color: #111117 !important;
  border-color: var(--ft-blue) !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 174, 239, 0.25) !important;
  color: var(--ft-white) !important;
}
.form-control::placeholder {
  color: #6b7280 !important;
  opacity: 1;
}
.form-select option {
  background-color: var(--ft-surface) !important;
  color: var(--ft-white) !important;
}
::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.6;
  cursor: pointer;
}
.form-check-input {
  background-color: var(--ft-border) !important;
  border-color: var(--ft-gray) !important;
}
.form-check-input:checked {
  background-color: var(--ft-blue) !important;
  border-color: var(--ft-blue) !important;
}

/* =========================================================
   12. BLOG & ARTICLE TYPOGRAPHY
   ========================================================= */
.article-content h2, 
.article-content h3, 
.article-content h4 {
    color: #FFFFFF;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.article-content h2 { font-size: 1.75rem; }
.article-content h3 { font-size: 1.5rem; }
.article-content p { margin-bottom: 1.5rem; }
.article-content ul, 
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.article-content li { margin-bottom: 0.5rem; }
.article-content a { color: var(--ft-blue); text-decoration: underline; }
.article-content blockquote {
    border-left: 4px solid var(--ft-blue);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--ft-gray);
    background: rgba(0, 174, 239, 0.05);
    padding: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}
.article-content pre {
    background: #08080b;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--ft-border);
    color: #A1A1AA;
    overflow-x: auto;
}

/* =========================================================
   13. PREMIUM ACCORDION (FAQ)
   ========================================================= */
.ft-accordion .accordion-item {
  background-color: var(--ft-surface);
  border: 1px solid var(--ft-border);
  transition: all 0.3s ease;
}
.ft-accordion .accordion-item:hover {
  border-color: rgba(0, 174, 239, 0.4);
}
.ft-accordion .accordion-button {
  background-color: transparent !important;
  border: none;
  padding: 1.5rem;
  color: #FFFFFF;
}
.ft-accordion .accordion-button:not(.collapsed) {
  color: var(--ft-blue) !important;
  background-color: rgba(0, 174, 239, 0.05) !important;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.05);
}
.ft-accordion .accordion-button::after { display: none; }
.ft-accordion .accordion-button i { transition: transform 0.3s ease; }
.ft-accordion .accordion-button:not(.collapsed) i {
  transform: rotate(45deg);
  color: var(--ft-pink) !important;
}
.ft-accordion .accordion-body { background-color: transparent !important; }

/* =========================================================
   14. MISC UTILITIES & MEDIA QUERIES
   ========================================================= */
.dropdown-menu-dark {
    background-color: #0c0c10;
    border-color: var(--ft-border);
}
.dropdown-menu-dark .dropdown-item:hover {
    background-color: rgba(0, 174, 239, 0.1);
    color: var(--ft-blue);
}
section[id] {
    scroll-margin-top: 100px;
}

@media (prefers-reduced-motion: reduce) { 
  *, *::before, *::after { 
    transition: none !important; 
    animation: none !important; 
  } 
}
@media (max-width: 991px) { 
  .ft-sidebar { 
    width: 100%; 
    min-height: auto; 
    position: relative;
  } 
}

/* =========================================================
   FUTURISTIC GRID BACKGROUND (HERO)
   ========================================================= */
.ft-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
}
/* Tech stack item */
.tech-item {
    transition: all 0.2s ease;
    cursor: default;
}
.tech-item:hover {
    background: rgba(0, 174, 239, 0.08);
    border-color: rgba(0, 174, 239, 0.3);
    transform: translateX(2px);
}
.tech-item:hover i {
    color: var(--ft-pink) !important;
    transition: color 0.2s ease;
}

/* =========================================================
   PREMIUM HEADER
   ========================================================= */
.ft-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: transform 0.3s ease, background 0.3s ease;
}

.ft-header.hidden {
    transform: translateY(-100%);
}

.ft-navbar {
    background: rgba(5, 5, 5, 0.72) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease, border-color 0.3s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.ft-navbar.scrolled {
    background: rgba(5, 5, 5, 0.92) !important;
    border-bottom-color: rgba(0, 174, 239, 0.15);
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

/* Nav link with sliding underline */
.ft-navbar .nav-link {
    color: var(--ft-gray) !important;
    font-weight: 500;
    font-size: 0.92rem;
    position: relative;
    padding: 0.5rem 0.75rem !important;
    transition: color 0.2s ease;
}

.ft-navbar .nav-link:hover,
.ft-navbar .nav-link.active {
    color: var(--ft-white) !important;
}

.ft-navbar .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.35rem;
    height: 2px;
    background: var(--ft-blue);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.ft-navbar .nav-link:hover::after,
.ft-navbar .nav-link.active::after {
    transform: scaleX(1);
}

/* Dropdown trigger — remove Bootstrap's default arrow, use custom */
.ft-navbar .dropdown-toggle::after {
    content: '\F282'; /* bootstrap-icons chevron-down */
    font-family: 'bootstrap-icons';
    border: none;
    vertical-align: baseline;
    font-size: 0.65rem;
    margin-left: 0.25rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.ft-navbar .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* Mega menu */
.ft-mega-menu {
    background: #0c0c10;
    border-top: 1px solid var(--ft-border);
    border-bottom: 1px solid var(--ft-border);
    left: 0;
    right: 0;
    margin-top: 0;
    padding: 0;
    width: 100%;
    border-radius: 0;
    max-height: 70vh;
    overflow-y: auto;
}

.ft-mega-menu .ft-mega-item {
    transition: background 0.15s ease;
}

.ft-mega-menu .ft-mega-item:hover {
    background: rgba(0, 174, 239, 0.06);
}

/* Mobile menu */
.ft-mobile-menu {
    background: #0c0c10;
    width: 320px;
    border-left: 1px solid var(--ft-border);
}

.ft-mobile-menu .nav-link {
    color: var(--ft-gray);
    padding: 0.85rem 0;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.ft-mobile-menu .nav-link:hover,
.ft-mobile-menu .nav-link.active {
    color: var(--ft-blue);
    padding-left: 0.5rem;
}

/* Helper for text truncation */
.min-w-0 {
    min-width: 0;
}

/* Mobile-only adjustments */
@media (max-width: 991px) {
    .ft-navbar {
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }
}

/* =========================================================
   PREMIUM FOOTER
   ========================================================= */
.ft-footer {
    background: #08080b;
    border-top: 1px solid rgba(0, 174, 239, 0.15);
    position: relative;
}

/* Subtle glow at top of footer */
.ft-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 174, 239, 0.5), transparent);
}

.ft-footer .ft-footer-links a {
    color: var(--ft-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s ease, padding-left 0.15s ease;
    display: inline-block;
}

.ft-footer .ft-footer-links a:hover {
    color: var(--ft-blue);
    padding-left: 3px;
}

.ft-footer .ft-footer-links span {
    font-size: 0.85rem;
}

.ft-footer-legal {
    font-size: 0.8rem;
    transition: color 0.15s ease;
}
.ft-footer-legal:hover {
    color: var(--ft-white) !important;
}

/* Larger social icons */
.ft-footer .ft-social-icon {
    width: 40px;
    height: 40px;
    transition: all 0.25s ease;
}
.ft-footer .ft-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 174, 239, 0.25);
}

/* Newsletter input focus */
#newsletterForm input:focus {
    border-color: var(--ft-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.15) !important;
}

/* Back to top smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media (max-width: 767px) {
    .ft-footer-cta .btn-lg {
        width: 100%;
    }
}

/* =========================================================
   ADMIN LAYOUT ENHANCEMENTS
   ========================================================= */

/* Left-edge indicator on active sidebar links */
.ft-sidebar .nav-link.active {
    background: rgba(0, 174, 239, 0.1);
    color: var(--ft-blue);
    border-left: 3px solid var(--ft-blue);
    border-radius: 0 8px 8px 0;
    padding-left: 13px;
}

.ft-sidebar-mobile .nav-link.active {
    background: rgba(0, 174, 239, 0.1);
    color: var(--ft-blue);
    border-left: 3px solid var(--ft-blue);
    padding-left: 13px;
}

/* Sidebar badges sit inline with links */
.ft-sidebar .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.ft-sidebar .nav-link .badge {
    margin-left: auto !important;
}

/* User dropdown button — remove Bootstrap's default caret */
.ft-topbar .dropdown-toggle::after {
    display: none;
}

/* Topbar user name hover */
.ft-topbar .btn-link:hover .ft-avatar {
    transform: scale(1.05);
    transition: transform 0.15s ease;
}

/* Min-width helper */
.min-w-0 {
    min-width: 0;
}

/* Mobile nav section labels */
.ft-sidebar-mobile .text-muted.small {
    pointer-events: none;
}

/* Smooth avatar transition */
.ft-avatar {
    transition: transform 0.15s ease;
}