/* --- CSS VARIABLES & THEMES --- */
:root {
    --bg-color: #ffffff;
    --text-color: #1f2937;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --card-bg: #d7d9dc;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --accent-color: #10b981;
    --brand-yellow: #f59e0b;
    --bg-tint-yellow: #fffdf4;
    --brand-blue: #0f172a;
    --border-main: #e2e8f0;
    --transition-speed: 0.3s;
    --shadow-default: 0 4px 12px -2px rgba(15, 23, 42, 0.06);
    --shadow-popup: 0 20px 35px -10px rgba(15, 23, 42, 0.18);
    --animation-curve: cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --nav-bg: rgba(15, 23, 42, 0.85);
    --card-bg: #1e293b;
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --bg-tint-yellow: #151b2c;
    --brand-blue: #38bdf8;
    --border-main: #1e293b;
    --shadow-default: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-popup: 0 25px 40px -12px rgba(0, 0, 0, 0.7);
}

/* --- GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

/* --- NAVIGATION BAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Dynamic Brand Name Logic */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 10%;
    color: var(--primary-color);
    text-decoration: none;
}

.logo .brand-text::before {
    content: "BenchStaffHire";

}

.nav-right {
    display: flex;
    align-items: center;
    margin-right: 11%;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;

    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION WITH BACKGROUND SLIDES --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnimation 15s infinite;
}

/* Free placeholder professional workspace backgrounds */
.bg1 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../gallary_card_img/images/s1.jpg');
    animation-delay: 0s;
}

.bg2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../gallary_card_img/images/s2.jpg');
    animation-delay: 5s;
}

.bg3 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../gallary_card_img/images/s3.jpg');
    animation-delay: 10s;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #ffffff;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* --- CREATIVE BLOCKS (SCROLL REVEAL) --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.culture-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    transition: transform var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.split-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 5rem;
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
}

.split-content {
    flex: 1;
}

.split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.split-image {
    flex: 1;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    height: 300px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* --- CTA SECTION --- */
.cta-section {
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 6rem 2rem;
}


/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: black;

}

.footerContainer {
    width: 100%;
    padding: 70px 30px 20px;
}

.icons {
    display: flex;
    justify-content: center;
    margin-left: 0%;
    padding-bottom: 10px;


}

.icons a {
    display: flex;
    align-items: center;
    border-radius: 50%;
    padding-left: 20px;
    justify-content: space-between;
    cursor: pointer;
}

.footerNav {
    margin: 30px 0;
}

.footerNav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
}

.footerNav ul li a {
    color: white;
    margin: 10px;
    text-decoration: none;
    font-size: 1.5em;
    opacity: 0.7;
    transition: 0.5s ease;

}

.footerNav ul li a:hover {
    opacity: 1;
    color: orange;
}



.footerBottom {
    background-color: var(--card-bg);
    max-height: 90px;
    padding: 10px;
    text-align: center;
}

.footerBottom p {
    color: var(--text-color);
    margin: 0%;
}

.designer {
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    margin: 0px 5px;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes slideAnimation {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    8% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    41% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE DESIGN (TABLETS & MOBILE) --- */
@media (max-width: 968px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .split-block {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
}

@media (max-width: 768px) {

    /* Swap company name to BSH on Mobile View */
    .logo .brand-text::before {
        content: "BSH";
    }

    /* Mobile Nav Layout Setup */
    .menu-btn {
        display: block;
        order: 1;
    }

    .logo {
        order: 2;
        position: absolute;
        left: 40%;
        transform: translateX(-50%);
    }

    .nav-right {
        order: 3;
    }

    /* Dropdown Configuration (Slides down from top) */
    .nav-links {
        position: fixed;
        top: -300px;
        /* Hidden above the navbar viewport */
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        align-items: flex-start;
        /* Menu content left-aligned */
        transition: top 0.4s ease-in-out;
        z-index: 999;
    }

    /* Activated active state triggers smooth drop-down */
    .nav-links.active {
        top: 60px;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .footerNav ul {
        flex-direction: column;
    }

    .footerNav ul li {
        width: 100%;
        text-align: center;
        margin: 10px;
    }

    .socialIcons a {
        padding: 8px;
        margin: 4px;
    }
}



/* --- BLOCK SETUP --- */
.career-promo-section {
    width: 100%;
    padding: 3.5rem 1.5rem;
    background-color: var(--bg-color);
    box-sizing: border-box;
    overflow: hidden;
    transition: background-color 0.3s linear;
}

.career-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 1.3fr;
    gap: 2.5rem;
    align-items: stretch;
}

/* --- SCROLL REVEAL --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    transition: opacity 0.8s var(--animation-curve), transform 0.8s var(--animation-curve);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- 3D ENGINE WRAPPERS --- */
.dynamic-3d-card {
    perspective: 1200px;
}

.card-inner {
    position: relative;
    height: 100%;
    padding: 2.5rem 1.75rem 2rem 1.75rem;
    border-radius: 14px;
    background: var(--bg-color);
    box-shadow: var(--shadow-default);
    transform-style: preserve-3d;
    box-sizing: border-box;
    will-change: transform, box-shadow;
    transition: transform 0.5s var(--animation-curve), box-shadow 0.5s var(--animation-curve);
}

.card-inner>* {
    transform: translateZ(25px);
}

.bg-accent-tint {
    background-color: var(--bg-tint-yellow);
    border: 1px solid rgba(245, 158, 11, 0.12);
}

/* --- BADGES / HEADERS --- */
.card-header,
.container-header {
    position: absolute;
    top: -15px;
    left: 20px;
    padding: 0.45rem 1.25rem;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.75px;
    border-radius: 6px;
    transform: translateZ(40px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.badge-yellow {
    background-color: var(--brand-yellow);
    color: #000;
}

.badge-blue {
    background-color: var(--brand-blue);
    color: var(--bg-color);
}

/* --- LEFT SIDE: LIST --- */
.apply-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
    height: 100%;
}

.apply-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}

.icon-check {
    color: var(--brand-yellow);
    font-size: 1.15rem;
    margin-top: 2px;
}

/* --- CENTER: BRAND HERO WITH LOGO --- */
.career-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-logo-container {
    margin-bottom: 1.25rem;
    animation: floaty 4.5s ease-in-out infinite;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hero-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-yellow);
    line-height: 1.4;
    margin: 0;
}

.hero-highlight {
    color: var(--text-color);
    font-size: 1.35rem;
}

/* --- RIGHT SIDE: COMPONENTIZED HIGHLIGHT TILE GRID --- */
.highlights-container-wrapper {
    position: relative;
    border: 2px solid var(--border-main);
    border-radius: 16px;
    padding: 2.5rem 1.25rem 1.25rem 1.25rem;
    box-sizing: border-box;
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    height: 100%;
}

.tile-inner {
    border: 1px solid var(--border-main);
    padding: 1.75rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    border-radius: 12px;
}

.cell-icon {
    font-size: 1.75rem;
    color: var(--brand-blue);
    transform: translateZ(30px);
}

.tile-inner p {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
    transform: translateZ(20px);
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes floaty {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

/* --- RESPONSIVE ADAPTABILITY --- */
@media (max-width: 1024px) {
    .career-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 1.5rem;
    }

    .career-hero {
        grid-column: span 2;
        order: -1;
        flex-direction: row;
        gap: 2rem;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .career-container {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }

    .career-hero {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }
}