/*=================================================
            Variables
=================================================*/

:root {
    --green:   #00C853;
    --black:   #0D0D0D;
    --white:   #F5F5F5;
    --grey:    #888888;
    --surface: #141414;
    --border:  rgba(0, 200, 83, 0.25);
}

/*=================================================
            Accessibility — skip link, sr-only, focus
=================================================*/

/* Screen-reader only — visually hidden but in DOM */
.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;
}

/* Skip navigation link — visible only on keyboard focus */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    background: var(--green);
    color: #000;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
    outline: 3px solid var(--black);
    outline-offset: 2px;
}

/* Focus indicator — keyboard users only, works on both dark and light backgrounds */
:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
}

/* Ensure section anchors aren't hidden behind the fixed nav when focused or linked */
section[id],
main {
    scroll-margin-top: 80px;
}

/*=================================================
            Base / Typography
=================================================*/

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--black);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

h1 {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 4px;
}

p {
    font-size: 16px;
    line-height: 1.7em;
    font-weight: 400;
    word-spacing: 1px;
    letter-spacing: 0.3px;
}

a {
    color: var(--white);
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: none;
    color: var(--green);
}

span {
    color: var(--green);
}

ul {
    padding-left: 0;
    list-style-type: none;
    margin: 0;
}

/*=================================================
            Buttons
=================================================*/

.btn {
    border-radius: 0;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 13px;
    padding: 13px 28px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 15px;
}

.btn-rigsaw {
    background-color: var(--green);
    color: #000;
}

.btn-rigsaw:hover {
    background-color: #00a844;
    color: #000;
}

.btn-outline-rigsaw {
    background-color: transparent;
    border: 1px solid var(--green);
    color: var(--green);
    margin-left: 12px;
}

.btn-outline-rigsaw:hover {
    background-color: var(--green);
    color: #000;
}

.btn-submit {
    width: 100%;
    margin-bottom: 0;
}

/*=================================================
            Form
=================================================*/

.form-control {
    border-radius: 0;
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    background-color: rgba(255,255,255,0.08);
    border-color: var(--green);
    color: var(--white);
    box-shadow: none;
}

.form-control::-webkit-input-placeholder { color: var(--grey); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; }
.form-control::-moz-placeholder          { color: var(--grey); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; }
.form-control:-ms-input-placeholder      { color: var(--grey); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; }
.form-control:-moz-placeholder           { color: var(--grey); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; }


/*=================================================
            Navbar
=================================================*/

.main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    background-color: rgba(13,13,13,0.97);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    height: 68px;
}

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--green);
    letter-spacing: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo:hover {
    color: var(--green);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.nav-links li a {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(245,245,245,0.75);
    padding: 8px 14px;
    display: block;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--green);
}

.nav-links li a.nav-cta {
    border: 1px solid var(--green);
    color: var(--green);
    padding: 8px 18px;
    margin-left: 8px;
}

.nav-links li a.nav-cta:hover {
    background-color: var(--green);
    color: #000;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/*=================================================
            Common Section Styles
=================================================*/

.section {
    padding: 100px 0;
    position: relative;
}

.hero-section {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--black);
    overflow: hidden;
    margin-top: 68px;
}

.about-section    { background-color: var(--surface); }
.services-section { background-color: var(--black); }
.process-section  { background-color: var(--surface); }
.portfolio-section { background-color: var(--black); }
.contact-section  { background-color: var(--surface); }

.section-intro {
    text-align: center;
    margin-bottom: 60px;
}

.section-intro h2 {
    font-size: 2.4rem;
    letter-spacing: 5px;
    color: var(--white);
    margin-bottom: 18px;
}

.section-intro hr {
    border: none;
    border-top: 2px solid var(--green);
    width: 40px;
    margin: 0 auto 24px auto;
}

.section-intro p {
    font-size: 17px;
    font-weight: 400;
    color: var(--grey);
    max-width: 600px;
    margin: 0 auto;
}

