/* =====================================================================
   Pixels Planet: shared design layer for all inner pages
   Loaded AFTER each page's own <style>, so it re-themes the old markup.
   Palette matches the homepage: navy + muted red, footage-led backgrounds.
   Paths below are relative to this file (assets/).
   ===================================================================== */

/* ---------- Tokens (override the old per-page variables) ---------- */
:root {
    --bg: #070d1a;
    --bg-2: #0c1426;
    --surface: #111b31;
    --line: rgba(255, 255, 255, .10);
    --accent-red: #b03e3c;
    --accent-coral: #de8a80;
    --radius: 18px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    /* old tokens used throughout the page CSS */
    --primary: #de8a80;
    --secondary: #c4504b;
    --accent: #c4504b;
    --dark: #050a14;
    --light: #111b31;
    --text: #e8edf7;
    --text-light: #9aa8c2;
    --bg-dark: #070d1a;
    --bg-darker: #050a14;
    --border-dark: rgba(255, 255, 255, .10);
    --transition: all .4s var(--ease);
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 520px at 100% 0%, rgba(176, 62, 60, .10), transparent 60%),
        radial-gradient(800px 520px at 0% 45%, rgba(66, 153, 225, .07), transparent 60%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Sora', sans-serif;
    letter-spacing: -.015em;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

::selection {
    background: rgba(196, 80, 75, .45);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--accent-coral);
    outline-offset: 3px;
    border-radius: 6px;
}

/* light film grain */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 150;
    pointer-events: none;
    opacity: .06;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Buttons ---------- */
.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1.5px solid var(--accent-red);
    background: var(--accent-red);
    color: #fff;
    font: 700 .82rem 'Space Grotesk', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s, color .3s;
    box-shadow: 0 10px 28px -12px rgba(176, 62, 60, .8);
}

.btn:hover {
    transform: translateY(-2px);
    background: #c24848;
    border-color: #c24848;
    color: #fff;
}

.btn-outline,
.btn.btn-outline {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .32);
    color: #fff;
    box-shadow: none;
    backdrop-filter: blur(6px);
}

.btn-outline:hover,
.btn.btn-outline:hover {
    background: rgba(255, 255, 255, .14);
    border-color: #fff;
    color: #fff;
}

/* ---------- Header ---------- */
header {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    z-index: 100;
    padding: 14px 0;
    background: transparent;
    box-shadow: none;
    transition: background .35s, box-shadow .35s, padding .35s;
}

header.scrolled {
    background: transparent;
    box-shadow: 0 1px 0 var(--line);
    padding: 8px 0;
}

/* blur lives on a pseudo-element so it does not trap the fixed mobile menu */
header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(7, 13, 26, .84);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity .35s;
}

header.scrolled::before {
    opacity: 1;
}

header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
}

header .logo img {
    height: 46px;
    width: auto;
    margin-right: -4px;
}

header .logo-text {
    display: flex;
    flex-direction: column;
    font: 800 .82rem/1.05 'Sora', sans-serif;
    letter-spacing: .26em;
    color: #fff;
}

header .logo-line1,
header .logo-line2 {
    font: inherit;
    letter-spacing: inherit;
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    position: relative;
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .93rem;
    color: #d5dcec;
    text-decoration: none;
    background: transparent;
    transition: color .25s, background .25s;
}

.nav-links a::after {
    display: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, .10);
}

.nav-links a.contact-btn {
    background: var(--accent-red);
    color: #fff;
    margin-left: 8px;
}

.nav-links a.contact-btn:hover {
    background: #c24848;
}

.hamburger {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 6px 10px;
    position: relative;
    z-index: 2;
}

/* ---------- Hero bands (every page's top banner) ---------- */
.about-header,
.services-header,
.portfolio-header,
.contact-header,
.service-header,
.project-header,
.page-header,
.blog-header {
    --hero-img: url('../bg.webp');
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 170px 0 120px;
    margin: 0;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(7, 13, 26, .55) 0%, rgba(7, 13, 26, .30) 50%, rgba(7, 13, 26, .85) 100%),
        var(--hero-img) center / cover no-repeat;
}

