/* Navbar spacing adjustments for additional menu items */
.mainmenu-nav .mainmenu > li > a {
    padding: 0 10px;
    white-space: nowrap;
}

@media only screen and (min-width: 1400px) {
    .mainmenu-nav .mainmenu > li > a {
        padding: 0 14px;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .mainmenu-nav .mainmenu > li > a {
        padding: 0 10px;
        font-size: 14px;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .mainmenu-nav .mainmenu > li > a {
        padding: 0 5px;
        font-size: 12px;
    }
}

/* Custom CSS for LOGIN dropdown button */

/* Position the submenu correctly under the button and ensure it's initially hidden */
.header-right .mainmenu .has-droupdown .submenu {
    left: auto;
    right: 0;
    min-width: 260px; /* Match the main menu width */
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 90%;
    z-index: 90;
    text-align: left;
    padding: 12px 0;
    transition: 0.3s;
    border-radius: 0 0 10px 10px;
    background-color: #0f0f11; /* Exact color to match main nav */
    box-shadow: var(--shadow-lighter);
}

/* Style submenu links to match main menu */
.header-right .mainmenu .has-droupdown .submenu li a {
    font-weight: 500;
    padding: 5px 20px;
    font-size: 14px;
    display: block;
    color: var(--color-body);
    margin: 0 10px;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hover and active states for submenu links */
.header-right .mainmenu .has-droupdown .submenu li a:hover {
    color: var(--color-primary) !important;
    background: var(--color-darker);
}

.header-right .mainmenu .has-droupdown .submenu li a.active {
    color: var(--color-primary) !important;
    background: var(--color-darker);
}

/* Ensure the button itself remains properly styled */
.header-right .mainmenu > li > a.btn-default {
    display: inline-block;
}

/* Ensure dropdown indicator shows correctly on the button */
.header-right .mainmenu .has-droupdown > a::after {
    content: none;
}

/* Add a small caret icon */
.header-right .mainmenu .has-droupdown > a.btn-default::after {
    content: " ↓";
    margin-left: 5px;
    display: inline-block;
    font-size: 14px;
}

/* Fix padding and alignment issues */
.header-right .mainmenu {
    margin: 0;
    padding: 0;
}

.header-right .mainmenu li {
    list-style: none;
}

/* Ensure submenu appears on hover */
.header-right .mainmenu li.has-droupdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

/* Light mode variations - exact match to main menu */
body.active-light-mode .header-right .mainmenu .has-droupdown .submenu {
    background: var(--color-white);
    color: #fff; /* White background in light mode */
}

body.active-light-mode .header-right .mainmenu .has-droupdown .submenu li a {
    color: #65676b; /* Exact color from main menu */
}

body.active-light-mode .header-right .mainmenu .has-droupdown .submenu li a:hover,
body.active-light-mode .header-right .mainmenu .has-droupdown .submenu li a.active {
    background: #d8d8d8; /* Exact hover background from main menu */
    color: var(--color-primary);
}

/* ========================================
   Team Card Flip Styles - Clean Architecture
   ======================================== */

/* ========================================
   Section 1: Flip Mechanics
   ======================================== */

.team-card-flip {
    perspective: 1000px;
    -webkit-perspective: 1000px;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    transition: transform 0.6s;
    -webkit-transition: transform 0.6s;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Trigger flip on hover and keyboard focus */
.team-card-flip:hover .team-card-inner,
.team-card-flip:focus .team-card-inner,
.team-card-flip:focus-within .team-card-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

/* ========================================
   Section 2: Front/Back Card Positioning
   ======================================== */

.team-card-front,
.team-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    overflow: hidden;
}

.team-card-front {
    z-index: 2;
    transform: rotateY(0deg) translateZ(1px);
    -webkit-transform: rotateY(0deg) translateZ(1px);
}

/* Hide back card by default (iOS fix) */
.team-card-back {
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

/* Show back card when flipped */
.team-card-flip:hover .team-card-back,
.team-card-flip:focus .team-card-back,
.team-card-flip:focus-within .team-card-back {
    opacity: 1;
    visibility: visible;
}

/* Ensure front card fills entire space with no overflow */
.team-card-front .rainbow-team {
    height: 100%;
    margin: 0;
    padding: 0;
}

.team-card-front .rainbow-team .inner {
    height: 100%;
    margin: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Ensure thumbnail and content don't add extra spacing */
.team-card-front .rainbow-team .inner .thumbnail {
    margin: 0 0 20px 0;
}

.team-card-front .rainbow-team .inner .content {
    margin: 0;
    padding: 0;
}

.team-card-back {
    transform: rotateY(180deg) translateZ(0);
    -webkit-transform: rotateY(180deg) translateZ(0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    background: linear-gradient(145deg, rgba(15, 15, 17, 0.95) 0%, rgba(30, 30, 35, 0.95) 100%);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   Section 3: Bio Content Typography
   ======================================== */

.bio-content {
    text-align: left;
    width: 100%;
    max-width: 100%;
}

/* Header with name and profile picture */
.bio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 15px;
}

.bio-header .name-section {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.bio-content .name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--color-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bio-profile-pic {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
    flex-shrink: 0;
}

.bio-content .role {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    margin-top: 8px;
    display: block;
    color: var(--color-primary);
}

.bio-content .bio-text {
    font-size: 14px;
    line-height: 1.6;
    color: #e5e5e5;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
    text-align: justify;
}

/* ========================================
   Section 4: Info Hint Icon (First Card Only)
   ======================================== */

.info-hint-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.info-hint-icon i {
    font-size: 14px;
    color: var(--color-white);
}

/* Hover state */
.team-card-flip:hover .info-hint-icon {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

/* Light mode variant */
body.active-light-mode .info-hint-icon {
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

body.active-light-mode .info-hint-icon i {
    color: #181818;
}

body.active-light-mode .team-card-flip:hover .info-hint-icon {
    background: rgba(0, 0, 0, 0.12);
}

/* ========================================
   Section 5: LinkedIn Icon (Inline with Name)
   ======================================== */

.linkedin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(0, 119, 181, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 119, 181, 0.3);
    text-decoration: none;
    margin-right: 10px;
    flex-shrink: 0;
}

.linkedin-icon i {
    font-size: 16px;
    color: #0077b5;
}

/* Hover state */
.linkedin-icon:hover {
    background: rgba(0, 119, 181, 0.25);
    border-color: rgba(0, 119, 181, 0.5);
    transform: scale(1.1);
}

.linkedin-icon:hover i {
    color: #005885;
}

/* Light mode variant */
body.active-light-mode .linkedin-icon {
    background: rgba(0, 119, 181, 0.1);
    border: 1px solid rgba(0, 119, 181, 0.2);
}

body.active-light-mode .linkedin-icon:hover {
    background: rgba(0, 119, 181, 0.2);
}

/* ========================================
   Section 5: Mobile Bio Expansion
   ======================================== */

.mobile-bio-expand {
    margin-top: 15px;
    padding: 20px;
    background: rgba(15, 15, 17, 0.5);
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
    backdrop-filter: blur(5px);
    animation: slideDown 0.3s ease-out;
}

.mobile-bio-expand .bio-text-mobile {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-body);
    margin: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Section 6: Light Mode Theme Variations
   ======================================== */

body.active-light-mode .team-card-back {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 240, 245, 0.95) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.active-light-mode .bio-content .name {
    color: var(--color-primary);
}

body.active-light-mode .bio-content .bio-text {
    color: #333333;
}

body.active-light-mode .mobile-bio-expand {
    background: rgba(255, 255, 255, 0.8);
    border-left-color: var(--color-primary);
}

/* ========================================
   Section 7: Mobile/Tablet Responsive
   ======================================== */

@media (max-width: 768px) {
    /* Disable 3D flip on mobile - use tap-to-expand instead */
    .team-card-flip:hover .team-card-inner,
    .team-card-flip:focus .team-card-inner,
    .team-card-flip:focus-within .team-card-inner {
        transform: none;
    }

    /* Hide info hint icon on mobile */
    .info-hint-icon {
        display: none;
    }

    /* Adjust minimum card height for mobile screens */
    .team-card-inner {
        min-height: 350px;
    }
}

/* ========================================
   Section 8: Accessibility
   ======================================== */

.team-card-flip:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 10px;
}

.team-card-flip:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

/* Smooth transitions for all interactive elements */
.team-card-flip * {
    transition-timing-function: ease-in-out;
}

/* ========================================
   3-Column Brand Logo Grid
   ======================================== */

.brand-style-3col {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px 10px;
}

.brand-style-3col li {
    flex-basis: calc(33.33% - 10px);
    text-align: center;
}

.brand-style-3col li a {
    display: block;
}

.brand-style-3col li a img {
    opacity: 0.8;
    transition: 0.3s;
    max-height: 50px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-style-3col li:hover a img {
    opacity: 1;
}

/* Mobile responsiveness for 3-column grid */
@media only screen and (max-width: 767px) {
    .brand-style-3col li {
        flex-basis: calc(50% - 10px); /* 2 columns on mobile */
    }
}

@media only screen and (max-width: 479px) {
    .brand-style-3col li {
        flex-basis: 100%; /* 1 column on small phones */
    }
}

/* ========================================
   Coming Soon Item (for future products)
   ======================================== */

.coming-soon-item {
    color: #999;
    cursor: default;
    opacity: 0.7;
    font-weight: 500;
    padding: 5px 20px;
    font-size: 14px;
    display: block;
    margin: 0 10px;
}

/* Footer variant */
.footer-link .coming-soon-item {
    padding: 0;
    margin: 0;
}

/* Mobile menu variant */
.mega-menu-item .coming-soon-item {
    padding: 5px 0;
    margin: 0;
}

/* ========================================
   Footer Spacing Adjustments
   ======================================== */

.rainbow-footer .footer-top {
    padding-top: 50px;
    padding-bottom: 30px;
}

.rainbow-footer .rainbow-footer-widget {
    margin-bottom: 20px;
}

.rainbow-footer .rainbow-footer-widget .title {
    margin-bottom: 15px;
}

.rainbow-footer .footer-link li {
    margin-bottom: 8px;
}

/* ========================================
   SEO Heading Hierarchy - Preserve Visual Styles
   ======================================== */

/* Section subtitle - replaces decorative H4 tags */
.section-subtitle {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

/* Semantic H2 styled like original H4 */
h2.section-title {
    font-size: 36px;
    line-height: 1.3;
    font-weight: 700;
}

/* Semantic H3 styled like original H5/H6 */
h3.card-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

/* Counter box title styling (for metrics) */
.count-box .counter-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

/* ========================================
   Skip Navigation Link (Accessibility)
   ======================================== */

.skip-link {
    position: fixed;
    top: 0;
    left: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body.active-light-mode .skip-link {
    background: var(--color-primary);
    color: #fff;
}

/* ========================================
   Norvia.ai Page Enhanced Styling
   ======================================== */

/* ----------------------------------------
   1. Norvia Card - Multi-Layer Shadow + Glass Morphism
   ---------------------------------------- */

.norvia-card {
    background: linear-gradient(145deg, rgba(15, 15, 17, 0.8) 0%, rgba(25, 25, 30, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.norvia-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 8px 12px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 40px 80px rgba(0, 0, 0, 0.25),
        0 0 60px rgba(56, 150, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

body.active-light-mode .norvia-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 245, 250, 0.95) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 20px rgba(0, 0, 0, 0.08),
        0 20px 40px rgba(0, 0, 0, 0.1);
}

body.active-light-mode .norvia-card:hover {
    box-shadow:
        0 8px 12px rgba(0, 0, 0, 0.08),
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 40px 80px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(56, 150, 255, 0.08);
}

/* ----------------------------------------
   2. Feature List Hover Micro-Interactions
   ---------------------------------------- */

.norvia-feature-item {
    transition: all 0.3s ease;
    padding-left: 35px;
    position: relative;
    padding: 12px 0;
    padding-left: 35px;
}

.norvia-feature-item::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    transition: all 0.3s ease;
}

.norvia-feature-item:hover {
    transform: translateX(8px);
    color: var(--color-primary);
}

.norvia-feature-item:hover::before {
    transform: scale(1.3);
}

/* ----------------------------------------
   3. Icon Hover Pulse Effect
   ---------------------------------------- */

.norvia-icon {
    transition: all 0.3s ease;
}

.norvia-icon:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 12px rgba(56, 150, 255, 0.5));
}

/* ----------------------------------------
   4. Button Shine/Glow Effect
   ---------------------------------------- */

.btn-norvia {
    position: relative;
    overflow: hidden;
}

.btn-norvia::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-norvia:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* ----------------------------------------
   5. Enhanced Testimonial Cards - Glass Morphism
   ---------------------------------------- */

.testimonial-quote-enhanced {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.testimonial-quote-enhanced::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 100px;
    font-family: Georgia, serif;
    color: var(--color-primary);
    opacity: 0.12;
    line-height: 1;
    pointer-events: none;
}

.testimonial-quote-enhanced:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-quote-enhanced blockquote {
    font-style: italic;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-body);
    position: relative;
    z-index: 1;
}

.testimonial-quote-enhanced .author {
    font-weight: 600;
    color: var(--color-heading);
    position: relative;
    z-index: 1;
}

body.active-light-mode .testimonial-quote-enhanced {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.01) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.active-light-mode .testimonial-quote-enhanced blockquote {
    color: #333333;
}

body.active-light-mode .testimonial-quote-enhanced .author {
    color: #181818;
}

body.active-light-mode .testimonial-quote-enhanced::before {
    opacity: 0.15;
}

/* ----------------------------------------
   6. Industry Tag Hover Effects
   ---------------------------------------- */

.industry-tag-enhanced {
    background: rgba(99, 99, 99, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    color: var(--color-body);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.industry-tag-enhanced:hover {
    transform: scale(1.05);
    background: rgba(56, 150, 255, 0.1);
    border-color: rgba(56, 150, 255, 0.3);
    color: var(--color-primary);
}

.industry-tag-enhanced i {
    transition: transform 0.3s ease;
}

.industry-tag-enhanced:hover i {
    transform: scale(1.2);
}

/* ----------------------------------------
   7. Stat/Counter Box Styling
   ---------------------------------------- */

.norvia-stat {
    text-align: center;
    padding: 30px;
}

.norvia-stat-number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), #00d4aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.norvia-stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-top: 10px;
}

/* ----------------------------------------
   8. Typewriter Effect Container
   ---------------------------------------- */

.typewriter-container {
    min-height: 1.6em;
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--color-primary);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ----------------------------------------
   9. Floating Animation for Hero Image
   ---------------------------------------- */

.norvia-float {
    animation: norvia-float 4s ease-in-out infinite;
}

@keyframes norvia-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* ----------------------------------------
   10. Tab Container Enhanced Styling
   ---------------------------------------- */

.norvia-tabs {
    border-radius: 20px;
    overflow: hidden;
}

.norvia-tabs .nav-link.tab-button {
    transition: all 0.3s ease;
}

.norvia-tabs .nav-link.tab-button:hover:not(.active) {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
}

.norvia-tabs .nav-link.tab-button.active {
    box-shadow: 0 0 20px rgba(56, 150, 255, 0.15);
}

/* ----------------------------------------
   11. Benefit Card Enhanced Hover
   ---------------------------------------- */

.norvia-benefit-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(145deg, rgba(15, 15, 17, 0.6) 0%, rgba(25, 25, 30, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.norvia-benefit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 150, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.norvia-benefit-card .icon {
    transition: all 0.3s ease;
}

.norvia-benefit-card:hover .icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(56, 150, 255, 0.4));
}

body.active-light-mode .norvia-benefit-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(245, 245, 250, 0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ----------------------------------------
   12. CTA Section Background Animation
   ---------------------------------------- */

.norvia-cta-bg {
    position: relative;
    overflow: hidden;
}

.norvia-cta-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 150, 255, 0.05) 0%, transparent 60%);
    animation: pulse-glow 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* ----------------------------------------
   13. Norvia Hero - Simplified Styling
   ---------------------------------------- */

/* Formerly label - muted, smaller text */
.formerly-label {
    font-size: 11px;
    font-weight: 400;
    color: #888;
    margin-left: 6px;
    opacity: 0.7;
}

/* In navigation dropdowns */
.submenu .formerly-label,
.mega-menu-item .formerly-label {
    display: block;
    font-size: 10px;
    margin-left: 0;
    margin-top: 2px;
}

body.active-light-mode .formerly-label {
    color: #999;
}

/* Hero tagline - key value proposition */
.hero-tagline {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-primary);
    margin-top: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}

body.active-light-mode .hero-tagline {
    color: var(--color-primary);
}

/* ----------------------------------------
   14. Norvia Hero Spacing
   ---------------------------------------- */

.norvia-hero .section-title .subtitle {
    margin-bottom: 12px;
}

.norvia-hero .title {
    margin-bottom: 15px;
}

/* Compact description */
.norvia-hero .description {
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
}

/* ========================================
   Contact Page Card Improvements
   ======================================== */

/* Equal height cards for the top three info cards */
.rainbow-contact-address .row {
    display: flex;
    flex-wrap: wrap;
}

.rainbow-contact-address .row > [class*="col-"] {
    display: flex;
}

.rainbow-contact-address .rainbow-address {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.rainbow-contact-address .rainbow-address .inner {
    flex: 1;
}

/* Location card next to form - stretch to fill height */
.rainbow-contact-area .row.mt--40 > .col-lg-5 {
    display: flex;
}

.rainbow-contact-area .row.mt--40 > .col-lg-5 .rainbow-address {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Regions list spacing improvements */
.rainbow-address .region-list {
    margin-top: 10px;
}

.rainbow-address .region-list li {
    padding: 4px 0;
}

/* Mobile responsiveness for contact cards */
@media (max-width: 991px) {
    .rainbow-contact-area .row.mt--40 > .col-lg-5 {
        margin-top: 30px;
    }
}

/* ========================================
   Contact Page - Norvia-Style Cards
   ======================================== */

.contact-info-card {
    position: relative;
    background: rgba(30, 35, 45, 0.6);
    border: 1px solid rgba(56, 150, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    padding: 30px;
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 150, 255, 0.3);
    box-shadow: 0 8px 32px rgba(56, 150, 255, 0.12);
}

.contact-info-card .card-icon {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.contact-info-card .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-info-card .card-text {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
}

.contact-info-card .card-text a {
    color: inherit;
    transition: color 0.3s ease;
}

.contact-info-card .card-text a:hover {
    color: var(--color-primary);
}

/* Regions list inside card */
.contact-info-card .region-list {
    text-align: left;
    display: inline-block;
}

.contact-info-card .region-list ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.contact-info-card .region-list li {
    padding: 4px 0;
    font-size: 14px;
}

.contact-info-card .region-list li i {
    color: var(--color-primary);
    margin-right: 8px;
}

/* Light mode variant */
body.active-light-mode .contact-info-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(56, 150, 255, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

body.active-light-mode .contact-info-card:hover {
    box-shadow: 0 8px 32px rgba(56, 150, 255, 0.1);
}

/* Contact form full-width styling */
.contact-form-wrapper {
    background: rgba(30, 35, 45, 0.6);
    border: 1px solid rgba(56, 150, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
    transition: border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form-wrapper .contact-form-1 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form-wrapper .contact-form-1 .form-group:last-child {
    margin-top: auto;
}

.contact-form-wrapper:hover {
    border-color: rgba(56, 150, 255, 0.25);
}

body.active-light-mode .contact-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(56, 150, 255, 0.2);
}

/* Sidebar cards container - match form height */
.contact-sidebar-cards {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-sidebar-cards .contact-info-card {
    display: flex;
    align-items: center;
}

.contact-sidebar-cards .contact-info-card .card-split-layout {
    width: 100%;
}

.contact-sidebar-cards .contact-info-card .card-vertical-section {
    width: 100%;
}

/* Contact page main layout - equal height columns */
.rainbow-contact-area .row.row--15 {
    display: flex;
    flex-wrap: wrap;
}

.rainbow-contact-area .row.row--15 > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Contact card row spacing */
.contact-cards-row {
    margin-bottom: 30px;
}

/* Vertical divider for combined card */
.card-divider {
    width: 1px;
    height: 120px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(56, 150, 255, 0.3),
        transparent
    );
}

/* Horizontal divider for mobile */
.card-divider-horizontal {
    height: 1px;
    width: 80%;
    margin: 0 auto;
    background: linear-gradient(
        to right,
        transparent,
        rgba(56, 150, 255, 0.3),
        transparent
    );
}

/* Locations list styling */
.locations-list {
    text-align: center;
}

.locations-list .location-item {
    margin-bottom: 15px;
    line-height: 1.5;
}

.locations-list .location-item:last-child {
    margin-bottom: 0;
}

.locations-list .location-item strong {
    color: var(--color-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact list styling (phone/email) */
.contact-list {
    text-align: center;
}

.contact-list .contact-item {
    margin-bottom: 15px;
    line-height: 1.5;
}

.contact-list .contact-item:last-child {
    margin-bottom: 0;
}

.contact-list .contact-item strong {
    color: var(--color-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card split layout for sidebar cards */
.card-split-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.card-split-section {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-split-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(56, 150, 255, 0.3),
        transparent
    );
    margin: 20px 0;
}

/* Compact card variant for sidebar - expands to fill space */
.contact-info-card-compact {
    padding: 25px 20px;
    flex: 1;
}

/* Extra small card for customers globally - natural height */
.contact-info-card-small {
    padding: 15px 20px;
    flex: 0 0 auto;
    height: auto;
}

.contact-info-card-small .card-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.contact-info-card-small .card-title {
    font-size: 15px;
    margin-bottom: 8px;
}

.contact-info-card-small .card-text {
    font-size: 13px;
}

/* Force centering for region list in small card */
.contact-info-card-small .region-list-inline {
    display: flex;
    justify-content: center;
    width: 100%;
    align-self: stretch;
}

.contact-info-card-small .region-list-inline ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-info-card-compact .card-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.contact-info-card-compact .card-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.contact-info-card-compact .card-text {
    font-size: 13px;
}

/* Compact region list (two columns) */
.region-list-compact ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    text-align: left;
    display: grid;
    grid-template-columns: auto auto;
    gap: 6px 25px;
}

.region-list-compact li {
    padding: 3px 0;
    font-size: 13px;
}

.region-list-compact li i {
    color: var(--color-primary);
    margin-right: 6px;
    font-size: 12px;
}

/* Vertical card layout */
.card-vertical-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.card-vertical-section {
    padding: 20px 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Tight padding for customers card */
.card-vertical-section-tight {
    padding: 5px 10px 0;
}

/* Compact bottom padding for location section */
.card-vertical-section-compact {
    padding-bottom: 5px;
}

/* More spacing for phone/email in combined card */
.card-vertical-layout .card-split-layout {
    padding: 10px 0 15px;
}

.card-vertical-layout .card-split-layout .card-split-section {
    padding: 15px 10px;
}

/* Horizontal divider for vertical layout */
.card-horizontal-divider {
    width: 80%;
    height: 1px;
    margin: 5px auto;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(56, 150, 255, 0.3),
        transparent
    );
}

/* Inline region list (single row) */
.region-list-inline {
    width: 100%;
    text-align: center;
}

.region-list-inline ul {
    list-style: none;
    padding-left: 0;
    margin: 0 auto;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
}

.region-list-inline li {
    padding: 3px 0;
    font-size: 14.5px;
    white-space: nowrap;
}

/* Mobile: stack card sections vertically */
@media (max-width: 767px) {
    .card-split-layout {
        flex-direction: column;
    }

    .card-split-divider {
        width: 80%;
        height: 1px;
        margin: 20px auto;
        background: linear-gradient(
            to right,
            transparent,
            rgba(56, 150, 255, 0.3),
            transparent
        );
    }
}

/* Mobile responsiveness for contact info cards */
@media (max-width: 767px) {
    .contact-info-card {
        margin-bottom: 20px;
    }

    .contact-form-wrapper {
        padding: 25px;
    }
}