* { box-sizing: border-box; margin: 0; padding: 0; }
:root{
    --bg: #f7f8fa;
    --text: #111827;
    --teal: #1E3A8A; /* updated to match logo blue */
    --accent: #f59e0b;
    --muted: #4b5563;
    --line-opacity: 0.10;
    --card-bg: rgba(255,255,255,0.92);
    --glass: rgba(255,255,255,0.8);
}
html,body { height: 100%; }
body{
    font-family: Inter, Poppins, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg);
    color: var(--text);
    transition: background .35s ease, color .35s ease;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    padding-top: 84px;
}

/* HEADER */
header{
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 72px;
    display:flex; align-items:center; justify-content:space-between;
    padding: 0 28px;
    gap: 12px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(2,6,23,0.06);
    z-index: 1400;
}

/* --- LOGO BUTTON --- */
.logo {
    backdrop-filter: blur(6px);
    padding: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.logo img {
    width: 100px;
    height: auto;
    display: block;
}
.logo:hover {
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(30, 58, 138, 0.35); /* updated glow */
    cursor: pointer;
}

/* dark mode tweak for logo button */
body.theme-dark .logo {
    background: rgba(20, 20, 20, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}
body.theme-dark .logo:hover {
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.6); /* blue hover glow */
}

/* NAV */
nav{ display:flex; gap:14px; align-items:center; }
nav a{ color:var(--text); text-decoration:none; font-weight:600; padding:8px 10px; border-radius:8px; transition: background .18s, transform .12s; }
nav a:hover{ background: rgba(0,0,0,0.06); transform: translateY(-2px); color: #000; }
#theme-toggle{ cursor:pointer; font-size:1.15rem; padding:6px 8px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; transition: transform .18s; }
#theme-toggle:hover{ transform:rotate(15deg); }

/* HERO */
.hero{
    min-height: calc(100vh - 84px);
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    position:relative;
    padding:48px 20px;
    background-image: url("https://images.unsplash.com/photo-1603046891743-8f2072e4dede?auto=format&fit=crop&w=1920&q=80");
    background-position:center;
    background-size:cover;
    background-attachment:fixed;
    color:#fff;
    overflow:hidden;
}
.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
    z-index:0;
}
.hero-content{
    position:relative;
    z-index:2;
    max-width:1100px;
    padding:48px 1rem 64px;
}
.hero h1{ font-size:2.6rem; margin-bottom:0.6rem; }
.hero-lead{ font-size:1.05rem; opacity:0.95; margin-bottom:1.4rem; }
.cta-row{ display:inline-flex; gap:12px; align-items:center; }

/* HERO BACKGROUND LOGO */
.hero-logo-bg{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:1;
    opacity:0.08;
    pointer-events:none;
}
.hero-logo-bg img{
    width:100%;
    max-width:600px;
    height:auto;
    object-fit:contain;
    filter:grayscale(100%) brightness(1.2);
}

/* BUTTONS */
.btn{ display:inline-block; padding:10px 16px; border-radius:10px; font-weight:700; text-decoration:none; }
.btn.primary{ background: linear-gradient(90deg,var(--teal), #3B82F6); color:#fff; box-shadow: 0 6px 18px rgba(30,58,138,0.15); }
.btn.ghost{ background: transparent; color: var(--text); border: 1px solid rgba(0,0,0,0.06); }

/* SECTIONS */
section{ width:100%; padding:6.5rem 5%; display:block; position:relative; text-align:center; }
main{ width:100%; }
h2{ color:var(--teal); font-size:1.8rem; margin-bottom:0.6rem; }
section p{ max-width:980px; margin:0.5rem auto; color:var(--muted); line-height:1.6; }

/* DIVIDERS */
section + section::before{
    content:"";
    position:absolute;
    top:0; left:50%;
    transform:translateX(-50%);
    width:94%; max-width:1400px; height:1px;
    border-radius:1px;
    background:linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,var(--line-opacity)), rgba(0,0,0,0));
}

/* GRID */
.grid{ display:grid; gap:1.6rem; align-items:stretch; }
.grid-1{ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); max-width:700px; margin:0 auto; align-items:stretch; display: grid; }
.grid-2{ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); max-width:1000px; margin:0 auto; align-items:stretch; display: grid; gap:2rem; }
.grid-3{ grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); max-width:1200px; margin:0 auto; }

