/* Variables and Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Metamorphous&display=swap');

@font-face {
    font-family: 'ComicRunes';
    src: url('../ComicRunes.otf') format('opentype');
    font-display: swap;
}

:root {
    --primary-color: #ffffff;
    --background-color: rgba(20, 45, 46, 1);
    --background-color-light: rgba(25, 55, 56, 0.5);
    --background-color-lighter: rgba(30, 65, 66, 0.7);
    --text-color: #ffffff;
    --transition-slow: 0.7s ease;
    --transition-medium: 0.5s ease;
    --transition-fast: 0.3s ease;
    --font-primary: 'Metamorphous', cursive;
    --font-runic: 'Metamorphous', cursive;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: url('../images/grain.png');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
}

.nav-logo {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    width: 80px;
    height: 80px;
    transition: transform var(--transition-medium);
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-logo:hover {
    transform: scale(1.1);
}

/* Navigation Menu */
.menu-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-circle {
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transition: transform var(--transition-medium);
}

.menu-toggle:hover .menu-circle {
    transform: scale(1.1);
}

.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-menu ul {
    list-style: none;
    text-align: center;
}

.fullscreen-menu li {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
}

.fullscreen-menu.active li {
    opacity: 1;
    transform: translateY(0);
    transition: all var(--transition-medium);
}

.fullscreen-menu a {
    color: var(--primary-color);
    font-size: 2.4rem;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'ComicRunes', var(--font-runic);
    text-transform: uppercase;
}

.fullscreen-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.fullscreen-menu a:hover::after {
    transform: scaleX(1);
}

.fullscreen-menu a:hover {
    opacity: 0.8;
}

.fullscreen-menu a:hover {
    color: rgba(255, 255, 255, 0.4);
}

.fullscreen-menu a:hover::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}


.hero-title {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-size: 5rem;
    line-height: 1.2;
    padding: 0 2rem;
    font-family: 'ComicRunes', var(--font-runic);
    transform: translateY(-10vh);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%) brightness(0.7);
    z-index: 1;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.video-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base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7RdsxyOB11n0xtOvnW4irMMFNV4H0uqwS5ExsmP9AxbDTc9JwgneAT5vTiUSm1E7BSflSt3bfa1tv8Di3R8n3Af7MNWzs49hmauE2wP+ttrq+AsWpFG2awvsuOqbipWHgtuvuaAE+A1Z/7gC9hesnr+7wqCwG8c5yAg3AL1fm8T9AZtp/bbJGwl1pNrE7RuOX7PeMRUERVaPpEs+yqeoSmuOlokqw49pgomjLeh7icHNlG19yjs6XXOMedYm5xH2YxpV2tc0Ro2jJfxC50ApuxGob7lMsxfTbeUv07TyYxpeLucEH1gNd4IKH2LAg5TdVhlCafZvpskfncCfx8pOhJzd76bJWeYFnFciwcYfubRc12Ip/ppIhA1/mSZ/RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p+tktDYYSNflcxI0iyO4TPBdlRcpeqjK/piF5bklq77VSEaA+z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==');
    opacity: 0.3;
    mix-blend-mode: overlay;
    animation: textureAnimate 8s steps(8) infinite;
    z-index: 3;
}

@keyframes textureAnimate {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-20px, 10px); }
    50% { transform: translate(-10px, -10px); }
    75% { transform: translate(15px, -5px); }
    100% { transform: translate(0, 0); }
}

.placeholder-text {
    display: none !important;
}

.word-ritual-bear {
    display: block;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all var(--transition-slow);
}

.word-tattoo {
    -webkit-text-stroke: 1px var(--primary-color);
    -webkit-text-fill-color: transparent;
}

/* Section Header and Rune Divider */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.rune-divider {
    text-align: center;
    font-size: 2rem;
    letter-spacing: 1.5rem;
    margin: 2rem 0;
    opacity: 0.4;
    position: relative;
}

.rune-divider::before,
.rune-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--primary-color);
    opacity: 0.2;
}

.rune-divider::before {
    left: 0;
}

