:root {
    --color-bg: #07080a;
    --color-text: #e0e0e0;
    --color-primary: #ff8c00;
    --color-primary-light: #ffb347;
    --color-primary-glow: rgba(255, 140, 0, 0.4);
    --color-panel: rgba(15, 18, 22, 0.85);
    --color-border: #333;
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

/* Hide scrollbar for all elements but keep functionality */
*::-webkit-scrollbar {
    display: none;
}
* {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#ui-layer {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

header, .hero-content {
    pointer-events: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    border-bottom: 1px solid var(--color-primary-glow);
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px var(--color-primary-glow);
    text-decoration: none;
}

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

nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

nav a:not(.btn-small):hover {
    color: var(--color-primary);
    text-shadow: 0 0 8px var(--color-primary-glow);
}

.btn-small, .btn-primary {
    font-family: var(--font-heading);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small {
    border: 1px solid var(--color-primary);
    padding: 0.6rem 1.2rem;
    color: var(--color-primary);
    background: rgba(255, 140, 0, 0.1);
}

.btn-small:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    box-shadow: 0 0 20px var(--color-primary);
    transform: scale(1.02);
}

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    gap: 2rem;
    overflow-y: auto;
    pointer-events: auto;
}

.hero-content {
    flex: 1;
    max-width: 800px;
    background: rgba(15, 18, 22, 0.65); /* Made panel more transparent to counteract darkness */
    padding: 4rem;
    border-left: 4px solid var(--color-primary);
    backdrop-filter: blur(4px); /* Reduced blur slightly for clearer view of background */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255, 140, 0, 0.2);
    border-right: 1px solid rgba(255, 140, 0, 0.2);
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
    position: relative;
}

.hero-video {
    flex: 1.5;
    max-width: 800px;
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 20px var(--color-primary-glow);
    background: var(--color-panel);
    padding: 10px;
    position: relative;
    z-index: 20;
}

.hero-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    border: none;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -4px;
    width: 20px;
    height: 4px;
    background: var(--color-primary);
}

.status-badge {
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid var(--color-primary-glow);
    padding: 0.3rem 1rem;
    background: rgba(255, 140, 0, 0.1);
}

h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.8);
}

p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #c0c0c0;
    max-width: 650px;
}

