/* ==============================================
   REMOVED: Old custom navbar/footer mobile overrides
   These conflicted with Bootstrap navbar from vs-custom.css
   ============================================== */

/* Small mobile fine-tuning handled in main 480px breakpoint below */

        /* ==============================================
           REMOVED: CSS Reset (* selector), body, body::before,
           .header, .nav-container, .logo img, .nav-buttons,
           .nav-btn, .menu-toggle — all conflicted with
           Bootstrap navbar/footer from vs-custom.css.

           Page-specific background/overlay: use a wrapper
           div if needed instead of body-level styles.
           ============================================== */

        /* Page-specific background (scoped to this page) */
        body.lca-home-page {
            background: url('https://mps-cdn-dev.s3.eu-west-1.amazonaws.com/assets/images/VS-MPS-Home.gif') center top/cover no-repeat fixed;
        }

        body.lca-home-page::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(20, 30, 40, 0.72);
            z-index: 0;
            pointer-events: none;
        }

        /* Main Content — z-index 1 to sit above body::before overlay (z-index 0) */
        .main-content {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            z-index: 1;
            width: 100%;
            box-sizing: border-box;
            overflow: auto;
            padding: 40px 20px 30px;
            min-height: calc(100vh - 70px);
        }

        /* Ensure universal header/footer sit above the page overlay */
        body.lca-home-page header {
            position: sticky;
            top: 0;
            z-index: 100;
        }
        body.lca-home-page footer {
            position: relative;
            z-index: 100;
        }

        .welcome-text {
            text-align: center;
            color: white;
            margin-bottom: 20px;
            z-index: 10;
            padding: 0 20px;
            animation: fadeInDown 0.8s ease-out;
        }

        .welcome-text h1 {
            font-size: clamp(1.4rem, 3.5vw, 2.6rem);
            margin-bottom: 12px;
            text-shadow: 0 3px 12px rgba(0,0,0,0.3);
            font-weight: 800;
            letter-spacing: -0.5px;
            line-height: 1.3;
        }

        .welcome-text .subtitle {
            font-size: clamp(0.9rem, 1.8vw, 1.15rem);
            color: rgb(116, 197, 181);
            margin-bottom: 18px;
            font-weight: 500;
            letter-spacing: 0.3px;
            line-height: 1.6;
            max-width: 650px;
            margin-left: auto;
            margin-right: auto;
        }

        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .highlight {
            color: rgb(116, 197, 181);
        }

        .highlight-blue {
            color: #74c5b5;
        }

        .get-in-touch {
            background: linear-gradient(135deg, #74c5b5, #00bfae);
            color: #fff;
            padding: 12px 32px;
            border: none;
            border-radius: 30px;
            font-size: clamp(0.85rem, 1.2vw, 1rem);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            margin-top: 15px;
            box-shadow: 0 4px 16px rgba(0,191,174,0.25);
            letter-spacing: 0.3px;
        }

        .get-in-touch:hover {
            background: linear-gradient(135deg, #335596, #1e3c72);
            color: #fff;
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(51,85,150,0.3);
            text-decoration: none;
        }

        /* ==============================================
           ANIMATION CONTAINER & ORBITING ELEMENTS
           All sizes use px for predictability.
           Container = 460px, orbit = 175px.
           ============================================== */
        .animation-container {
            position: relative;
            width: 460px;
            height: 460px;
            margin: 30px auto;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: visible;
            animation: fadeInUp 1s ease-out 0.3s both;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* --- CENTER: CO2 gear + static label --- */
        .center-element {
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 150px;
            height: 150px;
            border-radius: 50%;
            background: none;
            z-index: 100;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .center-element:hover {
            transform: translate(-50%, -50%) scale(1.06);
            box-shadow: 0 8px 24px rgba(0,191,174,0.3);
            z-index: 150;
        }

        .center-element .gear-img {
            width: 125%;
            height: 125%;
            position: absolute;
            border-radius: 50%;
            object-fit: contain;
            animation: rotate-img 16s linear infinite;
        }

        .center-static {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 90%;
            height: 90%;
            transform: translate(-50%, -50%);
            object-fit: contain;
            border-radius: 50%;
            z-index: 60;
        }

        /* --- ORBITING ELEMENTS: gear + icon --- */
        .rotating-element {
            position: absolute;
            width: 90px;
            height: 90px;
            display: flex;
            justify-content: center;
            align-items: center;
            transform-origin: center;
            padding: 0;
            box-sizing: border-box;
            cursor: pointer;
            transition: box-shadow 0.3s ease;
            border-radius: 50%;
        }

        .rotating-element:hover {
            box-shadow: 0 8px 24px rgba(0,191,174,0.3);
            z-index: 150;
        }

        .gear-leaf-wrapper {
            width: 100%;
            height: 100%;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: transform 0.3s ease;
        }

        .rotating-element:hover .gear-leaf-wrapper {
            transform: scale(1.08);
        }

        /* Outer gears on orbiting elements */
        .rotating-element .gear-img {
            width: 145%;
            height: 145%;
            border-radius: 50%;
            object-fit: contain;
            animation: rotate-img 16s linear infinite;
        }

        /* --- INNER ICONS inside gears --- */
        /* Images are pale/faded by design — NO white bg, use contain, boost brightness */
        .inner-img, .leaf-img-static {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 60px;
            height: 60px;
            object-fit: cover;
            transform: translate(-50%, -50%);
            z-index: 2;
            border-radius: 50%;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }

        /* Leaf slightly smaller */
        .leaf-img-static {
            width: 52px;
            height: 52px;
        }

        /* Ship */
        .element-4 .inner-img {
            width: 68px;
            height: 68px;
        }

        /* Infinity */
        .element-3 .inner-img[alt="Circularity"] {
            width: 66px;
            height: 66px;
        }

        /* --- COUNTER-ROTATION on inner icons --- */
        .element-1 .leaf-img-static {
            animation: counter-rotate-img 16s linear infinite;
        }

        .element-3 .inner-img {
            animation: counter-rotate-img 16s linear infinite;
            animation-delay: -8s;
        }

        .element-2 .inner-img {
            animation: counter-rotate-img 16s linear infinite;
            animation-delay: -4s;
        }

        .element-4 .inner-img {
            animation: counter-rotate-img 16s linear infinite;
            animation-delay: -12s;
        }

        /* --- ORBIT POSITIONS (4 elements, 175px radius) --- */
        .element-1 {
            top: 50%; left: 50%;
            transform: translate(-50%, -50%) rotate(0deg) translateX(175px);
            animation: rotate 16s linear infinite;
        }
        .element-2 {
            top: 50%; left: 50%;
            transform: translate(-50%, -50%) rotate(90deg) translateX(175px);
            animation: rotate 16s linear infinite;
            animation-delay: -4s;
        }
        .element-3 {
            top: 50%; left: 50%;
            transform: translate(-50%, -50%) rotate(180deg) translateX(175px);
            animation: rotate 16s linear infinite;
            animation-delay: -8s;
        }
        .element-4 {
            top: 50%; left: 50%;
            transform: translate(-50%, -50%) rotate(270deg) translateX(175px);
            animation: rotate 16s linear infinite;
            animation-delay: -12s;
        }

        /* --- KEYFRAMES --- */
        @keyframes rotate {
            0%   { transform: translate(-50%, -50%) rotate(0deg)   translateX(175px); }
            100% { transform: translate(-50%, -50%) rotate(360deg) translateX(175px); }
        }

        @keyframes rotate-img {
            0%   { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes counter-rotate-img {
            0%   { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(-360deg); }
        }

        /* Info Box — wide, animated gradient border */
        .info-box {
            background: rgba(255,255,255,0.97);
            border: none;
            border-radius: 16px;
            padding: clamp(20px, 3vmin, 35px) clamp(25px, 4vmin, 45px);
            max-width: 850px;
            width: 92%;
            font-size: clamp(0.9rem, 1.3vw, 1.05rem);
            color: #1e3c72;
            text-align: center;
            z-index: 100;
            margin-top: 25px;
            line-height: 1.7;
            animation: fadeInUp 1s ease-out 0.6s both;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(30,60,114,0.15), 0 0 0 2px rgba(116,197,181,0.3);
        }

        /* Animated gradient top border */
        .info-box::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #335596, #74c5b5, #00bfae, #74c5b5, #335596);
            background-size: 200% 100%;
            animation: infoBoxBorder 3s linear infinite;
        }

        @keyframes infoBoxBorder {
            0% { background-position: 0% 0; }
            100% { background-position: 200% 0; }
        }

        .info-box h4 {
            color: #335596;
            margin-bottom: 12px;
            font-size: clamp(1.05rem, 1.6vw, 1.3rem);
            font-weight: 800;
            letter-spacing: -0.3px;
        }

        .info-box p {
            margin: 0;
            color: #3a5070;
        }

        /* ==============================================
           REMOVED: .footer, html/body height, body flex layout,
           .main-content flex override, .footer-container,
           .footer-links, .footer-social — all conflicted with
           universal footer from vs-custom.css.
           ============================================== */

        /* Popup Styles */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .popup-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .popup-box {
            display: flex;
            align-items: center;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 24px rgba(30,60,114,0.18);
            padding: 20px;
            max-width: 90%;
            width: 500px;
            min-height: 120px;
            font-size: 16px;
            color: #1e3c72;
            position: relative;
            transform: translateY(20px);
            transition: all 0.3s ease;
        }

        .popup-overlay.active .popup-box {
            transform: translateY(0);
        }

        .popup-img {
            width: 80px;
            height: 80px;
            object-fit: contain;
            border-radius: 10px;
            margin-right: 20px;
            background: #f3f7fa;
            box-shadow: 0 2px 8px rgba(0,191,174,0.22);
        }

        .popup-close {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            color: #1e3c72;
            cursor: pointer;
            font-weight: bold;
            background: none;
            border: none;
        }

        /* ==========================================
           RESPONSIVE BREAKPOINTS
           ========================================== */
        @media (max-width: 768px) {
            .main-content {
                padding: 25px 15px 20px;
            }
            .animation-container {
                width: 340px;
                height: 340px;
            }
            .center-element {
                width: 110px;
                height: 110px;
            }
            .rotating-element {
                width: 68px;
                height: 68px;
            }
            .inner-img, .leaf-img-static {
                width: 46px;
                height: 46px;
            }
            .leaf-img-static { width: 40px; height: 40px; }
            .element-4 .inner-img { width: 54px; height: 54px; }
            .element-3 .inner-img[alt="Circularity"] { width: 50px; height: 50px; }
            @keyframes rotate {
                0%   { transform: translate(-50%, -50%) rotate(0deg)   translateX(130px); }
                100% { transform: translate(-50%, -50%) rotate(360deg) translateX(130px); }
            }
            .info-box { width: 95%; }
        }

        @media (max-width: 480px) {
            .main-content {
                padding: 20px 10px 15px;
            }
            .welcome-text h1 { font-size: 1.25rem; }
            .animation-container {
                width: 280px;
                height: 280px;
            }
            .center-element { width: 85px; height: 85px; }
            .rotating-element { width: 55px; height: 55px; }
            .inner-img, .leaf-img-static { width: 38px; height: 38px; }
            .leaf-img-static { width: 33px; height: 33px; }
            .element-4 .inner-img { width: 44px; height: 44px; }
            .element-3 .inner-img[alt="Circularity"] { width: 40px; height: 40px; }
            @keyframes rotate {
                0%   { transform: translate(-50%, -50%) rotate(0deg)   translateX(105px); }
                100% { transform: translate(-50%, -50%) rotate(360deg) translateX(105px); }
            }
            .popup-box { flex-direction: column; text-align: center; }
            .popup-img { margin-right: 0; margin-bottom: 15px; }
        }

/* ==============================
   DARK MODE (body.vs-dark)
   ============================== */
body.vs-dark {
  background-color: #0f1724;
  color: #c8d4e0;
}

/* REMOVED: body.vs-dark .header, .nav-btn dark mode — old custom navbar */

body.vs-dark .main-content,
body.vs-dark main,
body.vs-dark section {
  background-color: #0f1724;
  color: #c8d4e0;
}

body.vs-dark h1, body.vs-dark h2, body.vs-dark h3,
body.vs-dark h4, body.vs-dark h5, body.vs-dark h6 {
  color: #e8eef4;
}

body.vs-dark .highlight-blue {
  color: #74c5b5;
}

body.vs-dark .highlight {
  color: #9cd8cc;
}

body.vs-dark p, body.vs-dark .subtitle {
  color: #aab7c4;
}

body.vs-dark a {
  color: #74c5b5;
}

body.vs-dark .welcome-text {
  color: #c8d4e0;
}

body.vs-dark .popup-overlay {
  background: rgba(0,0,0,0.85);
}

body.vs-dark .popup-content {
  background: #1a2332;
  color: #c8d4e0;
  border-color: #2a3a4a;
}

body.vs-dark .popup-desc {
  color: #aab7c4;
}

body.vs-dark .feature-section,
body.vs-dark .dashboard-section {
  background: #131d2b;
}

body.vs-dark .feature-section:nth-child(even) {
  background: #0f1724;
}

body.vs-dark .feature-text h2 {
  color: #e8eef4;
}

body.vs-dark .feature-text p {
  color: #aab7c4;
}

/* REMOVED: body.vs-dark .footer dark mode — handled by vs-custom.css */

body.vs-dark input,
body.vs-dark textarea,
body.vs-dark select {
  background: #1a2332;
  color: #c8d4e0;
  border-color: #2a3a4a;
}

body.vs-dark input:focus,
body.vs-dark textarea:focus,
body.vs-dark select:focus {
  border-color: #74c5b5;
}

body.vs-dark .form-group label {
  color: #c8d4e0;
}

/* REMOVED: body.vs-dark .menu-toggle span — old custom navbar */

body.vs-dark .vs-theme-toggle {
  color: #74c5b5;
  border-color: #74c5b5;
}

body.vs-dark .vs-theme-icon-sun { display: none; }
body.vs-dark .vs-theme-icon-moon { display: inline-block !important; }

/* Theme toggle icon switching */
.vs-theme-icon-moon { display: none; }
body:not(.vs-dark) .vs-theme-icon-sun { display: inline-block; }

/* REMOVED: @media 900px dark mode .nav-buttons/.nav-btn — old custom navbar */


/* ============================================================
   MOBILE RESPONSIVE HARDENING (2026-04) — VSLCA Home
   ============================================================ */

@media (max-width: 767px) {
  .hero, .hero-section, .animation-container {
    padding: 36px 14px !important;
    min-height: auto !important;
  }
  .hero h1, .animation-container h1 {
    font-size: clamp(1.4rem, 5.5vw, 2rem) !important;
    line-height: 1.22 !important;
  }
  .hero p, .animation-container p {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
}

@media (max-width: 767px) {
  .col-md-6, .col-md-4, .col-md-8 {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-bottom: 22px !important;
  }
  .col-md-6[style*="padding-right:30px"],
  .col-md-6[style*="padding-left:30px"],
  .col-md-6[style*="padding-right: 30px"],
  .col-md-6[style*="padding-left: 30px"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  section[style*="padding:70px"],
  section[style*="padding: 70px"] {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }
}

@media (max-width: 767px) {
  h2[style*="font-size:2rem"],
  h3[style*="font-size:1.5rem"],
  h2[style*="font-size: 2rem"],
  h3[style*="font-size: 1.5rem"] {
    font-size: clamp(1.2rem, 4.5vw, 1.7rem) !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 767px) {
  p[style*="max-width:700px"],
  p[style*="max-width: 700px"] {
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  a[style*="font-size:0.95rem"],
  a[style*="font-size: 0.95rem"] {
    font-size: 13px !important;
  }
}

@media (max-width: 575px) {
  .row.footer-links-grid > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 14px !important;
  }
}

@media (max-width: 767px) {
  body { overflow-x: clip !important; max-width: 100vw; }
  img, video, iframe { max-width: 100% !important; height: auto !important; }
  .container, .container-fluid {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}
/* ============================================================
   END MOBILE RESPONSIVE HARDENING — VSLCA Home
   ============================================================ */
