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

:root {
    --teal: #06b6d4;
    --purple: #7c3aed;
    --green: #10b981;
    --darker-blue: #0f172a;
    --dark-blue: #1e293b;
    --off-white: #f1f5f9;
    --offer-white: #e0e0e0;
    --dark-purple: #151a54;
    --light-purple: #c2a5f3;
    --dark-teal: #197989;
}

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

body {
    background-image: url("/assets/images/space_background_horizontal.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: fixed;
    min-height: 100vh;
    margin: 0;
    font-family: 'Space Mono', monospace;
}

a {
    text-decoration: none;
}  

.map-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    z-index: 100;
    background: linear-gradient(180deg, var(--darker-blue) 10%, var(--dark-purple) 70%, transparent 100%);
    backdrop-filter: blur(10px);
    /*might get rid of this border*/
    border-bottom: 1px solid var(--dark-purple);
}

.map-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-path {
    fill: none;
    stroke: var(--teal);
    stroke-width: 3;
    stroke-dasharray: 10, 10;
    stroke-linecap: round;
    opacity: 0.6;
    animation: dashMove 60s linear infinite
}

@keyframes dashMove {
    to { stroke-dashoffset: -1000;}
}

.map-stops-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 1200px;
    margin: 0 auto;
}

.map-stop {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    filter: grayscale(90%) brightness(0.5);
    transform-origin: center;
    z-index: 10;
    color: var(--teal);
    transform: translate(-50%, -50%);
}

.map-stop img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
    pointer-events: none;
}

.map-stop.visited {
    filter: grayscale(0%) brightness(0.6);
    animation: pulse 2s ease-in-out infinite;
}

.map-stop.current {
    filter: grayscale(0%) brightness(1) drop-shadow(0 0 20px currentColor);
    transform: translate(-50%, -50%) scale(1.3);
}

.map-stop:hover {
    transform: translate(-50%, -50%) scale(1.5);
    filter: grayscale(0%) brightness(1.5) drop-shadow(0 0 15px currentColor);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.stop-home { left: 5%; top: 55%; }
.stop-bio { left: 20%; top: 25%; }
.stop-timeline { left: 35%; top: 67%; }
.stop-projects { left: 54%; top: 42%; }
.stop-skills { left: 75%; top: 55%; }
.stop-contact { left: 96%; top: 33%; }

.map-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-blue);
    color: var(--off-white);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    font-weight: bold;
    box-shadow: 0 4px 15px var(--dark-blue);
}

.map-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--dark-blue);
}

.map-stop:hover .map-tooltip {
    opacity: 1;
}

.spaceship-indicator {
    position: absolute;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 20;
    transform-origin: center;
    left: 3%;
    top: 25%;
}

.spaceship-indicator img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px var(--purple));
    animation: float 3s ease-in-out infinite;
}

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

.mission-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    color: var(--teal);
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--teal);
}

.mission-subtitle {
    font-size: 16px;
    color: var(--offer-white);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.main-character {
    font-size: 100px;
    height: 15%;
    width: 15%;
    animation: characterFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--offer-white));
}

.bio-character {
    border-radius: 50%;
    border: 4px solid var(--light-purple);
    width: 250px;
    height: 250px;
    object-fit: cover;
    animation: none !important;
    filter: none !important;
}

.bio-character:hover {
    transform: none !important;
    filter: none !important;
}

@keyframes characterFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px); }
}

.main-content {
    margin-top: 200px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.story-screen {
    background: var(--darker-blue);
    padding: 50px;
    box-shadow: 0 0 30px var(--dark-blue);
    min-height: 500px;
    animation: fadeIn 0.5s;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.story-text {
    font-size: 18px;
    line-height: 1.9;
    color: var(--off-white);
}

.highlight {
    color: var(--light-purple);
    font-weight: bold;
    text-shadow: 0 0 3px var(--purple);
}

.transmission {
    font-size: 12px;
    color: var(--color-accent);
    margin-bottom: 15px;
    animation: blink 3s infinite;
    font-weight: bold;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.4; }
}

.button-space {
    background: linear-gradient(135deg, var(--dark-teal) 0%, var(--dark-teal) 100%);
    border: 3px solid var(--darker-blue);
    color: var(--off-white);
    padding: 20px 60px;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.button-space::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--teal);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.button-space:hover::before {
    width: 300px;
    height: 300px;
}

.button-space:hover {
    border-color: var(--off-white);
    box-shadow: 0 0 30px var(--dark-teal);
    transform: translateY(-5px);
    color: var(--off-white);
}

.button-space span {
    position: relative;
    z-index: 1;
}

.other-button {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--dark-purple) 100%);
    border: 2px solid var(--dark-purple);
    color: var(--off-white);
    padding: 15px 35px;
    margin: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.other-button:hover {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple) 100%);
    box-shadow: 0 0 25px var(--purple);
    transform: translateY(-3px);
    color: #fff;
}

