@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@200;300;400;500&family=Cormorant+Garamond:wght@300;400;500&display=swap');

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

:root {
    --navy: #0a0f14;
    --gold: #b8975a;
    --gold-bright: #d4af76;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: var(--navy);
    color: var(--gold);
    overflow-x: hidden;
    line-height: 1.6;
}

.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
    background: var(--navy);
}

/* Header - Logo Top Right Only */
header {
    position: fixed;
    top: 0;
    right: 0;
    padding: 30px 40px;
    z-index: 1000;
}

.logo-small {
    width: 40px;
    height: 40px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.4s;
}

.logo-small:hover {
    opacity: 1;
}

.logo-small.spinning {
    animation: logoSpin 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes logoSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(10, 15, 20, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(184, 151, 90, 0.1);
}

.menu-overlay.active {
    right: 0;
}

.menu-content {
    padding: 100px 50px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.menu-item {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    opacity: 0.6;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
    padding-bottom: 8px;
    display: inline-block;
}

.menu-item:hover {
    opacity: 1;
    border-bottom-color: var(--gold);
    transform: translateX(10px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 300px;
    opacity: 0;
    animation: fadeInLogo 2s ease-out 0.5s forwards;
}

.hero-logo .text-group {
    opacity: 0;
    animation: fadeInText 1.5s ease-out 1.8s forwards;
}

.hero-logo.spinning .spin-group {
    animation: centerSpin 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-logo.spinning .corner-line {
    animation: extendLine 2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes centerSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(1080deg); }
}

@keyframes extendLine {
    0% { stroke-dashoffset: 0; }
    50% { stroke-dashoffset: -30; }
    100% { stroke-dashoffset: 0; }
}

@keyframes fadeInLogo {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* About Section */
.about {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 40px 40px 40px;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeInContent 1.5s ease-out 1.5s forwards;
}

@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.about-text {
    text-align: center;
    font-size: 18px;
    line-height: 2;
    color: rgba(184, 151, 90, 0.8);
    margin-bottom: 40px;
    font-weight: 300;
}

.about-text strong {
    color: var(--gold-bright);
    font-weight: 400;
}

.divider {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 40px auto;
}

/* Contact Section */
.contact {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 40px 120px;
    position: relative;
    z-index: 1;
}

.contact-line {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid rgba(184, 151, 90, 0.1);
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.contact-line:hover {
    border-bottom-color: rgba(184, 151, 90, 0.3);
    padding-left: 10px;
}

.contact-label {
    text-transform: uppercase;
    opacity: 0.5;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 3px;
}

.contact-value {
    color: var(--gold-bright);
    font-weight: 300;
}

.email-image {
    height: 20px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.email-image:hover {
    opacity: 1;
}

/* Pages (Login/Contact) */
.page {
    display: none;
    min-height: 100vh;
    padding: 100px 40px;
    position: relative;
    z-index: 1;
}

.page.active {
    display: block;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-container {
    max-width: 500px;
    margin: 0 auto;
}

.page-title {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    letter-spacing: 8px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 300;
}

/* Forms */
.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.6;
}

.form-input {
    width: 100%;
    background: rgba(184, 151, 90, 0.05);
    border: 1px solid rgba(184, 151, 90, 0.2);
    padding: 16px 20px;
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus {
    background: rgba(184, 151, 90, 0.08);
    border-color: var(--gold);
}

.form-input::placeholder {
    color: rgba(184, 151, 90, 0.3);
}

.form-button {
    width: 100%;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 18px;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s;
    margin-top: 20px;
}

.form-button:hover {
    background: var(--gold);
    color: var(--navy);
}

.back-link {
    text-align: center;
    margin-top: 40px;
    font-size: 13px;
    letter-spacing: 2px;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 1;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 15, 20, 0.98);
    border: 1px solid var(--gold);
    padding: 50px 60px;
    text-align: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    max-width: 500px;
}

.success-message.show {
    opacity: 1;
    pointer-events: auto;
}

.success-message h3 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 300;
}

.success-message p {
    font-size: 15px;
    color: rgba(184, 151, 90, 0.8);
    line-height: 1.8;
}

/* Mobile */
@media (max-width: 768px) {
    header {
        padding: 20px 25px;
    }

    .logo-small {
        width: 35px;
        height: 35px;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-logo {
        width: 250px;
    }

    .about {
        padding: 60px 30px 30px;
    }

    .about-text {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .divider {
        width: 80px;
        margin: 30px auto;
    }

    .contact {
        padding: 20px 30px 80px;
    }

    .contact-line {
        flex-direction: column;
        gap: 6px;
        padding: 16px 0;
        font-size: 12px;
    }

    .menu-overlay {
        max-width: 100%;
    }

    .menu-content {
        padding: 80px 40px;
    }

    .page {
        padding: 80px 30px;
    }

    .page-title {
        font-size: 28px;
        letter-spacing: 6px;
    }

    .success-message {
        padding: 40px;
        max-width: 90%;
    }
}