/* --- farmcraze.css --- */

:root {
    --fc-primary: #4CAF50;
    --fc-secondary: #8D6E63;
    --fc-background: #1a1a1a;
    --fc-text-primary: #EAEAEA;
    --fc-text-secondary: #888888;
    --fc-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--fc-background);
    color: var(--fc-text-primary);
    overflow-x: hidden;
}

/* --- Preloader & Cursor --- */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--fc-background); z-index: 2000; display: flex; justify-content: center; align-items: center; }
.loader-logo { font-size: 2rem; font-weight: 600; color: var(--fc-primary); }
.cursor-dot, .cursor-outline { position: fixed; top: 0; left: 0; pointer-events: none; transform: translate(-50%, -50%); border-radius: 50%; z-index: 1500; }
.cursor-dot { width: 8px; height: 8px; background-color: var(--fc-primary); }
.cursor-outline { width: 40px; height: 40px; border: 2px solid rgba(76, 175, 80, 0.5); transition: transform 0.2s ease-out, width 0.3s ease-out, height 0.3s ease-out; }
.cursor-outline.hover { transform: scale(1.5); border-color: rgba(76, 175, 80, 0); }

/* --- Zurück-Link --- */
.back-link {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 10;
    text-decoration: none;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
}
.back-link:hover {
    transform: scale(1.05);
}
.back-link img {
    height: 45px;
    width: auto;
    display: block;
}


/* --- Projekt Hero (Header) --- */
.project-hero {
    height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../projects/FarmCraze/media/bg-gif.gif');
    background-size: cover;
    background-position: center 80%;
    animation: slow-pan 25s ease-in-out infinite alternate;
    z-index: 1;
}

/* --- Wolken-Animation --- */
.hero-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 2;
    pointer-events: none;
}

.cloud {
    position: absolute;
    opacity: 0.8;
    animation: float 20s linear infinite, bob 5s ease-in-out infinite;
}

.cloud1 {
    width: 80px;
    top: 10%;
    animation-duration: 25s, 4s;
}

.cloud2 {
    width: 60px;
    top: 25%;
    animation-duration: 35s, 6s;
    animation-delay: -10s;
}

.cloud3 {
    width: 100px;
    top: 15%;
    animation-duration: 20s, 5s;
    animation-delay: -5s;
}

@keyframes float {
    from { transform: translateX(-150px); }
    to { transform: translateX(100vw); }
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}


.project-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--fc-background) 5%, rgba(26, 26, 26, 0.8) 25%, transparent 60%);
    z-index: 3;
}

@keyframes slow-pan {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-content {
    z-index: 4;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-title-image {
    max-width: 35%; 
    height: auto;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--fc-text-secondary);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem; /* Abstand zwischen den Buttons */
    margin-top: 1rem;
    align-items: center;
}

.cta-button {
    display: inline-block;
    padding: 0; 
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: transparent;
    border: none;
    line-height: 0;
    animation: button-intro 0.5s ease-out backwards;
}

.hero-buttons .cta-button:nth-child(1) { animation-delay: 0.2s; }
.hero-buttons .cta-button:nth-child(2) { animation-delay: 0.3s; }


@keyframes button-intro {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.cta-button-image {
    height: 50px;
    width: auto;
}

.github-corner-button {
    position: absolute;
    bottom: 25px;
    left: 25px;
    z-index: 10;
    animation-delay: 0.4s;
}

.github-corner-button .cta-button-image {
    height: 45px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
}


/* --- Hauptinhalt --- */
.project-main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 40px;
}

section {
    margin-bottom: 120px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--fc-text-primary);
}

.project-description-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto;
    color: var(--fc-text-secondary);
}

/* Galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 60px;
}
.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--fc-border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery-item:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.gallery-item.wide {
    grid-column: span 2;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CTA Sektion */
.cta-section .cta-content {
    background-color: #111111;
    padding: 60px 40px;
    border-radius: 20px;
    border: 1px solid var(--fc-border);
}

.cta-section .cta-content p {
    color: var(--fc-text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Footer */
.project-footer {
    text-align: center;
    padding: 40px;
    color: var(--fc-text-secondary);
    border-top: 1px solid var(--fc-border);
}

/* --- Scroll-Animationen --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-delay: var(--delay, 0s);
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Anpassungen --- */
@media (max-width: 768px) {
    .cursor-dot, .cursor-outline { display: none; }
    body { cursor: auto; }
    .back-link { top: 20px; left: 20px; }
    .back-link img { height: 40px; }
    .project-main-content { padding: 80px 20px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.wide { grid-column: span 1; }
    .hero-title-image { max-width: 70%; }
    .hero-content { margin-bottom: 0; }
    .github-corner-button { bottom: 20px; left: 20px; }
}