/* Keith Vaughan Associates Custom Styles */

/* Navigation Styles */
.nav-container {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
}

.logo-image {
    height: 37px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    align-items: flex-start;
}

.logo-text-line1,
.logo-text-line2 {
    font-size: clamp(18px, 3vw, 24px) !important;
    font-weight: 500 !important;
    width: 100%;
}

/* Legacy support for existing .logo-text class */
.logo-text {
    font-size: clamp(18px, 3vw, 24px) !important;
    font-weight: 500 !important;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 120%;
    min-height: 120%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.1);
    object-fit: cover;
    /* Reduce green tones and adjust color balance */
    filter: saturate(0.6) hue-rotate(-15deg) brightness(0.8) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Horizontal line pattern */
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        ),
        /* Radial gradient overlay */
        radial-gradient(
            ellipse at center,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.7) 40%,
            rgba(0, 0, 0, 0.85) 70%,
            rgba(0, 0, 0, 0.95) 100%
        ),
        /* Base linear gradient */
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.7) 100%
        );
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin: 32px auto 40px;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Enhanced text shadows for better readability over video */
.hero-section .instinct-hero {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.hero-section .instinct-tag {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Companies Section */
.companies-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-subtitle {
    margin: 24px auto 60px;
    max-width: 700px;
    font-size: var(--text-lg);
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.company-card {
    padding: 40px;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.company-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

.company-header h3 {
    margin-bottom: 0;
    flex: 1;
}

.role-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.role-tag.partner {
    background: rgba(100, 200, 255, 0.2);
    color: #64c8ff;
}

.company-description {
    margin-bottom: 32px;
    line-height: 1.7;
}

.company-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-item {
    text-align: center;
    flex: 1;
}

.metric-item .instinct-metric {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(24px, 4vw, 36px);
}

.company-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-item {
    text-align: center;
    padding: 32px 24px;
}

.service-item h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-item p {
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    margin-bottom: 40px;
}

.about-content .instinct-body {
    font-size: var(--text-lg);
    margin-bottom: 32px;
    line-height: 1.7;
}

.about-content .instinct-secondary {
    font-size: var(--text-base);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.contact-subtitle {
    margin: 32px auto 48px;
    max-width: 600px;
    font-size: var(--text-lg);
}

.contact-button {
    font-size: var(--text-base);
    padding: 16px 32px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer-section {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .companies-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
    
    .company-card {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .nav-links {
        order: 2;
        gap: 24px;
    }
    
    .instinct-button {
        order: 3;
    }
    
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-tags {
        gap: 12px;
    }
    
    .companies-section,
    .services-section,
    .about-section,
    .contact-section {
        padding: 80px 0;
    }
    
    .companies-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .company-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .company-metrics {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 32px;
    }
    
    .section-subtitle {
        margin: 24px auto 40px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 16px 0;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .logo-text-container {
        align-items: center;
    }
    
    .logo-text-line1,
    .logo-text-line2 {
        font-size: clamp(16px, 4vw, 20px) !important;
    }
    
    .logo-text-line2 {
        font-size: clamp(14px, 3.5vw, 18px) !important;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .hero-section {
        padding: 60px 0 40px;
        min-height: 80vh;
    }
    
    /* Hide video on mobile for performance */
    .hero-video {
        display: none;
    }
    
    /* Fallback background for mobile */
    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            135deg,
            rgba(20, 20, 30, 0.95) 0%,
            rgba(10, 10, 20, 0.98) 50%,
            rgba(0, 0, 0, 1) 100%
        );
        z-index: -2;
    }
    
    .hero-tags {
        justify-content: center;
    }
    
    .companies-section,
    .services-section,
    .about-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .company-card {
        padding: 24px;
    }
    
    .company-metrics {
        padding: 16px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .service-item {
        padding: 24px 16px;
    }
}

/* Video Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
    
    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            135deg,
            rgba(20, 20, 30, 0.95) 0%,
            rgba(10, 10, 20, 0.98) 50%,
            rgba(0, 0, 0, 1) 100%
        );
        z-index: -2;
    }
}

/* Low bandwidth optimization */
@media (max-width: 768px) and (max-resolution: 150dpi) {
    .hero-video {
        display: none;
    }
    
    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            135deg,
            rgba(20, 20, 30, 0.95) 0%,
            rgba(10, 10, 20, 0.98) 50%,
            rgba(0, 0, 0, 1) 100%
        );
        z-index: -2;
    }
}

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

/* Enhanced Focus States */
.nav-links a:focus,
.instinct-button:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

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

.company-card,
.service-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.service-item:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Print Styles */
@media print {
    .nav-container,
    .contact-section,
    .footer-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .instinct-hero,
    .instinct-h1,
    .instinct-h2,
    .instinct-h3 {
        color: black;
    }
}
