:root {
    --primary: #1a56db;
    --primary-light: #3b82f6;
    --secondary: #059669;
    --accent: #f97316;
    --navy: #1e3a8a;
    --dark: #1f2937;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --white: #ffffff;
    --border: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--white);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--navy) !important;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary) !important;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(26, 86, 219, 0.03) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.profile-photo-container {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto 2rem;
}

.profile-photo-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section .subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-section .tagline {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Works Hero Section */
.works-hero {
    background: linear-gradient(to bottom, var(--white) 0%, var(--gray-light) 100%);
    padding: 140px 0 80px;
    text-align: center;
}

.works-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary);
    border: none;
    padding: 14px 36px;
    font-weight: 600;
    border-radius: 8px;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(26, 86, 219, 0.25);
    display: inline-block;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 86, 219, 0.35);
    color: var(--white);
}

.btn-outline-custom {
    border: 2px solid var(--primary);
    padding: 12px 34px;
    font-weight: 600;
    border-radius: 8px;
    color: var(--primary);
    background: transparent;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.works-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    border: none;
    padding: 14px 36px;
    font-weight: 600;
    border-radius: 8px;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.3);
    text-decoration: none;
    margin-top: 20px;
}

.works-btn:hover {
    background: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.4);
    color: var(--white);
    text-decoration: none;
}

.works-btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.works-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Section Styling */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--navy);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(26, 86, 219, 0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.2);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h4 {
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--navy) 0%, #0f2557 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Platform Cards */
.platform-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platform-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(26, 86, 219, 0.12);
}

.platform-icon-wrapper {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: var(--gray-light);
    border-radius: 12px;
    overflow: hidden;
}

.platform-icon-wrapper i {
    font-size: 3rem;
    color: var(--primary);
}

.platform-icon-wrapper img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.platform-card h5 {
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.platform-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    background: var(--white);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.portfolio-img-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--gray-light);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.95), rgba(30, 58, 138, 0.95));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    font-size: 0.95rem;
}

.portfolio-caption {
    padding: 1.5rem;
    background: var(--white);
}

.portfolio-caption h5 {
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.portfolio-caption p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Work Grid for mywork.html */
.work-category {
    margin-bottom: 60px;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 25px;
    margin-top: 30px;
}

.work-item {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    background: var(--white);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.work-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.work-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.work-item:hover .work-img {
    transform: scale(1.05);
}

.work-info {
    padding: 20px;
}

.work-info h5 {
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 10px;
}

.work-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 86, 219, 0.9);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    padding: 20px;
    text-align: center;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-overlay h5 {
    color: white;
    margin-bottom: 10px;
}

.work-overlay i {
    font-size: 24px;
    margin-top: 10px;
}

/* Business Venture Section */
.business-services {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.business-services h4 {
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-item:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.1);
}

.service-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--secondary), #10b981);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

.service-icon i {
    color: var(--white);
    font-size: 1.2rem;
}

.service-item span {
    color: var(--dark);
    font-weight: 500;
    font-size: 1rem;
}

/* Contact Section */
.contact-section {
    background: var(--gray-light);
}

.contact-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.contact-info:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.2);
}

.contact-info h5 {
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--navy) 0%, #0f2557 100%);
    color: var(--white);
    padding: 3rem 0 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.lightbox-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2;
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.4);
}

.lightbox-close:hover {
    background: var(--navy);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-info {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 10px;
}

.lightbox-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.lightbox-desc {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section .subtitle {
        font-size: 1.2rem;
    }

    .profile-photo-container {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .business-services {
        padding: 1.5rem;
    }

    .service-item {
        flex-direction: row;
        text-align: left;
    }

    .contact-info {
        flex-direction: column;
        text-align: center;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .works-hero h1 {
        font-size: 2.5rem;
    }
}

.bg-light {
    background: var(--gray-light) !important;
}

.text-muted {
    color: var(--gray) !important;
}

/* ================= v2 improvements ================= */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }
section[id] { scroll-margin-top: 76px; }

/* centred section titles get a centred underline */
.text-center .section-title::after, .section-title.text-center::after { left: 50%; transform: translateX(-50%); }

/* hero: quick facts + scroll hint */
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 .5rem; padding: 0; }
.hero-chips li { background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px; font-size: .95rem; color: var(--dark); box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.hero-chips i { color: var(--primary); margin-right: 6px; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; color: var(--primary); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid rgba(26,86,219,.3); text-decoration: none; animation: bobHint 2s ease-in-out infinite; }
.scroll-hint:hover { background: var(--primary); color: #fff; }
@keyframes bobHint { 50% { transform: translate(-50%, 6px); } }

/* images: keep the top of tall posters in view instead of cropping the middle */
.portfolio-img, .work-img { object-position: top center; background: var(--gray-light); }
.portfolio-item, .work-item { outline-offset: 4px; }
.portfolio-item:focus-visible .portfolio-overlay, .work-item:focus-visible .work-overlay { opacity: 1; }
.work-item .portfolio-img-wrapper { height: 250px; }
.work-item .work-img { height: 100%; }
.work-overlay, .portfolio-overlay { pointer-events: none; }
.work-item .work-overlay { position: absolute; inset: 0; }

/* project cards */
.project-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.1); border-color: var(--primary); }
.project-shot { display: block; background: var(--gray-light); aspect-ratio: 16 / 10; overflow: hidden; }
.project-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; display: block; }
.project-card:hover .project-shot img { transform: scale(1.04); }
.project-body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.project-body h3 { color: var(--navy); font-weight: 700; margin: 0; }
.project-body p { color: var(--gray); margin: 0; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: .2rem 0 0; }
.tag-list li { background: rgba(26,86,219,.08); color: var(--primary); border-radius: 999px; padding: 3px 12px; font-size: .82rem; font-weight: 600; }
.project-link { margin-top: auto; font-weight: 600; color: var(--primary); text-decoration: none; }
.project-link:hover { color: var(--navy); text-decoration: underline; }
.plain-link { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--gray); }
.plain-link:hover { color: var(--primary); border-bottom-color: var(--primary); }
.contact-info .plain-link { color: var(--gray); }

