/* =========================================
   AR THEME STYLING
   ========================================= */

:root {
	--s99-copper: #613E35;              /* S99 Copper 1 (Requires 3 tones to generate the copper / bronze look) */
	--s99-copper-light: #CC8877;        /* S99 Copper 2 (Requires 3 tones to generate the copper / bronze look) */
	--s99-copper-dark: #28170b;         /* S99 Copper 3 (Requires 3 tones to generate the copper / bronze look) */
	--s99-silver-light: #E5E5E5;        /* S99 Silver */
	--s99-platinum: #e5e4e2;            /* S99 Platinum */
    --s99-gray: #909090;                /* S99 Gray */
    --blue-gray: #b8c2d3;               /* S99 blue-gray */
    --gray-beige: #d3c7b8;
	--tech-glow: #00d4ff;
	--data-stream: #39ff14;
	--neural-purple: rgb(138, 43, 226);
	--text-light: #f5f5f5;
	--text-dark: #242424;
	--dark-bg: rgb(36, 36, 36);
    --error-color: #dc3545;                      /* Red for error state */
    --error-glow: rgba(220, 53, 69, 0.6);        /* Red glow for error */
    --container-max-width: 1600px;
    --font-family-primary: Tahoma, 'Segoe UI', Helvetica, Arial, system-ui, sans-serif; /* Cross Platform Compliant */

    --magenta: #ff00ff;
    --magenta-fade: rgba(255, 0, 255, 0.3);
    --linear-average: #00d4ff;
    --linear-average-fade: rgba(0, 212, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    background: radial-gradient(circle at 50% 50%, var(--dark-bg) 0%, var(--dark-bg) 100%);
    color: #fff;
    min-height: 100vh;
    padding: 10px 10px 10px 10px;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Fixed header container display */
.header-container 
    {
        display: block;
        align-items: center;
        justify-content: space-between;
        max-width: var(--container-max-width);
        margin: 0 auto;
        width: 100%;
        padding: 10px 10px 10px 10px;
        margin-bottom: 20px;
        margin-left: 0;
    }

.greeting-text 
    {
        text-align: center;
        margin-top: 40px;
        margin: 40px auto 20px auto;  /* Center horizontally with auto margins */
        font-size: 2rem;
        font-weight: 600;
        background: var(--blue-gray, #b8c2d3);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 0 30px #b8c2d3;
        margin-bottom: 20px;
        animation: slideInUp 0.8s ease-out 0.4s both;
    }

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-section {
    margin-bottom: 5px;
    padding: 5px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    background: rgba(36, 36, 36, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    width: 100%;               /* Add this */
    max-width: var(--container-max-width); /* Add this */
    margin-left: auto;         /* Add this */
    margin-right: auto;        /* Add this */
}

.nav-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate { to { transform: rotate(360deg); } }

.nav-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #00ff88;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.nav-description {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.9;
    font-size: 1.2rem;
    color: #ccc;
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;        /* Add this for vertical centering */
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;               /* Add this to ensure full width */
    max-width: var(--container-max-width); /* Respect your container max-width */
    margin: 0 auto;            /* Add this to center the entire button group */
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    perspective: 1000px;
    margin-bottom: 40px;
}

.logo-hologram {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.45, 0.75, 0.75, 0.95);
    border: 3px solid rgba(184, 194, 211, 0.5);
    border-radius: 10px;
}

.logo:hover .logo-hologram::before { opacity: 0.5; }

@keyframes holoRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light, #f5f5f5);
    padding: 8px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(36, 36, 36, 0.05), rgba(36, 36, 36, 0.01));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(97, 62, 53, 0.3);
    transition: all 0.6s cubic-bezier(0.25, 0.35, 0.35, 0.94);
}

.logo-link:hover {
    transform: translateY(-2px) rotateX(3deg);
    box-shadow: 0 8px 30px rgba(97, 62, 53, 0.6), 0 0 50px rgba(0, 212, 255, 0.4);
}

