@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/static/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/static/Inter_18pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/static/Inter_18pt-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}
:root {
    --primary: #2C5F5D;
    --primary-dark: #1e4140;
    --secondary: #d05054;
    --secondary-dark: #C17B47;
    --tertiary: #2c4a52;
    --light: #e0d1bf; /* Gedämpftes Cremebeige statt reines Weiß */
    --surface: #f2e7d7; /* Hellere Variante für Flächen */
    --text-on-dark: var(--light);
    --text-on-light: var(--primary-dark);
}

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

html, body {
    height: 100%;
    /* overflow-x: hidden; */
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: var(--secondary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 2px solid var(--light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

/* Particles background effect */
.particles-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.services-section {
    position: relative;
    overflow: hidden;
}

.particle {
    position: absolute;
    background-color: var(--secondary);
    /* border-radius: 25%; */
    /* Animation now handled by anime.js */
}

.particle.star {
    background-color: var(--light);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@keyframes float-services {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    50% {
        transform: translateY(-200px) translateX(15px) rotate(180deg) scale(1.2);
        opacity: 0.7;
    }
    80% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(0) translateX(0) rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* Typewriter effect styles */
.typewriter-text {
    display: inline-block;
    color: var(--secondary);
    font-weight: bold;
}

@media (max-width: 576px) {
    .typewriter-text {
        display: block;
        margin-top: 0.5rem;
    }
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    margin-left: 2px;
    animation: blink 1s infinite;
}

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

/* Add subtle hover effects to cards and interactive elements */
.project-card, .blog-post, button, .nav span {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover, .blog-post:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Georgia', serif;
    background-color: var(--primary);
    height: 100dvh;
    width: 100dvw;
    padding: 0;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.noise {
    background-image: url("data:image/svg+xml,<svg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'><filter id='turbulence-1'><feTurbulence id='noise' baseFrequency='0.005' stitchTiles='stitch'/><feColorMatrix type='hueRotate' values='-100' /><feColorMatrix type='saturate' values='10' /><feColorMatrix type='brightness' values='10' /><feGaussianBlur stdDeviation='0.5' /></filter><rect width='100%' height='100%' filter='url(%23turbulence-1)' /></svg>");
    background-size: cover;
    background-repeat: no-repeat
}

.waves {
    background-image: url(../images/waves-bg.svg);
    background-size: cover;
    background-repeat: no-repeat;
}

.grid-container {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    grid-template-rows: auto 1.5fr 1fr;
    height: 100%;
    width: 100%;
    background-color: #2C5F5D;
    position: relative;
    overflow-x: hidden; /* Ensure no horizontal overflow */
}

.header {
    grid-column: 1 / -1;
    display: flex;
    /* background-color: #2C5F5D; */
    color: var(--secondary);
    padding: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 3rem;
    font-weight: bold;
    font-style: italic;
    color: var(--secondary);
    cursor: pointer;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;

}

.logo-title svg {
    max-width: 466px;
}

.page-title {
    color:#f2e7d7;
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.3;
    padding-left: 1rem;
    text-align: left;
    position: relative;
}

.separator {
    font-size: 3rem;
    font-weight: bold;
    color: #f2e7d7;
    line-height: 1.3;
    padding-left: 1rem;
}

.nav {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-right: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-about {
    cursor: pointer;
    transition: color 0.3s;
    font-size: 2.5rem;
    opacity: 0.8;
    padding: 8px;
}

.nav-about:hover {
    color: var(--light);
    opacity: 1;
}

.nav-button {
    background-color: var(--secondary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-button:hover {
    background-color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.button-icon {
    margin-top: 2px;
    transition: transform 0.3s ease;
}

.nav-button:hover .button-icon {
    transform: scale(1.2);
}

.grid-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    border-radius: 4px;
}

.grid-icon div {
    background-color: #2C5F5D;
    border-radius: 2px;
}

.hero {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0rem 2rem;
    min-height: 45vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
}
.hero-col.hero-text-col, .hero-title {
    position: relative;
    z-index: 2;
}

.hero-col {
    flex: 1 1 0;
}

.hero-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-img-col {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    /* position: absolute; */
    /* max-width: 180px;
    min-width: 90px; */
    width: 30vw;
    height: auto;
    border-radius: 1rem;
    opacity: 0.75;
    transition: transform 0.6s cubic-bezier(.7, .2, .2, 1);
    pointer-events: none;
}

.hero-balloon {
    left: 10%;
    top: 0%;
    transform: rotate(-8deg) scale(1.1);
    z-index: 5;
    display: none;
}

.blog-links {
    max-height: 100%;
    overflow-y: scroll;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.blog-links::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

.hero-coding {
    left: 55%;
    top: 12%;
    transform: rotate(18deg) scale(0.95);
    z-index: 6;
    opacity: 0;
}

.hero-data-analysis {
    left: 32%;
    top: 35%;
    transform: rotate(-11deg) scale(1.05);
    z-index: 7;
}

.hero-data-center {
    left: 60%;
    top: 50%;
    transform: rotate(7deg) scale(0.9);
    z-index: 8;
}

.hero-data-processing {
    left: 25%;
    top: 60%;
    /* transform: rotate(12deg) scale(0.92); */
    z-index: 9;
    opacity: 1;
    filter: saturate(1) hue-rotate(-100deg)
    /* filter: brightness(0) invert(1); */
}

.hero-data-storage {
    left: 80%;
    top: 20%;
    transform: rotate(5deg) scale(1.5);
    z-index: 10;
    opacity: 0.8;
}

.hero-data-visualization {
    left: 40%;
    top: 10%;
    transform: scale(1.5);
    z-index: 11;
}

.hero-designer {
    left: 15%;
    top: 45%;
    transform: rotate(-3deg) scale(0.93);
    z-index: 12;
}

.hero-mind-map {
    left: 80%;
    top: 60%;
    transform: scale(0.85);
    z-index: 13;
}

.hero-network {
    left: 50%;
    top: 70%;
    transform: scale(1.5);
    z-index: 14;
}

.hero-problem-solving {
    left: 70%;
    top: 80%;
    transform: scale(0.87);
    z-index: 15;
}

.hero-user-interface {
    left: 20%;
    top: 80%;
    transform: scale(0.89);
    z-index: 16;
    display: none;
}

/* Responsive Styles - Comprehensive approach */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 5rem;
    }
    
    .nav {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 4rem;
    }
    
    .nav {
        font-size: 2.5rem;
        margin-right: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero-img-col {
        min-height: 260px;
    }

    .hero-img {
        max-width: 100px;
        min-width: 70px;
        width: 26vw;
    }
}

@media (max-width: 800px) {
    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
    }
    
    .header {
        padding: 0.8rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        font-size: 2rem;
        width: 100%;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-button {
        font-size: 1.5rem;
        padding: 0.4rem 1rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: left;
        padding: 1rem;
        min-height: 40vh;
    }

    .hero-img-col {
        min-height: 180px;
    }

    .hero-img {
        margin-top: 1rem;
        max-width: 90px;
        min-width: 60px;
        width: 24vw;
    }
    
    .hero-title {
        font-size: 3rem;
        padding-left: 0.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle p {
        max-width: 100%;
        font-size: 1rem;
    }
    
    .hero-subtitle {
        padding-left: 0.5rem;
    }
    
    .sections-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
    }
    
    .sections-grid .blog-section {
        grid-column: 1;
        grid-row: 1 / 3;
    }
    
    .sections-grid .services-section {
        grid-column: 2;
        grid-row: 2 / 3;
    }
    
    .sections-grid .projects-section {
        grid-column: 2;
        grid-row: 3 / 4;
    }
    
    .section-title {
        font-size: 3.5rem;
        padding-left: 0.5rem;
    }
    
    .section-text {
        padding-left: 0.5rem;
        font-size: 1.2rem;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }
    
    .service-card {
        font-size: 1.2rem;
        padding: 0.8rem 1rem;
    }
    
    .cta-button {
        padding: 15px 25px;
        font-size: 18px;
    }
}
        @media (max-width: 576px) {
    .header svg {
        max-width: 280px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .accent-text::after {
        height: 10px;
        bottom: 4px;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .nav-about {
        font-size: 1.8rem;
    }
    
    .nav-button {
        font-size: 1.2rem;
        padding: 0.3rem 0.8rem;
    }
    
    .service-card {
        min-height: 60px;
        margin: 0.4rem;
        font-size: 1rem;
        letter-spacing: 0.1rem;
        /* Improve touch target size */
        padding: 1rem 1.2rem;
    }
    
    .blog-link {
        font-size: 1rem;
        /* Improve touch target */
        padding: 0px 0;
        display: block;
    }
    
    .cursor-dot, .cursor-outline {
        display: none; /* Hide custom cursor on mobile */
    }
    
    * {
        cursor: auto; /* Restore default cursor on mobile */
    }
    
    /* Reduce animation intensity on mobile */
    @keyframes float-services {
        0%, 100% {
            transform: translateY(0) translateX(0) rotate(0deg) scale(1);
            opacity: 0.3;
        }
        50% {
            transform: translateY(-80px) translateX(10px) rotate(90deg) scale(1.1);
            opacity: 0.5;
        }
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .header svg {
        max-width: 220px;
    }
    
    .nav-links {
        gap: 0.8rem;
    }
}

/* Landscape orientation on mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .grid-container {
        min-height: auto;
    }
    
    .hero {
        min-height: auto;
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .sections-grid {
        grid-template-rows: auto auto auto;
    }
}

.hero-title {
    font-size: 6rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--light);
    padding-left: 2rem;
    text-align: left;
}

.hero-subtitle {
    margin-top: 1.5rem;
    padding-left: 2rem;
}

.hero-subtitle p {
    color: var(--light);
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    font-style: italic;
    max-width: 80%;
    text-shadow: 2px 2px 0px var(--primary-dark);
}

.accent-text {
    color: var(--secondary);
    position: relative;
    display: inline-block;
    z-index: 1;
}

/* Brutalistischer Unterstreich-Effekt */
.accent-text::after {
    content: '';
    position: absolute;
    width: 108%;
    height: 14px;
    background-color: rgba(212, 165, 116, 0.3); /* Behalten wir für den brutalistischen Stil */
    bottom: 6px;
    left: -4%;
    z-index: -1;
    transform: rotate(0deg) skewX(0deg);
    transition: all 0.3s ease;
}

.accent-text:nth-of-type(2n)::after {
    height: 12px;
    bottom: 8px;
    transform: rotate(1deg) skewX(12deg);
    background-color: rgba(212, 165, 116, 0.35);
}

.accent-text:nth-of-type(3n)::after {
    height: 10px;
    bottom: 10px;
    transform: rotate(-0.5deg) skewX(-8deg);
    background-color: rgba(212, 165, 116, 0.4);
    width: 105%;
    left: -2.5%;
}

.subtitle {
    font-size: 2rem;
    color: var(--secondary-dark);
    margin-bottom: 1rem;
    font-weight: normal;
}

.cta-button {
    background-color: var(--secondary);
    color: #2C5F5D;
    padding: 20px 40px;
    border: none;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    width: fit-content;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

.hero-image {
    background-color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.blog-sections-grid {
    background-color: #1e4140;
    border-top: 0.3rem solid black;
    gap: 0;
    padding: 1rem;
    overflow: hidden;
    max-height: 100%;
    width: 100%;
}

.blog-entries-section {
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.sections-grid {
    grid-column: 1 / -1;
    grid-row: 3 / 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    max-height: 100%;
    width: 100%;
}

.section-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.sections-grid .blog-section {
    grid-row: 1 / span 2;
    grid-column: 1 / 2;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: stretch;
}

.sections-grid .services-section {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}

.projects-section {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    z-index: 100;
}

.sections-grid .blog-section {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    z-index: 100;
}

.services-section {
    background-color: #2c4a52;
    color: rgba(255, 255, 255, 0);
    transition: background-color 0.5s ease, box-shadow 0.5s ease, letter-spacing 0.5s ease;
    font-size: 5rem;
    letter-spacing: 0rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    padding-left: 0;
    animation: slideInPadding 1s ease-in-out forwards;
    animation-delay: 0.2s;

    /* &:hover {
        background-color: #3d5c63;
        color: var(--light);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        letter-spacing: 0.1rem;
    } */
    
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: 0.5s;
    }
    
    /* Shine effect now controlled by JavaScript */
}

.projects-section {
    background-color: var(--secondary-dark);
    color: rgba(255, 255, 255, 0);
    transition: background-color 0.5s ease, box-shadow 0.5s ease, letter-spacing 0.5s ease;
    font-size: 5rem;
    letter-spacing: 0rem;
    animation: slideInPadding 1.2s ease-in-out forwards;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    padding-left: 0;

    /* &:hover {
        background-color: #3a4f54;
        color: var(--light);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        letter-spacing: 0.15rem;
    } */
    
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: 0.5s;
    }
    
    /* Shine effect now controlled by JavaScript */
    
    &::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
        transition: 0.5s;
    }
    
    &:hover::after {
        width: 100%;
        animation: pulse 1.5s infinite;
    }
}

@keyframes slideInPadding {
    from {
        color: #fff;
        color: rgba(255, 255, 255, 0);
        /* opacity: 0; */
        background-opacity: 0;
        padding-left: 0;
    }
    to {
        color: #fff;
        color: var(--light);
        background-opacity: 1;
        padding-left: 4rem;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.shine-element {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 1;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

.projects-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    padding-left: 4rem;
}

.blog-section {
    background-color: #F5E6D3;
    color: #2C5F5D;
    font-size: 6rem;
    padding-left: 1.3rem;
    padding-top: 0.5rem;
}

.blog-section .section-text {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-height: 100%;
}

.section-title {
    /* font-size: 3rem; */
    font-weight: bold;
    font-size: 8rem;
    font-family: 'Inter', sans-serif;
}

.blog-header .section-title {
    color: #e0d1bf;
}

.section-text {
    padding-left: 1.4rem;
}

.section-title span {
    display: inline-block;
}

.section-text {
    font-size: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: lighter;
    line-height: 1.4;
    z-index: 10;
}

.blog-link {
    display: flex;
    align-items: space-between;
    color: #2C5F5D;
    text-decoration: none;
    font-size: 1rem;
    font-family: monospace;
    padding: 0 0;
    transition: background-color 0.2s ease;
}

.blog-link .arrow {
    margin-left: auto;
}

.blog-link:hover {
    text-decoration: underline;
}

.arrow {
    font-size: 1rem;
    float: right;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--surface);
    opacity: 0.5;
    /* z-index: 100; */
}

/* Leistungen cards styles */
.service-cards {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.4rem;
    font-weight: 100;
    flex-wrap: wrap;
    font-family: 'Courier New', Courier, monospace;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem 1rem 2rem 1rem;
}

.service-card {
    background: #2C5F5D;
    color: var(--secondary);
    padding: 1rem 1.5rem;
    font-family: monospace;
    font-size: 1.5rem;
    margin: 0.5rem;
    font-weight: 900;
    box-shadow: 0 2px 10px rgba(44, 95, 93, 0.09);
    transition: transform 0.18s cubic-bezier(.4, 2, .6, 1), box-shadow 0.18s cubic-bezier(.4, 2, .6, 1);
    cursor: pointer;
    letter-spacing: 0.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    min-height: 80px;
}

.service-card:hover {
    /* transform: translateY(-6px) scale(1.04) rotate(0deg); */
    box-shadow: 0 6px 24px rgba(44, 95, 93, 0.17);
    background: linear-gradient(135deg, #357a77, #2C5F5D);
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* New Styles for Subpages */

/* Projects Page Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 800px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-dark), var(--tertiary));
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.project-tags span {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
}

.case-study {
    margin-top: 3rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
}

.case-study h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.case-study h4 {
    margin: 1.5rem 0 0.5rem;
    color: var(--light);
}

/* Blog Page Styles */
.blog-posts {
    overflow: scroll;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 800px) {
    .blog-posts {
        grid-template-columns: 1fr;
    }
}

.blog-post {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* New Blog Grid Styles */
.blog-section {
    padding: 2rem;
    width: 100%;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    border-bottom: 4px solid var(--light);
    padding-bottom: 1rem;
}

.section-title {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
}

.blog-filter {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    background: none;
    border: 2px solid var(--light);
    color: var(--light);
    padding: 0.5rem 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Featured Entry */
.featured-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 3px solid var(--secondary);
    overflow: hidden;
}

.featured-image {
    height: 100%;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-entry:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.featured-tag {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    align-self: flex-start;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

.featured-content h3 {
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.featured-excerpt {
    color: var(--light);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.featured-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-weight: bold;
}

.read-more {
    color: var(--light);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.blog-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    display: inline-block;
    background-color: var(--tertiary);
    color: var(--light);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.blog-content h3 {
    font-size: 1.25rem;
    color: var(--light);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-content p {
    color: var(--light);
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.blog-meta .date {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: bold;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    background: none;
    border: 2px solid var(--light);
    color: var(--light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.pagination-btn.active, .pagination-btn:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary-dark);
}

.pagination-btn:last-child {
    width: auto;
    padding: 0 1rem;
}

.pagination-dots {
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .featured-entry {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .blog-filter {
        overflow-x: auto;
        padding-bottom: 0.5rem;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .featured-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-section {
        padding: 1rem;
    }
}

.blog-post-image {
    height: 200px;
    overflow: hidden;
}

.blog-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--tertiary), var(--primary-dark));
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--light);
    opacity: 0.8;
}

.blog-post-content h3 {
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.blog-post-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
}

.blog-categories {
    margin-top: 3rem;
}

.blog-categories h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.categories-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.categories-list li a {
    display: block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: var(--light);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.categories-list li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-signup {
    margin-top: 3rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
}

.newsletter-signup h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
    }
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
}

.newsletter-form input::placeholder {
    color: rgba(224, 209, 191, 0.6);
}

/* Services Page Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.services-section .service-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    min-height: 200px;
}

.services-section .service-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
}

.services-section .service-card p {
    position: relative;
    z-index: 2;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

.service-card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(44, 95, 93, 0.8), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-card-gradient {
    opacity: 1;
}

.service-details {
    margin-top: 3rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
}

.service-details h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.service-details ol {
    padding-left: 1.5rem;
}

.service-details li {
    margin-bottom: 0.75rem;
}

.service-details strong {
    color: var(--secondary);
}

/* Coming Soon Overlay */
.coming-soon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coming-soon-content {
    text-align: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    max-width: 80%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.coming-soon-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,<svg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'><filter id='turbulence-1'><feTurbulence id='noise' baseFrequency='0.005' stitchTiles='stitch'/><feColorMatrix type='hueRotate' values='-100' /><feColorMatrix type='saturate' values='10' /><feColorMatrix type='brightness' values='10' /><feGaussianBlur stdDeviation='0.5' /></filter><rect width='100%' height='100%' filter='url(%23turbulence-1)' /></svg>");
    opacity: 0.2;
    z-index: -1;
}

.coming-soon-content h1 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    letter-spacing: 0em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.coming-soon-content p {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 2rem;
}

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

/* Common components */
.cta-section {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.cta-section h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background-color: var(--secondary);
    color: var(--primary-dark);
    border: none;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

.footer {
    grid-column: 1 / -1;
    background-color: var(--primary-dark);
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-info h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Active navigation link */
.nav-links a.active span {
    color: var(--secondary);
    position: relative;
}

.nav-links a.active span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
}