/* 
   Lync Design System - Global Overhaul
   Version: 2.0 (Component-Based)
   Theme: Lync Blue / Clean SaaS
*/

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

:root {
    /* Colors - Brand Green/Teal (Updated) */
    --brand-gradient: linear-gradient(135deg, #078558 0%, #095e5c 100%);
    --brand-primary: #07876f;
    --brand-primary-hover: #00A299;
    --brand-primary-soft: #E6FFFA;

    /* Neutrals */
    --white: white;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Semantic */
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Bootstrap Overrides */
    --bs-primary: #07876f;
    --bs-primary-rgb: 7, 135, 111;
    --bs-link-color: #07876f;
    --bs-link-hover-color: #065a4a;

    /* Legacy Mappings (Maintain compatibility) */
    --primary-color: var(--brand-primary);
    --primary-hover: var(--brand-primary-hover);
    --surface-color: var(--gray-50);
    --surface-hover: var(--brand-primary-soft);
    --text-main: var(--gray-900);
    --text-body: var(--gray-600);
    --text-muted: var(--gray-400);
    --border-color: var(--gray-200);

    /* 8px Spacing System */
    --space-8: 0.5rem;
    --space-16: 1rem;
    --space-24: 1.5rem;
    --space-32: 2rem;
    --space-40: 2.5rem;
    --space-48: 3rem;
    --space-64: 4rem;
    --space-80: 5rem;
    --space-120: 7.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-blue: 0 10px 15px -3px rgba(0, 102, 255, 0.15);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* 2. Base Reset */
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--white);
    color: var(--gray-700);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}




/* 48px */
h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-top: 16px;
    margin-bottom: 20px;
}

/* 36px */
h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* 24px */
h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* 20px */

/* Global Link Styles - Override Bootstrap Blue */
a {
    color: var(--gray-600);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-primary);
}

.hover-primary:hover {
    color: var(--brand-primary) !important;
}

/* Footer Social Links */
footer a,
.footer a {
    color: var(--gray-500);
}

footer a:hover,
.footer a:hover {
    color: var(--brand-primary);
}

p {
    margin-bottom: 16px;
}

.lead {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 65ch;
}

.text-center .lead {
    max-width: 600px;
}

/* Container Widths */
.container-narrow {
    max-width: 800px;
}

.container-medium {
    max-width: 900px;
}

/* 3. Reusable Components */

/* Badges */
.badge-product {
    display: inline-flex;
    padding: 6px 16px;
    background: var(--brand-primary-soft);
    color: var(--brand-primary-hover);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
}

/* Buttons */
.btn-lync {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    gap: 8px;
}

.btn-lync-primary {
    background: var(--brand-gradient);
    color: var(--white);
    border: none;
}

.btn-lync-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 239, 140, 0.3);
    color: var(--white);
}

.btn-lync-secondary {
    background-color: var(--white);
    color: var(--gray-900);
    border-color: var(--gray-200);
}

.btn-lync-secondary:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-2px);
}

/* Hero Section Split Layout */
.hero-split {
    padding-top: 50px;
    padding-bottom: 50px;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-content {
    animation: fadeIn 0.8s ease-out forwards;
}

.hero-content .lead {
    margin-top: 24px;
}

.hero-content .d-flex {
    margin-top: 40px;
}

.hero-visual {
    position: relative;
    /* border-radius: var(--radius-lg);*/
    /* box-shadow: var(--shadow-xl); */
    overflow: hidden;
    transition: transform 0.3s ease;
}

.hero-visual:hover {
    transform: scale(1.02);
}

/* Global Section Spacing */
section {
    margin: 60px 0;
}

section:first-of-type {
    margin-top: 0;
}

section.bg-surface,
section.bg-white,
section.bg-surface-alt {
    margin: 0;
    padding: 50px 0;
}

.section-lync {
    padding-top: 40px;
    padding-bottom: 40px;
}

.section-lync-lg {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Problem Cards */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.problem-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.problem-card:hover {
    border-color: var(--brand-primary-hover);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.problem-card h4 {
    margin-bottom: 16px;
}

.problem-card p {
    margin-bottom: 24px;
}

.problem-card a {
    margin-top: 24px;
}

.problem-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--brand-primary-hover);
}

/* Breadcrumbs */
.breadcrumb-lync {
    display: flex;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: var(--space-16);
}

.breadcrumb-lync a {
    color: var(--gray-500);
    transition: color 0.2s;
}

.breadcrumb-lync a:hover {
    color: var(--brand-primary-hover);
}

/* Feature List (Solution) */
.feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: var(--space-24);
}

