:root {
    --fluid-h2: clamp(1.25rem, 2vw + 1rem, 2rem);
    --fluid-h5: clamp(1rem, 1.2vw + 0.5rem, 1.25rem);
    --fluid-body: clamp(0.875rem, 0.5vw + 0.75rem, 1rem);

    /* Light Mode Colors */
    --nm-bg: #e6e7ee;
    --nm-light: #ffffff;
    --nm-dark: #b8b9be;
    --nm-text: #44476a;
    --nm-accent-green: #198754;
    --nm-accent-red: #dc3545;
    --nm-accent-warning: #e0ac10;
    --td-hover-bg: #ffffff;

    /* Floating Shadow Variables - Light Mode */
    --nm-float-outer-light: rgba(255, 255, 255, 0.25);
    --nm-float-outer-dark: rgba(255, 255, 255, 1); /* Secondary light lift */
    --nm-float-inner-light: rgb(255, 255, 255);
    --nm-float-inner-dark: rgb(208, 209, 213);

    /* Edge Shadow & Border Variables - Light Mode */
    --nm-inset-light: rgba(255, 255, 255, .9);
    --nm-inset-dark: rgba(17, 17, 26, .25);
    --nm-brdr-light: #f3f7fa;
    --nm-brdr-dark: #d1d9e6;

    /* Text Shadow Variables - Light Mode */
    --txt-shadow-light: #ffffff;
    --txt-shadow-dark: #c7c8cd;

    --transition-speed: 0.3s;
    --header-height: 75px;
  }

  /* Dark Mode Colors (Enhanced Charcoal Depth) */
  [data-theme="dark"] {
    --nm-bg: #2d323e;
    --nm-light: #383e4d; /* Sharp highlight for depth */
    --nm-dark: #1b1f27;  /* Deep shadow to make it pop */
    --nm-text: #ffffff;  /* White text for clarity */
    --nm-accent-green: #00ff89;
    --nm-accent-red: #d60015;
    --nm-accent-warning: #ffc107;
    --td-hover-bg: #12151a;

    /* Floating Shadow Variables - Dark Mode */
    --nm-float-outer-light: rgba(0, 0, 0, 0.4);   /* Deep outer shadow */
    --nm-float-outer-dark: rgba(18, 21, 26, 0.8); /* Dark base layer */
    --nm-float-inner-light: #3a4151; /* Soft top-left inner highlight */
    --nm-float-inner-dark: #12151a; /* Deep bottom-right inner shadow */

    /* Edge Shadow & Border Variables - Dark Mode */
    --nm-inset-light: rgba(255, 255, 255, 0.05); /* Very faint rim light */
    --nm-inset-dark: rgba(0, 0, 0, 0.5); /* Deeper crease */
    --nm-brdr-light: #353b48; /* Subtle dark separator */
    --nm-brdr-dark: #1e222b; /* Deeper dark separator */

    /* Text Shadow Variables - Dark Mode */
    --txt-shadow-light: #3a4151; /* Subtle top-left highlight for white text */
    --txt-shadow-dark: #12151a;  /* Deep bottom-right sink for white text */
  }

body {
    background-color: var(--nm-bg);
    color: var(--nm-text);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: var(--fluid-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background var(--transition-speed), color var(--transition-speed);
}


/* Neumorphic Utilities */
.custom_up_box_shadow { box-shadow: 6px 6px 12px var(--nm-dark), -6px -6px 12px var(--nm-light); border-radius: 20px; border: none; }
.custom_down_box_shadow { box-shadow: inset 4px 4px 8px var(--nm-dark), inset -4px -4px 8px var(--nm-light); border-radius: 20px; background: var(--nm-bg); border: none; }
.custom_text_shadow { text-shadow: -1px -1px 1px var(--nm-light), 1px 1px 1px var(--nm-dark) !important; }

/* Fixed Header Logic */
header { height: var(--header-height); position: fixed; top: 0; width: 100%; z-index: 1000; background: var(--nm-bg); transition: transform 0.4s ease, box-shadow 0.3s ease; display: flex; align-items: center; }
.header-hidden { transform: translateY(-100%); }
.header-shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* FIX: Header visibility for Desktop */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
    .navbar-nav {
        flex-direction: row;
    }
}

/* Responsive Nav Menu Styling */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--nm-bg);
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-radius: 0 0 20px 20px;
    }
}

/* Fade/Reveal Animation */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* FIX: Infinite Marquee without gaps */
.marquee-container { overflow: hidden; padding: 40px 0; width: 100%; }
.marquee-content {
    display: flex;
    width: max-content;
    gap: 2rem;
    animation: scroll 35s linear infinite;
}
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 1rem)); }
}
.marquee-content:hover { animation-play-state: paused; }
.service-card { min-width: 350px; text-decoration: none; color: inherit; padding: 2rem; transition: 0.3s; cursor: pointer; }
.service-card:hover { transform: translateY(-10px); }

/* UI Elements */
#theme-toggle { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 2000; }
section { padding: 100px 0; min-height: 80vh; }
.profile-img-placeholder, .logo-placeholder { background: var(--nm-bg); display: flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; }
.profile-img-placeholder { width: 220px; height: 220px; margin: 0 auto;padding: .5rem; }
.logo-placeholder { width: 45px; height: 45px;padding: 0.4rem; }

.price-card { transition: 0.3s; border-top: 4px solid transparent; }
.price-card:hover { transform: scale(1.03); }
.featured-price { border-top-color: var(--nm-accent-green); }

footer { background: var(--nm-bg); padding: 60px 0; border-top: 1px solid var(--nm-dark); }

.contact-link { text-decoration: none; color: inherit; transition: 0.3s; }
.contact-link:hover { color: var(--nm-accent-green); }






