@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

html {
  scroll-behavior: smooth;
}

iframe {
  transform: scale(1);
  transform-origin: 0 0;
}

/* Scroll offset for sticky sub-nav on project pages */
.portfolio-content section[id] {
  scroll-margin-top: 130px;
}

.portfolio-content [id="requirements"] {
  scroll-margin-top: 130px;
}

/* 1. Typography Styles */
.portfolio-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  /* Makes your name stand out cleanly */
  font-size: 2rem !important;
  /* Increased slightly for visual hierarchy */
  letter-spacing: -0.03em;
  /* Sleek, tight modern spacing */
}

.portfolio-role {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  /* Elegant letter-spacing for sub-roles */
  font-size: 0.9rem !important;
  /* Balanced contrast */
}

/* 2. Refined Button Sizing */
.custom-hero-btn {
  padding: 0.5rem 1.25rem !important;
  /* Snug, balanced padding */
  font-size: 0.95rem !important;
  /* Fits beautifully with paragraph text */
  font-weight: 500 !important;
  border-radius: 6px !important;
  /* Clean modern edge curves */
}

.feature-icon-small {
  width: 3rem;
  height: 3rem;
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: .75rem;
}

.icon-square {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
}

.text-shadow-1 {
  text-shadow: 0 .125rem .25rem rgba(0, 0, 0, .25);
}

.text-shadow-2 {
  text-shadow: 0 .25rem .5rem rgba(0, 0, 0, .25);
}

.text-shadow-3 {
  text-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .25);
}

.card-cover {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}


.bi {
  vertical-align: -.125em;
  fill: currentColor;
}

.custom-tooltip {
  --bs-tooltip-bg: #232323;
  --bs-tooltip-color: #ffffff;
}


.scrollspy-about {
  height: 600px;
  overflow: auto
}