/* Timeline */

.timeline-container {
    position: relative;
    padding-left: 40px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--light-purple);
    border-radius: 2px;
}

.timeline-item {
    background: var(--dark-blue);
    padding: 20px;
    transition: all 0.3s;
    position: relative;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 2.5s ease-out, 
                transform 2.5s ease-out,
                background 0.2s ease,
                box-shadow 0.2s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 2.5s ease-out, 
                transform 2.5s ease-out,
                background 0.2s ease,
                box-shadow 0.2s ease;
}

.timeline-item.hidden {
    opacity: 0;
    transform: translateY(-50px);
}

.timeline-item.animation-complete {
    transition: opacity 2.5s ease-out,
                transform 0.2s ease,
                background 0.2s ease,
                box-shadow 0.2s ease;
}

.timeline-asteroid {
    position: absolute;
    left: -42px;
    top: 10px;
    width: 50px;
    height: 50px;
    z-index: 1;
}

.timeline-item:hover {
    background: var(--dark-teal);
    transform: translateY(0) scale(1.05);
}

.timeline-name {
    font-family: 'Orbitron', sans-serif;
    color: var(--offer-white);
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: bold;
}

.timeline-date {
    font-family: 'Orbitron', sans-serif;
    color: var(--offer-white);
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: bold;
}

.timeline-desc {
    color: var(--off-white);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.timeline-skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.timeline-skill {
    background: var(--light-purple);
    color: var(--darker-blue);
    border-radius: 8px;
    padding: 5px 30px;
    font-size: 13px;
    border: 1px solid var(--off-white);
    font-weight: bold;
}

/* Projects */
.project-card {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--darker-blue) 100%);
    border: 2px solid var(--teal);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-card:hover {
    border-color: var(--offer-white);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
    transform: translateY(-8px);
}

.project-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: var(--offer-white);
    margin-bottom: 12px;
    font-weight: bold;
}

.project-desc {
    font-size: 15px;
    color: var(--off-white);
    margin-bottom: 15px;
    line-height: 1.6;
}

.tech-tag {
    background: var(--light-purple);
    color: var(--darker-blue);
    border-radius: 8px;
    padding: 5px 30px;
    font-size: 13px;
    border: 1px solid var(--off-white);
    font-weight: bold;
}

.project-skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.project-image {
    max-width: 300px;
    max-height: 300px;
    margin-bottom: 15px;
    border: 3px solid var(--light-purple);
    border-radius: 10px;
}

/* Skills */

.skills-title-img {
    max-width: 100px;
    max-height: 100px;
}

.skill-item {
    background: var(--darker-blue);
    border: 2px solid var(--dark-teal);
    border-radius: 50%;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    max-width: 200px;
}

.skill-item:hover {
    border-color: var(--offer-white);
    box-shadow: 0 0 20px var(--dark-teal);
    transform: scale(1.05);
    background-color: var(--dark-teal);
}

.skill-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.skill-name {
    font-family: 'Orbitron', sans-serif;
    color: var(--offer-white);
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: bold;
    overflow-wrap: break-word;
}

.skill-level {
    font-size: 12px;
    color: var(--off-white);
}

