@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800&family=Syne:wght@400;600;800&family=Inter:wght@300;400;500&display=swap');

/* Register Unstead custom font */
@font-face {
    font-family: 'Unstead';
    src: url('/assets/fonts/unstead.woff2') format('woff2'),
         url('/assets/fonts/unstead.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Custom Variables */
:root {
    --bg-primary: #070707;
    --bg-secondary: #121212;
    --bg-tertiary: #1a1a1a;
    --color-red: #ff2e2e;
    --color-red-glow: rgba(255, 46, 46, 0.4);
    --color-red-dark: #b30000;
    --color-text: #f5f5f5;
    --color-text-muted: #a0a0a0;
    --font-menu: 'Unstead', 'Orbitron', 'Syne', sans-serif;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Wrapper */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 7, 7, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 46, 46, 0.1);
    transition: background var(--transition-speed);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    height: 80px;
}

.logo a {
    font-family: var(--font-menu);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px var(--color-red-glow);
}

.logo span {
    color: var(--color-red);
}

.logo img {
    max-height: 50px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-menu);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px;
    font-weight: 600;
}

.nav-link:hover, .nav-item.active > .nav-link {
    color: var(--color-red);
    text-shadow: 0 0 8px var(--color-red-glow);
}

/* Dropdowns / Submenus */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 46, 46, 0.15);
    border-radius: var(--border-radius);
    padding: 10px 0;
    min-width: 200px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-menu);
}

.dropdown-link:hover {
    background-color: rgba(255, 46, 46, 0.1);
    color: var(--color-red);
}

/* Mobile Menu Toggler */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Section Common Styles */
section {
    padding: 120px 0 80px;
    min-height: 80vh;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-red);
    box-shadow: 0 0 8px var(--color-red);
}

/* Home / Concept Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 150px 0 100px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(153, 0, 0, 0.15) 0%, rgba(7, 7, 7, 1) 70%);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content h1 span {
    color: var(--color-red);
    text-shadow: 0 0 15px var(--color-red);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-menu);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-red);
    color: #fff;
    border: 1px solid var(--color-red);
    box-shadow: 0 0 15px var(--color-red-glow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-red);
    box-shadow: 0 0 25px var(--color-red);
    text-shadow: 0 0 5px var(--color-red-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    border-color: var(--color-red);
    color: var(--color-red);
    box-shadow: 0 0 10px var(--color-red-glow);
}

/* Concept / Split Section */
.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.concept-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.concept-text h2, .concept-text h3 {
    color: var(--color-text);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.concept-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 46, 46, 0.2);
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.concept-image img {
    transition: transform 0.5s ease;
}

.concept-image:hover img {
    transform: scale(1.05);
}

/* Gallery Section */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-menu);
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: all var(--transition-speed);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--color-red);
    color: #fff;
    border-color: var(--color-red);
    box-shadow: 0 0 10px var(--color-red-glow);
}

.realizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.realization-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}

.realization-card:hover {
    border-color: rgba(255, 46, 46, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 46, 46, 0.05);
}

.realization-media-wrap {
    position: relative;
    padding-top: 66.6%; /* 3:2 Aspect Ratio */
    background-color: #000;
    overflow: hidden;
    cursor: pointer;
}

.realization-media-wrap img, .realization-media-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: all 0.5s ease;
}

.realization-card:hover .realization-media-wrap img, 
.realization-card:hover .realization-media-wrap video {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.media-count-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(7, 7, 7, 0.8);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-menu);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.media-type-icon {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--color-red);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--color-red);
}

.realization-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.realization-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.realization-info p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Exhibitions (Agenda) Section */
.exhibitions-timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 20px 0;
}

.exhibitions-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 46, 46, 0.2);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 35px;
    width: 16px;
    height: 16px;
    background-color: var(--bg-primary);
    border: 3px solid var(--color-red);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 8px var(--color-red);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: all var(--transition-speed);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(255, 46, 46, 0.3);
    box-shadow: 0 5px 25px rgba(255, 46, 46, 0.05);
}

.timeline-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-family: var(--font-menu);
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.timeline-badge.upcoming {
    background-color: rgba(255, 46, 46, 0.15);
    color: var(--color-red);
    border: 1px solid var(--color-red);
    box-shadow: 0 0 8px rgba(255, 46, 46, 0.2);
}

