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

/* Light color scheme (Default) */
[data-theme="light"],
:root:not([data-theme="dark"]) {
    --pico-primary-focus: var(--pico-color-pumpkin-250);
    --pico-primary-border: var(--pico-color-pumpkin-250);
}

/* Dark color scheme (Auto) */
/* Automatically enabled if user has Dark mode enabled */
@media only screen and (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --pico-primary-focus: var(--pico-color-pumpkin-250);
        --pico-primary-border: var(--pico-color-pumpkin-250);
    }
}

/* Dark color scheme (Forced) */
[data-theme="dark"] {
    --pico-primary-focus: var(--pico-color-pumpkin-250);
    --pico-primary-border: var(--pico-color-pumpkin-250);
}

/* SVG Icons - adapt to light/dark mode */
.service-icon,
.tech-icon,
.contact-detail-icon {
    filter: brightness(0.2);
}

@media only screen and (prefers-color-scheme: dark) {

    :root:not([data-theme="light"]) .service-icon,
    :root:not([data-theme="light"]) .tech-icon,
    :root:not([data-theme="light"]) .contact-detail-icon {
        filter: brightness(0) invert(1);
    }
}

[data-theme="dark"] .service-icon,
[data-theme="dark"] .tech-icon,
[data-theme="dark"] .contact-detail-icon {
    filter: brightness(0) invert(1);
}

/* Custom colors */
.pico-color-white {
    color: #fff !important;
}

/* Effects */
.blur {
    /* 1. Add the blur effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* 2. Make the existing Pico background 80% opaque */
    /* This mixes the variable with "transparent" */
    background-color: color-mix(in srgb, var(--pico-background-color), transparent 20%) !important;
}

/* Utility: reusable flex layout for responsive sections */
.flex-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .flex-layout {
        flex-direction: column !important;
        text-align: center;
    }

    .flex-layout img {
        margin: 0 auto;
    }
}

/* Utility: make all text white */
.text-white * {
    color: white !important;
}

/* ================================
   CUSTOM OVERRIDES
   ================================ */

/* Typography - minimal overrides to Pico's typography */
h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

/* Navigation - minimal overrides to Pico's nav */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: var(--pico-background-color);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

a.plain {
    font-weight: 600;
    color: var(--pico-h1-color);
    opacity: 0.8;
    text-decoration: none;
    transition: color 0.3s, font-weight 0.3s;
    transition-duration: 0.3s;
}

a.plain:hover {
    opacity: 1;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--pico-h1-color);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;

    }

    .nav-menu.active {
        display: flex;
    }
}

/* Hero section */
.hero-section {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/assets/hero.webp');
}

.hero-content {
    max-width: 800px;
    color: white;
}

.hero-title {
    color: white;
    font-weight: 800;
    font-size: 70px;
    line-height: 82px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero-subtitle {
    color: white;
    font-weight: 300;
    font-size: 32px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Attention-grabbing button */
.attention-button {
    border-radius: 2rem;
    background-color: var(--pico-color-pumpkin-300);
    border-color: var(--pico-color-pumpkin-300);
}

.attention-button:hover {
    transform: translateY(-2px);
    background-color: var(--pico-color-orange-500);
    border-color: var(--pico-color-orange-500);
}

/* Tiles - minimal styling, leverage Pico's cards */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.tile {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;

    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.3s;
    cursor: pointer;
}


@media (max-width: 768px) {
    .tiles-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tile h4,
.tile p {
    color: white;
}

section {
    padding: 4rem 0;
}

.app-store-rating-tile {
    margin-top: 1rem;
    padding: 0.6rem 0.9rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--card-background-color);
    border: 1px solid var(--card-border-color);
}


.reference-screenshot {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
}

.references-numbers-separator {
    width: 2rem;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    margin-bottom: 1rem;
}

/* Process Section - Arbeitsablauf */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-card-border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.process-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--pico-color-pumpkin-300), var(--pico-color-orange-500));
    border-radius: 50%;
}

.process-step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.process-step p {
    text-align: left;
    line-height: 1.6;
    opacity: 0.9;
}

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

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.testimonial-card {
    padding: 2rem;
    border-radius: 0.75rem;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-card-border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    flex: 1;
}

.testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
    margin: 0;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.2rem;
    font-size: 3rem;
    line-height: 1;
    color: var(--pico-color-pumpkin-300);
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1rem;
    border-top: 2px solid var(--pico-color-pumpkin-300);
}

.testimonial-author strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.testimonial-author span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.testimonial-company {
    font-weight: 600;
    color: var(--pico-color-pumpkin-500);
    opacity: 1 !important;
}

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

/* Education Section - Conference Images */

.education-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.education-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 900px;
    padding: 2rem 0;
    align-items: center;
}

.education-image-card {
    padding: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 290px;
    aspect-ratio: 4/3;
}

.education-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.education-image-1 {
    transform: rotate(-3deg) translateY(10px);
    z-index: 1;
}

.education-image-2 {
    transform: rotate(2deg) translateY(-10px);
    margin-left: -40px;
    margin-right: -40px;
    z-index: 2;
}

.education-image-3 {
    transform: rotate(-2deg) translateY(15px);
    z-index: 1;
    margin-left: -80px;
}

.education-image-card:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

@media (max-width: 768px) {
    .education-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .education-images-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .education-image-card {
        max-width: 100%;
        margin: 0 !important;
    }

    .education-image-1,
    .education-image-2,
    .education-image-3 {
        transform: rotate(0deg);
    }

    .education-image-card:hover {
        transform: translateY(-5px) scale(1.02);
    }
}

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

.info-card {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-card-border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 1rem;
}

.info-card strong {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.info-card p {
    margin: 0;
    line-height: 1.6;
    opacity: 0.9;
}

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

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

/* Technologies Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tech-icon {
    width: 40px;
    height: 40px;
}

.tech-item span {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.tech-item-text span {
    font-weight: 400;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
}

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-info address {
    font-style: normal;
    line-height: 1.6;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-details p {
    margin: 0;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-detail-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.contact-details a {
    color: var(--pico-color-pumpkin-500);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.contact-details a:hover {
    opacity: 0.8;
}

.contact-person {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-person strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-person p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--pico-muted-border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-spacer {
    /* Empty spacer column */
}

.footer-left strong {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-left p {
    margin: 0;
    opacity: 0.8;
}

.footer-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-right li {
    margin: 0;
    list-style: none;
}

.footer-right a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-right a:hover {
    opacity: 1;
    color: var(--pico-color-pumpkin-500);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--pico-muted-border-color);
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.8rem;
}

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

    .footer-spacer {
        display: none;
    }

    .footer-right ul {
        align-items: flex-start;
    }
}

/* Support Section */
.support-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.support-content h2 {
    margin-bottom: 1rem;
}

.support-content h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.support-content ul {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.support-content li {
    margin-bottom: 0.75rem;
}

.support-image {
    display: flex;
    justify-content: center;
}

.support-image img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 0.75rem;
}

@media (max-width: 768px) {
    .support-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .support-image {
        order: -1;
    }
}

.showcase-hero {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: auto;
    align-items: center;
    gap: 4rem;
}

@media (max-width: 768px) {
    .showcase-hero {
        gap: 2rem;
    }
}

.showcase-screenshot {
    max-width: 100%;
    height: auto;
}

.showcase-screenshot-wrapper {
    order: 2;
    text-align: center;
}

@media (max-width: 768px) {
    .showcase-screenshot {
        max-height: 500px;
    }
    .showcase-screenshot-wrapper {
        order: 0;
    }
}