.custom_floating_border
  {
    box-shadow:  var(--nm-float-outer-light) 0px 50px 100px -20px, var(--nm-float-outer-dark) 0px 30px 60px -30px, inset 6px 6px 10px var(--nm-float-inner-light), inset -6px -6px 10px var(--nm-float-inner-dark) !important;
    transition: box-shadow var(--transition-speed);
  }


  /* --- ADAPTIVE CUSTOM BORDERS --- */
  .custom_border_box_shadow_top_bottom {
    box-shadow: inset 0 -12px 10px -10px var(--nm-inset-light), inset 0 12px 10px -10px var(--nm-inset-dark);
    border-bottom: .0625rem solid var(--nm-brdr-light);
    border-top: .0625rem solid var(--nm-brdr-dark);
    transition: box-shadow var(--transition-speed), border var(--transition-speed);
  }

  .custom_border_box_shadow_left_right {
    box-shadow: inset 12px 0 10px -10px var(--nm-inset-dark), inset -12px 0 10px -10px var(--nm-inset-light);
    border-right: .0625rem solid var(--nm-brdr-light);
    border-left: .0625rem solid var(--nm-brdr-dark);
    transition: box-shadow var(--transition-speed), border var(--transition-speed);
  }

  .custom_border_box_shadow_bottom {
    box-shadow: inset 0 -12px 10px -10px var(--nm-inset-light);
    border-bottom: .0625rem solid var(--nm-brdr-light);
    transition: box-shadow var(--transition-speed), border var(--transition-speed);
  }
  /* --- ADAPTIVE CUSTOM BORDERS --- */

  .custom_text_color
  {
    color: var(--nm-text) !important;
  }

  .custom_text_success
  {
    color: var(--nm-accent-green);
  }
  .custom_text_danger {
    color: var(--nm-accent-red);
  }

  .custom_text_warning
  {
    color: var(--nm-accent-warning) !important;
  }

  .warning_text_shadow
  {
    text-shadow: -1px -1px 1px #ffe28c, 1px 1px 1px #866609 !important;
  }

  .danger_text_shadow
  {
    text-shadow: -1px -1px 1px #be3f4b, 1px 1px 1px #71121c !important;
  }

  .primary_text_shadow
  {
    text-shadow: -1px -1px 1px #6f7cff, 1px 1px 1px #091bcb !important;
  }

  .success_text_shadow
  {
    text-shadow: -1px -1px 1px #46e39a, 1px 1px 1px #044c2b !important;
  }






.btn {
    transition: box-shadow 0.15s ease, transform 0.08s ease;
    border: none !important;
  }

  .btn:hover{
    box-shadow: inset 2px 2px 5px var(--nm-dark), inset -3px -3px 7px var(--nm-light) !important;
  }

  .btn:active {
    transform: scale(0.96);
    box-shadow: inset 2px 2px 5px var(--nm-dark), inset -3px -3px 7px var(--nm-light) !important;
  }

  .btn:focus-visible{
    box-shadow: inset 2px 2px 5px var(--nm-dark), inset -3px -3px 7px var(--nm-light) !important;
  }


  .btn.custom_btn_success:hover {
    color: var(--nm-accent-green) !important;
  }
  .btn.custom_btn_success:active {
    color: var(--nm-accent-green) !important;
  }

  .btn.custom_btn_danger:hover{
    color: var(--nm-accent-red) !important;
  }
  .btn.custom_btn_danger:active{
    color: var(--nm-accent-red) !important;
  }

  .btn.custom_text_danger:hover{
    color: var(--nm-accent-red) !important;
  }
  .custom_text_danger:hover{
    color: var(--nm-accent-red) !important;
  }
  .btn.custom_text_danger:active{
    color: var(--nm-accent-red) !important;
  }

  .btn.custom_text_warning:hover
  {
    color: var(--nm-accent-warning) !important;
  }
  .btn.custom_text_warning:active
  {
    color: var(--nm-accent-warning) !important;
  }
  /* LIGHT FLASH OVERLAY */
  .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255,255,255,0.35) !important;
    opacity: 0;
    pointer-events: none;
  }

  /* FLASH TRIGGER */
  .btn:active::after {
    animation: clickFlash 0.18s ease;
  }

  /* FLASH ANIMATION */
  @keyframes clickFlash {
    0%   { opacity: 0; }
    40%  { opacity: 1; }
    100% { opacity: 0; }
  }




  input.form-control {
    background-color: var(--nm-bg);
    caret-color: var(--nm-accent-green);
    color: var(--nm-text) !important;
    border: none;
  }

  input::placeholder {
    color: var(--nm-text);
    opacity: 0.6;
  }

  a:focus,
  select:focus,
  textarea:focus,
  input:focus {
    font-weight: 700 !important;
  }

  .form-control:focus
  {
    background-color: var(--nm-bg) !important;
    caret-color: var(--nm-accent-green) !important;
    color: var(--nm-text) !important;
    border: none;
    outline: none;
    box-shadow: inset 4px 4px 8px var(--nm-dark), inset -4px -4px 8px var(--nm-light); border-radius: 20px; background: var(--nm-bg);
  }
  /* All inputs and textareas */
  ::placeholder {
    color: #8b8b8b !important;
    opacity: 1;
  }

  .inner
  {
    box-shadow: inset 4px 4px 8px var(--nm-dark), inset -4px -4px 8px var(--nm-light);
    border-radius: 15px !important;
  }
  .badge_recommended
  {
    color: #000 !important;
    text-shadow: -1px -1px 1px #00ff89, 1px 1px 1px #009953 !important;
    background-color: #00ce6f !important;
    border-radius: 1rem;
  }
