
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Montserrat:wght@400;700&display=swap');

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2c2c2c;
    --text-color: #e0e0e0;
    --accent-color: #d4af37; /* Gold color from the lock */
    --header-height: 80px;
    --footer-height: 64px;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh; /* For sticky footer layout */
    display: flex; /* For sticky footer layout */
    flex-direction: column; /* For sticky footer layout */
}

/* Sticky footer layout */
html, body { height: 100%; }
main { flex: 1; background: #000; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.nav ul {
    list-style: none;
    display: flex;
}

.nav ul li {
    margin-left: 2rem;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--accent-color);
}

.nav ul li a img {
    max-height: 24px; /* Adjust as needed */
    vertical-align: middle;
    margin-right: 5px; /* Space between icon and text if any, or between icons */
}

/* Hero Section */
#hero {
    height: 85vh; /* Reduce to reveal footer initially */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #000000;
}

/* On shorter viewports, reduce a bit more */
@media (max-height: 700px) {
    #hero { height: 80vh; }
}

.hero-content {
    /* No animation for hero-content itself */
}

.catchphrase {
    font-family: 'Cinzel', serif;
    /* Fluid type with desktop cap */
    font-size: clamp(1.6rem, 4.5vw, 2.8rem);
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #fff;
    /* Enhanced glow effect */
    text-shadow: 0 0 5px #fff, 0 0 15px var(--accent-color), 0 0 25px var(--accent-color);
    position: absolute;
    top: 30%; /* Move further higher */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0; /* Initially hidden */
    animation: fadeIn 1.5s forwards ease-in;
    animation-delay: 0.5s; /* Appears after a short delay */
}

/* Content Sections */
.content-section {
    padding: 6rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
    position: relative; /* For pseudo-elements */
}

/* Accent lines for section titles */
.content-section h2::before,
.content-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--accent-color);
    opacity: 0.5;
}

.content-section h2::before {
    top: -15px;
}

.content-section h2::after {
    bottom: -15px;
}

/* Character Section */
.character-flex {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.character-img {
    flex: 1;
}

.character-img img {
    width: 100%;
    border-radius: 10px;
}

.character-desc {
    flex: 1;
}

.character-desc h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-grid img {
    width: 100%;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0 2rem 0; /* Move footer further up */
    background-color: #000;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem; /* Slightly smaller than body text */
    letter-spacing: 0.05em; /* A bit of spacing for elegance */
    min-height: var(--footer-height);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header Logo Visibility */
.header.logo-hidden .logo {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hero Animations */
.catchphrase.fade-out {
    /* Removed fade-out animation */
}

#hero-logo {
    opacity: 0;
    position: absolute;
    top: 50%; /* Move further higher */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

#hero-logo.fade-in {
    animation: fadeInLogo 2s forwards ease-in;
    animation-delay: 2.5s; /* Quicker appearance */
}

#hero-logo img {
    max-width: 900px;
}

/* Keyframe Animations */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadeInLogo {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Safe area support for notched devices */
.header {
    padding-top: env(safe-area-inset-top);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .nav ul li { margin-left: 1rem; }
}

@media (max-width: 768px) {
    :root { --header-height: 56px; --footer-height: 56px; }

    .header {
        /* Respect safe area and reduce horizontal padding on mobile */
        height: calc(var(--header-height) + env(safe-area-inset-top));
        padding: env(safe-area-inset-top) 1rem 0 1rem;
    }

    .logo img { max-height: 40px; }

    .nav ul li { margin-left: 0.75rem; }
    .nav ul li a {
        display: inline-flex;
        align-items: center;
        padding: 8px; /* ensure comfortable touch target */
        min-height: 44px; /* iOS/Android recommended target */
    }
    .nav ul li a img { max-height: 20px; }

    /* Reflow hero for vertical screens */
    #hero {
        height: auto;
        min-height: calc(100svh - var(--header-height) - var(--footer-height));
        padding: calc(var(--header-height) + 8px) 1rem 8px;
    }
    .hero-content {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .catchphrase,
    .catchphrase.fade-in {
        position: static;
        top: auto; left: auto;
        transform: none;
        width: auto;
        text-align: center;
        opacity: 1 !important; /* ensure visible without waiting for animation */
        animation: none !important;
    }
    #hero-logo,
    #hero-logo.fade-in {
        position: static;
        top: auto; left: auto;
        transform: none;
        width: 100%;
        opacity: 1 !important;
        animation: none !important;
    }
    #hero-logo img {
        width: 85vw;
        max-width: 600px;
        height: auto;
    }

    /* Content spacing tweaks (future sections) */
    .content-section { padding: 4rem 0; }
}

@media (max-width: 480px) {
    :root { --header-height: 52px; --footer-height: 52px; }

    .nav ul li { margin-left: 0.5rem; }
    .nav ul li a img { max-height: 18px; }

    .catchphrase {
        font-size: clamp(1.4rem, 6vw, 2rem);
        line-height: 1.25;
    }
    #hero {
        height: auto;
        min-height: calc(100svh - var(--header-height) - var(--footer-height));
        padding: calc(var(--header-height) + 8px) 0.75rem 8px;
    }
    #hero-logo img { width: 90vw; max-width: 520px; }

    .footer { font-size: 0.8rem; padding: 1.5rem 0; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
