@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --color-primary: #1a2f23; /* Deep Forest Green */
    --color-secondary: #3d5a45; /* Moss Green */
    --color-accent: #d4af37; /* Antique Gold */
    --color-bg: #f4f1ea; /* Aged Paper / Stone */
    --color-text: #2c2c2c;
}

body {
    font-family: 'Lora', serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

h1, h2, h3, .ogham-font {
    font-family: 'Cinzel', serif;
    color: var(--color-primary);
}

.celtic-border {
    border: 2px solid var(--color-primary);
    position: relative;
    padding: 20px;
}

.celtic-border::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--color-accent);
    pointer-events: none;
}

/* Unique Navigation Style */
.nav-circle {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
}

.nav-circle.active {
    bottom: -300px; /* Peek up more */
    opacity: 1;
    pointer-events: auto;
}

.nav-circle:hover {
    bottom: -250px;
}

.nav-link {
    color: var(--color-bg);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    padding: 10px 15px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--color-accent);
}

/* Rune Card */
.rune-card {
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.rune-card:hover {
    transform: translateY(-10px);
}

.ogham-symbol {
    font-size: 3rem;
    writing-mode: vertical-lr;
    text-orientation: upright;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: var(--color-primary);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* Grove Navigation Styles */
.nav-link-grove {
    position: relative;
    overflow: hidden;
}

.nav-link-grove::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    transition: width 0.3s ease;
}

.nav-link-grove:hover::before {
    width: 100%;
}

.nav-link-mobile {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-link-mobile:hover {
    transform: translateX(4px);
}

/* Mobile menu animation fix */
#mobile-menu.open {
    opacity: 1 !important;
    max-height: 300px !important;
    transform: translateY(0) !important;
}

/* Body padding for fixed nav */
body {
    padding-top: 80px; /* Account for fixed nav height */
}

@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Slightly less on mobile */
    }
}

/* Mobile menu animations */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    max-height: 300px;
    padding-bottom: 1rem;
}

/* Nav scroll effects */
nav {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}