.cta-container {
    margin-top: 2.5rem;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.newsletter-form input {
    flex: 1;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    padding: 1rem 1.5rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.1rem;
    letter-spacing: 1px;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-form input:focus {
    border-color: var(--color-primary);
    box-shadow: inset 0 0 15px var(--color-primary-glow);
}

.newsletter-form input::placeholder {
    color: #666;
}

.form-footer {
    margin-top: 1.5rem;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    display: inline-block;
    border: 1px solid var(--color-primary-glow);
    padding: 0.5rem 1rem;
    background: rgba(255, 140, 0, 0.1);
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.1) 50%,
        rgba(0,0,0,0.1)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 99;
    opacity: 0.4;
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    .hero { 
        flex-direction: column; 
        text-align: center;
        align-items: stretch;
        justify-content: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .hero-content { margin-bottom: 2rem; border-left: none; border-top: 4px solid var(--color-primary); }
    .hero-content::before { top: -4px; left: -1px; width: 40px; height: 4px; }
}

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    
    header { padding: 1rem; flex-direction: column; gap: 1rem; text-align: center; }
    .logo { font-size: 1.4rem; }
    nav { gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
    nav a { font-size: 0.8rem; }
    
    .hero { padding: 1rem; align-items: stretch; }
    .hero-content { padding: 1.5rem; }
    h1 { font-size: 2.2rem; margin-bottom: 1rem; }
    p { font-size: 1rem; margin-bottom: 1.5rem; }
    
    .newsletter-form { flex-direction: column; }
    .btn-primary { width: 100%; padding: 0.8rem; font-size: 1rem; }
    .newsletter-form input { padding: 0.8rem; }
    
    .page-title { font-size: 1.8rem; word-wrap: break-word; margin-bottom: 1.5rem; }
    
    .database-container {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 400px;
        height: 100%;
        padding: 1.5rem;
        background: rgba(15, 18, 22, 0.98);
        border-right: 1px solid var(--color-primary-glow);
        box-shadow: 10px 0 30px rgba(0,0,0,0.8);
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .database-container.mobile-open {
        left: 0;
    }
    
    .database-container .page-title { font-size: 1.6rem; }
    
    .page-content { padding: 1.5rem 5%; width: 100%; }
    .timeline { padding-left: 1.5rem; }
    .timeline::before { left: 2px; }
    .timeline-marker { left: -1.5rem; width: 10px; height: 10px; top: 1.5rem; }
    .timeline-item { padding: 1.2rem; margin-bottom: 1.5rem; width: 100%; max-width: 100%; box-sizing: border-box; }
    .timeline-content h3 { font-size: 1.2rem; }
    .timeline-content .date { font-size: 0.9rem; margin-bottom: 0.5rem; }
    .timeline-content p, .feature-list { font-size: 0.95rem; }
    .card-grid { grid-template-columns: 1fr; gap: 1rem; }
    .db-card { padding: 1.2rem; }
    .card-icon { height: 80px; }
    .card-icon canvas { width: 80px !important; height: 80px !important; }
    .modal-content, #modal-caption { width: 95%; padding: 1rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .logo { font-size: 1.2rem; }
    .hero-content { padding: 1rem; }
    .db-category h2 { font-size: 1.4rem; }
    .db-intro { font-size: 1rem; margin-bottom: 1.5rem; }
    .card-icon { height: 70px; }
    .card-icon canvas { width: 70px !important; height: 70px !important; }
}


/* Roadmap Styles */
.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 3rem 5%;
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto; /* Allow scrolling and interaction */
}

.page-content:not(.database-container) > * {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--color-primary-glow);
    padding-bottom: 1rem;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
}

.database-container .page-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

.highlight {
    color: var(--color-primary);
}

/* Vertical Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    height: 100%;
    width: 2px;
    background: var(--color-primary-glow);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    background: var(--color-panel);
    padding: 2rem;
    border: 1px solid var(--color-border);
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    border-color: var(--color-primary-glow);
}

.timeline-marker {
    position: absolute;
    top: 2rem;
    left: -2rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--color-primary);
    z-index: 2;
}

.timeline-item.complete .timeline-marker {
    background: var(--color-primary);
}

.timeline-item.active .timeline-marker {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 15px #fff;
    animation: pulse 2s infinite;
}

.timeline-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px var(--color-primary-glow);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.timeline-content .date {
    display: inline-block;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.timeline-content p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.feature-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
    color: #c0c0c0;
    list-style-type: square;
}

.feature-list li {
    margin-bottom: 0.5rem;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Media Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    border: 1px solid var(--color-border);
    background: var(--color-panel);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    aspect-ratio: 16 / 9;
}

.gallery-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 5px 20px var(--color-primary-glow);
    transform: translateY(-5px);
}

.gallery-item img, .gallery-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

/* Make video span full width on larger screens */
.video-item {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-bottom: 2px solid var(--color-primary);
}

.gallery-item:hover .item-overlay {
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    pointer-events: auto;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 30px var(--color-primary-glow);
    animation: zoom 0.3s ease;
}

#modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    text-align: center;
    color: #fff;
    padding: 15px 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    animation: zoom 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--color-primary);
    text-shadow: 0 0 10px var(--color-primary-glow);
}

@keyframes zoom {
    from {transform:scale(0.9); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

/* Database Styles */
.database-container {
    width: 450px;
    max-width: 100vw;
    margin: 0;
    margin-right: auto;
    padding: 2rem 3rem;
    background: linear-gradient(to right, rgba(0,0,0,0.95), rgba(0,0,0,0.6));
    border-right: 1px solid var(--color-primary-glow);
    backdrop-filter: blur(10px);
}

.db-intro {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #c0c0c0;
    max-width: 800px;
}

.db-category {
    margin-bottom: 4rem;
}

.db-category h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
    text-shadow: 0 0 10px var(--color-primary-glow);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.3s;
}

.db-category h2:hover {
    color: var(--color-primary);
}

.db-category h2::after {
    content: '▼';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--color-primary);
}

.db-category.collapsed h2::after {
    transform: rotate(-90deg);
}

.db-category.collapsed .card-grid {
    display: none;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.db-card {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.db-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.db-card:hover {
    border-color: rgba(255, 140, 0, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 0 20px var(--color-primary-glow);
}

.db-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    height: 120px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 5px var(--color-primary-glow));
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-icon canvas {
    width: 120px !important;
    height: 120px !important;
}

.db-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.db-card p {
    font-size: 1rem;
    color: #a0a0a0;
    line-height: 1.5;
    margin-bottom: 0;
}
