/* File: careers/css/style.css - Page-specific styles extending shared/base styles */

/* Base from shared (Enhanced for careers page) */
:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-dark: #2c3e50;
    --text-light: #4a5568;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.2);
    --shadow-xl: 0 30px 80px rgba(30, 64, 175, 0.3);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 4vw, 20px);
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 1.5rem auto;
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.1), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.section-title:hover::before {
    opacity: 1;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80px; }
}

/* Button Styles (from shared) */
.btn {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    font-size: clamp(0.9rem, 2.5vw, 0.95rem);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    touch-action: manipulation;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: 200% 200%;
    color: var(--white);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}

.btn--primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    opacity: 0;
    border-radius: 50px;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
    animation: gradientShift 3s ease infinite;
}

.btn--primary:hover::after {
    opacity: 1;
}

.btn--secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
}

/* Advanced Animations */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes gradientShift {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
        opacity: 1;
    }
    50% { 
        transform: translateY(-30px) scale(1.1); 
        opacity: 0.8;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-on-scroll[data-delay="0.1s"] {
    transition-delay: 0.1s;
}

.animate-on-scroll[data-delay="0.2s"] {
    transition-delay: 0.2s;
}

.animate-on-scroll[data-delay="0.3s"] {
    transition-delay: 0.3s;
}

.animate-on-scroll[data-delay="0.4s"] {
    transition-delay: 0.4s;
}

.animate-on-scroll[data-delay="0.5s"] {
    transition-delay: 0.5s;
}

/* Header - Enhanced with Glassmorphism */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo__img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.logo__img:hover {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 4px 12px rgba(30, 64, 175, 0.3));
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav__link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

.cta-header {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: transform 0.3s ease;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

.mobile-toggle:hover {
    transform: rotate(90deg);
}

/* Hero for Careers */
.hero {
    position: relative;
    padding: clamp(100px, 15vw, 140px) 0 clamp(80px, 12vw, 120px);
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero--careers .hero__bg {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    z-index: -2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero--careers .hero__bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
    z-index: -1;
}

.hero__title {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 2px 10px rgba(0,0,0,0.2);
    color: var(--white);
    animation: fadeInUp 1s ease-out;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero__ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Why Join Us */
.why-join {
    padding: clamp(60px, 10vw, 100px) 0;
    background: var(--bg-light);
}

.why-join__subtitle {
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-bottom: 3rem;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.why-join-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.why-join-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(30, 64, 175, 0.1);
    position: relative;
    overflow: hidden;
}

.why-join-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.05), transparent);
    transition: left 0.6s ease;
}

.why-join-card:hover::before {
    left: 100%;
}

.why-join-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(30, 64, 175, 0.3);
}

.why-join-card__icon {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
}

.why-join-card__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.1), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.why-join-card:hover .why-join-card__icon {
    transform: scale(1.15) rotate(10deg);
    color: var(--secondary-color);
}

.why-join-card:hover .why-join-card__icon::after {
    opacity: 1;
    width: 120px;
    height: 120px;
}

.why-join-card h3 {
    margin-bottom: 1rem;
    color: #1e3a8a;
    font-size: 1.4rem;
}

.why-join-card p {
    color: var(--text-light);
}

/* Open Positions */
.open-positions {
    padding: clamp(60px, 10vw, 100px) 0;
}

.open-positions__subtitle {
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-bottom: 3rem;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.career-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(30, 64, 175, 0.1);
    position: relative;
    overflow: hidden;
}

.career-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.career-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(30, 64, 175, 0.3);
}

.career-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.career-card__icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    min-width: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.career-card:hover .career-card__icon {
    transform: scale(1.15) rotate(5deg);
    color: var(--secondary-color);
}

.career-card h3 {
    margin-bottom: 0.5rem;
    color: #1e3a8a;
    font-size: 1.4rem;
}

.career-type {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.career-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.career-features {
    list-style: none;
    margin-bottom: 2rem;
}

.career-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.career-features i {
    color: #10b981;
    min-width: 1rem;
}

.career-cta {
    text-align: center;
}

/* Application Process */
.application-process {
    padding: clamp(60px, 10vw, 100px) 0;
    background: var(--bg-light);
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.step:hover::after {
    transform: scaleX(1);
}

.step:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    transition: all 0.4s ease;
}

.step:hover .step-number {
    transform: scale(1.1) rotate(360deg);
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
}

/* CTA Banner (from shared) */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: var(--white);
    padding: clamp(60px, 10vw, 80px) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1), transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.1), transparent 50%);
    animation: float 10s ease-in-out infinite;
    pointer-events: none;
}

.cta-banner h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-banner__content {
    max-width: 600px;
    margin: 0 auto;
}

/* Footer (from shared) */
.footer {
    background: #1e3a8a;
    color: var(--white);
    padding: clamp(40px, 8vw, 50px) 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer__section h3 {
    margin-bottom: 1.5rem;
    color: #60a5fa;
}

.footer__section ul {
    list-style: none;
}

.footer__section ul li {
    margin-bottom: 0.8rem;
}

.footer__section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #cbd5e0;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: #60a5fa;
    transform: translateY(-2px);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero__ctas {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .why-join-grid,
    .careers-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .header__inner {
        flex-wrap: wrap;
    }

    .nav__list {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.98);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: var(--shadow-sm);
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav__list.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .cta-header {
        display: block;
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .why-join-grid,
    .careers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .hero {
        min-height: 70vh;
        padding: clamp(80px, 15vw, 100px) 0 clamp(60px, 10vw, 80px);
    }
}

@media (max-width: 480px) {
    .hero__subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

a:focus, button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 5px;
}