/*=================================================
            Hero load animations (CSS-only, no WOW)
=================================================*/

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-animate-1 {
    animation: heroFadeUp 0.6s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.hero-animate-2 {
    animation: heroFadeUp 0.5s ease forwards;
    animation-delay: 0.25s;
    opacity: 0;
}

.hero-animate-3 {
    animation: heroFadeUp 0.5s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

/*=================================================
            Hero Section
=================================================*/

.hero-inner {
    max-width: 720px;
    margin-bottom: 60px;
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--green);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-headline span {
    color: var(--green);
}

.hero-body {
    font-size: 17px;
    color: var(--grey);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-ctas {
    margin-bottom: 0;
}

.hero-stats {
    padding: 28px 0 0 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px;
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.stats-tag {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
    background-color: var(--green);
    padding: 3px 10px;
    display: inline-block;
}

.stats-context {
    font-size: 12px;
    color: var(--grey);
    letter-spacing: 0.5px;
    font-style: italic;
}

.stats-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.stat {
    text-align: left;
    padding-right: 32px;
}

.stat-platform {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--grey);
    margin-bottom: 8px;
}

.stat-platform i {
    color: var(--green);
    margin-right: 4px;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--grey);
    margin-bottom: 4px;
}

.stat-avg {
    font-size: 11px;
    color: rgba(136,136,136,0.7);
    letter-spacing: 0.3px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255,255,255,0.12);
    margin: 0 40px 0 0;
    flex-shrink: 0;
}

/* Decorative cut lines */
.hero-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco-line {
    position: absolute;
    background-color: var(--green);
    opacity: 0.12;
}

.deco-h1 {
    top: 30%;
    right: 0;
    width: 45%;
    height: 1px;
}

.deco-h2 {
    top: 60%;
    right: 5%;
    width: 25%;
    height: 1px;
}

.deco-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.3;
}

.deco-tl {
    top: 80px;
    right: 80px;
    border-top: 2px solid var(--green);
    border-left: 2px solid var(--green);
}

.deco-br {
    bottom: 60px;
    right: 120px;
    border-bottom: 2px solid var(--green);
    border-right: 2px solid var(--green);
}

/* Hero social links */
.social-links {
    padding-top: 20px;
}

.social-links .share-button li {
    display: inline-block;
}

/*=================================================
            Icon Box
=================================================*/

.icon-box {
    margin-right: 14px;
    margin-bottom: 14px;
    width: 45px;
    height: 45px;
    display: inline-table;
    border: 1px solid rgba(245,245,245,0.3);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    transition: all 0.4s ease;
}

.icon-box i {
    color: var(--white);
    font-size: 16px;
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    transition: all 0.4s ease;
}

.icon-box:hover {
    background-color: var(--green);
    border-color: var(--green);
}

.icon-box:hover i {
    color: #000;
}

/*=================================================
            Content Box (About section cards)
=================================================*/

