/* Base Styles and Color Variables */
:root {
    /* Brand Colors */
    --white: #FFFFFF;
    --black: #000000;
    --green: #39A855;
    --yellow: #FFCC51;
    --blue: #1A43D2;
    --red: #F8411C;

    /* Font */
    --font-main: 'Josefin Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;

    /* Container Width */
    --container-width: 1200px;
    --container-padding: 1.5rem;

    /* Border Radius */
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--yellow);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    color: var(--white);
    background-color: var(--black);
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--blue);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
}

.separator {
    width: 80px;
    height: 4px;
    background-color: var(--yellow);
    margin: 0 auto;
}

/* Image Placeholders */
.image-placeholder {
    background-color: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    border: 2px solid var(--blue);
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.image-placeholder span {
    color: var(--white);
    font-size: 0.9rem;
}

/* Header and Navigation */
.header {
    background-color: var(--black);
    color: var(--white);
    padding: var(--spacing-md) 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.site-logo-container {
    padding: 1rem 0;
    position: relative;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.site-logo {
    max-height: 48px;
    width: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.mascot-logo {
    max-height: 48px;
    width: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-name {
    height: 32px;
    display: block;
    margin-left: 0.5rem;
}

.studio-name {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var (--white);
}

/* Special text styling for "Schabernack" */
.schabernack-text {
    color: var(--yellow);
    position: relative;
    display: inline;
}

.schabernack-studio-text {
    color: var(--green);
    font-weight: 700;
    position: relative;
    display: inline;
}


.studio-text {
    color: var(--yellow);
    display: inline;
}

.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--black);
    padding: var(--spacing-md);
}

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

.nav-menu li {
    margin-bottom: var(--spacing-sm);
}

.nav-menu li a {
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--spacing-sm);
    display: block;
}

.nav-menu li a:hover {
    color: var(--yellow);
}

.menu-toggle {
    display: block;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Landing Section */
.landing-section {
    background-color: var(--yellow);
    color: var(--black);
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var (--spacing-lg);
    position: relative;
    background-image: linear-gradient(rgb(26, 67, 210, .7), rgb(255, 204, 81, .5)),
        url('../pictures/resources/golden-string.png');
    background-size: cover;
    background-position: center;
}

.landing-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.landing-content h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    border-bottom: 4px solid var(--white);
    padding-bottom: var(--spacing-md);
    display: inline-block;
}

.landing-content h1 .schabernack-text {
    color: var(--yellow);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.landing-content h1 .studio-text {
    color: var(--white);
    font-weight: 700;
    display: inline-block;
}

.landing-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
    color: var(--white);
}

/* About Section */
.about-section {
    background-color: var(--white);
    color: var(--black);
    padding: var(--spacing-xxl) 0;
    border-top: 4px solid var(--green);
    border-bottom: 4px solid var(--green);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    min-height: 300px;
}

/* Studio Icons */
.studio-icons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--black);
    color: var(--white);
    padding: var(--spacing-lg);
    border: 2px solid var(--black);
    transition: transform 0.3s ease;
}

.icon-container:hover {
    transform: translateY(-5px);
}

.icon-container:nth-child(1) {
    border-color: var(--green);
}

.icon-container:nth-child(2) {
    border-color: var(--yellow);
}

.icon-container:nth-child(3) {
    border-color: var(--red);
}

.studio-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-md);
}

.icon-container h4 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .studio-icons {
        flex-direction: row;
        justify-content: space-between;
    }

    .icon-container {
        flex: 1;
        margin: 0 var(--spacing-sm);
    }
}

/* Projects Section */
.projects-section {
    background-color: var(--blue);
    color: var (--white);
    padding: var(--spacing-xxl) 0;
}

.projects-section .separator {
    background-color: var(--yellow);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background-color: var(--yellow);
}

.timeline-item {
    position: relative;
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--yellow);
    border-radius: 0;
    border: 4px solid var(--blue);
}

.timeline-content {
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg);
    color: var(--white);
}

.timeline-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: var(--spacing-sm);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.timeline-content p {
    margin-bottom: var(--spacing-lg);
}

.project-image {
    margin-top: var(--spacing-md);
}

.project-img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border: 2px solid var(--yellow);
}

.project-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.gallery-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border: 2px solid var(--yellow);
}

/* Team Section */
.team-section {
    background-color: var(--yellow);
    color: var(--black);
    padding: var(--spacing-xxl) 0;
    border-top: 4px solid var(--red);
    border-bottom: 4px solid var(--red);
}

.team-grid {
    max-width: 880px;
    justify-self: center;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.team-card {
    border: 2px solid var(--black);
    overflow: hidden;
    background-color: var(--white);
}

.profile-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-color: var(--yellow);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.profile-info {
    padding: var(--spacing-lg);
    background-color: var(--white);
    border-top: 2px solid var(--black);
}

.profile-info h3 {
    color: var(--red);
    margin-bottom: 0.25rem;
}

.profile-info .role {
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--black);
}

/* Contact Section */
.contact-section {
    background-color: var(--blue);
    color: var(--white);
    padding: var(--spacing-xxl) 0;
}

.contact-section .separator {
    background-color: var(--yellow);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
}

.contact-item i {
    margin-right: var(--spacing-md);
    font-size: 1.5rem;
    color: var(--yellow);
}

.social-links {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var (--spacing-xl);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--yellow);
    color: var (--blue);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--white);
}