/* film-strip edge */
.about-header::after,
.services-header::after,
.portfolio-header::after,
.contact-header::after,
.service-header::after,
.project-header::after,
.page-header::after,
.blog-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0%, #b03e3c 25%, #de8a80 50%, #b03e3c 75%, transparent 100%) left bottom / 100% 2px no-repeat,
        linear-gradient(180deg, transparent 0%, rgba(7, 13, 26, .92) 100%);
}

.about-header h1,
.services-header h1,
.portfolio-header h1,
.contact-header h1,
.service-header h1,
.project-header h1,
.page-header h1,
.blog-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .5);
}

.about-header p,
.services-header p,
.portfolio-header p,
.contact-header p,
.service-header p,
.project-header p,
.page-header p,
.blog-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: #cfd8ea;
    opacity: 1;
    text-shadow: 0 1px 18px rgba(0, 0, 0, .5);
}

/* a different still per page */
.about-header {
    --hero-img: url('../bg.webp');
}

.services-header {
    --hero-img: url('../bg.webp');
}

.portfolio-header {
    --hero-img: url('../bg.webp');
}

.contact-header {
    --hero-img: url('../bg.webp');
}

.blog-header {
    --hero-img: url('../bg.webp');
}

.page-header {
    --hero-img: url('../bg.webp');
}

.project-header {
    --hero-img: url('../bg.webp');
}

.hero-corporate {
    --hero-img: url('../bg.webp');
}

.hero-marketing {
    --hero-img: url('../bg.webp');
}

.hero-influencer {
    --hero-img: url('../bg.webp');
}

.hero-photography {
    --hero-img: url('../bg.webp');
}

.hero-realestate {
    --hero-img: url('../bg.webp');
}

.hero-software {
    --hero-img: url('../bg.webp');
}

.hero-digital {
    --hero-img: url('../bg.webp');
}

/* ---------- Content sections ---------- */
section {
    position: relative;
}

h2 {
    color: #fff;
}

p {
    color: inherit;
}

/* cards: glass surface */
.team-member,
.mission,
.vision,
.stat-item,
.service-card,
.feature-card,
.benefit-card,
.process-step,
.value-card,
.testimonial-card,
.blog-card,
.post-card,
.contact-form,
.contact-info,
.info-card,
.newsletter-form {
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: transform .4s var(--ease), border-color .4s, background .4s;
}

.team-member:hover,
.service-card:hover,
.feature-card:hover,
.blog-card:hover,
.post-card:hover {
    border-color: rgba(222, 138, 128, .5);
    background: rgba(255, 255, 255, .07);
}

.team-member {
    border-top: 1px solid var(--line);
}

/* forms */
input,
select,
textarea {
    font-family: 'Space Grotesk', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea,
.newsletter-form input {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color .25s, box-shadow .25s, background .25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-coral);
    box-shadow: 0 0 0 3px rgba(222, 138, 128, .22);
    background: rgba(255, 255, 255, .08);
}

.form-group select option {
    background: #0c1426;
    color: #fff;
}

.form-group label {
    color: #dbe3f3;
    font-weight: 600;
}

/* ---------- Call-to-action band ---------- */
.cta-section {
    padding: clamp(50px, 7vw, 90px) 0;
    margin: 0;
    background: transparent;
    color: #fff;
    text-align: center;
    overflow: visible;
}

.cta-section>.container {
    width: min(1200px, 100% - 40px);
    max-width: none;
    padding: clamp(40px, 6vw, 70px) 24px;
    border-radius: 28px;
    background:
        linear-gradient(90deg, rgba(90, 18, 18, .93) 0%, rgba(120, 32, 30, .80) 45%, rgba(150, 48, 46, .42) 100%),
        url('bg/cta.webp') center 22% / cover no-repeat;
    box-shadow: 0 40px 80px -40px rgba(176, 62, 60, .7);
}

.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 14px;
    color: #fff;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, .92);
    font-size: 1.05rem;
}

.cta-section .cta-buttons,
.cta-section .cta-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.cta-section .cta-content {
    flex-direction: column;
    align-items: center;
}