/* Contact */
.contact-card {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--darker-blue) 100%);
    border: 2px solid var(--off-white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.contact-card img {
    height: 100px;
}

.contact-card:hover {
    background: var(--dark-teal);
    transform: scale(1.08);
    box-shadow: 0 8px 25px var(--teal);
}

.contact-icon {
    font-size: 45px;
    margin-bottom: 10px;
}

.contact-label {
    font-family: 'Orbitron', sans-serif;
    color: var(--offer-white);
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-value {
    font-size: 13px;
    color: var(--off-white);
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.input-message-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.input-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.input-field {
    background: var(--dark-purple);
    border: 2px solid var(--teal);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--off-white);
    font-size: 15px;
    transition: all 0.3s;
    font-family: 'Orbitron', sans-serif;
}

.input-field:focus {
    outline: none;
    border-color: var(--offer-white);
    box-shadow: 0 0 10px var(--teal);
}

.input-field::placeholder {
    color: var(--off-white);
    opacity: 0.7;
}

.message-field {
    flex: 1;
    min-height: 200px;
    resize: vertical;
}

.email-send-button {
    font-size: 15px;
    padding: 15px 30px;
    align-self: flex-end;
}


/* Custom Alert */
.custom-alert {
    display: none;
    position: fixed;
    z-index: 101;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--darker-blue) 100%);
    border: 3px solid var(--light-purple);
    border-radius: 15px;
    padding: 30px 40px;
    box-shadow: 0 0 50px var(--light-purple);
    text-align: center;
    min-width: 400px;
}

.custom-alert.active {
    display: block;
    animation: fadeIn 0.3s;
}

.alert-overlay {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.alert-overlay.active {
    display: block;
}

.custom-alert h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--teal);
    margin-bottom: 15px;
    font-size: 24px;
}

.custom-alert p {
    color: var(--off-white);
    margin-bottom: 20px;
    font-size: 16px;
}

.custom-alert button {
    background: var(--dark-teal);
    border: 2px solid var(--teal);
    color: var(--off-white);
    padding: 10px 30px;
    font-family: 'Orbitron', sans-serif;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

.custom-alert button:hover {
    background: var(--teal);
    box-shadow: 0 0 15px var(--teal);
}

/* Footer */
footer {
    background-color: var(--darker-blue);
    border-color: var(--teal);
    border-radius: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.footer-icon {
    height: 50px;
}

.footer-icon:hover {
    filter: drop-shadow(0 0 5px var(--light-purple));
}

.footer-icon-group {
    text-align: right;
}

footer p {
    color: var(--light-purple);
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    margin: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Photo Gallery Modal */
.photo-gallery {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.photo-gallery.active {
    display: flex !important;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.8s;
}

.gallery-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.close-button {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
    background: none;
    border: none;
}

.close-button:hover {
    color: var(--offer-white);
}

.gallery-image {
    max-width: 100%;
    max-height: 70vh;
    border: 3px solid var(--offer-white);
    border-radius: 10px;
    box-shadow: 0 0 15px var(--light-purple);
    object-fit: contain;
    animation: photoFadeIn 0.4s;
}

@keyframes photoFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.prev-button, .next-button {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-teal);
    border: 2px solid var(--off-white);
    color: #fff;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: bold;
    z-index: 1001;
}

.prev-button:hover, .next-button:hover {
    background: var(--teal);
    box-shadow: 0 0 20px var(--teal);
}

.prev-button {
    left: 20%;
}

.next-button {
    right: 20%;
}

.photo-caption {
    margin-top: 20px;
    color: var(--off-white);
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.photo-counter {
    margin-top: 10px;
    color: var(--off-white);
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

@media screen and (max-width: 1000px) {
    .main-character {
        height: 50%;
        width: 50%;
    }
    .map-container {
        height: 150px;
    }
    
    .map-stop {
        font-size: 32px;
    }
    
    .stop-home { left: 5%; top: 50%; }
    .stop-bio { left: 20%; top: 30%; }
    .stop-timeline { left: 35%; top: 70%; }
    .stop-projects { left: 52%; top: 25%; }
    .stop-skills { left: 70%; top: 65%; }
    .stop-contact { left: 88%; top: 40%; }
    
    .spaceship-indicator {
        font-size: 28px;
    }
    
    .main-content {
        margin-top: 170px;
    }
    
    .story-screen {
        padding: 30px 25px;
    }
    
    .mission-title {
        font-size: 32px;
    }
    
    .story-text {
        font-size: 16px;
    }
    
    .button-space {
        padding: 15px 40px;
        font-size: 16px;
    }
    
    .prev-button, .next-button {
        font-size: 24px;
        padding: 10px 15px;
    }
    
    .prev-button {
        left: 10px;
    }
    
    .next-button {
        right: 10px;
    }
    
    .gallery-image {
        max-height: 60vh;
    }

    .input-message-container {
        flex-direction: column;
    }
    
    .message-field {
        min-height: 150px;
    }

    .skill-name {
        font-size: 12px;
    }
}