/* =========================================================================
   IONWEBS - SLEEK DARK TECH / SAAS DESIGN SYSTEM
   ========================================================================= */

:root {
    /* Brand Dark Palette */
    --bg-dark: #071922;
    --bg-dark-secondary: #0a2530;
    --bg-dark-tertiary: #0e303e;
    --bg-card: rgba(11, 34, 45, 0.85);
    --bg-card-hover: rgba(14, 46, 60, 0.95);
    
    /* Vibrant Cyan Accents */
    --color-cyan: #0096a6;
    --color-cyan-glow: #00e5ff;
    --color-cyan-hover: #00b4d8;
    --cyan-border: rgba(0, 150, 166, 0.25);
    --cyan-border-active: rgba(0, 229, 255, 0.5);
    
    /* Typography Palette */
    --text-white: #ffffff;
    --text-heading: #f8fafc;
    --text-body: #94a3b8;
    --text-muted: #64748b;
    --font-primary: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Global Reset */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--bg-dark) !important;
    color: var(--text-body);
    font-family: var(--font-primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Base Headings & Text */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text-white) !important;
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-body);
    line-height: 1.75;
    font-size: 1.05rem;
}

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

.text-cyan {
    color: var(--color-cyan-glow) !important;
}

.bg-cyan {
    background-color: var(--color-cyan) !important;
}

.bg-dark-theme {
    background-color: var(--bg-dark) !important;
}

.tracking-wider {
    letter-spacing: 2.5px !important;
}

.fs-sm {
    font-size: 0.875rem !important;
}

/* Text Gradient */
.text-gradient-silver {
    background: linear-gradient(135deg, #ffffff 20%, #7dd3fc 70%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #00e5ff 0%, #0096a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================================================
   COMPONENTS & GLASSMORPHISM SURFACES
   ========================================================================= */

/* Dark Tech Glass Card */
.glass-card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--cyan-border) !important;
    border-radius: 1rem;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    background: var(--bg-card-hover) !important;
    border-color: var(--cyan-border-active) !important;
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 150, 166, 0.2) !important;
}

/* Standard Card Override for Unified Dark Theme */
.card {
    background-color: var(--bg-dark-secondary) !important;
    border: 1px solid var(--cyan-border) !important;
    border-radius: 1rem;
    color: var(--text-body);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--cyan-border-active) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 150, 166, 0.25) !important;
}

.card .card-img-top,
.card img {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover .card-img-top,
.card:hover img {
    transform: scale(1.03);
}

/* Metric / Stat Card */
.stat-card {
    background: linear-gradient(145deg, rgba(10, 37, 48, 0.7), rgba(7, 25, 34, 0.9));
    border: 1px solid var(--cyan-border);
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--color-cyan-glow);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15);
    transform: translateY(-4px);
}