.cta-section .btn {
    background: #fff;
    border-color: #fff;
    color: #8e2a2a;
    box-shadow: none;
}

.cta-section .btn:hover {
    background: #fff3f2;
    color: #8e2a2a;
}

.cta-section .btn.btn-outline,
.cta-section .btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, .75);
    color: #fff;
}

.cta-section .btn-outline:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

/* ---------- Footer ---------- */
footer {
    background: #050a14;
    border-top: 1px solid var(--line);
    padding: 70px 0 26px;
    margin: 0;
    color: var(--text);
}

footer .footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 44px;
}

footer h3 {
    font-size: .85rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 18px;
}

footer p,
footer li {
    color: var(--text-light);
    font-size: .95rem;
}

footer .footer-about p {
    margin: 0 0 20px;
    max-width: 340px;
}

footer .footer-links {
    list-style: none;
    display: grid;
    gap: 10px;
    padding: 0;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color .25s;
}

footer a:hover {
    color: #fff;
}

footer .footer-column p i {
    color: var(--accent-coral);
    width: 18px;
    margin-right: 8px;
}

footer .social-links {
    display: flex;
    gap: 10px;
}

footer .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    color: #cbd5e8;
    background: transparent;
    transition: background .3s, border-color .3s, color .3s;
}

footer .social-links a:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

footer .footer-bottom {
    margin-top: 54px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--text-light);
    font-size: .88rem;
}

footer .footer-bottom-links {
    display: flex;
    gap: 22px;
}

/* ---------- Floating buttons ---------- */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
}

.whatsapp-float .whatsapp-link,
.whatsapp-link {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2fb863;
    color: #fff;
    font-size: 1.7rem;
    box-shadow: 0 10px 30px -8px rgba(47, 184, 99, .7);
}

.scroll-top {
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--line);
    color: #fff;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: none;
}

.scroll-top:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    footer .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(320px, 85vw);
        height: 100vh;
        background: #0a1222;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        padding: 90px 22px 30px;
        transform: translateX(100%);
        transition: transform .4s var(--ease);
        box-shadow: -30px 0 60px rgba(0, 0, 0, .5);
        z-index: 1;
    }

    .nav-links.active {
        transform: none;
    }

    .nav-links a {
        font-size: 1.05rem;
        padding: 14px 16px;
    }

    .nav-links a.contact-btn {
        margin: 12px 0 0;
        text-align: center;
    }

    .about-header,
    .services-header,
    .portfolio-header,
    .contact-header,
    .service-header,
    .project-header,
    .page-header,
    .blog-header {
        padding: 130px 0 90px;
    }
}

@media (max-width: 620px) {
    footer .footer-content {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .whatsapp-float {
        right: 12px;
        bottom: 14px;
    }

    .whatsapp-float .whatsapp-link {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================================
   Polish pass: page-specific components
   ===================================================================== */
body>section,
main>section {
    margin-bottom: 0;
}

li::marker {
    color: var(--accent-coral);
}

/* more glass cards (service pages, blog, project pages) */
.service-tile,
.detail-box,
.process-step,
.related-item,
.testimonial-container,
.blog-post,
.sidebar-widget,
.popular-post,
.newsletter-content,
.service-details>div,
.project-details>div {
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: transform .4s var(--ease), border-color .4s, background .4s;
}

.service-tile:hover,
.process-step:hover,
.related-item:hover,
.blog-post:hover {
    border-color: rgba(222, 138, 128, .5);
    background: rgba(255, 255, 255, .07);
}

/* media gets rounded corners + depth */
.service-detail img,
.story-image img,
.gallery-item,
.gallery-item img,
.service-video,
.project-video,
.post-image,
.post-image img,
.related-item img {
    border-radius: var(--radius);
}

.service-detail img,
.story-image img,
.service-video,
.project-video {
    box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .9);
}

/* alternating bands */
.service-detail.bg-light {
    background: rgba(255, 255, 255, .03);
    border-block: 1px solid var(--line);
}

.mission-vision {
    background:
        radial-gradient(700px 400px at 10% 0%, rgba(176, 62, 60, .14), transparent 60%),
        radial-gradient(700px 400px at 100% 100%, rgba(66, 153, 225, .10), transparent 60%);
}

/* footage-backed bands, like the homepage */
.stats-section,
.process-section {
    background:
        linear-gradient(rgba(7, 13, 26, .72), rgba(7, 13, 26, .86)),
        url('bg/process.webp') center / cover no-repeat;
    border-block: 1px solid var(--line);
}

.testimonial-section {
    background:
        linear-gradient(rgba(7, 13, 26, .84), rgba(7, 13, 26, .92)),
        url('bg/ambient.webp') center / cover no-repeat;
    border-block: 1px solid var(--line);
}

.newsletter-section {
    background:
        linear-gradient(rgba(7, 13, 26, .78), rgba(7, 13, 26, .9)),
        url('bg/car.webp') center / cover no-repeat;
    border-block: 1px solid var(--line);
}

.service-overview {
    background: transparent;
}

/* portfolio filter bar + tiles */
.portfolio-filter-section {
    margin-top: 0;
    background: rgba(7, 13, 26, .86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-block: 1px solid var(--line);
    box-shadow: none;
}

.filter-btn {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .20);
    color: #dbe3f3;
}

.filter-btn:hover {
    border-color: var(--accent-coral);
    color: #fff;
}

.filter-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(176, 62, 60, .9);
}

.portfolio-item {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .9);
}

