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

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Astro View Transitions - Subtle Fade */
@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

::view-transition-old(root) {
  animation: 200ms ease-out both fade-out;
}

::view-transition-new(root) {
  animation: 300ms ease-in both fade-in;
}

/* Smooth scroll behavior for anchor links */
html {
  scroll-behavior: smooth;
}

:root {
  --circle-color: 253 119 38 / 50%;
  --circle-color-mobile: 253 119 38 / 15%;
}

body {
    font-family: "Roboto", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #fff;
    background-image: url("/media/tlo-cutout.png");
    background-size: auto;
    background-position: bottom left;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 200px;
    height: 600px;
    background-image: url("/media/tlo-cutout.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    transform: rotate(180deg);
    pointer-events: none;
    z-index: -1;
}

a {
    color: #fd7726;
}

header {
    height: 100vh;
    transform: translateY(0px);
    transition: linear 1s;
    background-image: url("/media/header-dark.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-position: center top;
    overflow: hidden;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(10 10 10 / 27%);
    pointer-events: none;
}

.intro {
    width: 100%;
    text-align: center;
    position: relative;
    display: block;
    top: calc(60% + 50px);
    transform: translateY(-80%);
    color: black;
    filter: contrast(1);
    z-index: 10;
}

h1 {
    font-size: 60px;
    color: #fd7726;
    font-weight: 200;
    animation: h1 1s;
}

.main-logo {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    animation: h1 1s;
    content: url('/media/logo-bez-tla.png');
}

.intro a {
    display: inline-block;
    border: none;
}

@keyframes h1 {
    0% {
        transform: scale(2.5, 2.5);
    }
    100% {
        transform: scale(1, 1);
    }
}

h2 {
    font-size: 30px;
    color: #fd7726;
    font-weight: 200;
    animation: h2 1s;
    transform: scale(1, 1) translateY(0);
    position: relative;
}

.intro h2 {
    font-family: 'Gordita', sans-serif;
}

@keyframes h2 {
    0% {
        transform: scale(0.5, 0.5) translateY(-700px);
    }
    100% {
        transform: scale(1, 1) translateY(0);
    }
}

.typing-container {
    margin-top: 15px;
    height: 80px;
    padding-top: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 1;
}

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

.typing-text {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    padding: 0 20px;
}

.cursor {
    font-size: 16px;
    color: #fd7726;
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

a {
    text-decoration: none;
}

main {
    padding-bottom: 100px;
    background-color: transparent;
}

.icon {
    margin-right: 40px;
    max-width: 30px;
    font-size: 1.2em;
    display: flex;
}

.social-media {
    bottom: 0%;
    left: 0;
    text-align: right;
    list-style: none;
    padding-right: 10px;
}

ul.social-media.menu.hide {
    display: none;
}

.social-media a {
    color: #fd7726;
}

.social-media li {
    font-size: 25px;
    background-color: #fea5001f;
}

/* Scroll Down Arrow */
.scroll-arrow-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.scroll-arrow-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(253, 119, 38, 0.9);
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(253, 119, 38, 0.4);
}

.scroll-arrow:hover {
    background-color: rgba(253, 119, 38, 1);
    transform: translateY(5px);
    box-shadow: 0 6px 20px rgba(253, 119, 38, 0.6);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Hide scroll arrow on mobile */
@media screen and (max-width: 768px) {
    .scroll-arrow-container {
        display: none;
    }
}

.menu {
    opacity: 1;
    position: fixed;
    z-index: 10;
    cursor: pointer;
}

.contact {
    position: fixed;
    top: 50%;
    left: 0;
    text-transform: uppercase;
    transform: rotate(-90deg);
    color: #fd7726;
    padding-top: 0px;
    font-size: 20px;
    animation: contact-show 2s linear;
}

@keyframes contact-show {
    0% {
        left: -10%;
    }
    100% {
        left: 0;
    }
}

.portfolio {
    position: fixed;
    top: 50%;
    right: 0;
    text-transform: uppercase;
    transform: rotate(90deg);
    color: #fd7726;
    padding-top: 0px;
    font-size: 20px;
    animation: portfolio-show 2s linear;
}

.menu-links.desktop {
    position: fixed;
    top: 50%;
    right: -50px;
    display: flex;
    align-items: center;
    transform: rotate(90deg);
    animation: portfolio-show 2s linear;
}

.menu-links.desktop .portfolio {
    position: static;
    transform: none;
    animation: none;
}

@keyframes portfolio-show {
    0% {
        right: -10%;
    }
    100% {
        right: 0;
    }
}

.line {
    position: fixed;
    z-index: 0;
    width: 0.5px;
    height: 500px;
    transform: rotateX(-180deg);
    background: linear-gradient(0deg, #fd7726, #ffffff00);
    margin: auto;
    margin-left: 2%;
    animation: show-line 1s 2s linear forwards;
}

@keyframes show-line {
    0% {
        top: 100vh;
    }
    100% {
        top: calc(50vh + 150px);
    }
}

.container {
    height: 100vh;
    width: 100vw;
    padding-top: 40%;
    color: #fd7726;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto;
}

.scroll-left, .scroll-right {
    cursor: pointer;
    width: 50px;
    height: 50px;
    top: 80%;
    border-bottom: 2px solid #fd7726;
}

.scroll-left {
    border-right: 2px solid #fd7726;
    transform: rotate(-45deg);
    margin: auto;
    animation: scroll-down-left 2s ease-in forwards, pulse-left 5s 2s ease-in infinite forwards;
}

.scroll-right {
    border-left: 2px solid #fd7726;
    border-bottom: 2px solid #fd7726;
    transform: rotate(45deg);
    margin: auto;
    animation: scroll-down-right 2s ease-in forwards, pulse-right 5s 2s ease-in infinite forwards;
}

@keyframes scroll-down-right {
    0% {
        transform: rotate(45deg) translate(0px, 0);
        border-bottom: none;
    }
    50% {
        transform: rotate(-135deg) translate(8px, 0);
        border-bottom: none;
    }
    100% {
        transform: rotate(-135deg) translate(8px, 0);
        border-bottom: none;
    }
}

@keyframes scroll-down-left {
    0% {
        transform: rotate(45deg) translate(0px, 0);
        border-bottom: none;
    }
    50% {
        transform: rotate(135deg) translate(35px, -27px);
        border-bottom: none;
    }
    100% {
        transform: rotate(135deg) translate(35px, -27px);
        border-bottom: none;
    }
}

@keyframes pulse-left {
    0% {
        transform: rotate(135deg) translate(35px, -27px) scale(1, 1);
        border-bottom: none;
    }
    40% {
        transform: rotate(135deg) translate(35px, -27px)scale(1.2, 1.2);
        border-bottom: none;
    }
    41% {
        transform: rotate(135deg) translate(35px, -27px) scale(1, 1);
        border-bottom: none;
    }
    60% {
        transform: rotate(135deg) translate(35px, -27px) scale(1.2, 1.2);
        border-bottom: none;
    }
    61% {
        transform: rotate(135deg) translate(35px, -27px) scale(1, 1);
        border-bottom: none;
    }
    100% {
        transform: rotate(135deg) translate(35px, -27px) scale(1, 1);
        border-bottom: none;
    }
}

@keyframes pulse-right {
    0% {
        transform: rotate(-135deg) translate(8px, 0) scale(1, 1);
        border-bottom: none;
    }
    40% {
        transform: rotate(-135deg) translate(8px, 0) scale(1.2, 1.2);
        border-bottom: none;
    }
    41% {
        transform: rotate(-135deg) translate(8px, 0) scale(1, 1);
        border-bottom: none;
    }
    60% {
        transform: rotate(-135deg) translate(8px, 0) scale(1.2, 1.2);
        border-bottom: none;
    }
    61% {
        transform: rotate(-135deg) translate(8px, 0) scale(1, 1);
        border-bottom: none;
    }
    100% {
        transform: rotate(-135deg) translate(8px, 0) scale(1, 1);
        border-bottom: none;
    }
}

.portfolio-section {
    width: 100%;
    margin: 0;
    padding: 50px 80px 10px 80px;
}

.portfolio-section h2 {
    color: #fd7726;
    margin-bottom: 25px;
    font-size: 2rem;
    text-align: center;
}

.portfolio-section.knowledge-sharing {
    background: transparent;
}

/* Light background only on mobile */
@media (max-width: 768px) {
    .portfolio-section.knowledge-sharing {
        background: linear-gradient(135deg, rgba(253, 119, 38, 0.05) 0%, rgba(253, 119, 38, 0.1) 100%);
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }
}

.about {
    padding: 50px 80px 70px 80px;
    text-align: left;
    background: linear-gradient(135deg, rgba(253, 119, 38, 0.05) 0%, rgba(253, 119, 38, 0.1) 100%);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 100px;
    align-items: center;
}

.about h2 {
    color: #fd7726;
    margin-bottom: 25px;
    font-size: 2rem;
    text-align: center;
    width: 100%;
}

.about p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #333;
    width: 100%;
}

.about p:last-child {
    margin-bottom: 0;
}

.about-content-wrapper {
    width: 100%;
}

.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.about-image {
    width: 300px;
    height: auto;
    border-radius: 8px;
    margin-left: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.about-text {
    flex: 1;
}

.recent-projects {
    padding: 50px 0;
    text-align: left;
    background: linear-gradient(135deg, rgba(253, 119, 38, 0.05) 0%, rgba(253, 119, 38, 0.1) 100%);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recent-projects h2 {
    color: #fd7726;
    margin-bottom: 25px;
    font-size: 2rem;
    text-align: center;
    width: 50%;
}

.recent-projects .gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 80%;
}

.recent-projects .gallery-item {
    flex: 1;
    min-width: 300px;
    max-width: calc(50% - 10px);
    min-height: auto;
    background-color: #fd7726;
    border: 2px solid #fd7726;
    overflow: hidden;
}

.recent-projects .gallery-item a {
    display: block;
    overflow: hidden;
}

.recent-projects .gallery-image {
    height: 350px;
    display: block;
    width: 100%;
}

.recent-projects .item-heading {
    color: #fff;
}

.recent-projects .item-description {
    color: #fff;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.gallery-item {
    flex: 1 1 calc(33.333% - 2rem);
    min-width: 280px;
    min-height: 350px;
    margin: 1rem;
    box-shadow: 0.3rem 0.4rem 0.4rem rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
}

.gallery-image {
    display: flex;
    width: 100%;
    height: 80%;
    max-height: 300px;
    object-fit: cover;
    transition: transform 400ms ease-out;
}

.gallery-item a {
    width: 100%;
    object-fit: cover;
    display: contents;
}

.gallery-image:hover {
    transform: scale(1.15);
}

.item-heading {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-direction: column;
    color: #fd7726;
    text-align: center;
    padding-top: 15px;
    font-weight: 300;
}

.item-description {
    color: #ccc;
    font-size: 14px;
    padding: 10px 15px;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

.heading {
    font-weight: 200;
    font-size: 40px;
}

.skills-wrapper {
    width: 100%;
    margin: 0;
    list-style: none;
}

.progress-bar {
    margin: 50px auto;
    width: 500px;
    height: 400px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column wrap;
    flex-flow: column wrap;
    -ms-flex-pack: distribute;
    justify-content: space-around;
}

.progress-bar h1 {
    text-align: center;
}

.skills {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.bar {
    width: 400px;
    background: #ddd;
    margin-left: 20px;
    height: 20px;
    border-radius: 10px;
}

.skill-title {
    width: 59px;
    font-weight: bold;
}

.bar-color {
    width: 0%;
    background: #ddd;
    height: 100%;
    border-radius: 10px;
    -webkit-transition: all 0.7s linear;
    transition: all 0.7s linear;
    -webkit-transition-delay: 0.5s;
    transition-delay: 0.5s;
}

.footer {
    width: 100%;
    height: 50vh;
    margin-left: auto;
    margin-right: auto;
    padding-top: 8%;
    text-align: center;
    background: transparent;
    list-style: none;
    color: #000000;
}

.footer h2 {
    margin-bottom: 30px;
}

.footer h1 {
    position: relative;
}

.footer h1:after, .footer h1:before {
    position: absolute;
    top: 60%;
    display: block;
    width: 15%;
    border-bottom: 1px solid #ffa5006e;
    content: "";
}

.footer h1:before {
    left: 20%;
}

.footer h1:after {
    right: 20%;
}

.contact-btn {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.33;
    border-radius: 6px;
    box-sizing: border-box;
    margin-top: 30px;
    margin-bottom: 30px;
}

.social-footer>li {
    display: inline-block;
    padding-left: 5px;
    padding-right: 5px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.footer p {
    padding-bottom: 0;
}
.mobile{
    visibility: hidden;
}

@media (max-width: 768px) {
    :root {
        --circle-color: var(--circle-color-mobile);
    }

    /* Mobile: add subtle background to sections for better readability over logo */
    .portfolio-section,
    .about,
    .services-section,
    .llm-section,
    .tags,
    .recent-projects {
        background: rgba(255, 255, 255, 0.85) !important;
        border-radius: 12px;
        margin: 1rem 0.5rem !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .portfolio-section {
        padding: 30px 20px 10px 20px !important;
        width: calc(100% - 1rem) !important;
        box-sizing: border-box !important;
    }

    .about {
        padding: 20px 15px !important;
        width: calc(100% - 1rem) !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .about h2 {
        width: 100% !important;
        padding: 0 10px !important;
        margin-bottom: 20px !important;
        word-wrap: break-word !important;
    }

    .about p {
        width: 100% !important;
        padding: 0 10px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .about-content {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    .about-image {
        width: 50% !important;
        max-width: 250px !important;
        margin: 0 auto 1rem auto !important;
    }

    .about-text {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }

    /* Hide side menus on mobile */
    .contact.menu.desktop,
    .menu-links.desktop,
    .line {
        display: none !important;
    }

    .mobile{
        visibility: visible;
    }

    a.menu-item.mobile {
        display: block;
        position: relative;
        top: 0;
        text-align: center;
        width: 100%;
        height: auto;
        padding: 15px 0;
        font-size: 18px;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    a.menu-item.mobile:last-child {
        border-bottom: none;
    }
    div.menu.mobile {
        background-color: #fd7726;
        color: white;
        position: fixed;
        width: 100%;
        height: auto;
        min-height: 250px;
        top: -500px;
        transition: 0.3s ease-out;
        z-index: 3;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
      }
      .burger.mobile {
        position: fixed;
        top: 20px;
        right: 20px;
        width: 50px;
        height: 40px;
        transition: 0.3s ease;
        z-index: 1002;
        cursor: pointer;
        background-color: white;
        padding: 8px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }
      .burger.mobile span {
        display: block;
        width: 100%;
        height: 4px;
        background-color: #fd7726;
        transition: 0.3s ease;
        border-radius: 2px;
      }

      .burger.mobile.menu-show span:nth-child(1) {
        transform: rotate(-45deg) translate(-9px, 6px);
        background-color: white;
      }

      .burger.mobile.menu-show span:nth-child(2) {
        opacity: 0;
      }

      .burger.mobile.menu-show span:nth-child(3) {
        transform: rotate(45deg) translate(-8px, -6px);
        background-color: white;
      }

      div.menu.mobile.menu-show {
        top: 0px;
      }

      div.menu.mobile {
        z-index: 1001;
      }

      header.menu-show{
        transform: translateY(250px);
      }
      
    body {
        width: 100vw;
    }
    h2 {
        font-size: 24px;
    }
    h1 {
        font-size: 15px;
    }
    .main-logo {
        width: 150px;
    }
    .intro {
        width: 100vw;
    }
    .container {
        padding-top: 90%;
    }
    main {
        width: 100vw;
    }
    .progress-bar {
        width: 80vw;
    }
    .bar {
        width: 60vw;
    }


.desktop {
    display: none;
}

.line {
    margin-left: 8%;
}
.portfolio-section{
    padding-right: 20%;
    padding-left: 20%;
}
}

/* Services Section Styles */
.services-section {
    background-color: transparent;
    padding: 40px 20px;
    margin-top: 0;
    text-align: center;
    color: #333;
}

.services-section h2 {
    font-size: 42px;
    margin-bottom: 10px;
    color: #fd7726;
}

.services-intro {
    font-size: 20px;
    margin-bottom: 60px;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #fd7726;
    box-shadow: 0.3rem 0.4rem 0.4rem rgba(253, 119, 38, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(253, 119, 38, 0.3);
}

.service-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.service-card:nth-child(2) .service-icon {
    animation-delay: 0.5s;
}

.service-card:nth-child(3) .service-icon {
    animation-delay: 1s;
}

.service-card:nth-child(4) .service-icon {
    animation-delay: 1.5s;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #fd7726;
    font-weight: 300;
}

.service-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* LLM Section Styles */
.llm-section {
    background-color: transparent;
    padding: 80px 20px;
    text-align: center;
    color: #333;
}

.llm-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #fd7726;
    animation: none;
}

.llm-intro {
    font-size: 20px;
    margin-bottom: 60px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.llm-intro em {
    font-style: italic;
    color: #fd7726;
}

.llm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.llm-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #fd7726;
    box-shadow: 0.3rem 0.4rem 0.4rem rgba(253, 119, 38, 0.2);
}

.llm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(253, 119, 38, 0.3);
}

.llm-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    color: #fd7726;
}

.llm-card:nth-child(2) .llm-icon {
    animation-delay: 0.5s;
}

.llm-card:nth-child(3) .llm-icon {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.llm-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #fd7726;
    font-weight: 300;
}

.llm-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

@media (max-width: 768px) {
    .services-section {
        padding: 50px 20px;
    }

    .services-section h2 {
        font-size: 28px;
    }

    .services-intro {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 !important;
    }

    .service-card {
        padding: 40px !important;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .llm-section {
        padding: 50px 20px;
    }

    .llm-section h2 {
        font-size: 28px;
    }

    .llm-intro {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .llm-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .llm-card h3 {
        font-size: 18px;
    }

    /* Consistent horizontal padding for all main sections on mobile */
    .training-cta-section,
    .blog-cta-section,
    .tags,
    .footer {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .skills-wrapper .about > div {
        width: calc(100% - 40px) !important;
        margin-left: 20px !important;
        margin-right: 20px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Remove extra margins from elements inside sections */
    .training-cta-section h2,
    .training-cta-section p,
    .training-cta-section a,
    .blog-cta-section h2,
    .blog-cta-section p,
    .blog-cta-section a,
    .services-grid,
    .llm-grid,
    .tags-list {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }

    .service-card,
    .llm-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

div.tags{
    background-color: #fff;
    padding: 50px 80px;
    text-align: center;
}

div.tags h2 {
    color: #fd7726;
    margin-bottom: 25px;
    font-size: 2rem;
}

.tags-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

div.tags span{
    display: inline-block;
    border-radius: 20px;
    border: 2px solid #fd7726;
    background-color: #fff;
    padding: 10px 20px;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
    white-space: nowrap;
}

div.tags span:hover {
    background-color: #fd7726;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(253, 119, 38, 0.3);
}

/* Newsletter CTA Section */
.newsletter-cta-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #fff5ed 0%, #ffe8d6 100%);
  margin: 3rem auto;
}

.newsletter-cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #fd7726;
}

.newsletter-cta-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #333;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog CTA Section */
.blog-cta-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #fd7726 0%, #ff9a56 100%);
  color: white;
}

.blog-cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
  animation: none;
}

.blog-cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.blog-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: white;
  color: #fd7726;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.blog-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #fff;
}

/* Newsletter Homepage Section */
.newsletter-homepage-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #fff5ed 0%, #ffe8d6 100%);
  border-radius: 12px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-homepage-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #fd7726;
}

.newsletter-homepage-section .newsletter-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #333;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Language Switcher in Footer */
.language-switcher-footer {
  padding-bottom: 10px;
  background: transparent;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(253, 119, 38, 0.2);
}

.language-switcher-footer .lang-switch-link {
  color: #fd7726 !important;
  text-decoration: none;
  font-size: 1rem;
  margin: 0 15px;
  font-weight: 500;
  transition: color 0.3s;
}

.language-switcher-footer .lang-switch-link:hover {
  color: #fd7726 !important;
  text-decoration: underline;
}

/* Training CTA Section */
.training-cta-section {
  background:
    linear-gradient(135deg, rgba(253, 119, 38, 0.70) 0%, rgba(255, 154, 86, 0.70) 100%),
    url('/media/nowy-targ.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  padding: 60px 40px;
  text-align: center;
  margin: 0;
  box-shadow: 0 10px 30px rgba(253, 119, 38, 0.3);
  position: relative;
}

.training-cta-section h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 300;
}

.training-subtitle {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 500;
  opacity: 0.95;
}

.training-description {
  color: white;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
  opacity: 0.9;
}

.training-cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: white;
  color: #fd7726;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 3px solid white;
}

.training-cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: #fff;
  color: #fd7726;
}

/* Desktop light mode - stronger white mask on header */
@media (min-width: 769px) {

  .intro h2 {
    color: #000;
  }
}

/* Dark mode disabled */

/* Facebook CTA Button Hover Effect */
.cta-facebook-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 15px -3px rgba(253, 119, 38, 0.5), 0 4px 6px -2px rgba(253, 119, 38, 0.1);
  background-color: #fff5f0 !important;
  border-color: #fd7726 !important;
}

.cta-facebook-button:active {
  transform: translateY(0) scale(1);
}

/* Mobile readability improvements - semi-transparent backgrounds */
@media (max-width: 768px) {
    /* Training CTA section */
    .training-cta-section {
        background: linear-gradient(135deg, rgba(255, 245, 237, 0.95) 0%, rgba(255, 232, 214, 0.95) 100%) !important;
    }

    /* Skills wrapper sections */
    .skills-wrapper {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 250, 245, 0.92) 100%);
    }

    /* Footer section */
    .footer {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
    }
}

/* Portfolio inline pills */
.portfolio-inline {
    text-align: center;
    padding: 1.5rem 1rem;
}

.portfolio-inline-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #999;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.portfolio-inline-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.portfolio-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fd7726;
    background: #fff5ed;
    border: 1px solid rgba(253, 119, 38, 0.2);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.portfolio-pill i {
    font-size: 0.65rem;
    opacity: 0.5;
    transition: opacity 0.25s ease;
}

.portfolio-pill:hover {
    background: #fd7726;
    color: white;
    border-color: #fd7726;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 119, 38, 0.3);
}

.portfolio-pill:hover i {
    opacity: 1;
}