.stat-card .stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 30%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* Icon Box */
.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(0, 150, 166, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cyan-glow);
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.glass-card:hover .icon-box,
.card:hover .icon-box {
    background: rgba(0, 229, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transform: scale(1.08);
}

/* =========================================================================
   BUTTONS & INTERACTIONS
   ========================================================================= */

.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.75rem 1.75rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-cyan {
    background: linear-gradient(135deg, #0096a6 0%, #00b4d8 100%);
    border: 1px solid #00e5ff;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 150, 166, 0.4);
}

.btn-cyan:hover {
    background: linear-gradient(135deg, #00b4d8 0%, #00e5ff 100%);
    border-color: #ffffff;
    box-shadow: 0 6px 25px rgba(0, 229, 255, 0.6);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-outline-cyan {
    background: rgba(0, 150, 166, 0.1);
    color: var(--color-cyan-glow) !important;
    border: 1px solid rgba(0, 229, 255, 0.4);
}

.btn-outline-cyan:hover {
    background: rgba(0, 229, 255, 0.2);
    color: #ffffff !important;
    border-color: #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

.hover-glow:hover {
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6) !important;
    transform: translateY(-2px);
}

.hover-cyan:hover {
    color: var(--color-cyan-glow) !important;
    opacity: 1 !important;
}

/* =========================================================================
   HEADER & NAVBAR
   ========================================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(7, 25, 34, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--cyan-border);
    transition: all 0.3s ease;
}

.header.header-scrolled {
    background-color: rgba(7, 25, 34, 0.96) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(0, 229, 255, 0.4) !important;
}

/* Header Brand & Logo */
.navbar-brand {
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.site-logo {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.navbar-brand:hover .site-logo {
    transform: scale(1.02);
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.35));
}

@media (max-width: 991px) {
    .site-logo {
        height: 46px;
        max-width: 170px;
    }
}

@media (max-width: 576px) {
    .site-logo {
        height: 40px;
        max-width: 150px;
    }
}

.navbar .nav-link {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
    color: #e2e8f0;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover {
    color: var(--color-cyan-glow) !important;
}

.navbar .nav-link.text-cyan {
    color: var(--color-cyan-glow) !important;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.dropdown-menu-dark {
    background-color: #0a2530;
    border: 1px solid var(--cyan-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(0, 150, 166, 0.15);
    color: var(--color-cyan-glow) !important;
    padding-left: 1.4rem;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #0a2530;
        padding: 1.25rem 1.5rem;
        margin-top: 0.85rem;
        border-radius: 0.75rem;
        border: 1px solid var(--cyan-border);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    }
    .navbar .nav-link {
        padding: 0.7rem 0.5rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* =========================================================================
   HERO & AMBIENT VISUALS
   ========================================================================= */

.hero-section {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 75% 30%, rgba(0, 229, 255, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 20% 70%, rgba(0, 150, 166, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-main-img {
    max-height: 480px;
    width: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 15px 35px rgba(0, 229, 255, 0.25));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
    100% { transform: translateY(0px); }
}

.hero-image-wrapper {
    position: relative;
    display: inline-block;
}

.hero-image-wrapper::before,
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

.hero-image-wrapper::before {
    width: 320px;
    height: 320px;
    border: 2px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 150, 166, 0.2);
}

.hero-image-wrapper::after {
    width: 480px;
    height: 480px;
    border: 1px dashed rgba(0, 229, 255, 0.2);
}

@media (min-width: 992px) {
    .hero-image-wrapper::before { width: 450px; height: 450px; }
    .hero-image-wrapper::after { width: 620px; height: 620px; }
}

/* Floating Tech Badge */
.floating-badge {
    position: absolute;
    background: rgba(10, 37, 48, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-cyan-glow);
    color: #ffffff;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.3);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

/* =========================================================================
   PAGE HEADERS, BREADCRUMBS & SECTION DIVIDERS
   ========================================================================= */

.page-header {
    min-height: 260px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--cyan-border);
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(0, 150, 166, 0.2) 0%, var(--bg-dark) 70%);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
    content: "›";
    font-size: 1.1rem;
    line-height: 1;
    vertical-align: middle;
}

.breadcrumb .breadcrumb-item a {
    color: var(--color-cyan-glow);
    text-decoration: none;
    font-weight: 600;
}

/* Section Title Eyebrow */
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-cyan-glow);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    width: 35px;
    height: 2px;
    background: var(--color-cyan-glow);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

/* =========================================================================
   TESTIMONIAL ORBITAL GRAPHIC
   ========================================================================= */

.orbital-spin {
    animation: slowSpin 40s linear infinite;
}

@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbital-spin:hover {
    animation-play-state: paused;
}

#testimonialCarousel .carousel-indicators button {
    opacity: 0.3;
    transition: all 0.3s ease;
    background-color: #64748b;
}

#testimonialCarousel .carousel-indicators button.active {
    opacity: 1;
    background-color: var(--color-cyan-glow) !important;
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.8);
}

/* =========================================================================
   MARQUEE TICKER
   ========================================================================= */

.marquee-section {
    background-color: #05131a;
    border-top: 1px solid var(--cyan-border);
    border-bottom: 1px solid var(--cyan-border);
    overflow: hidden;
}

.marquee-track {
    width: 200%;
    animation: scrollMarquee 25s linear infinite;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* =========================================================================
   FORMS & INPUTS (DARK THEME)
   ========================================================================= */

.form-control, .form-select {
    background-color: rgba(10, 37, 48, 0.75) !important;
    border: 1px solid var(--cyan-border) !important;
    color: #ffffff !important;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(148, 163, 184, 0.6) !important;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(14, 46, 60, 0.95) !important;
    border-color: var(--color-cyan-glow) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 229, 255, 0.2) !important;
    color: #ffffff !important;
}

.form-label {
    color: #e2e8f0 !important;
    font-weight: 600;
}

/* Alerts */
.alert {
    border-radius: 0.75rem;
    border: none;
}
.alert-success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border-left: 4px solid #10b981 !important;
}
.alert-danger {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border-left: 4px solid #ef4444 !important;
}

/* =========================================================================
   AEO / FAQ ACCORDION STYLES
   ========================================================================= */

.accordion-aeo .accordion-item {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--cyan-border) !important;
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

.accordion-aeo .accordion-item:hover {
    border-color: var(--cyan-border-active) !important;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.08);
}

.accordion-aeo .accordion-button {
    background-color: transparent !important;
    color: var(--text-white) !important;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
}

.accordion-aeo .accordion-button:not(.collapsed) {
    color: var(--color-cyan-glow) !important;
    background-color: rgba(0, 150, 166, 0.1) !important;
    border-bottom: 1px solid var(--cyan-border) !important;
}

.accordion-aeo .accordion-button::after {
    filter: invert(1) brightness(2);
    transition: transform 0.3s ease;
}

.accordion-aeo .accordion-button:not(.collapsed)::after {
    filter: invert(72%) sepia(90%) saturate(1478%) hue-rotate(143deg) brightness(101%) contrast(105%);
}

.accordion-aeo .accordion-body {
    padding: 1.25rem 1.5rem;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* =========================================================================
   FOOTER
   ========================================================================= */

.bg-footer {
    background-color: #040e14 !important;
    border-top: 1px solid var(--cyan-border);
}

.bg-footer-inner {
    background: linear-gradient(145deg, #071922, #0a2530) !important;
    border: 1px solid var(--cyan-border);
}

.footer-logo {
    height: 58px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: inline-block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.footer-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.4));
}

@media (max-width: 576px) {
    .footer-logo {
        height: 48px;
        max-width: 180px;
    }
}

.footer-giant-text {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    z-index: 0;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

/* =========================================================================
   SCROLLBAR & SELECTION
   ========================================================================= */

::-webkit-scrollbar {
    width: 9px;
}
::-webkit-scrollbar-track {
    background: #040e14;
}
::-webkit-scrollbar-thumb {
    background: #0a2e3d;
    border-radius: 6px;
    border: 2px solid #040e14;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan-glow);
}

::selection {
    background: var(--color-cyan-glow);
    color: #071922;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--color-cyan-glow);
    outline-offset: 3px;
}