/* CSS'ten Loading Skeleton'ları Tamamen Kaldırıldı */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #1f2937;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #1f2937;
    color: white;
}

.btn-primary:hover {
    background: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
}

.btn-ghost {
    background: transparent;
    color: #6b7280;
}

.btn-ghost:hover {
    color: #1f2937;
}

.btn-white {
    background: white;
    color: #1f2937;
}

.btn-white:hover {
    background: #f9fafb;
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* Ripple effect for buttons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Hero Section with Video Background */
.hero {
    position: relative;
    padding: 0 0 5rem;
    margin-top: 0;
    min-height: 100vh;
    overflow: hidden;
    
    /* Fallback background - video yüklenmezse bu görünür */
    background: linear-gradient(135deg, 
        #1f2937 0%, 
        #374151 25%, 
        #4b5563 50%, 
        #374151 75%, 
        #1f2937 100%
    );
    
    /* Pattern overlay ekle */
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
}

/* Video Background Container */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    aspect-ratio: 16/9;
    min-height: 100vh;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
    max-width: none;
    max-height: none;
}

.hero-video.active {
    opacity: 0.9;
}

/* Loading shimmer - KALDIRILDı */
/* Overlay for better text readability */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(31, 41, 55, 0.4),
        rgba(31, 41, 55, 0.6)
    );
    z-index: 1;
    pointer-events: none;
}

/* Additional overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(31, 41, 55, 0.3),
        rgba(31, 41, 55, 0.5)
    );
    z-index: 2;
    pointer-events: none;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding-top: 8rem;
    min-height: 100vh;
    grid-template-rows: minmax(auto, 1fr);
    contain: layout style;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    min-height: 4.2rem;
    contain: layout;
}

.hero-title-main,
.hero-subtitle {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
}

.hero-subtitle {
    display: block;
    color: #ffffff;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.25rem;
    color: #f9fafb;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 3.2rem;
    contain: layout;
}

/* CTA Section with conditional display */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    min-height: 3.5rem;
    contain: layout;
}

/* CTA visible state */
.cta-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 100px;
    margin-bottom: 3rem;
}

/* CTA hidden state */
.cta-hidden {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    max-height: 0;
    margin-bottom: 0;
    pointer-events: none;
    min-height: 0;
}

/* Smooth height transition */
.hero-actions.transitioning {
    max-height: 100px;
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* CTA butonunun kendisi için animasyon */
.hero-actions .btn {
    transition: all 0.3s ease;
}

.cta-hidden .btn {
    transform: scale(0.8);
    opacity: 0;
}

.cta-visible .btn {
    transform: scale(1);
    opacity: 1;
}

#hero-cta-text {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    transition: opacity 0.5s ease, transform 0.5s ease;
    min-height: 4rem;
    contain: layout;
}

/* Stats hidden state */
.stats-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    display: grid;
    visibility: hidden;
}

/* Stats visible state */
.hero-stats:not(.stats-hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* Hero stats adjustment when CTA is hidden */
.hero-content:has(.cta-hidden) .hero-stats {
    margin-top: 1rem;
}

/* Fallback for browsers that don't support :has() */
.no-cta .hero-stats {
    margin-top: 1rem;
}

.stat {
    text-align: center;
    min-height: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    contain: layout;
}

.stat-number,
.stat-label {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    min-height: 2.4rem;
    line-height: 1.2;
    contain: layout;
}

.stat-label {
    font-size: 0.875rem;
    color: #e5e7eb;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    min-height: 1.05rem;
    line-height: 1.2;
    contain: layout;
}

/* Stats updating animation */
.stat-updating .stat-number {
    color: #60a5fa;
    transform: scale(1.1);
}

.stat-updating .stat-label {
    opacity: 0.7;
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
    min-width: 6rem;
    min-height: 1rem;
    contain: layout;
}

.video-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    contain: layout;
}

