/* ============================================================= IMPORTS & VARIABLES*/
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap");

:root {
  --color-background: #cbd5e1;
  --color-background-alt: #8ec6ff;
  --color-border-active: #173db6;
  --color-border-default: #94a3b8;
  --color-highlight: #004DA5;
  --color-primary: #144be1;
  --color-primary-active: #19388f;
  --color-text-default: #0f172a;
  --color-text-muted: #FFFFFF;
  --font-family-body: "Quicksand", sans-serif;
  --font-family-display: "Quicksand", sans-serif;
}

/* ===================================
   BASE STYLES
=================================== */
* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

/* Global layout + background + typography */
html,
body {
  margin: 0;
  height: 100%;
  font-family: var(--font-family-body);
  background: linear-gradient(to bottom, #010813, #121A2E);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  -webkit-font-smoothing: antialiased;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

[type="checkbox"],
[type="radio"],
[type="range"] {
  appearance: none;
  flex-shrink: 0;
  user-select: none;
}
/* ============================================================= LOGOS */
/* ============================================================= INDEX PAGE LOGO */
.index-logo {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
  object-fit: contain;
}

/* ============================================================= SERVICE PAGES LOGO */
.home-logo {
  width: 400px;
  max-width: 100%;
  margin-bottom: 1rem;
    }

/* ============================================================= HEADER */
header {
  background: #010813;
  padding: 1em 2em;
  border-bottom: 2px solid #004DA5;
}

header h1 {
  margin: 0;
}

/* ============================================================= HOME PAGE(S) BUTTONS */
.home-pb {
    flex: 1;
    display: block;
    text-align: center;
    padding: 0.8rem;
    border: 2px solid #1f2a3f;
    border-radius: 10px;
    color: #99A0AE;
    font-weight: 600;
    text-decoration: none;
    background: radial-gradient(circle at top left, rgba(0,145,228,0.15),rgba(12,19,40,0.95));
    box-shadow: 0 5px 14px rgba(0,0,0,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

/* ============================================================= HOME PAGE(S) BUTTONS HOVER*/
.home-pb:hover {
    background: rgba(0,145,228,0.12);
    border-color: #0091E4;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
    transform: translateY(-1px);
    color: #ffffff;
}

/* ============================================================= HOME PAGE(S) BUTTONS POSITION*/
.home-buttons .home-pb {
    flex: 0 0 auto;
    width: 180px;
    height: 50px;
}

/* ============================================================= HOME PAGE(S) FADE UP*/
    @keyframes fadeUp {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .fade-up {
        opacity: 0;
        animation: fadeUp 0.8s ease-out forwards;
    }

    .delay-1 { animation-delay: 0.2s; }
    .delay-2 { animation-delay: 0.4s; }

/* ============================================================= HOME PAGE(S) SERVICE CARD*/
    .service-card {
        position: relative;
        flex: 1;
        background: radial-gradient(circle at top left, rgba(0,145,228,0.15), rgba(12,19,40,0.95));
        border-radius: 12px;
        padding: 0.9rem 1rem;
        border: 2px solid #1f2a3f;
        box-sizing: border-box;
        height: 175px;
        min-height: 175px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        box-shadow: 0 8px 18px rgba(0,0,0,0.25);
        transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    }

/* ============================================================= HOME PAGE(S) SERVICE CARD HOVER*/
    .service-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.35);
        border-color: #0091E4;
    }

/* ============================================================= HOME PAGE(S) SERVICE CARD HOVER IMAGE EFFECT*/
    .hover-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 0.35s ease-in-out;
        pointer-events: none;
        border-radius: 12px;
        z-index: 1;
    }

    .service-card:hover .hover-image {
        opacity: 1;
    }

    .service-card:hover h3,
    .service-card:hover p {
        opacity: 0;
        transition: opacity 0.25s ease-in-out;
    }

    .service-card h3 {
        text-align: center;
        margin-top: -0.2rem;
        margin-bottom: 1rem;
        color: #99A0AE;
        font-size: 1.1rem;
        font-weight: 600;
        z-index: 2;
    }

    .service-card p {
        font-size: 0.95rem;
        margin: 0;
        z-index: 2;
        color: #99A0AE;
    }

/* ============================================================= SERVICES PAGE CONTENT*/
    .services-content {
        max-width: 1400px;
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .services-content p {
        color: #99A0AE;
    }
  
    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);   /* 3 columns */
        gap: 1.5rem;
        margin-top: 2.0rem;
        align-items: stretch;
    }

    /* 🔽 Responsive adjustments */
    @media (max-width: 900px) {
        .services-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 600px) {
        .services-grid {
            grid-template-columns: 1fr;
        }
    }

/* ============================================================= SERVICES PAGE SYNCNEX CARD HOVER & BUTTON*/
    .syncnex-card .hover-link {
      position: absolute;
      inset: 0;
      z-index: 5;            /* above the hover image */
      background: transparent;

      /* IMPORTANT: don't block clicks when not hovering */
      pointer-events: none;
    }

    /* Only make it clickable when hovering Card 4 */
    .syncnex-card:hover .hover-link {
      pointer-events: auto;
      cursor: pointer;
    }

  /* Staggered overlay should use full width and left/right alignment like totals cards */
.hover-overlay--staggered{
  align-items: stretch;    /* important: rows become full width */
  text-align: left;
  padding: 1.2rem;
  gap: 0.6rem;
  box-sizing: border-box;
}

/* Header inside overlay */
.hover-overlay--staggered .syncnex-total-header{
  justify-content: center;
}

.hover-overlay--staggered .syncnex-total-title{
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #99A0AE;
}

/* Rows inside overlay */
.hover-overlay--staggered .syncnex-staggered-row{
  width: 100%;
  padding: 0 2rem;              /* overrides 0 2rem from totals layout */
  margin-top: 0.6rem;
}


    /* Services cards must be the positioning context */
.service-card{
  position: relative;
  overflow: hidden;
}

/* Hover overlay hidden by default */
.service-card .hover-overlay{
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Show overlay when hovering the card */
.service-card:hover .hover-overlay{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  cursor: default;
}

.hover-overlay--staggered .syncnex-staggered-text-1,
.hover-overlay--staggered .syncnex-staggered-value-1 {
    color: #66ff00;
}

.hover-overlay--staggered .syncnex-staggered-text-2,
.hover-overlay--staggered .syncnex-staggered-value-2 {
    color: #99A0AE;
}

.hover-overlay--staggered .syncnex-staggered-text-3,
.hover-overlay--staggered .syncnex-staggered-value-3 {
    color: #FF0000;
}




/* ============================================================= HOME PAGE(S) BACK LINK*/
    .back-link {
        margin-top: 2rem;
        text-align: center;
    }

    .back-link a {
        color: #99A0AE;
        text-decoration: underline;
    }


/* ===================================
   MAIN SECTION
=================================== */
main {
  padding: 1em;
  color: white;
  text-align: center;
}

main h2,
main h3 {
  font-size: 2rem;
  color: white;
  font-weight: bold;
}

main h2 {
  margin: 0 0 0.5em 0;
}

main h3 {
  position: relative;
  margin: 2.5em 0 0.5em 0;
  padding-top: 0.5em;
}

.full-width-border {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  border-top: 2px solid #004DA5;
  padding-top: 1.5em;
  margin-top: 2em;
  box-sizing: border-box;
  text-align: center;
}

.full-width-border h3 {
  margin: 0;
  font-size: 2rem;
  color: white;
  font-weight: bold;
}

/* ===================================
   TEXT CLASSES
=================================== */
.intro-text,
.intro-textdescription {
  text-align: center;
  margin-top: 0.5em;
  font-size: 1rem;
  line-height: 1.4;
  color: #99A0AE;
  margin-bottom: 1.4rem;
}

.intro-textheader {
  text-align: center;
  margin: 1.5em 0 0 0;
  font-size: 1.1rem;
  line-height: 1.4;
  color: white;
  font-weight: bold;
}

/* Link inside intro-text */
.intro-text a.bold-link {
  font-weight: bold;
  color: #ffffff !important;
  text-decoration: none;
}

.intro-text a.bold-link:hover {
  color: #004DA5 !important;
  text-decoration: none;
}

/* ===================================
   FOOTER
=================================== */
footer {
  background: #121A2E;
  padding: 1em 0;
  text-align: center;
  color: #99a0ae;
  border-top: 2px solid #0091E4;
  font-size: 0.7rem;
}

/* ===================================
   IMAGES
=================================== */
.logo {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  margin-top: 2em;
}

.photo-gallery img {
  width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.photo-gallery img:hover {
  transform: scale(1.05);
}

/* ===================================
   LISTS & LINKS
=================================== */
.centered-list {
  list-style-position: inside;
  color: white;
  margin: 0 auto;
  padding-left: 0;
  max-width: 400px;
  text-align: left;
}

.bold-link {
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
}

.bold-link:hover {
  color: #004DA5;
  text-decoration: none;
}

/* ===================================
   FORM STRUCTURE
=================================== */
.fs-form {
  display: grid;
  row-gap: 1.5rem;
}

.fs-form.fs-layout__2-column {
  column-gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

fieldset {
  display: grid;
  margin: 1.5rem 0;
  row-gap: 1.5rem;
}

.fs-form.fs-layout__2-column fieldset {
  column-gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
  grid-column: 1 / -1;
}

.fs-fieldset-title {
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text-default);
  margin-bottom: 1.5rem;
  grid-column: 1 / -1;
}

.fs-field {
  display: flex;
  flex-direction: column;
  row-gap: 0.375rem;
}

.fs-field .fs-description {
  color: #004DA5 !important;
}

.fs-label {
  font-family: var(--font-family-display);
  font-size: 1rem;
  font-weight: 500;
  color: #99A0AE;
}

.fs-description {
  color: #004DA5 !important;
  font-size: 2.0rem;
}

.fs-button-group {
  justify-content: center !important;
  flex-direction: row !important;
}

.fs-button {
  background-color: transparent;
  border-radius: 0.375rem;
  color: #99A0AE;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 200ms ease;
  border: 2px solid #004DA5;
}

.fs-button:hover,
.fs-button:focus-visible {
  background-color: transparent;
  outline: 3px solid var(--color-highlight);
}

.fs-input,
.fs-select,
.fs-textarea {
  background-color: transparent;
  border-radius: 0.375rem;
  border: 0;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  box-shadow: #004DA5 0 0 0 1px inset;
  color: #99A0AE;
  width: 100%;
}

textarea[name="enquiry"] {
  height: 150px;
  min-height: 150px;
}

textarea#enquiry {
  min-height: 200px;
  resize: vertical;
  color: #99A0AE;
}

.fs-input:focus-visible,
.fs-select:focus-visible,
.fs-textarea:focus-visible {
  box-shadow: var(--color-border-active) 0 0 0 1.5px inset;
  outline: 3px solid var(--color-highlight);
}

.fs-input::placeholder,
.fs-textarea::placeholder {
  color: #99A0AE;
}

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* ===================================
   CHROME, SAFARI, EDGE AUTOFILL OVERRIDE
=================================== */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  background-color: #004DA5 !important;
  border: 1px solid var(--color-border-active) !important;
  box-shadow: none !important;
  -webkit-text-fill-color: #99A0AE !important;
  border-radius: 0.375rem !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

input:-webkit-autofill:focus,
textarea:-webkit-autofill:focus,
select:-webkit-autofill:focus {
  border: 2px solid var(--color-highlight) !important;
  outline: 3px solid var(--color-highlight) !important;
  box-shadow: none !important;
  -webkit-text-fill-color: #99A0AE !important;
}

/* ===================================
   RESPONSIVE STYLES
=================================== */
@media (max-width: 600px) {
  main h2,
  .full-width-border h3 {
    font-size: 1.32rem;
    margin: 0 0 0.5em 0;
    padding-top: 0;
  }

  .intro-text,
  .intro-textdescription {
    font-size: 0.7rem;
    line-height: 1.3;
    margin: 0 1em;
  }

  .intro-textheader {
    font-size: 0.85rem;
  }

  .photo-gallery img {
    width: 100%;
    max-width: 90%;
  }

  .form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
  }

  .fs-button-group {
    text-align: center;
  }

  .fs-button {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    background-color: transparent;
    color: #99A0AE;
    border: 2px solid #004DA5;
    border-radius: 0.375rem;
  }

  .fs-button:hover {
    background-color: var(--color-primary-active);
  }
}

/* ===================================
   ADMIN / DASHBOARD LAYOUT
=================================== */
.admin-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  color: white;
}