.feature-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Timeline */
.timeline-lync {
    position: relative;
    max-width: 800px;
}

.timeline-step {
    padding-left: var(--space-48);
    position: relative;
    padding-bottom: var(--space-40);
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--brand-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

/* Accordion (FAQ) */
.accordion-lync {
    max-width: 800px;
}

.accordion-lync .accordion-item {
    border: none;
    background: var(--gray-50);
    margin-bottom: var(--space-16);
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}

.accordion-lync .accordion-button {
    background: transparent;
    color: var(--gray-900);
    font-weight: 600;
    padding: var(--space-24);
    box-shadow: none !important;
}

.accordion-lync .accordion-button:not(.collapsed) {
    color: var(--brand-primary);
}

.accordion-lync .accordion-body {
    padding: 0 var(--space-24) var(--space-24);
    color: var(--gray-600);
}

/* Final CTA */
.cta-banner {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    padding: 40px 20px;
    color: var(--white);
    text-align: center;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    color: white;
    margin-bottom: 24px;
}

.cta-banner p {
    margin-bottom: 40px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Page Fixes */
.home-page .problem-grid {
    gap: 48px 32px;
}

.high-performance-section {
    margin: 80px 0 !important;
}

/* Footer Category & Link Spacing */
footer {
    padding-top: 40px !important;
    padding-bottom: 20px !important;
}

footer .row.g-4 {
    --bs-gutter-x: 24px;
    gap: 24px;
}

footer h6 {
    margin-bottom: 20px;
}

footer li {
    margin-bottom: 12px;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-split {
        text-align: center;
    }

    .section-lync {
        padding-top: var(--space-48);
        padding-bottom: var(--space-48);
    }
}

/* 4. Mega Menu & Navigation Refinement */
.mega-menu {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-24);
    min-width: 600px;
    margin-top: 15px;
    border: 1px solid var(--gray-100);
}

.mega-menu-item {
    display: flex;
    gap: 16px;
    padding: var(--space-16);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    margin-bottom: 4px;
}

.mega-menu-item:hover {
    background-color: var(--brand-primary-soft);
    transform: translateX(4px);
}

.mega-menu-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--gray-50);
    color: var(--brand-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.mega-menu-item:hover .mega-menu-icon {
    background: var(--brand-primary);
    color: white;
}

.mega-menu-item .text-dark {
    color: var(--gray-900) !important;
}

.mega-menu-item .text-muted-custom {
    color: var(--gray-500) !important;
    display: block;
}

.dropdown-toggle::after {
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.navbar-nav .nav-link {
    color: var(--gray-700);
    padding: 0.5rem 0 !important;
    transition: color 0.2s;
}

@media (min-width: 992px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
    }
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--brand-primary) !important;
}

/* Header Action Buttons */
.btn-icon-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--gray-600);
    transition: all 0.2s;
    border: 1px solid transparent;
    background: transparent;
    padding: 0;
}

.btn-icon-nav:hover {
    background: var(--gray-100);
    color: var(--brand-primary);
}

.btn-signin {
    color: var(--gray-700);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-signin:hover {
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
}

.btn-signup {
    background: var(--brand-primary);
    color: white !important;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.btn-signup:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.navbar-actions {
    display: flex;
    align-items: center;
}

/* =========================================
   Houdini Ring Particles – Final CSS
   ========================================= */

@supports (background: paint(something)) {

    /* Animatable custom properties */
    @property --animation-tick {
        syntax: '<number>';
        inherits: false;
        initial-value: 0;
    }

    @property --ring-radius {
        syntax: '<number>';
        inherits: false;
        initial-value: 200;
    }

    @property --ring-x {
        syntax: '<number>';
        inherits: false;
        initial-value: 50;
    }

    @property --ring-y {
        syntax: '<number>';
        inherits: false;
        initial-value: 50;
    }

    @property --ring-interactive {
        syntax: '<number>';
        inherits: false;
        initial-value: 0;
    }

    /* Animations */
    @keyframes ripple {
        from {
            --animation-tick: 0;
        }

        to {
            --animation-tick: 1;
        }
    }

    @keyframes ring {
        from {
            --ring-radius: 150;
        }

        to {
            --ring-radius: 250;
        }
    }

    /* Ring container */
    #welcome {
        /* Ring configuration */
        --ring-radius: 200;
        --ring-thickness: 600;

        --particle-count: 80;
        --particle-rows: 25;
        --particle-size: 2;
        --particle-color: #07876f;

        --particle-min-alpha: 0.1;
        --particle-max-alpha: 1;

        --seed: 200;

        /* Mouse interaction defaults */
        --ring-x: 50;
        --ring-y: 50;
        --ring-interactive: 0;

        /* Houdini painter */
        background-image: paint(ring-particles), linear-gradient(135deg, var(--brand-primary-soft) 0%, white 100%);

        /* Motion */
        animation:
            ripple 6s linear infinite,
            ring 6s ease-in-out infinite alternate;

        /* Smooth return when mouse leaves */
        transition:
            --ring-x 3s ease,
            --ring-y 3s ease;

        width: 100%;
    }
}

/* =========================================
   Horizontal Scroll Services Section
   ========================================= */

.horizontal-services-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    padding: 50px 0;
    overflow: visible;
}