/* CARDS */
.card, .client-card{
    background: var(--card-bg);
    border-radius:14px; padding:18px;
    box-shadow: 0 8px 24px rgba(2,6,23,0.04);
    transition: transform .22s, box-shadow .22s;
}
.card:hover, .client-card:hover{ transform:translateY(-6px); box-shadow: 0 18px 44px rgba(2,6,23,0.09); }

/* CLIENT CARDS */
.client-card{ text-align:center; display:flex; flex-direction:column; align-items:center; }
.client-card img{ width:100%; border-radius:10px; margin-bottom:12px; }
.client-card h3{ margin:0.25rem 0; color:var(--teal); font-size:1.05rem; }
.client-card p{ color:var(--muted); }

/* TESTIMONIALS */
.testimonials blockquote{ max-width:980px; margin:1.2rem auto 0; font-style:italic; color:var(--muted); }
.testimonials cite{ display:block; margin-top:0.5rem; font-weight:700; color:var(--text); }

/* CONTACT */
#contact p{ margin:0.4rem auto; color:var(--muted); font-size:1rem; }
#contact a{ color:var(--teal); text-decoration:none; }
#contact a:hover{ text-decoration:underline; }

/* FOOTER */
footer{ padding:1.4rem 5%; text-align:center; background:var(--teal); color:white; }

/* ANIMATIONS */
.fade-in{ opacity:0; transform:translateY(18px); transition: opacity .75s ease, transform .75s ease; }
.fade-in.visible{ opacity:1; transform:translateY(0); }

/* DARK THEME */
body.theme-dark{
    --bg:#07090b;
    --text:#e6eef0;
    --teal:#3B82F6; /* updated dark mode blue */
    --accent:#fbbf24;
    --muted:#cbd5d6;
    --line-opacity:0.14;
    background:#07090b; color:var(--text);
}
body.theme-dark header{ background: rgba(10,12,14,0.65); box-shadow: 0 12px 32px rgba(0,0,0,0.7); }
body.theme-dark nav a{ color:var(--text); }
body.theme-dark nav a:hover{ background: rgba(255,255,255,0.03); color:var(--teal); }
body.theme-dark .card, body.theme-dark .client-card{ background: linear-gradient(180deg, rgba(18,20,24,0.6), rgba(12,16,20,0.64)); box-shadow: 0 8px 22px rgba(0,0,0,0.6); }
body.theme-dark section + section::before{ background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.12), rgba(255,255,255,0)); }
body.theme-dark footer{ background:#1E3A8A; }

.slidecontainer {
    width: 100%; /* Width of the outside container */
}

/* The slider itself */
.slider {
    -webkit-appearance: none;  /* Override default CSS styles */
    appearance: none;
    width: 100%; /* Full-width */
    height: 25px; /* Specified height */
    background: #d3d3d3; /* Grey background */
    outline: none; /* Remove outline */
    opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
    -webkit-transition: .2s; /* 0.2 seconds transition on hover */
    transition: opacity .2s;
}

/* Mouse-over effects */
.slider:hover {
    opacity: 1; /* Fully shown on mouse-over */
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    width: 25px; /* Set a specific slider handle width */
    height: 25px; /* Slider handle height */
    background: #04AA6D; /* Green background */
    cursor: pointer; /* Cursor on hover */
}

.slider::-moz-range-thumb {
    width: 25px; /* Set a specific slider handle width */
    height: 25px; /* Slider handle height */
    background: #04AA6D; /* Green background */
    cursor: pointer; /* Cursor on hover */
}

/* RESPONSIVE */
@media (max-width:900px){
    .hero h1{ font-size:2rem; }
    section{ padding:4.5rem 6vw; }
    .grid-3{ grid-template-columns: 1fr; gap:1rem; }
    nav{ gap:10px; }
}