/*
Theme Name: Philokalia
Theme URI: https://philocalia.ps
Author: Antigravity
Description: A premium, minimal landing page for Philokalia - "Love of the Beautiful".
Version: 1.1
*/

@font-face {
    font-family: 'Century Gothic';
    src: url('fonts/Century Gothic/centurygothic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-magenta: #ff0090; /* Vibrant Pink Magenta */
    --primary-hover: #d40078;
    --text-white: #ffffff;
    --overlay-dark: rgba(0, 0, 0, 0.4);
    --font-main: 'Century Gothic', 'CenturyGothic', 'AppleGothic', sans-serif;
}

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

body, html {
    font-family: var(--font-main);
    color: var(--text-white);
    background-color: #000;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Background Images with Overlay and Cross-fade */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    transform-origin: center center;
    animation: slowPan 30s ease-in-out infinite alternate;
}

.bg-1 {
    animation: slowPan 30s ease-in-out infinite alternate, crossFade4_1 24s ease-in-out infinite;
}

.bg-2 {
    opacity: 0;
    animation: slowPan 30s ease-in-out infinite alternate-reverse, crossFade4_2 24s ease-in-out infinite;
}

.bg-3 {
    opacity: 0;
    animation: slowPan 30s ease-in-out infinite alternate, crossFade4_3 24s ease-in-out infinite;
}

.bg-4 {
    opacity: 0;
    animation: slowPan 30s ease-in-out infinite alternate-reverse, crossFade4_4 24s ease-in-out infinite;
}

@keyframes crossFade4_1 {
    0%, 20% { opacity: 1; }
    25%, 95% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes crossFade4_2 {
    0%, 20% { opacity: 0; }
    25%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes crossFade4_3 {
    0%, 45% { opacity: 0; }
    50%, 70% { opacity: 1; }
    75%, 100% { opacity: 0; }
}

@keyframes crossFade4_4 {
    0%, 70% { opacity: 0; }
    75%, 95% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes slowPan {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 0;
}

/* Site Header & Logo */
.site-header {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 30;
}

.site-logo img {
    max-width: 150px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.site-logo img:hover {
    opacity: 1;
}

/* Centered Text Content */
.centered-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.centered-text h1, .centered-text .site-title {
    font-size: 10vw; /* Scales perfectly with viewport */
    font-weight: 300;
    margin-bottom: 0;
    color: var(--primary-magenta);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    animation: fadeUp 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, textGlow 4s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px rgba(0, 0, 0, 0.5), 0 0 5px var(--primary-magenta); }
    100% { text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px var(--primary-magenta); }
}

.centered-text h2, .centered-text .site-tagline {
    font-size: 3.5vw; /* Scales proportionally with h1 */
    font-weight: 300;
    color: var(--primary-magenta);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    white-space: nowrap;
    margin-top: 10px;
    opacity: 0; /* Start hidden for animation */
    animation: fadeUp 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards; /* 0.5s delay */
}

/* Visually Hidden but Readable by Crawlers & Screen Readers */
.seo-hidden-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Proper Footer Layout */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 20;
}

/* Bottom Left Subscription Form */
.mailchimp-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    animation: fadeUp 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1s forwards;
}

.mailchimp-form label {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--text-white);
    opacity: 0.8;
}

.form-inputs {
    display: flex;
    align-items: center;
}

.mailchimp-form input[type="email"] {
    background: transparent;
    border: 1px solid var(--primary-magenta);
    border-radius: 50px;
    outline: none;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    width: 250px;
    padding: 10px 20px;
    margin-right: 10px;
}

.mailchimp-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mailchimp-form button {
    background: var(--primary-magenta);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mailchimp-form button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.mailchimp-form button:active {
    transform: translateY(0);
}

/* Site Email Link */
.site-email {
    z-index: 20;
    opacity: 0;
    animation: fadeUp 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1s forwards;
}

.site-email a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.site-email a:hover {
    opacity: 1;
    color: var(--primary-magenta);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .centered-text h1, .centered-text .site-title {
        font-size: 3rem;
    }
    .centered-text h2, .centered-text .site-tagline {
        font-size: 1rem;
    }
    .site-footer {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 20px;
        position: absolute;
    }
    .mailchimp-form {
        align-items: center;
    }
    .form-inputs {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .mailchimp-form input[type="email"] {
        width: 100%;
        margin-right: 0;
    }
    .site-email {
        margin-top: 10px;
    }
}

/* Page.php Styling */
.page-container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 144, 0.2);
    backdrop-filter: blur(10px);
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-magenta);
    margin-bottom: 30px;
    font-weight: 300;
    text-align: center;
}

.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.page-content h2, .page-content h3 {
    color: var(--primary-magenta);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: normal;
}

.page-content p {
    margin-bottom: 20px;
}

.page-content a {
    color: var(--primary-magenta);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.page-content a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.back-home {
    margin-top: 50px;
    text-align: center;
}

.back-home a {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--primary-magenta);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.back-home a:hover {
    background: var(--primary-magenta);
}

@media (max-width: 768px) {
    .page-container {
        margin: 80px 20px 40px;
        padding: 30px 20px;
    }
    .page-title {
        font-size: 2rem;
    }
}
