/* Basic Reset & Font */
body, h1, h2, h3, p, ul, li, form, label, input, textarea, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Use Orbitron as the primary font, fallback to sans-serif */
    font-family: 'Orbitron', sans-serif;
}

body {
    background-color: #000; /* Darker background */
    color: #eee;
    line-height: 1.6;
    overflow: hidden; /* Prevent scrollbars on the body */
}

canvas#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    display: block;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    /* Make background more transparent and darker */
    background-color: rgba(0, 0, 10, 0.75); /* Dark blue tint, 75% opacity */
    padding-top: 60px; /* Location of the box */
}

.modal-content {
    /* Spacey background and border */
    background-color: rgba(15, 15, 35, 0.9); /* Dark purple/blue, 90% opacity */
    color: #e0e0e0; /* Slightly off-white text */
    margin: 5% auto; /* 5% from the top and centered */
    padding: 30px;
    border: 1px solid rgba(100, 150, 255, 0.6); /* Glowing blue border */
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 700px; /* Maximum width */
    border-radius: 15px; /* More rounded */
    position: relative;
    box-shadow: 0 0 25px rgba(50, 100, 255, 0.5); /* Outer blue glow */
}

.modal-content h2 {
    /* Space-themed heading */
    font-family: 'Orbitron', sans-serif; /* Ensure Orbitron */
    color: #90c0ff; /* Light cyan/blue */
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 8px rgba(150, 200, 255, 0.7);
    font-size: 2.2rem; /* Slightly larger */
}

.modal-content p {
    margin-bottom: 1rem;
    font-family: sans-serif; /* Use a readable sans-serif for body text */
    color: #c0c0d0; /* Light grey/purple text */
}

.modal-content p strong {
    color: #a0d0ff; /* Highlight strong text */
}

.modal-content a {
    color: #87CEFA; /* LightSkyBlue */
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    font-weight: bold;
}

.modal-content a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #ffffff;
    text-decoration: none;
}

/* The Close Button */
.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.close-button:hover,
.close-button:focus {
    color: #fff;
    text-shadow: 0 0 10px #fff;
    text-decoration: none;
    cursor: pointer;
}

/* Optional: Add responsive adjustments for modal width */
@media (max-width: 600px) {
    .modal-content {
        width: 90%;
        padding: 20px;
    }
    .modal-content h2 {
        font-size: 1.8rem;
    }
}

/* Style adjustments needed after deconstruction */
body.deconstructed #initial-view {
    /* Styles to apply to initial-view after animation (e.g., pointer-events: none;) */
}

body.deconstructed .portfolio-section {
    margin-top: 0; /* Remove the margin once initial view is gone */
}

.portfolio-section h2 {
    margin-top: 0;
    color: #007bff;
}

/* Style for the dynamically created shapes */
.shape {
    position: absolute;
    /* Other properties (size, color, top, left) will be set inline */
}

/* Style for the new back button */
.overlay-button {
    display: block;
    margin: 2rem auto 0 auto; /* Add space above, center horizontally */
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #eee;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.overlay-button:hover {
    background-color: #0056b3;
}

/* Optional: Add responsive adjustments for modal width */
@media (max-width: 600px) {
    .modal-content {
        width: 90%;
    }
}

/* Tooltip Styles - Minor theme adjustments */
#tooltip {
    display: none;
    position: absolute;
    /* Darker blue, slightly more opaque */
    background-color: rgba(15, 25, 50, 0.9); /* Dark blue */
    color: #c0d8ff; /* Light blue text */
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 1.0rem; /* Slightly smaller */
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    font-family: 'Orbitron', sans-serif; /* Use Orbitron for tooltip */
    border: 1px solid rgba(100, 150, 255, 0.7); /* Match modal border */
    box-shadow: 0 0 10px rgba(100, 150, 255, 0.4); /* Subtle blue glow */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -110%); /* Keep positioning logic */
} 