/* 
  VIMS Registry - Editorial Layout + PRO Color Grading
  Font: Roboto (Global)
  Backgrounds: Elegant Radial Gradients & Glassmorphism
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,300;1,400&display=swap');

:root {
    /* -----------------------------------------------------------------
       1. FOUNDATION ACADEMIC BLUE
       ----------------------------------------------------------------- */
    --color-blue-dark: #072A4E;
    --color-blue-base: #0B3C6D;
    --color-blue-light: #1F5F99;
    --gradient-blue: linear-gradient(135deg, var(--color-blue-base), var(--color-blue-light));

    /* -----------------------------------------------------------------
       2. TEAL INSTITUTIONAL BLUE
       ----------------------------------------------------------------- */
    --color-teal-dark: #0B7E9A;
    --color-teal-base: #0FA3C8;
    --color-teal-light: #38BDD8;
    --gradient-teal: linear-gradient(135deg, var(--color-teal-base), var(--color-teal-light));

    /* -----------------------------------------------------------------
       3. MEDICAL SUPPORT GREEN
       ----------------------------------------------------------------- */
    --color-green-dark: #3C8C40;
    --color-green-base: #4CAF50;
    --color-green-light: #6FCF73;
    --gradient-green: linear-gradient(135deg, var(--color-green-base), var(--color-green-light));

    /* -----------------------------------------------------------------
       4. CHARCOAL CLINICAL BLACK
       ----------------------------------------------------------------- */
    --color-charcoal-dark: #121314;
    --color-charcoal-base: #1C1E1F;
    --color-charcoal-light: #2A2C2E;
    --gradient-charcoal: linear-gradient(180deg, var(--color-charcoal-dark), var(--color-charcoal-base));

    --n-border: rgba(255, 255, 255, 0.08);

    /* Metrics */
    --nav-height: 90px;
    --max-w: 1140px;
    --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);

    /* Fonts - GLOBAL ROBOTO */
    --f-main: 'Roboto', sans-serif;

    --overlay-grad: linear-gradient(180deg, rgba(7, 42, 78, 0.7), rgba(18, 19, 20, 0.9));
}

/* DARK THEME */
[data-theme="dark"] {
    --bg-page: #121314;
    /* Rich Radial Gradient using Blue Dark and Charcoal */
    --bg-page-grad: radial-gradient(circle at 50% 0%, var(--color-blue-dark), var(--color-charcoal-dark) 80%);
    --bg-surface: rgba(255, 255, 255, 0.03);
    --line-color: rgba(255, 255, 255, 0.08);

    --txt-main: #F2F4F5;
    --txt-sec: #B0B8BF;
    --txt-grad: linear-gradient(90deg, #F2F4F5, #B0B8BF);

    --bg-nav: rgba(18, 19, 20, 0.85);
    /* More translucent */
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.4);

    --overlay-grad: linear-gradient(180deg, rgba(7, 42, 78, 0.7), rgba(18, 19, 20, 0.9));
}

/* LIGHT THEME */
[data-theme="light"] {
    --bg-page: #FFFFFF;
    /* Subtle Radial using Teal Light (very low opacity) and White */
    --bg-page-grad: radial-gradient(circle at 50% 0%, rgba(56, 189, 216, 0.15), #FFFFFF 70%);
    --bg-surface: rgba(255, 255, 255, 0.6);
    --line-color: rgba(11, 60, 109, 0.08);

    --txt-main: var(--color-blue-dark);
    --txt-sec: #4A5568;
    --txt-grad: var(--gradient-blue);

    --bg-nav: rgba(255, 255, 255, 0.85);
    --shadow-card: 0 20px 40px rgba(11, 60, 109, 0.08);

    --overlay-grad: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.9));
}

/* Utilities for Responsive Display of Sliders */
.show-desktop {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 900px) {
    .show-desktop {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }
}

/* ---------------------------------------------------------------------
   BASE RESET
   --------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

body {
    background: var(--bg-page-grad);
    /* Use the Gradient Variable */
    background-attachment: fixed;
    color: var(--txt-main);
    font-family: var(--f-main);
    /* GLOBAL ROBOTO */
    line-height: 1.8;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: color 0.5s var(--ease-lux), background 0.5s ease;
}

img,
svg {
    display: block;
}

/* ---------------------------------------------------------------------
   TYPOGRAPHY
   --------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
    font-family: var(--f-main);
    /* APPLIED TO HEADINGS */
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: var(--txt-grad);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h1 {
    font-size: 4.5rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0;
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }
}

p {
    font-size: 1.05rem;
    color: var(--txt-sec);
    font-weight: 300;
    max-width: 65ch;
    margin-bottom: 1.5rem;
}

/* ---------------------------------------------------------------------
   COMPONENTS
   --------------------------------------------------------------------- */
.label-micro {
    font-family: var(--f-main);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: var(--gradient-teal);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------------------------------------------------------------------
   NAVBAR
   --------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-color);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-card);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--f-main);
    font-size: 1.5rem;
    font-weight: 400;
    background: var(--gradient-blue);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span {
    font-style: italic;
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--txt-sec);
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-teal);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--txt-main);
}

.nav-link:hover::after {
    width: 100%;
}

.theme-switch {
    background: transparent;
    border: none;
    color: var(--txt-sec);
    cursor: pointer;
    transition: color 0.3s;
}

.theme-switch:hover {
    color: var(--txt-main);
}

/* ---------------------------------------------------------------------
   HERO
   --------------------------------------------------------------------- */
/* ---------------------------------------------------------------------
   HERO SLIDER
   --------------------------------------------------------------------- */