/* Top right links (Back to User Management / Logout) */
.top-links {
  text-align: right;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.top-links a {
  color: #99A0AE;
  text-decoration: underline;
  margin-left: 1rem;
}

/* Card-style container */
.card {
  background: #1b2236;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Tables */
.card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #1e263b;
  border-radius: 8px;
  overflow: hidden;
}

.card th,
.card td {
  border: 1px solid #2f3a57;
  padding: 0.7rem 0.5rem;
  text-align: left;
}

.card th {
  background: #252e48;
  color: #e1e5ee;
  font-weight: 600;
}

/* Messages */
.message {
  margin-top: 1rem;
  color: #4ade80;
  font-size: 0.9rem;
}

.error {
  margin-top: 1rem;
  color: #f97373;
  font-size: 0.9rem;
}

/* Buttons (general) */
button {
  margin-top: 1.5rem;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  color: #99A0AE;
  border: 2px solid #004DA5;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.25s ease-in-out;
}

button:hover {
  background: #004DA5;
  color: white;
}

/* Small inline button in table */
.btn-inline {
  margin-top: 0;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
}

/* Total users text */
.total-users {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
  color: #99A0AE;
}

.main-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===================================
   UTILITY CLASSES
=================================== */
.col-span-full {
  grid-column: 1 / -1;
}

.slider-label-container {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.slider-label-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
}

/* ===================================
   HOMEPAGE – LAYOUT & ANIMATION
=================================== */
main.home-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

main.home-container h2 {
    font-size: 1.5rem;
    color: #99A0AE;
    margin-top: -1.0rem;
    margin-bottom: 2.0rem;
    font-weight: 600;
}

/* Tagline */
.home-tagline {
  font-size: 1.1rem;
  color: #99A0AE;
  margin-bottom: 2rem;
}

/* Button group */
.home-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Homepage buttons */
.home-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  width: 180px;
  height: 50px;
  padding: 0.8rem 1.6rem;

  font-size: 1.05rem;
  font-weight: 600;

  background: transparent;
  color: #99A0AE;
  border: 2px solid #004DA5;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.25s ease-in-out;
}

.home-button:hover {
  background: #004DA5;
  color: white;
}





/* ===================================
   SYNCNEX DASHBOARD LAYOUT
   (moved from dashboard_menu.html)
=================================== */

        main.dashboard-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 1rem;
        }

        h1 {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        p {
            margin: 0.25rem 0;
            color: #c3c8d6;
        }

        .button-row {
            margin-top: 1.8rem;
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .dashboard-button {
            display: inline-block;
            padding: 0.8rem 1.6rem;
            min-width: 140px;
            background: transparent;
            border: 2px solid #004DA5;
            border-radius: 10px;
            color: #99A0AE;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            transition: 0.25s ease-in-out;
        }

        .dashboard-button:hover {
            background: #004DA5;
            color: white;
        }

        footer {
            font-size: 0.8rem;
            color: #99A0AE;
            text-align: center;
            padding: 1rem 0;
        }


@media (max-width: 768px) {
  .dashboard-container {
    padding: 1.5rem 1rem;
  }

  .dashboard-card {
    padding: 1.25rem 1rem;
    margin: 0;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-button {
    width: 100%;
    text-align: center;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }
}