.contact-form {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--yellow);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--yellow);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--white);
    font-family: var(--font-main);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--white);
}

.contact-form .btn {
    background-color: var(--yellow);
    color: var(--blue);
    border: none;
}

.contact-form .btn:hover {
    background-color: var(--white);
    color: var(--blue);
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.footer-logo img {
    padding-right: 1rem;
}

.footer-logo-img {
    max-height: 60px;
    width: auto;
    margin-bottom: var(--spacing-sm);
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: translateY(-3px);
}

.footer-links h4 {
    margin-bottom: var(--spacing-md);
    color: var(--yellow);
}

.footer-links ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-links ul li a {
    color: var(--white);
}

.footer-links ul li a:hover {
    color: var(--yellow);
}

.impressum {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.impressum h4 {
    color: var(--yellow);
    margin-bottom: var(--spacing-md);
}

.impressum p {
    margin-bottom: var(--spacing-xs);
}

.copyright {
    padding: var(--spacing-lg) 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Media Queries for Responsive Design */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        background-color: transparent;
        padding: 0;
    }

    .nav-menu li {
        margin-bottom: 0;
        margin-left: var(--spacing-md);
    }

    .about-content {
        flex-direction: row;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        flex-direction: row;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

/* Media Queries for Header and Logo */
@media (max-width: 768px) {
    .site-logo {
        max-height: 40px;
        /* Slightly smaller logo on mobile */
    }

    .brand-name {
        height: 22px;
    }

    .mascot-logo {
        display: none;
        /* Hidden by default, shown via JS if needed */
        max-height: 40px;
        width: auto;
    }

    /* For very small screens where the logo might be too tall */
    @media (max-height: 500px) {
        .site-logo-container {
            display: flex;
            align-items: center;
            height: 40px;
        }
    }
}

/* Media Queries for Header and Logo */
@media (max-width: 768px) {
    .site-logo-container {
        width: 60px;
        height: 60px;
    }

    .site-logo {
        max-height: 60px;
    }

    .mascot-logo {
        max-height: 60px;
    }

    .brand-name {
        height: 24px;
    }
}

/* For very small screens where the logo might be too tall */
@media (max-height: 500px) or (max-width: 360px) {
    .site-logo-container {
        width: 50px;
        height: 50px;
    }

    .site-logo {
        max-height: 50px;
    }

    .mascot-logo {
        max-height: 50px;
    }

    .brand-name {
        height: 20px;
    }
}

/* Color Theme Variations */
/* Landing section - Yellow black White */
.landing-section {
    background-color: var(--yellow);
    color: var(--black);
}

.landing-section .btn {
    background-color: var(--black);
    color: var(--white);
}

.landing-section .btn:hover {
    background-color: var(--white);
    color: var(--black);
}

/* About section - White green black - This is our only white section */
.about-section {
    background-color: var(--white);
    color: var(--black);
}

.about-section .separator {
    background-color: var(--green);
}

.about-section strong {
    color: var(--green);
}

/* Projects section - Blue yellow black */
.projects-section {
    background-color: var(--blue);
    color: var (--white);
}

.projects-section .separator {
    background-color: var(--yellow);
}

.projects-section h2 {
    color: var(--yellow);
}

/* Team section - Yellow red black */
.team-section {
    background-color: var(--yellow);
    color: var(--black);
}

.team-section .separator {
    background-color: var(--red);
}

.team-section h2 {
    color: var(--black);
}

/* Contact section - Blue yellow white */
.contact-section {
    background-color: var(--blue);
    color: var(--white);
}

.contact-section .separator {
    background-color: var(--yellow);
}

.contact-section h2 {
    color: var(--yellow);
}

/* Footer - white black blue */
.footer {
    background-color: var(--black);
    color: var(--white);
}

.footer h3,
.footer h4 {
    color: var(--yellow);
}

/* Animation styles */
.animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Logo Animation Styles */
.site-logo-container {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.site-logo-container.playing-animation {
    cursor: wait;
}

.site-logo-container.mascot-visible {
    cursor: pointer;
}

.site-logo {
    max-height: 48px;
    width: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.mascot-logo {
    max-height: 48px;
    width: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Add subtle animation for mascot */
.mascot-visible .mascot-logo {
    animation: subtle-bounce 0.5s ease forwards;
}

@keyframes subtle-bounce {
    0% {
        transform: translateY(5px);
        opacity: 0;
    }

    70% {
        transform: translateY(-2px);
        opacity: 1;
    }

    85% {
        transform: translateY(1px);
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Tooltip for mascot replay */
.mascot-visible .mascot-logo {
    position: relative;
}

.mascot-visible .mascot-logo::after {
    content: "Click to replay";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.mascot-visible .mascot-logo:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 
 * Logo Animation System
 * 
 * The animation works through several states:
 * 1. Initial state: Shows the animated GIF (.playing-animation)
 * 2. Transition state: Fades between GIF and mascot (.transitioning)
 * 3. Final state: Shows the mascot (.mascot-visible)
 *
 * The styles control visibility, cursor state, and animations for each state.
 * The mascot is clickable to replay the animation.
 */

/* Remove header animation and always show mascot */
.site-logo {
    display: none !important;
}

.mascot-logo {
    display: block !important;
    opacity: 1 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transition: none !important;
}

/* Hide about section icons on small screens */
@media (max-width: 1020px) {
    .about-image {
        display: none !important;
    }
}

#mail-link {
    color: var(--yellow);
    text-decoration: underline;

}