/* =========================================================
   custom.css - Shady's own components (kept apart from the
   template's style.css so template updates don't overwrite them)
   ========================================================= */

/* ---------- Hero ---------- */
/* The template centers the hero with padding-top: 0. Our hero is taller now,
   so give it room below the fixed header instead of letting the photo slide under it. */
@media only screen and (min-width: 768px) {
    .tmp-banner-one-area.style-4 {
        padding-top: 150px;
        padding-bottom: 90px;
    }
    .tmp-banner-one-area.style-4 .thumbnail-author img {
        width: 300px;
        height: 300px;
        min-width: 300px;
    }
}
@media only screen and (max-width: 767px) {
    .tmp-banner-one-area.style-4 { padding-top: 120px; }
}
.hero-tagline {
    max-width: 720px;
    margin: 24px auto 0;
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-gray);
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 32px;
    height: 56px;
    border: 1px solid var(--color-primary);
    border-radius: 100px;
    color: var(--color-white);
    font-weight: 600;
    font-size: 16px;
    transition: .3s;
}
.btn-outline-gold:hover { background: var(--color-primary); color: var(--color-secondary); }
.btn-outline-gold i { font-size: 20px; }
.hero-cv-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--color-gray);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.hero-cv-link:hover { color: var(--color-primary); }
.hero-proof {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 32px;
    color: var(--color-gray);
    font-size: 15px;
}
.hero-proof li { margin: 0; display: flex; align-items: center; gap: 8px; }
.hero-proof strong { color: var(--color-white); font-size: 18px; }
.hero-proof i { color: var(--color-primary); }
.hero-proof a { color: var(--color-gray); }
.hero-proof a:hover { color: var(--color-primary); }

/* ---------- How I work ---------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.process-step {
    background: var(--color-card);
    border: 1px solid #262626;
    border-radius: 16px;
    padding: 28px 22px;
    height: 100%;
    transition: border-color .3s, transform .3s;
}
.process-step:hover { border-color: var(--color-primary); transform: translateY(-4px); }
.process-step .step-num {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.process-step h3 { font-size: 22px; margin-bottom: 10px; }
.process-step p { color: var(--color-gray); font-size: 15px; line-height: 1.6; margin: 0; }
@media (max-width: 1199px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .process-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ (native <details>, no JS needed) ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
    background: var(--color-card);
    border: 1px solid #262626;
    border-radius: 14px;
    margin-bottom: 14px;
    transition: border-color .3s;
}
.faq-item[open] { border-color: var(--color-primary); }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 56px 22px 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 26px;
    font-weight: 400;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 24px 22px; color: var(--color-gray); line-height: 1.7; }

/* ---------- Platforms (Upwork / Fiverr) ---------- */
.platform-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.platform-links a { height: 46px; font-size: 15px; padding: 0 22px; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    padding: 0 20px 0 16px;
    border-radius: 100px;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
    transition: transform .3s;
}
.whatsapp-float:hover { color: #fff; transform: translateY(-3px); }
.whatsapp-float i { font-size: 28px; }
@media (max-width: 575px) {
    .whatsapp-float { padding: 0; width: 56px; justify-content: center; left: 16px; bottom: 16px; }
    .whatsapp-float-text { display: none; }
}

/* ---------- "Why choose me" photo ---------- */
/* width/height attributes reserve space (no layout jump); keep the real aspect ratio */
.service-card-user-image img { max-width: 100%; height: auto; }

/* =========================================================
   Projects — same layout as ArrowTech (work-card / work-details),
   recolored for this site: dark background + gold (--color-primary).
   ArrowTech token  ->  here
     white card       ->  --pf-card (#1b1b1c)
     maroon heading   ->  --color-white
     red/orange       ->  --color-primary (gold)
     cream chip       ->  --pf-gold-soft
   ========================================================= */
:root {
    --pf-card: var(--color-card, #1b1b1c);
    --pf-border: #262626;
    --pf-border-strong: #3a3a3a;
    --pf-gold: var(--color-primary, #d3c06e);
    --pf-gold-light: #ecdc9a;
    --pf-gold-soft: rgba(211, 192, 110, .08);
    --pf-gold-line: rgba(211, 192, 110, .22);
    --pf-gradient: linear-gradient(115deg, #8a7a3c 0%, var(--pf-gold) 55%, var(--pf-gold-light) 100%);
    --pf-gradient-dark: linear-gradient(165deg, #222019 0%, #0b0b0b 75%);
    --pf-shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, .6);
    --pf-shadow-lg: 0 30px 60px -25px rgba(0, 0, 0, .85);
    --pf-radius-lg: 28px;
    --pf-radius-md: 18px;
}

/* ---------- Grid + card ---------- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1080px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .work-grid { grid-template-columns: 1fr; } }

.work-card {
    background: var(--pf-card);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.work-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pf-shadow-lg);
    border-color: var(--pf-gold-line);
}

.work-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;              /* same shape on every screen size */
    background: var(--pf-gradient);    /* fallback when there is no image */
    border-bottom: 1px solid var(--pf-border);
    overflow: hidden;
    text-decoration: none;
}
.work-thumb--img { background: #0e0e0f; }
.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;                 /* image fills the whole box */
    display: block;
    transition: transform .5s ease;
}
.work-card:hover .work-thumb img { transform: scale(1.04); }

.work-tag {
    position: absolute;
    bottom: 12px;
    left: 16px;
    z-index: 3;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    background: rgba(6, 6, 6, .85);
    color: var(--pf-gold);
    border: 1px solid var(--pf-gold-line);
    padding: 6px 14px;
    border-radius: 100px;
    backdrop-filter: blur(6px);
}

.work-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.work-body h3 { font-size: 22px; line-height: 1.3; margin: 0 0 10px; color: var(--color-white); }
.work-body h3 a { color: inherit; }
.work-body h3 a:hover { color: var(--pf-gold); }
.work-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-gray);
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;             /* same height for every card */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-tech {
    list-style: none;
    padding: 0;
    margin: auto 0 0;                  /* pushes chips to the bottom of the card */
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.work-tech li {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--pf-gold);
    background: var(--pf-gold-soft);
    border: 1px solid var(--pf-gold-line);
    padding: 5px 12px;
    border-radius: 100px;
}

.work-link {
    margin-top: 16px;
    font-weight: 600;
    font-size: 15px;
    color: var(--pf-gold);
}
.work-link:hover { color: var(--color-white); }

/* ---------- Card videos (play on hover / when visible on mobile) ---------- */
.work-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0e0e0f;
    opacity: 0;                        /* the image stays visible until the video plays */
    transition: opacity .35s ease;
    z-index: 2;
    pointer-events: none;
}
.work-video.is-playing { opacity: 1; }

/* ---------- Project details page (/projects/{slug}) ---------- */
.work-details { padding: 150px 0 100px; }
.work-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--color-gray); margin-bottom: 28px; }
.work-breadcrumb a { color: var(--color-gray); }
.work-breadcrumb a:hover { color: var(--pf-gold); }
.work-breadcrumb [aria-current] { color: var(--color-white); font-weight: 600; }

