body {
    margin: 0;

    font-family: sans-serif;
}
.top-bar {
    background-color: #1a1a2e;
    padding: 1.5rem;         /* space inside: top/bottom 1rem, left/right 2rem */
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 8%;
    box-shadow: 0px 5px 10px 2px rgba(0, 0, 0, 0.5);
    transition: padding 0.4s ease, background-color 0.4s ease;
}
.top-bar.shrink {
    padding: 0.75rem 2rem; /* Reduced from original 1.5rem */    
}
.top-bar.shrink .logo {
    height: 2.5rem; /* Reduced from original 3.5rem */
}
.logo {
    height: 3.5rem;       /* main control – change this number to make logo bigger/smaller */
    width: auto;        /* VERY IMPORTANT – keeps proportions */
    max-width: 280px;   /* prevents it from becoming huge on wide screens */
    position: static;
    transition: height 0.35s ease, max-width 0.35s ease;
}
.menu-links a.active {
    color: rgb(233, 232, 170);
    font-size: 1.1rem;
    border-radius: 6px;
    font-weight: 800;
}
.menu-links a {
    color: rgb(206, 193, 16);
    position: relative;
    text-decoration: none;       /* removes underline */
    font-size: 1.1rem;
    font-family: sans-serif;
    font-weight: 700;
    padding: 0rem 1rem;      /* space around each link */
    display: inline-block;       /* makes padding work properly */
}
.menu-links {
    padding-right: 1rem;
}
.menu-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: .75rem;
    right: .75rem;
    width: 0;
    height: 2px;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    transition: width 0.3s ease;
}
.menu-links a:hover::after {
    width: calc(100% - 1.5rem);
}
.hamburger {
  display: none;                    /* hidden on wide screens */
}
.nav-toggle {
  display: none;                    /* always hidden */
}
@media (max-width: 1013px) {
    .hamburger {
        margin-left: auto;
        display: block;
        font-size: 2rem;
        color: rgb(206, 193, 16);
        cursor: pointer;
        padding: 0.5rem 1rem;
        user-select: none;
    }

    .top-bar {
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .menu-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a1a2e;
        overflow: hidden;
        box-shadow: 0 8px 16px rgba(0,0,0,0.3);
        padding: 0;
        border-top: 2px solid rgba(255, 255, 255, 0.4);

        /* Closed state */
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        pointer-events: none;

        /* FIXED: transition here – this controls the smooth open/close */
        transition: max-height 0.45s ease-out, opacity 0.4s ease, padding 0.45s ease-out;
    }

    #nav-toggle:checked ~ .menu-links {
        max-height: 600px;                /* increase if your menu has more items */
        opacity: 1;
        padding-top: 0.75rem;
        padding-bottom: 0.25rem;
        pointer-events: auto;
    }

    /* Disable underline in dropdown */
    .menu-links a::after {
        display: none;
    }

    .menu-links a {
        display: block;
        padding: 1rem 1rem;
        text-align: center;
        border-bottom: 2px solid rgba(255, 255, 255, 0.4);
        color: rgb(206, 193, 16);
        font-size: 1.1rem;
    }


    .menu-links a:last-child {
        border-bottom: none;
    }
    .menu-links a:first-child {
        padding-top: 0rem;
    }
}
/* ----------------------------- Footer ------------------------ */
.footer {
  background: #1a1a2e;
  color: #e0e0e0;
  padding: 3rem 2rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0rem;
  justify-content: left;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1rem;
}

.footer h4 {
  color: rgb(206, 193, 16); /* your accent */
  margin-bottom: 1rem;
}

.quick-links {
  padding-left: 5rem;
}

.footer ul {
  padding-left: 5rem;
  list-style: none;
}
@media (max-width: 579px) {
    .footer ul {
        padding-left: 0rem;
    }
    .quick-links {
        padding-left: 0rem;
    }
}

.footer a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: #b3b3b3;
}

.disclaimer {
  font-size: 0.85rem;
  line-height: 1.6;
  padding-right: 1rem;
}

.copyright {
  font-size: 0.9rem;
  text-align: left;
}

/* ---------------- LINKS PAGE SPECIFIC STYLES ---------------- */
.links-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    padding-bottom: 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-header h1 {
    color: rgb(35, 29, 82);
    font-size: 2.5rem;
    font-family: sans-serif;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #5c5c5c;
    font-family: sans-serif;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.link-grid {
    display: grid;
    font-family: sans-serif;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.category-title {
    grid-column: 1 / -1;
    font-size: 1.8rem;
    font-family: sans-serif;
    color: rgb(35, 29, 82);
    border-bottom: 3px solid rgb(206, 193, 16);
    padding-bottom: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.link-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 5px solid rgb(206, 193, 16);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.5s ease-out, box-shadow 0.3s ease;   
}

.link-card.visible {
    opacity: 1;
    transform: translateY(0px);
}

.link-card.visible:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.link-card h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.25rem;
}

.link-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes button to bottom */
}

