/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

:root {
    --primary: #4CAF50;
    --primary-hover: #45a049;
    --glass-bg: rgba(18, 18, 24, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --font-main: 'Outfit', sans-serif;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    height: 100%;
    background: black;
    color: var(--text-main);
}

/* Background Space Image (Shared) */
.space-bg::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/space2.jpg') center center / cover no-repeat;
    z-index: -1;
    opacity: 0.6;
}

/* Menu */
.menu {
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 10;
}

.menu a {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 20px;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.menu a:hover {
    color: white;
}

.menu button {
    background: none;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    margin-right: 20px;
}

.menu button:hover {
    color: white;
}

.logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}

/* Logo */
.logo-link {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10;
}

.logo {
    width: 40px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 1;
}

/* Glass Card Utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
}

.glass-card.resume-mode {
    background: rgba(18, 18, 24, 0.75);
}

/* Headlines */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
    width: 100%;
}

input,
select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: inherit;
}

input:focus,
select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: white;
    color: black;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(255, 255, 255, 0.3);
    background: #f0f0f0;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

/* Feedback Messages */
.feedback-msg {
    font-size: 0.85rem;
    margin-top: 8px;
    min-height: 1.2em;
    transition: color 0.3s ease;
}
.feedback-msg.error {
    color: #ff6b6b;
}
.feedback-msg.success {
    color: #69db7c;
}

/* Resume Styles */
.resume-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.resume-content {
    /* Removed background to blend with transparent menu */
    padding: 20px;
    text-align: left;
    color: var(--text-main);
}

.resume-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: none;
}

.resume-name {
    font-size: 3rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-main);
    font-weight: 600;
}

.resume-contact-info {
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.resume-contact-info a {
    color: var(--text-main);
    text-decoration: none;
    position: relative;
}

.resume-contact-info a:hover {
    text-decoration: underline;
}

.resume-section {
    margin-bottom: 30px;
}

.resume-section-title {
    font-size: 1.4rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 5px;
    color: var(--text-main);
    letter-spacing: 1px;
    font-weight: 600;
}

.resume-item {
    margin-bottom: 20px;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.resume-item-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

.resume-item-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: right;
    min-width: 120px;
}

.resume-item-subtitle {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-main); 
}

.resume-item-location {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.resume-list {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
    margin-top: 5px;
}

.resume-list li {
    margin-bottom: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e0e0e0;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.skills-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.skill-category {
    font-weight: 600;
    color: var(--text-main);
    margin-right: 5px;
}

@media (max-width: 768px) {
    .resume-content {
        padding: 10px;
    }
    .resume-name {
        font-size: 2rem;
    }
    .resume-item-header {
        flex-direction: column;
    }
    .resume-item-date {
        text-align: left;
        margin-bottom: 5px;
    }
    .resume-item-subtitle {
        flex-direction: column;
    }
}
