/* =============================================
   tawaret.net - Main Stylesheet
   Nostalgic / Retro Cinematic Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background-color: #0a0806;
    color: #d4c5a0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Nostalgic Background --- */
.bg-nostalgic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(139, 90, 43, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(184, 134, 61, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(100, 60, 20, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, #0d0b08 0%, #1a1408 30%, #0f0d09 70%, #080604 100%);
}

/* Film grain overlay */
.bg-nostalgic::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

/* Vignette effect */
.bg-nostalgic::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

/* --- Page Layout --- */
.page-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* --- Left Sidebar (Icon Navigation) --- */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 10;
    padding: 20px 0;
}

.nav-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    group: icon;
}

.nav-icon:hover {
    transform: scale(1.15) translateY(-3px);
}

.nav-icon img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(184, 134, 61, 0.4);
    box-shadow: 
        0 0 15px rgba(184, 134, 61, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-icon:hover img {
    border-color: rgba(218, 175, 93, 0.8);
    box-shadow: 
        0 0 25px rgba(184, 134, 61, 0.4),
        0 0 50px rgba(184, 134, 61, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.6);
}

.nav-icon .label {
    margin-top: 8px;
    font-family: 'Cinzel Decorative', cursive;
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(184, 134, 61, 0.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.nav-icon:hover .label {
    color: rgba(218, 175, 93, 0.95);
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    margin-left: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 40px 40px 20px;
}

/* --- Site Title --- */
.site-title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 2.4rem;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(135deg, #daaf5d 0%, #f0d88a 30%, #b8863d 60%, #daaf5d 100%);
    background-clip: text;
    -webkit-background-clip: text;
    letter-spacing: 0.2em;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.site-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(184, 134, 61, 0.5);
    letter-spacing: 0.3em;
    text-align: center;
    margin-bottom: 40px;
}

/* --- Hero Image --- */
.hero-image-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.hero-image-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(184, 134, 61, 0.2),
        0 0 0 3px rgba(10, 8, 6, 0.8),
        0 0 0 4px rgba(184, 134, 61, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 100px rgba(184, 134, 61, 0.05);
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: 
        linear-gradient(to bottom, rgba(139, 90, 43, 0.08) 0%, transparent 15%, transparent 85%, rgba(10, 8, 6, 0.3) 100%);
    pointer-events: none;
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    filter: sepia(15%) saturate(90%) contrast(105%) brightness(95%);
    transition: filter 0.6s ease;
}

.hero-image:hover {
    filter: sepia(5%) saturate(100%) contrast(110%) brightness(100%);
}

/* --- Decorative Elements --- */
.ornament {
    text-align: center;
    margin: 30px 0;
    color: rgba(184, 134, 61, 0.3);
    font-size: 1.4rem;
    letter-spacing: 0.5em;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 30px 0 20px;
    color: rgba(184, 134, 61, 0.3);
    font-size: 0.8rem;
    font-style: italic;
    letter-spacing: 0.15em;
}

.site-footer a {
    color: rgba(184, 134, 61, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: rgba(218, 175, 93, 0.8);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-in {
    animation: fadeIn 1.5s ease forwards;
}

.delay-1 { animation-delay: 0.2s; opacity: 0; }
.delay-2 { animation-delay: 0.5s; opacity: 0; }
.delay-3 { animation-delay: 0.8s; opacity: 0; }
.delay-4 { animation-delay: 1.1s; opacity: 0; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        top: auto;
        width: 100%;
        height: 90px;
        flex-direction: row;
        justify-content: center;
        gap: 40px;
        background: linear-gradient(to top, rgba(10, 8, 6, 0.95) 0%, rgba(10, 8, 6, 0.8) 100%);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(184, 134, 61, 0.15);
        padding: 10px 0;
    }

    .nav-icon img {
        width: 50px;
        height: 50px;
    }

    .nav-icon .label {
        font-size: 0.55rem;
    }

    .main-content {
        margin-left: 0;
        padding: 30px 20px 110px;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .site-subtitle {
        font-size: 0.8rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
    }

    .nav-icon img {
        width: 44px;
        height: 44px;
    }
}

/* =============================================
   Sub-page Styles
   ============================================= */

.subpage-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.subpage-title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 3rem;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(135deg, #daaf5d 0%, #f0d88a 30%, #b8863d 60%, #daaf5d 100%);
    background-clip: text;
    -webkit-background-clip: text;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.subpage-description {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(212, 197, 160, 0.7);
    max-width: 600px;
    text-align: center;
    line-height: 1.8;
    margin-bottom: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel Decorative', cursive;
    font-size: 0.8rem;
    color: rgba(184, 134, 61, 0.6);
    text-decoration: none;
    letter-spacing: 0.15em;
    padding: 12px 24px;
    border: 1px solid rgba(184, 134, 61, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: rgba(218, 175, 93, 0.95);
    border-color: rgba(184, 134, 61, 0.5);
    background: rgba(184, 134, 61, 0.05);
}

.back-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .subpage-wrapper {
        padding: 40px 20px;
    }

    .subpage-title {
        font-size: 2rem;
    }

    .subpage-description {
        font-size: 1rem;
    }
}