.nav {
  --bs-nav-link-padding-x: 1rem;
  --bs-nav-link-padding-y: 0.5rem;
  --bs-nav-link-font-weight: ;
  --bs-nav-link-color: #000;
  --bs-nav-link-hover-color: #727476;
  --bs-nav-link-disabled-color: #212529bf;
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-pills {
  --bs-nav-pills-border-radius: 0.375rem;
  --bs-nav-pills-link-active-color: #fff;
  --bs-nav-pills-link-active-bg: #444746;
}

.featurette-divider {
  margin: 5rem 0;
}

:root {
  --chat--color-primary: #ffc008;
  --chat--color-primary-shade-50: #f0bc30;
  --chat--color-primary-shade-100: #ded196; 
  --chat--color-secondary: #20b69e;
  --chat--color-secondary-shade-50: #1ca08a;
  --chat--color-white: #ffffff;
  --chat--color-light: #f2f4f8;
  --chat--color-light-shade-50: #e6e9f1;
  --chat--color-light-shade-100: #c2c5cc;
  --chat--color-medium: #d2d4d9;
  --chat--color-dark: #212529;
  --chat--color-disabled: #777980;
  --chat--color-typing: #404040;

  --chat--spacing: 1rem;
  --chat--border-radius: 0.25rem;
  --chat--transition-duration: 0.15s;

  --chat--window--width: 400px;
  --chat--window--height: 600px;

  --chat--header-height: auto;
  --chat--header--padding: var(--chat--spacing);
  --chat--header--background: var(--chat--color-dark);
  --chat--header--color: var(--chat--color-light);
  --chat--header--border-top: none;
  --chat--header--border-bottom: none;
  --chat--header--border-bottom: none;
  --chat--header--border-bottom: none;
  --chat--heading--font-size: 2em;
  --chat--header--color: var(--chat--color-light);
  --chat--subtitle--font-size: inherit;
  --chat--subtitle--line-height: 1.8;

  --chat--textarea--height: 50px;

  --chat--message--font-size: 1rem;
  --chat--message--padding: var(--chat--spacing);
  --chat--message--border-radius: var(--chat--border-radius);
  --chat--message-line-height: 1.8;
  --chat--message--bot--background: var(--chat--color-white);
  --chat--message--bot--color: var(--chat--color-dark);
  --chat--message--bot--border: none;
  --chat--message--user--background: var(--chat--color-secondary);
  --chat--message--user--color: var(--chat--color-white);
  --chat--message--user--border: none;
  --chat--message--pre--background: rgba(0, 0, 0, 0.05);

  --chat--toggle--background: var(--chat--color-primary);
  --chat--toggle--hover--background: var(--chat--color-primary-shade-50);
  --chat--toggle--active--background: var(--chat--color-primary-shade-100);
  --chat--toggle--color: var(--chat--color-white);
  --chat--toggle--size: 64px;
}

/* Word Cloud Styles & Interactive States */
.word-default {
  fill: #4a5568;
  /* Dark grey slate color */
  cursor: pointer;
  user-select: none;
  transition: fill 0.2s ease;
}

.word-hovered {
  fill: #0d6dfd !important;
  /* Interactive blue on hover */
}

.word-selected {
  fill: #ffb703 !important;
  /* UPDATED: Vibrant theme yellow on click */
}

/* 1. Main Content Centering and Alignment (The Spacer Technique) */
/* By default, the text container is centered, and we use mt-auto to anchor tags at the bottom. */
.custom-layout-card .text-content-wrapper {
  justify-content: center;
  /* This handles "middle title" in Before state */
}

/* Anchors the tags footer to the very bottom, always. */
.custom-layout-card .card-tags-footer {
  margin-top: auto;
}

/* 2. Positioning within the centered content group */
.custom-layout-card .project-title-header {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}

/* 3. Sliding Reveal Panel (Drawer Mechanism) */
.custom-layout-card .slide-reveal-panel {
  max-height: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}

/* ==============================================
       HOVER STATE ('After') Position Adjustments
    ============================================== */

/* 4. On Hover, switch alignment from middle-centered to top-aligned, creating a shift. */
.custom-layout-card:hover .text-content-wrapper {
  justify-content: flex-start;
}

/* 5. A slight bidirectional slide-up for the title itself for premium feel. */
.custom-layout-card:hover .project-title-header {
  transform: translateY(-8px);
}

/* 6. On Hover, expand and slide up the panel. */
.custom-layout-card:hover .slide-reveal-panel {
  max-height: 300px;
  /* Safe upper bound limit for truncated string block */
  opacity: 1;
  transform: translateY(0);
}

.contact-container {
        font-family: 'Plus Jakarta Sans', sans-serif;
    }

    /* Modern Minimalist Input Fields */
    .contact-container .form-control,
    .contact-container .form-select {
        border-radius: 6px;
        border: 1px solid #dee2e6;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
        background-color: #ffffff;
    }

    /* Subtle custom focus state to match the brand accent color */
    .contact-container .form-control:focus,
    .contact-container .form-select:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
        outline: 0;
    }

    /* Custom form wrapper card matching your solid panel elements */
    .contact-form-card {
        background-color: rgb(248, 249, 250);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .contact-submit-btn {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        border-radius: 6px !important;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }
    
    .contact-submit-btn:hover {
        transform: translateY(-1px);
    }

    .thankyou-container {
        font-family: 'Plus Jakarta Sans', sans-serif;
    }

    /* Form wrapper container matching your solid contact card panels */
    .thankyou-card {
        background-color: rgb(248, 249, 250);
        border: 1px solid rgba(0, 0, 0, 0.05);
        max-width: 540px;
        margin: 0 auto;
    }

    .countdown-ticker-box {
        font-size: 0.85rem;
        letter-spacing: 0.05em;
        font-weight: 500;
        background-color: #ffffff;
        border: 1px solid #dee2e6;
    }

/* ==============================================
       Omnirouter-MCP Service Page Styles
    ============================================== */

/* Hero gradient background (dark theme - for Omnirouter-MCP page) */
.omnirouter-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #0d9488 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.omnirouter-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 192, 8, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(32, 182, 158, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 70% 15%, rgba(13, 110, 253, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

.omnirouter-hero * {
    position: relative;
    z-index: 1;
}

/* Light theme variant (for home page) */
.omnirouter-hero-light {
    background: #f8f9fa;
    color: #212529;
    position: relative;
    overflow: hidden;
}

.omnirouter-hero-light::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 192, 8, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(32, 182, 158, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 70% 15%, rgba(13, 110, 253, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.omnirouter-hero-light * {
    position: relative;
    z-index: 1;
}

/* Floating soft orbs inside hero */
.omnirouter-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
    animation: omnirouter-float 8s ease-in-out infinite;
}

@keyframes omnirouter-float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Animated hub illustration wrapper */
.omnirouter-hub {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.omnirouter-hub svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Central hub pulsing glow */
.omnirouter-hub .hub-core {
    transform-origin: center;
    transform-box: fill-box;
    animation: hub-pulse 3s ease-in-out infinite;
}

@keyframes hub-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.9; }
}

/* Platform icon nodes gentle glow */
.omnirouter-hub .platform-node {
    transform-origin: center;
    transform-box: fill-box;
    animation: node-glow 4s ease-in-out infinite;
}

@keyframes node-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Data pulses travelling along the connection lines */
.omnirouter-hub .data-pulse {
    stroke-dasharray: 2 10;
    animation: data-flow 2.4s linear infinite;
}

@keyframes data-flow {
    to { stroke-dashoffset: -48; }
}

/* Typing dots on the AI chat bubble */
.omnirouter-typing-dot {
    animation: typing-blink 1.2s ease-in-out infinite;
}

.omnirouter-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.omnirouter-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-blink {
    0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

/* Platform badge chips in the hero */
.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.platform-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.platform-chip img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}

/* Smaller variant for the hero feature chips (keeps them on one line) */
.platform-chip-sm {
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    gap: 0.35rem;
}

.platform-chip-sm i {
    font-size: 0.8rem;
}

/* Mobile header: keep search bar + Discuss button on one line (below lg) */
@media (max-width: 991.98px) {
    .search-nav-form {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0;
        margin-right: 0.5rem !important;
        margin-bottom: 0 !important;
    }
    .search-nav-btn {
        flex-shrink: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* Sticky anchor sub-nav for the service page */
.omnirouter-subnav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #dee2e6;
    z-index: 1020;
}

.omnirouter-subnav .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    transition: color 0.15s ease, background 0.15s ease;
}

.omnirouter-subnav .nav-link:hover {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.08);
}

