:root {
    /* Colors */
    --color-neutral: #F1F3F6;
    --color-tertiary: #2B2B2B;
    --color-text: #FFFFFF;
    --color-primary: #3770B2;
    --color-white: #FFFFFF;

    --color-gray: #C2C2C2;

    /* bg colors */
    --bg-secondary: rgba(232, 231, 231, 0.6);

    /* Fonts */
    --font-main: 'Montserrat', sans-serif;
    --font-secondary: 'Helvetica Neue LT Com', sans-serif;

    /* font weights */
    --font-weight-regular: 400;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Header spacing */
    --header-padding-x: 80px;
    --header-padding-y: 40px;

    /* Menu */
    --menu-font-size: 16px;
    --menu-line-height: 24px;
    --menu-gap: 32px;
    
    /* Dynamic Typography */
    --text-body-dynamic: 1rem; /* 16px base */
}

/* Scaling Typography for Ultra-Wide Screens */
@media (min-width: 1800px) {
    :root {
        --text-body-dynamic: 1.25rem; /* scales to 20px */
        --menu-font-size: 1.25rem; /* scales navbar to 20px */
    }
}

@media (min-width: 2300px) {
    :root {
        --text-body-dynamic: 1.5rem; /* scales to 24px */
        --menu-font-size: 1.5rem;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Helvetica Neue LT Com';
    src: url('../assets/fonts/Helvetica Neue LT Com 77 Bold Condensed.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html {
    font-size: 16px;
}

/* Reset body */
body {
    margin: 0;
    font-family: var(--font-main);
    background: var(--color-neutral);
    color: var(--color-tertiary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.success {
    color: #4CAF50;
}

.error {
    color: #F44336;
}

/* Hero Banner Section */
.hero-banner-section {
    background: linear-gradient(315deg, #485461 8%, #404A56 48%, #2D3845 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-container {
    padding-left: 4rem;
    padding-right: 4rem;
}

@media (max-width: 991.98px) {
    .hero-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Header Styles */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: 2rem;
}

.navbar-dark {
    background: transparent;
}


.navbar-brand {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-white) !important;
    text-decoration: none;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-white);
    color: #2D3845;
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.logo-text {
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.05em;
}

.header-logo-img {
    height: 40px;
    width: auto;
}

@media (max-width: 420px) {
    .header-logo-img {
        height: 32px;
    }
    .navbar-toggler-icon {
        width: 1.3rem;
        height: 1.3rem;
    }
}

@media (max-width: 350px) {
    .header-logo-img {
        height: 24px;
    }
    .navbar-toggler-icon {
        width: 1.1rem;
        height: 1.1rem;
    }
}

.navbar-nav .nav-link {
    color: var(--color-white) !important;
    font-size: var(--menu-font-size);
    font-weight: var(--font-weight-regular);
    padding: 0.5rem 1rem !important;
    transition: opacity 0.3s ease;
}

.navbar-nav .nav-link:hover {
    opacity: 0.8;
}

.btn-header-cta {
    background: var(--color-neutral);
    border: none;
    color: var(--color-tertiary);
    padding: 0.625rem 1.5rem;
    border-radius: 4px;
    font-weight: var(--font-weight-medium);
    font-size: var(--menu-font-size);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-header-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

/* Hero Content */
.hero-content-left {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.hero-title {
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-bold);
    color: var(--color-neutral);
    font-size: 110px;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title-line h1 {
    font-size: 6.825rem;
    line-height: 5.625rem;
}

.hero-title-line {
    display: block;
}

.hero-subtitle {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: var(--font-weight-normal);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.btn-hero-cta {
    background: var(--color-neutral);
    border: none;
    color: var(--color-tertiary);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    transform: translateY(-2px);
}

.hero-cta-mobile-wrapper {
    display: none;
}

.btn-hero-cta-desktop {
    display: inline-block;
}

.btn-hero-cta-mobile {
    display: none;
}

/* Hero Right - Monitor */
.hero-content-right {
    padding-top: 8rem;
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-monitor-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.hero-monitor-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.hero-monitor-img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Social Media Icons */
.hero-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8rem;
}

.social-icons-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.social-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 991.98px) {

    .hero-banner-section .row {
        min-height: auto;
        margin: 0;
    }

    .hero-content-left {
        padding-top: 5rem;
        padding-bottom: 0.75rem;
        text-align: center;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        padding-top: 66px;
    }

    .hero-content-right {
        padding-top: 0.5rem;
        padding-bottom: 0.75rem;
        padding-left: 0;
        padding-right: 0;
    }

    .hero-monitor-wrapper {
        max-width: 100%;
        display: flex;
        justify-content: center;
        padding: 0;
    }

    .hero-monitor-img {
        transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
        max-width: 95%;
        width: 100%;
    }

    .hero-cta-mobile-wrapper {
        display: block;
        text-align: center;
        padding: 0.75rem 0;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .btn-hero-cta-desktop {
        display: none !important;
    }

    .btn-hero-cta-mobile {
        display: inline-block !important;
        margin: 0 auto;
    }

    .hero-social-icons {
        padding-top: 0.75rem;
        padding-bottom: 2rem;
        display: flex;
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .social-icons-vertical {
        flex-direction: row;
        gap: 1rem;
    }

    .hero-title {
        font-size: 110px;
        margin-bottom: 0.75rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        padding: 0 0.5rem;
    }

    .main-header {
        padding-top: 1rem;
    }
 
    #navbarNav {
        background: var(--color-gray);
    }

    .navbar-nav .nav-link {
        color: #000 !important;
    }

    /* CTA mygtukas mobile */
    .btn-header-cta {
        background: var(--color-primary);
        color: #fff;
        border: none;
    }
    .swiper-pagination {
        bottom: 1px!important;
    }    
}

@media (max-width: 575.98px) {
    .hero-banner-section {
        min-height: auto;
        padding-bottom: 1.5rem;
        overflow-x: hidden;
    }

    .hero-content-left {
        padding-top: 66px;
        padding-bottom: 0.5rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .hero-content-right {
        padding-top: 0;
        padding-bottom: 0.5rem;
        padding-left: 0;
        padding-right: 0;
    }

    .hero-title {
        line-height: 1.1;
        margin-bottom: 0.5rem;
        letter-spacing: -0.01em;
        padding-top: 66px;
        padding-bottom: 24px;
    }

    .hero-title-line h1 {
        font-size: 3.625rem;
        line-height: 56px;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
        padding: 0 0.25rem;
        line-height: 1.5;
    }

    .hero-cta-mobile-wrapper {
        padding: 0.5rem 0;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .btn-hero-cta {
        padding: 0.75rem 1.75rem;
        font-size: 1rem;
        font-weight: var(--font-weight-medium);
    }

    .btn-header-cta {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }

    .btn-hero-cta-mobile {
        margin-bottom: 40px;
    }

    .hero-monitor-img {
        transform: perspective(800px) rotateY(-2deg) rotateX(1deg);
        max-width: 100%;
        width: 100%;
    }

    .hero-social-icons {
        padding-top: 0.5rem;
        padding-bottom: 1.5rem;
        padding-left: 0;
        padding-right: 0;
    }

    .social-icons-vertical {
        gap: 0.75rem;
    }

    .social-icon {
        width: 44px;
        height: 44px;
    }

    .social-icon img {
        width: 32px;
        height: 32px;
    }

    .swiper-pagination {
        bottom: 1px!important;
    }    
}

/* Our Mission Section */
.our-mission-section {
    background: #EEF2F6;
    padding: 80px;
}

.mission-top {
    align-items: flex-start;
}

.our-mission-text {
    font-size: 24px;
    line-height: 32px;
    color: var(--color-tertiary);
}

.mission-right {
    display: flex;
    justify-content: flex-end;
}

.mission-image {
    width: 520px;
    transform: rotate(-18.7deg);
    margin-top: -80px;
}

.mission-image:hover {
    transition: transform 0.6s cubic-bezier(.25,.8,.25,1);
}
@media (min-width: 769px) {
    .mission-image:hover {
        transform: rotate(-5deg);
    }
}
/* Uniqueness Section */
.uniqueness-section {
    margin-top: 80px;
}

.uniqueness-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--color-tertiary);
}

/* 2 stulpeliai */
.uniqueness-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 80px;
    row-gap: 12px;
}

/* Vienas elementas */
.uniqueness-item {
    display: flex;
    flex-direction: column;
}

/* Viršutinis brūkšnys */
.uniqueness-line {
    height: 2px;
    background: var(--color-tertiary);
    margin-bottom: 12px;
}

/* Numeris + tekstas */
.uniqueness-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.uniqueness-number {
    font-size: var(--text-body-dynamic);
    color: var(--color-primary);
}

.uniqueness-text {
    font-size: var(--text-body-dynamic);
    font-weight: 600;
    color: var(--color-tertiary);
}

@media (max-width: 768px) {

    /* VISAS SECTION */
    .our-mission-section {
        padding: 64px 24px 64px 24px;
    }

    /* TOP DALIS */
    .mission-top {
        flex-direction: column;
    }

    .mission-left {
        padding: 0;
        margin-bottom: 32px;
    }

    .our-mission-text {
        font-size: 16px;
        line-height: 24px;
        text-align: center;
    }

    /* IMAGE */
    .mission-right {
        justify-content: center;
        margin-bottom: 64px;
    }

    .mission-image {
        width: 100%;
        max-width: 320px;
        transform: none;
        margin: 0;
    }

    /* UNIQUENESS */
    .uniqueness-section {
        margin-top: 0;
        padding: 0;
    }

    .uniqueness-title {
        font-size: 16px;
        font-weight: 400;
        margin-bottom: 32px;
    }

    /* 1 stulpelis */
    .uniqueness-grid {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .uniqueness-item {
        padding: 0;
    }

    /* LINIJA PER VISĄ PLOTĮ, BET SU 24px */
    .uniqueness-line {
        margin: 0 0 24px 0;
    }

    .uniqueness-line::before {
        content: "";
        display: block;
        height: 2px;
        background: var(--color-tertiary);
        margin: 0 24px;
    }

    /* NUMERIS + TEKSTAS */
    .uniqueness-row {
        padding: 0 24px;
        gap: 24px;
        margin-bottom: 12px;
    }

    .uniqueness-number {
        font-size: 16px;
    }

    .uniqueness-text {
        font-size: 16px;
        font-weight: 600;
    }
}

/* Service Section */

.service-section,
.portfolio-section {
    padding: 80px;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.service-top,
.portfolio-top {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
}


.service-title,
.portfolio-title {
    font-family: var(--font-secondary);
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.service-divider,
.portfolio-divider {
    width: 2px;
    height: 120px;
    background: var(--color-primary);
}

.service-description,
.portfolio-description {
    justify-self: stretch;
    padding-left: 16px;
}

.service-description p,
.portfolio-description p {
    margin: 0;
    font-size: 20px;
    line-height: 32px;
    max-width: none;
}

.services-list {
    margin-top: 64px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.single-service {
    flex: 1 1 200px;
    max-width: 400px; /* Prevents infinite stretch on 4k monitors if orphaned */
    padding: 16px;
    min-height: 220px;
    text-decoration: none; /* If it's a link */
    color: inherit; /* If it's a link */

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    background: transparent;
}
.single-service img {
    height: 100px;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.service-info {
    margin-top: 24px;
    width: 100%;
}

.service-line {
    width: 100%;
    height: 1px;
    background: var(--color-primary);
    margin-bottom: 16px;
}

.single-service .service-info p {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    color: var(--color-neutral);
}

@media (max-width: 768px) {

    /* SECTION */
    .service-section,
    .portfolio-section {
        padding: 64px 24px;
    }

    /* TOP BLOCK */
    .service-top,
    .portfolio-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .service-divider,
    .portfolio-divider {
        display: none; /* mobile NĖRA vertikalaus brūkšnio */
    }

    .service-title,
    .portfolio-title {
        font-size: 40px;
        line-height: 48px;
        font-weight: 700;
        text-align: center;
        padding: 0;
    }

    /* Portfolio title override for long words */
    .portfolio-title {
        font-size: 32px;
        line-height: 1.3;
        overflow-wrap: anywhere; /* Forces break at any point if necessary */
        word-break: break-word; /* Webkit/legacy support */
        hyphens: manual;
        padding: 0 16px;
    }

    /* Project title override for long words */
    .project-title {
        font-size: 26px;
        line-height: 1.3;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: manual;
        margin-bottom: 16px;
    }

    .service-description p,
    .portfolio-description p {
        font-size: 16px;
        line-height: 24px;
        max-width: none;
        text-align: center;
        margin: 0;
    }

    /* SPACE BEFORE CARDS */
    .services-list {
        margin-top: 40px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    /* SINGLE CARD */
    .single-service {
        flex: 1 1 140px;
        max-width: 400px; /* Constrain on mobile as well */
        padding: 12px;
        min-width: 0; /* Prevention for overflow */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px; 
    }

    /* ICON */
    .single-service img {
        height: 78px;
        width: auto;
        object-fit: contain;
    }
}
    /* DESKTOP hover efektai */
@media (min-width: 769px) {

    .single-service {
        position: relative;
        transition:
            background-color 0.35s ease,
            box-shadow 0.35s ease,
            transform 0.35s ease;
        border-radius: 12px;
    }

    .single-service:hover {
        background-color: rgba(0, 123, 255, 0.08); /* subtili melsva */
        transform: translateY(-6px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    }

    /* Ikona – šiek tiek padidėja */
    .single-service img {
        transition: transform 0.35s ease;
    }

    .single-service:hover img {
        transform: scale(1.08);
    }

    /* Tekstas – šiek tiek paryškėja */
    .single-service .service-info p {
        transition: color 0.35s ease;
    }

    .single-service:hover .service-info p {
        color: #5aa9ff; /* melsvas, bet ne rėžiantis */
    }



    /* INFO */
    .service-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .service-line {
        width: 40px;
        height: 2px;
        background: var(--color-primary);
        margin-bottom: 8px;
    }

    .service-info p {
        font-size: 14px;
        line-height: 20px;
        font-weight: var(--font-weight-semibold);
        text-align: center;
        margin: 0;
    }
}


/* why us section */
.why-us-left,
.why-us-right {
    display: grid;
    row-gap: 24px;
}


.why-us-section {
    padding: 80px;
    background: var(--color-neutral);
}

.why-us-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 16px;
}

.why-us-title {
    font-family: var(--font-secondary);
    font-size: 72px;
    font-weight: 700;
    margin: 0;
}

.why-us-divider {
    width: 2px;
    background: var(--color-primary);
    height: 120px;
    justify-self: center;
}

.why-us-description {
    padding-left: 16px;
}

.why-us-description p {
    margin: 0;
    font-size: 20px;
    line-height: 32px;
    color: var(--color-tertiary);
}

.why-us-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 64px;
}

.card-big {
    padding: 24px;
    background: transparent;
}

.card-big .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.card-big h3 {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    margin: 0;
    flex: 1; /* Allow text to take space but respect icon */
    min-width: 0; /* Enable shrinking below content size */
    overflow-wrap: break-word; /* Safety wrap */
}

.card-big p {
    margin-top: 24px;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-tertiary);
}

.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.two-cols {
    align-items: start;
}


.card-small {
    padding: 24px;
    background: transparent;
}

.card-small .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.card-small h3 {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    margin: 0;
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.card-small p {
    margin-top: 24px;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-tertiary);
}
.why-card-icon {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: 4px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent icon from squashing */
}

.why-card-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.card-header {
    background: transparent;
    border: 0;
}

.card {
    background: var(--color-neutral);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0px 0px 7px rgba(51, 51, 51, 0.11);
    border: none;
}

@media (max-width: 768px) {

    .why-us-section {
        padding: 64px 24px;
    }
    .why-us-top {
        display: block;
        text-align: center;
    }

    .why-us-title {
        font-size: 40px;
        font-weight: 700;
        margin-bottom: 24px;
    }

    .why-us-divider {
        display: none;
    }

    .why-us-description {
        padding: 0;
    }

    .why-us-description p {
        font-size: 16px;
        line-height: 24px;
    }
    .why-us-bottom {
        grid-template-columns: 1fr;
        margin-top: 40px;
        gap: 24px;
    }
    .why-us-left,
    .why-us-right {
        display: grid;
        row-gap: 24px;
    }
    .card {
        padding: 24px;
    }

    .card-header {
        align-items: center;
    }

    .card h3 {
        font-size: 24px;
        font-weight: var(--font-weight-semibold);
        flex: 1;
        min-width: 0;
        overflow-wrap: break-word;
    }

    .card p {
        margin-top: 16px;
        font-size: 16px;
        line-height: 24px;
    }
    .why-card-icon {
        width: 32px;
        height: 32px;
        border-radius: 4px;
        background: var(--color-primary);

        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        flex-shrink: 0;
    }

    .why-card-icon img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }
    .two-cols {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }
}


/* portfolio */

.portfolio-section {
    padding: 80px;
    background: linear-gradient(
        289.8deg,
        #485461 8.19%,
        #404A56 48.24%,
        #2D3845 99.73%
    );
    overflow: visible; /* Required for sticky children */
}

.portfolio-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-title {
    font-size: 72px;
    font-weight: 700;
    margin: 0;
    color: var(--color-neutral);
}

.portfolio-divider {
    width: 2px;
    height: 120px;
    background: var(--color-primary);
    justify-self: center;
}

.portfolio-description p {
    margin: 0;
    font-size: 20px;
    line-height: 32px;
    color: var(--color-neutral);
}

/* Wraps each project for stacking effect */
.project-link-wrapper {
    position: sticky;
    top: 5vh; /* Comfortably below the header */
    min-height: 130vh; /* Forces scroll distance before next overlaps */
    height: 100%;
    background: #2D3845; /* Solid color to overlap previous card effectively */
    padding-bottom: 0px;
    margin-bottom: 10vh; /* A bit of breathing room before the next block */
    z-index: 1;
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-link-wrapper:last-child {
    margin-bottom: 0; /* Remove gap before footer */
}

/* Stack shadows for depth */
.project-link-wrapper {
    box-shadow: 0 -20px 40px rgba(0,0,0,0.3);
}

/* Ensure subsequent projects are higher in stack */
.project-link-wrapper:nth-child(even) { z-index: 2; }
.project-link-wrapper:nth-of-type(2) { z-index: 2; }
.project-link-wrapper:nth-of-type(3) { z-index: 3; }
.project-link-wrapper:nth-of-type(4) { z-index: 4; }
.project-link-wrapper:nth-of-type(5) { z-index: 5; }
.project-link-wrapper:nth-of-type(6) { z-index: 6; }
.project-link-wrapper:nth-of-type(7) { z-index: 7; }
.project-link-wrapper:nth-of-type(8) { z-index: 8; }
/* ... up to a reasonable number, or just rely on DOM order if z-index not strictly needed */

/* CUSTOM CURSOR */
.project-wrapper {
    max-width: 1400px; /* Constrain absolute width on extreme ultra-wide monitors */
    margin: 0 auto;
    cursor: none; /* Hide default cursor */
}

/* Ensure any interactive elements inside also don't show the default cursor */
.project-wrapper * {
    cursor: none !important;
}

.custom-cursor {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    pointer-events: none; /* Don't interfere with clicks */
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 15px;
    line-height: 1.2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.custom-cursor.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Disable custom cursor on touch devices/smaller screens */
@media (max-width: 1024px) {
    .custom-cursor {
        display: none !important;
    }
    .project-wrapper, .project-wrapper * {
        cursor: auto !important;
    }
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
}

.project-title {
    font-size: 64px;
    font-weight: 700;
    margin: 0;
    color: var(--color-gray);
}

.project-tags {
    display: flex;
    gap: 8px;
}

.tag {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 400;
    color: var(--color-neutral);
    border: 1px solid rgba(232, 231, 231, 0.6);
    border-radius: 12px;
}
/* Custom Detail Breakpoints (Trigger side-by-side only on ultrawide/zoomed out) */
@media (min-width: 1900px) {
    .custom-detail-row {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
    .custom-detail-left {
        width: 33.333333%;
        padding-right: 40px;
        margin-bottom: 0 !important;
    }
    .custom-detail-right {
        width: 66.666667%;
    }
}

/* --- DETAIL PAGE HERO LAYOUT --- */
.portfolio-page-grid-detail {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3%;
    width: 100%;
    height: auto;
    aspect-ratio: 26 / 10; /* Perfectly balances 19:10 desktop and 11:19.5 phone */
}

.portfolio-page-grid-detail > .desktop-visual {
    aspect-ratio: 19 / 10;
    height: 100%;
    width: auto;
    flex-shrink: 0;
}

.portfolio-page-grid-detail > .mobile-visual-wrapper {
    aspect-ratio: 11 / 19.5;
    height: 100%;
    width: auto;
    flex-shrink: 0;
    padding: 0 !important; /* Remove explicit padding, rely strictly on flex centering */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Ensure inner frames are exactly the same proportional height */
.portfolio-page-grid-detail .project-image-stack.large,
.portfolio-page-grid-detail .project-image-stack.small {
    height: 85% !important; 
    margin: auto !important; /* Force physical centering inside the flex containers */
}

/* Remove media query height constraints since it scales mathematically via aspect-ratio */
@media (max-width: 576px) {
    .portfolio-page-grid-detail { gap: 2%; }
    .portfolio-page-grid-detail .project-image-stack.large,
    .portfolio-page-grid-detail .project-image-stack.small { height: 90% !important; }
}

.project-image-stack {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.project-image-stack img {
    width: 100%;
    height: auto;
    display: block;
}

.project-image-stack.large .img-front {
    position: absolute;
    top: 45px;
    bottom: 35px;
    left: 12%;
    right: 12%;
    width: 75%;
    height: 75%;
    object-fit: contain;
    object-position: center;
}

.project-image-stack.large {
    aspect-ratio: 16 / 9; /* Matches standard laptop screens */
    border: 1px solid rgba(255,255,255,0.15); /* Sleek window border */
    border-radius: 12px; /* Rounded window corners */
    background: #000;
    overflow: hidden; /* Clip the scrolling image */
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
    padding-top: 32px; /* Space for the mac bar */
}

/* Mac Window Bar */
.mac-window-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: #2d2d2d;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    z-index: 10;
}

.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.mac-dot.close { background: #ff5f56; }
.mac-dot.minimize { background: #ffbd2e; }
.mac-dot.maximize { background: #27c93f; }

.project-image-stack.large .img-scroll-frame {
    top: 32px;
}

/* Scale down mac window bar on smaller screens */
@media (max-width: 992px) {
    .project-image-stack.large { padding-top: 16px; border-radius: 6px; }
    .mac-window-bar { height: 16px; padding: 0 6px; gap: 4px; }
    .mac-dot { width: 6px; height: 6px; }
    .project-image-stack.large .img-scroll-frame { top: 16px; }
}

.project-image-stack.small {
    /* REALISTIC PHONE FRAME */
    aspect-ratio: 9 / 19.5; /* Modern phone ratio */
    width: 100%; /* Take up available grid column space */
    max-width: 320px; /* Cap width to prevent massive phones on ultra-wide */
    margin-left: auto; /* Center if needed or right align */
    margin-right: 0;
    
    border: 12px solid #1d1d1f; /* Dark bezel */
    border-radius: 44px; /* Matches modern iPhone corners */
    background: #000;
    overflow: hidden; /* Clips content */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); /* Deep shadow */
    position: relative;
}

/* Phone Frame - Global */
.project-image-stack.small {
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.15); /* Minimalist 1px border */
    border-radius: 20px;
    background: transparent;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.phone-status-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    color: #fff;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
    pointer-events: none;
}

.status-left .status-time {
    font-size: 12px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.status-right {
    display: flex;
    gap: 5px;
    align-items: center;
}

.status-icon {
    width: 14px;
    height: 14px;
}



/* Mobile responsive adjustments for the frame */
@media (max-width: 768px) {
    .project-image-stack.small {
        /* No fixed px overrides needed, cqw handles it */
        margin: 0 auto;
    }
}


/* Adjust inside images if necessary - usually overflow:hidden handles it. 
   Removing the .img-front absolute positioning overrides if they conflict, 
   but they seem to be for the non-scroll version? 
   The user said "dabar scrollinimas veikia", meaning we are using the .img-scroll logic. 
   Existing .img-front styles might be legacy or unused if scroll works. 
   I will leave them but ensure the main stack has the frame.
*/

.project-image-stack.small .img-front {
    /* Kept for legacy/fallback */
    position: absolute;
    top: 45px;
    bottom: 35px;
    left: 20%;
    right: 20%;
    width: 65%;
    height: 75%;
    object-fit: contain;
    object-position: center;
}




/* FRONT - proporcijos vietoje px */
.project-image-stack.large .img-front {
    position: absolute;
    top: 10%;
    bottom: 8%;
    left: 12%;
    right: 12%;

    width: auto;
    height: 80%;
    object-fit: contain;
    object-position: center;
}

.project-image-stack.small .img-front {
    position: absolute;
    top: 10%;
    bottom: 8%;
    left: 30%;
    right: 20%;

    width: auto;
    height: 80%;
    object-fit: contain;
    object-position: center;
}

.img-scroll-frame {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    overflow-y: auto;
    overflow-x: hidden;

    /* border-radius: 12px; */ /* Removed as per request to fill background area which was rectangle/full stack */
    background: #000; /* saugumas, jei img kraunasi */

    scrollbar-width: thin; /* Firefox */
    z-index: 1; 
}

.img-scroll {
    width: 100% !important;
    height: auto !important;
    display: block;
}


@media (max-width: 768px) {
    .portfolio-section {
        padding: 64px 24px;
    }

    .portfolio-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .portfolio-title {
        font-size: 40px;
        text-align: center;
    }

    .portfolio-divider {
        display: none;
    }

    .portfolio-description p {
        font-size: 16px;
        line-height: 24px;
        text-align: center;
    }

    .project-header {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        margin-top: 40px;
    }

    .project-title {
        font-size: 32px;
        text-align: center;
    }

    .project-tags {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tag {
        padding: 4px 10px;
        font-size: 12px;
        border-radius: 12px;
    }
}

/* Kontaktai */
.contact-hero {
    position: relative;
    background: linear-gradient(
        315deg,
        #485461 8%,
        #404A56 48%,
        #2D3845 100%
    );
}

.contact-hero-content {
    padding-top: 130px;
    height: 520px;
}

/* Row turi paveldėti aukštį */
.contact-hero-content .row {
    height: 100%;
}

/* KAIRĖ */
.contact-hero-left {
    padding-top: 130px;
    padding-left: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-hero-left h1 {
    font-size: 84px;
    font-weight: 700;
    color: #fff;
}

.contact-hero-left p {
    margin-top: 40px;
    font-size: 20px;
    color: #fff;
    max-width: 560px;
}

/* DEŠINĖ – image per background */
.contact-hero-right {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-height: 100%;
    overflow: hidden; 

}
@media (max-width: 575.98px) {
    .contact-hero-content {
        height: auto; /* 👉 kad aukštis priklausytų nuo turinio */
        padding-top: 120px; /* 40px tarpas nuo navbar */
        padding-bottom: 65px; /* 65px tarpas po teksto */
    }
    .contact-hero-content .row {
        flex-direction: column-reverse; /* 👈 TAIP tvarka bus: image -> title -> text */
    }

    .contact-hero-right {
        height: 240px; /* aukštis nuotraukai */
        margin-bottom: 64px; /* tarpas tarp nuotraukos ir title */
    }

    .contact-hero-left {
        padding: 0 24px;
        text-align: center;
    }

    .contact-hero-left h1 {
        font-size: 48px;
        font-weight: 700;
        margin-bottom: 32px;
    }

    .contact-hero-left p {
        font-size: 16px;
        margin-bottom: 65px;
        line-height: 1.6;
    }
}


/* ---------------------------
   CONTACTS SECTION (DESKTOP)
---------------------------- */
.contacts {
    display: flex;
    gap: 4rem; /* 64px */
    padding: 5rem; /* 80px */
    align-items: flex-start;
}

/* KAIRĖ */
.contacts-left {
    width: 50%;
}

/* PAGRINDINIS TITLE */
.contacts-left h2 {
    font-size: 3rem; /* 48px */
    font-weight: 700;
    margin: 0 0 2rem 0; /* 32px */
    color: var(--color-tertiary); /* čia dabar bus tavo spalva */
}

/* SECTION TITLES (SOCIAL + REKVIZITAI) */
.contacts-left h2.section-title {
    margin-top: 4rem; /* 64px */
    margin-bottom: 2rem; /* 32px */
}

/* CONTACT ITEMS */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 16px */
}

/* KIEKVIENAS EILUTĖ */
.contact-form-item {
    display: flex;
    align-items: center;
    gap: 1.125rem; /* 18px */
}

/* ICON BACKGROUND */
.contact-form-item .icon {
    width: 2rem; /* 32px */
    height: 2rem; /* 32px */
    background: #3770B2;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ICON */
.contact-form-item .icon img {
    width: 1.5rem;
    height: 1.5rem;
}

/* TEKSTAS */
.contact-form-item span {
    font-size: 1.125rem;
    color: var(--color-tertiary);
    font-weight: 400;
}

/* REKVIZITŲ TEKSTAS */
.contacts-left p {
    margin-top: 2rem;
    font-size: 1.125rem;
    color: var(--color-tertiary);
    line-height: 1.6;
}

.rekvizitai p {
    margin: 0;
    line-height: 1.5;
}

.contacts-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* ---- FORMOS CARD ---- */

.contact-form {
    width: 100%;
    max-width: 520px; /* kad atrodytų kaip kortelė */
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0px 4px 32px rgba(0,0,0,0.06);
    max-width: 39.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-family: var(--font-main);
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    line-height: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-tertiary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 0.5px solid rgba(43, 43, 43, 0.3);
    border-radius: 0.25rem;
    font-family: var(--font-main);
    font-size: 1rem;
    background-color: transparent !important;
}

.form-group textarea {
    min-height: 7.5rem;
    resize: vertical;
}

/* ---- CHECKBOX ---- */

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.checkbox-group label {
    font-size: 0.875rem;
    cursor: pointer;
}

/* ---- MYGTUKAS ---- */

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-family: var(--font-main);
    font-size: 1.125rem;
    cursor: pointer;
    transition: 0.2s;
}

.submit-btn:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .contacts {
        flex-direction: column;
        gap: 0;
        padding: 4rem 1.5rem; /* 64px top/bottom, 24px left/right */
    }

    .contacts-left,
    .contacts-right {
        width: 100%;
    }

    /* ---- TITLE ---- */
    .contacts-left h2 {
        font-size: 2.5rem; /* 40px */
        text-align: center;
        margin: 0 0 1.5rem 0; /* 24px bottom */
        color: var(--color-tertiary);
    }

    .contacts-left h2.section-title {
        margin-top: 1.5rem; /* 24px between sections */
        margin-bottom: 1.5rem;
    }

    /* ---- CONTACT ITEMS (kairėn) ---- */
    .footer-contacts {
        gap: 1rem;
    }

    .contact-form-item {
        justify-content: flex-start; /* kairėn */
    }

    .contact-form-item span {
        font-size: 1.125rem; /* 18px */
        color: var(--color-tertiary);
    }

    /* ---- REKVIZITŲ TEKSTAS (centre) ---- */
    .contacts-left p {
        text-align: center;
    }

    /* ---- FORMOS CARD ---- */
    .contact-form {
        max-width: 100%;
        padding: 1.5rem; /* 24px inside */
        box-shadow: 0px 4px 32px rgba(0,0,0,0.06);
    }

    .contacts-right {
        margin-top: 4rem; /* 64px tarpas tarp kontaktų ir formos */
        justify-content: stretch;
    }
}

/* about us */
/* ABOUT HERO */
.about-hero {
    position: relative;
    background: linear-gradient(
        315deg,
        #485461 8%,
        #404A56 48%,
        #2D3845 100%
    );
}

.about-hero-content {
    padding-top: 130px;
    min-height: 520px;
    height: auto;
}

.about-hero-content .row {
    height: 100%;
}

.about-hero-left {
    padding-top: 50px; /* Reduced from 130 */
    padding-left: 40px; /* Reduced from 80 */
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-hero-left h1 {
    font-size: 84px;
    font-weight: 700;
    color: #fff;
}

.about-hero-left p {
    margin-top: 40px;
    font-size: 20px;
    color: #fff;
    max-width: 560px;
}

.about-hero-right {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {

    .about-hero-content {
        padding-top: 120px; /* 40px nuo navbar */
        height: auto;
    }

    .about-hero-content .row {
        flex-direction: column;
        height: auto;
    }

    .about-hero-right {
        order: 1; /* nuotrauka pirmas */
        width: 100%;
        height: 240px;
        background-size: cover;
        background-position: center;
    }

    .about-hero-left {
        order: 2; /* tekstas antras */
        padding: 0 24px;
        text-align: center;
        padding-bottom: 65px; /* 65px apačioje */
    }

    /* čia darome tarpą tarp nuotraukos ir title */
    .about-hero-left h1 {
        margin-top: 64px;   /* <-- 64px tarp nuotraukos ir title */
        font-size: 3rem;    /* 48px */
        margin-bottom: 2rem; /* 32px tarp title ir teksto */
    }

    .about-hero-left p {
        font-size: 1rem; /* 16px */
        line-height: 1.6;
        margin: 0;
    }
}

/* PROJECT DETAIL TEMPLATE */
.project-detail-hero {
    overflow: visible;
}

.project-detail-hero .about-hero-content {
    height: auto;
    padding-bottom: 100px;
}

.project-hero-images {
    padding-top: 0;
}

.project-hero-images .project-images {
    margin-top: 0;
}

.project-description-content {
    background: var(--color-neutral);
    color: var(--color-tertiary);
}

.ck-content-area h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-tertiary);
}

.description-text {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.description-text p {
    margin-bottom: 1.5rem;
}

.description-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.description-text ul li {
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .project-hero-images {
        padding: 20px 0;
        order: -1; /* Images first on mobile if desired, or keep default */
    }
}


.who-we-are {
    padding: 5rem; /* 80px */
}

.who-left,
.who-right {
    padding: 0;
}

/* TITLE */
.who-left h2 {
    font-size: 3rem; /* 48px */
    font-weight: 700;
    margin: 0 0 2.0625rem 0; /* 33px */
    color: var(--color-tertiary);
}

/* IMAGE */
.who-img {
    width: 100%;
    height: auto;
    max-width: 518px; /* pagal figmą */
    max-height: 277px;
    border-radius: 8px;
    object-fit: cover;
}

/* RIGHT SIDE TEXT BLOCK */
.who-right .we-text-block {
    display: flex;
    gap: 1rem; /* 16px tarp line ir teksto */
    margin-bottom: 4rem; /* 64px tarp blokų */
    align-items: flex-start;
}

/* PRIMARY COLOR LINE */
.who-right .we-text-block .line {
    width: 2px; /* fiksuotas storis */
    min-width: 2px;
    max-width: 2px;
    align-self: stretch;
    background: var(--color-primary);
    border-radius: 4px;
}

/* TEXT */
.who-right .we-text-block p {
    margin: 0;
    font-size: 1.125rem; /* 18px */
    line-height: 1.6;
    color: var(--color-tertiary);
}

@media (max-width: 768px) {

    .who-we-are {
        padding-top: 64px;
        padding-bottom: 64px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .who-left,
    .who-right {
        width: 100%;
        padding: 0;
    }

    .who-left h2 {
        font-size: 40px;
        font-weight: 700;
        text-align: center;
        margin: 0 0 24px 0;
        color: var(--color-tertiary);
    }

    .who-left .who-img {
        width: 100%;
        height: auto;
        border-radius: 0;
        max-width: none;
        max-height: none;
        margin: 0 0 24px 0;
    }

    /* Mobile: tekstas + brūkšnys po tekstu */
    .who-right .we-text-block {
        display: flex;
        flex-direction: column;
        margin-bottom: 16px;
    }

    .who-right .we-text-block p {
        margin: 0;
        font-size: 16px;
        line-height: 1.6;
        color: var(--color-tertiary);
        text-align: center;
        order: 1; /* pirmas elementas */
    }

    .who-right .we-text-block .line {
        min-width: 100%;
        width: 100%;
        height: 1px;
        background: var(--color-primary);
        border-radius: 4px;
        margin-top: 16px; /* tarpas po teksto */
        order: 2; /* antras elementas */
    }
}


/* our values */
.our-values {
    background-size: cover;
    background-position: center calc(100% + 170px);
    padding: 80px 0;
    width: 100%;
}

.our-values .container {
    padding-left: 80px;
    padding-right: 80px;
}

@media (max-width: 768px) {
    .our-values .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.our-values-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

.values-left h2 {
    font-size: 56px;
    line-height: 64px;
    text-transform: uppercase;
    color: var(--color-neutral);
    margin: 0;
}

.values-right {
    display: flex;
    justify-content: flex-end;
}

.values-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-end;
    max-width: 847px;
}

.values-tag {
    padding: 8px 16px;
    border: 1px solid var(--bg-secondary);
    border-radius: 12px;
    font-size: 12px;
    color: var(--color-neutral);
    white-space: nowrap;
    gap: 8px;
}

@media (max-width: 768px) {

    .our-values {
        padding-top: 64px;
        padding-bottom: 64px;
        background-position: center center; /* geriau mobile */
    }

    .our-values .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .our-values-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .values-left {
        width: 100%;
        text-align: center;
    }

    .values-left h2 {
        font-size: 40px;
        line-height: 1.1;
        font-weight: 700;
        text-transform: uppercase;
        margin: 0;
        color: var(--color-neutral);
    }

    .values-right {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 40px;
    }

    .values-tags {
        justify-content: center;
        max-width: none;
        gap: 24px;
    }
}



/* Sekcija */
.our-mission {
    padding: 80px 0;
    width: 100%;
}

.our-mission .container {
    padding-left: 80px;
    padding-right: 80px;
}

@media (max-width: 768px) {
    .our-mission .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* top: title kairėje, linija + tekstas dešinėje */
.our-mission-top {
    margin-bottom: 48px;
}

.m-left,
.m-right {
    display: flex;
    align-items: center; /* ← abu centruojami identiškai */
}

/* Kairė pusė – užima 50% */
.our-mission-top h2 {
    width: 100%;
    flex-shrink: 0;
    font-size: 56px;
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    padding-right: 133px;
}

/* Dešinė pusė – irgi pradedama nuo pusės ekrano */
.mission-description {
    display: flex;
    gap: 16px;
    align-items: center;
    min-height: 100%; 
}

.our-mission-top p {
    flex: 2;
    padding-left: 16px;
    border-left: 2px solid var(--color-primary);
    font-size: 16px;
    line-height: 24px;
    color: var(--color-tertiary);
    font-family: var(--font-main);
}

/* Paslaugos puslapis */


/* Ensure two-column layout for mission cards */
@media (min-width: 768px) {
    .our-mission-bottom .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    .our-mission-bottom .col-md-6 {
        flex: 0 0 auto;
        width: 50% !important;
        max-width: 50% !important;
        padding-right: calc(var(--bs-gutter-x, 1.5rem) / 2);
        padding-left: calc(var(--bs-gutter-x, 1.5rem) / 2);
    }
}

/* Kiekviena kortelė */
.mission-card {
    background: var(--color-neutral);
    box-shadow: 0px 0px 7px rgba(51, 51, 51, 0.11);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
}

/* Kortelės tekstas */
.mission-card h3 {
    font-size: 16px;
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-semi-bold);
    line-height: 24px;
    color: var(--color-tertiary);
    letter-spacing: 0%;
}

.mission-card .icon-box {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: 4px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Ikona dešinėje kortelėje */
.mission-card img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
/* RESPONSIVE */
@media (max-width: 992px) {
    .our-mission-top .row {
        flex-direction: column;
    }
    .our-mission-top p {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid rgba(255,255,255,0.3);
        padding-top: 16px;
        text-align: center;
    }
    .our-mission-top h2 {
        padding-right: 0;
        margin-bottom: 24px;
        font-size: 37px;
        text-align: center;
    }
}


/* PROJECT DETAIL PAGE REFINEMENTS */
.project-detail-page {
    background-color: #2D3845; /* Dark charcoal like home page portfolio */
    color: var(--color-neutral);
    margin-top: 0;
    padding-top: 0;
}

.project-detail-hero {
    padding-bottom: 80px;
    background: linear-gradient(315deg, #485461 8%, #404A56 48%, #2D3845 100%);
    position: relative;
    margin-top: 0; /* Critical to remove potential white bar */
}

/* Ensure navbar items are visible (white) on this dark background */
.project-detail-hero .main-header {
    background: transparent; /* Ensure no white bg from header */
    position: relative;
    z-index: 100;
}

.project-detail-hero .main-header .nav-link,
.project-detail-hero .main-header .navbar-brand {
    color: #fff !important;
}

.project-detail-hero .about-hero-content {
    margin-top: 0;
    padding: 130px 5% 0 5%; /* Restore the hero padding to clear the fixed navbar */
}

.project-detail-hero .project-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 0;
}

.project-detail-hero .project-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem) !important; /* Smaller minimum for mobile */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    color: #fff !important;
    overflow-wrap: break-word; 
    word-break: break-word; /* Better than break-all for UX */
    hyphens: none;
    white-space: normal;
    display: block;
}

.project-detail-hero .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    max-width: 100%; /* Ensure tags don't stretch layout */
}

.project-detail-hero .project-images {
    position: relative;
    width: 100%;
    margin-top: 30px;
    display: flex;
    align-items: flex-end; /* Align both to bottom */
    height: 500px; /* Base height */
    max-height: 70vh;
    justify-content: flex-end;
}


/* Hover-to-scroll logic */
.project-detail-hero .project-image-stack:hover .img-scroll {
    transform: translateY(calc(-100% + 400px));
    transition: transform 5s linear;
}

.project-detail-hero .img-scroll {
    transition: transform 0.8s ease-out;
}

/* Content area tweaks - make it slightly lighter or darker to separate sections but keep it dark */
.project-content {
    background-color: #34404c; /* Slightly different dark shade for section separation */
    color: var(--color-neutral);
    padding: 80px 0;
}

.rich-text-content .section-title {
    font-weight: 700;
    margin-bottom: 40px;
    color: #fff;
    text-align: center;
}

.ck-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-neutral);
}

.ck-content h1, .ck-content h2, .ck-content h3 {
    color: #fff;
    margin-top: 2rem;
}

.ck-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Footer */
/* Footer */
.main-footer {
    padding: 80px 0;
    background: #0F1114;
    color: #fff;
    width: 100%;
}


.footer-heading {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-transform: none;
}

.footer-description {
    font-size: 14px;
    line-height: 24px;
    color: #fff;
    max-width: 350px;
}

.footer-link,
.main-footer a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    transition: opacity 0.2s ease;
}

.footer-link:hover,
.main-footer a:hover {
    opacity: 0.7;
    color: #fff !important;
    text-decoration: none !important;
}

.icon-box {
    width: 32px;
    height: 32px;
    background: #3770B2;
    border-radius: 4px;
    flex-shrink: 0;
}

.icon-box img {
    width: 18px;
    height: 18px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: #3770B2;
    border-radius: 6px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: #4a8ad4;
}

.social-icon img {
    width: 20px;
    height: 20px;
}

.footer-space {
    height: 80px;
}

/* === BOTTOM BLOCK === */
.footer-bottom {
    text-align: center;
}

.rights {
    margin-bottom: 32px;
    color: #fff;
    opacity: 0.8;
}

.footer-links {
    max-width: 1119px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 0 auto;
}

.footer-links span {
    opacity: 0.6;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

/* Reset heading styles in footer (SEO) */
.footer-links h2,
.footer-links h3 {
    display: inline;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    padding: 0;
    color: #fff;
}

.footer-links a h2,
.footer-links a h3 {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {

    .main-footer {
        padding: 4rem 1.5rem;
    }

    .footer-inner {
        max-width: 100%;
    }

    .footer-top {
        display: block;
    }

    .footer-about {
        width: 100%;
        margin-bottom: 2rem;
        text-align: center;
    }

    .footer-logo {
        width: 15.875rem;
        max-width: 100%;
        height: auto;
    }

    .footer-about p {
        font-size: 0.75rem;
        line-height: 1.25rem;
        margin-top: 1rem;
        text-align: center;
    }

    .footer-pages,
    .footer-contacts {
        width: 100%;
        margin-bottom: 2rem;
    }

    .footer-gap {
        display: none;
    }

    .footer-col h4 {
        font-size: 16px;
        font-weight: var(--font-weight-semibold);
        margin-bottom: 1rem;
        text-align: center;
    }

    .footer-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col ul li {
        margin-bottom: 1rem;
    }

    .footer-col a {
        font-size: 1rem;
        text-align: center;
    }

    .footer-contacts .contact-item {
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .footer-social {
        flex-direction: row;
        justify-content: center;
        margin-top: 1.5rem;
        gap: 0.75rem;
    }

    .footer-space {
        height: 2.5rem;
    }

    .footer-bottom {
        text-align: center;
    }

    .rights {
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    .footer-links {
        justify-content: center;
        gap: 1rem;
        font-size: 0.875rem;
    }

    /* Horizontal line */
    .footer-bottom::before {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background: rgba(255, 255, 255, 0.15);
        margin-bottom: 1rem;
    }

    .footer-links span {
        opacity: 0.6;
    }
}

/* =========================================================================
   PRICING PAGE (KAINOS)
   ========================================================================= */

.pricing-page {
    background-color: #2D3845;
    color: var(--color-neutral);
    min-height: 100vh;
}

/* Hero */
.pricing-hero-content {
    margin-bottom: 40px;
}

/* Navigation Buttons */
.pricing-nav a.pricing-btn {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-neutral);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pricing-nav a.pricing-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Pricing Cards */
.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.pricing-card-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 15px;
    margin-bottom: 25px;
    display: inline-block;
}

/* Pricing List & Rows */
.pricing-list {
    display: flex;
    flex-direction: column;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 20px;
}

.pricing-row:last-child {
    border-bottom: none;
}

.service-name {
    font-size: var(--text-body-dynamic); /* Scales on 1800px+ via --text-body-dynamic */
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.service-price {
    font-size: calc(var(--text-body-dynamic) * 1.15); /* Keep price slightly larger than name */
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-card {
        padding: 25px 20px;
    }

    .pricing-card-title {
        font-size: 1.5rem;
    }

    .pricing-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px 0;
    }

    .service-price {
        font-size: 1.15rem;
        color: var(--color-primary);
        text-align: left;
    }
}

/* ========================================================
   DEDICATED PORTFOLIO PAGE (ATLIKTI DARBAI)
   ======================================================== */
   
.atlikti-darbai-page {
    background-color: #242D36; /* overall dark background */
}

.portfolio-page-layout {
    padding-top: 120px; /* Space for header */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Allow projects on this page to go full width and delay scroll overlap */
/* Force each project wrapper to be exactly 1 viewport tall so it doesn't get masked early */
.atlikti-darbai-page .project-link-wrapper {
    position: sticky;
    top: 0;
    min-height: 100vh;
    max-height: 1200px; /* Limit on ultra-tall monitors */
    margin-bottom: 0px !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Inner wrapper takes full height */
.atlikti-darbai-page .project-wrapper {
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 2vh; /* Reduced from 5vh to give more room for images */
}

/* The grid fills the remaining space */
.atlikti-darbai-page .portfolio-page-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px; /* Slightly increased gap for premium look */
    margin-top: 20px;
    height: 100%; 
    min-height: 0;
    padding: 0 40px 3vh 40px;
}

/* Left side - Desktop in a dark container */
.desktop-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Space inside the box */
    position: relative;
    min-width: 0; 
    min-height: 0;
    overflow: hidden; 
    border-radius: 20px;
    height: 100%; /* Fill the grid cell height */
    width: auto;
}

.desktop-visual .project-image-stack.large {
    margin: auto;
    width: auto;
    height: 85%; /* Leave room for blurred background */
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 16 / 9 !important;
    position: relative;
    display: block;
}

/* Right side - Mobile in a dark container */
.mobile-visual-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Reduced to give more room for the phone */
    position: relative;
    min-width: 0;
    min-height: 0;
    border-radius: 20px; /* Rounded corners as per new design */
    overflow: hidden; /* Prevent background blur overlay from leaking outside border-radius */
}

/* Restrict the phone stack size mathematically so it fits perfectly */
.mobile-visual-wrapper .project-image-stack.small {
    margin: auto;
    width: auto;
    height: 80%; /* Primary constraint is height relative to its container */
    max-width: 100%;
    max-height: 100%; 
    aspect-ratio: 9 / 19.5 !important;
    position: relative;
    display: block;
}

@media (max-width: 992px) {
    .mobile-visual-wrapper .project-image-stack.small {
        max-width: 400px; /* Allow bigger phone on middle-sized screens */
    }
}

/* Disable scrolling inside the phone on the portfolio overview page */
.atlikti-darbai-page .img-scroll-frame {
    overflow: hidden !important; 
    pointer-events: none; /* Alternatively, prevent any interaction */
}

@media (max-width: 992px) {
    .mobile-visual-wrapper .project-image-stack.small {
        width: auto;
        height: 28vw; /* Proportional to desktop width */
        max-width: 100%;
        max-height: 100%;
        aspect-ratio: 9 / 19.5;
        border-radius: 12px;
    }
    .atlikti-darbai-page .portfolio-page-grid {
        grid-template-columns: 3fr 2fr; /* Restoring balanced distribution */
        align-items: center;
        gap: 15px;
    }
    .desktop-visual {
        height: auto; /* Let the height be determined by the content/grid */
        width: 100%;
    }
    
    /* LANDSCAPE MOBILE / SHORT VIEWPORTS */
    @media (max-height: 550px) {
        .atlikti-darbai-page .portfolio-page-grid {
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            align-items: center;
        }
        .desktop-visual, .mobile-visual-wrapper .project-image-stack.small {
            height: 70vh; /* Scale by height in landscape to prevent overflow */
            width: auto;
            max-width: 100%;
            margin: auto;
        }
    }
    
    .mobile-visual-wrapper {
        padding: 5px; /* Shave off padding to maximize space */
    }
}

/* Adding padding back to header text since container lost it */
.atlikti-darbai-page .project-header {
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 768px) {
    .atlikti-darbai-page .portfolio-page-grid {
        padding: 0 20px 2vh 20px;
        gap: 12px;
    }
    .atlikti-darbai-page .project-header {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* --- DETAIL PAGE CONTENT CARDS --- */
.project-details-grid {
    display: block;
}

.project-details-grid .pricing-card {
    height: auto;
    padding: 30px; /* Reduced slightly from top-level to accommodate smaller space constraint if needed */
    margin-bottom: 2rem !important; /* Force margin when stacked */
}

/* Ensure empty backgrounds or padding anomalies don't persist */
@media (min-width: 1800px) {
    .project-details-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .project-details-grid .pricing-card {
        margin-bottom: 0 !important;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    /* Allow the grid to take up most of the screen when side-by-side */
    .custom-grid-container {
        max-width: 90% !important;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.project-detail-text {
    font-size: var(--text-body-dynamic);
    line-height: 1.8;
}

.project-detail-text p {
    margin-bottom: 1.5rem;
}

.project-detail-text p:last-child {
    margin-bottom: 0;
}

/* --- GLOBAL LAYOUT CONTAINER --- */
/* Matches the total horizontal offset of the homepage hero text for massive monitors */
.main-layout-container {
    padding-left: 4.25rem;
    padding-right: 4.25rem;
}

@media (min-width: 992px) {
    .main-layout-container {
        padding-left: 4.25rem;
        padding-right: 4.25rem;
    }
}

@media (max-width: 991.98px) {
    .main-layout-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .main-layout-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* --- LOGO SCALING SCENARIOS --- */
.footer-logo {
    max-width: 250px;
    height: auto;
}

@media (min-width: 1800px) {
    .header-logo-img {
        height: 52px; /* Scale up main menu logo */
    }
    .footer-logo {
        max-width: 320px; /* Scale up footer logo */
    }
}

/* ===== Scroll to Top Button ===== */
#scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;

    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: none;
    cursor: pointer;

    background: var(--color-primary);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;

    box-shadow: 0 4px 16px rgba(55, 112, 178, 0.35);
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background: #2a5a96;
    box-shadow: 0 6px 24px rgba(55, 112, 178, 0.5);
    transform: translateY(-2px);
}

#scroll-to-top:active {
    transform: translateY(0);
}

