:root {
    --blue: #0056b3;
    --dark: #1a1a1a;
    --gray: #666;
    --bg: #f8f9fa;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--dark); background: #fff; line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* Header & Identity */
header { padding: 25px 0; border-bottom: 1px solid #eee; background: #fff; }
.header-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.brand { display: flex; align-items: center; }
.avatar { width: 90px; height: 90px; border-radius: 50%; border: 3px solid var(--blue); margin-right: 20px; object-fit: cover; flex-shrink: 0; }
.brand-text h1 { font-size: 1.6rem; color: var(--blue); margin: 0; }
.brand-text p { font-size: 0.85rem; color: var(--gray); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

nav ul { display: flex; list-style: none; gap: 20px; }
nav a { text-decoration: none; color: var(--dark); font-weight: 600; }

/* Hero */
.hero { background: var(--bg); padding: 80px 0; text-align: center; }
.hero h2 { font-size: 2.6rem; margin-bottom: 20px; line-height: 1.2; }
.btn-blue { background: var(--blue); color: #fff; padding: 14px 28px; text-decoration: none; border-radius: 6px; font-weight: 700; display: inline-block; margin: 5px; }
.btn-outline { border: 2px solid var(--blue); color: var(--blue); padding: 12px 26px; text-decoration: none; border-radius: 6px; font-weight: 700; display: inline-block; margin: 5px; }

/* SLIDER RE-ENGINEERING */
.portfolio { padding: 80px 0; }
.title { text-align: center; font-size: 2.2rem; margin-bottom: 10px; }
.subtitle { text-align: center; color: var(--gray); margin-bottom: 40px; }
.slider-box { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 500px; border-radius: 12px; overflow: hidden; border: 1px solid #ddd; margin: 0 auto; background: #000; }
.slider-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.slider-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.front { width: 50%; z-index: 2; overflow: hidden; }

/* THE VISIBLE DIVIDER LINE */
.slider-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 6px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
    z-index: 10; /* Keeps it above images */
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* THE VISIBLE HANDLE BUTTON */
.handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--blue);
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    z-index: 11;
}

/* THE INVISIBLE RANGE INPUT (Top layer) */
.slider-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    background: transparent;
    z-index: 20; /* Highest layer for touch/click */
    cursor: ew-resize;
    margin: 0;
    outline: none;
}
.slider-handle::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 1000px; background: transparent; }

/* Services */
.services { padding: 80px 0; background: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: #fff; padding: 40px; border-radius: 12px; border: 1px solid #eee; }
.card h3 { color: var(--blue); margin-bottom: 15px; }

footer { padding: 50px 0; text-align: center; border-top: 1px solid #eee; font-size: 1rem; color: var(--gray); }

@media (max-width: 768px) {
    .header-flex { flex-direction: column; text-align: center; }
    .avatar { margin-bottom: 15px; width: 110px; height: 110px; }
    .slider-box { height: 320px; aspect-ratio: auto; }
    .slider-img img { height: 320px; }
}
