:root {
    /* Color Palette */
    --primary-950: #1e1b4b;
    --primary-900: #312e81;
    --primary-800: #3730a3;
    --primary-700: #4338ca;
    --primary-600: #4f46e5;

    --accent-950: #4a044e;
    --accent-900: #701a75;
    --accent-800: #86198f;
    --accent-700: #a21caf;
    --accent-600: #c026d3;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --text-main: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;

    /* Gradients */
    --grad-hero: linear-gradient(135deg, var(--primary-950) 0%, var(--primary-900) 50%, var(--accent-950) 100%);
    --grad-primary: linear-gradient(to right, var(--primary-700), var(--accent-600));
    --grad-light: linear-gradient(to bottom right, #fef2f2, #f5f3ff);

    /* Spacing & Sizes */
    --container-max: 1140px;
    --nav-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* 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);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.stat-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(162, 28, 175, 0.3);
}

.btn-hero-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    background: white;
    color: var(--primary-900);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.btn-hero-lg:hover {
    background: #fdf2f8;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
}

.btn-outline-lg:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* --- Navbar --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav-apply {
    padding: 0.6rem 1.25rem !important;
    font-size: 0.875rem !important;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    min-height: 100vh;
    background: var(--grad-hero);
    padding-top: calc(var(--nav-height) + 2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: white;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(192, 38, 211, 0.2);
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(79, 70, 229, 0.2);
}

.shape-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: rgba(192, 38, 211, 0.1);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-bottom: 4rem;
}

.badge-hiring {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(192, 38, 211, 0.2);
    border: 1px solid rgba(192, 38, 211, 0.3);
    border-radius: 9999px;
    color: #f5d0fe;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    color: #fce7f3;
    max-width: 800px;
    margin: 0 auto 1rem;
    font-weight: 300;
}

.hero-subtitle strong {
    color: white;
    font-weight: 700;
}

.hero-tagline {
    font-size: 1.125rem;
    color: #d8b4fe;
    margin-bottom: 3rem;
}

.company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.company-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 70px;
}

.company-link img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.company-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

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

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.stats-grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
}

.stat-item {
    padding: 0 1rem;
}

.stat-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 2rem;
    color: white;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: #d8b4fe;
    margin-top: 0.25rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    color: var(--accent-700);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    color: var(--text-main);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Group Companies --- */
#companies {
    padding: 6rem 0;
    background: var(--bg-light);
}

.companies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.company-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.company-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.card-header-accent {
    height: 8px;
    width: 100%;
}

.futryx-accent {
    background: var(--grad-primary);
}

.fortumars-accent {
    background: linear-gradient(to right, #1d4ed8, #3b82f6);
}

.cognithorz-accent {
    background: linear-gradient(to right, #0d9488, #06b6d4);
}

.card-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-logo-box {
    width: 100%;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid transparent;
}

.futryx-bg {
    background-color: #f5f3ff;
    border-color: #ede9fe;
}

.fortumars-bg {
    background-color: #eff6ff;
    border-color: #dbeafe;
}

.cognithorz-bg {
    background-color: #f0fdfa;
    border-color: #ccfbf1;
}

.card-logo-box img {
    max-height: 48px;
    width: auto;
}

.company-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.company-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    flex: 1;
}

.btn-company {
    width: 100%;
    gap: 0.5rem;
    padding: 0.875rem;
}

.futryx-btn {
    background: var(--grad-primary);
    color: white;
}

.fortumars-btn {
    background: linear-gradient(to right, #1d4ed8, #3b82f6);
    color: white;
}

.cognithorz-btn {
    background: linear-gradient(to right, #0d9488, #06b6d4);
    color: white;
}

/* --- Roles Section --- */
#roles {
    padding: 6rem 0;
}

.roles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.role-card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.role-header {
    background: var(--grad-primary);
    padding: 2.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.role-title {
    display: flex;
    flex-direction: column;
}

.role-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.role-title h3 {
    font-size: 1.75rem;
    margin: 0;
}

.tag {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-target {
    background: #fee2e2;
    color: #991b1b;
}

.tag-target::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
}

.role-body {
    padding: 2.5rem;
}

.role-group {
    margin-bottom: 2rem;
}

.role-group h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.role-group ul {
    list-style: none;
}

.role-group li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: #374151;
}

.role-group li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-600);
    font-weight: 900;
}

.salary-box {
    background: linear-gradient(to bottom right, #f5f3ff, #fdf2f8);
    border: 1px solid #ede9fe;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.salary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.75rem 0 1rem;
}

.tag-incentive {
    background: #fef3c7;
    color: #92400e;
}

.tag-target-sm {
    background: #fee2e2;
    color: #991b1b;
}

.salary-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.growth-note {
    font-size: 0.9375rem;
    color: var(--accent-800);
    font-weight: 600;
}

.btn-apply-role {
    width: 100%;
    background: var(--grad-primary);
    color: white;
    padding: 1.25rem;
    font-size: 1.125rem;
}

/* --- Why Join --- */
#why-join {
    padding: 6rem 0;
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.benefit-item {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    border-color: var(--accent-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.benefit-item h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.benefit-item p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* --- Apply Section --- */
#apply {
    padding: 8rem 0;
}

.apply-container {
    position: relative;
    background: var(--grad-hero);
    border-radius: var(--radius-xl);
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
    color: white;
}

.apply-bg-shapes {
    position: absolute;
    inset: 0;
}

.apply-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
}

.apply-badge {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fecaca;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 2rem;
}

.apply-container h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1.5rem;
}

.apply-container p {
    font-size: 1.125rem;
    color: #fce7f3;
    margin-bottom: 3rem;
}

.btn-apply-now {
    background: white;
    color: var(--primary-900);
    padding: 1.25rem 3rem;
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: var(--radius-lg);
    gap: 1rem;
}

.btn-apply-now:hover {
    background: #fdf2f8;
    transform: scale(1.05);
}

.shadow-glow-light {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.apply-footer-text {
    margin-top: 2rem;
    font-size: 0.875rem !important;
    color: #d8b4fe !important;
}

/* --- Footer --- */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 6rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.footer-logo {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(0.8);
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    font-size: 0.875rem;
}

/* --- Mobile Sticky --- */
.mobile-sticky {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 99;
    display: block;
}

.btn-mobile {
    width: 100%;
    padding: 1.1rem;
    font-size: 1.125rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* --- Responsive Layouts --- */

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }

    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .mobile-sticky {
        display: none;
    }
}

@media (min-width: 1024px) {
    .companies-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Fix for small phones and alignment issues */
@media (max-width: 480px) {
    .nav-apply {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1.5rem;
    }

    .company-link {
        width: 100%;
    }

    .divider {
        display: none;
    }

    .role-header {
        flex-direction: column;
        padding: 1.5rem !important;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .role-body {
        padding: 1.5rem !important;
    }
}