/* My Works: jump chips */
.category-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 .6rem; }
.category-chips a { background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; color: var(--navy); font-weight: 600; text-decoration: none; transition: all .25s ease; }
.category-chips a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.category-chips i { margin-right: 6px; opacity: .8; }

/* back to top */
.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(26,86,219,.35); opacity: 0; transform: translateY(14px); pointer-events: none; transition: all .3s ease; z-index: 900; }
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--navy); }

/* viewer */
.lightbox-counter { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; background: rgba(255,255,255,.14); padding: 4px 14px; border-radius: 999px; font-size: .9rem; backdrop-filter: blur(6px); }
.lightbox-content { display: flex; justify-content: center; }
.lightbox-img { width: auto; max-width: 100%; max-height: 82vh; }

@media (max-width: 768px) {
    .hero-chips li { font-size: .85rem; padding: 5px 12px; }
    .scroll-hint { display: none; }
    .section-title::after { width: 48px; }
    .contact-card { padding: 1.5rem; }
    .back-to-top { right: 14px; bottom: 14px; }
}
@media (max-width: 400px) {
    .btn-primary-custom, .btn-outline-custom { padding-left: 24px; padding-right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .fade-in { opacity: 1; transform: none; }
}

/* ================= v3: experience, POS app, QuickDocs ================= */
/* timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--primary), var(--primary-light)); opacity: .25; border-radius: 2px; }
.timeline-item { position: relative; display: flex; gap: 1.2rem; margin-bottom: 1.5rem; }
.timeline-dot { flex: 0 0 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 4px 12px rgba(26,86,219,.25); z-index: 1; }
.timeline-card { flex: 1; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.timeline-card:hover { transform: translateX(6px); border-color: var(--primary); box-shadow: 0 10px 28px rgba(26,86,219,.1); }
.timeline-card h3 { color: var(--navy); font-weight: 700; margin: .2rem 0 0; }
.timeline-card p { color: var(--gray); margin: .4rem 0 0; font-size: .95rem; }
.timeline-card .timeline-org { color: var(--primary); font-weight: 600; margin: .1rem 0 0; font-size: 1rem; }
.timeline-date { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.cert-block { margin-top: 2.2rem; text-align: center; }
.cert-block h3 { color: var(--navy); font-weight: 700; margin-bottom: .8rem; }
.tag-list-lg { justify-content: center; }
.tag-list-lg li { font-size: .9rem; padding: 6px 16px; background: var(--white); border: 1px solid var(--border); color: var(--navy); }

/* wide project card (POS app) */
.project-wide { flex-direction: row; align-items: stretch; }
.project-shots { display: flex; gap: 14px; padding: 1.4rem; background: linear-gradient(135deg, var(--navy), #0f2557); justify-content: center; align-items: center; flex: 0 0 38%; }
.project-shots img { height: 300px; width: auto; max-width: 48%; object-fit: contain; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.35); background: #fff; }
.project-wide .project-body { justify-content: center; }
.badge-progress { align-self: flex-start; background: rgba(249,115,22,.12); color: #c2570c; border: 1px solid rgba(249,115,22,.35); border-radius: 999px; padding: 3px 14px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* QuickDocs */
.qdz-logo { width: 150px; height: 150px; border-radius: 18px; object-fit: cover; box-shadow: 0 8px 24px rgba(4,42,74,.3); margin-bottom: 1.2rem; display: block; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.logo-fit { object-fit: contain !important; background: #042a4a !important; }

@media (max-width: 991px) {
    .project-wide { flex-direction: column; }
    .project-shots { flex: none; }
}
@media (max-width: 768px) {
    .timeline::before { left: 21px; }
    .timeline-dot { flex-basis: 44px; height: 44px; font-size: 1rem; }
    .timeline-item { gap: .9rem; }
    .timeline-card { padding: 1rem 1.1rem; }
    .service-grid { grid-template-columns: 1fr; }
    .project-shots img { height: 240px; }
}

/* small business / startup badge */
.badge-startup { display: inline-block; background: rgba(5,150,105,.1); color: #047857; border: 1px solid rgba(5,150,105,.35); border-radius: 999px; padding: 3px 14px; font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
/* tall phone screenshots in the POS card and gallery show whole, not cropped */
.project-shots img { aspect-ratio: 9 / 20; }
.work-img[src*="zamtill"] { object-fit: contain; background: #1f2a6b; }

/* hero: keep the profile photo clear of the fixed menu bar on every screen height */
.hero-section { padding-top: 124px; padding-bottom: 84px; }
.profile-photo-container { margin-top: 12px; }
@media (max-width: 768px) {
    .hero-section { padding-top: 108px; padding-bottom: 70px; }
}
