/* Page-specific styles */
/* Override body overflow for pages with content (page-styles.css is only loaded on content pages) */
html body {
    overflow: auto !important;
    height: auto !important;
}

.page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    position: relative;
    overflow: visible;
}

/* Weird Navigation Menu */
.weird-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    pointer-events: none;
}

.nav-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 30px;
    cursor: pointer;
    pointer-events: all;
    z-index: 1001;
}

.nav-line {
    display: block;
    width: 100%;
    height: 3px;
    background: #32ff32;
    margin: 6px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle:hover .nav-line {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(50, 255, 50, 0.5);
}

.nav-toggle.active .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .nav-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scale(0.8) rotateY(180deg);
    overflow: hidden;
}

.nav-network-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 999;
    background: transparent;
    border: none;
    outline: none;
    display: block;
}

.nav-toggle:hover ~ .nav-network-bg {
    opacity: 0.8 !important;
}

.nav-menu:hover .nav-network-bg {
    opacity: 0.6 !important;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) rotateY(0deg);
    pointer-events: all;
}

.nav-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 3px;
    margin: 20px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(50, 255, 50, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-item:hover {
    color: #32ff32;
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(50, 255, 50, 0.8);
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item.active {
    color: #32ff32;
    text-shadow: 0 0 15px rgba(50, 255, 50, 0.6);
}

/* Page Content */
.page-content {
    padding: 100px 50px 50px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.content-wrapper h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 1px;
    margin-bottom: 50px;
    text-shadow: none;
}

.text-content {
    color: #ffffff;
    line-height: 1.7;
    font-size: 1rem;
}

.text-content h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 50px 0 20px 0;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.text-content h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 300;
    margin: 40px 0 15px 0;
    text-transform: lowercase;
}

.text-content p {
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.7;
}

.text-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.text-content li {
    margin-bottom: 10px;
    opacity: 0.9;
}

/* Specific page styles */
.text-item {
    margin-bottom: 40px;
    padding: 20px;
    border-left: 3px solid rgba(50, 255, 50, 0.3);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0;
}

/* Simplified layout for texts and research pages */
.simple-layout {
    color: #ffffff;
}

.simple-layout .coming-soon {
    margin-bottom: 60px;
    font-style: italic;
    opacity: 0.6;
    font-size: 1rem;
}

.research-item,
.text-item-simple {
    margin-bottom: 60px;
    max-width: 700px;
}

/* Video backgrounds and sidebars */
.bg-video-subtle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.08;
}

.bg-video-subtle video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
    overflow: hidden;
}

.video-sidebar video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-behind-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Show video only when menu is active */
.nav-menu.active ~ .video-behind-menu {
    opacity: 0.15;
}

.video-behind-menu video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .video-sidebar {
        display: none;
    }
}

.research-item h2,
.text-item-simple h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 50px 0 20px 0;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.research-item h2:first-child,
.text-item-simple h2:first-child {
    margin-top: 0;
}

.researcher-name,
.author-name {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.7;
}

.research-item p,
.text-item-simple p {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 25px;
}

.author {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 15px;
}

.forum-section {
    margin-bottom: 50px;
}

.discussion-item, .event-item {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(50, 255, 50, 0.2);
    transition: all 0.3s ease;
}

.discussion-item:hover, .event-item:hover {
    background: rgba(50, 255, 50, 0.1);
    border-color: rgba(50, 255, 50, 0.4);
    transform: translateX(10px);
}

.meta {
    color: #32ff32;
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.8;
}

.contact-info {
    margin-top: 40px;
    padding: 30px;
    background: rgba(50, 255, 50, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(50, 255, 50, 0.3);
}

/* People page styles */
.people-list {
    margin-top: 40px;
}

.person-item {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(50, 255, 50, 0.2);
}

.person-item:last-child {
    border-bottom: none;
}

.person-item h2 {
    color: #32ff32;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0 0 20px 0;
    text-transform: none;
    letter-spacing: 0.5px;
    line-height: 1.7;
}

.person-item p {
    margin-bottom: 25px;
    line-height: 1.7;
    opacity: 0.9;
}

.bio-placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-size: 1rem;
}

/* Site Title - persistent across all pages */
.site-title {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    z-index: 10;
    white-space: nowrap;
    pointer-events: none;
}

/* Site Credit - small, unobtrusive */
.site-credit {
    position: fixed;
    bottom: 15px;
    right: 15px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: lowercase;
    z-index: 10;
    pointer-events: none;
    font-family: 'Noto Serif', serif;
}

.site-title .title-animate {
    letter-spacing: 3px;
    transition: letter-spacing 1.5s ease-in-out;
    display: inline-block;
}

.site-title .title-animate.animate {
    letter-spacing: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-item {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .page-content {
        padding: 80px 30px 30px;
    }
    
    .content-wrapper h1 {
        font-size: 1.8rem;
    }
    
    .text-content {
        font-size: 1rem;
    }
    
    .research-item h2,
    .text-item-simple h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .nav-toggle {
        top: 20px;
        right: 20px;
        width: 35px;
        height: 25px;
    }
    
    .nav-item {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .page-content {
        padding: 70px 20px 20px;
    }
    
    .content-wrapper h1 {
        font-size: 1.5rem;
    }
    
    .research-item h2,
    .text-item-simple h2 {
        font-size: 1.2rem;
    }
    
    .site-title {
        font-size: 0.5rem;
        letter-spacing: 1.5px;
        bottom: 15px;
        padding: 0 15px;
        white-space: normal;
        max-width: 90%;
    }
    
    .site-credit {
        font-size: 0.5rem;
        bottom: 10px;
        right: 10px;
    }
}