.video-indicator.active {
    background: #ffffff;
    transform: scale(1.2);
}

.video-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Text transition animations */
.text-fade-out {
    opacity: 0;
    transform: translateY(-20px);
    contain: layout;
}

.text-fade-in {
    opacity: 1;
    transform: translateY(0);
    contain: layout;
}

.text-slide-out-left {
    opacity: 0;
    transform: translateX(-50px);
    contain: layout;
}

.text-slide-out-right {
    opacity: 0;
    transform: translateX(50px);
    contain: layout;
}

.text-slide-in {
    opacity: 1;
    transform: translateX(0);
    contain: layout;
}

.text-scale-out {
    opacity: 0;
    transform: scale(0.8);
    contain: layout;
}

.text-scale-in {
    opacity: 1;
    transform: scale(1);
    contain: layout;
}

/* LOADING STATE SKELETON'LARI TAMAMEN KALDIRILDI */
/* Boş elementler artık skeleton göstermez */

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.hero-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f2faff;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: #f2faff;
    max-width: 48rem;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #f2faff;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    contain: layout;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon-blue {
    background: #f1f1e6;
    color: #0097fb;
}

.feature-icon-green {
    background: #f1f1e6;
    color: #0097fb;
}

.feature-icon-purple {
    background: #f1f1e6;
    color: #0097fb;
}

.feature-icon-orange {
    background: #f1f1e6;
    color: #0097fb;
}

.feature-icon-red {
    background: #f1f1e6;
    color: #0097fb;
}

.feature-icon-yellow {
    background: #f1f1e6;
    color: #0097fb;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.feature-description {
    color: #6b7280;
    line-height: 1.6;
}

/* API Section */
.api-section {
    position: relative;
    padding: 0.5rem 0;
    background: #f9fafb;
    overflow: hidden;
    min-height: 900px;
}

.api-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
}

.api-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.api-section-description {
    font-size: 1.25rem;
    color: #1f2937;
    max-width: 48rem;
    margin: 0 auto;
}

.api-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.code-block {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    position: relative;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    opacity: 0.5;
}

