/* =========================================================
   GLOBAL
   ========================================================= */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background: #000;
    color: #fff;
}
a {
    color: inherit;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 50px;
    background: rgba(0, 0, 0, 0.90);
    padding: 0.5rem;
    z-index: 100;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
nav a {
    color: #fff;
    margin: 0.5rem 0.8rem;
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
nav a:hover {
    color: #ffd700;
}

/* =========================================================
   SECTIONS
   ========================================================= */
section {
    min-height: auto;
    padding: 60px 10px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* =========================================================
   HOME / GATE INTRO
   ========================================================= */
#home {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0;
    position: relative;
}
.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================================
   BACKGROUND BEHIND THE GATES
   ========================================================= */
.temple-background {
    position: absolute;
    inset: 0;
    background: #1a120b url('https://ake.gr/ake-animal-welfare.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0;
    transition: opacity 1.6s ease-in;
    z-index: 1;
}
.temple-background.visible {
    opacity: 1;
}

/* =========================================================
   WOODEN GATES (SLIDING DOORS)
   ========================================================= */
.gate {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50.2%;
    height: 100%;
    background-color: #5a4635;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    z-index: 10;
    will-change: transform;
    pointer-events: none;

    /* FORCE slow animation */
    transition: transform 12s cubic-bezier(0.77, 0, 0.175, 1) !important;
}

.gate-left {
    left: 0;
    background-image: url('https://ake.gr/gate-left.png');
    transform: translateX(0);
}

.gate-right {
    right: 0;
    background-image: url('https://ake.gr/gate-right.png');
    transform: translateX(0);
}

.container.gate-open .gate-left {
    transform: translateX(-100%) !important;
}

.container.gate-open .gate-right {
    transform: translateX(100%) !important;
}

/* Mobile – keep the nice speed you like */
@media (max-width: 600px) {
    .gate {
        transition-duration: 2.6s !important;
    }
}
/* =========================================================
   WELCOME MESSAGE
   ========================================================= */
.welcome-message {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity 1.6s ease-in 0.4s;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9), 2px 2px 6px rgba(0, 0, 0, 0.7);
    z-index: 3;
    padding: 0 10px;
    pointer-events: none;
}
.welcome-message.visible {
    opacity: 1;
}

/* =========================================================
   SCROLL INDICATOR
   ========================================================= */
.scroll-indicator {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
    cursor: pointer;
    z-index: 20;
    text-shadow: 1px 1px 3px #000;
    animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* =========================================================
   CONTENT SECTIONS
   ========================================================= */
#news,
#about,
#contact,
#advertisements {
    background: #111 url('https://ake.gr/ake-background.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}
.content {
    background: rgba(0, 0, 0, 0.72);
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
    width: auto;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}
h1, h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 15px;
}
p {
    font-size: 1rem;
    max-width: 100%;
    margin: 0 auto 15px;
    line-height: 1.6;
}

/* =========================================================
   NEWS BUTTON
   ========================================================= */
.news-button {
    display: inline-block;
    padding: 8px 15px;
    background: #ffd700;
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}
.news-button:hover {
    background: #e6c200;
    transform: scale(1.05);
}

/* =========================================================
   ADVERTISEMENTS
   ========================================================= */
.ad-image {
    max-width: 80%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s;
    margin: 10px auto;
    display: block;
}
.ad-image:hover {
    transform: scale(1.05);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    position: relative;
    padding: 10px;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #ccc;
    background: #000;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 600px) {
    nav {
        flex-direction: column;
        padding: 0.3rem;
    }
    nav a {
        font-size: 0.9rem;
        margin: 0.3rem 0;
    }
    .welcome-message {
        font-size: 1.5rem;
    }
    h1, h2 {
        font-size: 1.5rem;
    }
    p {
        font-size: 0.9rem;
    }
    .news-button {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    .scroll-indicator {
        font-size: 1rem;
    }
    .gate {
        transition-duration: 2.8s;
    }
    #news,
    #about,
    #contact,
    #advertisements {
        background-attachment: scroll;
    }
    .content {
        max-width: 94%;
        padding: 15px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .gate {
        transition: none !important;
    }
    .temple-background,
    .welcome-message {
        transition: none !important;
    }
    .scroll-indicator {
        animation: none;
    }
}
