:root {
    --bg-color: #f5f5f5;
    --text-color: #1a1a1a;
    --primary: #E31837;
    --primary-hover: #C41230;
    --secondary: #8B0000;
    --accent: #FF6B6B;
    --card-bg: rgba(255, 255, 255, 0.92);
    --border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(227, 24, 55, 0.97);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 3px solid #C41230;
    box-shadow: 0 2px 12px rgba(227, 24, 55, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    color: white;
    z-index: 1001;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 1024px) {
    .nav-links {
        position: static;
        transform: none;
        gap: 1.5rem;
        margin-left: auto;
    }
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: white;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    color: white;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 1rem 2rem;
    background: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 0;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Resources Page */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.blog-post h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.blog-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.blog-section {
    margin-bottom: 2.5rem;
}

.blog-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.blog-section p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.blog-section ul {
    list-style-position: inside;
    color: #444;
    margin-bottom: 1rem;
}

.blog-section li {
    margin-bottom: 0.5rem;
}

/* Page Styles */
.content-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(to right, #E31837, #8B0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.challenge-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.iframe-container {
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* FAQ Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.faq-item {
    padding: 0 !important;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(227, 24, 55, 0.05);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: rgba(227, 24, 55, 0.03);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.5rem;
}

.faq-answer p {
    color: #555;
    line-height: 1.6;
}

/* Existing Styles */
#app {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Background Animations */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #E31837;
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #8B0000;
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #FF6B6B;
    top: 40%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

/* Views */
.view {
    display: none;
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 2rem 2rem;
    /* Added top padding to account for fixed navbar */
    animation: fadeIn 0.5s ease forwards;
    min-height: 100vh;
}

.view.active-view {
    display: flex;
    flex-direction: column;
}

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

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

.fade-in {
    animation: fadeIn 0.4s ease;
}

/* Landing Page */
#landing-page {
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: none;
    padding: 0;
}

.campus-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: url('../misc/assets/campus.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.82);
}

.campus-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg,
            rgba(227, 24, 55, 0.62) 0%,
            rgba(139, 0, 0, 0.5) 50%,
            rgba(227, 24, 55, 0.38) 100%);
}

.hero {
    max-width: 1200px;
    padding: 2rem;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(to right, #ffffff, #ffd0d8, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3));
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(227, 24, 55, 0.4);
    text-decoration: none;
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px -5px rgba(139, 0, 0, 0.5);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(227, 24, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(227, 24, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(227, 24, 55, 0);
    }
}

.secondary-btn {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-decoration: none;
}

.secondary-btn:hover {
    background: rgba(227, 24, 55, 0.08);
}

/* Quiz Page */
#quiz-page {
    justify-content: center;
}

.quiz-container {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.back-btn {
    background: rgba(227, 24, 55, 0.08);
    border: 1.5px solid var(--primary);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(227, 24, 55, 0.15);
    transform: scale(1.1);
}

.progress-bar {
    flex-grow: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.5s ease;
}

.question-counter {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    line-height: 1.4;
    color: var(--text-color);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    background: rgba(227, 24, 55, 0.03);
    border: 1.5px solid rgba(227, 24, 55, 0.2);
    color: var(--text-color);
    padding: 1.25rem;
    font-size: 1.1rem;
    border-radius: 12px;
    text-align: left;
}

.option-btn:hover {
    background: rgba(227, 24, 55, 0.08);
    border-color: var(--primary);
    transform: translateX(10px);
}

/* Loader */
#loading-page {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(227, 24, 55, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Results */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.traits-section {
    margin-bottom: 3rem;
}

.traits-section h3,
.jobs-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.traits-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trait-bar-wrapper {
    width: 100%;
}

.trait-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

.trait-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.trait-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 6px;
    transform-origin: left;
    animation: fillBar 1.5s ease forwards;
}

.trait-bar-wrapper {
    animation: slideIn 0.4s ease forwards;
    opacity: 0;
}

.trait-bar-wrapper:nth-child(1) {
    animation-delay: 0s;
}

.trait-bar-wrapper:nth-child(2) {
    animation-delay: 0.1s;
}

.trait-bar-wrapper:nth-child(3) {
    animation-delay: 0.2s;
}

.trait-bar-wrapper:nth-child(4) {
    animation-delay: 0.3s;
}

.trait-bar-wrapper:nth-child(5) {
    animation-delay: 0.4s;
}

