* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier Prime', monospace;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    font-family: 'Orbitron', monospace;
}

.lab-logo {
    margin-bottom: 30px;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: #00ff41;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.logo-sub {
    font-size: 1.2rem;
    color: #ff6b35;
    margin-top: 5px;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(0, 255, 65, 0.2);
    border-radius: 2px;
    margin: 20px auto;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #ff6b35);
    width: 0%;
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    to { width: 100%; }
}

.loading-text {
    color: #ccc;
    font-size: 1rem;
}

/* Media Placeholders */
.media-placeholder {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #00ff41;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.media-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
    animation: scan 2s infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.placeholder-text {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: #00ff41;
    text-align: center;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    z-index: 2;
    position: relative;
}

.media-placeholder:hover {
    border-color: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.media-placeholder:hover .placeholder-text {
    color: #ff6b35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 255, 65, 0.3);
    z-index: 1000;
    padding: 15px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image-placeholder {
    width: 50px;
    height: 50px;
}

.logo-text {
    font-family: 'Orbitron', monospace;
}

.logo-main {
    color: #00ff41;
    font-size: 1.3rem;
    font-weight: 900;
    display: block;
}

.logo-sub {
    color: #ff6b35;
    font-size: 0.9rem;
    display: block;
    margin-top: -3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff41, #ff6b35);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.worldline-indicator {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
}

.worldline-label {
    color: #888;
}

.worldline-number {
    color: #00ff41;
    font-weight: 700;
    text-shadow: 0 0 5px #00ff41;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-media {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #00ff41, #ff6b35, #00ff41);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.typewriter {
    border-right: 3px solid #00ff41;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #00ff41; }
    51%, 100% { border-color: transparent; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-button {
    background: linear-gradient(45deg, #00ff41, #00cc33);
    border: none;
    padding: 15px 40px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 65, 0.3);
}

.button-icon {
    font-size: 1.2rem;
}

.hero-decorations {
    position: absolute;
    top: 20%;
    right: 10%;
    z-index: 2;
}

.gear {
    position: absolute;
    border: 3px solid rgba(0, 255, 65, 0.3);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.1) 0%, transparent 70%);
}

.gear::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 2px solid rgba(0, 255, 65, 0.2);
    border-radius: 50%;
}

.gear-1 {
    width: 80px;
    height: 80px;
    animation: rotate-clockwise 10s linear infinite;
}

.gear-2 {
    width: 60px;
    height: 60px;
    top: 40px;
    right: 60px;
    animation: rotate-counter-clockwise 8s linear infinite;
}

.gear-3 {
    width: 50px;
    height: 50px;
    top: 80px;
    right: 20px;
    animation: rotate-clockwise 12s linear infinite;
}

@keyframes rotate-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-counter-clockwise {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(even) {
    background: rgba(20, 20, 20, 0.3);
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    text-transform: uppercase;
}

/* Lab Members Section */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.member-card {
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: all 0.6s ease;
}

.member-card:hover::before {
    left: 100%;
}

.member-card:hover {
    border-color: #00ff41;
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.2);
    transform: translateY(-5px);
}

.member-media {
    margin-bottom: 20px;
}

.member-image {
    width: 100%;
    height: 200px;
}

.member-info {
    position: relative;
    z-index: 2;
}

.member-number {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #ff6b35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    margin-bottom: 10px;
}

.member-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    color: #00ff41;
    margin-bottom: 5px;
}

.member-title {
    color: #ff6b35;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.member-description {
    color: #ccc;
    line-height: 1.6;
}

/* Future Gadgets Section */
.gadgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.gadget-block {
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.gadget-block:hover {
    border-color: #ff6b35;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    transform: translateY(-5px);
}

.gadget-media {
    width: 100%;
    height: 250px;
}

.gadget-image {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
}

.gadget-info {
    padding: 30px;
}

.gadget-number {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: #ff6b35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    margin-bottom: 15px;
}

.gadget-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: #00ff41;
    margin-bottom: 15px;
}

.gadget-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.gadget-status {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: #888;
}

.status-active {
    color: #00ff41;
    text-shadow: 0 0 5px #00ff41;
}

.status-warning {
    color: #ffaa00;
    text-shadow: 0 0 5px #ffaa00;
}

.status-danger {
    color: #ff4444;
    text-shadow: 0 0 5px #ff4444;
}

/* Time Travel Theory Section */
.theory-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.theory-text h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #00ff41;
    margin-bottom: 15px;
}

.theory-text p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 30px;
}

.theory-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ff6b35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.theory-media {
    width: 100%;
}

.theory-diagram {
    width: 100%;
    height: 400px;
}

/* D-Mail Terminal Section */
.dmail-block {
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.terminal-media {
    background: #1a1a1a;
}

.terminal-gif {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 0;
}

.terminal-interface {
    padding: 30px;
    background: #0a0a0a;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.terminal-title {
    font-family: 'Orbitron', monospace;
    color: #00ff41;
    font-weight: 700;
}

.terminal-status {
    color: #00ff41;
    font-size: 0.8rem;
    background: rgba(0, 255, 65, 0.2);
    padding: 3px 8px;
    border-radius: 3px;
}

.terminal-content {
    font-family: 'Courier Prime', monospace;
}

.terminal-line {
    margin-bottom: 10px;
}

.prompt {
    color: #00ff41;
}

.command {
    color: #fff;
    margin-left: 5px;
}

.terminal-output {
    color: #00ff41;
    margin-bottom: 10px;
    margin-left: 20px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: #fff;
    padding: 8px 12px;
    font-family: 'Courier Prime', monospace;
    border-radius: 4px;
}

.terminal-input:focus {
    outline: none;
    border-color: #00ff41;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.send-button {
    background: #ff6b35;
    border: none;
    color: #000;
    padding: 8px 16px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-button:hover {
    background: #ff8855;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

/* Contact Section */
.contact-content {
    margin-top: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-media {
    width: 100%;
}

.contact-image {
    width: 100%;
    height: 300px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.contact-label {
    color: #888;
    font-weight: 700;
}

.contact-value {
    color: #fff;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 2px solid rgba(0, 255, 65, 0.3);
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
}

.footer-media {
    width: 60px;
}

.footer-logo {
    width: 60px;
    height: 60px;
}

.footer-text {
    text-align: center;
}

.footer-main {
    color: #00ff41;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.footer-sub {
    color: #888;
    font-size: 0.9rem;
    margin-top: 5px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #00ff41;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 20px;
        padding: 15px 20px;
    }
    
    .nav-menu {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .members-grid,
    .gadgets-grid {
        grid-template-columns: 1fr;
    }
    
    .theory-content,
    .contact-info,
    .dmail-block {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .hero-decorations {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .members-grid,
    .gadgets-grid {
        gap: 20px;
    }
    
    .member-card,
    .gadget-block {
        padding: 20px;
    }
}