.portfolio-overlay {
    background: linear-gradient(160deg, rgba(7, 13, 26, .88) 0%, rgba(120, 32, 30, .82) 100%);
}

/* policy / terms pages */
.highlight-box {
    background: rgba(255, 255, 255, .05);
    border-left: 3px solid var(--accent-red);
    border-radius: 12px;
}

/* tables (privacy policy) */
table {
    border-collapse: collapse;
}

th {
    color: var(--accent-coral);
}

/* pagination */
.pagination a,
.pagination span {
    border-radius: 10px;
}


/* ---------- Round 3 fixes ---------- */
.portfolio-filter-section {
    background: rgba(7, 13, 26, .88) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    margin-top: 0 !important;
    top: 60px !important;
    padding: 16px 10px 18px !important;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25) !important;
}

@media (max-width: 992px) {
    .service-container .service-image { order: 1; }
    .service-container .service-content { order: 2; }
}

@media (max-width: 768px) {
    .portfolio-filter-section {
        position: static !important;
        padding: 20px 10px 24px !important;
    }
}

/* team grid: centre the last row instead of leaving an orphan card */
.team-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-grid .team-member {
    flex: 0 1 calc(25% - 23px);
    min-width: 240px;
}


/* anchored sections: keep the heading clear of the fixed header */
html { scroll-padding-top: 90px; }
.service-detail { scroll-margin-top: 90px; padding-top: 24px; }

/* ---------- Service-page tiles: no boxed panel, centred rows, consistent cards ---------- */
.service-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px !important;
    padding: 56px 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    overflow: visible !important;
}

.service-grid .service-tile {
    flex: 0 1 calc(25% - 18px);
    min-width: 240px;
    padding: 28px 26px !important;
    text-align: left;
    position: relative;
}

.service-grid .service-tile::before {
    content: '';
    display: block;
    width: 34px;
    height: 3px;
    margin-bottom: 16px;
    border-radius: 3px;
    background: linear-gradient(90deg, #b03e3c, #de8a80);
}

.service-grid .service-tile h3 {
    text-align: left !important;
    color: #fff !important;
    font-size: 1.12rem;
    line-height: 1.3;
    margin-bottom: 12px !important;
}

.service-grid .service-tile p {
    color: rgba(255, 255, 255, .72) !important;
    font-size: .95rem;
    line-height: 1.65;
}

@media (max-width: 680px) {
    .service-grid .service-tile {
        flex: 1 1 100%;
        min-width: 0;
    }
}

/* forms and buttons use the site font */
button, input, textarea, select { font-family: inherit; }

/* slide-in animations start offset sideways; never let that create horizontal scroll */
.service-detail, section { overflow-x: clip; }
html, body { overflow-x: clip; }

/* visually hidden, still available to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
