/* Font declarations */
@font-face {
    font-family: 'TheSeasons-Light';
    src: url('fonts/theseasons-lt-webfont.woff2') format('woff2'),
         url('fonts/theseasons-lt-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'TheSeasons';
    src: url('fonts/theseasons-reg-webfont.woff2') format('woff2'),
         url('fonts/theseasons-reg-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TheSeasons-Bold';
    src: url('fonts/theseasons-bd-webfont.woff2') format('woff2'),
         url('fonts/theseasons-bd-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* Base styles */
body {
    font-family: 'Cormorant Garamond', serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.5s, color 0.5s;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 18px;
}

/* Theme modes */
.light-mode {
    background-color: #f2f2f6;
    color: #132a13;
}

.dark-mode {
    background-color: #132a13;
    color: #f2f2f6;
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* Header and typography */
header {
    text-align: center;
    padding: 20px 0;
}

.site-logo {
    max-width: 300px;
    height: auto;
    filter: invert(30%) sepia(95%) saturate(320%) hue-rotate(152deg) brightness(89%) contrast(101%);
}

.dark-mode .site-logo {
    filter: invert(70%) sepia(25%) saturate(320%) hue-rotate(152deg) brightness(95%) contrast(90%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'TheSeasons-Light', 'Cormorant Garamond', serif;
    line-height: 1.3;
}

h1 {
    font-size: 2.5em;
    color: #0e707d;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2em;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

p, ul, ol {
    margin-bottom: 1em;
}

img {
    max-width: 100%;
    height: auto;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

nav a {
    font-family: 'TheSeasons', 'Cormorant Garamond', serif;
    color: #608481;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2em;
    transition: color 0.3s;
    padding: 5px;
}

nav a:hover {
    color: #f68d92;
}

/* Content area */
main {
    background-color: rgba(246, 226, 212, 0.2);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Gallery page */
.gallery-page {
    text-align: center;
}

.gallery-page h1 {
    margin-bottom: 30px;
    font-size: 2.2em;
    color: #0e707d;
}

.gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Animated Background */
.underwater-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
    background: 
        radial-gradient(circle at 50% 50%, #0e707d 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, #608481 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, #132a13 0%, transparent 50%),
        radial-gradient(circle at 10% 10%, #f6e2d4 0%, transparent 50%);
    background-size: 200% 200%, 220% 220%, 200% 200%, 250% 250%;
    animation: underwaterMove 120s ease infinite;
    filter: blur(20px);
}

/* Splash Screen - Enhanced Animation */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1.5s ease, transform 1.5s ease;
    overflow: hidden;
}

.splash-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    background: 
        radial-gradient(circle at 50% 50%, #0e707d 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, #608481 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, #132a13 0%, transparent 50%),
        radial-gradient(circle at 10% 10%, #f6e2d4 0%, transparent 50%);
    background-size: 250% 250%, 270% 270%, 230% 230%, 300% 300%;
    animation: splashSwirl 20s ease-in-out infinite;
    filter: blur(15px);
}

@keyframes splashSwirl {
    0% { 
        background-position: 
            0% 0%,
            0% 0%,
            0% 0%,
            0% 0%;
    }
    33% {
        background-position: 
            70% 70%,
            30% 50%,
            50% 30%,
            70% 30%;
    }
    66% {
        background-position: 
            30% 30%,
            80% 20%,
            20% 80%,
            30% 70%;
    }
    100% { 
        background-position: 
            0% 0%,
            0% 0%,
            0% 0%,
            0% 0%;
    }
}

.splash-logo {
    width: 80%;
    max-width: 550px;
    opacity: 0;
    filter: invert(30%) sepia(95%) saturate(320%) hue-rotate(152deg) brightness(89%) contrast(101%);
    position: relative;
    z-index: 2;
    animation: fade-in-logo 1.5s ease forwards;
    transform-origin: center center;
}

@keyframes fade-in-logo {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Main content fade-in effect */
#root {
    opacity: 0;
    transition: opacity 1s ease;
}

#root.visible {
    opacity: 1;
}

/* Animation keyframes */
@keyframes underwaterMove {
    0%, 100% { 
        background-position: 
            0% 0%,
            0% 0%,
            0% 0%,
            0% 0%;
    }
    25% {
        background-position: 
            50% 50%,
            60% 20%,
            30% 70%,
            40% 40%;
    }
    50% {
        background-position: 
            100% 100%,
            100% 100%,
            100% 100%,
            100% 100%;
    }
    75% {
        background-position: 
            50% 50%,
            40% 80%,
            70% 30%,
            60% 60%;
    }
}

.snow-fall {
    opacity: 0;
    transform: translateY(-20px);
    animation: snow-fall 1s ease forwards;
}

@keyframes snow-fall {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Theme toggle button */
.sigil {
    position: fixed;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 2;
}

.left-sigil {
    top: 20px;
    left: 20px;
}

.sigil:hover {
    transform: scale(1.1);
}

.dark-mode .sigil {
    filter: invert(1);
}

/* Social Media Icons */
.social-icons {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.social-icons a {
    color: #608481;
    transition: color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    color: #f68d92;
    transform: translateY(-3px);
}

.dark-mode .social-icons a {
    color: #a3c9c6;
}

.dark-mode .social-icons a:hover {
    color: #f9a6aa;
}

/* Mailing list form styles */
.subscribe-form-container {
    max-width: 500px;
    margin: 2em auto;
    padding: 2em;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
}

.form-field {
    margin-bottom: 1.5em;
}

.form-field label {
    display: block;
    margin-bottom: 0.5em;
    font-family: 'TheSeasons-Light', 'Cormorant Garamond', serif;
}

.form-field.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-field.checkbox input {
    margin-top: 0.3em;
    margin-right: 0.8em;
}

.form-field.checkbox label {
    font-size: 0.9em;
    line-height: 1.4;
}

.form-field input[type="text"],
.form-field input[type="email"] {
    width: 100%;
    padding: 0.8em;
    border: 1px solid rgba(96, 132, 129, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.7);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1em;
    box-sizing: border-box;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 0.8em;
    background-color: #0e707d;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'TheSeasons', serif;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0a5c67;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.7em;
    }
    
    .site-logo {
        max-width: 220px;
    }
    
    .social-icons {
        top: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .social-icons svg {
        width: 20px;
        height: 20px;
    }
    
    .sigil {
        top: 15px;
        left: 15px;
        width: 30px;
        height: 30px;
    }
    
    main {
        padding: 15px;
    }
    
    .subscribe-form-container {
        padding: 1.5em;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        align-items: center;
    }
    
    nav a {
        margin: 5px 0;
        font-size: 1.1em;
    }
    
    .form-field.checkbox label {
        font-size: 0.85em;
    }
    
    .splash-logo {
        width: 90%;
    }
}