/* Platform connector cards */
.platform-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.25rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
    border-color: #0d6efd;
}

.platform-card .platform-logo {
    width: 44px;
    height: 44px;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.4rem;
}

.platform-card .platform-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Chat-style query bubbles */
.query-chat {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.9rem;
    padding: 0.9rem 1.1rem;
    font-size: 0.95rem;
}

.query-chat .query-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #6c757d;
    display: block;
    margin-bottom: 0.35rem;
}

.query-chat .query-bubble {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 0.6rem 0.9rem;
    font-style: italic;
    color: #212529;
}

/* AI response bubble (green/teal tint to distinguish from user query) */
.query-chat.query-response {
    background: #f0fdf9;
    border-color: #bfe9df;
}

.query-chat.query-response .query-label {
    color: #0d9488;
}

.response-bubble {
    background: #ffffff;
    border: 1px solid #bfe9df;
    border-radius: 0.75rem;
    padding: 0.6rem 0.9rem;
    color: #134e4a;
    font-size: 0.9rem;
}

/* Without / With comparison panels in Overview */
.compare-panel {
    border-radius: 0.75rem;
    padding: 1.1rem 1.25rem;
    height: 100%;
}

.compare-panel .compare-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.compare-panel.compare-without {
    background: #fdf2f2;
    border: 1px solid #f5c2c2;
}

.compare-panel.compare-without .compare-title {
    color: #b02a37;
}

.compare-panel.compare-with {
    background: #f0fdf9;
    border: 1px solid #bfe9df;
}

.compare-panel.compare-with .compare-title {
    color: #0d9488;
}

.compare-panel ul {
    margin-bottom: 0;
    padding-left: 1.1rem;
}

.compare-panel li {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.4rem;
}

.compare-panel li:last-child {
    margin-bottom: 0;
}

/* Privacy accordion subtle styling */
.omnirouter-privacy .accordion-button {
    font-weight: 600;
    color: #212529;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .omnirouter-hub .hub-core,
    .omnirouter-hub .data-pulse,
    .omnirouter-hub .platform-node,
    .omnirouter-typing-dot,
    .omnirouter-orb {
        animation: none !important;
    }
    .platform-card:hover {
        transform: none;
    }
}
