:root {
    color-scheme: light;
    --color-brand-blue: #1e40af;
    --color-brand-dark: #18181b;
    --color-brand-gray: #f4f4f5;
}

body {
    background: #ffffff;
    color: #18181b;
    font-feature-settings: "ss01", "ss02", "cv01", "cv02";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 64px;
}

@media (min-width: 640px) {
    body {
        padding-top: 80px;
    }
}

@media (min-width: 1024px) {
    body {
        padding-top: 80px;
    }
}

/* Header Scroll Effects */
#main-header {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease,
                box-shadow 0.3s ease,
                border-bottom-color 0.3s ease;
    will-change: transform, opacity;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

#main-header.scrolled {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Ensure header is always on top */
#main-header {
    z-index: 9999 !important;
}

/* Mobile Menu Slide Animation */
#mobile-menu {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
}

/* Icon Toggling */
#mobile-menu-toggle[aria-expanded="true"] .mobile-menu-open {
    display: none;
}

#mobile-menu-toggle[aria-expanded="false"] .mobile-menu-close {
    display: none;
}

/* Corporate Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.015em;
    font-weight: 700;
    color: #18181b;
}

/* Modern Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sleek-border {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Animations */
.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

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

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

/* Hero Section Enhancements */
.hero-text-content {
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-image-container {
    animation: heroSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-float-card {
    animation: heroFloat 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroFloat {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile optimizations for hero */
@media (max-width: 640px) {
    .hero-text-content {
        animation-duration: 0.8s;
    }
    
    .hero-image-container {
        animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
    }
    
    .hero-float-card {
        animation-delay: 0.3s;
    }
}

/* Hero Image Slider */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: slideFadeScale 10s infinite ease-in-out;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 5s;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease-out;
}

.hero-slide:nth-child(1) img {
    animation: slowZoom 10s infinite ease-in-out;
}

.hero-slide:nth-child(2) img {
    animation: slowZoom 10s infinite ease-in-out 5s;
}

@keyframes slideFadeScale {
    0% {
        opacity: 0;
    }
    5%, 45% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes slowZoom {
    0%, 50% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

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

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(30, 64, 175, 0.4);
    }
    50% {
        box-shadow: 0 8px 24px rgba(30, 64, 175, 0.4), 0 0 20px rgba(59, 130, 246, 0.5);
    }
}

@keyframes imageFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes imageZoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

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

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-fade-in-up-delay {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-up-delay-2 {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
}

.animate-gradient-text {
    background-size: 200% 200%;
    animation: gradientText 3s ease infinite;
}

.animate-button-pulse {
    animation: buttonPulse 3s ease-in-out infinite;
}

.animate-image-float {
    animation: imageFloat 6s ease-in-out infinite;
}

.animate-image-zoom {
    animation: imageZoom 8s ease-in-out infinite;
}

.animate-gradient-shift {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

.animate-glow-pulse {
    animation: glowPulse 4s ease-in-out infinite;
}

/* Mobile optimizations for hero slider */
@media (max-width: 640px) {
    .hero-slide {
        animation-duration: 8s;
    }
    
    .hero-slide:nth-child(2) {
        animation-delay: 4s;
    }
    
    .hero-slide img {
        animation-duration: 8s;
    }
    
    .hero-slide:nth-child(2) img {
        animation-delay: 4s;
    }
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.animate-fadeIn {
    animation: fadeIn 0.2s ease-out;
}

.animate-scaleIn {
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Jobs Section Enhancements */
#jobs {
    scroll-margin-top: 80px;
}

#jobs img {
    object-position: center;
}

/* Better text contrast on job section overlay */
#jobs .bg-gradient-to-r {
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

/* Responsive improvements for jobs section */
@media (max-width: 1024px) {
    #jobs .lg\:col-span-3,
    #jobs .lg\:col-span-2 {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    #jobs h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
}

/* Smooth Transitions for All Elements */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Enhanced Smooth Transitions */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: opacity 0.3s ease-in-out;
}

/* Enhanced Focus States */
*:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Better Selection */
::selection {
    background-color: #2563eb;
    color: white;
}

/* Improved Button Transitions */
button, a[role="button"] {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Hover Effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Glass Morphism Utility */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Text Animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Premium UI Enhancements */
.premium-shadow {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.premium-shadow-hover:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.premium-glow {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3), 0 0 80px rgba(59, 130, 246, 0.15);
}

.premium-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.premium-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.premium-button:hover::before {
    width: 300px;
    height: 300px;
}

.premium-text-gradient {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Enhanced Typography */
.premium-heading {
    letter-spacing: -0.03em;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.premium-subheading {
    letter-spacing: -0.01em;
    font-weight: 600;
    opacity: 0.9;
}

/* Smooth Premium Animations */
@keyframes premiumFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes premiumSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.premium-fade-in {
    animation: premiumFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.premium-slide-in {
    animation: premiumSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Premium Glass Morphism */
.premium-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.premium-glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Premium Hover Effects */
.premium-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.premium-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Premium Border Gradient */
.premium-border-gradient {
    position: relative;
    background: white;
    border-radius: 12px;
}

.premium-border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #3b82f6, #1e40af, #3b82f6);
    -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.3s;
}

.premium-border-gradient:hover::before {
    opacity: 1;
}