/* A simple and effective CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, p, ul, ol, li, figure, figcaption {
  margin: 0;
  padding: 0;
}

:root {
  /* -------------------------------------- */
  /* PRIMARY BRAND COLORS          */
  /* -------------------------------------- */
  /** --vs-primary-navy: Use for main headlines, footers, and dark UI elements. */
  --vs-primary-navy: #263a5a;
  /** --vs-accent-blue: Your primary Call-to-Action (CTA) color. Use for buttons, links, and icons. */
  --vs-accent-blue: #0abfdb;
  /** --vs-accent-green: Your secondary accent. Use for testimonials, success messages, or supporting graphics. */
  --vs-accent-green: #84a07c;
  /* -------------------------------------- */
  /* NEUTRAL SYSTEM             */
  /* For text, backgrounds, and borders.  */
  /* -------------------------------------- */
  /** --vs-neutral-text: For all main body paragraphs. Easier to read than pure black. */
  --vs-neutral-text: #3d3d3d;
  /** --vs-neutral-subtle: For subtitles, borders, and disabled states. */
  --vs-neutral-subtle: #A7A9AC;
  /** --vs-neutral-bg-light: For main content sections. Clean and professional. */
  --vs-neutral-bg-light: #F4F6F8; /* A very light gray is often softer than pure white */
  /** --vs-neutral-bg-white: For content cards, modals, or sections you want to "pop" off the background. */
  --vs-neutral-bg-white: #FFFFFF;
  --vs-dark-bg-gradient: linear-gradient(200deg, var(--vs-neutral-bg-light), var(--vs-neutral-bg-white)); /* A gradient for dark backgrounds, can be used in sections or cards */
  /* -------------------------------------- */
  /* For alerts and user feedback.        */
  /* -------------------------------------- */
  /** --vs-utility-success: For "Message Sent!" confirmations. */
  --vs-utility-success: #28a745;
  /** --vs-utility-warning: For non-critical alerts. */
  --vs-utility-warning: #ffc107;
  /** --vs-utility-error: For form validation errors. */
  --vs-utility-error: #dc3545;
}
/* -------------------------------------- */
/* Base & Typography */
/* -------------------------------------- */
/* Font Styles */
body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--vs-neutral-bg-white); 
    color: var(--vs-primary-navy);
    font-size: 1rem;
}
h1{
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--vs-primary-navy);
    font-size: clamp(1.75rem, 1.25rem + 2vw, 3rem);
    font-weight: 600;
}
h2 {
    font-family: "lato", Arial, sans-serif;
    font-size: clamp(1.5rem, 1.3rem + 1.5vw, 2.25rem);
    font-weight: 600;
    color: var(--vs-primary-navy);
}
h3 {
    font-family: "lato", Arial, sans-serif;
    font-size: clamp(1.2rem, 1.0rem + 1vw, 1.5rem);
    font-weight: 600;
}
h4 {
    font-family: "lato", Arial, sans-serif;
    font-size: 1.125rem; /* A static 18px */
    font-weight: 600;
    color: var(--vs-neutral-text);
}
/* -------------------------------------- */
/* Sections */
/* -------------------------------------- */
.section-bg {
    background-color: var(--vs-neutral-bg-light);
    border-radius: 1.5rem;    
    box-shadow: 4px 2px 8px 4px rgb(0 0 0 / 0.05);
    padding: 1rem;
    border-top: 15px solid var(--vs-accent-blue);
    text-align: center;
    text-justify: auto;
}
.section-bg-accent {
    background: var(--vs-neutral-bg-white);
    border-radius: 3rem;
    box-shadow: 0 2px 8px 0 rgb(0 0 0 / 0.05);
    padding: 1rem;
    border-top: 15px solid var(--vs-accent-green);
    text-align: center;
    text-justify: auto;
}
/* -------------------------------------- */
/* Components & Utilities */
/* -------------------------------------- */
/* Clickable Cards (CTA) */
.cta-card {
    border-top: 10px solid var(--vs-accent-blue);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 2rem;
/*-----Hover Effect-----*/
    &:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px 3px rgb(0 0 0 / 0.1), 0 4px 6px 4px rgb(0 0 0 / 0.1);
    border-top: 15px solid var(--vs-accent-blue); /* Green used as a small accent */
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--vs-primary-navy);
    color: var(--vs-neutral-bg-light);
    font-weight: bold;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    border-top: 2px solid var(--vs-neutral-subtle);
    
    &:hover {
    background-color: var(--vs-accent-blue); 
    border-color: var(--vs-neutral-subtle);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Accent Elements */
.accent-line {
    height: 3px;
    width: 90%;
    max-width: 48rem;
    background: linear-gradient(40deg, var(--vs-accent-blue), var(--vs-accent-green));
    border-radius: 9000px;
    box-shadow: 4px 2px 4px rgba(0, 0, 0, 0.158);
    margin: 1rem auto; 
    background-size: 200% 200%; /* Make the gradient larger for animation */
    animation: shimmer 5s infinite linear; /* Add shimmer effect */
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.icon-highlight {
    color: var(--vs-accent-green);
    box-shadow:rgba(44, 155, 34, 0.55) ;
}

/* Form Elements */
.form-input {
    border: 2px solid var(--vs-neutral-subtle);
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: var(--vs-accent-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 124, 165, 0.15);
}

/* Navigation */
.nav-link {
    color: var(--vs-primary-navy);
    transition: color 0.2s ease;
    padding: 0.5rem;

    &:hover {
    color: var(--vs-accent-green);
    text-decoration: underline;
    }
}

.chart-container {
    position: relative;
    margin: auto;
    height: 250px;
    width: 100%;
    max-width: 250px;
}
.nav-btn {
    background-color: var(--vs-primary-navy);
    color: var(--vs-neutral-bg-light);
    font-weight: bold;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    border-top: 2px solid var(--vs-neutral-subtle);
    
    &:hover {
    background-color: var(--vs-accent-blue); 
    border-color: var(--vs-neutral-subtle);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

.loader {
    border: 4px solid var(--vs-neutral-bg-light); /* Use a brand neutral for the track */
    border-top: 4px solid var(--vs-primary-navy); /* Use brand navy for the spinner */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: var(--vs-neutral-bg-white);
    font-weight: bold;
    z-index: 1000;
    transform: translateX(120%); /* Start off-screen */
    transition: transform 0.4s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.notification.show {
    transform: translateX(0);
}
.notification-success {
    background-color: var(--vs-utility-success);
}
.notification-error {
    background-color: var(--vs-utility-error);
}
.notification-info {
    background-color: var(--vs-accent-blue);
}

/* General Card Styles (for web view) */
.flash-card {
    background-color: var(--vs-neutral-bg-white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    height: 100%; /* Ensures cards in the same row are the same height */
}

.card-title {
    font-size: clamp(1.75rem, 1.25rem + 2vw, 2.8rem);
    font-family: 'Roboto', Arial, sans-serif;
    text-align: center;
    font-weight: 500;
    color: var(--vs-primary-navy);
}

.card-content {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.card-content ul {
    list-style-position: inside;
    list-style-type: disc;
}

.btn-secondary {
    background-color: var(--vs-neutral-bg-white);
    color: var(--vs-primary-navy);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--vs-accent-blue);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--vs-accent-blue);
    color: var(--vs-neutral-bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Redefine your variables for dark mode */
    --vs-primary-navy: #E0E6F1; /* A light, soft blue for text */
    --vs-accent-blue: #14d9f5;
    --vs-accent-green: #9ECC94;

    --vs-neutral-text: #c1c1c1;
    --vs-neutral-subtle: #747679;
    --vs-neutral-bg-light: #2D3748; /* Darker background */
    --vs-neutral-bg-white: #1A202C; /* Main dark background */
    /* You can also adjust utility colors if needed */
  }
  /* Invert box shadows for dark mode */
  .cta-card {
    box-shadow: 0 10px 15px 3px rgb(0 0 0 / 0.2), 0 4px 6px 4px rgb(0 0 0 / 0.2);
    border-top: 15px solid var(--vs-accent-blue);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  }
  .section-bg {
    background: var(--vs-dark-bg-gradient);
  }
  .cta-card:hover {
    box-shadow: 0 10px 15px 3px rgba(194, 186, 186, 0.288), 0 4px 6px 4px rgba(255, 255, 255, 0.269);
    }
  #header-logo {
    /* Turns the logo black, then inverts it to white */
    filter:  invert(1) hue-rotate(160deg) contrast(1.3) brightness(2);
  }
  /* --- Forms --- */
  /* --- Secondary Button --- */


  .btn-secondary:hover {
  background-color: var(--vs-accent-blue);
  color: #1A202C; /* Dark background color for text on hover */
  }
.accent-line {
    box-shadow: 4px 2px 4px rgba(191, 225, 233, 0.4);
  }
  
  .icon-highlight {
    color: var(--vs-accent-green);
  }
  
  .notification {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

/* Responsive Tweaks */
@media (max-width: 640px) {
    .section-bg, .cta-card {
        padding: 1rem;
    }
    .nav-btn {
        display: block;      /* Make it a block-level element */
        width: 100%;         /* Make it take the full width of its container */
        text-align: center;
    }
}

@media (max-width: 1024px){
    .section-bg, .cta-card {
        padding: 1rem;
    }
    .card-title {
        font-size: clamp(1.5rem, 1.25rem + 1vw, 2.5rem);
    }
    .card-content {
        font-size: 0.9rem;
    }
}