.work-details-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.work-tag--soft { position: static; display: inline-block; margin-bottom: 16px; background: var(--pf-gold-soft); }
.work-details-title { font-size: clamp(30px, 4vw, 48px); line-height: 1.2; color: var(--color-white); margin-bottom: 16px; }
.work-details-lead { font-size: 18px; line-height: 1.7; color: var(--color-gray); margin: 0; }
.work-details-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }

.work-details-cover {
    background: var(--pf-card);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-lg);
    padding: 32px;
    box-shadow: var(--pf-shadow-sm);
}
.work-details-cover img { width: 100%; height: auto; max-height: 340px; object-fit: contain; display: block; border-radius: 12px; }
.work-details-cover--video { padding: 0; overflow: hidden; background: #0e0e0f; }
.work-details-cover--video video { display: block; width: 100%; height: auto; max-height: 420px; }

.work-details-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; margin-top: 56px; }
.work-details-grid > :only-child { grid-column: 1 / -1; }
.work-details-block {
    background: var(--pf-card);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-md);
    padding: 32px;
    margin-top: 24px;
}
.work-details-grid .work-details-block { margin-top: 0; }
.work-details-block h2 { font-size: 22px; color: var(--pf-gold); margin-bottom: 14px; }
.work-details-block p { color: #c9c9c9; font-size: 16px; line-height: 1.8; margin: 0; }
.work-details-block p + p { margin-top: 14px; }

.work-details-cta {
    margin-top: 56px;
    text-align: center;
    padding: 56px 24px;
    border-radius: var(--pf-radius-lg);
    background: radial-gradient(ellipse at top, rgba(211, 192, 110, .16), transparent 70%), var(--pf-gradient-dark);
    border: 1px solid var(--pf-gold-line);
}
.work-details-cta h2 { color: var(--color-white); font-size: clamp(26px, 3vw, 38px); margin-bottom: 10px; }
.work-details-cta p { color: var(--color-gray); font-size: 17px; margin-bottom: 26px; }

.work-more-title { margin: 72px 0 24px; font-size: 30px; color: var(--color-white); }

@media (max-width: 900px) {
    .work-details-hero, .work-details-grid { grid-template-columns: 1fr; }
    .work-details { padding-top: 110px; }
    .work-details-cover { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .work-card, .work-thumb img { transition: none; }
    .work-card:hover { transform: none; }
    .work-card:hover .work-thumb img { transform: none; }
}