.about-section .row:last-child {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.about-section .row:last-child::before,
.about-section .row:last-child::after {
    display: none;
}

.about-section .row:last-child > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.about-section .row:last-child > [class*="col-"] > .content-box {
    flex: 1;
    margin-bottom: 0;
    height: 100%;
}

.content-box {
    background-color: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 30px;
    padding: 4px;
    transition: border-color 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-box:hover {
    border-color: rgba(0,200,83,0.3);
}

.content {
    background-color: rgba(255,255,255,0.03);
    color: var(--white);
    padding: 50px 36px;
    text-align: left;
    transition: background-color 0.4s ease;
    flex: 1;
}

.content-box:hover .content {
    background-color: rgba(0,200,83,0.06);
}

.content h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.content hr {
    width: 30px;
    border: none;
    border-top: 2px solid var(--green);
    margin: 0 0 24px 0;
}

.content p {
    color: var(--grey);
    font-size: 15px;
}

/*=================================================
            Services — Process Items
=================================================*/

.about-process-item {
    margin-bottom: 24px;
    padding: 4px;
    background-color: transparent;
}

.item-content {
    background-color: var(--white);
    color: #000;
    padding: 28px;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.about-process-item-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    text-align: left;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    color: #000;
}

.about-process-item-description {
    text-align: left;
    color: #444;
    font-size: 14px;
    margin-top: 10px;
}

.about-process-icon {
    width: 60px; height: 60px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--green);
    color: #000;
    margin: 0 auto 16px auto;
    display: table;
    overflow: hidden;
    transition: all 0.4s ease;
}

.about-process-icon i {
    display: table-cell;
    vertical-align: middle;
    font-size: 28px;
    transition: transform 0.8s ease;
}

.about-process-item:hover .item-content {
    background-color: var(--green);
    box-shadow: 0 8px 30px rgba(0,200,83,0.25);
}

.about-process-item:hover .about-process-icon {
    border: 2px solid #000;
}

.about-process-item:hover .about-process-icon i {
    transform: rotate(360deg);
}

.about-process-item:hover .about-process-item-heading,
.about-process-item:hover .about-process-item-description {
    color: #000;
}

@media (min-width: 992px) and (max-width: 1200px) {
    .about-process-item-description { margin-left: 40px; }
    .about-process-item-heading     { margin-left: 40px; }
}

/*=================================================
            Process Section
=================================================*/

.process-step {
    text-align: left;
    margin-bottom: 60px;
}

.process-step h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0;
    transition: color 0.4s ease;
}

.process-icon {
    width: 60px; height: 60px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    margin: 16px 0;
    display: table;
    overflow: hidden;
    transition: all 0.4s ease;
}

.process-icon i {
    display: table-cell;
    font-size: 28px;
    vertical-align: middle;
    text-align: center;
    transition: all 0.4s ease;
}

.process-step p {
    font-size: 14px;
    color: var(--grey);
    line-height: 1.65;
}

.process-step:hover h3,
.process-step:hover .process-icon i {
    color: var(--green);
}

.process-step:hover .process-icon {
    border-color: var(--green);
    transform: rotateY(180deg);
}

/*=================================================
            Portfolio Section
=================================================*/

.portfolio-filter .controls {
    margin-bottom: 40px;
    text-align: center;
}

.portfolio-filter .controls .filter {
    border: none;
    background-color: transparent;
    color: var(--grey);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-right: 10px;
    padding: 6px 0;
    cursor: pointer;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.portfolio-filter .controls .filter:hover {
    color: var(--white);
}

.portfolio-filter .controls .filter.active {
    color: var(--green);
    border-bottom-color: var(--green);
}

#portfolioItems .mix {
    display: none;
}

.portfolio-items .portfolio-item {
    position: relative;
    margin: 10px 0;
}