.logo-image {
    height: 85px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 15px rgba(97, 62, 53, 0.5))
        drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
    transition: all 0.6s ease;
}

.logo:hover .logo-image {
    filter:
        drop-shadow(0 0 25px rgba(97, 62, 53, 0.7))
        drop-shadow(0 0 50px rgba(0, 212, 255, 0.5))
        drop-shadow(0 0 70px rgba(138, 43, 226, 0.3));
    transform: rotateY(20deg) scale(1.05);
}

.logo-text {
    margin-left: 12.5px;
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 2.25rem !important;
    font-weight: 700;
    background: var(--blue-gray-bg, #B8C2D3);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(184, 115, 51, 0.4);
    white-space: nowrap;
}

@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.company-tagline {
    font-size: 1rem;
    text-align: center;
    color: var(--tech-glow, rgb(0, 212, 255));
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 3px;
    text-shadow: 0 0 8px var(--tech-glow, #00D4FF);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

.ar-btn {
    padding: 15px 35px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: var(--tech-glow, #00D4FF);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: visible;
    font-family: var(--font-family-primary);
    margin: 5px 1px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

/* Provide base ::before so :hover rule has effect */
.ar-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.08), transparent);
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.ar-btn:hover::before {
    opacity: 1;
    transition-delay: 0s; /* was 3s; immediate feels snappier in UX */
}

.ar-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: scan 2s linear infinite;
}

@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.ar-data {
    position: absolute;
    font-size: 0.6rem;
    color: rgb(0, 213, 255);
    opacity: 0;
    font-family: var(--font-family-primary);
    pointer-events: none;
    z-index: 20;
    background: rgba(36, 36, 36, 0.3);
    padding: 3px 6px;
    border-radius: 3px;
    white-space: nowrap;
    border: 1px solid rgba(0, 213, 255, 0.5);
}

/* Active nav state (current page) */
.ar-btn.active {
  border-color: rgba(0, 212, 255, 0.8);
  box-shadow: 0 0 30px rgba(0, 212, 255, 1);
  transform: translateZ(0); /* avoid subpixel blur on glow */
}

/* Keep the hover shimmer for active buttons too */
.ar-btn.active::before {
  opacity: 1; /* subtle always-on shimmer */
}

/* On hover, let it pop a bit more (desktop only) */
@media (hover:hover) {
  .ar-btn.active:hover {
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.45);
  }
}

.custom-tooltip {
  position: absolute;
  background: rgba(36, 36, 36, 0.95);
  color: var(--tech-glow, #00D4FF);
  padding: 5px 5px;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
  z-index: 100;
  border: 1px solid rgba(0, 255, 255, 0.3);
  pointer-events: none;
  font-family: var(--font-family-primary);
  transition: opacity 120ms ease, transform 120ms ease;
  opacity: 1;
  transform: translateY(0);
}

.custom-tooltip.is-fading {
  opacity: 0;
  transform: translateY(-2px);
}



/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.toggle-line {
    width: 100%;
    height: 3px;
    background: var(--tech-glow, #00D4FF);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Toggle Animation */
.mobile-toggle.active .toggle-line:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.mobile-toggle.active .toggle-line:nth-child(2) { opacity: 0; }
.mobile-toggle.active .toggle-line:nth-child(3) { transform: rotate(-45deg) translate(8px, -8px); }

/* Tablet Responsive Design (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-container { padding: 10px 15px; }
    .button-group { gap: 15px; }
    .ar-btn { padding: 12px 25px; font-size: 1rem; }
    .logo-image { height: 75px; }
    .company-name { font-size: 2rem !important; }
    .company-tagline { font-size: 0.9rem; }
    .greeting-text { font-size: 1.3rem; }
}

/* Mobile Phone Responsive Design (max-width: 768px) */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
        position: relative;
    }

    .logo { margin-bottom: 20px; align-self: flex-start; }
    .logo-image { height: 65px; }
    .company-name { font-size: 1.8rem !important; }
    .company-tagline { font-size: 0.8rem; }

    .greeting-text {
        font-size: 1.1rem;
        margin-left: 0;
        text-align: left;
        margin-top: 20px;
    }

    .mobile-toggle { display: flex; }

    .button-group {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(36, 36, 36, 0.95);
        backdrop-filter: blur(20px);
        border: 2px solid rgba(0, 212, 255, 0.3);
        border-radius: 15px;
        padding: 20px;
        margin: 10px;
        flex-direction: column;
        gap: 10px;
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(36, 36, 36, 0.7);
    }

    .button-group.active { display: flex; }

    .ar-btn {
        padding: 15px 20px;
        font-size: 1rem;
        text-align: center;
        width: 100%;
        margin: 0;
    }

    .nav-section { margin-bottom: 50px; }
    body { padding: 20px 10px; }
}

/* Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    .logo-image { height: 55px; }
    .company-name { font-size: 1.5rem !important; }
    .company-tagline { font-size: 0.7rem; }
    .greeting-text { font-size: 1rem; }
    .ar-btn { padding: 12px 15px; font-size: 0.9rem; }
    .header-container { padding: 8px 12px; }
    .button-group { margin: 5px; padding: 15px; }
}

/* =========================================
   BREADCRUMBS
   ========================================= */

/* Breadcrumbs Container */
.breadcrumbs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: linear-gradient(135deg, rgba(36, 36, 36, 0.95), rgba(36, 36, 36, 0.85));
    backdrop-filter: blur(10px);
    padding: 5px;
    margin: 0 5px 10px;
    /* border-radius: 10px;
       border: 1px solid rgba(0, 212, 255, 0.2); */
    font-size: 15px;
    font-family: var(--font-family-primary);
    width: auto;
    max-width: var(--container-max-width);
    position: relative;
    overflow: hidden;
}

@keyframes breadcrumbRotate { to { transform: rotate(360deg); } }

/* Breadcrumb Links */
.breadcrumbs a,
.breadcrumb-link {
    color: var(--tech-glow);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    position: relative;
}

.breadcrumbs a:hover,
.breadcrumb-link:hover {
    color: var(--text-light);
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
    transform: translateY(-1px);
}

/* Breadcrumb Icon */
.breadcrumb-icon {
    margin-right: 6px;
    font-size: 15px;
    opacity: 0.8;
}

/* Breadcrumb Separator */
.breadcrumb-separator {
    margin: 0 10px;
    color: rgba(0, 212, 255, 0.6);
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 0 3px rgba(0, 212, 255, 0.3);
}

/* Current Page (non-clickable) */
.breadcrumb-current {
    color: var(--text-light);
    font-weight: 600;
    padding: 4px 8px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(138, 43, 226, 0.1));
    border-radius: 4px;
    text-shadow: 0 0 5px rgba(138, 43, 226, 0.4);
    border: 1px solid rgba(138, 43, 226, 0.3);
}

/* Responsive Design (breadcrumbs) */
@media (max-width: 768px) {
    .breadcrumbs {
        margin: 0 5px 15px;
        padding: 10px 15px;
        font-size: 13px;
    }
    .breadcrumb-separator { margin: 0 8px; font-size: 14px; }
    .breadcrumb-icon { font-size: 11px; }
}

@media (max-width: 480px) {
    .breadcrumbs {
        padding: 8px 12px;
        font-size: 12px;
        flex-wrap: wrap;
        gap: 4px;
    }
    .breadcrumb-separator { margin: 0 6px; font-size: 13px; }
    .breadcrumbs a,
    .breadcrumb-link,
    .breadcrumb-current { padding: 3px 6px; }
}

/* Ensure breadcrumbs don't interfere with page content */
.breadcrumbs + * { margin-top: 0; }

/* Hidden elements for structured data */
[itemscope] [itemprop][content],
[itemscope] meta[itemprop],
[itemscope] link[itemprop] {
    display: none;
}

/* =========================================
   Accessibility / Motion preferences
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