.scroll-container {
    width: 100%;
    overflow: visible;
}

.scroll-wrapper {
    display: flex;
    will-change: transform;
}

.scroll-card {
    flex-shrink: 0;
    width: 65vw;
    max-width: 700px;
    margin-right: 2rem;
    padding: 0 1rem;
}

.scroll-card-inner {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 60vh;
    height: auto;
}

.scroll-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-primary-hover);
}

.scroll-number {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 6rem;
    font-weight: 900;
    color: var(--gray-100);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1;
    user-select: none;
    z-index: 0;
}

.scroll-card-inner svg {
    color: var(--brand-primary-hover);
    margin-bottom: 16px;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1;
}

.scroll-service-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative;
    z-index: 1;
}

.scroll-service-desc {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.scroll-service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-primary-hover);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.scroll-service-link:hover {
    gap: 12px;
    color: var(--brand-primary-hover);
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-card {
        width: 90vw;
    }

    .scroll-card-inner {
        padding: 40px 30px;
    }

    .scroll-number {
        font-size: 5rem;
        top: 15px;
        right: 20px;
    }

    .scroll-service-title {
        font-size: 2rem;
    }

    .scroll-service-desc {
        font-size: 1rem;
    }
}

/* =========================================
   Top Bar & Translation Widget
   ========================================= */
.top-bar {
    background-color: var(--gray-50);
    padding: 2px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--gray-100);
    position: relative;
    z-index: 1040;
    overflow: visible !important;
}

.language-selector {
    position: relative;
    z-index: 2000;
}

.language-selector .btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    border: none;
    box-shadow: none;
}

.language-selector .btn:hover {
    color: var(--brand-primary);
}

.language-selector .dropdown-menu {
    border-radius: 12px;
    padding: 0.5rem;
    z-index: 2100;
}

.language-selector .dropdown-item {
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    color: var(--gray-700);
}

.language-selector .dropdown-item:hover {
    background-color: var(--brand-primary-soft);
    color: var(--brand-primary);
}

.language-selector .fi {
    width: 1.2rem;
    line-height: 1;
    border-radius: 2px;
}

.language-selector .lang-text {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.header-divider {
    height: 1px;
    background-color: var(--gray-200);
    opacity: 0.5;
    width: 100%;
}

#google_translate_element {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Hide Google Translate UI elements */
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-menu-frame,
.goog-te-menu2,
.goog-te-banner,
.skiptranslate,
.goog-te-combo {
    display: none !important;
}



.goog-te-gadget {
    font-family: 'Inter', sans-serif !important;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.goog-te-menu-value {
    color: var(--gray-600) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 !important;
}

.goog-te-menu-value:hover {
    color: var(--brand-primary-hover) !important;
    text-decoration: none !important;
}

.goog-te-menu-value span {
    border-left: none !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

/* Hide Google branding */
.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
}

/* Hide top banner */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

#goog-gt-tt {
    display: none !important;
}

/* =========================================
   Pricing Tables
   ========================================= */
.pricing-section {
    padding: var(--space-80) 0;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-48) var(--space-32);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-16);
}

.price-box {
    margin-bottom: var(--space-32);
}

.price-box .currency {
    font-size: 1.5rem;
    font-weight: 700;
    vertical-align: top;
    margin-right: 4px;
}

.price-box .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.price-box .period {
    color: var(--gray-500);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-40);
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.pricing-features li i {
    color: var(--brand-primary);
    flex-shrink: 0;
}

/* Auth Pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    padding: var(--space-40) 20px;
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-48);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-xl);
}

/* Checkout Page */
.checkout-summary {
    background: var(--brand-primary-soft);
    border-radius: var(--radius-md);
    padding: var(--space-32);
}

.payment-method-box {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-24);
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method-box.active {
    border-color: var(--brand-primary);
    background: var(--brand-primary-soft);
}