/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Theme */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-bg-hover: rgba(255, 255, 255, 0.15);
    --card-border: rgba(255, 255, 255, 0.2);
    --card-border-hover: rgba(255, 255, 255, 0.3);
    --card-shadow: rgba(255, 255, 255, 0.2);
    --scrollbar-track: #000000;
    --scrollbar-thumb: #333333;
    --scrollbar-thumb-hover: #555555;
    --logo-filter: none;
    --icon-filter: brightness(0) invert(1);
}

body.light-mode {
    --bg-color: #c7c7c7;
    --text-color: #1a1a1a;
    --card-bg: rgba(0, 0, 0, 0.05);
    --card-bg-hover: rgba(0, 0, 0, 0.08);
    --card-border: rgba(0, 0, 0, 0.15);
    --card-border-hover: rgba(0, 0, 0, 0.25);
    --card-shadow: rgba(0, 0, 0, 0.15);
    --scrollbar-track: #ffffff;
    --scrollbar-thumb: #cccccc;
    --scrollbar-thumb-hover: #aaaaaa;
    --logo-filter: invert(1);
    --icon-filter: brightness(0) invert(0);
}

body {
    font-family: 'Avenir', 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.2;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Background Container */
#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#background-container canvas {
    width: 100%;
    height: 100%;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

/* Header */
.header {
    padding: 0;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.logo {
    width: 50%;
    max-width: 100vw;
    height: auto;
    filter: var(--logo-filter);
    transition: filter 0.5s ease;
    padding: 0 40px;
    transform-origin: center center;
}

.logo:hover {
    transform: scale(1.02);
}

/* Clock Section */
.clock-section {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: block;
    padding: 0;
    margin: 0;
    overflow: hidden;
    position: relative;
}

#clock-canvas {
    width: 100vw;
    height: 100vh;
    display: block;
    margin: 0;
    padding: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background-color 0.5s ease;
}

#clock-canvas canvas {
    display: block;
}

/* Manifesto Section */
.manifesto-section {
    padding: 80px 80px 120px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.manifesto-content {
    font-size: 24px;
    line-height: 1.5;
    font-weight: 400;
}

.manifesto-intro {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: 0.9;
}

.manifesto-content p {
    margin-bottom: 16px;
}

.manifesto-content p.standalone {
    margin-top: 30px;
    margin-bottom: 30px;
}

.manifesto-content p.manifesto-closing {
    margin-top: 40px;
}

.manifesto-content strong {
    font-weight: 600;
}

/* Variable weights and sizes for emphasis */
.manifesto-content .emphasis-large {
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1.4;
}

.manifesto-content .emphasis-medium {
    font-size: 1.15em;
    font-weight: 600;
}

.manifesto-content .emphasis-bold {
    font-weight: 700;
}

.manifesto-content .emphasis-heavy {
    font-weight: 800;
}

.manifesto-content .subtle {
    opacity: 0.7;
    font-weight: 300;
}

.manifesto-content .subtle-light {
    opacity: 0.75;
    font-weight: 350;
}

/* Join Section */
.join-section {
    padding: 80px 80px 120px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.join-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.join-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.5s ease, border 0.5s ease, color 0.5s ease;
    position: relative;
    overflow: hidden;
}

.join-card:hover {
    transform: translateY(-5px);
    background: var(--card-bg-hover);
    box-shadow: 0 15px 40px var(--card-shadow);
    border: 1px solid var(--card-border-hover);
}

.card-content {
    flex: 1;
    padding-right: 20px;
}

.card-content h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    transition: color 0.5s ease;
}

.card-content p {
    font-size: 21px;
    line-height: 1.45;
    color: var(--text-color);
    opacity: 0.9;
    transition: color 0.5s ease;
}

.card-icon {
    width: 50px;
    height: 50px;
    opacity: 0.9;
    flex-shrink: 0;
    filter: var(--icon-filter);
    transition: filter 0.5s ease;
}

/* Join Footer */
.join-footer {
    font-size: 21px;
    line-height: 1.5;
    opacity: 0.85;
    max-width: 800px;
}

.join-footer p {
    margin-bottom: 8px;
}

/* Footer */
.site-footer {
    width: 100%;
    padding: 60px 40px 40px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.7;
    text-align: center;
    max-width: 600px;
    margin: 0;
}