.timeline-badge.past {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-date {
    font-family: var(--font-menu);
    font-size: 0.85rem;
    color: var(--color-red);
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-location {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: inherit;
}

.timeline-item:nth-child(odd) .timeline-location {
    justify-content: flex-end;
}

.timeline-image {
    margin-top: 15px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed);
}

.news-card:hover {
    border-color: rgba(255, 46, 46, 0.2);
    transform: translateY(-5px);
}

.news-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}

.news-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-info {
    padding: 20px;
}

.news-date {
    font-family: var(--font-menu);
    font-size: 0.8rem;
    color: var(--color-red);
    margin-bottom: 10px;
}

.news-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Workshops Section */
.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.workshop-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all var(--transition-speed);
}

.workshop-card:hover {
    border-color: rgba(255, 46, 46, 0.3);
    box-shadow: 0 5px 20px rgba(255, 46, 46, 0.05);
}

.workshop-date {
    font-family: var(--font-menu);
    font-size: 0.85rem;
    color: var(--color-red);
    margin-bottom: 10px;
}

.workshop-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.workshop-details {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.workshop-details p {
    margin-bottom: 8px;
}

.workshop-status {
    margin-bottom: 25px;
}

.progress-bar-wrap {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: var(--color-red);
    box-shadow: 0 0 8px var(--color-red);
    transition: width 0.5s ease-out;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Contact & Forms Common */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.info-list {
    list-style: none;
}

.info-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-icon {
    color: var(--color-red);
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.form-control {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 12px 15px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-speed);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 8px var(--color-red-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Floating Alerts / Toasts */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-secondary);
    color: var(--color-text);
    border-left: 4px solid var(--color-red);
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
}

.toast.show {
    transform: translateX(0);
}

.toast.toast-success {
    border-left-color: #2ecc71;
}

.toast.toast-error {
    border-left-color: #e74c3c;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content-wrap {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-media {
    max-width: 100%;
    max-height: 80vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border: 1px solid rgba(255, 46, 46, 0.2);
}

.lightbox-title {
    color: #fff;
    margin-top: 15px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: var(--color-red);
    border-color: var(--color-red);
}

.lightbox-close {
    top: -60px;
    right: 0;
}

.lightbox-prev {
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
}

/* Site Intro Animation Page */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.intro-overlay.dismissed {
    transform: translateY(-100%);
}

.intro-logo {
    font-family: var(--font-menu);
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #000;
    text-shadow: 0 0 0px var(--color-red);
    position: relative;
    animation: neon-intro 2.5s ease-in-out forwards;
}

@keyframes neon-intro {
    0% {
        color: #000;
        text-shadow: 0 0 0px var(--color-red-glow);
    }
    15% {
        color: #000;
        text-shadow: 0 0 5px var(--color-red);
    }
    20% {
        color: #000;
        text-shadow: 0 0 0px var(--color-red-glow);
    }
    25% {
        color: var(--color-text);
        text-shadow: 0 0 10px var(--color-red-glow), 0 0 20px var(--color-red-dark);
    }
    30% {
        color: #000;
        text-shadow: 0 0 2px var(--color-red-glow);
    }
    35% {
        color: var(--color-text);
        text-shadow: 0 0 15px var(--color-red), 0 0 30px var(--color-red-dark);
    }
    100% {
        color: var(--color-text);
        text-shadow: 0 0 20px var(--color-red), 0 0 40px var(--color-red-dark), 0 0 60px #ff0000;
    }
}

.intro-btn {
    margin-top: 40px;
    opacity: 0;
    animation: fade-in 1s ease 2s forwards;
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

/* Footer Section */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(255, 46, 46, 0.1);
    padding: 40px 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a:hover {
    color: var(--color-red);
    text-shadow: 0 0 8px var(--color-red-glow);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 900px) {
    .exhibitions-timeline::before {
        left: 40px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .timeline-dot {
        left: 32px !important;
        right: auto !important;
    }
    .timeline-item:nth-child(odd) .timeline-location {
        justify-content: flex-start;
    }
    .contact-section, .concept-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(255, 46, 46, 0.1);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-tertiary);
        border: none;
        margin-top: 10px;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        width: 100%;
        text-align: center;
    }

    .nav-item.active-dropdown .dropdown {
        max-height: 500px;
        padding: 10px 0;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
}