.link-btn {
    display: inline-block;
    text-align: center;
    background-color: rgb(35, 29, 82);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.link-btn:hover {
    background-color: rgb(55, 49, 102);
}

/* Helper icon style */
.icon-placeholder {
    width: 40px;
    height: 40px;
    background-color: #eee;
    border-radius: 50%;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
/* ---------------- SERVICES PAGE SPECIFIC ---------------- */
        
/* Hero Section with Image */
.hero {
    position: relative;
    height: 400px;
    background-image: url("/header.png");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Dark overlay to make text readable */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(39, 27, 64, 0.7); /* Navy overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgb(183, 183, 183); /* Gold color */
}

/* Content Container */
.content-container {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0rem 2rem;
}

.intro-text {
    text-align: center;
    margin-bottom: 4rem;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Groupings */
.service-category {
    margin-bottom: 3rem;
    opacity: 0; /* For animation */
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-category.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-category h2 {
    color: rgb(35, 29, 82);
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* The List Style */
.service-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* 2 Columns on desktop */
    gap: 1rem 3rem;
}

.service-list li {
    font-size: 1.15rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    color: #444;
}

/* Custom Checkmark Bullet */
.service-list li::before {
    content: '✓';
    color: rgb(206, 193, 16); /* Gold */
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0; /* Prevents checkmark from shrinking on multiline text */
}

/* Call to Action Footer */
.cta-section {
    background-color: rgb(245, 245, 245);
    padding: 4rem 0rem;
    text-align: center;
    margin-top: 4rem;
}

.cta-btn {
    background-color: rgb(35, 29, 82);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.cta-btn:hover {
    background-color: rgb(55, 49, 102);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .service-list { grid-template-columns: 1fr; }
}

/* ---------------- PORTAL PAGE SPECIFIC ---------------- */

.portal-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem; /* Reduced padding for mobile */
    text-align: center;
}

.intro-text {
    color: #555;
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
}

/* Portal Button (from first request) */
.portal-btn {
    background-color: rgb(35, 29, 82);
    color: white;
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 8px; /* Less rounded as requested */
    font-weight: 800;
    font-size: 1.25rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(35, 29, 82, 0.3);
    border: 2px solid rgb(35, 29, 82);
    margin-bottom: 4rem;
}

.portal-btn:hover {
    background-color: rgb(55, 49, 102);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(35, 29, 82, 0.4);
}

/* Video Section - Reduced Padding */
.video-section {
    background-color: #f9f9f9;
    padding: 1.5rem 0.5rem; /* Significantly reduced padding */
    border-radius: 0px; 
    border: 1px solid #e0e0e0; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.video-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.video-section h2 {
    color: rgb(35, 29, 82);
    margin-top: 0;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.tutorial-desc {
    margin-bottom: 1.5rem; 
    color: #666;
    padding: 0 1rem;
}

/* Responsive Video Wrapper - Maximized for Mobile */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 0px; 
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .portal-hero { height: 220px; }
    .hero-content h1 { font-size: 1.8rem; }
    .portal-container { margin: 2rem auto; }
    .video-section { padding: 1rem 0; } /* Edge to edge on mobile */
}
/* Contact information */    
.main-container {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}

/* REDESIGN: Clean Grid (No boxes) */
.contact-info-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    width: 100%;
}

/* REDESIGN: Clean Item Styling */
.info-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

/* Icon Circle */
.icon-circle {
    width: 80px;
    height: 80px;
    background-color: rgb(35, 29, 82);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 15px rgba(35, 29, 82, 0.2);
    transition: transform 0.3s ease;
}
/* SVG Icon styling */
.icon-svg {
    width: 35px;
    height: 35px;
    fill: rgb(233, 232, 170); /* Gold Icon */
}

.info-item h3 {
    color: rgb(35, 29, 82);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    color: #555;
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0.25rem 0;
}

.info-item a {
    color: rgb(35, 29, 82);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.2s;
}
.info-item a:hover {
    color: #3f3f49;
}
/* Fluff Section: What to expect */
.expectations-section {
    background-color: #f4f4f4; /* Lighter background for contrast */
    color: #333;
    padding: 5rem 2rem;
    text-align: center;
    margin-top: 5rem;
}

.expectations-section h2 {
    color: rgb(35, 29, 82);
    font-size: 2rem;
    margin-bottom: 3rem;
}

.expect-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.expect-item h4 {
    color: rgb(35, 29, 82);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Small underline for headings */
.expect-item h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: rgb(206, 193, 16);
    margin: 0.5rem auto 0;
}

.expect-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

@media (max-width: 850px) {
    .main-container { padding: 0 1rem; margin: 3rem auto; }
    .hero-content h1 { font-size: 2rem; }
    .contact-info-panel { gap: 3rem; }
}
/* HERO SECTION */
.home-hero {
    height: 80vh;
    min-height: 500px;
    background-image: linear-gradient(rgba(35, 29, 82, 0.8), rgba(35, 29, 82, 0.7)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.hero-content {
    max-width: 900px;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgb(233, 232, 170); /* Gold */
}

.btn {
    display: inline-block;
    background-color: rgb(206, 193, 16);
    color: rgb(35, 29, 82);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.btn:hover {
    background-color: #fff;
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    margin-top: 1.5rem;
}

.btn-outline:hover {
    background-color: white;
    color: rgb(35, 29, 82);
}

/* ABOUT SECTION */
.section-padding {
    padding: 5rem 2rem;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-text h2 {
    color: rgb(35, 29, 82);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: rgb(206, 193, 16);
    margin-top: 0.5rem;
}

.about-text p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* SERVICES PREVIEW */
.services-preview {
    background-color: #f9f9f9;
    text-align: center;
}

.services-grid {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 0;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    border-bottom: 4px solid transparent;
    
    opacity: 0;                  /* Initially invisible */
    transform: translateY(30px);  /* Pushed down 30px */
    
    /* COMBINED TRANSITIONS: Handles the fade-in AND the hover effect later */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease, border-bottom 0.3s ease;
}

.service-card.visible {
    background: white;
    opacity: 1;
    transform: translateY(0);
    padding: 2.5rem;
    border-radius: 8px;
    border-bottom: 4px solid transparent;
    
    /* ANIMATION START STATE */
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid rgb(206, 193, 16);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.service-card h3 {
    color: rgb(35, 29, 82);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-learn-more {
    display: inline-block;
    margin-top: 2.5rem;
    text-align: center;
    justify-content: space-evenly;
    font-size: 1.25rem;
    background-color: rgb(35, 29, 82);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease, border-bottom 0.3s ease;
}
.service-learn-more:hover {
    transform: translateY(-5px);
    background-color: #1a065f;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* FEATURES BAR */
.features-bar {
    background-color: #1a1a2e;
    color: white;
    padding: 4rem 2rem;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    gap: 2rem;
}

.feature-item {
    flex: 1;
    min-width: 250px;
}

.feature-item h3 {
    color: rgb(233, 232, 170);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* CLIENT PORTAL TEASER */
.portal-teaser {
    text-align: center;
    padding: 6rem 2rem;
    background-color: white;
}

.portal-teaser h2 {
    font-size: 2.5rem;
    color: rgb(35, 29, 82);
    margin-bottom: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .hero-content h1 { font-size: 2.5rem; }
    .about-container { grid-template-columns: 1fr; }
    .about-image { order: -1; margin-bottom: 2rem; }
}

#home-header-text {
    font-size: 3vw;
    padding-bottom: 2rem;
}

@media (max-width: 1013px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .hero { height: 350px; }
    #home-header-text {
        font-size: 5vw;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 901px) {
    .about-image {
        display: none;
    } 
}
.portal-teaser {
    display: flex;                /* ← this is the key line */
    justify-content: space-between; /* spreads them out nicely */
    gap: 2rem;                    /* space between the two ons */
    flex-wrap: wrap;              /* on very small screens, they stack again */
    max-width: 1200px;            /* optional: keeps it from stretching too wide */
    margin: 0 auto;               /* centers the whole thing */
    padding: 2rem;                /* optional: breathing room */
}

/* Make each child take roughly equal space */
.portal-teaser > div {
    flex: 1;                      /* each section grows equally */
    min-width: 300px;             /* prevents them from getting too narrow */
    text-align: center;           /* center text inside each box */
    padding: 1.5rem;
    background: #f9f9f9;          /* optional: light background for separation */
    border-radius: 8px;           /* optional: rounded corners */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* optional: subtle shadow */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.home-client {
    padding-top: 0rem;
}
@media ( max-width: 420px ) {
    .portal-teaser > div {
        min-width: 100px;
    }
}
@media ( max-width: 422px ) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    }
    .features-bar {
        background-color: #1a1a2e;
        color: white;
        padding: 4rem 0.75rem;
    }
    .link-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .info-item a {
        font-size: 5vw;
    }
    .info-item h1 {
        font-size: 6vw;
    }
    .contact-info-panel {
        padding-left: 0;
        margin-left: 0;
    }
    .main-container {
        padding-left: 0;
        margin-left: 0;
    }
    .icon-svg {
       padding-left: 0;
        margin-left: 0; 
    }
}

@media (max-width: 320px ) {
    .logo {
        height: 2rem;
    }  
}

@media (max-width: 700px) {       /* adjust if needed, 700px is safe */
    .portal-teaser {
        flex-direction: column;   /* force vertical stack */
        gap: 2rem;
    }

}
.cta404 {
    margin-top: 0rem;

}