.trait-bar-wrapper:nth-child(6) {
    animation-delay: 0.5s;
}

.trait-bar-wrapper:nth-child(7) {
    animation-delay: 0.6s;
}

.trait-bar-wrapper:nth-child(8) {
    animation-delay: 0.7s;
}

.trait-bar-wrapper:nth-child(9) {
    animation-delay: 0.8s;
}

.trait-bar-wrapper:nth-child(10) {
    animation-delay: 0.9s;
}

.trait-bar-wrapper:nth-child(11) {
    animation-delay: 1s;
}

.trait-bar-wrapper:nth-child(12) {
    animation-delay: 1.1s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

@keyframes fillBar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1200px) {

    #results-page .jobs-grid,
    #jobs-page .jobs-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #results-page .content-container,
    #jobs-page .content-container {
        max-width: 1400px;
        width: 95%;
    }

    .view {
        max-width: 1600px;
    }
}

.search-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    flex: 2;
    min-width: 250px;
    background: rgba(0, 0, 0, 0.03);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    border-color: var(--primary);
    background: white;
}

.filter-select {
    flex: 1;
    min-width: 180px;
    background: rgba(0, 0, 0, 0.03);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: var(--primary);
}

.filter-select option {
    background: white;
    color: var(--text-color);
}

.job-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(227, 24, 55, 0.15);
    border-color: rgba(227, 24, 55, 0.3);
}

.job-match-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.job-company {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.job-salary {
    font-weight: 600;
    color: var(--text-color);
}

.job-link,
.job-id-btn {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.job-link:hover,
.job-id-btn:hover {
    color: var(--primary-hover);
    transform: scale(1.05);
}

.trait-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.trait-tag {
    background: rgba(227, 24, 55, 0.08);
    color: var(--primary);
    border: 1px solid rgba(227, 24, 55, 0.2);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: capitalize;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-container { justify-content: space-between; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .quiz-container { padding: 1.5rem; border-radius: 16px; }
    .question-text { font-size: 1.25rem; margin-bottom: 2rem; }
    .option-btn { padding: 1rem; font-size: 1rem; }
    .results-header h2 { font-size: 1.5rem; }
    .traits-section, .glass-card { padding: 1.25rem; }
}

@media (min-width: 1400px) {
    .hero {
        max-width: 1400px;
    }

    .hero h1 {
        font-size: 6rem;
    }
}

@keyframes ripple-expand {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.45;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.touch-ripple {
    position: fixed;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 24, 55, 0.55) 0%, rgba(227, 24, 55, 0) 70%);
    pointer-events: none;
    z-index: 9999;
    animation: ripple-expand 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@media (hover: none) {
    .option-btn:hover {
        background: rgba(227, 24, 55, 0.03);
        border-color: rgba(227, 24, 55, 0.2);
        transform: none;
    }

    .primary-btn:hover {
        transform: none;
        box-shadow: 0 10px 25px -5px rgba(227, 24, 55, 0.4);
    }

    .secondary-btn:hover {
        background: transparent;
    }

    .back-btn:hover {
        background: rgba(227, 24, 55, 0.08);
        transform: none;
    }

    .job-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        border-color: var(--border);
    }

    .job-link:hover,
    .job-id-btn:hover {
        color: var(--primary);
        transform: none;
    }

    .faq-question:hover {
        background: transparent;
    }

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

    .nav-link:hover::after {
        width: 0;
    }

    .option-btn:active {
        background: rgba(227, 24, 55, 0.12);
        border-color: var(--primary);
        transform: scale(0.98);
        transition: transform 0.1s ease, background 0.1s ease;
    }

    .primary-btn:active {
        transform: scale(0.96);
        box-shadow: 0 6px 16px -4px rgba(227, 24, 55, 0.4);
        transition: transform 0.1s ease, box-shadow 0.1s ease;
    }

    .secondary-btn:active {
        background: rgba(227, 24, 55, 0.1);
        transition: background 0.1s ease;
    }

    .back-btn:active {
        background: rgba(227, 24, 55, 0.2);
        transform: scale(0.92);
        transition: transform 0.1s ease, background 0.1s ease;
    }

    .job-card:active {
        transform: scale(0.98);
        box-shadow: 0 4px 12px rgba(227, 24, 55, 0.12);
        transition: transform 0.1s ease, box-shadow 0.1s ease;
    }

    .faq-question:active {
        background: rgba(227, 24, 55, 0.06);
        transition: background 0.1s ease;
    }
}