.code-block pre {
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.code-block code {
    color: #e5e7eb;
}

.comment { color: #6b7280; }
.keyword { color: #60a5fa; }
.string { color: #34d399; }
.number { color: #fbbf24; }
.function { color: #a78bfa; }
.variable { color: #f87171; }
.property { color: #fde047; }

.api-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.api-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.api-feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.api-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    padding: 0.5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    contain: layout;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ef4444);
    border-radius: 0.75rem 0.75rem 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.testimonial-stars {
    margin-bottom: 1rem;
}

.star {
    color: #fbbf24;
    font-size: 1.25rem;
}

.testimonial-text {
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}



.author-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.125rem;
}

.author-company {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: #1f2937;
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    max-width: 28rem;
    margin: 0 auto 1rem;
}

.cta-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.cta-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cta-note {
    font-size: 0.875rem;
    color: #9ca3af;
}

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

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

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-visual {
    animation: slideInRight 0.8s ease-out 0.2s both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions {
        display: none;
    }

    .hero {
        min-height: 70vh;
        background: linear-gradient(45deg, 
            #0f172a 0%, 
            #1e293b 30%, 
            #334155 60%, 
            #1e293b 100%
        );
        
        background-image: 
            linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
            linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
            linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.05) 75%), 
            linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.05) 75%);
        background-size: 40px 40px;
        background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
        
        max-height: 100vh;
    }
    
    .hero-video {
        width: 120vw;
        height: 120vh;
        left: -10vw;
        top: -10vh;
        transform: none;
        object-fit: cover;
        object-position: center center;
        will-change: opacity;
    }
    
    .hero-video.active {
        opacity: 0.8;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding-top: 4rem;
        min-height: 70vh;
        justify-content: center;
        grid-template-rows: auto;
        contain: layout;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        min-height: 3rem;
    }
    
    .hero-title-main,
    .hero-subtitle {
        transition-duration: 0.6s;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        transition-duration: 0.7s;
        min-height: 2.6rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
        min-height: 3.5rem;
    }

    .cta-visible {
        margin-bottom: 2rem;
        max-height: 80px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
        min-height: 8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .video-controls {
        bottom: 1rem;
        right: 50%;
        transform: translateX(50%);
        background: rgba(0, 0, 0, 0.3);
        padding: 0.5rem;
        border-radius: 1rem;
    }
    
    .video-indicator {
        width: 10px;
        height: 10px;
    }
    
    .hero::before {
        background: linear-gradient(
            rgba(31, 41, 55, 0.6),
            rgba(31, 41, 55, 0.7)
        );
    }

    .section-title {
        font-size: 2rem;
    }

    .api-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-form {
        flex-direction: column;
        max-width: 20rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .api-section {
        min-height: 200px;
    }
    
    #api-video .api-bg-video {
        position: relative;
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
        opacity: 1;
    }

    .video-indicator:hover {
        background: rgba(255, 255, 255, 0.5);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero {
        min-height: 60vh;
        max-height: 100vh;
    }
    
    .hero-video {
        width: 130vw;
        height: 130vh;
        left: -15vw;
        top: -15vh;
    }
    
    .hero-content {
        padding-top: 3rem;
        min-height: 60vh;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-actions {
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        min-height: 16rem;
    }

    .stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 200px;
        margin: 0 auto;
        min-height: 3rem;
        flex-direction: row;
    }
    
    .stat-number {
        font-size: 1.3rem;
        margin-bottom: 0;
        min-height: auto;
    }
    
    .stat-label {
        font-size: 0.8rem;
        min-height: auto;
    }
    
    .video-controls {
        bottom: 0.5rem;
        gap: 0.3rem;
    }
    
    .video-indicator {
        width: 8px;
        height: 8px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Landscape mode mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding-top: 2rem;
        min-height: 100vh;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        max-width: 1200px;
        padding: 0 1rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

/* Ultra wide ekranlar için (Galaxy S21+, vb.) */
@media (max-width: 768px) and (min-aspect-ratio: 19/9) {
    .hero-video {
        height: 120vh;
        top: -10vh;
        object-position: center 40%;
    }
}

/* Notch'lu telefonlar için (iPhone X+) */
@supports (padding-top: env(safe-area-inset-top)) {
    @media (max-width: 768px) {
        .hero {
            padding-top: env(safe-area-inset-top);
        }
        
        .hero-content {
            padding-top: calc(2rem + env(safe-area-inset-top));
        }
    }
}

/* Video quality fallback - düşük performanslı cihazlar */
@media (max-width: 768px) and (max-resolution: 150dpi) {
    .hero-video {
        filter: brightness(1.1) contrast(1.05);
    }
}

/* Touch device styling */
.touch-device .video-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Performance optimization - Layout containment */
.hero {
    contain: layout style;
}

.feature-card,
.testimonial-card {
    contain: layout;
}

/* Transition optimization - Layout stability */
.text-fade-out,
.text-fade-in,
.text-slide-out-left,
.text-slide-out-right,
.text-slide-in,
.text-scale-out,
.text-scale-in {
    contain: layout;
}

/* Fallback for older browsers */
@supports not (contain: layout) {
    .hero-content {
        overflow: hidden;
    }
    
    .hero-title,
    .hero-description,
    .hero-actions,
    .hero-stats {
        transform: translateZ(0);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-video {
        transition: none !important;
    }
    
    .hero-title-main,
    .hero-subtitle,
    .hero-description,
    #hero-cta-text,
    .stat-number,
    .stat-label {
        transition: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .feature-card,
    .testimonial-card {
        border: 2px solid #000;
    }
    
    .video-indicator {
        border: 2px solid #ffffff;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-description {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    }
}