/* ============================================
   Careers 2030+ - Unique White & Blue Design
   ============================================ */

/* Design Tokens */
:root {
    /* Core Colors - White & Blue */
    --white: #ffffff;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;

    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Accent Colors */
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-purple: #8b5cf6;

    /* Semantic */
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-50);
    --bg-card: var(--white);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-400);
    --border-color: var(--gray-200);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-700) 100%);
    --gradient-hero: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-800) 100%);
    --gradient-light: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-blue: 0 10px 40px -10px rgba(59, 130, 246, 0.3);

    /* Typography */
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Sizing */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;

    /* New Global Variables */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary: #64748b;
    --accent: #0ea5e9;
    --background: #ffffff;
    --surface: #f8fafc;
    --text-dark: #0f172a;
    --text-base: #334155;
    --text-light: #64748b;
    --danger: #ef4444;
    --success: #10b981;
    --max-width: 1280px;
    --nav-height: 70px;
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-base);
    background-color: #ffffff;
    /* Clean White */
    background-image: none;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

body.is-loading {
    opacity: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.brand-icon {
    font-size: 1.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.brand-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-base);
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 6rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    animation: slideInRight 0.8s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.title-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-description p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--gray-300);
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* Hero Visual - Orbital Animation */
.hero-visual {
    position: relative;
    height: auto;
    min-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.orbit-container {
    position: relative;
    width: 450px;
    height: 450px;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.orbit-1 {
    width: 250px;
    height: 250px;
    border-style: dashed;
    animation: spin 20s linear infinite;
}

.orbit-2 {
    width: 350px;
    height: 350px;
    border-color: rgba(14, 165, 233, 0.1);
    animation: spin 30s linear infinite reverse;
}

.orbit-3 {
    width: 450px;
    height: 450px;
    border-width: 1px;
    opacity: 0.5;
    animation: spin 40s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    z-index: 10;
    filter: drop-shadow(0 10px 20px rgba(37, 99, 235, 0.2));
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    animation: iconFloat 4s ease-in-out infinite;
}

.icon-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.icon-2 {
    top: 20%;
    right: 20%;
    animation-delay: 1s;
}

.icon-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.icon-4 {
    bottom: 20%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    background: var(--gradient-primary);
    padding: 3rem 2rem;
}

.stats-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Career Cards Section
   ============================================ */
.careers-section {
    padding: 6rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Career Card */

.career-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    /* Remove padding to let image flush with top */
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-image-container {
    height: 160px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.career-card:hover .card-image {
    transform: scale(1.05);
}

.card-content-wrapper {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.career-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--category-color, var(--primary)), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    /* Ensure it doesn't block clicks */
    z-index: 10;
}

.career-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.career-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-50);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-title-section {
    flex: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.card-meta {
    font-size: 0.875rem;
    color: var(--blue-600);
    font-weight: 500;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 20;
    /* Ensure clickable above card link */
}

.card-tag {
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.card-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

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

.card-link {
    color: var(--blue-600);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    color: var(--blue-700);
}

/* ============================================
   Risk Section
   ============================================ */
.risk-section {
    background: var(--gray-50);
    padding: 4rem 2rem;
}

.risk-container {
    max-width: 1200px;
    margin: 0 auto;
}

.risk-header {
    text-align: center;
    margin-bottom: 2rem;
}

.risk-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.risk-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.risk-subtitle {
    color: var(--text-secondary);
}

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

.risk-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-orange);
    border-radius: var(--border-radius-sm);
    padding: 1.25rem;
}

.risk-card-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.risk-card-industry {
    font-size: 0.75rem;
    color: var(--accent-orange);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.risk-card-reason {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    padding: 5rem 2rem;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.feature-icon {
    font-size: 1.25rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--gray-900);
    padding: 2rem;
    text-align: center;
}

.footer-text {
    color: var(--white);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.footer-credits {
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        padding-top: 6rem;
    }

    .hero-visual {
        display: none;
    }

    .hero-cta {
        justify-content: center;
    }

    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 50px;
        height: 1px;
    }

    .careers-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   Research Section
   ============================================ */
.research-section {
    padding: 6rem 1.5rem;
    background: var(--white);
    overflow: hidden;
}

.research-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.research-content {
    order: 1;
}

.research-visual {
    order: 2;
    position: relative;
}

.research-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.research-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.research-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.research-text p {
    margin-bottom: 1.5rem;
}

.research-text p:last-child {
    margin-bottom: 0;
}

.research-img-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 8px solid var(--white);
    background: var(--gray-100);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.research-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.research-img-box:hover .research-img {
    transform: scale(1.05);
}

.research-floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 280px;
}

.badge-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.badge-text {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.3;
}

@media (max-width: 968px) {
    .research-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .research-visual {
        order: 1;
    }

    .research-content {
        order: 2;
    }

    .research-title {
        font-size: 2rem;
    }
}

/* Top Universities List */
.universities-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
    /* Space for scrollbar */
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Custom Scrollbar for Universities */
.universities-content::-webkit-scrollbar {
    width: 6px;
}

.universities-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.universities-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.universities-content::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}