@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

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

body, html {
    height: 100%;
    overflow: hidden;
    background: #000;
    background-image: 
        linear-gradient(rgba(64, 64, 64, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(64, 64, 64, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    font-family: 'Orbitron', monospace;
}

#circuitCanvas {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    z-index: 1;
}

#textContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    pointer-events: none;
}

.text-line {
    color: #00ffff;
    font-size: 2rem; /* Reduced from 3rem (2/3 size) */
    font-weight: 400;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 30px #00ffff,
        0 0 40px #0080ff;
    opacity: 0;
    transform: translateY(-100px);
    transition: all 2s ease-out;
    margin-bottom: 10px; /* Reduced from 15px */
    letter-spacing: 1px; /* Reduced from 1.5px */
    border: 2px solid #00ffff;
    border-radius: 6px; /* Reduced from 8px */
    padding: 10px 18px; /* Reduced from 15px 25px */
    box-shadow: 
        0 0 20px #00ffff,
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.text-line.show {
    opacity: 1;
    transform: translateY(0);
}

.digital-text {
    color: #ff6600;
    font-size: 1.75rem;
    font-weight: 400;
    text-shadow: 
        0 0 10px #ff6600,
        0 0 20px #ff6600,
        0 0 30px #ff6600,
        0 0 40px #ff3300;
    opacity: 0;
    transform: scale(0) rotate(180deg);
    transition: all 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    letter-spacing: 2px;
    position: absolute;
    top: -40px;
    left: 50%;
    transform-origin: center;
}

.digital-text.show {
    opacity: 1;
    transform: scale(1) rotate(-15deg) translateX(-50%);
}

@keyframes caretBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

#buttonContainer {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.neon-button {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ffff;
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 15px 30px;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.8s ease-out;
    box-shadow: 
        0 0 10px #00ffff,
        inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.neon-button.show {
    opacity: 1;
    transform: translateY(0);
}

.neon-button:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 
        0 0 20px #00ffff,
        0 0 30px #00ffff,
        inset 0 0 20px rgba(0, 255, 255, 0.2);
    transform: translateY(-3px);
}

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

.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.neon-button:hover::before {
    left: 100%;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 
            0 0 10px #00ffff,
            inset 0 0 10px rgba(0, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 25px #00ffff,
            0 0 35px #00ffff,
            inset 0 0 15px rgba(0, 255, 255, 0.2);
    }
}

.neon-button.show {
    animation: buttonPulse 3s infinite;
}

.neon-node {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffff;
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 30px;
    cursor: pointer;
    letter-spacing: 1px;
    text-align: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.4),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    user-select: none;
    max-width: 280px;
    min-width: 140px;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1);
}

.neon-node:hover {
    background: rgba(0, 255, 255, 0.9);
    color: #000;
    transform: scale(1.15);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.7),
        0 0 40px rgba(0, 255, 255, 0.5),
        inset 0 0 25px rgba(0, 255, 255, 0.2);
    border-color: #ffffff;
    z-index: 15;
}

.neon-node:active {
    transform: scale(1.05);
}

/* Data Card Styles */
.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.clickable:hover {
    transform: scale(1.02);
    text-shadow: 
        0 0 15px currentColor,
        0 0 25px currentColor,
        0 0 35px currentColor,
        0 0 45px currentColor;
}

.clickable:active {
    transform: scale(0.98);
}

.data-card {
    position: fixed;
    left: -33.33vw;
    top: 0;
    width: 33.33vw;
    height: 100vh;
    background: rgba(0, 20, 40, 0.95);
    border-right: 2px solid #00ffff;
    z-index: 500;
    overflow-y: auto;
    transition: left 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
}

.data-card.show {
    left: 0;
}

/* Custom Neon Scrollbar */
.data-card::-webkit-scrollbar {
    width: 12px;
}

.data-card::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.data-card::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffff, #0080ff);
    border-radius: 10px;
    border: 1px solid #00ffff;
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.5),
        inset 0 0 10px rgba(0, 255, 255, 0.2);
}

.data-card::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffffff, #00ffff);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.8),
        inset 0 0 15px rgba(0, 255, 255, 0.3);
}

/* Firefox scrollbar */
.data-card {
    scrollbar-width: thin;
    scrollbar-color: #00ffff rgba(0, 0, 0, 0.3);
}

.data-card-content {
    padding: 30px 25px;
    color: #ffffff;
    font-family: 'Orbitron', monospace;
}

/* Visualization Area Styles */
.viz-area {
    position: fixed;
    right: -66.67vw;
    top: 0;
    width: 66.67vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 400;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.viz-area.show {
    right: 0;
}

#nodeVizCanvas {
    width: 100%;
    height: 100%;
    background: transparent;
}

.back-button {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.3),
        inset 0 0 15px rgba(0, 255, 255, 0.1);
}

.back-button:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 
        0 0 25px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.2);
}

/* Visualization Legend */
.viz-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.viz-legend h4 {
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    margin: 0 0 10px 0;
    text-align: center;
    text-shadow: 0 0 5px #00ffff;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 6px 0;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.legend-item:hover {
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    transform: scale(1.05);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid #ffffff;
    box-shadow: 0 0 5px currentColor;
}