.rune-divider::after {
    right: 0;
}

/* Content Sections */
main {
    padding: 0;
}

section {
    margin: 0;
    padding: 0;
    opacity: 1;
    transform: translateY(0);
    min-height: auto;
    width: 100%;
}

/* Vertical segments with alternating background tints */
.intro {
    background-color: var(--background-color-light);
}

.inner-wisdom {
    background-color: var(--background-color-lighter);
}

.cta {
    background-color: var(--background-color-light);
}

footer {
    background-color: var(--background-color-lighter);
}

/* General section background classes */
.section-light {
    background-color: var(--background-color-light);
}

.section-lighter {
    background-color: var(--background-color-lighter);
}

section.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

section.fade-in.animated {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

/* Dynamic loading animations */
.hero-title {
    opacity: 0;
    animation: slideInUp 1.2s ease-out 0.3s forwards;
}

.hero-title .word-ritual,
.hero-title .word-ritual-bear,
.hero-title .word-bear,
.hero-title .word-tattoo {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(-90deg);
    animation: titleReveal 0.8s ease-out forwards;
}

.hero-title .word-ritual,
.hero-title .word-ritual-bear {
    animation-delay: 0.5s;
}

.hero-title .word-bear {
    animation-delay: 0.7s;
}

.hero-title .word-tattoo {
    animation-delay: 0.9s;
}

/* Image slide-in animations */
.fade-in .image-placeholder {
    opacity: 0;
    transform: translateX(-100px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.content-wrapper.reversed .image-placeholder {
    transform: translateX(100px) scale(0.95);
}

.fade-in.animated .image-placeholder {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Text content animations */
.fade-in .text-content {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
    transition-delay: 0.2s;
}

.fade-in.animated .text-content {
    opacity: 1;
    transform: translateY(0);
}

/* Section header animations */
.section-header {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.section-header.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframe animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(-90deg);
    }
    50% {
        opacity: 0.5;
        transform: translateY(10px) rotateX(-30deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Rune divider animation */
.rune-divider {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
    transition-delay: 0.4s;
}

.rune-divider.animated {
    opacity: 1;
    transform: scale(1);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro {
    padding: 4rem 2rem;
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta {
    padding: 4rem 2rem;
    text-align: center;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
}


.fade-in {
    animation: fadeIn 1s var(--transition-medium) forwards;
}

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

.content-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 70vh;
    gap: 0;
}

.content-wrapper.reversed .image-placeholder {
    order: -1;
}

.text-content {
    padding: 6rem 4rem;
    background: none;
    z-index: 2;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    box-sizing: border-box;
    opacity: 1;
    transform: translateY(0);
}

.content-wrapper.reversed .text-content {
    margin: 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.image-placeholder {
    width: 50%;
    height: 70vh;
    background-color: #2a2a2a;
    overflow: hidden;
    z-index: 1;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 1;
    transform: translateX(0) scale(1);
    margin: 0;
    padding: 0;
    position: relative;
}

.image-placeholder::before, 
.video-placeholder::before,
[style*="background-image"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.90;
    z-index: 5;
    mix-blend-mode: overlay;
    background-color: rgba(255, 255, 255, 0.2);
    filter: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><filter id="filter"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncR type="linear" slope="3" intercept="-0.8"/><feFuncG type="linear" slope="3" intercept="-0.8"/><feFuncB type="linear" slope="3" intercept="-0.8"/></feComponentTransfer></filter></svg>#filter');
    animation: noise-move 0.2s steps(2) infinite;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.90;
    z-index: 2;
    mix-blend-mode: overlay;
    background-color: rgba(255, 255, 255, 0.2);
    filter: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><filter id="filter"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncR type="linear" slope="3" intercept="-0.8"/><feFuncG type="linear" slope="3" intercept="-0.8"/><feFuncB type="linear" slope="3" intercept="-0.8"/></feComponentTransfer></filter></svg>#filter');
    animation: noise-move 0.2s steps(2) infinite;
}

@keyframes noise-move {
    0% { transform: translate(0, 0) }
    20% { transform: translate(-5%, -5%) }
    40% { transform: translate(5%, 5%) }
    60% { transform: translate(-5%, 5%) }
    80% { transform: translate(5%, -5%) }
    100% { transform: translate(0, 0) }
}

/* Image noise effect */
.image-container {
    position: relative;
}

/* CTA Button */
.cta {
    text-align: center;
}

.cta-button {
    font-size: 1.75rem;
    color: var(--primary-color);
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    padding: 3px 30px; /* Increase the horizontal padding (left/right) */
    line-height: 2;
    
    /* These properties will override anything trying to stretch the button */
    display: inline-block !important;
    width: auto !important;
    align-self: center !important;
    flex: 0 0 auto !important;
}


.cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-icons {
    margin-top: 2rem;
}

.social-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 0 1rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.social-icon:hover {
    opacity: 1;
}

.icon {
    fill: var(--primary-color);
    width: 100%;
    height: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .nav-logo {
        width: 60px;
        height: 60px;
    }
    
    .text-content {
        padding: 4rem 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        padding: 0 1.5rem;
        transform: translateY(-5vh);
    }
    
    .content-wrapper,
    .content-wrapper.reversed {
        flex-direction: column;
        min-height: auto;
        align-items: stretch;
    }

    .text-content {
        padding: 3rem 2rem;
        width: 100%;
        max-width: 100%;
        order: 2;
        min-height: auto;
    }
    
    .content-wrapper.reversed .text-content {
        order: 2;
    }
    
    .content-wrapper.reversed .image-placeholder {
        order: 1;
    }

    .image-placeholder {
        width: 100%;
        height: 50vh;
        order: 1;
    }

    h2 {
        font-size: 2rem;
    }
    
    .nav-logo {
        top: 1rem;
        left: 1rem;
        width: 50px;
        height: 50px;
    }
    
    .menu-toggle {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .rune-divider {
        font-size: 1.5rem;
        letter-spacing: 1rem;
    }
    
    /* Disable distortion effects on mobile for better performance */
    .image-placeholder::before, 
    .video-placeholder::before,
    [style*="background-image"]::before,
    .hero::before {
        display: none;
    }
}

@media (max-width: 1024px) {
    .fullscreen-menu a {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .fullscreen-menu a {
        font-size: 1.8rem;
        letter-spacing: 0.08em;
    }
    
    .fullscreen-menu li {
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
        padding: 0 1rem;
    }

    .fullscreen-menu a {
        font-size: 1.5rem;
        letter-spacing: 0.06em;
    }
    
    .fullscreen-menu li {
        margin: 1rem 0;
    }
    
    .fullscreen-menu a::after {
        height: 1px;
    }

    .cta-button {
        font-size: 1rem;
        padding: 8px 20px;
    }
    
    .text-content {
        padding: 2rem 1.5rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .nav-logo {
        width: 40px;
        height: 40px;
    }
    
    .menu-toggle {
        width: 35px;
        height: 35px;
    }
    
    .image-placeholder {
        height: 40vh;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .rune-divider {
        font-size: 1.2rem;
        letter-spacing: 0.8rem;
    }
}

/* Additional mobile improvements */
@media (max-width: 640px) {
    .cta {
        padding: 2rem 1rem;
    }
    
    footer {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        line-height: 1.1;
    }
    
    .word-ritual-bear,
    .word-tattoo {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .intro {
        padding: 2rem 1rem;
        min-height: 40vh;
    }
    
    .content-wrapper {
        min-height: 80vh;
    }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-title {
        font-size: 2.5rem;
        transform: translateY(-3vh);
    }
    
    .image-placeholder {
        height: 60vh;
    }
    
    .text-content {
        min-height: 40vh;
    }
    
    .content-wrapper {
        min-height: 60vh;
    }
}

/* Ensure proper spacing and layout */
.section-header {
    max-width: 800px;
    margin: 0 auto;
}

footer {
    min-height: auto;
    padding: 3rem 2rem;
}