.copyleft {
    display: inline-block;
    height: 16px;
    width: 16px;
    margin-right: 8px;
    vertical-align: middle;
    filter: var(--icon-filter);
    transition: filter 0.5s ease;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .header {
        padding: 0 40px;
        min-height: 100vh;
    }
    
    .logo {
        width: 100%;
        padding: 0 30px;
    }
    
    .theme-toggle {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .theme-icon {
        width: 20px;
        height: 20px;
    }
    
    .clock-section {
        height: 100vh;
        min-height: 100vh;
        padding: 0;
        margin: 0;
    }
    
    .manifesto-section,
    .join-section {
        padding: 60px 40px 80px 40px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .manifesto-content,
    .manifesto-intro {
        font-size: 22px;
        line-height: 1.45;
    }
    
    .join-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .join-card {
        padding: 30px;
    }
    
    .site-footer {
        padding: 40px 30px 30px 30px;
    }
    
    .footer-text {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .header {
        padding: 0 30px;
        min-height: 100vh;
    }
    
    .logo {
        width: 100%;
        padding: 0 20px;
    }
    
    .theme-toggle {
        top: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
    }
    
    .theme-icon {
        width: 18px;
        height: 18px;
    }
    
    .clock-section {
        height: 100vh;
        min-height: 100vh;
        padding: 0;
        margin: 0;
    }
    
    .manifesto-section,
    .join-section {
        padding: 40px 30px 60px 30px;
    }
    
    .section-title {
        font-size: 21px;
        margin-bottom: 30px;
    }
    
    .manifesto-content,
    .manifesto-intro {
        font-size: 21px;
        line-height: 1.45;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    
    .site-footer {
        padding: 30px 20px 25px 20px;
    }
    
    .footer-text {
        font-size: 12px;
    }
    
    .copyleft {
        height: 14px;
        width: 14px;
        margin-right: 6px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    transition: background 0.5s ease;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
    transition: background 0.5s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    width: 22px;
    height: 22px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

body.light-mode .sun-icon {
    display: block;
}

body.light-mode .moon-icon {
    display: none;
}

/* Animation Styles */
.animate-on-scroll {
    will-change: opacity, transform;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Smooth transitions for parallax */
.logo,
.logo-small,
.join-card,
.release-card,
.manifesto-content p,
.join-footer p {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Prevent layout shift during animation */
.animate-on-scroll {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

/* Releases Section */
.releases-section {
    padding: 80px 80px 120px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Release */
.hero-release {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
    margin-bottom: 80px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 50px;
    transition: all 0.3s ease;
}

.hero-release:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    box-shadow: 0 15px 40px var(--card-shadow);
}

.hero-release-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.release-category {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.7;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-release-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-release-description {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 25px;
}

.hero-release-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 15px 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.release-formats {
    font-size: 16px;
    opacity: 0.8;
    display: flex;
    align-items: center;
}

.hero-release-actions {
    display: flex;
    gap: 15px;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--card-shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: var(--card-bg);
    border-color: var(--card-border-hover);
    transform: translateY(-2px);
}

.hero-release-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.hero-timelines-canvas {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-timelines-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.timeline-icon {
    width: 80%;
    height: 80%;
    color: var(--text-color);
    opacity: 0.6;
}

/* Secondary Release */
.secondary-release {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 50px;
    transition: all 0.3s ease;
}

.secondary-release:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    box-shadow: 0 15px 40px var(--card-shadow);
}

.secondary-release-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.secondary-release-visual .visual-placeholder {
    width: 100%;
    aspect-ratio: 1;
}

.squared-preview {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.squared-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-color);
    opacity: 0.6;
}

.squared-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.secondary-release-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.secondary-release-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.secondary-release-description {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 25px;
}

.secondary-release-actions {
    display: flex;
    gap: 15px;
}

/* Upcoming Releases */
.upcoming-releases {
    margin-top: 60px;
}

.upcoming-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    opacity: 0.8;
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.upcoming-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
}

.upcoming-card.placeholder {
    border-style: dashed;
    opacity: 0.7;
}

.upcoming-card:hover {
    transform: translateY(-5px);
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
}

.upcoming-card-content h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.upcoming-card-content p {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.8;
}

.upcoming-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

/* Responsive Design for Releases */
@media screen and (max-width: 968px) {
    .hero-release {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
    
    .hero-release-visual {
        order: -1;
    }
    
    .visual-placeholder {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .secondary-release {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
    
    .secondary-release-visual {
        order: -1;
    }
    
    .secondary-release-visual .visual-placeholder {
        max-width: 200px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .releases-section {
        padding: 60px 40px 80px 40px;
    }
    
    .hero-release {
        padding: 30px;
        margin-bottom: 60px;
    }
    
    .hero-release-title {
        font-size: 28px;
    }
    
    .hero-release-description {
        font-size: 16px;
    }
    
    .hero-release-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        text-align: center;
    }
    
    .upcoming-grid {
        grid-template-columns: 1fr;
    }
    
    .secondary-release {
        padding: 30px;
        gap: 40px;
    }
    
    .secondary-release-title {
        font-size: 28px;
    }
    
    .secondary-release-description {
        font-size: 16px;
    }
    
    .secondary-release-actions {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .releases-section {
        padding: 40px 30px 60px 30px;
    }
    
    .hero-release {
        padding: 25px;
        gap: 30px;
    }
    
    .hero-release-title {
        font-size: 24px;
    }
    
    .hero-release-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .secondary-release {
        padding: 25px;
        gap: 30px;
    }
    
    .secondary-release-title {
        font-size: 24px;
    }
    
    .secondary-release-description {
        font-size: 16px;
    }
    
    .secondary-release-visual .visual-placeholder {
        max-width: 400px;
        margin: 0 auto;
    }
}