.hero-slider-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.hero-slides-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bs-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide.active .slide-bs-layer {
    transform: scale(1);
}

/* Dark Gradient Overlay for Readability */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-grad);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: var(--nav-height);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s 0.3s var(--ease-lux), transform 0.8s 0.3s var(--ease-lux);
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--gradient-teal);
    border-color: transparent;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--color-teal-base);
    border-color: var(--color-teal-base);
    transform: scale(1.2);
}

/* Original Styles */
/* Original Styles */
.hero h1 {
    margin-bottom: 2rem;
}

.hero h1 em {
    font-weight: 300;
    font-style: italic;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2.5rem;
    height: 54px;
    border: 1px solid var(--color-green-base);
    background: transparent;
    color: var(--color-green-base);
    font-family: var(--f-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: all 0.4s var(--ease-lux);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .btn {
    color: #f0f0f0;
    border-color: var(--color-green-base);
}

[data-theme="light"] .btn {
    color: var(--color-blue-dark);
    border-color: var(--color-green-dark);
}

.btn:hover {
    background: var(--gradient-green);
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------------------
   SPLIT LAYOUTS (NEW)
   --------------------------------------------------------------------- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-visual {
    flex: 0.8;
}

.split-content {
    flex: 1.2;
}

.feature-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    transition: transform 0.6s var(--ease-lux);
    filter: brightness(0.9) contrast(1.1);
}

.feature-img:hover {
    transform: scale(1.02);
    filter: brightness(1);
}

@media (max-width: 900px) {

    .split-layout,
    .split-layout.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .split-visual,
    .split-content {
        flex: 1;
        width: 100%;
    }
}

/* ---------------------------------------------------------------------
   SECTIONS & GRID
   --------------------------------------------------------------------- */
.section-pad {
    padding: 8rem 0;
}

.bg-subtle {
    background: var(--bg-surface);
}

.section-header {
    margin-bottom: 5rem;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--color-teal-base);
    transition: transform 0.5s var(--ease-lux);
}

.section-header:hover {
    transform: translateX(5px);
}

.registry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-color);
    border-bottom: 1px solid var(--line-color);
}

.stat-item {
    padding: 4rem 2rem;
    text-align: center;
    border-right: 1px solid var(--line-color);
    transition: all 0.4s ease;
    cursor: default;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.stat-val {
    font-family: var(--f-main);
    font-size: 3.5rem;
    font-weight: 300;
    background: var(--gradient-blue);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-lbl {
    font-family: var(--f-main);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--txt-sec);
}

.split-content .registry-grid {
    border-top: 1px solid var(--line-color);
    border-bottom: 1px solid var(--line-color);
}

.split-content .stat-item {
    padding: 2rem 1rem;
}

.split-content .stat-val {
    font-size: 2.5rem;
}

/* ---------------------------------------------------------------------
   PILLARS & WORKFLOW
   --------------------------------------------------------------------- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
}

.pillar {
    position: relative;
    padding: 3rem 2rem;
    /* Increased padding */
    border-top: 1px solid var(--line-color);
    transition: transform 0.3s ease;
    /* Optional: Ensure text wraps nicely */
}

.pillar:hover {
    transform: translateY(-5px);
    background: var(--bg-surface);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-card);
}

.pillar::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-teal);
    transition: width 0.4s ease;
}

.pillar:hover::before {
    width: 100%;
}

.pillar h4 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    color: var(--txt-main);
}

.process-list {
    display: flex;
    justify-content: space-between;
    counter-reset: p-count;
    margin-top: 4rem;
    gap: 2rem;
    /* precise gap */
}

.process-step {
    flex: 1;
    border-top: 1px solid var(--line-color);
    padding: 2.5rem 2rem;
    /* Increased padding */
    position: relative;
    transition: all 0.4s ease;
}

.process-step::before {
    counter-increment: p-count;
    content: "0" counter(p-count);
    font-family: var(--f-main);
    font-size: 0.85rem;
    background: var(--gradient-teal);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.process-step:hover {
    border-top-color: var(--color-teal-base);
    background: linear-gradient(180deg, rgba(15, 163, 200, 0.05) 0%, transparent 100%);
    transform: translateY(-5px);
}

/* ---------------------------------------------------------------------
   FOOTER & ANIMATIONS
   --------------------------------------------------------------------- */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--line-color);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.f-brand {
    max-width: 300px;
}

.f-brand p {
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0.7;
}

.f-links h5 {
    font-family: var(--f-main);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--color-teal-base);
}

.f-links ul li {
    margin-bottom: 0.75rem;
}

.f-links a {
    font-size: 0.9rem;
    color: var(--txt-sec);
    transition: color 0.2s;
}

.f-links a:hover {
    color: var(--txt-main);
}

.footer-btm {
    border-top: 1px solid var(--line-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--txt-sec);
    opacity: 0.6;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-lux), transform 0.8s var(--ease-lux);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 24px;
    height: 1px;
    background: var(--txt-main);
}

@media (max-width: 900px) {
    .registry-grid {
        grid-template-columns: 1fr;
        border: none;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--line-color);
        padding: 3rem 0;
    }

    .process-list {
        flex-direction: column;
        gap: 3rem;
    }

    .process-step {
        border-top: none;
        border-left: 1px solid var(--line-color);
        padding: 0 0 0 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-page);
        flex-direction: column;
        padding: 4rem 2rem;
        transition: 0.4s var(--ease-lux);
        border-top: 1px solid var(--line-color);
    }

    .nav-menu.active {
        right: 0;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    h1 {
        font-size: 2.8rem;
    }
}