.portfolio-items .portfolio-item .item-img {
    padding: 6px;
    background-color: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.portfolio-items .portfolio-item a,
.portfolio-items .portfolio-item a img {
    display: block;
    position: relative;
}

.portfolio-items .portfolio-item a {
    overflow: hidden;
}

.portfolio-items .portfolio-item a div {
    position: absolute;
    background-color: rgba(0,200,83,0.75);
    width: 100%; height: 100%;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-items .portfolio-item a:hover div {
    opacity: 1;
}

.portfolio-items .portfolio-item a div h3 {
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 30px;
    text-align: center;
    text-transform: uppercase;
}

.portfolio-items .portfolio-item a div span {
    border: 2px solid #000;
    border-radius: 50%;
    color: #000;
    display: table;
    font-size: 16px;
    position: absolute;
    width: 36px; height: 36px;
    right: 10%; bottom: 10%;
}

.portfolio-items .portfolio-item a div span i {
    display: table-cell;
    vertical-align: middle;
}

/* Lightbox */
.nl-hide { display: none; }

.nivo-lightbox-theme-default .nivo-lightbox-inline { padding: 0; }

.img-lightbox {
    background-color: #fff;
    color: #000;
}

.img-sidebar {
    position: relative;
    height: 75vh;
    margin: 15px 0;
    text-align: left;
}

.portfolio-description {
    padding: 30px;
    position: absolute;
    width: 100%;
    background-color: #f0f0f0;
    height: 100%;
    overflow-y: auto;
}

.img-sidebar .img-title h2 {
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    text-transform: capitalize;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.img-sidebar .img-title hr {
    width: 30px;
    border: none;
    border-top: 2px solid #000;
    float: left;
    margin: 0;
}

.sidebar-header {
    margin-bottom: 32px;
}

.img-sidebar .sidebar-content {
    padding-bottom: 15px;
}

.img-sidebar .sidebar-content p {
    color: #333;
    font-size: 14px;
    line-height: 1.7;
}

.portfolio-details {
    padding-bottom: 24px;
}

.sidebar-meta { margin-bottom: 12px; }
.sidebar-meta h3 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #888; margin-bottom: 2px; }
.sidebar-meta p  { font-size: 14px; color: #222; margin: 0; }

.img-sidebar .share-button li .icon-box {
    width: 34px; height: 34px;
    border: 1px solid #000;
    margin-right: 8px;
}

.img-sidebar .share-button li .icon-box i { color: #000; }

.img-sidebar .share-button li .icon-box:hover {
    border-color: var(--green);
    background-color: var(--green);
}

.img-sidebar .share-button li .icon-box:hover i { color: #000; }

.nivo-lightbox-inline { background-color: #e0e0e0; }

/*=================================================
            Contact Section
=================================================*/

.contact-info {
    text-align: left;
    margin-bottom: 40px;
    padding-top: 20px;
}

.contact-address {
    margin: 0 0 40px 0;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.contact-address li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--grey);
}

.contact-address li .icon-box {
    margin-right: 20px;
    margin-bottom: 0;
    flex-shrink: 0;
}

/*=================================================
            Footer
=================================================*/

.main-footer {
    background-color: var(--black);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--green);
    letter-spacing: 7px;
}

.footer-copy {
    font-size: 12px;
    color: var(--grey);
    letter-spacing: 0.5px;
    margin: 0;
}

/*=================================================
            Share / Social buttons
=================================================*/

.share-button li {
    display: inline-block;
}

/*=================================================
            Cookie Banner
=================================================*/

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background-color: #141414;
    border-top: 1px solid rgba(0,200,83,0.25);
    padding: 18px 0;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner-inner p {
    font-size: 13px;
    color: var(--grey);
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-inner p a {
    color: var(--green);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,200,83,0.3);
}

.cookie-banner-inner p a:hover {
    border-bottom-color: var(--green);
}

.cookie-actions {
    flex-shrink: 0;
}

.btn-cookie {
    padding: 8px 20px;
    font-size: 12px;
    margin: 0;
}

.footer-copy a {
    color: var(--grey);
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-copy a:hover {
    color: var(--green);
    border-bottom-color: rgba(0,200,83,0.4);
}

/*=================================================
            Media Queries
=================================================*/

@media (max-width: 991px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0; right: 0;
        background-color: rgba(13,13,13,0.98);
        border-top: 1px solid var(--border);
        padding: 16px 0 24px 0;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        padding: 12px 30px;
        font-size: 13px;
    }

    .nav-links li a.nav-cta {
        margin: 8px 30px 0 30px;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-section {
        padding: 40px 0 60px 0;
        min-height: auto;
    }

    .hero-headline {
        font-size: 2.8rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .stat {
        padding-right: 0;
    }

    .btn-outline-rigsaw {
        margin-left: 0;
        margin-top: 8px;
    }

    .deco-tl, .deco-br { display: none; }
}

@media (max-width: 767px) {
    .section { padding: 70px 0; }

    .process-step { text-align: center; }
    .process-icon { margin: 14px auto; }

    .about-process-item-heading { margin: 12px 0; text-align: center; }

    .hero-inner { padding: 0 15px; }

    .hero-headline { font-size: 2.2rem; }

    .section-intro h2 { font-size: 1.8rem; letter-spacing: 3px; }

    .content-box { padding: 3px; }
    .content     { padding: 36px 24px; }
}
