/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header and company branding */
.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    padding: 2rem 0 0 2rem;
    pointer-events: none;
}

.company-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.8;
    color: #000;
    transform: translateX(-4%) translateY(-55%);
    white-space: nowrap;
    user-select: none;
}

/* Main content layout */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
}

/* Hero section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 1200px;
}


.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-title {
    font-size: clamp(6rem, 16vw, 12rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #000;
    margin-bottom: 1rem;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.hero-title.fade-out {
    opacity: 0;
}

.capability-container {
    position: relative;
    height: clamp(4rem, 10vw, 7rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.capability-label {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 300;
    color: #000;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    position: absolute;
    white-space: nowrap;
}

.capability-label.fade-out {
    opacity: 0;
}

/* Trust section */
.trust-section {
    width: 100%;
    max-width: 1200px;
    padding: 2rem 0;
    text-align: center;
}

.trust-title {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: #666;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.client-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.client-logo:hover {
    opacity: 0.8;
}

.logo-image {
    max-height: 40px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.5);
    transition: filter 0.3s ease;
}

.client-logo:hover .logo-image {
    filter: grayscale(100%) brightness(0.7);
}

/* Fallback styling for when images don't load */
.client-logo::after {
    content: attr(aria-label);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 500;
    color: #666;
    letter-spacing: 0.05em;
    display: none;
}

.logo-image[src*="placeholder"]::after,
.logo-image:not([src])::after {
    display: block;
}

.logo-text {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 500;
    color: #666;
    letter-spacing: 0.05em;
}

.client-name {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 500;
    color: #666;
    letter-spacing: 0.05em;
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0 0 1rem;
    }
    
    .company-name {
        transform: translateX(-5%);
    }
    
    .main-content {
        padding: 1rem;
        justify-content: space-between;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
    
    .hero {
        flex: none;
    }
    
    .client-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .trust-section {
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    .client-logos {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .main-content {
        padding-top: 6rem;
    }
}

/* Accessibility and motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .company-name,
    .hero-title,
    .capability-label {
        color: #000;
    }
    
    .trust-title,
    .client-name {
        color: #333;
    }
    
    .client-logo {
        opacity: 0.8;
    }
}

/* Focus styles for accessibility */
.capability-label:focus {
    outline: 2px solid #000;
    outline-offset: 4px;
}

/* Carousel indicators */
.carousel-indicators {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 50;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator:hover {
    background-color: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.indicator.active {
    background-color: rgba(0, 0, 0, 0.7);
}

.indicator:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Subtle hint for interaction */
.carousel-indicators::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    right: 0;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-indicators:hover::before {
    opacity: 1;
}


/* Print styles */
@media print {
    .header {
        position: static;
        padding: 1rem;
    }
    
    .company-name {
        transform: none;
        font-size: 2rem;
    }
    
    .main-content {
        min-height: auto;
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .capability-label {
        font-size: 1.5rem;
    }
}
