/* Juxtapose-Inspired Design System */

/* ===== Enhanced CSS Variables ===== */
:root {
    /* Refined color palette */
    --jux-black: #000000;
    --jux-white: #ffffff;
    --jux-gray-100: #fafafa;
    --jux-gray-200: #f5f5f5;
    --jux-gray-300: #e8e8e8;
    --jux-gray-400: #d4d4d4;
    --jux-gray-600: #737373;
    --jux-gray-800: #262626;
    --jux-gray-900: #171717;
    
    /* Animations */
    --jux-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --jux-ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
    --jux-duration-fast: 0.3s;
    --jux-duration-medium: 0.5s;
    --jux-duration-slow: 0.8s;
    
    /* Category Colors */
    --jux-category-healthcare: #667eea;
    --jux-category-defense: #f093fb;
    --jux-category-energy: #4facfe;
    --jux-category-infrastructure: #43e97b;
    --jux-category-agriculture: #fa709a;
    --jux-category-finance: #30cfd0;
    --jux-category-transportation: #a855f7;
    --jux-category-manufacturing: #3b82f6;
}

/* ===== Global Enhancements ===== */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced selection */
::selection {
    background-color: var(--inauguration-navy);
    color: var(--white);
}

/* ===== Typography Refinements ===== */
.jux-heading {
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.jux-subtitle {
    font-weight: 400;
    color: var(--jux-gray-600);
    letter-spacing: -0.01em;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Scroll-triggered animations */
.jux-animate {
    opacity: 0;
}

.jux-animate.jux-animated {
    animation: fadeInUp var(--jux-duration-medium) var(--jux-ease-out) forwards;
}

.jux-animate-delay-1 {
    animation-delay: 0.1s;
}

.jux-animate-delay-2 {
    animation-delay: 0.2s;
}

.jux-animate-delay-3 {
    animation-delay: 0.3s;
}

/* ===== Minimal Navigation ===== */
.jux-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    transition: all var(--jux-duration-fast) var(--jux-ease-out);
}

.jux-nav.scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

/* ===== Hero Section Redesign ===== */
.jux-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.jux-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--jux-gray-900) 0%, var(--jux-gray-800) 100%);
}

.jux-hero-content {
    text-align: center;
    max-width: 1000px;
    padding: var(--space-8);
}

.jux-hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 300;
    color: var(--white);
    margin-bottom: var(--space-8);
    letter-spacing: -0.03em;
    line-height: 1;
}

.jux-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    line-height: 1.5;
}

/* ===== Portfolio Cards Redesign ===== */
.jux-portfolio-section {
    padding: var(--space-32) 0;
}

.jux-section-header {
    text-align: center;
    margin-bottom: var(--space-24);
}

.jux-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: var(--space-4);
}

/* Spotlight Section */
.jux-spotlight {
    margin-bottom: var(--space-32);
}

.jux-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-8);
}

/* Portfolio Card Redesign */
.jux-portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 500px;
    cursor: pointer;
    transition: all var(--jux-duration-medium) var(--jux-ease-out);
}

.jux-portfolio-card:hover {
    transform: scale(1.02);
}

.jux-portfolio-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--jux-duration-slow) var(--jux-ease-out);
}

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

.jux-portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-10);
}

.jux-portfolio-logo {
    width: 120px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: var(--space-4);
}

.jux-portfolio-name {
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-2);
}

.jux-portfolio-tagline {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.jux-portfolio-ceo {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-4);
}

/* Regular Portfolio Grid */
.jux-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-6);
}

.jux-portfolio-card-small {
    height: 400px;
}

/* ===== Team Page Redesign ===== */
.jux-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.jux-team-member {
    text-align: center;
    cursor: pointer;
    transition: all var(--jux-duration-fast) var(--jux-ease-out);
}

.jux-team-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: var(--space-4);
    filter: grayscale(100%);
    transition: filter var(--jux-duration-medium) var(--jux-ease-out);
}

.jux-team-member:hover .jux-team-photo {
    filter: grayscale(0%);
}

.jux-team-name {
    font-size: var(--text-xl);
    font-weight: 500;
    margin-bottom: var(--space-1);
}

.jux-team-title {
    font-size: var(--text-base);
    color: var(--jux-gray-600);
}

/* ===== Micro-interactions ===== */
.jux-button {
    position: relative;
    overflow: hidden;
    transition: all var(--jux-duration-fast) var(--jux-ease-out);
}

.jux-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width var(--jux-duration-medium) var(--jux-ease-out),
                height var(--jux-duration-medium) var(--jux-ease-out);
}

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

/* ===== Loading States ===== */
.jux-skeleton {
    background: linear-gradient(90deg, var(--jux-gray-200) 25%, var(--jux-gray-300) 50%, var(--jux-gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .jux-spotlight-grid {
        grid-template-columns: 1fr;
    }
    
    .jux-portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .jux-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .jux-portfolio-card {
        height: 400px;
    }
    
    .jux-portfolio-card-small {
        height: 350px;
    }
}