.legend-color.central {
    background: #ff6600;
    color: #ff6600;
}

.legend-color.degree {
    background: #00ffff;  /* Solid cyan to match degree lines */
    color: #00ffff;
}

.legend-color.internal {
    background: #ffff00;  /* Solid yellow to match internal lines */
    color: #ffff00;
}

.legend-color.external {
    background: #ff00ff;  /* Solid magenta to match external lines */
    color: #ff00ff;
}

/* Main canvas fade out state */
#circuitCanvas.fade-out {
    opacity: 0.2;
    transition: opacity 0.5s ease;
}

/* Node fade out state */
.neon-node.fade-out {
    opacity: 0.1;
    transform: scale(0.8);
    transition: all 0.5s ease;
}

/* Text container fade out state */
#textContainer.fade-out {
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

/* Neon link styles for the focused visualization */
.neon-link {
    stroke-width: 2;
    fill: none;
    opacity: 0;
    animation: linkGlow 2s ease-in-out infinite alternate;
}

.internal-link {
    stroke: #ffff00;
    filter: drop-shadow(0 0 5px #ffff00);
}

.external-link {
    stroke: #ff00ff;
    filter: drop-shadow(0 0 5px #ff00ff);
}

@keyframes linkGlow {
    from {
        stroke-width: 2;
    }
    to {
        stroke-width: 3;
    }
}

.internal-link {
    animation: internalLinkGlow 2s ease-in-out infinite alternate;
}

.external-link {
    animation: externalLinkGlow 2s ease-in-out infinite alternate;
}

@keyframes internalLinkGlow {
    from {
        stroke-width: 2;
        filter: drop-shadow(0 0 5px #ffff00);
    }
    to {
        stroke-width: 3;
        filter: drop-shadow(0 0 15px #ffff00);
    }
}

@keyframes externalLinkGlow {
    from {
        stroke-width: 2;
        filter: drop-shadow(0 0 5px #ff00ff);
    }
    to {
        stroke-width: 3;
        filter: drop-shadow(0 0 15px #ff00ff);
    }
}

.focused-node {
    fill: #ff6600;
    stroke: #ffffff;
    stroke-width: 3;
    filter: drop-shadow(0 0 20px #ff6600);
    animation: nodePulse 2s ease-in-out infinite alternate;
}

@keyframes nodePulse {
    from {
        filter: drop-shadow(0 0 20px #ff6600);
    }
    to {
        filter: drop-shadow(0 0 30px #ff6600);
    }
}

.partner-node {
    stroke: #ffffff;
    stroke-width: 2;
}

.internal-partner-node {
    fill: #ffff00;
    filter: drop-shadow(0 0 10px #ffff00);
}

.external-partner-node {
    fill: #ff00ff;
    filter: drop-shadow(0 0 10px #ff00ff);
}

.partner-label {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    text-anchor: middle;
    alignment-baseline: central;
    text-shadow: 0 0 5px #000000;
}

.internal-partner-label {
    fill: #ffff00;
    text-shadow: 0 0 8px #ffff00;
}

.external-partner-label {
    fill: #ff00ff;
    text-shadow: 0 0 8px #ff00ff;
}

.focused-label {
    fill: #ff6600;
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: bold;
    text-anchor: middle;
    alignment-baseline: central;
    text-shadow: 0 0 10px #ff6600;
}

.infocard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.infocard-overlay.show {
    opacity: 1;
    visibility: visible;
}

.infocard {
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid #00ffff;
    border-radius: 15px;
    padding: 30px;
    max-width: 800px;
    max-height: 80vh;
    width: 90%;
    position: relative;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.5),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    transform: scale(0.8) rotate(5deg);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
}

.infocard-overlay.show .infocard {
    transform: scale(1) rotate(0deg);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #00ffff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-button:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #00ffff;
    transform: scale(1.2);
}

.card-content {
    color: #ffffff;
    font-family: 'Orbitron', monospace;
}

.card-title {
    color: #00ffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px #00ffff;
}

.card-section {
    margin-bottom: 25px;
}

.section-title {
    color: #ff6600;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #ff6600;
    border-bottom: 1px solid rgba(255, 102, 0, 0.3);
    padding-bottom: 5px;
}

.section-content {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-left: 10px;
}

.section-list {
    list-style: none;
    padding: 0;
}

.section-list li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.section-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #00ffff;
    font-size: 0.8rem;
}

/* Special styling for degrees list */
.degrees-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 8px;
}

.degree-item {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    margin: 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.degree-item:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.degree-item::before {
    content: '🎓';
    margin-right: 8px;
    opacity: 0.7;
}

.highlight-link {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.highlight-link:hover {
    color: #ffffff;
    text-shadow: 0 0 5px #00ffff;
}

.tech-course {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    padding: 5px 10px;
    margin: 5px 5px 5px 0;
    display: inline-block;
    font-size: 0.8rem;
    color: #ffffff;
}

.featured-project {
    margin-bottom: 25px;
    text-align: center;
}

.featured-title {
    color: #ff6600;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #ff6600;
}

.featured-preview {
    width: 100%;
    height: 300px;
    border: 2px solid #00ffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.featured-preview:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    transform: scale(1.02);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #00ffff;
    transition: all 0.3s ease;
    z-index: 2;
}

.featured-preview:hover .preview-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.preview-placeholder {
    text-align: center;
    color: #00ffff;
}

.preview-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.preview-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #00ffff;
}

.preview-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #00ffff;
}

/* Pulsing animation for text */
@keyframes pulse {
    0%, 100% {
        text-shadow: 
            0 0 10px currentColor,
            0 0 20px currentColor,
            0 0 30px currentColor,
            0 0 40px currentColor;
    }
    50% {
        text-shadow: 
            0 0 20px currentColor,
            0 0 30px currentColor,
            0 0 40px currentColor,
            0 0 60px currentColor;
    }
}

.text-line.show {
    animation: pulse 3s infinite;
}

.digital-text.show {
    animation: pulse 2s infinite;
}

/* Responsive design */
@media (max-width: 768px) {
    .text-line {
        font-size: 1.35rem; /* 2/3 of 2rem */
        padding: 8px 14px; /* Reduced padding */
        margin-bottom: 8px; /* Reduced margin */
        letter-spacing: 0.7px; /* Reduced letter spacing */
    }
    
    .digital-text {
        font-size: 1.5rem;
        top: -30px;
    }
    
    .neon-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    #buttonContainer {
        bottom: 15%;
    }
    
    .neon-node {
        font-size: 0.8rem;
        padding: 10px 16px;
        max-width: 200px;
        min-width: 100px;
    }
    
    .infocard {
        padding: 20px;
        max-width: 90%;
    }
    
    .data-card {
        width: 100%;
        left: -100%;
    }
    
    .viz-area {
        width: 100%;
        right: -100%;
    }
    
    .back-button {
        font-size: 0.9rem;
        padding: 10px 18px;
        top: 20px;
        left: 20px;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .section-content {
        font-size: 0.8rem;
    }
    
    .featured-preview {
        height: 250px;
    }
    
    .featured-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .text-line {
        font-size: 1rem; /* 2/3 of 1.5rem */
        letter-spacing: 0.3px; /* Reduced letter spacing */
        padding: 7px 10px; /* Reduced padding */
        margin-bottom: 7px; /* Reduced margin */
        border-radius: 4px; /* Smaller border radius */
    }
    
    .digital-text {
        font-size: 1.1rem;
        top: -25px;
        letter-spacing: 2px;
    }
    
    .neon-button {
        font-size: 0.9rem;
        padding: 10px 20px;
        letter-spacing: 1px;
    }
    
    #buttonContainer {
        bottom: 10%;
    }
    
    .neon-node {
        font-size: 0.7rem;
        padding: 8px 12px;
        border-radius: 20px;
        max-width: 160px;
        min-width: 80px;
        letter-spacing: 0.5px;
    }
    
    .infocard {
        padding: 15px;
        max-width: 95%;
        max-height: 85vh;
    }
    
    .data-card-content {
        padding: 20px 15px;
    }
    
    .back-button {
        font-size: 0.8rem;
        padding: 8px 15px;
        top: 15px;
        left: 15px;
    }
    
    .card-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 0.9rem;
    }
    
    .section-content {
        font-size: 0.75rem;
    }
    
    .tech-course {
        font-size: 0.7rem;
        padding: 3px 6px;
        margin: 3px 3px 3px 0;
    }
    
    .close-button {
        font-size: 1.5rem;
        top: 10px;
        right: 15px;
    }
    
    .featured-preview {
        height: 200px;
    }
    
    .featured-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .partner-label {
        font-size: 10px;
    }
    
    .focused-label {
        font-size: 14px;
    }
}

/* Popup Window Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-window {
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid #00ffff;
    border-radius: 10px;
    width: 90%;
    height: 85%;
    max-width: 1200px;
    max-height: 800px;
    box-shadow: 
        0 0 20px #00ffff,
        0 0 40px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.popup-overlay.show .popup-window {
    transform: scale(1) translateY(0);
}

.popup-header {
    background: rgba(0, 255, 255, 0.1);
    border-bottom: 1px solid #00ffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-title {
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 0 10px #00ffff;
    margin: 0;
}

.popup-close {
    background: transparent;
    border: 2px solid #ff4444;
    color: #ff4444;
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    line-height: 1;
}

.popup-close:hover {
    background: #ff4444;
    color: #000;
    box-shadow: 0 0 15px #ff4444;
    transform: scale(1.1);
}

.popup-content {
    height: calc(100% - 70px);
    position: relative;
}

.popup-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

.popup-fallback {
    padding: 40px;
    text-align: center;
    color: #00ffff;
    font-family: 'Orbitron', monospace;
}

.popup-fallback a {
    color: #ffff00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.popup-fallback a:hover {
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

/* Responsive popup */
@media (max-width: 768px) {
    .popup-window {
        width: 95%;
        height: 90%;
        margin: 20px;
    }
    
    .popup-title {
        font-size: 1rem;
    }
    
    .popup-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}
