/* Performance-optimized CSS for 60fps smooth animations */

/* Reset and Base Styles with GPU optimization */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Force GPU acceleration for all elements */
*,
*::before,
*::after {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

html {
    scroll-behavior: smooth;
    transform: translate3d(0, 0, 0);
}

/* Enhanced smooth scrolling for better performance */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: white;
    background-color: black;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: translate3d(0, 0, 0);
    will-change: scroll-position;
}

/* Ultra-performance GPU acceleration for all animated elements */
.venture-card,
.logo,
.tagline,
.fade-in,
.fade-in-delay,
.fade-in-scroll,
.hero,
.about,
.ventures,
.footer {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    transform: translate3d(0, 0, 0);
}

/* Hero Section - Ultra-optimized */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: black;
    position: relative;
    will-change: transform, opacity;
    contain: layout style paint;
}

.hero .container {
    z-index: 2;
    transform: translate3d(0, 0, 1px);
}

.logo {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    will-change: transform;
    transition: transform 0.16s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translate3d(0, 0, 2px);
}

.logo:hover {
    transform: translate3d(0, 0, 2px) scale3d(1.02, 1.02, 1);
}

.tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 2rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, letter-spacing, transform;
    transform: translate3d(0, 0, 1px);
}

.tagline:hover {
    opacity: 1;
    letter-spacing: 0.35em;
    transform: translate3d(0, -1px, 1px);
}

/* About Section */
.about {
    padding: 120px 0;
    background: linear-gradient(180deg, black 0%, #111 100%);
    contain: layout style paint;
    transform: translate3d(0, 0, 0);
}

.about h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
    transform: translate3d(0, 0, 1px);
}

.about p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0.9;
    transform: translate3d(0, 0, 1px);
}

/* Ventures Section */
.ventures {
    padding: 120px 0;
    background: #111;
    contain: layout style paint;
    transform: translate3d(0, 0, 0);
}

.ventures h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 4rem;
    text-align: center;
    transform: translate3d(0, 0, 1px);
}

.ventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    transform: translate3d(0, 0, 0);
    contain: layout;
}

/* Ultra-optimized venture cards */
.venture-card {
    background: black;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 3rem;
    transition: all 0.16s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
    will-change: transform, border-color, box-shadow;
    backface-visibility: hidden;
    perspective: 1000px;
    transform: translate3d(0, 0, 1px);
    contain: layout style paint;
}

.venture-link {
    cursor: pointer;
}

.venture-link:hover {
    text-decoration: none;
    color: inherit;
}

.venture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    opacity: 0;
    transition: opacity 0.16s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity;
    transform: translate3d(0, 0, -1px);
}

.venture-card:hover {
    transform: translate3d(0, -12px, 2px) scale3d(1.02, 1.02, 1);
    border-color: #666;
    box-shadow: 0 32px 64px rgba(255,255,255,0.15), 0 8px 16px rgba(255,255,255,0.1);
}

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

.venture-card h3 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transform: translate3d(0, 0, 1px);
}

.venture-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    color: #ccc;
    position: relative;
    z-index: 2;
    transform: translate3d(0, 0, 1px);
}

.venture-card p:last-child {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    transform: translate3d(0, 0, 1px);
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: black;
    border-top: 1px solid #333;
    contain: layout style paint;
    transform: translate3d(0, 0, 0);
}

.footer-content {
    text-align: center;
    transform: translate3d(0, 0, 1px);
}

.email {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    transform: translate3d(0, 0, 1px);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.6;
    transform: translate3d(0, 0, 1px);
}

/* Ultra-optimized Animation Classes */
.fade-in {
    opacity: 0;
    transform: translate3d(0, 40px, 0) scale3d(0.95, 0.95, 1);
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    will-change: transform, opacity;
}

.fade-in-delay {
    opacity: 0;
    transform: translate3d(0, 40px, 0) scale3d(0.95, 0.95, 1);
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s forwards;
    will-change: transform, opacity;
}

.fade-in-scroll {
    opacity: 0;
    transform: translate3d(0, 60px, 0) scale3d(0.95, 0.95, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
}

/* Ultra-optimized Keyframes */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate3d(0, 40px, 0) scale3d(0.95, 0.95, 1);
    }
    50% {
        opacity: 0.8;
        transform: translate3d(0, 10px, 0) scale3d(0.98, 0.98, 1);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
}

/* Responsive Design with GPU optimization */
@media (max-width: 768px) {
    .ventures-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .venture-card {
        padding: 2rem;
    }
    
    .about, .ventures {
        padding: 80px 0;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .ventures-grid {
        gap: 1.5rem;
    }
    
    .venture-card {
        padding: 1.5rem;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 0.9rem;
        letter-spacing: 0.2em;
    }
}

/* Ultra-smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    .venture-card {
        transition: transform 0.16s cubic-bezier(0.165, 0.84, 0.44, 1), 
                    border-color 0.16s cubic-bezier(0.165, 0.84, 0.44, 1),
                    box-shadow 0.16s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .venture-card {
        border-color: #666;
    }
    
    .venture-card:hover {
        border-color: #999;
    }
}

/* Enhanced performance for loaded state */
.js-loaded .fade-in,
.js-loaded .fade-in-delay {
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

.js-loaded .fade-in-scroll {
    transition-duration: 0.6s;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Ultra-optimized glow effect */
.venture-card:hover {
    box-shadow: 
        0 32px 64px rgba(255,255,255,0.15), 
        0 8px 16px rgba(255,255,255,0.1),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Optimized focus states for accessibility */
.venture-card:focus-visible {
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 4px;
    transition: outline-offset 0.16s ease;
}

/* Performance optimizations */
[data-performance="gpu-accelerated"] {
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
    contain: layout style paint;
}

/* Prevent layout thrashing */
.container,
.ventures-grid,
.footer-content {
    contain: layout;
}

/* Optimize paint operations */
.hero,
.about,
.ventures,
.footer {
    contain: layout style paint;
}

/* Force compositing for smooth animations */
.logo,
.tagline,
.venture-card {
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

/* Micro-optimizations for ultra-smooth performance */
* {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* Hardware acceleration for all interactive elements */
:hover,
:focus,
:active {
    transform: translate3d(0, 0, 0);
}