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

body {
    overflow: hidden;
    background-color: #000208;
    cursor: crosshair;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    outline: none;
    display: block;
    z-index: 0;
    pointer-events: auto;
}

/* When modal is open, disable pointer events on canvas */
body.modal-open #webgl-canvas {
    pointer-events: none;
}

#vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    box-shadow: inset 0 0 15vw 5vw rgba(0, 0, 0, 0.8);
}

/* UPDATED: Branding Watermark Styling */
#branding {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Roboto Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.15em;
    pointer-events: none;
    z-index: 101;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    /* NEW: "Living" text animation */
    animation: text-shimmer 5s infinite alternate;
}

.cursor-blink {
    /* NEW: Blinking cursor animation */
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { color: transparent; }
    50% { color: rgba(255, 255, 255, 0.5); }
}

@keyframes text-shimmer {
    0% {
        filter: blur(0.5px) contrast(1);
        opacity: 0.4;
    }
    100% {
        filter: blur(0px) contrast(1.2);
        opacity: 0.6;
    }
}


#content-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(300px, 60vw, 800px);
    height: clamp(200px, 40vh, 500px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(10, 20, 40, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.75s ease-in-out;
    z-index: 100;
}

#content-container.visible { opacity: 1; }
#content-container.hidden { opacity: 0; }

#content-motif {
    font-family: 'Roboto Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 300;
    text-align: center;
    color: #eaf2ff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 20px;
    text-shadow: 
        0 0 8px rgba(173, 216, 230, 0.6),
        0 0 20px rgba(0, 255, 255, 0.4);
}

/* ============================================
   PHASE 2: DOMAIN UI & MODAL STYLES
   ============================================ */

/* Utility Classes */
.hidden { display: none !important; }
.visible { display: flex !important; }

/* Domain Badge */
#domain-badge {
    position: fixed;
    top: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    z-index: 200;
    transition: all 0.3s ease;
}

#domain-badge:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.25);
}

.domain-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00B4D8;
    box-shadow: 0 0 10px currentColor;
    animation: pulse-indicator 2s ease-in-out infinite;
}

@keyframes pulse-indicator {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.domain-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

/* Domain Flip Link */
#domain-flip {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 200;
}

.flip-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 12px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.flip-link:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.flip-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.flip-link:hover .flip-icon {
    transform: translate(2px, -2px);
}

/* Main Navigation */
#main-nav {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
}

.nav-links {
    display: flex;
    gap: 30px;
    padding: 12px 30px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(12px);
}

.nav-link {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.95);
}

.nav-link:hover::after {
    width: 100%;
}

/* CTA Button */
.cta-button {
    margin-top: 30px;
    padding: 14px 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 2, 8, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.modal-backdrop:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* Content Modals */
.content-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: min(90vw, 800px);
    max-height: 85vh;
    background: rgba(10, 15, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 10000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 60px rgba(59, 130, 246, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-modal.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    transform: rotate(90deg);
}

.modal-header {
    padding: 30px 40px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

.modal-header h2 {
    font-family: 'Roboto Mono', monospace;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 300;
    letter-spacing: 0.02em;
}

.modal-body {
    padding: 30px 40px;
    overflow-y: auto;
    max-height: calc(85vh - 120px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Power Node Modal Specifics */
.power-node-modal .modal-header {
    text-align: center;
    padding: 50px 40px 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
}

.node-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.9;
    text-shadow: 0 0 40px rgba(100, 150, 255, 0.4);
    animation: icon-float 4s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.catchphrase {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.08em;
    margin-top: 12px;
}

.node-description {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.node-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
    justify-content: center;
}

.capability-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.capability-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.modal-cta {
    display: block;
    margin: 0 auto;
    padding: 16px 40px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.modal-cta:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.25));
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.25);
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 32px;
    margin-bottom: 16px;
    opacity: 0.85;
    text-shadow: 0 0 20px rgba(100, 150, 255, 0.3);
}

.service-card h3 {
    font-family: 'Roboto Mono', monospace;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 16px;
}

.service-card ul {
    list-style: none;
    margin-bottom: 24px;
}

.service-card li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    padding: 8px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.service-card li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: rgba(59, 130, 246, 0.6);
    font-weight: bold;
}

.card-cta {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.card-cta:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: rgba(255, 255, 255, 0.95);
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.about-block h3 {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.about-block p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

/* Contact Form - Full Width Layout */
.contact-form-full {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Social Links (for other uses) */
.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    font-size: 12px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group select option {
    background: #0a0f1e;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.submit-button {
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 10px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(37, 99, 235, 1));
}

.submit-button:active {
    transform: translateY(0);
}

/* Papers List */
.papers-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.paper-entry {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.paper-entry:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.paper-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.paper-header h3 {
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    font-weight: 400;
    color: #eaf2ff;
}

.paper-date {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.paper-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    padding: 4px 10px;
    background: rgba(199, 125, 255, 0.1);
    border: 1px solid rgba(199, 125, 255, 0.2);
    border-radius: 12px;
    font-size: 11px;
    color: rgba(199, 125, 255, 0.8);
}

.paper-abstract {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.paper-links {
    display: flex;
    gap: 16px;
}

.paper-link {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.paper-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Experiments Grid */
.experiments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.experiment-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.experiment-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.experiment-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.experiment-status.active {
    background: rgba(0, 180, 216, 0.15);
    color: rgba(0, 180, 216, 0.9);
}

.experiment-status.operational {
    background: rgba(0, 200, 100, 0.15);
    color: rgba(0, 200, 100, 0.9);
}

.experiment-status.progress {
    background: rgba(255, 180, 0, 0.15);
    color: rgba(255, 180, 0, 0.9);
}

.experiment-card h3 {
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    font-weight: 400;
    color: #eaf2ff;
    margin-bottom: 10px;
}

.experiment-description {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.experiment-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.meta-tag {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.experiment-links {
    display: flex;
    gap: 12px;
}

.experiment-link {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.experiment-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Research About */
.research-about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.research-section h3 {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

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

.research-list li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 0;
    padding-left: 16px;
    position: relative;
}

.research-list li::before {
    content: '◦';
    position: absolute;
    left: 0;
    color: rgba(199, 125, 255, 0.5);
}

.research-section.collaboration {
    grid-column: 1 / -1;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.research-section.collaboration p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.research-crosslink {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.research-crosslink p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.domain-link {
    color: rgba(0, 180, 216, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.domain-link:hover {
    color: rgba(0, 180, 216, 1);
}

/* Footer */
#main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    z-index: 100;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

.footer-domain {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* Scrollbar Styling */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #domain-badge {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
    }
    
    #domain-flip {
        top: 15px;
        left: 15px;
    }
    
    .flip-link {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    #main-nav {
        top: 65px;
    }
    
    .nav-links {
        gap: 16px;
        padding: 10px 20px;
    }
    
    .nav-link {
        font-size: 10px;
    }
    
    .modal-header,
    .modal-body {
        padding: 24px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-grid,
    .experiments-grid {
        grid-template-columns: 1fr;
    }
    
    .about-section,
    .research-about {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .node-icon {
        font-size: 48px;
    }
    
    .power-node-modal .modal-header {
        padding: 40px 24px 24px;
    }
    
    .node-capabilities {
        gap: 8px;
    }
    
    .capability-tag {
        font-size: 10px;
        padding: 6px 12px;
    }
}
